/* ==========================================================================
   Gauteng Central College (GCC) — Unified Design System & Master Stylesheet
   ========================================================================== */

:root {
  /* Brand Palette */
  --gcc-navy-950: #0d1020;
  --gcc-navy-900: #14182f;
  --gcc-navy-800: #1b203e;
  --gcc-navy-700: #252c54;
  --gcc-navy-600: #333d73;
  --gcc-navy-500: #465399;

  --gcc-gold-600: #8a8a00;
  --gcc-gold-500: #ffff00;
  --gcc-gold-400: #ffff00;
  --gcc-gold-300: #ffff66;
  --gcc-gold-100: #ffffcc;

  --gcc-slate-900: #0f172a;
  --gcc-slate-800: #1e293b;
  --gcc-slate-700: #334155;
  --gcc-slate-600: #475569;
  --gcc-slate-500: #64748b;
  --gcc-slate-400: #94a3b8;
  --gcc-slate-300: #cbd5e1;
  --gcc-slate-200: #e2e8f0;
  --gcc-slate-100: #f1f5f9;
  --gcc-slate-50: #f8fafc;
  --gcc-white: #ffffff;

  --gcc-success: #059669;
  --gcc-success-bg: #ecfdf5;
  --gcc-warning: #d97706;
  --gcc-warning-bg: #fffbeb;
  --gcc-danger: #dc2626;
  --gcc-danger-bg: #fef2f2;
  --gcc-info: #0284c7;
  --gcc-info-bg: #f0f9ff;

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing & Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 20px rgba(255, 255, 0, 0.35);

  /* Layout */
  --container-max: 1240px;
  --header-height: 80px;
  --topbar-height: 40px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: light;
}

/* ==========================================================================
   Dark Mode Theme Tokens & Component Overrides
   ========================================================================== */
[data-theme="dark"] {
  color-scheme: dark;

  /* Inverted Surface & Text Slate Scale */
  --gcc-white: #11182c;
  --gcc-slate-50: #0b0f1d;
  --gcc-slate-100: #161f38;
  --gcc-slate-200: #233052;
  --gcc-slate-300: #33436b;
  --gcc-slate-400: #8b9dc3;
  --gcc-slate-500: #9fb0d4;
  --gcc-slate-600: #cbd5e1;
  --gcc-slate-700: #e2e8f0;
  --gcc-slate-800: #f1f5f9;
  --gcc-slate-900: #ffffff;

  /* Status & Accent Dark Adjustments */
  --gcc-gold-100: rgba(255, 255, 0, 0.15);
  --gcc-gold-600: #ffff00;
  --gcc-success: #34d399;
  --gcc-success-bg: rgba(16, 185, 129, 0.15);
  --gcc-warning: #fbbf24;
  --gcc-warning-bg: rgba(245, 158, 11, 0.15);
  --gcc-danger: #f87171;
  --gcc-danger-bg: rgba(239, 68, 68, 0.15);
  --gcc-info: #38bdf8;
  --gcc-info-bg: rgba(14, 165, 233, 0.15);

  /* Dark Elevation Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.45);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.55), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 20px -3px rgba(0, 0, 0, 0.65), 0 4px 6px -4px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 22px 30px -5px rgba(0, 0, 0, 0.75), 0 8px 12px -6px rgba(0, 0, 0, 0.55);
}

/* Dark Mode Specific Refinements */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #f8fafc !important;
}

[data-theme="dark"] a {
  color: var(--gcc-gold-400);
}

[data-theme="dark"] a:hover {
  color: var(--gcc-gold-300);
}

[data-theme="dark"] .site-header {
  background-color: rgba(17, 24, 44, 0.94);
  border-bottom-color: var(--gcc-slate-200);
}

[data-theme="dark"] .brand-name {
  color: #ffffff;
}

[data-theme="dark"] .nav-link {
  color: var(--gcc-slate-600);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #ffffff;
  background-color: var(--gcc-slate-100);
}

[data-theme="dark"] .dropdown-menu {
  background-color: #161f38;
  border-color: var(--gcc-slate-200);
}

[data-theme="dark"] .dropdown-item {
  color: var(--gcc-slate-700);
}

