/* ============================================================
   SCHOOL CMS — MAIN STYLESHEET v4
   Dynamic colors injected via PHP getSiteColors()
   ============================================================ */

:root {
  --primary: #1a3a6b;
  --primary-dark: #0f2040;
  --primary-light: #2a5298;
  --accent: #c8952a;
  --accent-light: #e8b84a;
  --light-bg: #f5f7fa;
  --text: #2c2c2c;
  --text-light: #5a6a7a;
  --border: #e2e8f0;
  --white: #fff;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 14px rgba(26, 58, 107, .08);
  --shadow-hover: 0 8px 28px rgba(26, 58, 107, .16);
  --shadow-drop: 0 12px 40px rgba(26, 58, 107, .18);
  --transition: all .28s cubic-bezier(.4, 0, .2, 1);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

/* ── Layout ── */
@media(min-width:1400px) {
  .container {
    max-width: 1340px;
  }
}

.section-py {
  padding: 52px 0;
}

.section-py-sm {
  padding: 32px 0;
}

.bg-light-custom {
  background: var(--light-bg);
}

.divider-sm {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 12px;
}

/* ── Separators ── */
.section-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
  opacity: 1;
}

.section-separator-accent {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), transparent);
  margin: 0;
}

.content-section+.content-section {
  border-top: 1px solid var(--border);
}

/* ── Section Title ── */
.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title .pre-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 7px;
  font-family: var(--font-body);
}

.section-title h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin-bottom: 10px;
}

.section-title .divider {
  width: 42px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 12px;
}

.section-title p {
  color: var(--text-light);
  font-size: .94rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ── Buttons ── */
.btn-school {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  padding: 9px 24px;
  border-radius: 5px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: .88rem;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-school:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(200, 149, 42, .32);
}

.btn-school-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 9px 24px;
  border-radius: 5px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: .88rem;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-school-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-school-white {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
  padding: 9px 24px;
  border-radius: 5px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: .88rem;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-school-white:hover {
  background: transparent;
  color: var(--white);
}

/* ══════════════════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════════════════ */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .8);
  font-size: .76rem;
  padding: 5px 0;
}

.top-bar-info span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, .8);
}

.top-bar-info i {
  color: var(--accent-light);
}

.social-top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .75);
  font-size: .68rem;
  transition: var(--transition);
}

.social-top a:hover {
  background: var(--accent);
  color: var(--white);
}

/* ══════════════════════════════════════════════════════════
   NAVBAR BASE
══════════════════════════════════════════════════════════ */
.main-nav {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
  padding: 0;
  z-index: 1040;
  transition: box-shadow .3s;
}

.main-nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
}

.nav-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon span {
  color: var(--white);
  font-weight: 800;
  font-size: .95rem;
  font-family: var(--font-head);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-brand-text strong {
  font-size: .95rem;
  color: var(--primary);
  font-family: var(--font-head);
}

.nav-brand-text span {
  font-size: .65rem;
  color: var(--text-light);
}

.main-nav .navbar-brand {
  padding: 10px 0;
}

.main-nav .nav-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text) !important;
  padding: 8px 10px !important;
  white-space: nowrap;
  transition: color .2s;
}

.main-nav .nav-link:hover {
  color: var(--primary) !important;
}

.main-nav .nav-link.active {
  color: var(--primary) !important;
}

/* ══════════════════════════════════════════════════════════
   CUSTOM DROPDOWN — DESKTOP HOVER
══════════════════════════════════════════════════════════ */
.nav-dropdown-item {
  position: relative;
}

/* The toggle link */
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-caret {
  font-size: .6rem;
  transition: transform .25s ease;
  color: var(--text-light);
  flex-shrink: 0;
}

.nav-dropdown-item:hover .nav-caret,
.nav-dropdown-item.open .nav-caret {
  transform: rotate(-180deg);
  color: var(--accent);
}

/* The dropdown panel */
.nav-mega-drop {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-drop);
  border-top: 3px solid var(--accent);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 2000;
}

/* Arrow / notch pointing up */
.nav-mega-drop::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--accent);
}

.nav-mega-drop::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--white);
}

/* Show on hover (desktop) */
@media(min-width:1200px) {
  .nav-dropdown-item:hover .nav-mega-drop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

/* Keep open class for JS-toggled (mobile) */
.nav-dropdown-item.open .nav-mega-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Inner panel */
.nav-mega-inner {
  display: flex;
  flex-direction: column;
  padding: 4px 6px;
}

.nav-mega-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text);
  transition: var(--transition);
  text-decoration: none;
}

.nav-mega-item:hover {
  background: var(--light-bg);
  color: var(--primary);
  transform: translateX(3px);
}

.nav-mega-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .78rem;
  transition: var(--transition);
}

