:root {
  --fa-green-dark: #07331f;
  --fa-green: #0e4d33;
  --fa-green-light: #1c6b48;
  --fa-gold: #d9a441;
  --fa-gold-dark: #b5852f;
  --fa-cream: #f7f5ef;
  --fa-ink: #1c1c1c;
  --fa-surface: #ffffff;
  --fa-card-border: rgba(7, 51, 31, 0.1);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* =========================================================
   Dark Mode (Week 6) — all dark-mode colors live here
   ========================================================= */
body.dark-mode {
  --fa-cream: #10151b;
  --fa-ink: #e9e7e0;
  --fa-surface: #1a232c;
  --fa-card-border: rgba(255, 255, 255, 0.1);
  background-color: var(--fa-cream);
}

body.dark-mode .stat-label,
body.dark-mode .seat-status-text,
body.dark-mode .team-title,
body.dark-mode .achiever-detail,
body.dark-mode .testimonial-text,
body.dark-mode .results-summary-label,
body.dark-mode .gallery-results-count,
body.dark-mode .text-muted {
  color: rgba(233, 231, 224, 0.65) !important;
}

body.dark-mode .course-card,
body.dark-mode .feature-card,
body.dark-mode .team-card,
body.dark-mode .testimonial-card,
body.dark-mode .achiever-card,
body.dark-mode .results-summary-card,
body.dark-mode .award-card,
body.dark-mode .mv-card,
body.dark-mode .eligibility-card,
body.dark-mode .seat-card,
body.dark-mode .contact-info-card,
body.dark-mode .batch-compare-card,
body.dark-mode .fee-calc-card,
body.dark-mode .contact-form-card,
body.dark-mode .results-filter-bar,
body.dark-mode .course-finder-card,
body.dark-mode .static-map-card,
body.dark-mode .upload-cta-card,
body.dark-mode .faq-accordion .accordion-button,
body.dark-mode .faq-accordion .accordion-body,
body.dark-mode .gallery-filter-tabs,
body.dark-mode .office-hours-table,
body.dark-mode .syllabus-card,
body.dark-mode .countdown-card {
  background-color: var(--fa-surface) !important;
  border-color: var(--fa-card-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

body.dark-mode .static-map-card h6,
body.dark-mode .static-map-card p,
body.dark-mode .office-hours-table .day-label,
body.dark-mode .achiever-name,
body.dark-mode .team-card h5,
body.dark-mode .course-card h5,
body.dark-mode .feature-card h5 {
  color: var(--fa-ink);
}

body.dark-mode .results-table tbody tr,
body.dark-mode .results-table tbody td,
body.dark-mode .fee-table tbody tr,
body.dark-mode .fee-table tbody td,
body.dark-mode .fee-table tbody th,
body.dark-mode .compare-table tbody td {
  background-color: var(--fa-surface) !important;
  color: var(--fa-ink) !important;
  border-color: var(--fa-card-border);
}

body.dark-mode .fee-table tbody tr:hover,
body.dark-mode .fee-table tbody tr:hover td {
  background-color: rgba(217, 164, 65, 0.1) !important;
}

/* Headings, labels, and names that used a fixed green text color
   (designed for white cards) need to switch to the light ink color
   now that their card/surface backgrounds turn dark. */
body.dark-mode .eligibility-card h5,
body.dark-mode .results-filter-bar .form-label,
body.dark-mode .office-hours-table .day-label,
body.dark-mode .timeline-year,
body.dark-mode .contact-form-card .form-label,
body.dark-mode .course-finder-card .form-label,
body.dark-mode .course-finder-result-title,
body.dark-mode .fee-calc-card .form-label,
body.dark-mode .fee-calc-result-label,
body.dark-mode .fee-calc-result-amount,
body.dark-mode .seat-card h6,
body.dark-mode .success-breakdown-header .course-name,
body.dark-mode .batch-compare-label,
body.dark-mode .testimonial-name,
body.dark-mode .achiever-name,
body.dark-mode .static-map-card h6,
body.dark-mode .office-hours-table,
body.dark-mode .contact-quick-link span,
body.dark-mode .results-summary-number,
body.dark-mode .stat-number,
body.dark-mode .apply-step h6,
body.dark-mode .selection-step-label {
  color: var(--fa-ink) !important;
}

/* Defensive, blanket fix: any heading or paragraph sitting inside a
   card/section — regardless of which specific card class it's in —
   must use the light ink color once its background goes dark.
   (Catches Bootstrap's own default .card text color, which does not
   follow our --fa-ink variable unless forced here.) */
body.dark-mode .card,
body.dark-mode .card h1,
body.dark-mode .card h2,
body.dark-mode .card h3,
body.dark-mode .card h4,
body.dark-mode .card h5,
body.dark-mode .card h6,
body.dark-mode .card p,
body.dark-mode section h1,
body.dark-mode section h2,
body.dark-mode section h3,
body.dark-mode section h4,
body.dark-mode section h5,
body.dark-mode section h6,
body.dark-mode section p:not(.testimonial-text):not(.lead) {
  color: var(--fa-ink) !important;
}

/* Accordion (FAQ) — collapsed question text and body copy need to flip too */
body.dark-mode .faq-accordion .accordion-button {
  color: var(--fa-ink) !important;
}

body.dark-mode .faq-accordion .accordion-body {
  color: var(--fa-ink) !important;
}

/* Outline-style buttons/badges that used dark green border+text on a
   transparent background — nearly invisible once the page behind them
   goes dark. Switch them to gold, which reads clearly either way. */
body.dark-mode .btn-outline-portal,
body.dark-mode .gallery-action-btn,
body.dark-mode .view-toggle-btn,
body.dark-mode .results-filter-bar .btn-reset-filters,
body.dark-mode .static-map-cta,
body.dark-mode .gallery-filter-btn:not(.active) {
  border-color: var(--fa-gold) !important;
  color: var(--fa-gold) !important;
}

body.dark-mode .view-toggle-btn.active,
body.dark-mode .view-toggle-btn:hover,
body.dark-mode .btn-outline-portal:hover,
body.dark-mode .results-filter-bar .btn-reset-filters:hover {
  background-color: var(--fa-gold) !important;
  color: var(--fa-green-dark) !important;
}

body.dark-mode .gallery-filter-btn:not(.active) .filter-count {
  background-color: rgba(217, 164, 65, 0.15);
  color: var(--fa-gold);
}

body.dark-mode .testimonial-nav-icon {
  color: var(--fa-gold);
  border-color: var(--fa-card-border);
}

body.dark-mode .testimonial-carousel .carousel-control-prev:hover .testimonial-nav-icon,
body.dark-mode .testimonial-carousel .carousel-control-next:hover .testimonial-nav-icon {
  background-color: var(--fa-gold);
  color: var(--fa-green-dark);
}

body.dark-mode .office-hours-table .day-label,
body.dark-mode .office-hours-table td {
  color: var(--fa-ink) !important;
}

/* Badges/status pills that sit on cards with a low-opacity tinted
   background — brighten the tint and text so they stay legible */
body.dark-mode .selection-status-badge {
  background-color: rgba(217, 164, 65, 0.18);
  color: var(--fa-gold);
}

body.dark-mode .status-badge.status-selected {
  background-color: rgba(46, 204, 113, 0.18);
  color: #6fe3a0;
}

body.dark-mode .status-badge.status-qualified {
  background-color: rgba(217, 164, 65, 0.18);
  color: var(--fa-gold);
}

body.dark-mode .status-badge.status-not-selected {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(233, 231, 224, 0.75);
}

body.dark-mode .status-badge.status-in-process {
  background-color: rgba(28, 107, 72, 0.25);
  color: #7fd6ae;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--fa-cream);
  font-family: var(--font-body);
  color: var(--fa-ink);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

.btn {
  font-family: var(--font-body);
  letter-spacing: 0.3px;
}

/* ---------- Section rhythm ---------- */
.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.pb-6 {
  padding-bottom: 6rem;
}

@media (max-width: 767.98px) {
  .py-6 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .pb-6 {
    padding-bottom: 3.5rem;
  }
}

/* =========================================================
   Navbar — unique pill-style redesign
   ========================================================= */
#mainNav {
  background: linear-gradient(115deg, var(--fa-green-dark) 0%, var(--fa-green) 55%, var(--fa-green-dark) 100%);
  box-shadow: 0 4px 22px rgba(7, 51, 31, 0.35);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--fa-gold);
}

#mainNav .navbar-brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: 0.5px;
}

#mainNav .navbar-brand i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: rgba(217, 164, 65, 0.16);
  border: 1px solid rgba(217, 164, 65, 0.4);
  color: var(--fa-gold);
  font-size: 1.05rem;
  margin-right: 10px !important;
}