[data-theme="dark"] .dropdown-item:hover {
  background-color: var(--gcc-slate-200);
  color: #ffffff;
}

[data-theme="dark"] .mobile-toggle {
  color: #f8fafc;
}

[data-theme="dark"] .btn-primary {
  background-color: var(--gcc-navy-600);
  border-color: var(--gcc-navy-500);
  color: #ffffff;
}

[data-theme="dark"] .btn-primary:hover {
  background-color: var(--gcc-navy-500);
  color: var(--gcc-gold-300);
}

[data-theme="dark"] .btn-outline {
  color: var(--gcc-slate-700);
  border-color: var(--gcc-slate-300);
}

[data-theme="dark"] .btn-outline:hover {
  background-color: var(--gcc-slate-200);
  border-color: var(--gcc-gold-400);
  color: #ffffff;
}

[data-theme="dark"] .btn-outline-white {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

[data-theme="dark"] .btn-accent,
[data-theme="dark"] .btn-accent:hover {
  color: var(--gcc-navy-950);
}

[data-theme="dark"] .badge-navy {
  background-color: rgba(70, 83, 153, 0.35);
  color: #cbd5e1;
  border: 1px solid rgba(139, 157, 195, 0.25);
}

[data-theme="dark"] .filter-tab.active,
[data-theme="dark"] .filter-tab:hover {
  background-color: var(--gcc-gold-500);
  border-color: var(--gcc-gold-500);
  color: var(--gcc-navy-950);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .search-input {
  background-color: #0d1324 !important;
  color: #f1f5f9 !important;
  border-color: var(--gcc-slate-300);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .search-input:focus {
  border-color: var(--gcc-gold-500);
  box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.22);
}

[data-theme="dark"] .dropzone {
  background-color: rgba(13, 19, 36, 0.6);
  border-color: var(--gcc-slate-300);
}

[data-theme="dark"] .dropzone:hover,
[data-theme="dark"] .dropzone.dragover {
  border-color: var(--gcc-gold-500);
  background-color: rgba(255, 255, 0, 0.08);
}

[data-theme="dark"] .hero,
[data-theme="dark"] .section-dark,
[data-theme="dark"] .wizard-header,
[data-theme="dark"] .site-footer {
  color: #f1f5f9;
}

[data-theme="dark"] .hero .hero-lead,
[data-theme="dark"] .hero p,
[data-theme="dark"] .section-dark p,
[data-theme="dark"] .section-dark ul,
[data-theme="dark"] .wizard-header .wizard-step-label {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .site-footer p,
[data-theme="dark"] .site-footer .footer-bottom,
[data-theme="dark"] .site-footer .footer-contact {
  color: #9fb0d4 !important;
}

[data-theme="dark"] .site-footer .footer-links a {
  color: #cbd5e1;
}

[data-theme="dark"] .site-footer .footer-links a:hover {
  color: var(--gcc-gold-400);
}

[data-theme="dark"] .school-card {
  color: #ffffff;
}

[data-theme="dark"] .school-card-content p {
  color: #e2e8f0;
}

[data-theme="dark"] .stat-num {
  color: #f8fafc;
}

[data-theme="dark"] .stat-icon {
  background-color: var(--gcc-slate-100);
  color: var(--gcc-gold-400);
}

[data-theme="dark"] .mobile-nav-link {
  color: #f1f5f9;
}

[data-theme="dark"] .mobile-drawer-header .brand span {
  color: #f8fafc !important;
}

[data-theme="dark"] .toast {
  background-color: #1b2440;
  color: #ffffff;
  border: 1px solid var(--gcc-slate-200);
  border-left: 4px solid var(--gcc-gold-500);
}

/* Theme Toggle Button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gcc-slate-300);
  background-color: var(--gcc-slate-100);
  color: var(--gcc-navy-900);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background-color: var(--gcc-slate-200);
  border-color: var(--gcc-gold-500);
  color: var(--gcc-gold-600);
  transform: translateY(-1px);
}

[data-theme="dark"] .theme-toggle {
  background-color: var(--gcc-slate-100);
  border-color: var(--gcc-slate-300);
  color: var(--gcc-gold-400);
}

[data-theme="dark"] .theme-toggle:hover {
  background-color: var(--gcc-slate-200);
  border-color: var(--gcc-gold-400);
  color: var(--gcc-gold-300);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
  transform: rotate(12deg);
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Base & Reset */
.text-center {
  text-align: center;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--gcc-slate-50);
  color: var(--gcc-slate-800);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--gcc-navy-700);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gcc-gold-600);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--gcc-navy-900);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
}

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

