/* ============================================================ */
/* TEACHERS.CSS — Teachers Listing & Individual Profile Pages   */
/* Learn Shia Quran | learnshiaquran.com                        */
/* ============================================================ */

/* ── 1. TEACHERS LISTING PAGE ── */

.teacher-card.teacher-card--featured {
  grid-column: span 3;
  display: flex;
  gap: var(--space-8);
  align-items: center;
  background: var(--color-navy) !important;
  color: var(--color-white) !important;
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
}

.teacher-card.teacher-card--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.teacher-card.teacher-card--featured>* {
  position: relative;
  z-index: 1;
}

.teacher-card.teacher-card--featured .teacher-photo-large {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-card.teacher-card--featured .teacher-info h2 {
  color: var(--color-white) !important;
  margin-bottom: var(--space-2);
}

.teacher-card.teacher-card--featured .teacher-info .title {
  color: var(--color-gold) !important;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.teacher-card.teacher-card--featured .teacher-info p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
  max-width: 520px;
}

@media (max-width:1024px) {

  .teacher-card--featured {
    grid-column: span 2;
  }
}

@media (max-width:768px) {
  .teacher-card--featured {
    flex-direction: column;
    text-align: center;
  }

  .teacher-card--featured .teacher-photo-large {
    margin: 0 auto;
  }
}

@media (max-width:640px) {

  .teacher-card--featured {
    grid-column: span 1;
  }
}

/* ── 2. INDIVIDUAL TEACHER HERO ── */
.teacher-hero {
  background: linear-gradient(145deg, #0c1829 0%, var(--color-navy-dark) 35%, var(--color-navy) 70%, #253a68 100%);
  padding: var(--space-16) 0 var(--space-12);
  border-bottom: 2px solid rgba(201, 168, 76, 0.25);
  position: relative;
  overflow: hidden;
}

.teacher-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.teacher-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 65%);
  pointer-events: none;
  border-radius: 50%;
}

.teacher-hero-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Photo Area */
.teacher-photo-wrapper {
  position: relative;
}

.teacher-photo-main {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: linear-gradient(145deg, #1a2f5a 0%, var(--color-navy-light) 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.teacher-photo-avatar {
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: -2px;
}

.teacher-photo-badge {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  background: rgba(12, 24, 41, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.photo-badge-stat {
  text-align: center;
}

.photo-badge-stat .val {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
}

.photo-badge-stat .lbl {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

/* ── TEACHER HERO TEXT: override base.css navy default ── */
.teacher-hero,
.teacher-hero .teacher-info h1,
.teacher-hero h1 {
  color: #ffffff !important;
}

.teacher-hero h2,
.teacher-hero h3,
.teacher-hero h4 {
  color: #ffffff !important;
}

.teacher-hero p,
.teacher-hero .teacher-qualification {
  color: rgba(255, 255, 255, 0.88) !important;
}

.teacher-hero .teacher-hero__rating .count {
  color: rgba(255, 255, 255, 0.7) !important;
}

.teacher-hero .teacher-hero__rating .score {
  color: #ffffff !important;
}

/* Teacher Info */
.teacher-info .badge {
  margin-bottom: var(--space-4);
}

.teacher-info h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: var(--space-2);
  line-height: 1.15;
  font-weight: 800;
}

.teacher-qualification {
  font-size: var(--text-base);
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: var(--space-5);
}

.teacher-hero__rating {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.teacher-hero__rating .stars {
  display: flex;
  color: var(--color-gold);
  gap: 3px;
}

.teacher-hero__rating .score {
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}

.teacher-hero__rating .count {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.teacher-tag {
  background: transparent;
  border: 1px solid rgba(235, 232, 232, 0.25);
  color: var(--color-gold-light);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

.teacher-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-xl);
}

.teacher-quick-stat {
  text-align: center;
}

.teacher-quick-stat .val {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
}

.teacher-quick-stat .lbl {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.teacher-cta-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.btn-free-trial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #C9A84C, #b8892a);
  color: #0f1f3d !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.95rem 1.8rem;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
  transition: all 0.3s ease;
}

.btn-free-trial:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.5);
}

.btn-whatsapp-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.8rem;
  border-radius: 14px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.btn-whatsapp-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* ── Teacher Hero Tags (visible on dark navy hero) ── */
.teacher-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.teacher-tag i, .teacher-tag svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

@media (max-width:1024px) {
  .teacher-hero-inner {
    grid-template-columns: 260px 1fr;
    gap: var(--space-8);
  }
}

@media (max-width:768px) {
  .teacher-hero-inner {
    grid-template-columns: 1fr;
  }

  .teacher-photo-wrapper {
    max-width: 260px;
    margin: 0 auto;
  }

  .teacher-info {
    text-align: center;
  }

  .teacher-info h1 {
    font-size: var(--text-4xl);
  }

  .teacher-hero__rating {
    justify-content: center;
  }

  .teacher-tags {
    justify-content: center;
  }

  .teacher-cta-row {
    justify-content: center;
  }

  .teacher-quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 3. CONTENT AREA ── */
.teacher-content {
  padding: var(--space-16) 0;
  background: var(--color-cream);
}

.teacher-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-10);
  align-items: start;
}

.teacher-section {
  background: var(--color-white);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
}

.teacher-section:last-child {
  margin-bottom: 0;
}

.teacher-section h2 {
  font-size: var(--text-2xl);
  color: var(--color-navy);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-cream-dark);
  position: relative;
}