#mainNav .navbar-nav {
  gap: 4px;
}

.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--fa-gold);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  transition: background-color 0.2s ease, transform 0.3s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background-color: rgba(217, 164, 65, 0.18);
  border-color: var(--fa-gold);
  transform: rotate(20deg);
}

#mainNav .nav-portal-btn {
  border: 1.5px solid var(--fa-gold);
  color: var(--fa-gold) !important;
  background-color: transparent !important;
  font-weight: 700;
}

body.dark-mode #mainNav .nav-portal-btn {
  box-shadow: 0 0 12px rgba(217, 164, 65, 0.35);
}

#mainNav .nav-portal-btn:hover {
  background-color: var(--fa-gold) !important;
  color: var(--fa-green-dark) !important;
  transform: translateY(-1px) scale(1.02);
}

#mainNav .nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  padding: 0.55rem 1.05rem !important;
  border-radius: 30px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

/* remove the old underline indicator entirely */
#mainNav .nav-link::after {
  content: none;
}

#mainNav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-1px);
}

#mainNav .nav-link.active {
  background-color: var(--fa-gold);
  color: var(--fa-green-dark);
  box-shadow: 0 4px 14px rgba(217, 164, 65, 0.45);
}

#mainNav .nav-link.active:hover {
  background-color: var(--fa-gold-dark);
  color: #fff;
  transform: none;
}

.btn-portal {
  background-color: var(--fa-gold);
  border-color: var(--fa-gold);
  color: var(--fa-green-dark);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(217, 164, 65, 0.25);
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-portal:hover {
  background-color: var(--fa-gold-dark);
  border-color: var(--fa-gold-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 164, 65, 0.35);
}

/* ---------- Hero ---------- */
#hero {
  position: relative;
  background: linear-gradient(135deg, var(--fa-green-dark) 0%, var(--fa-green) 100%);
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: repeating-linear-gradient(
    -45deg,
    #ffffff 0px,
    #ffffff 2px,
    transparent 2px,
    transparent 26px
  );
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fa-gold);
}

#hero h1 {
  line-height: 1.15;
}

#hero .lead {
  color: rgba(255, 255, 255, 0.85);
}

.hero-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.15);
}

.hero-image {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: var(--fa-cream);
  border-left: 4px solid var(--fa-gold);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-badge-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--fa-green-dark);
  line-height: 1;
}

.hero-badge-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fa-green);
  line-height: 1.2;
}

/* ---------- Stats Strip ---------- */
#stats {
  background-color: var(--fa-surface);
  border-bottom: 1px solid rgba(7, 51, 31, 0.08);
}

.stat-number {
  font-family: var(--font-display);
  color: var(--fa-green);
  font-size: 2.4rem;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Section Eyebrow (chevron marker) ---------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--fa-gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.85rem;
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 12px;
  margin-right: 8px;
  background-color: var(--fa-gold);
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
}

.cta-eyebrow {
  color: var(--fa-gold);
}

.section-image {
  box-shadow: 0 14px 34px rgba(7, 51, 31, 0.18);
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -14px;
  width: 90px;
  height: 90px;
  border-top: 4px solid var(--fa-gold);
  border-left: 4px solid var(--fa-gold);
  border-radius: 16px 0 0 0;
  z-index: -1;
}

