/* ── Faculty Listing Page ── */
.kn-faculty-hero {
  background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #1565c0 100%);
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
}
.kn-faculty-hero h1 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.kn-faculty-hero p {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92) !important;
}

.kn-faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  padding: 36px 0 50px;
}

.kn-teacher-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.kn-teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.kn-card-photo {
  width: 100%;
  height: 180px;
  aspect-ratio: auto;
  background: #e8eaf6;
  overflow: hidden;
}
.kn-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform .35s ease;
}
.kn-teacher-card:hover .kn-card-photo img {
  transform: scale(1.04);
}
.kn-card-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  height: 100%;
}

.kn-card-top {
  padding: 14px 16px 8px;
  text-align: center;
}

.kn-card-top h3 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a237e;
  margin: 0 0 4px;
  min-height: 0;
  line-height: 1.25;
}
.kn-card-top .kn-card-title {
  font-size: .8rem;
  color: #555;
  margin-bottom: 4px;
  min-height: 0;
  line-height: 1.35;
}
.kn-card-top .kn-card-exp {
  font-size: .76rem;
  color: #888;
  font-weight: 600;
  min-height: 0;
}

.kn-card-body {
  padding: 0 16px 10px;
  flex: 1;
}
.kn-card-body p {
  font-size: .82rem;
  color: #555;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  margin: 0;
}

.kn-card-footer {
  padding: 0 16px 16px;
  text-align: center;
}
.kn-card-footer .btn-profile {
  display: inline-block;
  background: linear-gradient(135deg, #1a237e, #1565c0);
  color: #fff;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
.kn-card-footer .btn-profile:hover {
  opacity: .88;
  color: #fff;
}

/* ── Individual Profile Page ── */
.kn-profile-hero {
  background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #1565c0 100%);
  color: #fff;
  padding: 36px 0 40px;
}
.kn-profile-hero-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}
.kn-profile-photo-card {
  width: 210px;
  height: 260px;
  flex: 0 0 210px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef1f8;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  border: 3px solid rgba(255, 255, 255, 0.9);
}
.kn-profile-photo-card img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center 14%;
  display: block;
}
.kn-profile-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  width: 100%;
  height: 100%;
}
.kn-profile-hero-copy {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
}
.kn-profile-hero-copy h1 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.kn-profile-hero-copy .kn-profile-title {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.92) !important;
  margin-bottom: 12px;
  line-height: 1.45;
}
.kn-profile-hero-copy .kn-profile-meta,
.kn-profile-hero-copy .kn-profile-qual {
  font-size: .95rem;
  color: rgba(255, 255, 255, 0.88) !important;
  margin-bottom: 8px;
  line-height: 1.5;
}
.kn-profile-hero-copy i {
  color: #fff !important;
  opacity: .95;
}

.kn-profile-content {
  padding: 45px 0 60px;
}

.kn-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  margin-bottom: 35px;
  background: #000;
}
.kn-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.kn-video-placeholder {
  border-radius: 12px;
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
  padding: 60px 30px;
  text-align: center;
  margin-bottom: 35px;
}
.kn-video-placeholder i {
  font-size: 3rem;
  color: #1a237e;
  margin-bottom: 14px;
  display: block;
}
.kn-video-placeholder p {
  font-size: 1.05rem;
  color: #37474f;
  margin-bottom: 6px;
}
.kn-video-placeholder .kn-phone {
  font-size: .95rem;
  color: #555;
}

.kn-subjects-section h2,
.kn-bio-section h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 3px solid #1565c0;
  display: inline-block;
}

.kn-subjects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 35px;
}
.kn-subjects-list li {
  background: #e8eaf6;
  color: #1a237e;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .88rem;
  font-weight: 600;
}

.kn-bio-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 16px;
}

.kn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1565c0;
  font-weight: 600;
  text-decoration: none;
  margin-top: 20px;
  font-size: .95rem;
}
.kn-back-link:hover { color: #1a237e; }

/* ── Breadcrumb ── */
.kn-breadcrumb {
  background: #f5f5f5;
  padding: 12px 0;
}
.kn-breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .88rem;
}
.kn-breadcrumb ol li + li::before {
  content: '›';
  margin-right: 6px;
  color: #999;
}
.kn-breadcrumb a { color: #1565c0; text-decoration: none; }
.kn-breadcrumb a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .kn-profile-photo-card {
    width: 180px;
    height: 224px;
    flex-basis: 180px;
  }
  .kn-profile-hero-copy h1 { font-size: 1.75rem; }
}

@media (max-width: 767px) {
  .kn-faculty-hero { padding: 40px 15px 35px; }
  .kn-faculty-hero h1 { font-size: 1.8rem; }
  .kn-faculty-grid {
    gap: 20px;
    padding: 30px 0 40px;
    grid-template-columns: 1fr;
  }
  .kn-card-photo { height: 160px; }
  .kn-card-body p { min-height: 0; }
  .kn-profile-hero { padding: 28px 0 32px; }
  .kn-profile-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  .kn-profile-photo-card {
    width: 160px;
    height: 200px;
    flex-basis: 160px;
    margin: 0 auto;
  }
  .kn-profile-hero-copy h1 { font-size: 1.55rem; }
  .kn-video-placeholder { padding: 40px 20px; }
}
