/* ═══════════════════════════════════════════
   AURORA ENGLISH CENTER — Homepage Styles
   Chỉ dùng cho index.html
   ═══════════════════════════════════════════ */

/* ═══ HERO ═══ */
.hero {
  padding: 64px 0 96px;
  background: linear-gradient(170deg, #EFF6FF 0%, #F0FDF4 50%, #FFFBEB 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .1), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, .08), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--green-light);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.hero-badge::before {
  content: '✨';
  font-size: 14px;
}

.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--navy);
  letter-spacing: -.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
  position: relative;
  display: inline-block;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(59, 130, 246, .2);
  border-radius: 4px;
  z-index: -1;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-desc strong {
  color: var(--text);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-topic-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-topic-card {
  --topic-color: var(--blue);
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-lg);
  color: var(--topic-color);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: box-shadow .25s;
  animation: float-card 3s ease-in-out infinite;
  will-change: transform;
  pointer-events: auto;
  z-index: 2;
}

.hero-topic-card:nth-child(1) {
  --topic-color: var(--blue);
  top: 28%;
  right: -8%;
  animation-delay: .3s;
}

.hero-topic-card:nth-child(2) {
  --topic-color: var(--green);
  top: 56%;
  right: -8%;
  animation: float-card 3s ease-in-out infinite;
  animation-delay: .3s;
  will-change: transform;
}

.hero-topic-card:nth-child(3) {
  --topic-color: var(--orange);
  top: 56%;
  left: -8%;
  animation: float-card 3s ease-in-out infinite;
  animation-delay: .3s;
  will-change: transform;
}

.hero-topic-card:nth-child(4) {
  --topic-color: var(--purple);
  top: 28%;
  left: -8%;
  animation-delay: .3s;
}

.hero-topic-card:nth-child(5) {
  --topic-color: var(--pink);
  bottom: -10px;
  left: 50%;
  transform: translate(-50%, 0);
  animation: float-center 3s ease-in-out infinite;
  animation-delay: .3s;
  will-change: transform;
}

@keyframes float-card {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes float-center {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -8px);
  }
}

.hero-topic-card:nth-child(6) {
  --topic-color: var(--amber);
  bottom: 6%;
  left: -2%;
  animation-delay: .3s;
}

.hero-topic-card:nth-child(7) {
  --topic-color: var(--blue-vivid);
  bottom: 6%;
  right: -2%;
  animation-delay: .3s;
}

/* ═══ HOVER: shimmer + glow border + scale ═══ */
.hero-topic-card {
  overflow: hidden;
}

/* Tia sáng trắng quét ngang khi hover */
.hero-topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg,
      transparent 20%,
      rgba(255, 255, 255, .85) 50%,
      transparent 80%);
  transition: left .7s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
  z-index: 3;
}

.hero-topic-card:hover::before {
  left: 160%;
}

.hero-topic-card:hover {
  scale: 1.08;
  box-shadow:
    0 0 0 2px var(--topic-color),
    0 18px 42px -8px var(--topic-color),
    0 6px 16px rgba(15, 23, 42, .15);
  z-index: 10;
  animation-play-state: paused;
}

/* Icon nhún nhẹ khi hover */
.hero-topic-card:hover .topic-icon {
  animation: icon-bounce .5s ease-in-out;
}

@keyframes icon-bounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25) rotate(-8deg);
  }
}

.topic-icon {
  flex-shrink: 0;
  font-size: 18px;
}