/* ---------- Feature Cards ---------- */
.feature-card {
  background-color: var(--fa-surface);
  border-top: 3px solid var(--fa-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(7, 51, 31, 0.12);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: var(--fa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease;
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--fa-gold);
}

.feature-card:hover .feature-icon {
  background-color: var(--fa-gold);
}

.feature-card:hover .feature-icon i {
  color: var(--fa-green-dark);
}
.announcement-card {
  display: flex;
  flex-direction: column;
}

.announcement-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fa-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.announcement-link {
  color: var(--fa-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.announcement-link:hover {
  color: var(--fa-gold-dark);
  transform: translateX(3px);
}

body.dark-mode .announcement-date {
  color: var(--fa-gold);
}
/* ---------- Course Cards ---------- */
.course-card {
  background-color: var(--fa-surface);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(7, 51, 31, 0.12);
}

.course-img-wrap {
  position: relative;
}

.course-img {
  height: 190px;
  object-fit: cover;
  display: block;
}

.course-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: var(--fa-gold);
  color: var(--fa-green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

/* ---------- CTA Banner ---------- */
#cta {
  background: linear-gradient(135deg, var(--fa-green) 0%, var(--fa-green-dark) 100%);
  color: #ffffff;
}

#cta h2 {
  color: #ffffff;
}

#cta .lead {
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Outline Portal Button ---------- */
.btn-outline-portal {
  border: 1.5px solid var(--fa-green);
  color: var(--fa-green);
  font-weight: 600;
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-outline-portal:hover {
  background-color: var(--fa-green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(7, 51, 31, 0.2);
}

/* ---------- Footer ---------- */
#site-footer {
  background-color: var(--fa-green-dark);
  color: rgba(255, 255, 255, 0.85);
  border-top: 3px solid var(--fa-gold);
}

#site-footer h5,
#site-footer h6 {
  color: var(--fa-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

#site-footer h5 {
  font-family: var(--font-display);
  text-transform: none;
  font-size: 1.15rem;
}

#site-footer p,
#site-footer .small {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links li,
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a:hover {
  color: var(--fa-gold);
}

.footer-links a i {
  color: var(--fa-gold);
  font-size: 0.85rem;
  width: 16px;
  display: inline-block;
  text-align: center;
  transition: transform 0.2s ease;
}

.footer-links a:hover i {
  transform: translateX(2px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
  background-color: var(--fa-gold);
  color: var(--fa-green-dark);
  transform: translateY(-3px);
}

/* ---------- Page content (sub-pages) ---------- */
.page-content {
  min-height: 50vh;
}

/* ---------- Inner Page Banner ---------- */
#page-banner {
  position: relative;
  overflow: hidden;
  padding: 7.5rem 0 5rem;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(135deg, rgba(7, 51, 31, 0.93) 0%, rgba(14, 77, 51, 0.88) 100%),
    url("https://images.unsplash.com/photo-1580582932707-520aed937b7b?fm=jpg&q=80&w=1600&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
}

.page-banner-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--fa-gold);
  background-color: rgba(217, 164, 65, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.page-banner-icon i {
  font-size: 1.6rem;
  color: var(--fa-gold);
}

.page-banner-divider {
  width: 60px;
  height: 3px;
  background-color: var(--fa-gold);
  margin: 1.25rem auto 0;
}

#page-banner h1 {
  font-size: 2.6rem;
}

#page-banner .breadcrumb {
  font-size: 0.9rem;
  background: transparent;
}

#page-banner .breadcrumb-item + .breadcrumb-item {
  padding-left: 0.6rem;
}

#page-banner .breadcrumb-item + .breadcrumb-item::before {
  content: "\203A";
  color: var(--fa-gold);
  padding-right: 0.6rem;
  font-size: 1.1rem;
}

#page-banner .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

#page-banner .breadcrumb-item a:hover {
  color: var(--fa-gold);
}

#page-banner .breadcrumb-item.active {
  color: var(--fa-gold);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    background-color: var(--fa-green-dark);
    padding: 1rem;
    border-radius: 0 0 12px 12px;
    margin-top: 0.5rem;
  }

  #mainNav .nav-link {
    border-radius: 10px;
  }

  #mainNav .nav-portal-btn {
    margin-top: 8px;
    text-align: center;
  }

  .btn-portal {
    width: fit-content;
  }

  .hero-badge {
    left: 10px;
    bottom: 10px;
    padding: 0.7rem 0.9rem;
  }
}

/* ---------- Team Cards (About page) ---------- */
.team-card {
  background-color: var(--fa-surface);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(7, 51, 31, 0.12);
}

/* Updated: now used on an <img> tag instead of a div+icon */
.team-photo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--fa-gold);
  margin: 0 auto 1rem;
  display: block;
  object-fit: cover;
}

.team-title {
  color: var(--fa-gold-dark);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ---------- Mission / Vision panels ---------- */
.mv-card {
  background-color: var(--fa-surface);
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--fa-gold);
}

.mv-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: var(--fa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.mv-icon i {
  font-size: 1.5rem;
  color: var(--fa-gold);
}

/* =========================================================
   Courses & Admissions pages
   ========================================================= */

/* ---------- Numbered "How to Apply" steps ---------- */
.apply-step {
  border: none !important;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.1rem 0.85rem;
  background-color: transparent !important;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.apply-step:hover {
  background-color: rgba(217, 164, 65, 0.1) !important;
  transform: translateX(4px);
}

.apply-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--fa-green);
  color: var(--fa-gold);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  border: 3px solid var(--fa-cream);
  box-shadow: 0 2px 8px rgba(7, 51, 31, 0.2);
}

/* ---------- Eligibility cards ---------- */
.eligibility-card {
  background-color: var(--fa-surface);
  border-radius: 1rem;
  padding: 1.75rem;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--fa-green);
}

.eligibility-card h5 {
  color: var(--fa-green-dark);
}

/* ---------- Required documents checklist ---------- */
.doc-list .list-group-item {
  border: none;
  border-bottom: 1px solid rgba(7, 51, 31, 0.08);
  background-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.25rem;
}

.doc-list .list-group-item:last-child {
  border-bottom: none;
}

.doc-list i {
  color: var(--fa-gold-dark);
  font-size: 1.15rem;
}

/* =========================================================
   Results page
   ========================================================= */

/* ---------- Filter bar ---------- */
.results-filter-bar {
  background-color: var(--fa-surface);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.results-filter-bar .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--fa-green-dark);
  margin-bottom: 0.4rem;
}

.results-filter-bar .form-select,
.results-filter-bar .form-control {
  border: 1.5px solid rgba(7, 51, 31, 0.15);
  border-radius: 0.6rem;
  padding: 0.6rem 0.9rem;
}

.results-filter-bar .form-select:focus,
.results-filter-bar .form-control:focus {
  border-color: var(--fa-gold);
  box-shadow: 0 0 0 0.2rem rgba(217, 164, 65, 0.2);
}

.results-filter-bar .btn-reset-filters {
  color: var(--fa-green);
  font-weight: 600;
  background-color: transparent;
  border: 1.5px solid var(--fa-green);
  border-radius: 0.6rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s ease;
}

.results-filter-bar .btn-reset-filters:hover {
  background-color: var(--fa-green);
  color: #fff;
  transform: rotate(-90deg);
}

/* ---------- Status badges ---------- */
.status-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-badge.status-selected {
  background-color: rgba(14, 77, 51, 0.12);
  color: var(--fa-green);
}

.status-badge.status-qualified {
  background-color: rgba(217, 164, 65, 0.15);
  color: var(--fa-gold-dark);
}

.status-badge.status-not-selected {
  background-color: rgba(0, 0, 0, 0.06);
  color: #6c757d;
}

.status-badge.status-in-process {
  background-color: rgba(28, 107, 72, 0.1);
  color: var(--fa-green-light);
}

.no-results-row td {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #6c757d;
}

/* ---------- Results table ---------- */
.results-table thead th {
  white-space: nowrap;
}

.results-table tbody td {
  vertical-align: middle;
}

/* =========================================================
   Gallery page
   ========================================================= */

