/* ============================================================
   Abadi Guru Academy - courses, mentors, reviews and FAQ
   Scoped additions to css/style.css. No existing rules changed.
   ============================================================ */

.academy-section {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* Keep the education headline on two lines at desktop widths. */
.hero h1 {
  font-size: clamp(36px, 4.6vw, 52px);
}

.academy-section :focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.academy-head {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}

.academy-head .eyebrow {
  justify-content: center;
}

.academy-head h2 {
  font-size: clamp(29px, 4vw, 42px);
  margin-bottom: 16px;
}

.academy-head .lead {
  margin: 0 auto;
}

.academy-head-light .lead {
  color: #CBD5E1;
}

/* ---------- Courses ---------- */

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: var(--shadow);
}

.course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.course-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.course-number {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: #CBD5E1;
}

.course-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

.course-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 18px;
}

.course-outcomes {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.course-outcomes li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.course-outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 16px;
}

.course-meta span {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper-2);
}

.course-link,
.mentor-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.course-link span,
.mentor-link span {
  transition: transform .2s ease;
}

.course-link:hover,
.mentor-link:hover {
  color: var(--accent-hover);
}

.course-link:hover span,
.mentor-link:hover span {
  transform: translateX(4px);
}

.academy-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
  text-align: center;
}

.academy-cta-row p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* ---------- Mentors ---------- */

.mentor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mentor-card {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.academy-mentors .mentor-card h3 {
  font-size: 18px;
  margin: 0;
}

.mentor-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.mentor-avatar {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .02em;
}

.mentor-avatar-teal { background: #0E7C6B; }
.mentor-avatar-blue { background: #1D4ED8; }
.mentor-avatar-violet { background: #6D28D9; }

.mentor-role {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #5EEAD4;
}

.mentor-focus {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.mentor-bio {
  font-size: 14px;
  line-height: 1.65;
  color: #CBD5E1;
  margin-bottom: 16px;
}

.academy-mentors .mentor-link {
  color: #5EEAD4;
}

.academy-mentors .mentor-link:hover {
  color: #FFFFFF;
}

/* ---------- Testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.testimonial-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  color: #B45309;
  font-size: 17px;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  margin: 0 0 22px;
  color: var(--text-strong);
  font-size: 15.5px;
  line-height: 1.7;
}

.testimonial-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.testimonial-card figcaption strong {
  color: var(--text-strong);
  font-size: 14px;
}

.testimonial-card figcaption span {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- FAQ ---------- */

.edu-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.faq-intro h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-bottom: 16px;
}

.faq-intro p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 24px;
}

.edu-faq-layout .faq-list {
  max-width: none;
  margin: 0;
}

.edu-faq-layout .faq-q {
  min-height: 48px;
  padding: 18px 20px;
  font-size: 15px;
}

.edu-faq-layout .faq-a {
  font-size: 14.5px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1150px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .edu-faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-intro p {
    max-width: 640px;
  }

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

@media (max-width: 768px) {
  .academy-section {
    padding: 64px 0;
  }

  .academy-head {
    margin-bottom: 36px;
  }

  .course-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .course-card,
  .mentor-card,
  .testimonial-card {
    padding: 22px;
  }

  .academy-cta-row {
    margin-top: 28px;
  }
}

@media (max-width: 480px) {
  .academy-section {
    padding: 52px 0;
  }

  .academy-head h2 {
    font-size: 27px;
  }

  .course-meta span {
    font-size: 11.5px;
  }

  .mentor-top {
    gap: 12px;
  }

  .mentor-avatar {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .testimonial-card blockquote {
    font-size: 14.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .academy-section * {
    transition: none !important;
    animation: none !important;
  }
}