.teacher-section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--color-gold);
}

.teacher-section p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.85;
  margin-bottom: var(--space-4);
}

.teacher-section p:last-child {
  margin-bottom: 0;
}

/* Teaching method cards */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.method-card {
  background: var(--color-cream);
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid var(--color-cream-dark);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.method-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-gold-dark);
}

.method-card-icon i {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.method-card h4 {
  font-size: 0.9rem;
  color: var(--color-navy);
  font-weight: 700;
  margin-bottom: 4px;
}

.method-card p {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

@media (max-width:640px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 4. REVIEW CARDS (Premium) ── */
.reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.review-card:hover {
  box-shadow: 0 8px 32px rgba(27, 43, 75, 0.08);
  transform: translateY(-2px);
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.2;
  pointer-events: none;
}

.review-stars {
  display: flex;
  gap: 3px;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.review-stars i {
  width: 17px;
  height: 17px;
}

.review-text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.75;
  font-style: italic;
  margin: 0 0 1.25rem;
  padding-top: 0.5rem;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--color-cream-dark);
  gap: 1rem;
  flex-wrap: wrap;
}

.review-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-gold);
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-navy);
}

.review-location {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.review-date {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

/* ── 5. SIDEBAR ── */
.teacher-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.teacher-sidebar-card {
  background: var(--color-white);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.teacher-sidebar-card h3 {
  font-size: 1rem;
  color: var(--color-navy);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-cream-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.teacher-sidebar-card h3 i {
  color: var(--color-gold);
  width: 18px;
  height: 18px;
}

/* Booking card */
.booking-card {
  background: linear-gradient(145deg, #0c1829, var(--color-navy));
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.booking-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.booking-card h3 {
  color: var(--color-gold);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  border: none;
  padding: 0;
}

.booking-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.booking-card .btn-book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #C9A84C, #b8892a);
  color: #0f1f3d !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.booking-card .btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.45);
}

.booking-card .btn-book i {
  width: 18px;
  height: 18px;
}

.booking-price {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
}

.booking-price strong {
  color: var(--color-gold);
}

/* Schedule */
.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-cream-dark);
}

.schedule-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.schedule-item .day {
  color: var(--color-navy);
  font-weight: 600;
}

.schedule-item .time {
  color: var(--color-text-secondary);
  font-size: 0.83rem;
}

/* Language tags */
.lang-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.5rem;
}

.lang-tag {
  background: var(--color-cream);
  border: 1px solid var(--color-cream-dark);
  color: var(--color-navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Credential list */
.credentials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 0.75rem;
  background: var(--color-cream);
  border-radius: 10px;
}

.credential-item i {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.credential-item span {
  font-size: 0.88rem;
  color: var(--color-navy);
  font-weight: 600;
}

/* Courses taught */
.courses-taught-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.courses-taught-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.courses-taught-list li i {
  width: 15px;
  height: 15px;
  color: var(--color-gold);
  flex-shrink: 0;
}

@media (max-width:1024px) {
  .teacher-layout {
    grid-template-columns: 1fr;
  }

  .teacher-sidebar {
    position: static;
  }
}

/* Breadcrumb on dark hero */
.teacher-hero .course-breadcrumb a {
  color: rgba(255, 255, 255, 0.65) !important;
}

.teacher-hero .course-breadcrumb a:hover {
  color: var(--color-gold) !important;
}

.teacher-hero .course-breadcrumb__sep {
  color: rgba(255, 255, 255, 0.35) !important;
}

.teacher-hero .course-breadcrumb__current {
  color: var(--color-gold) !important;
  font-weight: 600;
}