.nav-mega-item:hover .nav-mega-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.nav-mega-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-mega-text strong {
  font-size: .84rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-mega-text small {
  font-size: .72rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 1px;
}

.nav-mega-divider {
  height: 1px;
  background: var(--border);
  margin: 5px 8px;
}

/* ══════════════════════════════════════════════════════════
   MOBILE NAV (< 1200px)
══════════════════════════════════════════════════════════ */
@media(max-width:1199px) {
  .main-nav .navbar-collapse {
    background: var(--white);
    padding: 8px 0 16px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .main-nav .nav-link {
    padding: 10px 8px !important;
    border-bottom: 1px solid rgba(226, 232, 240, .6);
  }

  /* Dropdown: stack below toggle, no absolute positioning */
  .nav-dropdown-item {
    position: static;
  }

  .nav-mega-drop {
    position: static;
    transform: none !important;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--accent);
    border-radius: 0 0 6px 6px;
    padding: 0;
    background: var(--light-bg);
    margin: 0 0 4px 16px;
    /* hidden by default */
    display: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-mega-drop::before,
  .nav-mega-drop::after {
    display: none;
  }

  .nav-dropdown-item.open .nav-mega-drop {
    display: block;
  }

  .nav-mega-inner {
    padding: 4px;
  }

  .nav-mega-item {
    padding: 8px 10px;
    border-radius: 4px;
  }

  .nav-mega-text strong {
    font-size: .82rem;
  }

  .nav-mega-text small {
    font-size: .7rem;
  }

  .nav-mega-icon {
    width: 28px;
    height: 28px;
    font-size: .72rem;
  }

  .nav-caret {
    margin-left: auto;
  }
}

/* ══════════════════════════════════════════════════════════
   HERO CAROUSEL
══════════════════════════════════════════════════════════ */
/* AFTER */
.hero-slide {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center top;
  /* ← FIXED */
  background-color: var(--primary-dark);
  display: flex;
  align-items: center;
}

@media(max-width:767px) {
  .hero-slide {
    min-height: 340px;
  }
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 32, 64, .82) 0%, rgba(26, 58, 107, .6) 60%, rgba(0, 0, 0, .4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
}

.hero-pre {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 11px;
  display: inline-block;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 4.5vw, 3.1rem);
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  margin-bottom: 12px;
}

.hero-content p {
  font-size: clamp(.9rem, 1.8vw, 1.05rem);
  color: rgba(255, 255, 255, .87);
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#heroCarousel .carousel-indicators {
  bottom: 12px;
}

#heroCarousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  border: 0;
  margin: 0 3px;
  transition: var(--transition);
}

#heroCarousel .carousel-indicators .active {
  background: var(--accent-light);
  width: 22px;
  border-radius: 4px;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(4px);
  top: 50%;
  transform: translateY(-50%);
  margin: 0 10px;
  border: 1.5px solid rgba(255, 255, 255, .2);
  opacity: 1;
  transition: var(--transition);
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
  background: var(--accent);
}

/* ══════════════════════════════════════════════════════════
   PAGE BANNER
══════════════════════════════════════════════════════════ */
.page-banner {
  position: relative;
  min-height: 180px;
  padding: 44px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  background-size: cover;
  background-position: center;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 32, 64, .68);
}

.page-banner-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
}

.page-banner-content h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.page-banner-content p {
  color: rgba(255, 255, 255, .82);
  font-size: .97rem;
  margin-top: 6px;
}

.page-banner .breadcrumb {
  margin-top: 10px;
  font-size: .79rem;
}

.page-banner .breadcrumb-item a {
  color: rgba(255, 255, 255, .68);
}

.page-banner .breadcrumb-item a:hover {
  color: var(--accent-light);
}

.page-banner .breadcrumb-item.active {
  color: rgba(255, 255, 255, .48);
}

.page-banner .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, .38);
}

/* ══════════════════════════════════════════════════════════
   CONTENT SECTIONS
══════════════════════════════════════════════════════════ */
.content-section {
  padding: 52px 0;
  width: 100%;
}

.section-img-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.section-img-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
  display: block;
}

.section-img-wrap img:hover {
  transform: scale(1.02);
}

.section-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--accent);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 7px;
  display: block;
}

.section-content-body {
  color: var(--text-light);
  font-size: .94rem;
  line-height: 1.72;
}

.section-content-body p {
  margin-bottom: .72rem;
}

.section-content-body ul li,
.section-content-body ol li {
  margin-bottom: 5px;
}

.section-content-body strong {
  color: var(--text);
}

/* ── Stats ── */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 40px 0;
  border-top: 3px solid var(--accent);
}

.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--accent-light);
  font-family: var(--font-head);
  line-height: 1;
}