/* ---------- Filter buttons ---------- */
/* ---------- Filter tabs (segmented style) ---------- */
.gallery-filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background-color: var(--fa-surface);
  border-radius: 50px;
  padding: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.gallery-filter-btn {
  border: none;
  color: var(--fa-green-dark);
  background-color: transparent;
  font-weight: 600;
  border-radius: 40px;
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.gallery-filter-btn i {
  font-size: 0.95rem;
}

.gallery-filter-btn:hover {
  background-color: rgba(217, 164, 65, 0.12);
  transform: none;
}

.gallery-filter-btn.active {
  background-color: var(--fa-gold);
  color: var(--fa-green-dark);
  box-shadow: 0 4px 12px rgba(217, 164, 65, 0.4);
}

.gallery-filter-btn.active:hover {
  background-color: var(--fa-gold);
}

/* Standalone action buttons (Surprise Me) keep the old pill-outline look */
.gallery-action-btn {
  border: 1.5px solid var(--fa-green);
  color: var(--fa-green);
  background-color: transparent;
  font-weight: 600;
  border-radius: 30px;
  padding: 0.55rem 1.5rem;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gallery-action-btn:hover {
  background-color: rgba(14, 77, 51, 0.08);
  transform: translateY(-2px);
}

/* ---------- Image grid ---------- */
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(7, 51, 31, 0.16);
}

.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  height: 260px;
  display: block;
  text-decoration: none;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 51, 31, 0.88) 0%, rgba(7, 51, 31, 0.1) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.gallery-item.gallery-hidden {
  display: none !important;
}

@media (max-width: 767.98px) {
  .gallery-img-wrap {
    height: 220px;
  }
}

/* =========================================================
   Home page: new hero-area features
   ========================================================= */

/* ---------- Selection Process floating card ---------- */
.selection-process-card {
  background-color: var(--fa-surface);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(7, 51, 31, 0.18);
  padding: 2rem;
  margin-top: -70px;
  position: relative;
  z-index: 5;
}

.selection-process-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--fa-gold-dark);
}

.selection-status-badge {
  background-color: rgba(14, 77, 51, 0.1);
  color: var(--fa-green);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
}

.selection-step {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-left: 2px dashed rgba(7, 51, 31, 0.12);
}

.selection-step:first-child {
  border-left: none;
}

.selection-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--fa-green);
  color: var(--fa-gold);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
}

.selection-step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fa-green-dark);
}

@media (max-width: 767.98px) {
  .selection-process-card {
    margin-top: -40px;
    padding: 1.5rem;
  }

  .selection-step {
    border-left: none;
    border-top: 2px dashed rgba(7, 51, 31, 0.12);
    padding-top: 1rem;
  }

  .selection-step:first-child {
    border-top: none;
  }
}

/* ---------- Scrolling course ticker ---------- */
.course-ticker-wrap {
  background-color: var(--fa-green-dark);
  overflow: hidden;
  padding: 0.85rem 0;
  white-space: nowrap;
}

.course-ticker-track {
  display: inline-flex;
  animation: ticker-scroll 32s linear infinite;
}

.course-ticker-track span {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
}

.course-ticker-track span.ticker-dot {
  color: var(--fa-gold);
  padding: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- How It Works ---------- */
.how-it-works-step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.how-it-works-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(217, 164, 65, 0.15);
  color: var(--fa-gold-dark);
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Admission Support mini-card ---------- */
.admission-support-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 1.75rem;
}

.admission-support-card ul li {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.6rem;
}

.admission-support-card ul li i {
  color: var(--fa-gold);
}

.admission-support-login {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.admission-support-login a {
  color: var(--fa-gold);
  font-weight: 600;
  text-decoration: none;
}

.admission-support-login a:hover {
  text-decoration: underline;
}

/* ---------- Next batch countdown ---------- */
.countdown-card {
  background-color: var(--fa-surface);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.countdown-units {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.countdown-unit {
  background-color: var(--fa-green);
  color: #fff;
  border-radius: 14px;
  min-width: 90px;
  padding: 1rem 0.5rem;
  text-align: center;
}

.countdown-unit-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
}

.countdown-unit-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--fa-gold);
  margin-top: 0.35rem;
}

/* =========================================================
   Gallery: like button
   ========================================================= */
.gallery-like-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 2;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gallery-like-btn:hover {
  background-color: rgba(0, 0, 0, 0.65);
  transform: scale(1.08);
}

.gallery-like-btn.liked {
  color: #e05d5d;
}

.gallery-like-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  z-index: 2;
}

/* =========================================================
   Results: export button and batch comparison
   ========================================================= */
.btn-export-results {
  border: 1.5px solid var(--fa-gold-dark);
  color: var(--fa-gold-dark);
  font-weight: 600;
  background-color: transparent;
  border-radius: 0.6rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-export-results:hover {
  background-color: var(--fa-gold-dark);
  color: #fff;
  transform: translateY(-2px);
}

.batch-compare-card {
  background-color: var(--fa-surface);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.batch-compare-row {
  margin-bottom: 1.1rem;
}

.batch-compare-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fa-green-dark);
  margin-bottom: 0.35rem;
}

.batch-compare-bar {
  height: 12px;
  border-radius: 20px;
  background-color: rgba(7, 51, 31, 0.08);
  overflow: hidden;
}

.batch-compare-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--fa-green) 0%, var(--fa-green-light) 100%);
}

.batch-compare-fill.year-prev {
  background: linear-gradient(90deg, var(--fa-gold) 0%, var(--fa-gold-dark) 100%);
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-info-card {
  background-color: var(--fa-surface);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  height: 100%;
}

/* FIX: long unbroken strings (like the email address) were pushing
   past the card edge. Flex items default to min-width: auto, which
   stops them shrinking below their content's natural width — so a
   long word just overflows instead of wrapping. Letting this column
   shrink, plus breaking long words, keeps everything inside the card. */
.contact-info-card > div:last-child {
  min-width: 0;
  flex: 1 1 auto;
}

.contact-info-card p,
.contact-info-card h6 {
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--fa-green);
  color: var(--fa-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-form-card {
  background-color: var(--fa-surface);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.contact-form-card .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--fa-green-dark);
  margin-bottom: 0.4rem;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  border: 1.5px solid rgba(7, 51, 31, 0.15);
  border-radius: 0.6rem;
  padding: 0.7rem 0.9rem;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--fa-gold);
  box-shadow: 0 0 0 0.2rem rgba(217, 164, 65, 0.2);
}

.contact-form-card .form-control.is-invalid {
  border-color: #dc3545;
}

.contact-form-success {
  display: none;
  background-color: rgba(14, 77, 51, 0.08);
  border-left: 4px solid var(--fa-green);
  border-radius: 0.6rem;
  padding: 1rem 1.25rem;
  color: var(--fa-green-dark);
}

.contact-form-success.show {
  display: block;
}

.office-hours-table td {
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(7, 51, 31, 0.1);
}

.office-hours-table tr:last-child td {
  border-bottom: none;
}

.office-hours-table .day-label {
  font-weight: 600;
  color: var(--fa-green-dark);
}

.social-cta-strip {
  background-color: var(--fa-green-dark);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
}

/* =========================================================
   About: history timeline
   ========================================================= */
.timeline-wrap {
  position: relative;
  padding-left: 2.5rem;
}

.timeline-wrap::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: rgba(7, 51, 31, 0.15);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.5rem;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--fa-gold);
  border: 4px solid var(--fa-cream);
  box-shadow: 0 0 0 2px var(--fa-green);
}

