/* ─────────────────────────────────────────────────────────────
   0. GLOBAL RESETS & BOOTSTRAP CONFLICT PREVENTION
   ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Neutralise Bootstrap container overrides — keep VPS custom sizing */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  width: var(--container) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ─────────────────────────────────────────────────────────────
   1. HAMBURGER / NAVIGATION — CRITICAL FIX
   ───────────────────────────────────────────────────────────── */

/* Nav wrapper — MUST be relative for dropdown positioning */
.nav-wrap {
  position: relative !important;
}

/* Sticky header above everything */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1050;
}

/* ── Hamburger: force visible below 1240px ── */
@media (max-width: 1240px) {

  /* Show the button with high specificity */
  button.nav-toggle,
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    border: 2px solid rgba(22, 63, 150, 0.2) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(12, 35, 88, 0.12) !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 200ms ease !important;
  }

  .nav-toggle:active {
    transform: scale(0.95);
  }

  /* Hamburger bars */
  .nav-toggle span {
    display: block !important;
    width: 20px;
    height: 2px;
    margin: 0 !important;
    border-radius: 999px;
    background: #163f96 !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
    transform-origin: center;
  }

  /* Open state animations for Hamburger */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0 !important;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
  }

  /* Dropdown nav panel */
  .site-nav {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px;
    padding: 14px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 20px 60px rgba(12, 35, 88, 0.2) !important;
    border: 1px solid rgba(22, 63, 150, 0.1) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    /* Animation states */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s !important;
    pointer-events: none !important;
  }

  /* Open state */
  .site-nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  /* Individual links */
  .site-nav a {
    display: block !important;
    padding: 11px 14px !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    font-weight: 600;
    color: #14264f !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transition: background 150ms ease;
  }

  .site-nav a:hover,
  .site-nav a:focus {
    background: rgba(65, 105, 225, 0.07);
    color: #4169e1;
  }

  .site-nav a.active {
    color: #163f96;
    background: rgba(22, 63, 150, 0.06);
    font-weight: 700;
  }

  .nav-cta {
    margin-top: 6px;
    padding: 12px 18px !important;
    text-align: center;
    border-radius: 12px !important;
  }
}


/* ─────────────────────────────────────────────────────────────
   2. TYPOGRAPHY — MOBILE SCALE DOWN
   ───────────────────────────────────────────────────────────── */

@media (max-width: 767px) {

  /* Section headings */
  .section h2 {
    font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.02em !important;
  }

  /* Page hero titles */
  .page-title {
    font-size: clamp(1.9rem, 7.5vw, 2.8rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em !important;
  }

  /* Cinematic hero title */
  .cinematic-title {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    line-height: 1.06 !important;
    max-width: none !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  }

  /* Cinematic title underline */
  .cinematic-title::after {
    width: clamp(70px, 22vw, 140px) !important;
    height: 4px !important;
    margin-top: 12px !important;
  }

  /* Lead text */
  .lead {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    max-width: 100% !important;
  }

  /* Eyebrow labels */
  .eyebrow {
    font-size: 0.72rem !important;
    letter-spacing: 0.14em !important;
    margin-bottom: 10px !important;
  }

  /* Card headings */
  .hero-feature-card h3,
  .admission-tier-copy h3,
  .kinetic-copy h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.45rem) !important;
  }

  .section-heading h2,
  .section-heading-split h2 {
    font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
  }

  /* Slide content text */
  .cinematic-slider .slide-content p {
    font-size: 0.88rem !important;
    margin-top: 12px !important;
    max-width: 100% !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  /* Feature card paragraph */
  .hero-feature-card p {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
  }
}

@media (max-width: 480px) {
  .section h2 {
    font-size: clamp(1.25rem, 5vw, 1.7rem) !important;
  }

  .page-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
  }

  .cinematic-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
  }

  /* Trust/program card text */
  .trust-card h3,
  .program-card h3,
  .flow-step h3,
  .contact-card h3,
  .admission-card h3,
  .info-panel h3,
  .admissions-copy h3,
  .footer-links h3,
  .footer-contact h3 {
    font-size: 1rem !important;
  }

  /* Body copy */
  p,
  .section p,
  .feature-list li {
    font-size: 0.88rem;
    line-height: 1.65;
  }
}