.stat-label {
  font-size: .78rem;
  color: rgba(255, 255, 255, .7);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.cta-section p {
  color: rgba(255, 255, 255, .82);
  font-size: .97rem;
  margin: 8px 0 22px;
}

/* ── Cards ── */
.school-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(226, 232, 240, .5);
  height: 100%;
}

.school-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.school-card-img {
  width: 100%;
  height: 195px;
  object-fit: cover;
}

.school-card-body {
  padding: 18px 20px;
}

.school-card-title {
  font-size: 1.05rem;
  margin-bottom: 7px;
}

.school-card-text {
  color: var(--text-light);
  font-size: .88rem;
}

/* ── News Card ── */
.news-card .card-img-wrap {
  overflow: hidden;
  height: 190px;
  flex-shrink: 0;
  position: relative;
}

.news-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.news-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.news-meta {
  font-size: .74rem;
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.news-meta i {
  color: var(--accent);
  margin-right: 2px;
}

.badge-category {
  background: var(--accent);
  color: var(--white);
  padding: 2px 9px;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 700;
}

/* ── Staff Card ── */
.staff-card {
  text-align: center;
}

.staff-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
}

.staff-no-photo {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-no-photo i {
  font-size: 4rem;
  color: rgba(255, 255, 255, .3);
}

.staff-body {
  padding: 16px;
}

.staff-name {
  font-size: 1rem;
  margin-bottom: 3px;
}

.staff-title {
  font-size: .78rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.staff-dept {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ── HM Speech ── */
.hm-speech-section {
  background: var(--light-bg);
  padding: 52px 0;
}

.hm-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(26, 58, 107, .18);
}

.hm-no-photo {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hm-no-photo i {
  font-size: 5rem;
  color: rgba(255, 255, 255, .25);
}

.hm-speech-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 14px 18px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hm-badge-name {
  font-weight: 700;
  font-size: .97rem;
  font-family: var(--font-head);
}

.hm-badge-title {
  font-size: .78rem;
  color: rgba(255, 255, 255, .75);
}

.speech-quote-mark {
  font-size: 4rem;
  line-height: .8;
  color: var(--accent);
  opacity: .35;
  font-family: Georgia, serif;
}

.speech-body {
  font-size: .94rem;
  color: var(--text-light);
  line-height: 1.8;
  font-style: italic;
}

/* ── Top Students ── */
.top-student-card {
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
}

.rank-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
}

.rank-badge.gold {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.rank-badge.silver {
  background: linear-gradient(135deg, #94a3b8, #cbd5e1);
  color: var(--text);
}

.rank-badge.bronze {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.top-student-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.top-student-no-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Facility Card ── */
.facility-card {
  text-align: center;
  padding: 24px 18px;
}

.facility-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.3rem;
  color: var(--white);
  transition: var(--transition);
}

.school-card:hover .facility-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  transform: scale(1.08);
}

/* ── Testimonial ── */
.testimonial-card {
  padding: 22px 24px;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--accent);
  opacity: .2;
  position: absolute;
  top: 4px;
  left: 14px;
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text);
  font-size: .9rem;
  margin-bottom: 14px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 11px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: .88rem;
  color: var(--primary);
}

.testimonial-author span {
  font-size: .76rem;
  color: var(--text-light);
}

.stars {
  color: #f59e0b;
  font-size: .72rem;
  margin-bottom: 3px;
}

/* ── Gallery ── */
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 32, 64, .62);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-item-overlay i {
  color: var(--white);
  font-size: 1.6rem;
}

.gallery-filter-btn {
  border-radius: 50px;
  padding: 6px 17px;
  font-size: .81rem;
  font-weight: 600;
  transition: var(--transition);
}

/* ── FAQ ── */
.faq-accordion .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  margin-bottom: 7px;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-weight: 600;
  font-size: .9rem;
  color: var(--primary);
  background: var(--white);
  padding: 14px 18px;
}

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

.faq-accordion .accordion-body {
  font-size: .88rem;
  color: var(--text-light);
  padding: 13px 18px;
  border-top: 1px solid var(--border);
}

/* ── Documents ── */
.doc-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: var(--transition);
}

.doc-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateX(3px);
}

.doc-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.doc-icon.pdf {
  background: #fee2e2;
  color: #dc2626;
}

.doc-icon.doc,
.doc-icon.docx {
  background: #dbeafe;
  color: #1d4ed8;
}

.doc-icon.xls,
.doc-icon.xlsx {
  background: #dcfce7;
  color: #16a34a;
}

.doc-icon.default {
  background: var(--light-bg);
  color: var(--text-light);
}

.doc-body {
  flex: 1;
  min-width: 0;
}

.doc-body h6 {
  margin: 0 0 2px;
  font-size: .88rem;
  color: var(--primary);
}

