/* ==========================================================================
   SERWAA NYARKO GIRLS' SENIOR HIGH SCHOOL - MAIN DESIGN SYSTEM
   Exact clone design matching reference image
   ========================================================================== */

:root {
  --primary: #24134a;
  --primary-dark: #190a36;
  --primary-light: #39206e;
  --royal-purple: #43217c;
  --gold: #e5a823;
  --gold-hover: #c98e18;
  --gold-light: #fef3c7;
  --gold-border: #f59e0b;
  --text-dark: #1e1b2e;
  --text-muted: #595666;
  --text-light: #ffffff;
  --bg-page: #f8f9fd;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(36, 19, 74, 0.06);
  --shadow-md: 0 6px 20px rgba(36, 19, 74, 0.1);
  --shadow-lg: 0 12px 32px rgba(36, 19, 74, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.25s ease;
}

.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. TOP UTILITY BAR
   ========================================================================== */
.top-bar {
  background-color: #120726;
  color: #d1d0db;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
  width: 100%;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-contacts,
.top-bar-info {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.top-contact-item,
.info-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.top-contact-item i,
.top-contact-item svg,
.info-item i,
.info-item svg {
  color: var(--gold);
  font-size: 0.82rem;
}

.top-actions,
.top-bar-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-quick-links,
.top-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.top-quick-links a,
.top-nav-links a {
  color: #d1d0db;
}

.top-quick-links a:hover,
.top-nav-links a:hover {
  color: var(--gold);
}

.top-divider {
  color: rgba(255, 255, 255, 0.25);
  user-select: none;
}

.top-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.top-socials a:hover {
  background: var(--gold);
  color: var(--primary);
  transform: translateY(-1px);
}

.top-portal-btn {
  background: var(--gold);
  color: #120726;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.top-portal-btn:hover {
  background: #f5b73d;
  transform: translateY(-1px);
}

/* ==========================================================================
   2. MAIN HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  position: relative;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-crest {
  height: 64px;
  width: auto;
  max-width: 75px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.brand-wrapper:hover .brand-crest {
  transform: scale(1.02);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  white-space: nowrap;
}

.brand-text .school-level {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--royal-purple);
  line-height: 1.2;
  white-space: nowrap;
}

.brand-text .school-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8rem;
  color: #716e82;
  margin-top: 2px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.81rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #2b2540;
  padding: 8px 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap; /* PREVENTS TEXT FROM WRAPPING INTO 2 LINES */
  position: relative;
  transition: color 0.2s ease;
}

.nav-link.active,
.nav-link:hover {
  color: var(--royal-purple);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-link .dropdown-arrow,
.nav-link svg.dropdown-arrow {
  font-size: 0.6rem;
  margin-left: 2px;
  opacity: 0.65;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover .dropdown-arrow {
  opacity: 1;
  transform: translateY(1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #2b2540;
  background: #f4f3f9;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.search-btn:hover {
  background: var(--royal-purple);
  color: #fff;
  transform: scale(1.05);
}

.header-portal-btn {
  background: var(--royal-purple);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.header-portal-btn:hover {
  background: #532c94;
  box-shadow: 0 4px 12px rgba(67, 33, 124, 0.3);
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  background: #f4f3f9;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: var(--royal-purple);
  color: #fff;
}


/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: #ffffff;
  padding: 40px 0 60px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  z-index: 2;
}

.hero-title-main {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.05;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hero-title-accent {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #555263;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-purple {
  background: var(--royal-purple);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(67, 33, 124, 0.25);
}

.btn-primary-purple:hover {
  background: #351666;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67, 33, 124, 0.35);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 26px;
  border: 1.5px solid #2b2540;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-outline-dark:hover {
  background: #f6f5fa;
  border-color: var(--royal-purple);
  color: var(--royal-purple);
  transform: translateY(-2px);
}

/* Curved Arch Hero Image Container matching reference image */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero-visual-wrapper::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -14px;
  right: 10px;
  bottom: -10px;
  border-radius: 150px 28px 28px 150px;
  background: #391564;
  z-index: 1;
  pointer-events: none;
}

.hero-curved-frame {
  position: relative;
  width: 100%;
  max-width: 630px;
  border-radius: 140px 20px 20px 140px;
  overflow: hidden;
  border: 4px solid #e5a823;
  box-shadow: 0 16px 36px rgba(24, 11, 48, 0.16);
  background: #ffffff;
  z-index: 2;
}

.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-curved-frame:hover .hero-img {
  transform: scale(1.03);
}

/* Sweeping soft curved backdrop behind */
.hero-bg-accent {
  position: absolute;
  top: -60px;
  right: -100px;
  width: 880px;
  height: 720px;
  background: radial-gradient(circle at 65% 35%, rgba(243, 240, 252, 0.95) 0%, rgba(243, 240, 252, 0.65) 50%, rgba(255, 255, 255, 0) 75%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   4. FLOATING STATS RIBBON
   ========================================================================== */
.stats-ribbon-container {
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.stats-ribbon-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(36, 19, 74, 0.08);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  border: 1px solid #eeedf5;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-item:not(:last-child) {
  border-right: 1px solid #eeedf5;
  padding-right: 12px;
}

.stat-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.stat-icon-circle.purple {
  background: #f3eefb;
  color: #6d28d9;
}

.stat-icon-circle.gold {
  background: #fef8eb;
  color: #d97706;
}

.stat-icon-circle.teal {
  background: #ecfeff;
  color: #0891b2;
}

.stat-icon-circle.pink {
  background: #fff1f2;
  color: #e11d48;
}

.stat-icon-circle.blue {
  background: #eff6ff;
  color: #2563eb;
}

.stat-icon-circle.indigo {
  background: #eef2ff;
  color: #4338ca;
}

.stat-icon-circle.cyan {
  background: #ecfeff;
  color: #0891b2;
}

.stat-info .stat-number {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-info .stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #6b687b;
  text-transform: capitalize;
}

/* ==========================================================================
   5. ABOUT US SECTION (3-COLUMN EXACT DESIGN)
   ========================================================================== */
.about-section {
  padding: 70px 0;
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.28fr 1.12fr;
  gap: 32px;
  align-items: start;
}

/* Left Column: School Gate + Vision & Mission Card */
.about-left-col {
  display: flex;
  flex-direction: column;
}

.about-gate-frame {
  position: relative;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(36, 19, 74, 0.08);
}

.about-gate-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.vision-mission-card {
  background: #230f46;
  color: #ffffff;
  padding: 24px 20px;
  border-radius: 0 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vm-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.vm-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.vm-text h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.vm-text p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

/* Center Column: Story & 4 Feature Highlights */
.about-center-col {
  padding: 0 6px;
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--royal-purple);
  margin-bottom: 8px;
  display: block;
}

.about-heading {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.about-paragraphs p {
  font-size: 0.88rem;
  color: #555263;
  margin-bottom: 12px;
  line-height: 1.65;
}

.about-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 24px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.feature-icon-circle.purple { background: #f3eefb; color: #6d28d9; }
.feature-icon-circle.teal   { background: #ecfeff; color: #0891b2; }
.feature-icon-circle.cyan   { background: #f0f9ff; color: #0284c7; }
.feature-icon-circle.amber  { background: #fef8eb; color: #d97706; }

.feature-text h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.76rem;
  color: #686577;
  line-height: 1.3;
}

.btn-purple-sm {
  background: var(--royal-purple);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-purple-sm:hover {
  background: #361769;
  transform: translateY(-2px);
}

/* Right Column: Announcements & Quick Links */
.about-right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.announcements-card,
.quick-links-card {
  background: #ffffff;
  border: 1px solid #e7e5f0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(36, 19, 74, 0.04);
}

.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1eff8;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.card-link {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--royal-purple);
}

.card-link:hover {
  color: var(--gold);
}

.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.announcement-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.announce-icon.purple { background: #f3eefb; color: #6d28d9; }
.announce-icon.pink   { background: #fff1f2; color: #e11d48; }
.announce-icon.cyan   { background: #ecfeff; color: #0891b2; }
.announce-icon.gold   { background: #fef8eb; color: #d97706; }
.announce-icon.blue   { background: #eff6ff; color: #2563eb; }

.announce-info {
  flex-grow: 1;
  min-width: 0;
}

.announce-info h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announce-info p {
  font-size: 0.72rem;
  color: #7b788a;
  line-height: 1.2;
}

.announce-date {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9d9aa8;
  flex-shrink: 0;
}

/* Quick Links Grid */
.quick-links-card .card-title {
  margin-bottom: 12px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-links-grid .ql-btn:nth-child(5) {
  grid-column: 2 / 3;
}

.quick-links-grid .ql-btn:nth-child(6) {
  grid-column: 3 / 4;
}

.ql-btn {
  background: #ffffff;
  border: 1px solid #e7e5f0;
  border-radius: 8px;
  padding: 10px 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ql-btn:hover {
  border-color: var(--royal-purple);
  background: #faf8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(67, 33, 124, 0.08);
}

.ql-icon {
  font-size: 1.1rem;
  color: var(--royal-purple);
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ql-btn span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #2b2540;
  line-height: 1.15;
}

/* ==========================================================================
   6. OUR ACADEMIC PROGRAMMES
   ========================================================================== */
.programmes-section {
  padding: 70px 0 80px;
  background: #ffffff;
  border-top: 1px solid #f0edf7;
}

.section-header-center {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.programmes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.programme-card {
  background: #ffffff;
  border: 1px solid #e7e5f0;
  border-radius: 14px;
  padding: 24px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.programme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(67, 33, 124, 0.12);
  border-color: var(--royal-purple);
}

.prog-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 16px;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.prog-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.prog-desc {
  font-size: 0.78rem;
  color: #686577;
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.prog-link {
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Custom matching link colors */
.programme-card:nth-child(1) .prog-link { color: #7c3aed; }
.programme-card:nth-child(2) .prog-link { color: #d97706; }
.programme-card:nth-child(3) .prog-link { color: #0284c7; }
.programme-card:nth-child(4) .prog-link { color: #e11d48; }
.programme-card:nth-child(5) .prog-link { color: #4f46e5; }
.programme-card:nth-child(6) .prog-link { color: #059669; }

.prog-link:hover {
  opacity: 0.8;
  transform: translateX(3px);
}

/* ==========================================================================
   7. WHY CHOOSE SERWAA NYARKO GIRLS' SHS? (PURPLE STRIP)
   ========================================================================== */
.why-choose-section {
  background: #230f46;
  color: #ffffff;
  padding: 44px 0;
  position: relative;
}

.why-choose-title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 32px;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 10px;
}

.why-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.why-icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon svg,
.why-icon i {
  font-size: 1.6rem;
}

.why-item h4 {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f1eff8;
  line-height: 1.35;
}

/* ==========================================================================
   8. NEWS, EVENTS & GALLERY (3 COLUMNS)
   ========================================================================== */
.news-events-section {
  padding: 70px 0;
  background: #ffffff;
}

.tri-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 32px;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  border-bottom: 2px solid #f1eff8;
  padding-bottom: 10px;
}

.column-title {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.view-all-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--royal-purple);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.view-all-link:hover {
  color: var(--gold);
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-item-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f2f8;
}

.news-date-badge {
  text-align: center;
  background: #fbfafc;
  border: 1px solid #e7e5f0;
  border-radius: 8px;
  padding: 6px 8px;
  min-width: 52px;
  flex-shrink: 0;
}

.news-date-badge .month {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--royal-purple);
  text-transform: uppercase;
}

.news-date-badge .day {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.news-date-badge .year {
  font-size: 0.65rem;
  color: #9d9aa8;
}

.news-details h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.news-details p {
  font-size: 0.78rem;
  color: #636070;
  line-height: 1.4;
}

/* Events List */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.event-item-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f2f8;
}

.event-date-box {
  text-align: center;
  background: #fbfafc;
  border: 1px solid #e7e5f0;
  border-radius: 8px;
  padding: 6px 8px;
  min-width: 50px;
  flex-shrink: 0;
}

.event-date-box .month {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--royal-purple);
  text-transform: uppercase;
}

.event-date-box .day {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
}

.event-date-box .year {
  font-size: 0.65rem;
  color: #8b889d;
}

.event-details h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.event-details p {
  font-size: 0.78rem;
  color: #636070;
  line-height: 1.4;
  margin-bottom: 6px;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: #8b889d;
}

.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Gallery Grid (2x3) */
.gallery-grid-2x3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery-grid-2x3 .gallery-tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 96px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.gallery-grid-2x3 .gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid-2x3 .gallery-tile:hover img {
  transform: scale(1.06);
}

/* ==========================================================================
   9. MOTTO & CALL-TO-ACTION SECTION
   ========================================================================== */
.motto-cta-section {
  position: relative;
  overflow: hidden;
}

.motto-cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.55fr 1.35fr;
  min-height: 220px;
}

.motto-photo-block {
  position: relative;
  height: 100%;
}

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

.motto-gold-block {
  background: #c88e28;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.motto-script-tag {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 4px;
}

.motto-bold-twi {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
}

.motto-sub-english {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
}

.motto-purple-cta {
  background: #211145;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.cta-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.motto-purple-cta h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.motto-purple-cta p {
  font-size: 0.84rem;
  color: #cfcbe0;
  line-height: 1.45;
  margin-bottom: 18px;
  max-width: 360px;
}

.btn-gold-action {
  background: #e5a823;
  color: #1e0d37;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 11px 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.btn-gold-action:hover {
  background: #f5b73d;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(229, 168, 35, 0.4);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer {
  background: #14072b;
  color: #bebcd0;
  font-size: 0.84rem;
  padding: 70px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.95fr 1.15fr 0.85fr;
  gap: 32px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-crest {
  height: 56px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 3px;
}

.footer-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.footer-brand-title span {
  display: block;
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
}

.footer-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 18px;
  color: #9d9aa8;
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b2afc4;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-social-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-social-vertical li a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #bebcd0;
  font-size: 0.84rem;
  transition: all 0.2s ease;
}

.footer-social-vertical li a i {
  width: 18px;
  font-size: 0.95rem;
  text-align: center;
  color: #bebcd0;
}

.footer-social-vertical li a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-social-vertical li a:hover i {
  color: var(--gold);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.footer-contact-list svg,
.footer-contact-list i {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: #7b788a;
}

/* ==========================================================================
   11. MODALS & POPUPS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 7, 38, 0.75);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eeedf5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fbfafc;
  border-radius: 16px 16px 0 0;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  font-size: 1.4rem;
  color: #8b889d;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close-btn:hover {
  background: #f1eff8;
  color: var(--primary);
}

.modal-body {
  padding: 24px;
}

/* Portal Role Switcher Modal Styles */
.role-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.role-card-opt {
  border: 2px solid #eeedf5;
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.role-card-opt:hover,
.role-card-opt.active {
  border-color: var(--royal-purple);
  background: #f8f4ff;
  transform: translateY(-2px);
}

.role-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.role-card-opt.admin .role-icon { background: #fee2e2; color: #b91c1c; }
.role-card-opt.teacher .role-icon { background: #e0e7ff; color: #4338ca; }
.role-card-opt.student .role-icon { background: #dcfce7; color: #15803d; }

.role-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.role-subtitle {
  font-size: 0.75rem;
  color: #6d6a7e;
}

.quick-credentials-box {
  background: #fbfafc;
  border: 1px dashed #d8d4e8;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.82rem;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cred-details span {
  font-weight: 700;
  color: var(--primary);
}

.quick-fill-btn {
  background: var(--royal-purple);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #dcd9e8;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--royal-purple);
  box-shadow: 0 0 0 3px rgba(67, 33, 124, 0.1);
}

.form-submit-btn {
  width: 100%;
  background: var(--royal-purple);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: 8px;
  margin-top: 8px;
}

.form-submit-btn:hover {
  background: #361769;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1280px) {
  .nav-links {
    gap: 6px;
  }
  .nav-link {
    font-size: 0.76rem;
    letter-spacing: 0.01em;
    padding: 8px 2px;
  }
  .brand-text h1 {
    font-size: 1.25rem;
  }
  .brand-text .school-level {
    font-size: 0.98rem;
  }
}

@media (max-width: 1140px) {
  .mobile-menu-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 0;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-top: 1px solid #f0edf7;
    z-index: 1000;
  }
  .nav-links.mobile-open {
    display: flex;
    animation: slideDownNav 0.25s ease forwards;
  }
  .nav-item {
    width: 100%;
    border-bottom: 1px solid #f5f4fa;
  }
  .nav-link {
    width: 100%;
    padding: 12px 6px;
    font-size: 0.9rem;
    justify-content: space-between;
  }
  .nav-link.active::after {
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    height: 100%;
  }

  .programmes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .tri-grid {
    grid-template-columns: 1fr;
  }
  .motto-cta-grid {
    grid-template-columns: 1fr;
  }
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-ribbon-card {
    grid-template-columns: repeat(2, 1fr);
  }
}

@keyframes slideDownNav {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }
  .top-contacts {
    justify-content: center;
    gap: 14px;
  }
  .top-actions {
    justify-content: center;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .brand-crest {
    height: 52px;
    max-width: 60px;
  }
  .brand-text h1 {
    font-size: 1.15rem;
  }
  .brand-text .school-level {
    font-size: 0.88rem;
  }
  .brand-text .school-motto {
    display: none;
  }
  .header-inner {
    padding: 8px 0;
  }
  .hero-title-main {
    font-size: 2.2rem;
  }
  .hero-title-accent {
    font-size: 1.5rem;
  }
  .stats-ribbon-card {
    grid-template-columns: 1fr;
  }
  .stat-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #eeedf5;
    padding-bottom: 12px;
  }
  .programmes-grid {
    grid-template-columns: 1fr;
  }
  .role-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .brand-crest {
    height: 44px;
    max-width: 50px;
  }
  .brand-text h1 {
    font-size: 1.02rem;
  }
  .brand-text .school-level {
    font-size: 0.78rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group a,
  .hero-cta-group button {
    width: 100%;
    justify-content: center;
  }
}