/* Accessibility Focus Ring */
:focus-visible {
  outline: 3px solid var(--gcc-gold-500);
  outline-offset: 3px;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-dark {
  background-color: var(--gcc-navy-900);
  color: #f1f5f9;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-gray {
  background-color: var(--gcc-slate-100);
}

/* Top Announcement Bar */
.topbar {
  background-color: var(--gcc-navy-950);
  color: var(--gcc-slate-300);
  font-size: 0.84rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-links,
.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar a {
  color: var(--gcc-slate-300);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar a:hover {
  color: var(--gcc-gold-400);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gcc-slate-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--gcc-navy-900);
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--gcc-gold-600);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.site-footer .brand-sub,
[data-theme="dark"] .brand-sub {
  color: #ffff00;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--gcc-slate-700);
  padding: 0.5rem 0.68rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gcc-navy-900);
  background-color: var(--gcc-slate-100);
}

.nav-link.active {
  color: var(--gcc-navy-800);
  border-bottom: 2px solid var(--gcc-gold-500);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 195px;
  background-color: var(--gcc-white);
  border: 1px solid var(--gcc-slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1010;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gcc-slate-700);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: var(--gcc-slate-100);
  color: var(--gcc-navy-900);
  transform: translateX(3px);
}

.dropdown-item small {
  display: block;
  font-size: 0.75rem;
  color: var(--gcc-slate-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.header-actions .btn {
  white-space: nowrap;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--gcc-navy-900);
  border-radius: var(--radius-sm);
}

.mobile-toggle:focus {
  outline: 2px solid var(--gcc-gold-500);
}

/* Buttons */
.btn {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.25;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--gcc-navy-900);
  color: #ffffff;
  border-color: var(--gcc-navy-900);
}

.btn-primary:hover {
  background-color: var(--gcc-navy-800);
  color: var(--gcc-gold-300);
  box-shadow: var(--shadow-md);
}

.btn-accent,
.btn-gold {
  background-color: var(--gcc-gold-500);
  color: var(--gcc-navy-950);
  border-color: var(--gcc-gold-500);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover,
.btn-gold:hover {
  background-color: var(--gcc-gold-300);
  border-color: var(--gcc-gold-300);
  color: var(--gcc-navy-950);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--gcc-navy-900);
  border-color: var(--gcc-slate-300);
}

.btn-outline:hover {
  background-color: var(--gcc-slate-100);
  border-color: var(--gcc-navy-900);
  color: var(--gcc-navy-900);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-gold {
  background-color: var(--gcc-gold-500);
  color: var(--gcc-navy-950);
  border: 1px solid #e6e600;
}

.hero .badge-gold,
.page-header .badge-gold,
[data-theme="dark"] .badge-gold {
  background-color: rgba(255, 255, 0, 0.15);
  color: #ffff00;
  border: 1px solid rgba(255, 255, 0, 0.45);
}

.badge-navy {
  background-color: rgba(37, 44, 84, 0.1);
  color: var(--gcc-navy-800);
}

.badge-success {
  background-color: var(--gcc-success-bg);
  color: var(--gcc-success);
}

.badge-warning {
  background-color: var(--gcc-warning-bg);
  color: var(--gcc-warning);
}

.badge-danger {
  background-color: var(--gcc-danger-bg);
  color: var(--gcc-danger);
}

.badge-info {
  background-color: var(--gcc-info-bg);
  color: var(--gcc-info);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--gcc-navy-950) 0%, var(--gcc-navy-900) 60%, var(--gcc-navy-800) 100%);
  color: #ffffff;
  padding: 5.5rem 0 6rem 0;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 0, 0.15) 0%, rgba(255, 255, 0, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content h1 {
  font-size: 3.25rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-content h1 span.gold {
  color: var(--gcc-gold-400);
}

.hero-lead {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 620px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--gcc-gold-400);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--gcc-slate-400);
  margin-top: 0.35rem;
}