.doc-body small {
  color: var(--text-light);
  font-size: .76rem;
}

.doc-download {
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.doc-download:hover {
  color: var(--primary);
}

/* ── Results ── */
.result-card {
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.result-stat {
  text-align: center;
  padding: 10px;
  background: var(--light-bg);
  border-radius: var(--radius);
}

.result-stat .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-head);
  line-height: 1;
}

.result-stat .lbl {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ── Contact ── */
.contact-info-item {
  display: flex;
  gap: 13px;
  margin-bottom: 16px;
}

.contact-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .85rem;
  flex-shrink: 0;
}

.contact-info-text strong {
  display: block;
  color: var(--primary);
  font-size: .83rem;
}

.contact-info-text span {
  color: var(--text-light);
  font-size: .86rem;
}

.contact-form .form-control,
.contact-form .form-select {
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 10px 13px;
  font-size: .9rem;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 149, 42, .13);
}

/* ── Footer ── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .78);
}

.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  padding: 36px 0;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon span {
  color: var(--white);
  font-weight: 800;
  font-family: var(--font-head);
  font-size: .95rem;
}

.footer-school-name {
  color: var(--white);
  font-size: .97rem;
  font-family: var(--font-head);
}

.footer-desc {
  font-size: .82rem;
  color: rgba(255, 255, 255, .58);
  line-height: 1.65;
}

.footer-heading {
  color: var(--white);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 13px;
  font-family: var(--font-body);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 7px;
}

.footer-links a {
  color: rgba(255, 255, 255, .58);
  font-size: .83rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 3px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
}

.footer-contact-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 9px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .65);
}

.footer-contact-list li i {
  color: var(--accent-light);
  margin-top: 3px;
  flex-shrink: 0;
  width: 13px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .68);
  font-size: .73rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, .1);
}

.footer-socials a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  background: rgba(0, 0, 0, .2);
  padding: 10px 0;
}

.footer-bottom p {
  font-size: .77rem;
  color: rgba(255, 255, 255, .42);
  margin: 0;
}

.footer-admin-link {
  color: rgba(255, 255, 255, .32);
}

.footer-admin-link:hover {
  color: var(--accent-light);
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 9999;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  box-shadow: 0 3px 12px rgba(200, 149, 42, .4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Misc ── */
.badge-featured {
  background: var(--accent);
  color: var(--white);
  padding: 2px 9px;
  border-radius: 50px;
  font-size: .68rem;
  font-weight: 700;
}

.badge-active {
  background: #dcfce7;
  color: #16a34a;
  padding: 2px 9px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media(max-width:991px) {
  .section-py {
    padding: 40px 0;
  }

  .content-section {
    padding: 40px 0;
  }
}

@media(max-width:767px) {
  .section-py {
    padding: 32px 0;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .hero-slide {
    min-height: 300px;
  }

  .page-banner {
    min-height: 150px;
    padding: 36px 0;
  }

  .stats-section {
    padding: 32px 0;
  }

  .cta-section {
    padding: 40px 0;
  }

  .school-card-img {
    height: 170px;
  }

  .hm-photo,
  .hm-no-photo {
    height: 280px;
  }

  .section-img-wrap img {
    height: 220px !important;
  }
}

@media(max-width:575px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: .88rem;
  }

  .hm-speech-badge {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

/* ══════════════════════════════════════════════════════════
   TESTIMONIALS MARQUEE
══════════════════════════════════════════════════════════ */
.testimonial-marquee-wrap {
  overflow: hidden;
  width: 100%;
  padding: 8px 0 16px;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.testimonial-marquee {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.testimonial-marquee:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-33.333%);
  }
}

.testimonial-marquee-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, .5);
  padding: 22px 24px;
  width: 300px;
  flex-shrink: 0;
  position: relative;
  transition: box-shadow .3s ease, transform .3s ease;
  display: flex;
  flex-direction: column;
  height: 280px;
}

.testimonial-marquee-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.testimonial-marquee-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 3.5rem;
  color: var(--accent);
  opacity: .2;
  position: absolute;
  top: 6px;
  left: 14px;
  line-height: 1;
}

.testimonial-marquee-card p {
  font-style: italic;
  color: var(--text);
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: 14px;
  min-height: 60px;
  flex-grow: 1;
}

.testimonial-marquee-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.testimonial-marquee-card .testimonial-author strong {
  display: block;
  font-size: .88rem;
  color: var(--primary);
}

.testimonial-marquee-card .testimonial-author span {
  font-size: .76rem;
  color: var(--text-light);
}

@media (max-width: 767px) {
  .testimonial-marquee-card {
    width: 260px;
    padding: 18px 18px;
  }

  .testimonial-marquee {
    animation-duration: 30s;
    gap: 14px;
  }
}