.topic-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.topic-title {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.hero-topic-card small {
  display: none;
}

@media (prefers-reduced-motion: reduce) {

  .hero-topic-card,
  .hero-float {
    animation: none;
    margin-top: 0;
  }
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.hero-stat span {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
  display: block;
  margin-top: 6px;
}

.hero-vis {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(15, 23, 42, .12));
}

.hero-float {
  position: absolute;
  background: #fff;
  border-radius: var(--r-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 3s ease-in-out infinite;
  will-change: margin-top;
  z-index: 2;
}

.hero-float.f1 {
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
  color: var(--blue);
}

.hero-float.f2 {
  top: 6%;
  right: -2%;
  animation-delay: .3s;
  color: var(--green);
}

.hero-float.f3 {
  top: 6%;
  left: -2%;
  animation-delay: 2.7s;
  color: var(--orange);
}

.hero-float .fl-icon {
  font-size: 18px;
}

/* ═══ HOVER: shimmer + glow border + scale (đồng bộ với hero-topic-card) ═══ */
.hero-float {
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: scale .25s ease, box-shadow .25s ease;
}

/* Tia sáng quét ngang */
.hero-float::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg,
      transparent 20%,
      rgba(255, 255, 255, .85) 50%,
      transparent 80%);
  transition: left .7s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
  z-index: 3;
}

.hero-float:hover::before {
  left: 160%;
}

.hero-float:hover {
  scale: 1.08;
  box-shadow:
    0 0 0 2px currentColor,
    0 18px 42px -8px currentColor,
    0 6px 16px rgba(15, 23, 42, .15);
  z-index: 10;
  animation-play-state: paused;
}

.hero-float:hover .fl-icon {
  animation: icon-bounce .5s ease-in-out;
}

@keyframes float {

  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -8px;
  }
}

/* ═══ STUDENT PROBLEMS ═══ */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.problem-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 20px;
  text-align: center;
  transition: all .3s;
  cursor: pointer;
}

.problem-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.problem-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}

.problem-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

.problem-card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ═══ SERVICES ═══ */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.srv-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.srv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: left;
}

.srv-card:nth-child(2)::before {
  background: var(--green);
}

.srv-card:nth-child(3)::before {
  background: var(--orange);
}

.srv-card:hover::before {
  transform: scaleX(1);
}

.srv-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}

.srv-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 24px;
}

.srv-card:nth-child(1) .srv-icon {
  background: var(--blue-light);
}

.srv-card:nth-child(2) .srv-icon {
  background: var(--green-light);
}

.srv-card:nth-child(3) .srv-icon {
  background: var(--orange-light);
}

.srv-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy);
}

.srv-card p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 20px;
}

.srv-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}

.srv-card:hover .srv-link {
  gap: 8px;
}

/* ═══ TIMELINE ROADMAP ═══ */
.timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--green), var(--orange));
  opacity: .3;
}

.timeline-horizontal {
  max-width: 100%;
}

.timeline-horizontal::before {
  display: none;
}

.tl-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
  align-items: flex-start;
}

.tl-item {
  display: block;
  position: relative;
  text-align: left;
  transition: all .25s;
}

.tl-num {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  box-shadow: var(--shadow-md);
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  margin-bottom: 0;
  transition: all .25s;
}

.tl-row:nth-child(1) .tl-item:nth-child(1) .tl-num {
  background: linear-gradient(135deg, var(--blue), var(--blue-vivid));
}