.hero-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.hero-card h3 {
  color: #ffffff;
  font-size: 1.35rem;
}

/* Feature Cards / Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background-color: var(--gcc-white);
  border: 1px solid var(--gcc-slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gcc-slate-300);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background-color: var(--gcc-gold-100);
  color: var(--gcc-gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-body {
  color: var(--gcc-slate-600);
  font-size: 0.94rem;
  flex-grow: 1;
}

.card-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gcc-slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Section Headings */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-header .badge {
  margin-bottom: 0.85rem;
}

.section-header h2 {
  font-size: 2.35rem;
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--gcc-slate-600);
  font-size: 1.1rem;
}

/* School Entry Cards */
.school-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: var(--gcc-navy-900);
  color: #ffffff;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.school-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition: transform 0.5s ease;
  z-index: 1;
}

.school-card:hover .school-card-bg {
  transform: scale(1.05);
  opacity: 0.45;
}

.school-card-content {
  position: relative;
  z-index: 2;
}

.school-card-content h3 {
  color: #ffffff;
  font-size: 1.65rem;
  margin-bottom: 0.6rem;
}

.school-card-content p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Filter Controls */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-tab {
  padding: 0.6rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background-color: var(--gcc-white);
  border: 1px solid var(--gcc-slate-300);
  color: var(--gcc-slate-700);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  background-color: var(--gcc-navy-900);
  border-color: var(--gcc-navy-900);
  color: #ffffff;
}

.filter-tab.active {
  background-color: var(--gcc-navy-900);
  box-shadow: var(--shadow-sm);
}

.search-bar {
  max-width: 560px;
  margin: 0 auto 2.5rem auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.9rem 1.2rem 0.9rem 3rem;
  font-family: var(--font-body);
  font-size: 0.96rem;
  border: 1px solid var(--gcc-slate-300);
  border-radius: var(--radius-pill);
  background-color: var(--gcc-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--gcc-navy-800);
  box-shadow: 0 0 0 4px rgba(37, 44, 84, 0.12);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gcc-slate-400);
  font-size: 1.1rem;
  pointer-events: none;
}

/* Course Cards */
.course-card {
  background-color: var(--gcc-white);
  border: 1px solid var(--gcc-slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: var(--gcc-slate-300);
  box-shadow: var(--shadow-lg);
}

.course-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.course-title {
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--gcc-navy-900);
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--gcc-slate-500);
  margin-bottom: 1rem;
}

.course-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.course-desc {
  font-size: 0.9rem;
  color: var(--gcc-slate-600);
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.course-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gcc-slate-800);
  margin-bottom: 0.45rem;
}

.form-label.required::after {
  content: ' *';
  color: var(--gcc-danger);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gcc-slate-800);
  background-color: var(--gcc-white);
  border: 1px solid var(--gcc-slate-300);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--gcc-navy-800);
  box-shadow: 0 0 0 3px rgba(37, 44, 84, 0.12);
  outline: none;
}

.form-control.is-invalid {
  border-color: var(--gcc-danger);
  background-color: var(--gcc-danger-bg);
}