.timeline-year {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--fa-green);
  font-size: 1.2rem;
}

/* =========================================================
   Courses: course finder
   ========================================================= */
.course-finder-card {
  background-color: var(--fa-surface);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.course-finder-card .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--fa-green-dark);
  margin-bottom: 0.4rem;
}

.course-finder-card .form-select {
  border: 1.5px solid rgba(7, 51, 31, 0.15);
  border-radius: 0.6rem;
  padding: 0.7rem 0.9rem;
}

.course-finder-card .form-select:focus {
  border-color: var(--fa-gold);
  box-shadow: 0 0 0 0.2rem rgba(217, 164, 65, 0.2);
}

.course-finder-result {
  background-color: var(--fa-cream);
  border-radius: 1rem;
  padding: 1.5rem;
  border-left: 4px solid var(--fa-gold);
  display: none;
}

.course-finder-result.show {
  display: block;
}

.course-finder-result-title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--fa-green-dark);
  font-size: 1.3rem;
}

/* =========================================================
   Site-wide transitions
   ========================================================= */

/* Page load fade-in */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.page-loaded {
  opacity: 1;
}

/* Scroll-reveal for cards and sections */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body {
    opacity: 1;
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   Page & scroll transitions (site-wide)
   ========================================================= */
body {
  animation: page-fade-in 0.5s ease;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   Round 3: unique feature additions
   ========================================================= */

/* ---------- Courses: syllabus download card ---------- */
.syllabus-card {
  background-color: var(--fa-surface);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.syllabus-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background-color: rgba(217, 164, 65, 0.15);
  color: var(--fa-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ---------- Admissions: eligibility quiz ---------- */
.eligibility-quiz-card {
  background-color: var(--fa-surface);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.eligibility-quiz-result {
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  margin-top: 1rem;
  display: none;
}

.eligibility-quiz-result.show {
  display: block;
}

.eligibility-quiz-result.eligible {
  background-color: rgba(14, 77, 51, 0.08);
  border-left: 4px solid var(--fa-green);
  color: var(--fa-green-dark);
}

.eligibility-quiz-result.not-eligible {
  background-color: rgba(217, 83, 79, 0.08);
  border-left: 4px solid #d9534f;
  color: #a02622;
}

/* ---------- Admissions: document checklist tracker ---------- */
.doc-tracker-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.doc-tracker-item:hover {
  background-color: rgba(14, 77, 51, 0.05);
}

.doc-tracker-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--fa-green);
  flex-shrink: 0;
}

.doc-tracker-item label {
  cursor: pointer;
  margin-bottom: 0;
}

.doc-tracker-item.checked label {
  text-decoration: line-through;
  color: #6c757d;
}

.doc-tracker-progress-wrap {
  background-color: rgba(7, 51, 31, 0.08);
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.doc-tracker-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--fa-gold) 0%, var(--fa-gold-dark) 100%);
  border-radius: 20px;
  transition: width 0.3s ease;
  width: 0%;
}

/* ---------- Results: certificate verification lookup ---------- */
.verify-card {
  background-color: var(--fa-surface);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.verify-result {
  border-radius: 12px;
  padding: 1rem 1.4rem;
  margin-top: 1.25rem;
  display: none;
  text-align: left;
}

.verify-result.show {
  display: block;
}

.verify-result.found {
  background-color: rgba(14, 77, 51, 0.08);
  border-left: 4px solid var(--fa-green);
}

.verify-result.not-found {
  background-color: rgba(217, 83, 79, 0.08);
  border-left: 4px solid #d9534f;
}

/* ---------- Results: share result card ---------- */
.share-buttons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 4px;
  transition: transform 0.2s ease;
}

.share-buttons a:hover {
  transform: translateY(-3px);
}

.share-buttons a.share-whatsapp { background-color: #25d366; }
.share-buttons a.share-facebook { background-color: #1877f2; }
.share-buttons a.share-copy { background-color: var(--fa-green); }

/* ---------- Gallery: masonry-style spans ---------- */
.gallery-item.gallery-tall {
  grid-row: span 2;
}

/* ---------- Gallery: view mode toggle ---------- */
.view-toggle-btn {
  border: 1.5px solid var(--fa-green);
  background-color: transparent;
  color: var(--fa-green);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.view-toggle-btn.active,
.view-toggle-btn:hover {
  background-color: var(--fa-green);
  color: #fff;
}

#galleryGrid.list-view > [class*="col-"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

#galleryGrid.list-view .gallery-item {
  display: flex;
}

#galleryGrid.list-view .gallery-img-wrap {
  height: 140px;
  width: 220px;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  #galleryGrid.list-view .gallery-img-wrap {
    width: 120px;
  }
}

.gallery-item.shuffle-highlight {
  outline: 3px solid var(--fa-gold);
  outline-offset: 3px;
}

/* ---------- Gallery: upload CTA ---------- */
.upload-cta-card {
  background-color: var(--fa-surface);
  border: 2px dashed rgba(7, 51, 31, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

/* ---------- Contact: live chat status badge ---------- */
.chat-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(14, 77, 51, 0.08);
  color: var(--fa-green);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 30px;
}

.chat-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #2ecc71;
  animation: status-pulse 1.6s infinite;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* ---------- Contact: FAQ quick links ---------- */
.contact-quick-link {
  background-color: var(--fa-surface);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-quick-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(7, 51, 31, 0.12);
}

.contact-quick-link i {
  font-size: 1.6rem;
  color: var(--fa-gold-dark);
  margin-bottom: 0.6rem;
  display: block;
}

.contact-quick-link span {
  font-weight: 600;
  color: var(--fa-green-dark);
  font-size: 0.9rem;
}

/* ---------- Contact: response time card ---------- */
.response-time-card {
  background: linear-gradient(135deg, var(--fa-green) 0%, var(--fa-green-dark) 100%);
  border-radius: 16px;
  padding: 1.75rem;
  color: #fff;
  text-align: center;
}

.response-time-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
}

/* =========================================================
   Round 4: more gallery + contact features
   ========================================================= */

/* ---------- Gallery: download button ---------- */
.gallery-download-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  z-index: 2;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gallery-download-btn:hover {
  background-color: rgba(0, 0, 0, 0.65);
  color: #fff;
  transform: scale(1.08);
}

/* ---------- Gallery: featured badge ---------- */
.gallery-featured-badge {
  position: absolute;
  top: 12px;
  left: 56px;
  background-color: var(--fa-gold);
  color: var(--fa-green-dark);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  z-index: 2;
}

/* ---------- Gallery: slideshow ---------- */
.slideshow-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--fa-gold);
  z-index: 2000;
  width: 0%;
  transition: width 0.1s linear;
}

/* ---------- Contact: visit booking ---------- */
.visit-booking-card {
  background-color: var(--fa-surface);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* ---------- Contact: WhatsApp quick templates ---------- */
.whatsapp-template-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(37, 211, 102, 0.08);
  border: 1.5px solid #25d366;
  color: #128c3e;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.whatsapp-template-btn:hover {
  background-color: #25d366;
  color: #fff;
  transform: translateY(-2px);
}