.tl-row:nth-child(1) .tl-item:nth-child(2) .tl-num {
  background: linear-gradient(135deg, var(--green), #10B981);
}

.tl-row:nth-child(1) .tl-item:nth-child(3) .tl-num {
  background: linear-gradient(135deg, var(--purple), #A78BFA);
}

.tl-row:nth-child(2) .tl-item:nth-child(1) .tl-num {
  background: linear-gradient(135deg, var(--blue-vivid), #60A5FA);
}

.tl-row:nth-child(2) .tl-item:nth-child(2) .tl-num {
  background: linear-gradient(135deg, var(--amber), #FBBF24);
}

.tl-row:nth-child(2) .tl-item:nth-child(3) .tl-num {
  background: linear-gradient(135deg, var(--orange), #FB923C);
}

.tl-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 16px 20px 86px;
  transition: all .25s;
  width: 100%;
  min-height: 150px;
  position: relative;
  z-index: 1;
}

.tl-item:hover .tl-content {
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.tl-item:hover .tl-num {
  transform: translateY(-2px);
}

.tl-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
  line-height: 1.3;
}

.tl-content p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ═══ MATERIALS 3D BOOK ═══ */
.mat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.mat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}

.mat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue);
}

.mat-cover {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 600px;
  overflow: hidden;
}

.mat-card:nth-child(1) .mat-cover {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
}

.mat-card:nth-child(2) .mat-cover {
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
}

.mat-card:nth-child(3) .mat-cover {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
}

.mat-card:nth-child(4) .mat-cover {
  background: linear-gradient(135deg, #FFE4E6, #FECDD3);
}

.book-3d {
  position: relative;
  transform: rotateY(-22deg) rotateX(4deg);
  transition: transform .4s ease;
  width: 110px;
  height: 150px;
  transform-style: preserve-3d;
}

.mat-card:hover .book-3d {
  transform: rotateY(-12deg) rotateX(2deg) translateY(-4px);
}

.book-cover {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 3px 6px 6px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  box-shadow: 6px 8px 20px rgba(15, 23, 42, .25), inset 1px 0 2px rgba(255, 255, 255, .3);
  text-align: center;
}

.book-cover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(to right, rgba(0, 0, 0, .3), transparent);
  border-radius: 3px 0 0 3px;
}

.book-cover::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 2px;
  bottom: 2px;
  width: 6px;
  background: linear-gradient(to right, #f8f8f8, #e8e8e8);
  transform: translateZ(-4px);
}

.book-emoji {
  font-size: 36px;
  margin-bottom: 8px;
}

.book-line {
  height: 2px;
  background: currentColor;
  opacity: .3;
  margin: 2px 8px;
  border-radius: 1px;
}

.book-line.short {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.mat-card:nth-child(1) .book-cover {
  color: var(--blue);
}

.mat-card:nth-child(2) .book-cover {
  color: var(--green);
}

.mat-card:nth-child(3) .book-cover {
  color: var(--amber);
}

.mat-card:nth-child(4) .book-cover {
  color: var(--pink);
}

.book-title {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
  letter-spacing: -.01em;
}

.book-grade {
  font-size: 11px;
  font-weight: 800;
  margin-top: 6px;
  color: inherit;
}

.mat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--orange);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  box-shadow: var(--shadow);
}

.mat-info {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mat-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.mat-tag {
  font-size: 10px;
  color: var(--text-sub);
  background: var(--bg-cool);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.mat-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  min-height: 42px;
  color: var(--navy);
}

.mat-meta {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mat-features {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 12px;
  line-height: 1.6;
}

.mat-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  margin-top: auto;
}

.mat-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
}

.mat-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.mat-actions {
  display: flex;
  gap: 8px;
}

.mat-actions .btn {
  padding: 9px 14px;
  font-size: 13px;
  min-height: 38px;
  flex: 1;
}

/* ═══ TEACHER ═══ */
.teacher-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  padding: 48px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.teacher-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.teacher-info h3 {
  font-family: 'Merriweather', serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}

.teacher-cred {
  font-size: 14px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: .01em;
}

.teacher-info p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 14px;
}

.teacher-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.teacher-spec {
  background: var(--bg-cool);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}

.teacher-quote {
  font-style: italic;
  color: var(--blue);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 20px;
  border-left: 3px solid var(--blue);
  background: var(--bg-blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-top: 18px;
  line-height: 1.7;
}

/* ═══ USP ═══ */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.usp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.usp-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.usp-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.usp-card:nth-child(2) .usp-icon {
  background: var(--green-light);
}

.usp-card:nth-child(3) .usp-icon {
  background: var(--orange-light);
}

.usp-card:nth-child(4) .usp-icon {
  background: #FCE7F3;
}

.usp-card:nth-child(5) .usp-icon {
  background: #EDE9FE;
}

.usp-card:nth-child(6) .usp-icon {
  background: #FEF3C7;
}

.usp-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
}

.usp-card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ═══ TESTIMONIALS ═══ */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.test-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}

