/* ==========================================
   BESPOKE HIGH-END DESIGN SYSTEM & RESPONSIVE FIXES
   ========================================== */
:root {
  --primary: #091e42; /* Buma Deep Navy Blue */
  --primary-dark: #041026; /* Darker Midnight Navy */
  --primary-light: #f0f4fa; /* Ultra Soft Navy Tint */
  --accent: #ebaf2c; /* Official Buma Gold */
  --accent-hover: #d49b13; /* Rich Golden Amber */
  --accent-light: #fef9ed; /* Warm Soft Gold Tint */
  --bg-warm: #fdfbf7; /* High-End Editorial Sand Tint */
  --bg-white: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-dark: #091e42;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-subtle: 0 10px 30px rgba(9, 30, 66, 0.05);
  --shadow-hover: 0 20px 40px rgba(9, 30, 66, 0.12);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a, p, span, div, strong, li, h1, h2, h3, h4 {
  overflow-wrap: break-word;
  word-break: break-word;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

/* Editorial Section Headers */
.section-header {
  margin-bottom: 4rem;
}

.section-header.center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle-line {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-hover);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header.center .section-subtitle-line {
  justify-content: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(235, 175, 44, 0.3);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(235, 175, 44, 0.4);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(9, 30, 66, 0.25);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #128c7e;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(18, 140, 126, 0.45);
}

/* ==========================================
   TOP ANNOUNCEMENT BAR (RESPONSIVE FIX)
   ========================================== */
.top-bar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-item a:hover {
  color: var(--accent);
}

.top-bar-item.left {
  text-align: left;
}

.top-bar-item.center {
  text-align: center;
  margin: 0 auto;
}

.top-bar-item.right {
  text-align: right;
}

.top-badge-gold {
  background: rgba(235, 175, 44, 0.15);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* ==========================================
   MAIN NAVIGATION HEADER & FLY-OUT DRAWER
   ========================================== */
.main-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  z-index: 9999;
  padding: 0.9rem 0;
  box-shadow: 0 2px 20px rgba(9, 30, 66, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand-logo-img {
  height: 46px;
  width: auto;
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta-desktop {
  display: inline-flex;
}

/* Hide Mobile Drawer specific elements on Desktop */
.mobile-drawer-close,
.mobile-drawer-cta,
.mobile-drawer-info-wrap,
.mobile-drawer-info {
  display: none !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

/* Mobile Drawer Overlay Backdrop (Solid tint, no blur filter) */
.mobile-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 16, 38, 0.75);
  z-index: 99998; /* Just below the header */
}

.mobile-backdrop.active {
  display: block;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  background: linear-gradient(135deg, #091e42 0%, #041026 100%);
  color: #ffffff;
  padding: 5rem 0 0 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-title span {
  color: var(--accent);
}

.hero-text {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2.25rem;
  font-weight: 400;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

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

.hero-floating-stat {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(9, 30, 66, 0.85);
  backdrop-filter: blur(12px);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(235, 175, 44, 0.3);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #ffffff;
}

.stat-badge-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-badge-txt {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* Stats Counter Bar */
.hero-stats-banner {
  margin-top: 4rem;
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 0;
}

.stats-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-block {
  text-align: center;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-lbl {
  font-size: 0.9rem;
  color: #e2e8f0;
  font-weight: 600;
}

/* ==========================================
   ABOUT US SECTION
   ========================================== */
.about-section {
  background-color: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-image-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.about-image-wrapper img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* ==========================================
   CURRICULA GRID
   ========================================== */
.curricula-section {
  background-color: var(--bg-warm);
}

.curricula-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.clean-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.clean-card-img {
  height: 220px;
  width: 100%;
  overflow: hidden;
}

.clean-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.clean-card:hover .clean-card-img img {
  transform: scale(1.06);
}

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

.clean-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.clean-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.clean-card-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* ==========================================
   THREE FLEXIBLE LEARNING MODES
   ========================================== */
.modes-flex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.mode-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.25rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.mode-box:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.mode-box.hero-feature {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(9, 30, 66, 0.25);
}

.mode-box.hero-feature .mode-box-title {
  color: #ffffff;
}

.mode-box.hero-feature .mode-box-desc {
  color: #cbd5e1;
}

.mode-box-number {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.mode-box-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary);
}

.mode-box-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.mode-list {
  list-style: none;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.mode-list li {
  font-size: 0.925rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mode-list li::before {
  content: "✓";
  font-weight: 800;
  color: var(--accent);
}

/* ==========================================
   WHY BUMA / THE BUMA DIFFERENCE (2x2 GRID)
   ========================================== */
.why-buma-section {
  background-color: var(--bg-warm);
}

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

.pillar-card {
  background: var(--bg-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(9, 30, 66, 0.05);
  border: 1px solid rgba(9, 30, 66, 0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  opacity: 0.8;
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(9, 30, 66, 0.12);
  border-color: rgba(235, 175, 44, 0.4);
}

.pillar-card:hover::before {
  opacity: 1;
  background: var(--accent-hover);
}

.pillar-card-icon {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  width: 46px;
  height: 46px;
  background: rgba(235, 175, 44, 0.12);
  border: 1px solid rgba(235, 175, 44, 0.35);
  color: var(--accent-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pillar-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.pillar-card-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================
   GALLERY & ACTIVITIES
   ========================================== */
.gallery-grid-bespoke {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
  box-shadow: var(--shadow-subtle);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem 1rem;
  background: linear-gradient(
    to top,
    rgba(9, 30, 66, 0.85) 0%,
    transparent 100%
  );
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.activity-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  margin-bottom: 3.5rem;
  padding: 0.5rem 0;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.activity-marquee-track {
  display: flex;
  width: max-content;
  gap: 0.85rem;
  animation: marquee-scroll 25s linear infinite;
}

.activity-marquee-wrapper:hover .activity-marquee-track {
  animation-play-state: paused;
}

.activity-marquee-content {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.pill-clean {
  background: var(--bg-warm);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  transition: var(--transition);
}

.pill-clean:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ==========================================
   ADMISSIONS STICKY STACKING LAYOUT
   ========================================== */
.admissions-sticky-section {
  background-color: var(--bg-warm);
  position: relative;
}

.admissions-sticky-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  align-items: start;
}

.admissions-sticky-left {
  position: sticky;
  top: 110px;
  z-index: 10;
}

.admissions-stack-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
}

.admissions-stack-card {
  position: sticky;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: 0 15px 35px rgba(9, 30, 66, 0.08);
  border: 1px solid rgba(9, 30, 66, 0.06);
  transition: var(--transition);
}

.admissions-stack-card:hover {
  box-shadow: 0 20px 45px rgba(9, 30, 66, 0.14);
}

.step-card-1 {
  top: 120px;
  z-index: 1;
}

.step-card-2 {
  top: 145px;
  z-index: 2;
}

.step-card-3 {
  top: 170px;
  z-index: 3;
}

.step-card-4 {
  top: 195px;
  z-index: 4;
}

.step-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.85rem;
}

.admissions-stack-card .step-num-big {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-hover);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.admissions-stack-card .step-head {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.admissions-stack-card .step-body {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials-section {
  background-color: var(--bg-warm);
}

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

.quote-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars-line {
  color: var(--accent-hover);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.quote-txt {
  font-size: 0.975rem;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================
   CONTACT FORM & CPANEL MAIL INTEGRATION
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-card {
  background: var(--primary);
  color: #ffffff;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(9, 30, 66, 0.2);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.contact-info-card a {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.contact-info-card h3 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.contact-detail-icon {
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(235, 175, 44, 0.12);
  border: 1px solid rgba(235, 175, 44, 0.35);
  color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(235, 175, 44, 0.15);
}

.contact-detail-icon i {
  color: var(--accent) !important;
}

.contact-form-card {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 3px rgba(235, 175, 44, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

#form-response {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  display: none;
}

#form-response.success {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

#form-response.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================
   FOOTER
   ========================================== */
.main-footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 5rem 0 2rem 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-title-text {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.footer-contact-icon {
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(235, 175, 44, 0.12);
  border: 1px solid rgba(235, 175, 44, 0.35);
  color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(235, 175, 44, 0.15);
}

.footer-contact-icon i {
  color: var(--accent) !important;
}

.footer-contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================
   COMPLETE MOBILE RESPONSIVENESS (BREAKPOINTS)
   ========================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .editorial-grid,
  .contact-grid,
  .admissions-sticky-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .admissions-sticky-left {
    position: static !important;
  }

  .admissions-stack-card {
    position: static !important;
    top: auto !important;
  }

  .editorial-sticky {
    position: static; /* Prevent sticky z-index clipping on mobile */
  }

  .modes-flex-grid,
  .testimonials-grid-bespoke,
  .timeline-wrapper {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 992px) {
  /* Crisp, beautifully proportioned mobile logo */
  .brand-logo-img {
    max-height: 44px;
    max-width: 60vw;
    width: auto;
    object-fit: contain;
  }

  /* Hide top announcement bar on mobile; move information inside drawer */
  .top-bar {
    display: none !important;
  }

  /* Hide desktop CTA button on tablet/mobile to prevent hamburger overlap */
  .nav-cta-desktop {
    display: none !important;
  }

  .mobile-toggle {
    display: block;
  }

  /* Solid, High-Contrast Crisp White Slide-out Mobile Fly-out Drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff !important; /* 100% Crisp Solid White */
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 4.5rem 1.5rem 2.5rem 1.5rem;
    gap: 0.5rem;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99999 !important; /* Always on top */
    box-shadow: -10px 0 50px rgba(9, 30, 66, 0.25);
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    list-style: none;
  }

  .nav-links li a {
    color: #091e42 !important; /* Bold Deep Navy Text - Razor Sharp Contrast! */
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    opacity: 1 !important;
  }

  .nav-links li a:hover {
    color: var(--accent-hover) !important;
  }

  .mobile-drawer-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #f1f5f9;
    border: none;
    color: #091e42;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
  }

  /* Mobile Top Info Block Inside Drawer */
  .mobile-drawer-info {
    background: #fdfbf7;
    border: 1px solid rgba(235, 175, 44, 0.4);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #091e42 !important;
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-drawer-info div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #091e42 !important;
    font-weight: 600;
  }

  .mobile-drawer-info a {
    color: #d49b13 !important;
    font-weight: 700;
    border-bottom: none !important;
    padding: 0 !important;
  }

  .mobile-drawer-badge {
    background: var(--accent);
    color: #041026 !important;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.78rem;
    text-align: center;
    margin-top: 0.25rem;
  }

  .mobile-drawer-cta {
    margin-top: 1rem;
    display: block !important;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.15rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .curricula-grid,
  .gallery-grid-bespoke,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem 1rem;
  }

  .contact-info-card h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
  }

  .brand-logo-img {
    max-height: 40px;
    max-width: 60vw;
  }
}