/* =========================================================
   Round 5: unique differentiators
   ========================================================= */

/* ---------- Gallery: Scrapbook (polaroid) mode ---------- */
#galleryGrid.scrapbook-view .gallery-item {
  background-color: #fffdf8;
  padding: 10px 10px 34px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  transform: rotate(var(--polaroid-tilt, -2deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#galleryGrid.scrapbook-view .gallery-item:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

#galleryGrid.scrapbook-view .gallery-item:nth-child(3n+1) { --polaroid-tilt: -2.5deg; }
#galleryGrid.scrapbook-view .gallery-item:nth-child(3n+2) { --polaroid-tilt: 1.8deg; }
#galleryGrid.scrapbook-view .gallery-item:nth-child(3n) { --polaroid-tilt: -1.2deg; }

#galleryGrid.scrapbook-view .gallery-img-wrap {
  border-radius: 2px;
  height: 210px;
}

#galleryGrid.scrapbook-view .gallery-caption {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--fa-ink);
}

#galleryGrid.scrapbook-view .gallery-overlay {
  position: static;
  background: none;
  opacity: 1;
  padding: 0.75rem 0.25rem 0;
  text-align: center;
}

#galleryGrid.scrapbook-view .gallery-overlay .gallery-caption {
  color: var(--fa-ink) !important;
}

/* ---------- Contact: quick feedback rating ---------- */
.feedback-card {
  background-color: var(--fa-surface);
  border-radius: 20px;
  padding: 2.25rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.feedback-stars {
  font-size: 2rem;
  display: inline-flex;
  gap: 0.4rem;
  cursor: pointer;
}

.feedback-stars i {
  color: #d9d9d9;
  transition: color 0.15s ease, transform 0.15s ease;
}

.feedback-stars i.hovered,
.feedback-stars i.selected {
  color: var(--fa-gold);
  transform: scale(1.1);
}

.feedback-thankyou {
  display: none;
  margin-top: 1rem;
  color: var(--fa-green);
  font-weight: 600;
}

.feedback-thankyou.show {
  display: block;
}

/* ---------- Contact: language toggle ---------- */
.lang-toggle-wrap {
  display: inline-flex;
  background-color: rgba(7, 51, 31, 0.06);
  border-radius: 30px;
  padding: 4px;
}

.lang-toggle-btn {
  border: none;
  background-color: transparent;
  color: var(--fa-green-dark);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-toggle-btn.active {
  background-color: var(--fa-green);
  color: #fff;
}

[lang="ur"] {
  font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  direction: rtl;
  display: none;
}

.show-urdu [lang="ur"] {
  display: block;
}

.show-urdu [lang="en"] {
  display: none;
}

/* =========================================================
   Site-wide new features
   ========================================================= */

/* ---------- Floating WhatsApp / Call buttons ---------- */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.floating-btn.whatsapp-btn {
  background-color: #25d366;
}

.floating-btn.call-btn {
  background-color: var(--fa-green);
}

@media (max-width: 767.98px) {
  .floating-contact {
    right: 14px;
    bottom: 14px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}

/* ---------- Footer map ---------- */
/* ---------- Contact: static "open in maps" card (no live iframe = single-load page) ---------- */
.static-map-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--fa-surface);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(7, 51, 31, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  flex-wrap: wrap;
}

.static-map-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(7, 51, 31, 0.12);
}

.static-map-card h6,
.static-map-card p {
  color: var(--fa-ink);
}

.static-map-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--fa-green);
  color: var(--fa-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.static-map-cta {
  margin-left: auto;
  color: var(--fa-green);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .static-map-cta {
    margin-left: 0;
    width: 100%;
  }
}

/* ---------- FAQ accordion ---------- */
.faq-accordion .accordion-item {
  border: none;
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--fa-green-dark);
  background-color: var(--fa-surface);
  padding: 1.1rem 1.4rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: var(--fa-green);
  color: #ffffff;
  box-shadow: none;
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.faq-accordion .accordion-button::after {
  filter: none;
}

.faq-accordion .accordion-body {
  background-color: var(--fa-surface);
  color: var(--fa-ink);
  padding: 1rem 1.4rem 1.4rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background-color: var(--fa-surface);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  position: relative;
}

.testimonial-quote-icon {
  font-size: 1.8rem;
  color: var(--fa-gold);
  opacity: 0.5;
  margin-bottom: 0.75rem;
}

.testimonial-text {
  font-style: italic;
  color: #444;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--fa-gold);
}

.testimonial-name {
  font-weight: 700;
  color: var(--fa-green-dark);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--fa-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ---------- Testimonial carousel controls (previously unstyled — invisible on white bg) ---------- */
.testimonial-carousel {
  padding-bottom: 3.5rem;
}

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
  position: absolute;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: auto;
  opacity: 1;
}

.testimonial-carousel .carousel-control-prev {
  left: -8px;
}

.testimonial-carousel .carousel-control-next {
  right: -8px;
}

@media (max-width: 991.98px) {
  .testimonial-carousel .carousel-control-prev {
    left: 0;
  }
  .testimonial-carousel .carousel-control-next {
    right: 0;
  }
}

.testimonial-nav-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--fa-surface);
  color: var(--fa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  border: 1.5px solid rgba(7, 51, 31, 0.1);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.testimonial-carousel .carousel-control-prev:hover .testimonial-nav-icon,
.testimonial-carousel .carousel-control-next:hover .testimonial-nav-icon {
  background-color: var(--fa-green);
  color: #fff;
  transform: scale(1.08);
}

.testimonial-indicators {
  position: absolute;
  bottom: 0;
  margin-bottom: 0;
}

.testimonial-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: rgba(7, 51, 31, 0.2);
  border: none;
  opacity: 1;
  margin: 0 5px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.testimonial-indicators [data-bs-target].active {
  background-color: var(--fa-gold);
  transform: scale(1.2);
}

/* ---------- Top achievers (Results page) ---------- */
.achiever-card {
  background-color: var(--fa-surface);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  position: relative;
  height: 100%;
  border-top: 3px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.achiever-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(7, 51, 31, 0.12);
}

.achiever-card.rank-1 {
  border-top-color: var(--fa-gold);
  box-shadow: 0 10px 28px rgba(217, 164, 65, 0.25);
}

.achiever-card.rank-1::before {
  content: "\2605";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--fa-gold);
  color: var(--fa-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(217, 164, 65, 0.4);
}

.achiever-card.rank-1 .achiever-rank {
  background-color: var(--fa-gold);
  color: var(--fa-green-dark);
}

.achiever-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--fa-green);
  display: block;
  margin: 0 auto -18px;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 16px rgba(7, 51, 31, 0.18);
}