.test-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.test-stars {
  color: var(--amber);
  font-size: 15px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.test-card blockquote {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 20px;
  color: var(--text);
  flex: 1;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.test-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.test-card:nth-child(1) .test-avatar {
  background: linear-gradient(135deg, var(--blue), var(--blue-vivid));
}

.test-card:nth-child(2) .test-avatar {
  background: linear-gradient(135deg, var(--green), #10B981);
}

.test-card:nth-child(3) .test-avatar {
  background: linear-gradient(135deg, var(--orange), #FB923C);
}

.test-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.test-detail {
  font-size: 12px;
  color: var(--text-sub);
}

/* ═══ FAQ ═══ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  transition: all .25s;
}

.faq-item:hover {
  border-color: var(--blue);
}

.faq-item.open {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.faq-q {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background .2s;
  color: var(--navy);
  gap: 16px;
}

.faq-q:hover {
  background: var(--bg-cool);
}

.faq-q .arrow {
  transition: transform .3s;
  font-size: 13px;
  color: var(--text-sub);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-cool);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
  background: var(--blue);
  color: #fff;
}

.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all .3s ease;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}

.faq-item.open .faq-a {
  padding: 0 24px 20px;
  max-height: 300px;
}

/* ═══ CTA BOTTOM ═══ */
.cta-bottom {
  padding: 88px 0;
  background: linear-gradient(135deg, var(--navy) 0%, #1E293B 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bottom::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .2), transparent 70%);
}

.cta-bottom::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, .15), transparent 70%);
}

.cta-bottom .wrap {
  position: relative;
  z-index: 1;
}

.cta-bottom h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 14px;
  color: #fff;
  letter-spacing: -.02em;
}

.cta-bottom p {
  font-size: 16px;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btns .btn {
  font-size: 16px;
  padding: 16px 32px;
  min-height: 54px;
}

/* ═══ HOMEPAGE MOBILE ═══ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto 32px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-topic-grid {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 560px;
    margin: 20px auto 0;
    pointer-events: auto;
  }

  .hero-topic-card {
    position: relative;
    inset: auto;
    width: auto;
    transform: none;
  }

  .hero-topic-card:nth-child(1),
  .hero-topic-card:nth-child(2),
  .hero-topic-card:nth-child(3),
  .hero-topic-card:nth-child(4),
  .hero-topic-card:nth-child(5),
  .hero-topic-card:nth-child(6),
  .hero-topic-card:nth-child(7) {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
  }

  .hero-topic-card:nth-child(5) {
    animation-name: float-card;
  }

  .hero-stats {
    justify-content: center;
    gap: 24px;
  }

  .hero-stat b {
    font-size: 24px;
  }

  .hero-vis {
    order: -1;
  }

  .hero-illustration {
    max-width: 320px;
  }

  .hero-float {
    display: none;
  }

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

  .srv-grid,
  .usp-grid,
  .test-grid {
    grid-template-columns: 1fr;
  }

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

  .teacher-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
    gap: 32px;
  }

  .teacher-photo {
    margin: 0 auto;
    width: 180px;
    height: 180px;
  }

  .teacher-quote {
    text-align: left;
  }

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

  .tl-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .tl-num {
    width: 52px;
    height: 52px;
    font-size: 19px;
    top: 16px;
    left: 16px;
    margin-bottom: 0;
  }

  .tl-content {
    padding: 18px 14px 18px 80px;
    min-height: 130px;
  }

  .tl-content h4 {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .tl-content p {
    font-size: 12px;
  }

  .cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .cta-btns .btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 500px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-title {
    font-size: 13px;
  }

  .problems-grid {
    grid-template-columns: 1fr;
  }

  .mat-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .tl-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tl-num {
    width: 48px;
    height: 48px;
    font-size: 17px;
    top: 14px;
    left: 14px;
    margin-bottom: 0;
  }

  .tl-content {
    padding: 14px 12px 14px 72px;
    min-height: 116px;
  }

  .tl-content h4 {
    font-size: 13px;
  }

  .tl-content p {
    font-size: 11px;
    line-height: 1.4;
  }
}

/* ═══ GALLERY ═══ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.gallery-item {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-cool);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(15,23,42,.72), transparent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 500px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
}