/* ─────────────────────────────────────────────────────────────
   3. BUTTONS — PROPERLY SIZED FOR MOBILE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {

  /* All buttons — generous touch targets */
  .button {
    min-height: 48px !important;
    padding: 0 22px !important;
    font-size: 0.92rem !important;
    border-radius: 14px !important;
    letter-spacing: 0.01em !important;
  }

  /* Slider prev/next buttons */
  .slider-button {
    min-width: 72px !important;
    min-height: 40px !important;
    font-size: 0.82rem !important;
  }

  /* Stack action buttons on all mobile */
  .hero-actions,
  .slide-actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 20px;
  }

  .hero-actions .button,
  .slide-actions .button,
  .form-actions .button {
    width: 100%;
    min-height: 50px !important;
    justify-content: center;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
  }

  /* Section action buttons */
  .section-actions .button {
    min-height: 48px !important;
    padding: 0 24px !important;
  }
}

@media (max-width: 480px) {

  /* Even larger buttons on small screens */
  .hero-actions .button,
  .slide-actions .button,
  .form-actions .button {
    min-height: 52px !important;
    font-size: 0.94rem !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(12, 35, 88, 0.15) !important;
  }

  /* Contact phone links stacked */
  .contact-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .contact-inline a {
    text-align: center;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Nav CTA button */
  .nav-cta {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   4. HERO SLIDER — FULL-SCREEN & CONTENT POSITIONING (DARK THEME)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {

  .topbar {
    display: none !important;
  }

  .hero {
    min-height: auto !important;
    height: auto !important;
    background: #eef2fb !important;
  }

  .hero-grid,
  .hero-stage,
  .cinematic-slider,
  .cinematic-slider .slider-shell,
  .cinematic-slider .slider-viewport {
    min-height: auto !important;
    height: auto !important;
    background: #eef2fb !important;
  }

  .hero::after {
    display: none !important;
  }

  .cinematic-slider .hero-slide {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    background: #eef2fb !important;
    padding: 12px 24px 60px !important;
    /* Minimized extra space below header */
    box-sizing: border-box !important;
    position: absolute !important;
    top: 0; left: 0; width: 100%; height: 100%;
  }

  .cinematic-slider .hero-slide.is-active {
    position: relative !important;
    height: auto !important;
  }

  .cinematic-slider .slide-content {
    display: contents !important;
  }

  /* 1. Kicker (Royal Blue text) */
  .slide-kicker {
    order: 1 !important;
    color: #163f96 !important;
    /* Royal Blue */
    background: transparent !important;
    border: none !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    padding: 0 !important;
    margin: 0 0 8px 0 !important;
    align-self: center !important;
    text-align: center !important;
  }

  /* 2. Title (Dark Navy text) */
  .cinematic-title {
    order: 2 !important;
    color: #0f172a !important;
    /* Deep Navy */
    font-size: clamp(1.6rem, 6.5vw, 2rem) !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-shadow: none !important;
    margin: 0 0 12px 0 !important;
    max-width: none !important;
  }

  .cinematic-title::after {
    display: none !important;
  }

  /* 3. Description text (Slate Grey) */
  .cinematic-slider .slide-content p {
    order: 3 !important;
    color: #475569 !important;
    /* Slate Grey */
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
    margin: 0 0 20px 0 !important;
    max-width: none !important;
  }

  /* 4. Facts/Stats */
  .slide-facts {
    order: 4 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px 20px !important;
    margin: 0 0 36px 0 !important;
  }

  .slide-facts span {
    background: #ffffff !important;
    color: #163f96 !important;
    /* Royal Blue */
    border: none !important;
    padding: 0 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    min-height: auto !important;
  }

  /* 5. Image with rounded corners */
  .cinematic-slider .hero-slide img,
  .cinematic-slider .hero-slide video {
    order: 5 !important;
    position: relative !important;
    width: 100% !important;
    flex-grow: 1 !important;
    /* Expand to fill empty space */
    min-height: 180px !important;
    height: auto !important;
    max-height: 45vh !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    margin: 0 0 24px 0 !important;
  }

  .cinematic-slider .hero-slide::after,
  .cinematic-slider .hero-slide::before {
    display: none !important;
  }

  /* 6. Action Buttons — side by side matching web mode */
  .slide-actions {
    order: 6 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .slide-actions .button {
    flex: 1 !important;
    min-height: 48px !important;
    border-radius: 14px !important;
    font-size: 0.95rem !important;
    padding: 0 14px !important;
    font-weight: 700 !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .slide-actions .button-primary {
    background: linear-gradient(135deg, #163f96, #2563eb) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(22, 63, 150, 0.3) !important;
  }

  .slide-actions .button-hero-secondary {
    display: flex !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: none !important;
  }

  /* ── Slider Nav Footer — Dots at bottom ── */
  .cinematic-slider .slider-footer {
    position: absolute !important;
    bottom: 30px !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 20 !important;
    transform: none !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .slider-nav-controls {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
  }

  .slider-nav-btn {
    display: none !important;
  }

  .slider-dot {
    width: 8px !important;
    height: 8px !important;
    background: #52525b !important;
    border-radius: 999px !important;
    margin: 0 4px !important;
    transition: width 280ms ease, background 280ms ease !important;
  }

  .slider-dot.is-active {
    width: 20px !important;
    background: #4169e1 !important;
    box-shadow: none !important;
  }

  /* Hide elements not needed in this layout */
  .hero-help-row,
  .hero-orb,
  .hero-float-badge,
  .chat-launcher-copy {
    display: none !important;
  }

  /* Chat widget positioning */
  .chat-launcher {
    min-height: 52px !important;
    height: 52px !important;
    width: 52px !important;
    max-width: 52px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 50% !important;
    gap: 0 !important;
  }

  .chat-launcher-avatar {
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
  }

  .chat-widget {
    bottom: 20px !important;
    right: 16px !important;
    z-index: 99 !important;
  }

  .scroll-top-btn {
    bottom: 80px !important;
    right: 16px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   5. HERO FEATURE CARDS (below slider)
   ───────────────────────────────────────────────────────────── */
/* Always relative positioning — never absolute */
.hero-feature-rack {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  display: grid;
  gap: 18px;
  margin: 36px auto 0;
  width: 100%;
}

@media (min-width: 992px) {
  .hero-feature-rack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1180px;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .hero-feature-rack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 16px;
  }
}

@media (max-width: 575px) {
  .hero-feature-rack {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 16px;
    margin-top: 28px;
  }

  .hero-feature-card {
    padding: 22px 20px !important;
    border-radius: 20px !important;
  }

  .hero-feature-card h3 {
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
  }

  .hero-feature-card p {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
  }

  .hero-feature-card a {
    margin-top: 14px !important;
    font-size: 0.88rem !important;
    padding: 10px 0 !important;
  }

  .hero-feature-icon {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 14px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   6. KINETIC SHOWCASE SECTION
   ───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .kinetic-showcase {
    padding: 36px 0 44px !important;
  }
}

/* Admission tier cards */
.admissions-stage-grid {
  display: grid;
  gap: 24px;
  /* Enhanced spacing */
  margin-top: 32px;
}

@media (min-width: 992px) {
  .admissions-stage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .admissions-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .admissions-stage-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    /* Premium spacing between cards */
  }

  .admission-tier-media img {
    height: 200px !important;
  }

  .admission-tier-copy {
    padding: 18px 20px 22px !important;
    gap: 10px !important;
  }

  .admission-tier-copy h3 {
    font-size: 1.1rem !important;
  }

  .admission-tier-copy p {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
  }

  .admission-tier-copy a {
    display: inline-flex;
    margin-top: 8px;
    font-size: 0.88rem !important;
    font-weight: 700;
  }
}

/* Kinetic contact row */
.kinetic-contact-card {
  padding: 28px 32px;
  border-radius: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 640px) {
  .kinetic-contact-card {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 20px;
    gap: 18px;
    text-align: center;
  }

  .kinetic-contact-card h3 {
    font-size: 1rem !important;
    line-height: 1.45 !important;
  }

  .kinetic-contact-card .contact-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .kinetic-contact-card .contact-inline a {
    justify-content: center !important;
    width: 100% !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   7. ABOUT SPLIT GRID
   ───────────────────────────────────────────────────────────── */
.split-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 992px) {
  .split-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
  }
}

.visual-stack {
  display: grid;
  gap: 16px;
}

.stack-row {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .stack-row {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (max-width: 639px) {
  .stack-row {
    grid-template-columns: 1fr;
  }

  .stack-row .image-panel {
    min-height: 180px !important;
  }
}

@media (max-width: 575px) {
  .large-panel {
    min-height: 180px !important;
  }

  .info-panel {
    padding: 18px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   8. PROGRAMS GRID
   ───────────────────────────────────────────────────────────── */
.program-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 992px) {
  .program-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .program-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    /* Premium spacing */
  }

  .program-card {
    padding: 22px 20px !important;
    border-radius: 20px !important;
  }

  .program-card h3 {
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
  }

  .program-card p {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
  }

  .program-label {
    font-size: 0.72rem !important;
    padding: 6px 12px !important;
    margin-bottom: 12px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   9. GALLERY GRID
   ───────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .gallery-card {
    grid-column: span 4;
  }

  .gallery-card-wide {
    grid-column: span 8;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .gallery-card,
  .gallery-card-wide {
    grid-column: span 1;
  }

  .gallery-card img,
  .gallery-card-wide img {
    height: 200px !important;
  }
}

@media (max-width: 575px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-card,
  .gallery-card-wide {
    grid-column: span 1;
    border-radius: 20px !important;
  }

  .gallery-card img,
  .gallery-card-wide img {
    height: 200px !important;
    min-height: 200px !important;
  }

  .gallery-caption {
    padding: 14px 16px 18px !important;
  }

  .gallery-caption span {
    font-size: 0.75rem !important;
    margin-bottom: 4px !important;
  }

  .gallery-caption strong {
    font-size: 0.92rem !important;
    line-height: 1.4 !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   10. ADMISSIONS PAGE
   ───────────────────────────────────────────────────────────── */
/* Admission flow steps */
.admission-flow {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 992px) {
  .admission-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .admission-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .admission-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .flow-step {
    padding: 18px 16px !important;
    border-radius: 18px !important;
    text-align: center;
  }

  .flow-step span {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    margin: 0 auto 12px !important;
    font-size: 0.95rem;
    display: grid;
    place-items: center;
  }

  .flow-step h3 {
    font-size: 1rem !important;
    margin-bottom: 8px !important;
  }

  .flow-step p {
    font-size: 0.84rem !important;
    line-height: 1.55 !important;
  }
}

/* Admissions preview / banner */
.admissions-preview,
.admission-banner {
  display: grid;
  gap: 22px;
}

@media (min-width: 992px) {
  .admissions-preview {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .admission-banner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

@media (max-width: 991px) {

  .admissions-preview,
  .admission-banner {
    grid-template-columns: 1fr;
  }

  .admission-banner-media img {
    height: 240px !important;
    min-height: 240px !important;
  }

  .admission-banner-card {
    padding: 20px !important;
  }

  .admission-banner-card .page-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
  }
}

/* Admissions 3-column grid */
.admissions-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

@media (min-width: 992px) {
  .admissions-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(230px, 0.7fr);
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .admissions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .admission-card,
  .admission-side {
    padding: 18px !important;
  }

  .admissions-visual img {
    height: 200px !important;
    min-height: 200px !important;
  }
}

/* Admission badges */
@media (max-width: 480px) {
  .admission-badges {
    gap: 8px;
    justify-content: center;
  }

  .admission-badges span {
    font-size: 0.74rem !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
  }

  /* Admissions preview card — mobile layout */
  .admissions-preview {
    border-radius: 22px !important;
    overflow: hidden;
  }

  .admissions-copy {
    padding: 22px 20px !important;
    text-align: center;
  }

  .admissions-copy h3 {
    font-size: 1.15rem !important;
    margin-bottom: 10px !important;
  }

  .admissions-copy p {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
  }

  .admissions-visual img {
    height: 200px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   11. SPLIT FEATURE (programs / admissions pages)
   ───────────────────────────────────────────────────────────── */
.split-feature {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 992px) {
  .split-feature {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  }

  .split-feature-reverse .feature-media {
    order: 2;
  }

  .split-feature-reverse .feature-panel {
    order: 1;
  }
}

@media (max-width: 991px) {
  .split-feature {
    grid-template-columns: 1fr;
  }

  .split-feature-reverse .feature-media,
  .split-feature-reverse .feature-panel {
    order: unset;
  }

  .feature-media {
    min-height: 200px !important;
  }

  .feature-media img {
    height: 220px !important;
    min-height: 220px !important;
  }
}

@media (max-width: 575px) {
  .feature-media img {
    height: 190px !important;
    min-height: 190px !important;
  }

  .feature-panel {
    padding: 0 !important;
  }

  .feature-list li {
    font-size: 0.86rem !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   12. PAGE HERO GRID (inner pages)
   ───────────────────────────────────────────────────────────── */
.page-hero-grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 992px) {
  .page-hero-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: center;
  }
}

@media (max-width: 991px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-visual img {
    height: 220px !important;
  }

  .page-hero-visual {
    padding: 12px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   13. CONTACT PAGE
   ───────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .contact-card {
    padding: 18px !important;
  }

  .contact-link {
    font-size: 1rem !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   14. ENQUIRY FORM PAGE
   ───────────────────────────────────────────────────────────── */
.enquiry-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 992px) {
  .enquiry-grid {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  }
}

.field-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .field-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .enquiry-info,
  .enquiry-form {
    padding: 20px !important;
  }

  .field-group input,
  .field-group select,
  .field-group textarea {
    padding: 12px 14px !important;
    font-size: 0.9rem !important;
  }

  .panel-heading h2 {
    font-size: 1.2rem !important;
  }

  .panel-badge {
    font-size: 0.76rem !important;
    min-height: 34px !important;
    padding: 0 12px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   15. FOOTER
   ───────────────────────────────────────────────────────────── */
.footer-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.25fr 0.7fr 0.75fr;
    align-items: start;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-intro p {
    font-size: 0.88rem !important;
    margin-top: 14px !important;
    line-height: 1.6 !important;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .footer-links a,
  .footer-contact span,
  .footer-contact a {
    font-size: 0.9rem !important;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom p {
    font-size: 0.84rem !important;
  }
}

/* Footer bottom padding — stays above chat widget */
.site-footer {
  padding-bottom: 100px !important;
}

@media (max-width: 480px) {
  .site-footer {
    padding: 22px 0 90px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   16. MARQUEE / IMAGE STRIPS
   ───────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .landing-marquee-card {
    flex-basis: min(210px, calc(100vw - 52px)) !important;
    border-radius: 14px;
  }

  .landing-marquee-card-wide,
  .landing-marquee-card-tall {
    flex-basis: min(230px, calc(100vw - 40px)) !important;
  }

  .landing-marquee-card img {
    height: 130px !important;
  }

  .landing-marquee-shell {
    padding: 6px 0;
  }
}

/* ─────────────────────────────────────────────────────────────
   17. CHAT WIDGET
   ───────────────────────────────────────────────────────────── */
.chat-widget {
  right: 14px !important;
  bottom: 14px !important;
}

@media (max-width: 480px) {
  .chat-widget {
    right: 8px !important;
    bottom: 8px !important;
  }

  .chat-launcher {
    width: min(270px, calc(100vw - 16px)) !important;
    min-height: 56px !important;
    padding: 10px 12px 10px 14px !important;
    border-radius: 18px !important;
  }

  .chat-launcher-copy {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
  }

  .chat-launcher-avatar {
    width: 38px !important;
    height: 38px !important;
  }

  .chat-panel {
    width: min(320px, calc(100vw - 16px)) !important;
    max-height: min(72vh, 540px) !important;
    border-radius: 22px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   18. SECTION PADDING & SPACING
   ───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .section {
    padding: 72px 0 !important;
    /* Increased section spacing for breathable UI */
  }

  .section-heading {
    max-width: 100%;
    margin-bottom: 32px;
    /* Increased space below headings */
    text-align: center !important;
    /* Centered headings for better mobile feel */
  }

  .section-heading p {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
  }

  .section-actions {
    margin-top: 18px;
  }

  .feature-list {
    gap: 12px;
    margin-top: 18px;
  }

  .feature-list li {
    padding-left: 24px;
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 20px 0 !important;
    /* Enhanced spacing even on small screens */
  }

  .page-hero {
    padding-top: 16px !important;
  }

  .trust-card,
  .program-card,
  .admission-card,
  .admission-side {
    padding: 20px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   19. SECTION HEADING SPLIT
   ───────────────────────────────────────────────────────────── */
.section-heading-split {
  display: grid;
  gap: 20px;
}

@media (min-width: 992px) {
  .section-heading-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: end;
  }
}

/* ─────────────────────────────────────────────────────────────
   20. THANK YOU PAGE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .thank-you-card {
    margin: 20px auto !important;
    padding: 22px 16px !important;
    border-radius: 20px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   21. TOPBAR
   ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .topbar-track {
    gap: 20px;
    animation-duration: 16s;
  }

  .topbar-track span {
    font-size: 0.62rem;
    padding-left: 10px;
    letter-spacing: 0.05em;
  }
}

/* ─────────────────────────────────────────────────────────────
   22. BRAND / LOGO IN HEADER
   ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .brand img {
    width: 38px !important;
    height: 38px !important;
  }

  .brand {
    gap: 8px;
  }

  .brand-copy span {
    font-size: 0.76rem !important;
  }

  .brand-copy small {
    font-size: 0.66rem !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   23. MINI CARD & BADGE COMPONENTS
   ───────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .mini-card {
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }

  .mini-card strong {
    font-size: 0.88rem !important;
  }

  .mini-card span {
    font-size: 0.82rem !important;
  }

  .hero-pills {
    gap: 8px;
  }

  .hero-pills span {
    font-size: 0.74rem !important;
    padding: 6px 10px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   24. BOT / CHAT THREAD COMPONENTS
   ───────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .bot-option-grid {
    grid-template-columns: 1fr !important;
  }

  .bot-chip-group {
    gap: 8px;
  }

  .bot-chip,
  .bot-option {
    font-size: 0.86rem !important;
  }

  .bot-thread {
    padding: 12px !important;
    border-radius: 18px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   25. TOUCH TARGETS — ACCESSIBILITY
   ───────────────────────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {

  .button,
  .nav-cta,
  .chat-choice,
  .bot-chip,
  .bot-option {
    min-height: 44px;
  }

  .slider-dot {
    min-width: 20px;
    min-height: 20px;
  }

  button.nav-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   26. SAFE AREA INSETS (iPhone notch, Dynamic Island)
   ───────────────────────────────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .site-footer {
    padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important;
  }

  @media (max-width: 480px) {
    .site-footer {
      padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
    }
  }
}

/* ─────────────────────────────────────────────────────────────
   27. GLOSSY CARDS — MOBILE PADDING REDUCTION
   ───────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .glossy-card {
    border-radius: 20px;
  }
}

/* ─────────────────────────────────────────────────────────────
   28. IMAGE RENDERING QUALITY
   ───────────────────────────────────────────────────────────── */
img {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ─────────────────────────────────────────────────────────────
   29. EYEBROW HEADING SECTION SPACING
   ───────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .eyebrow {
    margin-bottom: 8px !important;
  }

  .admissions-stage-heading h2 {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem) !important;
  }

  .admissions-stage-heading p {
    font-size: 0.88rem !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   30. STEPS LIST (admissions docs)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .steps-list article {
    grid-template-columns: 1fr;
  }

  .steps-list span {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
  }

  .steps-list h4 {
    font-size: 0.95rem !important;
  }

  .steps-list p {
    font-size: 0.84rem !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   31. PREMIUM SLIDER NAV CONTROLS (Prev/Next redesign)
   ───────────────────────────────────────────────────────────── */

/* Wrapper that groups arrow + dots + arrow */
.slider-nav-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Circular arrow buttons */
.slider-nav-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.slider-nav-btn:hover,
.slider-nav-btn:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.64);
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  outline: none;
}

.slider-nav-btn:active {
  transform: scale(0.96);
}

.slider-nav-btn svg {
  display: block;
  flex-shrink: 0;
}

/* Dot indicators — pill style */
.slider-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 280ms ease, background 280ms ease, box-shadow 280ms ease;
}

.slider-dot.is-active {
  width: 28px;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

/* Slider footer — desktop styles */
@media (min-width: 768px) {
  .slider-footer {
    position: absolute;
    bottom: clamp(28px, 4vh, 52px);
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 24px;
  }

  /* Override the cinematic slider footer positioning */
  .cinematic-slider .slider-footer {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    bottom: clamp(28px, 4vh, 52px) !important;
    justify-content: center !important;
  }
}

/* Mobile slider nav — for non-cinematic sliders only */
@media (max-width: 767px) {

  /* General slider controls — only apply to non-cinematic sliders */
  .slider-nav-controls {
    gap: 16px;
    padding: 10px 16px;
  }

  /* Cinematic slider footer uses the section 4 centered pill —
     no overrides needed here. Only target generic .slider-footer */
  .slider-footer:not(.cinematic-slider .slider-footer) {
    bottom: 96px !important;
  }
}

@media (max-width: 480px) {
  .slider-nav-controls {
    gap: 14px;
    padding: 8px 14px;
  }
}


/* ─────────────────────────────────────────────────────────────
   32. SCROLL-TO-TOP BUTTON
   ───────────────────────────────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 140px;
  /* Positioned above the chat widget on desktop */
  right: 28px;
  z-index: 500;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #163f96, #4169e1);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(12, 35, 88, 0.3);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 280ms ease, transform 280ms ease, box-shadow 280ms ease;
  pointer-events: none;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  box-shadow: 0 12px 32px rgba(12, 35, 88, 0.4);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────
   33. SMOOTH HOVER EFFECTS ON LINKS & CARDS
   ───────────────────────────────────────────────────────────── */

/* Feature cards — lift on hover */
.hero-feature-card {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

/* Admission tier cards */
.admission-tier-card {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.admission-tier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 52px rgba(12, 35, 88, 0.18);
}

/* Program cards */
.program-card {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(12, 35, 88, 0.16);
}

/* Gallery cards */
.gallery-card {
  transition: transform 220ms ease, box-shadow 220ms ease;
  overflow: hidden;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(12, 35, 88, 0.16);
}

.gallery-card img {
  transition: transform 400ms ease;
}

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

/* ─────────────────────────────────────────────────────────────
   34. SLIDE CONTENT STAGGER ANIMATION FIX
   ───────────────────────────────────────────────────────────── */

/* Ensure slide-kicker renders as an inline badge */
.slide-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────
   35. BETTER SECTION SEPARATORS / VISUAL FLOW
   ───────────────────────────────────────────────────────────── */

/* Soft gradient separator between about and programs */
.section.about {
  background:
    radial-gradient(circle at 90% 20%, rgba(212, 166, 58, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.section.programs {
  background:
    radial-gradient(circle at 10% 80%, rgba(65, 105, 225, 0.06), transparent 28%),
    linear-gradient(180deg, #f7faff 0%, #eef3ff 100%);
}

.section.gallery {
  background: linear-gradient(180deg, #eef3ff 0%, #ffffff 100%);
}

/* ─────────────────────────────────────────────────────────────
   36. KINETIC CONTACT CARD IMPROVEMENT
   ───────────────────────────────────────────────────────────── */
.kinetic-contact-card .contact-inline a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(22, 63, 150, 0.08);
  border: 1px solid rgba(22, 63, 150, 0.14);
  font-size: 1rem;
  font-weight: 800;
  color: #163f96;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.kinetic-contact-card .contact-inline a:hover {
  background: rgba(22, 63, 150, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(12, 35, 88, 0.12);
}

/* ─────────────────────────────────────────────────────────────
   37. HERO HELP ROW — GLASSMORPHISM PILL
   ───────────────────────────────────────────────────────────── */
.hero-help-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-help-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

/* ─────────────────────────────────────────────────────────────
   38. NAV ACTIVE LINK INDICATOR
   ───────────────────────────────────────────────────────────── */
.site-nav a {
  position: relative;
}

@media (min-width: 1241px) {
  .site-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 10px;
    right: 10px;
    height: 2px;
    border-radius: 999px;
    background: #4169e1;
    transform: scaleX(0);
    transition: transform 200ms ease;
    transform-origin: left;
  }

  .site-nav a:not(.nav-cta):hover::after,
  .site-nav a:not(.nav-cta).active::after {
    transform: scaleX(1);
  }
}

/* ─────────────────────────────────────────────────────────────
   39. BUTTON HOVER IMPROVEMENTS
   ───────────────────────────────────────────────────────────── */
.button-primary {
  position: relative;
  overflow: hidden;
}

.button-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 200ms ease;
  border-radius: inherit;
}

.button-primary:hover::before {
  opacity: 1;
}

/* ─────────────────────────────────────────────────────────────
   40. GLOSSY CARD SHIMMER (subtle)
   ───────────────────────────────────────────────────────────── */
.hero-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-12deg);
  opacity: 0;
  transition: opacity 400ms ease, left 500ms ease;
  pointer-events: none;
  border-radius: inherit;
}

.hero-feature-card:hover::before {
  left: 120%;
  opacity: 1;
}

/* ─────────────────────────────────────────────────────────────
   41. MOBILE PADDING FIX FOR CONTAINER
   ───────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
  :root {
    --container: calc(100vw - 32px);
  }
}

@media (max-width: 400px) {
  :root {
    --container: calc(100vw - 24px);
  }
}

/* ─────────────────────────────────────────────────────────────
   42. FOCUS VISIBLE IMPROVEMENTS (accessibility)
   ───────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #4169e1;
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #4169e1;
  outline-offset: 3px;
}

/* ─────────────────────────────────────────────────────────────
   43. SCROLL PROGRESS BAR
   ───────────────────────────────────────────────────────────── */
.scroll-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, #163f96 0%, #4169e1 50%, #d4a63a 100%);
  z-index: 10;
  border-radius: 0 0 2px 2px;
  will-change: transform;
}

/* ─────────────────────────────────────────────────────────────
   44. PRINT STYLES
   ───────────────────────────────────────────────────────────── */
@media print {

  .site-header,
  .chat-widget,
  .scroll-top-btn,
  .topbar,
  .scroll-progress-bar {
    display: none !important;
  }

  .section {
    padding: 24px 0 !important;
    break-inside: avoid;
  }
}

/* ─────────────────────────────────────────────────────────────
   45. HERO HELP ROW OVERLAP FIX
   ───────────────────────────────────────────────────────────── */
.hero-help-row {
  left: auto !important;
  right: clamp(20px, 5vw, 60px) !important;
  bottom: auto !important;
  top: clamp(100px, 14vh, 140px) !important;
  z-index: 20 !important;
  background: rgba(12, 35, 88, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(0);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease !important;
}

.hero-help-row:hover {
  background: rgba(12, 35, 88, 0.6) !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3) !important;
}

@media (max-width: 767px) {
  .hero-help-row {
    top: auto !important;
    bottom: 24px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    transform: none !important;
    width: max-content !important;
    max-width: calc(100vw - 40px) !important;
    padding: 10px 18px 10px 10px !important;
    gap: 10px !important;
    background: rgba(12, 35, 88, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 999px !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25) !important;
  }

  .hero-help-row p {
    font-size: 0.82rem !important;
    color: #ffffff !important;
  }

  .hero-help-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.85rem !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   46. PREMIUM BUTTON SWEEP & HOVER FX
   ───────────────────────────────────────────────────────────── */
.button-primary,
.button-hero-secondary {
  position: relative;
  overflow: hidden;
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 250ms ease !important;
  z-index: 1;
}

.button-primary::after,
.button-hero-secondary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.25) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  z-index: -1;
}

.button-primary:hover,
.button-hero-secondary:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 14px 32px rgba(12, 35, 88, 0.35) !important;
}

.button-primary:hover::after,
.button-hero-secondary:hover::after {
  left: 150%;
}

.button-hero-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.button-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}

/* ─────────────────────────────────────────────────────────────
   47. PREMIUM HEADER ENHANCEMENT
   ───────────────────────────────────────────────────────────── */
.site-header {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(22, 63, 150, 0.08);
  box-shadow: 0 8px 32px rgba(12, 35, 88, 0.06);
  transition: padding 0.3s ease, background 0.3s ease;
}

.brand {
  gap: 12px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand:hover {
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────
   48. PREMIUM FOOTER ENHANCEMENT
   ───────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: #081436 !important;
  /* Deep luxury navy */
  color: rgba(255, 255, 255, 0.85) !important;
  border-top: 4px solid #4169e1 !important;
  overflow: hidden;
  padding-top: clamp(60px, 8vw, 80px) !important;
  padding-bottom: clamp(24px, 4vw, 40px) !important;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 70%;
  height: 150%;
  background: radial-gradient(circle at center, rgba(65, 105, 225, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.footer-brand .brand-copy span {
  color: #ffffff !important;
  font-size: 1.6rem !important;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, #d4a63a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand .brand-copy small {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-intro p {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
}

.footer-links h3,
.footer-contact h3 {
  color: #ffffff !important;
  font-size: 1.2rem !important;
  margin-bottom: 20px !important;
  font-weight: 700 !important;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
  display: inline-block !important;
  text-decoration: none !important;
  margin-bottom: 12px !important;
  font-size: 1rem !important;
}

.footer-contact span {
  display: block;
  color: rgba(255, 255, 255, 0.7) !important;
  margin-bottom: 12px !important;
  font-size: 1rem !important;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #ffffff !important;
  transform: translateX(6px) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 28px !important;
  margin-top: 48px !important;
  text-align: center;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.95rem !important;
}

/* Keep social buttons distinct from the general footer-link treatment. */
.footer-social {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.footer-social::before {
  content: "Follow us";
  margin-right: 2px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-contact .footer-social-link {
  display: inline-grid !important;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease !important;
}

.footer-contact .footer-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-contact .footer-social-link.whatsapp { background: #25d366; }
.footer-contact .footer-social-link.instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b 52%, #6228d7); }
.footer-contact .footer-social-link.facebook { background: #1877f2; }

.footer-contact .footer-social-link:hover,
.footer-contact .footer-social-link:focus-visible {
  color: #ffffff !important;
  filter: brightness(1.08);
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
}

.footer-contact .footer-social-link:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* ─────────────────────────────────────────────────────────────
   49. AI CHAT WIDGET INTERACTIVE ENHANCEMENTS
   ───────────────────────────────────────────────────────────── */

/* Add a floating pulsing glow to the chat launcher to make it highly interactive */
.chat-launcher {
  animation: ai-float 4s ease-in-out infinite;
  box-shadow: 0 12px 36px rgba(65, 105, 225, 0.35) !important;
}

@keyframes ai-float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Pulsing aura ring behind the avatar */
.chat-launcher-avatar {
  position: relative !important;
}

.chat-launcher-avatar::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid #4169e1;
  opacity: 0.8;
  animation: ai-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes ai-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Add an 'AI' badge to the avatar to make it explicitly clear */
.chat-launcher-avatar::after {
  content: "AI";
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: linear-gradient(135deg, #4169e1, #163f96);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 10px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.05em;
  z-index: 2;
  line-height: 1;
}

/* Enhance the chat panel opening animation */
.chat-widget.is-open .chat-panel {
  animation: chat-panel-slide-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes chat-panel-slide-up {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Change chat brand area to look like an AI assistant */
.chat-panel-brand strong {
  color: #163f96;
  font-weight: 800;
  background: linear-gradient(90deg, #163f96, #4169e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