.form-feedback {
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.form-feedback.invalid-feedback {
  color: var(--gcc-danger);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Multi-Step Wizard */
.wizard {
  background-color: var(--gcc-white);
  border: 1px solid var(--gcc-slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.wizard-header {
  background: linear-gradient(135deg, var(--gcc-navy-950) 0%, var(--gcc-navy-900) 100%);
  color: #ffffff;
  padding: 2rem 2.5rem;
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-top: 1.75rem;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.wizard-progress-bar {
  position: absolute;
  top: 18px;
  left: 0;
  height: 3px;
  background-color: var(--gcc-gold-500);
  transition: width 0.35s ease;
  z-index: 2;
}

.wizard-step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
}

.wizard-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--gcc-navy-800);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.wizard-step-node.active .wizard-step-circle {
  background-color: var(--gcc-gold-500);
  border-color: var(--gcc-gold-500);
  color: var(--gcc-navy-950);
  box-shadow: var(--shadow-glow);
}

.wizard-step-node.completed .wizard-step-circle {
  background-color: var(--gcc-success);
  border-color: var(--gcc-success);
  color: #ffffff;
}

.wizard-step-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
}

.wizard-step-node.active .wizard-step-label {
  color: var(--gcc-gold-400);
}

.wizard-body {
  padding: 2.5rem;
}

.wizard-step-content {
  display: none;
}

.wizard-step-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  background-color: var(--gcc-slate-50);
  border-top: 1px solid var(--gcc-slate-200);
}

/* Upload Dropzone */
.dropzone {
  border: 2px dashed var(--gcc-slate-300);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  background-color: var(--gcc-slate-50);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--gcc-navy-800);
  background-color: rgba(37, 44, 84, 0.04);
}

.dropzone-icon {
  font-size: 2.2rem;
  color: var(--gcc-slate-400);
  margin-bottom: 0.5rem;
}

.dropzone-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gcc-slate-700);
}

.dropzone-sub {
  font-size: 0.78rem;
  color: var(--gcc-slate-500);
}

.file-preview-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background-color: var(--gcc-slate-100);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 16, 32, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-dialog {
  background-color: var(--gcc-white);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: var(--transition);
  overflow: hidden;
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gcc-slate-200);
  background-color: var(--gcc-slate-50);
}

.modal-header h3 {
  font-size: 1.35rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gcc-slate-400);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.modal-close:hover {
  color: var(--gcc-danger);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--gcc-slate-200);
  background-color: var(--gcc-slate-50);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Admin Dashboard */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background-color: var(--gcc-slate-100);
}

.admin-sidebar {
  background-color: var(--gcc-navy-950);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background-color: var(--gcc-navy-800);
  color: var(--gcc-gold-400);
}

.admin-main {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.admin-topbar {
  background-color: var(--gcc-white);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gcc-slate-200);
}

.admin-content {
  padding: 2rem;
  flex-grow: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.admin-nav-badge {
  margin-left: auto;
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.admin-nav-link.active .admin-nav-badge {
  background-color: var(--gcc-gold-500);
  color: var(--gcc-navy-950);
}

.admin-view-panel {
  display: none;
}

.admin-view-panel.active {
  display: block;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

.toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--gcc-slate-200);
}

.toggle-row:last-child {
  border-bottom: none;
}

.stat-card {
  background-color: var(--gcc-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gcc-slate-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gcc-navy-900);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gcc-slate-500);
  margin-top: 0.35rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--gcc-slate-100);
  color: var(--gcc-navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Tables */
.table-wrapper {
  background-color: var(--gcc-white);
  border: 1px solid var(--gcc-slate-200);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.table th {
  background-color: var(--gcc-slate-50);
  padding: 0.85rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gcc-slate-700);
  border-bottom: 1px solid var(--gcc-slate-200);
  white-space: nowrap;
}

.table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gcc-slate-200);
  color: var(--gcc-slate-700);
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: var(--gcc-slate-50);
}

/* Footer */
.site-footer {
  background-color: var(--gcc-navy-950);
  color: var(--gcc-slate-400);
  margin-top: auto;
  border-top: 4px solid var(--gcc-gold-500);
}

