/* Staff list & profile – matches Khaje Nasir theme palette */

.kn-staff-page {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

@media (min-width: 640px) {
  .kn-staff-page { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .kn-staff-page { padding-left: 2rem; padding-right: 2rem; }
}

.kn-staff-page__header {
  margin-bottom: 2.5rem;
}

.kn-staff-page__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.35);
}

.kn-staff-page__subtitle {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.7;
  max-width: 40rem;
}

.kn-staff-section {
  margin-bottom: 3.5rem;
}

.kn-staff-section__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 900;
  color: #fff;
  text-align: right;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kn-staff-section__title i {
  color: #ffd700;
  font-size: 0.9em;
}

.kn-staff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .kn-staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .kn-staff-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
}

.kn-staff-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(27, 29, 68, 0.45) 0%, rgba(16, 18, 44, 0.6) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.kn-staff-card:hover {
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.12), inset 0 0 15px rgba(255, 215, 0, 0.05);
  transform: translateY(-6px);
}

.kn-staff-card__photo {
  aspect-ratio: 1 / 1;
  background: rgba(8, 9, 26, 0.8);
  overflow: hidden;
  position: relative;
}

.kn-staff-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.kn-staff-card:hover .kn-staff-card__photo img {
  transform: scale(1.05);
  opacity: 1;
}

.kn-staff-card__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(156, 163, 175, 0.7);
  font-size: 2.5rem;
  background: linear-gradient(135deg, #08091a, #1b1d44);
}

.kn-staff-card__body {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  text-align: right;
}

.kn-staff-card__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
}

.kn-staff-card__subject {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c084fc;
  line-height: 1.4;
}

.kn-staff-card__action {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  justify-content: flex-start;
}

.kn-staff-card__btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.kn-staff-card:hover .kn-staff-card__btn {
  background: #ffd700;
  color: #04040d;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.45);
  transform: translateX(-3px);
}

.kn-staff-empty {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 26, 0.45);
  color: #9ca3af;
  font-size: 0.875rem;
  text-align: center;
}

/* —— Profile —— */
.kn-staff-profile__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.kn-staff-profile__back:hover {
  color: #ffd700;
}

.kn-staff-profile__name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: #fff;
  text-align: right;
}

.kn-staff-profile__meta {
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #c084fc;
  text-align: right;
}

.kn-staff-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 2.5rem;
  max-width: 28rem;
  width: 100%;
}

.kn-staff-carousel__nav {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 9, 26, 0.7);
  color: #ffd700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.kn-staff-carousel__nav:hover {
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.12);
  transform: scale(1.05);
}

.kn-staff-carousel__nav:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.kn-staff-carousel__frame {
  flex: 1;
  min-width: 0;
  max-width: 22rem;
  width: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 9, 26, 0.7);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
  position: relative;
}

.kn-staff-carousel__viewport {
  overflow: hidden;
}

.kn-staff-carousel__track {
  display: flex;
  direction: ltr;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.kn-staff-carousel__slide {
  flex: 0 0 100%;
  aspect-ratio: 1 / 1;
  background: #08091a;
}

.kn-staff-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kn-staff-carousel__slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(156, 163, 175, 0.6);
  font-size: 3rem;
  background: linear-gradient(135deg, #08091a, #10122c);
}

.kn-staff-carousel__dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.kn-staff-carousel__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  border: 0;
  padding: 0;
  background: rgba(156, 163, 175, 0.7);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.kn-staff-carousel__dot.is-active {
  width: 1.35rem;
  background: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

.kn-staff-bio {
  margin-bottom: 2.75rem;
}

.kn-staff-bio__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  text-align: right;
  display: inline-block;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.65);
}

.kn-staff-bio__content {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.95;
  text-align: justify;
}

.kn-staff-bio__content p {
  margin: 0.85em 0;
}

.kn-staff-video {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .kn-staff-video {
    /* RTL: first col (label) on the right, second (video) on the left */
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
    gap: 2rem;
  }
}

.kn-staff-video__player {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #08091a;
  aspect-ratio: 16 / 9;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.kn-staff-video__player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.kn-staff-video__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(156, 163, 175, 0.65);
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #08091a, #1b1d44);
}

.kn-staff-video__label {
  margin: 0;
  text-align: right;
  color: #e5e7eb;
  font-weight: 800;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.7;
}

@media (max-width: 639px) {
  .kn-staff-carousel {
    max-width: 22rem;
  }

  .kn-staff-carousel__nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.85rem;
  }

  .kn-staff-carousel__frame {
    border-radius: 1.25rem;
  }
}