.achiever-card.rank-1 .achiever-photo {
  border-color: var(--fa-gold);
  box-shadow: 0 6px 20px rgba(217, 164, 65, 0.4);
}

.achiever-rank {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--fa-green);
  color: var(--fa-gold);
  font-family: var(--font-display);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
  border: 3px solid var(--fa-surface);
}

.achiever-name {
  font-weight: 700;
  color: var(--fa-green-dark);
  margin-bottom: 0.2rem;
}

.achiever-detail {
  font-size: 0.85rem;
  color: #6c757d;
}

/* ---------- Teacher consultation CTA (Courses page) ---------- */
.consultation-card {
  background: linear-gradient(135deg, var(--fa-green) 0%, var(--fa-green-dark) 100%);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  color: #ffffff;
}

.consultation-card h2 {
  color: #ffffff;
}

.consultation-card p {
  color: rgba(255, 255, 255, 0.85);
}

.consultation-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: rgba(217, 164, 65, 0.18);
  border: 2px solid var(--fa-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.consultation-icon i {
  font-size: 1.8rem;
  color: var(--fa-gold);
}

/* ---------- Awards / milestones (About page) ---------- */
.award-card {
  background-color: var(--fa-surface);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.award-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(7, 51, 31, 0.12);
}

.award-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(217, 164, 65, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.award-icon i {
  font-size: 1.6rem;
  color: var(--fa-gold-dark);
}

/* ---------- Social follow banner (Gallery page) ---------- */
.social-follow-banner {
  background: linear-gradient(135deg, var(--fa-gold) 0%, var(--fa-gold-dark) 100%);
  border-radius: 20px;
  padding: 2.5rem;
  color: var(--fa-green-dark);
  text-align: center;
}

.social-follow-banner h3 {
  color: var(--fa-green-dark);
}

.social-follow-banner .btn-follow {
  background-color: var(--fa-green-dark);
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  padding: 0.6rem 1.6rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-follow-banner .btn-follow:hover {
  background-color: var(--fa-green);
  color: #fff;
  transform: translateY(-2px);
}

/* =========================================================
   Further page enhancements
   ========================================================= */

/* ---------- Gallery: stats strip ---------- */
.gallery-stats-strip {
  background-color: var(--fa-surface);
  border-bottom: 1px solid rgba(7, 51, 31, 0.08);
}

/* ---------- Gallery: filter count badge ---------- */
.gallery-filter-btn .filter-count {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 20px;
  background-color: rgba(7, 51, 31, 0.12);
}

.gallery-filter-btn.active .filter-count {
  background-color: rgba(7, 51, 31, 0.18);
  color: var(--fa-green-dark);
}

.gallery-filter-btn:not(.active) .filter-count {
  background-color: rgba(14, 77, 51, 0.1);
  color: var(--fa-green);
}

/* ---------- Results: summary stat cards ---------- */
.results-summary-card {
  background-color: var(--fa-surface);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--fa-gold);
}

.results-summary-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--fa-green);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.results-summary-label {
  font-size: 0.82rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ---------- Results: print button ---------- */
.btn-print-results {
  border: 1.5px solid var(--fa-green-dark);
  color: var(--fa-green-dark);
  font-weight: 600;
  background-color: transparent;
  border-radius: 0.6rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-print-results:hover {
  background-color: var(--fa-green-dark);
  color: #fff;
  transform: translateY(-2px);
}

@media print {
  #mainNav,
  #page-banner,
  #site-footer,
  .floating-contact,
  #results-filter,
  #top-achievers,
  #batch-comparison,
  #cta,
  .btn-print-results,
  .btn-export-results {
    display: none !important;
  }

  #results-table-section {
    padding-top: 0 !important;
  }

  body {
    background-color: var(--fa-surface) !important;
  }
}

/* ---------- Admissions: fee calculator ---------- */
.fee-calc-card {
  background-color: var(--fa-surface);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.fee-calc-card .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--fa-green-dark);
  margin-bottom: 0.4rem;
}

.fee-calc-card .form-select,
.fee-calc-card .form-check-input {
  border: 1.5px solid rgba(7, 51, 31, 0.15);
}

.fee-calc-card .form-select {
  border-radius: 0.6rem;
  padding: 0.6rem 0.9rem;
}

.fee-calc-card .form-select:focus {
  border-color: var(--fa-gold);
  box-shadow: 0 0 0 0.2rem rgba(217, 164, 65, 0.2);
}

.fee-calc-result {
  background-color: var(--fa-cream);
  border-radius: 1rem;
  padding: 1.5rem;
  border-left: 4px solid var(--fa-gold);
}

.fee-calc-result-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--fa-green);
  font-weight: 600;
}

.fee-calc-result-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--fa-green-dark);
}

/* ---------- Admissions: seat availability ---------- */
.seat-card {
  background-color: var(--fa-surface);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.seat-card h6 {
  color: var(--fa-green-dark);
}

.seat-progress {
  height: 10px;
  border-radius: 20px;
  background-color: rgba(7, 51, 31, 0.08);
  overflow: hidden;
  margin: 0.6rem 0 0.4rem;
}

.seat-progress-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--fa-gold) 0%, var(--fa-gold-dark) 100%);
}

.seat-progress-fill.seat-almost-full {
  background: linear-gradient(90deg, #d9534f 0%, #c9302c 100%);
}

.seat-status-text {
  font-size: 0.8rem;
  color: #6c757d;
}

/* =========================================================
   Round 2 enhancements
   ========================================================= */

/* ---------- Gallery: photo highlight banner ---------- */
.photo-highlight-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.photo-highlight-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.photo-highlight-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 51, 31, 0.92) 0%, rgba(7, 51, 31, 0.35) 55%, transparent 100%);
  z-index: 1;
}

.photo-highlight-content {
  position: relative;
  z-index: 2;
  padding: 2.25rem;
  color: #ffffff;
}