.footer-top {
  padding: 4.5rem 0 3.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
}

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

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-bottom {
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Social Media Links & Icons */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-link:hover {
  background-color: var(--gcc-gold-500);
  color: var(--gcc-navy-950);
  border-color: var(--gcc-gold-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 0, 0.35);
}

.social-links-light .social-link {
  background-color: var(--gcc-slate-100);
  color: var(--gcc-navy-900);
  border-color: var(--gcc-slate-200);
}

.social-links-light .social-link:hover {
  background-color: var(--gcc-gold-500);
  color: var(--gcc-navy-950);
  border-color: var(--gcc-gold-500);
}

[data-theme="dark"] .social-links-light .social-link {
  background-color: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .social-links-light .social-link:hover {
  background-color: var(--gcc-gold-500);
  color: var(--gcc-navy-950);
  border-color: var(--gcc-gold-500);
}

.social-channel-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 0.7rem;
  border-radius: var(--radius-md);
  background-color: var(--gcc-slate-50);
  border: 1px solid var(--gcc-slate-200);
  text-decoration: none;
  color: var(--gcc-navy-900);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.social-channel-card:hover {
  background-color: var(--gcc-white);
  border-color: var(--gcc-gold-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .social-channel-card {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}

[data-theme="dark"] .social-channel-card:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--gcc-gold-400);
  color: var(--gcc-gold-300);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  height: 56px;
  min-width: 56px;
  max-width: 56px;
  padding: 0 14px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 2500;
  text-decoration: none;
  transition:
    max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    gap 0.3s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    background-color 0.2s ease;
}

.whatsapp-float svg {
  flex-shrink: 0;
}

.whatsapp-float-label {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background-color: #1ebe5b;
  color: #ffffff;
  max-width: 210px;
  padding: 0 1.25rem;
  gap: 0.55rem;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.55);
}

.whatsapp-float:hover .whatsapp-float-label,
.whatsapp-float:focus-visible .whatsapp-float-label {
  max-width: 140px;
  opacity: 1;
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--gcc-gold-500);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.15rem;
    right: 1.15rem;
    height: 52px;
    min-width: 52px;
    max-width: 52px;
    padding: 0 12px;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background-color: var(--gcc-navy-900);
  color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  min-width: 300px;
  animation: slideUp 0.3s ease;
  border-left: 4px solid var(--gcc-gold-500);
}

.toast.toast-success {
  border-left-color: var(--gcc-success);
}

.toast.toast-danger {
  border-left-color: var(--gcc-danger);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Breakpoints */
[data-theme="dark"] .mobile-toggle {
  color: #f8fafc;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    padding: 1rem 1.25rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .admin-brand {
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
  }

  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }

  .admin-nav li {
    flex-shrink: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
  }

  .admin-nav-link {
    white-space: nowrap;
    padding: 0.55rem 0.85rem;
    font-size: 0.84rem;
  }

  .admin-sidebar > div:last-child {
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .admin-sidebar > div:last-child > div {
    margin-bottom: 0 !important;
  }

  .admin-sidebar > div:last-child .btn {
    width: auto !important;
  }
}

@media (max-width: 900px) {
  /* Collapse inline multi-column grids cleanly on tablets & mobile phones */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.2fr 0.8fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns: 1fr 1.4fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .topbar {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .brand {
    gap: 0.6rem;
    min-width: 0;
  }

  .brand-logo {
    height: 40px;
    flex-shrink: 0;
  }

  .brand-name {
    font-size: 0.96rem;
    line-height: 1.15;
  }

  .brand-sub {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }

  .header-actions {
    gap: 0.45rem;
    flex-shrink: 0;
  }

  .section {
    padding: 3.25rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 3rem 0 3.5rem 0;
  }

  .hero-content h1 {
    font-size: 2.15rem;
    line-height: 1.2;
  }

  .hero-lead {
    font-size: 1.02rem;
  }

  main > section.section-dark {
    padding: 2.75rem 0 !important;
  }

  main > section.section-dark h1 {
    font-size: 1.95rem !important;
    line-height: 1.22 !important;
  }

  .cards-grid-3,
  .cards-grid-4 {
    grid-template-columns: 1fr;
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  /* Comfortable mobile padding for cards with large desktop inline paddings */
  .card[style*="padding: 2.5rem"],
  .card[style*="padding: 2.25rem"],
  .card[style*="padding: 3rem"],
  .card[style*="padding: 3.5rem"],
  div[style*="padding: 3.5rem"],
  div[style*="padding: 3rem"] {
    padding: 1.5rem !important;
  }

  .wizard-header {
    padding: 1.35rem 1.15rem;
  }

  .wizard-progress::before,
  .wizard-progress-bar {
    top: 15px;
  }

  .wizard-step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .wizard-step-label {
    font-size: 0.66rem;
    white-space: normal;
    text-align: center;
    max-width: 72px;
    line-height: 1.2;
  }

  .wizard-body {
    padding: 1.35rem 1.15rem;
  }

  .wizard-footer {
    padding: 1.25rem 1.15rem;
    flex-direction: column-reverse;
    gap: 0.85rem;
  }

  .wizard-footer .btn {
    width: 100%;
  }

  .modal-backdrop {
    padding: 0.75rem;
  }

  .modal-header {
    padding: 1.15rem 1.25rem;
  }

  .modal-header h3 {
    font-size: 1.15rem;
  }

  .modal-body {
    padding: 1.25rem;
  }

  .modal-footer {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
  }

  .admin-topbar > div:last-child {
    width: 100%;
    flex-wrap: wrap;
  }

  .admin-content {
    padding: 1.25rem;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 5rem;
  }

  .toast {
    min-width: 0;
    width: 100%;
  }

  .footer-top {
    padding: 3rem 0 2.25rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 540px) {
  /* Prevent navbar crowding on narrow phones; Apply button is in hero & mobile drawer */
  .header-actions > .btn {
    display: none;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-content h1 {
    font-size: 1.85rem;
  }

  main > section.section-dark h1 {
    font-size: 1.68rem !important;
  }

  .filter-tabs {
    gap: 0.4rem;
  }

  .filter-tab {
    padding: 0.5rem 0.95rem;
    font-size: 0.8rem;
  }
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 16, 32, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 340px;
  height: 100%;
  background-color: var(--gcc-white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
}

.mobile-drawer.active .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--gcc-slate-200);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gcc-navy-900);
  padding: 0.65rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: var(--gcc-slate-100);
  color: var(--gcc-gold-600);
}

.mobile-subnav {
  padding-left: 1rem;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
}

.mobile-subnav a {
  font-size: 0.9rem;
  color: var(--gcc-slate-600);
  padding: 0.4rem 0.5rem;
  display: block;
}

/* ==========================================================================
   14. News Feed & Social Sync Styles
   ========================================================================== */
.news-featured-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background-color: var(--gcc-white);
  border: 1px solid var(--gcc-slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.news-featured-media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background-color: var(--gcc-navy-900);
}

.news-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-featured-card:hover .news-featured-media img {
  transform: scale(1.04);
}

.news-featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-card {
  background-color: var(--gcc-white);
  border: 1px solid var(--gcc-slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gcc-gold-400);
}

.news-card-media {
  position: relative;
  height: 215px;
  overflow: hidden;
  background-color: var(--gcc-navy-900);
}

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

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

.news-fb-pill {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background-color: rgba(10, 17, 40, 0.82);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--gcc-slate-500);
}

.news-card-title {
  font-size: 1.18rem;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  color: var(--gcc-navy-900);
}

.news-card-excerpt {
  font-size: 0.9rem;
  color: var(--gcc-slate-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.news-card-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--gcc-slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.fb-sync-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: var(--gcc-white);
  border: 1px solid var(--gcc-slate-200);
  border-left: 4px solid #1877F2;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .news-featured-card {
    grid-template-columns: 1fr;
  }
  .news-featured-media {
    min-height: 240px;
  }
  .news-featured-body {
    padding: 1.75rem;
  }
}

/* ==========================================================================
   15. Content Load & Scroll-Reveal Animations
   ========================================================================== */
@keyframes gccFadeUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gccScaleIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-content > *,
main > section.section-dark .container > * {
  animation: gccFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content > *:nth-child(1),
main > section.section-dark .container > *:nth-child(1) {
  animation-delay: 0.05s;
}

.hero-content > *:nth-child(2),
main > section.section-dark .container > *:nth-child(2) {
  animation-delay: 0.14s;
}

.hero-content > *:nth-child(3),
main > section.section-dark .container > *:nth-child(3) {
  animation-delay: 0.23s;
}

.hero-card {
  animation: gccScaleIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.reveal-item {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

.course-card.course-animate-in,
.news-card.news-animate-in {
  animation: gccScaleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

.school-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 38px -10px rgba(10, 17, 40, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  main > section.section-dark .container > *,
  .hero-card,
  .course-card.course-animate-in,
  .news-card.news-animate-in {
    animation: none !important;
  }
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}