.photo-highlight-badge {
  display: inline-block;
  background-color: var(--fa-gold);
  color: var(--fa-green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

/* ---------- Gallery: search bar ---------- */
.gallery-search-wrap {
  max-width: 420px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.gallery-search-wrap input {
  border: 1.5px solid rgba(7, 51, 31, 0.15);
  border-radius: 30px;
  padding: 0.65rem 1.25rem 0.65rem 2.75rem;
  width: 100%;
}

.gallery-search-wrap input:focus {
  border-color: var(--fa-gold);
  box-shadow: 0 0 0 0.2rem rgba(217, 164, 65, 0.2);
  outline: none;
}

.gallery-search-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fa-green);
}

.gallery-results-count {
  text-align: center;
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

/* ---------- Results: course-wise success breakdown ---------- */
.success-breakdown-item {
  background-color: var(--fa-surface);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
}

.success-breakdown-item:last-child {
  margin-bottom: 0;
}

.success-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.success-breakdown-header .course-name {
  font-weight: 700;
  color: var(--fa-green-dark);
}

.success-breakdown-header .course-pct {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--fa-gold-dark);
}

/* ---------- Results: pagination ---------- */
.results-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.results-pagination .btn-page-nav {
  border: 1.5px solid var(--fa-green);
  color: var(--fa-green);
  background-color: transparent;
  border-radius: 0.6rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.results-pagination .btn-page-nav:hover:not(:disabled) {
  background-color: var(--fa-green);
  color: #fff;
}

.results-pagination .btn-page-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.results-pagination .page-indicator {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 600;
}

/* ---------- Fee structure table ---------- */
.fee-table {
  background-color: var(--fa-surface);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.fee-table thead {
  background-color: var(--fa-green-dark);
}

.fee-table thead th {
  color: #ffffff !important;
  background-color: var(--fa-green-dark) !important;
  font-weight: 600;
  border: none;
  padding: 1rem;
}

/* FIX: force visible dark text on white cells — overrides any
   Bootstrap utility classes (e.g. text-white / table-dark) that
   were making the body text invisible on the white background */
.fee-table tbody tr,
.fee-table tbody td,
.fee-table tbody th {
  background-color: var(--fa-surface) !important;
  color: var(--fa-ink) !important;
}

.fee-table tbody td {
  padding: 1rem;
  vertical-align: middle;
}

.fee-table tbody tr:hover,
.fee-table tbody tr:hover td {
  background-color: rgba(217, 164, 65, 0.08) !important;
}

.fee-table tbody tr.fee-table-divider td {
  background-color: rgba(14, 77, 51, 0.06) !important;
  color: var(--fa-green-dark) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.6px;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.fee-table tbody tr.fee-table-divider:hover td {
  background-color: rgba(14, 77, 51, 0.06) !important;
}
/* ---------- Smooth Scroll ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- Student Portal "Coming Soon" toast ---------- */
.portal-toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background-color: var(--fa-green-dark);
  color: #fff;
  border: 1.5px solid var(--fa-gold);
  border-radius: 30px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  white-space: nowrap;
}

.portal-toast i {
  color: var(--fa-gold);
}

.portal-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 575.98px) {
  .portal-toast {
    top: 80px;
    white-space: normal;
    text-align: center;
    width: 88%;
    font-size: 0.82rem;
  }
}

/* ---------- Back to Top Button ---------- */
.back-to-top-btn {
  position: fixed;
  right: 20px;
  bottom: 150px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: var(--fa-green);
  color: var(--fa-gold);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease,
    visibility 0.3s ease, background-color 0.2s ease;
  z-index: 1049;
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--fa-gold);
  color: var(--fa-green-dark);
}

@media (max-width: 767.98px) {
  .back-to-top-btn {
    right: 14px;
    bottom: 130px;
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }
}

/* =========================================================
   Week 6 — Page Load Animations (Home page)
   ========================================================= */

/* Hero heading fades in on page load (runs once body.page-loaded is set) */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-fade-in {
  opacity: 0;
}

body.page-loaded .hero-fade-in {
  animation: heroFadeIn 0.9s ease 0.15s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero-fade-in {
    opacity: 1;
    animation: none;
  }
}

/* Stats cards slide up as they come into view */
@keyframes statSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-slide-up {
  opacity: 0;
}

.stat-slide-up.is-visible {
  animation: statSlideUp 0.6s ease forwards;
}

/* Course cards on the Home page appear one by one with a short delay between each */
@keyframes cardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-card {
  opacity: 0;
}

.stagger-card.is-visible {
  animation: cardFadeInUp 0.6s ease forwards;
}

#courses-preview .col-md-4:nth-child(1) .stagger-card.is-visible {
  animation-delay: 0s;
}

#courses-preview .col-md-4:nth-child(2) .stagger-card.is-visible {
  animation-delay: 0.18s;
}

#courses-preview .col-md-4:nth-child(3) .stagger-card.is-visible {
  animation-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
  .stat-slide-up,
  .stagger-card {
    opacity: 1;
    animation: none;
  }
}
/* ---- Dark mode fixes---- */

body.dark-mode .faq-accordion .accordion-item {
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  border: 1px solid var(--fa-card-border);
}

body.dark-mode .btn-print-results,
body.dark-mode .btn-export-results {
  border-color: var(--fa-gold) !important;
  color: var(--fa-gold) !important;
}
body.dark-mode .btn-print-results:hover,
body.dark-mode .btn-export-results:hover {
  background-color: var(--fa-gold) !important;
  color: var(--fa-green-dark) !important;
}

body.dark-mode .hero-badge {
  background-color: #f7f5ef !important;
}
body.dark-mode .hero-badge-num {
  color: var(--fa-green-dark) !important;
}
body.dark-mode .hero-badge-label {
  color: var(--fa-green) !important;
}

body.dark-mode .contact-info-card h6,
body.dark-mode .contact-info-card p {
  color: var(--fa-ink) !important;
}

body.dark-mode .chat-status-badge {
  background-color: rgba(217, 164, 65, 0.12);
  color: var(--fa-gold) !important;
}

body.dark-mode .office-hours-table td,
body.dark-mode .office-hours-table tr {
  color: var(--fa-ink) !important;
  background-color: var(--fa-surface) !important;
  border-color: var(--fa-card-border) !important;
}

/* ---- Fix: form success/error messages invisible in dark mode ---- */
body.dark-mode .contact-form-success {
  background-color: rgba(46, 204, 113, 0.12) !important;
  border-left-color: #6fe3a0 !important;
  color: #6fe3a0 !important;
}

body.dark-mode #enquiryErrorMsg,
body.dark-mode .contact-form-card .alert-danger {
  background-color: rgba(220, 53, 69, 0.15) !important;
  border-color: rgba(220, 53, 69, 0.4) !important;
  color: #ff8a8a !important;
}

/* ---------- Week 7: animation coverage for Apply / How-it-works / Selection steps / Admission support ---------- */
.apply-step,
.how-it-works-step,
.selection-step,
.admission-support-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.apply-step.is-visible,
.how-it-works-step.is-visible,
.selection-step.is-visible,
.admission-support-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger the apply steps + how-it-works steps slightly for a nicer cascade */
.apply-steps-list .apply-step:nth-child(1).is-visible { transition-delay: 0s; }
.apply-steps-list .apply-step:nth-child(2).is-visible { transition-delay: 0.08s; }
.apply-steps-list .apply-step:nth-child(3).is-visible { transition-delay: 0.16s; }
.apply-steps-list .apply-step:nth-child(4).is-visible { transition-delay: 0.24s; }
.apply-steps-list .apply-step:nth-child(5).is-visible { transition-delay: 0.32s; }

#how-it-works .how-it-works-step:nth-child(1).is-visible { transition-delay: 0s; }
#how-it-works .how-it-works-step:nth-child(2).is-visible { transition-delay: 0.12s; }
#how-it-works .how-it-works-step:nth-child(3).is-visible { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .apply-step,
  .how-it-works-step,
  .selection-step,
  .admission-support-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}