@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700&family=Manrope:wght@400;500;600;700;800&family=Sora:wght@400;500;600;700;800&display=swap');

/*
 * Tree House Academy of Tolland
 * Refined Editorial Refresh
 * Color Palette: Heritage Navy × Soft Teal × Warm Clay × Cream
 */

/* ===== CSS VARIABLES & DESIGN TOKENS ===== */
:root {
    /* ========== PRIMARY PALETTE ========== */
    --navy:          #173652;
    --navy-mid:      #214865;
    --navy-light:    #3F657C;

    /* Soft Teal – calm, playful, grounded */
    --teal:          #5C8F84;
    --teal-light:    #7EACA0;
    --teal-pale:     #DEEBE6;

    /* Warm Clay / Amber accents */
    --amber:         #D49A52;
    --amber-dark:    #B77E39;
    --amber-light:   #F2DFC0;

    /* Clay accent */
    --coral:         #C8785B;
    --coral-light:   #F2DFD8;

    /* Sky accent */
    --sky:           #8BB4C7;
    --sky-light:     #E7F0F4;

    /* Greens */
    --green:         #7A9A6B;
    --green-light:   #E5EDDE;

    /* ========== GRADIENTS ========== */
    --grad-hero:     linear-gradient(135deg, #173652 0%, #28506A 46%, #5C8F84 100%);
    --grad-primary:  linear-gradient(135deg, #173652 0%, #49766F 100%);
    --grad-teal:     linear-gradient(135deg, #4C7E78 0%, #79A79C 100%);
    --grad-amber:    linear-gradient(135deg, #C8785B 0%, #D8A05A 100%);
    --grad-sky:      linear-gradient(135deg, #3F657C 0%, #8BB4C7 100%);
    --grad-green:    linear-gradient(135deg, #5C8F84 0%, #7A9A6B 100%);
    --grad-navy:     linear-gradient(135deg, #173652 0%, #214865 100%);
    --grad-stats:    linear-gradient(135deg, #FBF7F2 0%, #F3EBDF 100%);

    /* ========== SPECIAL GRADIENTS ========== */
    --grad-warm:     linear-gradient(135deg, #F59E0B 0%, #D49A52 100%);
    --grad-cool:     linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    --grad-vibrant:  linear-gradient(135deg, #EC4899 0%, #F59E0B 100%);

    /* ========== NEUTRALS ========== */
    --white:         #FFFFFF;
    --off-white:     #FBF7F2;
    --light:         #F3ECE2;
    --border:        #E5DBCD;
    --muted:         #6B655D;
    --body-text:     #5E635D;
    --heading:       #18324A;

    /* ========== COMPAT VARS (used in other pages) ========== */
    --primary-color:     #173652;
    --primary-dark:      #10263A;
    --primary-light:     #49766F;
    --primary-gradient:  var(--grad-primary);
    --secondary-color:   #5C8F84;
    --accent-yellow:     #D49A52;
    --accent-orange:     #C8785B;
    --accent-purple:     #6E7F98;
    --accent-green:      #7A9A6B;
    --accent-blue:       #8BB4C7;
    --off-white:         #FBF7F2;
    --light-gray:        #E5DBCD;
    --gray:              #A39C94;
    --dark-gray:         #555B54;
    --charcoal:          #25384A;
    --black:             #18324A;
    --success:           #4D6D3E;
    --warning:           #D49A52;
    --error:             #B03F30;
    --info:              #8BB4C7;

    /* ========== TYPOGRAPHY ========== */
    --font-primary:  'Manrope', 'Segoe UI', sans-serif;
    --font-heading:  'Sora', 'Manrope', sans-serif;
    --font-display:  'Baloo 2', 'Sora', sans-serif;

    /* ========== FONT SIZES ========== */
    --fs-xs:   0.75rem;
    --fs-sm:   0.875rem;
    --fs-base: 1rem;
    --fs-lg:   1.125rem;
    --fs-xl:   1.25rem;
    --fs-2xl:  1.5rem;
    --fs-3xl:  1.875rem;
    --fs-4xl:  2.25rem;
    --fs-5xl:  3rem;
    --fs-6xl:  3.75rem;
    --fs-7xl:  4.5rem;

    /* ========== SPACING ========== */
    --spacing-xs:  0.25rem;
    --spacing-sm:  0.5rem;
    --spacing-md:  1rem;
    --spacing-lg:  1.5rem;
    --spacing-xl:  2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    --sp-xs:  0.25rem;
    --sp-sm:  0.5rem;
    --sp-md:  1rem;
    --sp-lg:  1.5rem;
    --sp-xl:  2rem;
    --sp-2xl: 3rem;
    --sp-3xl: 4rem;
    --sp-4xl: 6rem;

    /* ========== BORDER RADIUS ========== */
    --radius-sm:   0.375rem;
    --radius-md:   0.5rem;
    --radius-lg:   0.75rem;
    --radius-xl:   1rem;
    --radius-2xl:  1.5rem;
    --radius-3xl:  2rem;
    --radius-full: 9999px;

    /* ========== SHADOWS ========== */
    --shadow-sm:      0 10px 30px rgba(24,50,74,0.05);
    --shadow-md:      0 18px 40px rgba(24,50,74,0.08);
    --shadow-lg:      0 26px 60px rgba(24,50,74,0.10);
    --shadow-xl:      0 32px 80px rgba(24,50,74,0.12);
    --shadow-2xl:     0 40px 96px rgba(24,50,74,0.14);
    --shadow-teal:    0 18px 40px rgba(92,143,132,0.18);
    --shadow-amber:   0 18px 40px rgba(212,154,82,0.20);
    --shadow-colored: 0 18px 40px rgba(24,50,74,0.18);

    /* ========== TRANSITIONS ========== */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ========== Z-INDEX ========== */
    --z-dropdown:       1000;
    --z-sticky:         1020;
    --z-fixed:          1030;
    --z-modal-backdrop: 1040;
    --z-modal:          1050;
    --z-tooltip:        1070;
}

/* ===========================================================
   GLOBAL RESET & BASE
=========================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--body-text);
    background-color: var(--off-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Styled scrollbar */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--navy-light), var(--teal));
    border-radius: var(--radius-full);
}

/* ===========================================================
   ANIMATIONS & KEYFRAMES
=========================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes zoomInScale {
    from { opacity: 0; transform: scale(0.85) rotate(-5deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(13, 148, 136, 0); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes swingIn {
    0% { opacity: 0; transform: rotate(-10deg) translateY(-20px); }
    100% { opacity: 1; transform: rotate(0deg) translateY(0); }
}

@keyframes scaleUp {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===========================================================
   TYPOGRAPHY
=========================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--sp-md);
    color: var(--heading);
}
h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

p { margin-bottom: var(--sp-md); color: var(--body-text); }

a {
    color: var(--teal);
    text-decoration: none;
    transition: color var(--transition-base);
}
a:hover { color: var(--navy); }

/* ===========================================================
   UTILITIES
=========================================================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}
.section      { padding: var(--sp-4xl) 0; }
.section-sm   { padding: var(--sp-2xl) 0; }
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.fw-bold      { font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--sp-sm); }
.mb-2 { margin-bottom: var(--sp-md); }
.mb-3 { margin-bottom: var(--sp-lg); }
.mb-4 { margin-bottom: var(--sp-xl); }
.mb-5 { margin-bottom: var(--sp-2xl); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--sp-sm); }
.mt-2 { margin-top: var(--sp-md); }
.mt-3 { margin-top: var(--sp-lg); }
.mt-4 { margin-top: var(--sp-xl); }
.mt-5 { margin-top: var(--sp-2xl); }

/* ===========================================================
   NAVIGATION
=========================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(15,45,94,0.06);
    z-index: 9999;
    transition: all var(--transition-base);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 1px 0 var(--border), 0 8px 30px rgba(15,45,94,0.12);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.65rem 1.1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--navy);
    transition: all var(--transition-spring);
    text-decoration: none;
}
.navbar-brand:hover {
    color: var(--teal);
    transform: scale(1.05) translateY(-2px);
}
.navbar-brand i {
    font-size: 1.85rem;
    color: var(--teal);
    transition: all var(--transition-spring);
    animation: float 3s ease-in-out infinite;
}
.navbar-brand:hover i {
    transform: rotate(12deg) scale(1.1);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.navbar-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--charcoal);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    letter-spacing: 0.01em;
    position: relative;
}

.navbar-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: width var(--transition-base);
}

.navbar-menu a:hover {
    color: var(--navy);
    background: rgba(13, 148, 136, 0.08);
}

.navbar-menu a:hover::before {
    width: 100%;
}

.navbar-menu a.active {
    color: var(--navy);
    background: rgba(13, 148, 136, 0.12);
}
.navbar-menu a.active::before {
    width: 100%;
}

.navbar-cta {
    background: var(--grad-primary) !important;
    color: var(--white) !important;
    padding: 0.6rem 1.6rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 24px rgba(23, 54, 82, 0.25) !important;
    transition: all var(--transition-spring) !important;
    position: relative;
    overflow: hidden;
}

.navbar-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.navbar-cta:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 16px 40px rgba(23, 54, 82, 0.35) !important;
    background: linear-gradient(135deg, #1A3F7A 0%, #14B8A6 100%) !important;
    color: var(--white) !important;
}

.navbar-cta:hover::before {
    transform: translateX(100%);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--sp-sm);
}
.navbar-toggle span {
    width: 24px; height: 2.5px;
    background: var(--navy);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    display: block;
}

/* ===========================================================
   HERO SECTION
=========================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--grad-hero);
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: var(--sp-4xl);
}

/* Subtle dot-grid overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--sp-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3xl);
    align-items: center;
}

.hero-text h1,
.hero-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    color: var(--white);
    margin-bottom: var(--sp-lg);
    line-height: 1.08;
    animation: heroFadeUp 0.8s ease-out both;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.hero-text .highlight {
    color: var(--amber);
    display: inline-block;
    position: relative;
}
.hero-text .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0; right: 0;
    height: 4px;
    background: rgba(245,158,11,0.4);
    border-radius: var(--radius-full);
}

.hero-text p {
    font-size: var(--fs-xl);
    color: rgba(255,255,255,0.88);
    margin-bottom: var(--sp-xl);
    animation: heroFadeUp 0.8s ease-out 0.15s both;
    font-weight: 500;
    line-height: 1.75;
}

/* Trust Badges */
.hero-badges {
    display: flex;
    gap: 0.65rem;
    margin-bottom: var(--sp-lg);
    flex-wrap: wrap;
    animation: heroFadeUp 0.8s ease-out 0.05s both;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.92);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.22);
    letter-spacing: 0.01em;
}

.hero-buttons {
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
    animation: heroFadeUp 0.8s ease-out 0.3s both;
}

/* Stats */
.hero-stats {
    display: flex;
    gap: var(--sp-md);
    margin-top: var(--sp-xl);
    animation: heroFadeUp 0.8s ease-out 0.42s both;
}
.hero-stat {
    flex: 1;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-2xl);
    padding: var(--sp-md) var(--sp-lg);
    text-align: center;
    color: var(--white);
}
.hero-stat strong {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    color: var(--amber);
    display: block;
    line-height: 1;
    margin-bottom: 0.3rem;
}
.hero-stat span {
    font-size: 0.78rem;
    opacity: 0.8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: heroFadeRight 0.8s ease-out 0.2s both;
    z-index: 3;
}
.hero-image-frame {
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08);
    transition: transform var(--transition-slow);
}
.hero-image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating decorative elements */
.hero-bubble {
    position: absolute;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.22);
    color: white;
    font-weight: 800;
    animation: bubbleFloat 5s ease-in-out infinite;
    z-index: 4;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    gap: 0.4rem;
    white-space: nowrap;
}
.hero-bubble-1 { top: 8%; right: -2%; animation-delay: 0s; }
.hero-bubble-2 { bottom: 22%; right: -5%; animation-delay: 1.5s; }
.hero-bubble-3 { top: 42%; left: -8%; animation-delay: 3s; }

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}

/* Background Shapes – subtle */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}
.shape {
    position: absolute;
    border-radius: 50%;
    animation: blobDrift 25s infinite ease-in-out;
}
.shape-1 {
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 70%);
    top: -180px; left: -120px;
    animation-duration: 30s;
}
.shape-2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
    bottom: 20px; left: 25%;
    animation-delay: 4s; animation-duration: 22s;
}
.shape-3 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(20,184,166,0.12) 0%, transparent 70%);
    top: 25%; right: -100px;
    animation-delay: 8s; animation-duration: 28s;
}
.shape-4 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    bottom: 10%; right: 30%;
    animation-delay: 2s; animation-duration: 20s;
}
.shape-5, .shape-6 { display: none; }

@keyframes blobDrift {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%       { transform: translate(25px,-20px) scale(1.06); }
    66%       { transform: translate(-15px,25px) scale(0.94); }
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(35px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeRight {
    from { opacity: 0; transform: translateX(45px); }
    to   { opacity: 1; transform: translateX(0); }
}

.floating {
    animation: floatUpDown 4s ease-in-out infinite;
}
@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-16px); }
}

/* ===========================================================
   BUTTONS
=========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    font-size: var(--fs-base);
    font-weight: 700;
    font-family: var(--font-primary);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-spring);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn span { position: relative; z-index: 1; }

/* Ripple effect */
.btn::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.4s;
}
.btn:hover::before { background: rgba(255,255,255,0.15); }

/* Shine effect */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Primary – Navy to Teal */
.btn-primary {
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(23, 54, 82, 0.25);
}
.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 40px rgba(13, 148, 136, 0.4);
    color: var(--white);
}
.btn-primary:active { 
    transform: translateY(-1px) scale(1.01);
}

/* Secondary – white with border */
.btn-secondary {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 8px 24px rgba(24, 50, 74, 0.12);
    border: 2px solid transparent;
}
.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(24, 50, 74, 0.18);
    color: var(--teal);
    border-color: var(--teal);
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(222, 235, 230, 0.5) 100%);
}

/* Outline – for dark backgrounds */
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2.5px solid rgba(255,255,255,0.8);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateY(-4px);
    border-color: var(--white);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
}

/* Amber CTA */
.btn-warm {
    background: var(--grad-amber);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(212, 154, 82, 0.3);
}
.btn-warm:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 40px rgba(212, 154, 82, 0.5);
    color: var(--white);
}

/* Sizes */
.btn-lg { 
    padding: 1.1rem 2.4rem; 
    font-size: var(--fs-lg);
    animation: slideInUp 0.6s ease-out;
}
.btn-sm { padding: 0.5rem 1.1rem; font-size: var(--fs-sm); }

/* Pulsing/Glowing effect for CTAs */
.btn.btn-cta {
    animation: glow 2s infinite;
}

/* Button group animations */
.hero-buttons .btn {
    animation: fadeInUp 0.6s ease-out backwards;
}
.hero-buttons .btn:nth-child(1) { animation-delay: 0.3s; }
.hero-buttons .btn:nth-child(2) { animation-delay: 0.45s; }

/* ===========================================================
   SECTION HEADERS
=========================================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--sp-3xl);
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--teal);
    margin-bottom: var(--sp-sm);
    position: relative;
}
.section-subtitle::before { content: '—'; margin-right: 4px; opacity: 0.5; }
.section-subtitle::after  { content: '—'; margin-left:  4px; opacity: 0.5; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, var(--fs-4xl));
    margin-bottom: var(--sp-md);
    color: var(--heading);
    line-height: 1.18;
}
.section-title span {
    color: var(--teal);
}

.section-description {
    font-size: var(--fs-lg);
    color: var(--body-text);
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===========================================================
   CARDS
=========================================================== */
.card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: 0 4px 20px rgba(24, 50, 74, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
    border: 1px solid var(--border);
    position: relative;
    animation: fadeInUp 0.6s ease-out backwards;
}

.card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 20px 60px rgba(24, 50, 74, 0.15);
    border-color: rgba(13, 148, 136, 0.25);
}

/* Top accent line on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--amber));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    z-index: 1;
}
.card:hover::before { transform: scaleX(1); }

/* Bottom accent glow */
.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.5), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}
.card:hover::after { opacity: 1; }

.card-img {
    width: 100%; 
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.card-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
    z-index: 1;
}

.card:hover .card-img {
    transform: scale(1.08) rotate(1deg);
}

.card:hover .card-img::before {
    background: rgba(0, 0, 0, 0.1);
}

.card-body { 
    padding: var(--sp-2xl);
    animation: fadeInUp 0.6s ease-out 0.15s backwards;
}

.card-title {
    font-size: var(--fs-xl);
    font-weight: 800;
    margin-bottom: var(--sp-md);
    color: var(--heading);
    transition: color var(--transition-base);
}

.card:hover .card-title {
    color: var(--teal);
}

.card-text {
    color: var(--body-text);
    margin-bottom: var(--sp-lg);
    line-height: 1.8;
}

.card-icon {
    width: 72px; 
    height: 72px;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-xl);
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(24, 50, 74, 0.12);
    transition: all var(--transition-spring);
    position: relative;
}

.card:hover .card-icon { 
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 12px 36px rgba(24, 50, 74, 0.2);
}

/* Stagger animations for card grids */
.feature-card { animation-delay: var(--delay, 0s); }
.feature-card:nth-child(1) { --delay: 0s; }
.feature-card:nth-child(2) { --delay: 0.1s; }
.feature-card:nth-child(3) { --delay: 0.2s; }
.feature-card:nth-child(4) { --delay: 0.3s; }
.feature-card:nth-child(5) { --delay: 0.4s; }
.feature-card:nth-child(6) { --delay: 0.5s; }

/* ===========================================================
   GRID
=========================================================== */
.grid { display: grid; gap: var(--sp-xl); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ===========================================================
   STATS STRIP
=========================================================== */
.stats-strip {
    background: var(--grad-stats);
    padding: var(--sp-2xl) 0;
    position: relative;
    overflow: hidden;
}
.stats-strip::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-xl);
    position: relative;
    z-index: 2;
}
.stat-item { text-align: center; padding: var(--sp-lg); }
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--amber);
}
.stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===========================================================
   FEATURES
=========================================================== */
.features-section {
    background: var(--white);
    position: relative;
}
.features-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: var(--border);
}

/* ===========================================================
   PROGRAMS
=========================================================== */
.programs-section {
    background: var(--off-white);
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    height: 100%;
}
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(13,148,136,0.2);
}

.program-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 230px;
}
.program-card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}
.program-card:hover .program-card-img-wrap img { transform: scale(1.06); }

.program-badge {
    position: absolute;
    top: var(--sp-md); left: var(--sp-md);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--white);
    z-index: 2;
    backdrop-filter: blur(8px);
    letter-spacing: 0.01em;
}

.program-card-body { padding: var(--sp-xl); }
.program-card-body h3 {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--heading);
}

.program-age {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 700;
    margin-bottom: var(--sp-md);
}

/* ===========================================================
   TESTIMONIALS
=========================================================== */
.testimonials-section { background: var(--light); }

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--sp-2xl);
    border: 1px solid var(--border);
    position: relative;
    transition: all var(--transition-base);
    height: 100%;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--sp-lg); right: var(--sp-xl);
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--teal-pale);
    pointer-events: none;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13,148,136,0.2);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: var(--sp-md);
}
.testimonial-stars i {
    color: var(--amber);
    font-size: 1rem;
}

.testimonial-text {
    font-size: var(--fs-base);
    color: var(--body-text);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: var(--sp-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
}
.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: var(--fs-lg);
    flex-shrink: 0;
}
.testimonial-info strong {
    display: block;
    font-weight: 800;
    color: var(--heading);
    font-size: 0.95rem;
}
.testimonial-info span {
    font-size: var(--fs-sm);
    color: var(--muted);
}

/* ===========================================================
   CTA SECTION
=========================================================== */
.cta-section {
    background: var(--grad-hero);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
}
.cta-section .container { position: relative; z-index: 2; }

.cta-emoji-float {
    position: absolute;
    font-size: 2.5rem;
    animation: ctaFloat 7s ease-in-out infinite;
    opacity: 0.25;
    pointer-events: none;
}
@keyframes ctaFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-18px) rotate(10deg); }
}

/* ===========================================================
   FOOTER
=========================================================== */
.footer {
    background: linear-gradient(180deg, #0A1929 0%, #0F2D5E 100%);
    color: rgba(255,255,255,0.65);
    padding: var(--sp-4xl) 0 var(--sp-xl);
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-teal);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: var(--sp-2xl);
    margin-bottom: var(--sp-2xl);
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: var(--sp-lg);
    font-size: var(--fs-base);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: var(--font-heading);
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.72);
    margin-bottom: 0.6rem;
    display: block;
    font-size: 0.925rem;
    transition: all var(--transition-base);
}
.footer-section a:hover {
    color: var(--sky-light);
    padding-left: 5px;
}
.footer-section i {
    width: 18px;
    color: var(--teal-light);
    margin-right: 0.4rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    color: var(--white);
    margin-bottom: var(--sp-md);
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--sp-xl);
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: var(--fs-sm);
}
.footer-bottom a {
    color: rgba(255,255,255,0.45);
}
.footer-bottom a:hover { color: var(--sky-light); }

.social-links { display: flex; gap: 0.7rem; margin-top: var(--sp-md); }
.social-link {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all var(--transition-spring);
}
.social-link:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: var(--shadow-teal);
}

/* ===========================================================
   FORMS
=========================================================== */
.form-group { margin-bottom: var(--sp-xl); position: relative; }

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: var(--sp-sm);
    color: var(--heading);
    font-size: var(--fs-sm);
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.1rem;
    font-size: var(--fs-base);
    font-family: var(--font-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    background: var(--white);
    color: var(--heading);
    font-weight: 500;
}
.form-control:hover { border-color: #CBD5E1; }
.form-control:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(13,148,136,0.10);
    transform: translateY(-1px);
}
.form-control::placeholder { color: var(--muted); }

textarea.form-control { resize: vertical; min-height: 130px; }

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%230D9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
    appearance: none;
}

.form-control:invalid:not(:placeholder-shown) { border-color: var(--error); }
.form-control:valid:not(:placeholder-shown)   { border-color: var(--success); }
.form-control.error { border-color: var(--error) !important; }

.form-section-divider {
    margin: var(--sp-3xl) 0;
    border: 0; height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

.form-section-header {
    background: rgba(13,148,136,0.05);
    padding: var(--sp-lg) var(--sp-xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--sp-2xl);
    border-left: 4px solid var(--teal);
}

.form-section-title {
    color: var(--navy);
    margin: 0;
    font-size: var(--fs-xl);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: var(--sp-md);
}
.form-section-title i { font-size: var(--fs-2xl); color: var(--teal); }

/* ===========================================================
   RESPONSIVE
=========================================================== */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 992px) {
    :root {
        --fs-7xl: 3.2rem;
        --fs-6xl: 2.6rem;
        --fs-5xl: 2.1rem;
        --fs-4xl: 1.8rem;
        --fs-3xl: 1.55rem;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--sp-2xl);
    }
    .hero-buttons, .hero-badges, .hero-stats { justify-content: center; }
    .hero-bubble-1, .hero-bubble-2, .hero-bubble-3 { display: none; }
    .floating { animation: floatSimple 4s ease-in-out infinite; }
    @keyframes floatSimple {
        0%, 100% { transform: translateY(0); }
        50%       { transform: translateY(-14px); }
    }

    .navbar-menu {
        position: fixed;
        top: 70px; left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: var(--sp-2xl);
        gap: var(--sp-sm);
        transition: left var(--transition-base);
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
    }
    .navbar-menu.active { left: 0; }
    .navbar-toggle { display: flex; }
    .navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px,7px); }
    .navbar-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px,-7px); }
    .card-body { padding: var(--sp-xl); }
}

@media (max-width: 768px) {
    .section { padding: var(--sp-3xl) 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2,1fr); gap: var(--sp-md); }
    .card-body { padding: var(--sp-lg); }
    h2 { font-size: var(--fs-3xl); }
    h4 { font-size: var(--fs-lg); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { flex-direction: column; align-items: center; }
    .hero-stat { width: 100%; max-width: 220px; }
}

/* ===========================================================
   ANIMATIONS & MISC
=========================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(400px); }
}
@keyframes pulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.04); } }

.pulse           { animation: pulse 2.5s ease-in-out infinite; }
.fade-in         { animation: fadeIn 0.5s ease-out; }
.slide-in-right  { animation: slideInRight 0.5s ease-out; }

/* Back to Top */
.back-to-top {
    width: 50px !important; height: 50px !important;
    background: var(--grad-primary) !important;
    box-shadow: var(--shadow-teal) !important;
}
.back-to-top:hover {
    transform: translateY(-5px) scale(1.08) !important;
    box-shadow: 0 16px 40px rgba(13,148,136,0.45) !important;
}

/* Alert */
.custom-alert {
    animation: slideInRight 0.3s ease-out;
    border-radius: var(--radius-xl) !important;
}

/* Accessibility */
.sr-only {
    position: absolute; width:1px; height:1px;
    padding:0; margin:-1px; overflow:hidden;
    clip:rect(0,0,0,0); white-space:nowrap; border-width:0;
}
*:focus { outline: 2px solid var(--teal); outline-offset: 3px; }
*:focus:not(:focus-visible) { outline: none; }
*:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ===========================================================
   NAVBAR — REFINED
=========================================================== */
.navbar {
    border-bottom: 1px solid var(--border);
}
.navbar-container {
    width: 100%;
    gap: var(--sp-xl);
    max-width: none;
    margin: 0;
    padding: 0.65rem 1.1rem;
}
.brand-icon {
    width: 48px; height: 48px;
    background: transparent !important;
    border-radius: 0 !important;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: none !important;
    border: none !important;
}
.navbar-brand { gap: 0.7rem; }
.navbar-brand span { font-family: var(--font-display); font-size: 1.45rem; }
.navbar-menu { gap: 0.8rem; }
.navbar-menu a {
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
    letter-spacing: 0;
}
.navbar-menu li:not(:last-child) a:hover {
    background: rgba(13,148,136,0.07);
    color: var(--teal);
}
.navbar-menu a.active {
    background: rgba(13,148,136,0.10);
    color: var(--teal);
    font-weight: 700;
}

/* ===========================================================
   HERO SLIDER
=========================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.hero-slides-wrapper {
    display: block;
    position: relative;
}
.hero-slide {
    display: none;
    position: relative;
    min-height: 100vh;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: var(--sp-4xl);
}
.hero-slide.active {
    display: flex;
}
.hero-slide-inner {
    position: relative;
    z-index: 3;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--sp-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3xl);
    align-items: center;
    width: 100%;
}

/* Slide fade animation */
.hero-slide.active .hero-text {
    animation: heroFadeUp 0.7s ease-out both;
}
.hero-slide.active .hero-image {
    animation: heroFadeRight 0.7s ease-out 0.15s both;
}

/* Slider buttons */
.slider-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-spring);
}
.slider-btn:hover {
    background: rgba(255,255,255,0.30);
    transform: translateY(-50%) scale(1.1);
}
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 0.6rem;
    z-index: 10;
}
.slider-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}
.slider-dot.active {
    background: var(--amber);
    border-color: var(--amber);
    transform: scale(1.3);
}

/* ===========================================================
   FEATURE CARDS — UNIFORM GRID
=========================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-xl);
}
.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--sp-2xl) var(--sp-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(13,148,136,0.18);
}
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon {
    width: 60px; height: 60px;
    border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin-bottom: var(--sp-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-spring);
}
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-5deg); }
.feature-card h3 {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--heading);
    margin-bottom: var(--sp-sm);
}
.feature-card p {
    font-size: 0.925rem;
    color: var(--body-text);
    line-height: 1.75;
    margin: 0;
}

/* ===========================================================
   TESTIMONIAL SLIDER
=========================================================== */
.testimonial-slider-wrap {
    position: relative;
    overflow: hidden;
    padding-bottom: var(--sp-3xl);
}
.testimonial-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.testimonial-slide {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 var(--sp-md);
    box-sizing: border-box;
}
.tcard {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--sp-2xl);
    height: 100%;
    position: relative;
    transition: all var(--transition-base);
}
.tcard::before {
    content: '"';
    position: absolute;
    top: var(--sp-md); right: var(--sp-xl);
    font-family: Georgia, serif;
    font-size: 4.5rem;
    line-height: 1;
    color: var(--teal-pale);
    pointer-events: none;
}
.tcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13,148,136,0.2);
}
.tcard-stars { display: flex; gap: 3px; margin-bottom: var(--sp-md); }
.tcard-stars i { color: var(--amber); font-size: 0.95rem; }
.tcard-text {
    font-size: 0.925rem;
    color: var(--body-text);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: var(--sp-lg);
}
.tcard-author { display: flex; align-items: center; gap: var(--sp-md); }
.tcard-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 1.1rem;
    flex-shrink: 0;
}
.tcard-author strong { display: block; font-weight: 800; color: var(--heading); font-size: 0.9rem; }
.tcard-author span { font-size: 0.8rem; color: var(--muted); }

/* Testimonial slider controls */
.tslider-btn {
    position: absolute;
    top: 38%; transform: translateY(-50%);
    width: 44px; height: 44px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 50%;
    color: var(--navy);
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 5;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-spring);
    box-shadow: var(--shadow-md);
}
.tslider-btn:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
    transform: translateY(-50%) scale(1.1);
}
.tslider-prev { left: -1.2rem; }
.tslider-next { right: -1.2rem; }
.tslider-dots {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 0.5rem;
}
.tslider-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--border);
    border: none; cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}
.tslider-dot.active {
    background: var(--teal);
    transform: scale(1.25);
}

/* ===========================================================
   CTA — INLINE STYLES MOVED TO CSS
=========================================================== */
.cta-label {
    font-size: var(--fs-sm);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--sp-md);
}
.cta-title {
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(2rem,5vw,3.5rem);
    margin-bottom: var(--sp-lg);
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.cta-title span { color: var(--amber); }
.cta-desc {
    font-size: var(--fs-lg);
    color: rgba(255,255,255,0.88);
    margin-bottom: var(--sp-2xl);
    max-width: 680px;
    margin-left: auto; margin-right: auto;
    line-height: 1.7;
}
.cta-buttons {
    display: flex; gap: var(--sp-lg);
    justify-content: center; flex-wrap: wrap;
}
.cta-perks {
    margin-top: var(--sp-2xl);
    display: flex; gap: var(--sp-xl);
    justify-content: center; flex-wrap: wrap;
    color: rgba(255,255,255,0.75);
    font-size: var(--fs-sm);
}
.cta-perks span {
    display: flex; align-items: center; gap: 0.4rem;
}
.cta-perks i { color: var(--teal-light); }

/* ===========================================================
   HERO — RICH ANIMATIONS
=========================================================== */
/* NOTE: gradientShift removed — it caused harsh color banding on mobile.
   Slide backgrounds stay crisp and consistent as defined inline. */

/* Glowing ambient orbs */
.hero-orb-1 {
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,158,11,0.14) 0%, transparent 70%);
    top: -130px; right: -90px;
    animation: orbPulse 7s ease-in-out infinite;
    z-index: 0; pointer-events: none;
}
.hero-orb-2 {
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,148,136,0.18) 0%, transparent 70%);
    bottom: -80px; left: 8%;
    animation: orbPulse 9s ease-in-out 2.5s infinite;
    z-index: 0; pointer-events: none;
}
@keyframes orbPulse {
    0%, 100% { transform: scale(1);   opacity: 0.6; }
    50%       { transform: scale(1.25); opacity: 1; }
}

/* Animated rainbow ring behind hero image */
.hero-image-frame::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, rgba(245,158,11,0.45), rgba(13,148,136,0.45), rgba(245,158,11,0.45));
    background-size: 300% 300%;
    animation: ringRotate 4s linear infinite;
    z-index: -1;
    border-radius: inherit;
}
@keyframes ringRotate {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Staggered entrance for each element inside active slide */
.hero-slide.active .hero-badges  { animation: heroFadeUp 0.5s ease-out 0.05s both; }
.hero-slide.active h1            { animation: heroFadeUp 0.6s ease-out 0.18s both; }
.hero-slide.active p             { animation: heroFadeUp 0.6s ease-out 0.30s both; }
.hero-slide.active .hero-buttons { animation: heroFadeUp 0.6s ease-out 0.42s both; }
.hero-slide.active .hero-stats   { animation: heroFadeUp 0.6s ease-out 0.54s both; }
.hero-slide.active .hero-image   { animation: heroFadeRight 0.8s ease-out 0.10s both; }

/* Floating bubbles animation */
.hero-bubble {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    animation: bubbleFloat 3.5s ease-in-out infinite;
}
.hero-bubble-1 { animation-delay: 0s; }
.hero-bubble-2 { animation-delay: 1.8s; }
@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%       { transform: translateY(-14px) rotate(2deg); }
}

/* Always hide arrow buttons */
.slider-btn, .tslider-btn { display: none !important; }

/* ===========================================================
   RESPONSIVE — MOBILE HERO FIX
=========================================================== */
@media (max-width: 992px) {
    .hero-slide-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--sp-xl);
    }
    .hero-image {
        order: 0;
        margin-top: var(--sp-md);
    }
    .hero-image-frame {
        max-width: 280px;
        margin: 0 auto;
        border-radius: var(--radius-2xl);
    }
    .hero-buttons, .hero-badges, .hero-stats { justify-content: center; }
    .hero-bubble-1, .hero-bubble-2 { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-slide { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 768px) {
    .hero-slide {
        padding-top: 124px;
        padding-bottom: 3rem;
        min-height: auto;
    }
    .hero-slide-inner {
        padding: 0 1rem 1.5rem;
        gap: var(--sp-lg);
    }
    .hero-image {
        order: 0;
        animation: none;
        margin-top: var(--sp-sm);
    }
    .hero-image.floating { animation: none; } /* disable floating on mobile — cleaner */
    .hero-image-frame {
        width: 75vw;
        max-width: 300px;
        margin: 0 auto;
        border-radius: var(--radius-2xl);
    }
    .hero h1 {
        font-size: clamp(1.65rem, 6.5vw, 2.4rem);
        line-height: 1.25;
    }
    .hero p { font-size: 0.95rem; }
    .hero-badges {
        flex-wrap: wrap;
        gap: 0.35rem;
        justify-content: center;
    }
    .hero-badge  { font-size: 0.74rem; padding: 0.28rem 0.65rem; }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
        margin-top: 0.9rem;
    }
    .hero-stat {
        min-height: 0;
        text-align: center;
        padding: 0.95rem 0.85rem;
    }
    .hero-stat strong { font-size: 1.3rem; }
    .hero-stat span   { font-size: 0.65rem; }
    .hero-stat:not(:last-child) {
        border-right: 1px solid rgba(255,255,255,0.2);
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .features-grid { grid-template-columns: 1fr; }
    .testimonial-slide { flex: 0 0 100%; max-width: 100%; }
    .tslider-dots { bottom: -0.5rem; }
    .slider-dots { bottom: 1rem; }
}

@media (max-width: 480px) {
    .hero-slide { padding-top: 118px; }
    .hero-image-frame {
        width: 80vw;
        max-width: 260px;
    }
    .hero h1 { font-size: 1.55rem; }
    .hero-stat strong { font-size: 1.1rem; }

    .home-page .hero-badges {
        display: none;
    }

    .home-page .hero-buttons .btn:last-child {
        display: none;
    }
}

/* ===========================================================
   DESIGN REFRESH 2026
=========================================================== */
body {
    background-color: var(--off-white);
    background-image: linear-gradient(180deg, #fcfaf6 0%, #f7f1e8 100%);
    color: var(--body-text);
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.04em;
}

.container {
    max-width: 1280px;
}

.section {
    padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.section-header {
    margin-bottom: clamp(2.5rem, 4vw, 3.75rem);
}

.section-subtitle {
    background: rgba(92,143,132,0.12);
    border: 1px solid rgba(92,143,132,0.18);
    border-radius: var(--radius-full);
    color: var(--teal);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    padding: 0.45rem 0.85rem;
}

.section-subtitle::before,
.section-subtitle::after {
    display: none;
}

.section-title span {
    color: var(--primary-light);
}

.section-header .section-title {
    margin-left: auto;
    margin-right: auto;
    max-width: 14ch;
}

.section-header .section-description {
    max-width: 720px;
    color: var(--dark-gray);
}

.navbar {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    padding: 0.55rem 0.65rem 0;
}

.navbar-container {
    width: 100%;
    max-width: none;
    margin: 0;
    background: rgba(251,247,242,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(24,50,74,0.08);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(24,50,74,0.08);
    padding: 0.65rem 0.95rem;
}

.navbar.scrolled .navbar-container {
    background: rgba(255,255,255,0.96);
    box-shadow: 0 22px 46px rgba(24,50,74,0.10);
}

.navbar-brand > i {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--coral) 0%, var(--amber) 100%);
    box-shadow: 0 14px 28px rgba(200,120,91,0.18);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
    margin: 0;
}

.brand-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.navbar-brand {
    gap: 0.8rem;
    transform: none !important;
}

.navbar-brand span {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.55rem;
    line-height: 1;
}

.navbar-brand:hover {
    color: var(--navy);
}

.navbar-menu a {
    border-radius: var(--radius-full);
    color: rgba(24,50,74,0.74);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.7rem 1rem;
}

.navbar-menu li:not(:last-child) a:hover,
.navbar-menu a.active {
    background: rgba(92,143,132,0.12);
    color: var(--navy);
}

.navbar-cta {
    background: var(--grad-amber) !important;
    box-shadow: var(--shadow-amber) !important;
    color: var(--white) !important;
}

.navbar-cta:hover {
    background: linear-gradient(135deg, #bc6f54 0%, #cf9650 100%) !important;
    box-shadow: 0 20px 38px rgba(200,120,91,0.24) !important;
    transform: translateY(-2px) !important;
}

.btn {
    border-radius: 18px;
    padding: 0.95rem 1.5rem;
    font-weight: 700;
}

.btn-primary {
    background: var(--grad-primary);
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    box-shadow: 0 22px 44px rgba(24,50,74,0.18);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(24,50,74,0.08);
    box-shadow: 0 16px 34px rgba(24,50,74,0.10);
}

.btn-secondary:hover {
    color: var(--navy);
    transform: translateY(-2px);
}

.btn-outline {
    backdrop-filter: blur(12px);
    border-color: rgba(255,255,255,0.38);
    color: rgba(255,255,255,0.95);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.98);
    color: var(--navy);
}

.hero-slider {
    background: var(--navy);
}

.hero-slide {
    min-height: 100vh;
    padding-top: 132px;
    padding-bottom: 8rem;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12,20,31,0.12) 0%, rgba(12,20,31,0) 62%);
    z-index: 1;
    pointer-events: none;
}

.hero-slide-inner {
    gap: clamp(3rem, 6vw, 5rem);
    max-width: 1280px;
}

.hero-text {
    max-width: 620px;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.98;
    margin-bottom: 1rem;
    text-shadow: none;
}

.hero-text .highlight {
    color: #F3D7A6;
}

.hero-text .highlight::after {
    display: none;
}

.hero-text p {
    color: rgba(255,255,255,0.82);
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 36rem;
}

.hero-badges {
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.hero-badge {
    background: rgba(255,255,255,0.11);
    border: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.92);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
}

.hero-buttons {
    gap: 0.9rem;
}

.hero-stats {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2rem;
    max-width: 640px;
}

.hero-stat {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 22px;
    min-height: 104px;
    padding: 1.15rem 1rem;
    text-align: left;
}

.hero-stat strong {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.55rem;
    letter-spacing: -0.05em;
    margin-bottom: 0.45rem;
}

.hero-stat span {
    color: rgba(255,255,255,0.72);
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: none;
}

.hero-stat-address strong {
    font-size: 1.18rem;
    line-height: 1.2;
}

.hero-image {
    justify-self: end;
    max-width: 560px;
    width: 100%;
}

.hero-image-frame {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 34px;
    box-shadow: 0 30px 80px rgba(10,19,30,0.26);
    padding: 12px;
    position: relative;
}

.hero-image-frame::before {
    display: none;
}

.hero-image-frame img {
    border-radius: 26px;
    height: clamp(360px, 42vw, 560px);
    object-fit: cover;
    width: 100%;
}

.hero-bubble {
    animation: none !important;
    background: rgba(251,247,242,0.95);
    border: none;
    box-shadow: 0 18px 40px rgba(10,19,30,0.18);
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.7rem 1rem;
}

.hero-bubble-1 {
    right: -1%;
    top: 8%;
}

.hero-bubble-2 {
    bottom: 11%;
    right: -4%;
}

.shape,
.hero-orb-1,
.hero-orb-2,
.floating {
    animation: none !important;
}

.shape-1 {
    background: radial-gradient(circle, rgba(212,154,82,0.16) 0%, transparent 70%);
    filter: blur(8px);
}

.shape-2 {
    background: radial-gradient(circle, rgba(126,172,160,0.13) 0%, transparent 70%);
}

.shape-3 {
    background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
}

.shape-4 {
    background: radial-gradient(circle, rgba(139,180,199,0.10) 0%, transparent 70%);
}

.slider-dots {
    bottom: 2.75rem;
}

.slider-dot {
    background: rgba(255,255,255,0.36);
    border: none;
    height: 12px;
    width: 12px;
}

.slider-dot.active {
    background: var(--white);
    box-shadow: 0 0 0 5px rgba(255,255,255,0.14);
    transform: scale(1.05);
}

.stats-strip {
    background: transparent;
    margin-top: -4rem;
    padding: 0 0 2rem;
    z-index: 5;
}

.stats-strip::before {
    display: none;
}

.stats-grid {
    gap: 1rem;
}

.stat-item {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(24,50,74,0.08);
    border-radius: 26px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem 1.35rem;
}

.stat-number {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    margin-bottom: 0.45rem;
}

.stat-label {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}

.features-section {
    background: transparent;
    padding-top: 2rem;
}

.features-section::after {
    display: none;
}

.features-grid {
    gap: 1.2rem;
}

.feature-card,
.program-card,
.tcard,
.testimonial-card,
.card {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(24,50,74,0.08);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
}

.feature-card {
    overflow: hidden;
    padding: 1.8rem;
}

.feature-card::after {
    background: linear-gradient(90deg, transparent, rgba(92,143,132,0.32), transparent);
    height: 1px;
    opacity: 0.85;
    transform: scaleX(1);
}

.feature-card:hover,
.program-card:hover,
.tcard:hover,
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon,
.card-icon {
    border-radius: 20px;
    box-shadow: 0 16px 34px rgba(24,50,74,0.12);
}

.feature-card:hover .feature-icon,
.card:hover .card-icon {
    transform: translateY(-2px) scale(1.02);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
}

.feature-card p {
    color: var(--dark-gray);
    font-size: 0.96rem;
}

.programs-section,
.testimonials-section {
    background: transparent;
}

.program-card {
    overflow: hidden;
}

.program-card-img-wrap {
    height: 250px;
}

.program-badge {
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 28px rgba(10,19,30,0.12);
    font-size: 0.76rem;
    padding: 0.55rem 0.95rem;
}

.program-card-body {
    padding: 1.75rem;
}

.program-card-body h3 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.program-age {
    background: rgba(243,236,226,0.85);
    border: 1px solid rgba(24,50,74,0.06);
    color: var(--navy);
}

.testimonial-slider-wrap {
    padding-bottom: 3rem;
}

.tcard::before,
.testimonial-card::before {
    color: rgba(92,143,132,0.14);
}

.tcard-text,
.testimonial-text {
    color: var(--body-text);
    font-size: 1rem;
    font-style: normal;
}

.cta-section {
    background: linear-gradient(135deg, #173652 0%, #26495F 55%, #4B8278 100%);
    border-radius: 36px;
    margin: 0 1rem 1rem;
    overflow: hidden;
}

.cta-section::before {
    background:
        radial-gradient(circle at top left, rgba(243,215,166,0.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(126,172,160,0.18), transparent 36%);
}

.cta-emoji-float {
    display: none;
}

.cta-label {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.86);
    display: inline-flex;
    justify-content: center;
    letter-spacing: 0.16em;
    padding: 0.45rem 0.85rem;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    letter-spacing: -0.06em;
    text-shadow: none;
}

.cta-title span {
    color: #F3D7A6;
}

.cta-desc {
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    max-width: 640px;
}

.cta-perks {
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.cta-perks span {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.88);
    padding: 0.6rem 0.95rem;
}

.cta-perks i {
    color: #F3D7A6;
}

.footer {
    background: linear-gradient(180deg, #102437 0%, #173652 100%);
}

.footer::before {
    background: linear-gradient(90deg, #C8785B 0%, #D49A52 50%, #7EACA0 100%);
    height: 2px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 2rem;
}

.footer-section h3 {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 0;
}

.social-link {
    border-radius: 14px;
}

.form-control {
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.05rem;
}

.form-section-header {
    background: rgba(92,143,132,0.08);
    border: 1px solid rgba(92,143,132,0.14);
    border-left: 0;
    border-radius: 20px;
}

.form-section-title {
    color: var(--navy);
}

@media (max-width: 992px) {
    .navbar {
        padding: 0.75rem 0.75rem 0;
    }

    .navbar-container {
        padding: 0.85rem 1rem;
    }

    .navbar-menu {
        background: rgba(251,247,242,0.98);
        border: 1px solid rgba(24,50,74,0.08);
        border-radius: 24px;
        box-shadow: 0 24px 44px rgba(24,50,74,0.12);
        height: auto;
        left: 0;
        margin: 0 0.75rem;
        max-height: calc(100vh - 104px);
        opacity: 0;
        pointer-events: none;
        right: 0;
        top: 88px;
        transform: translateY(-10px);
        transition: opacity var(--transition-base), transform var(--transition-base);
        width: auto;
    }

    .navbar-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero-slide-inner {
        gap: 2rem;
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-image {
        justify-self: stretch;
        max-width: 100%;
        order: -1;
    }

    .hero-image-frame img {
        height: min(60vw, 460px);
        min-height: 320px;
    }

    .hero-buttons,
    .hero-badges {
        justify-content: flex-start;
    }

    .hero-stats {
        max-width: none;
    }

    .stats-strip {
        margin-top: -2.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4.5rem 0;
    }

    .hero-slide {
        padding-bottom: 5rem;
        padding-top: 112px;
    }

    .hero-slide-inner {
        text-align: center;
    }

    .hero-text,
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-badges {
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stat {
        min-height: 0;
        text-align: center;
    }

    .stats-strip {
        margin-top: -1.75rem;
        padding-bottom: 1.5rem;
    }

    .feature-card,
    .program-card,
    .tcard,
    .stat-item {
        border-radius: 24px;
    }

    .cta-section {
        border-radius: 28px;
        margin: 0 0.75rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        padding-top: 104px;
    }

    .hero-text h1 {
        font-size: clamp(2.25rem, 11vw, 3rem);
    }

    .slider-dots {
        bottom: 1.5rem;
    }
}

/* ===========================================================
   PALETTE CORRECTION
=========================================================== */
:root {
    --navy: #22364A;
    --navy-mid: #355066;
    --navy-light: #6A8393;
    --teal: #7E9F95;
    --teal-light: #9CB8AF;
    --teal-pale: #EEF5F0;
    --amber: #BB8444;
    --amber-dark: #9A6A36;
    --amber-light: #E8D5BC;
    --coral: #BE8465;
    --off-white: #FCF7F0;
    --light: #F4EEE5;
    --border: #E6DBCD;
    --muted: #8E8A84;
    --body-text: #5D6670;
    --heading: #213447;
    --primary-color: #22364A;
    --primary-dark: #18293A;
    --primary-light: #6E9187;
    --primary-gradient: linear-gradient(135deg, #22364A 0%, #486575 100%);
    --secondary-color: #7E9F95;
    --accent-yellow: #BB8444;
    --accent-orange: #BE8465;
    --accent-purple: #8A99AD;
    --accent-blue: #95B7C4;
    --dark-gray: #64707A;
    --grad-primary: linear-gradient(135deg, #22364A 0%, #486575 100%);
    --grad-amber: linear-gradient(135deg, #BB8444 0%, #CB9461 100%);
    --grad-teal: linear-gradient(135deg, #7E9F95 0%, #9CB8AF 100%);
    --grad-sky: linear-gradient(135deg, #678396 0%, #95B7C4 100%);
    --shadow-colored: 0 18px 40px rgba(34,54,74,0.12);
    --shadow-amber: 0 18px 40px rgba(187,132,68,0.16);
}

.navbar-container {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(34,54,74,0.06);
    box-shadow: 0 18px 36px rgba(34,54,74,0.07);
}

.navbar-brand > i {
    background: linear-gradient(135deg, #8DB3A8 0%, #71978D 100%) !important;
    box-shadow: 0 14px 28px rgba(126,159,149,0.18);
}

.navbar-brand > i {
    color: var(--white) !important;
}

.navbar-brand span {
    color: var(--primary-color);
}

.navbar-menu a.active,
.navbar-menu li:not(:last-child) a:hover {
    background: rgba(126,159,149,0.14);
    color: var(--primary-color);
}

.navbar .navbar-cta {
    background: var(--primary-color) !important;
    box-shadow: 0 16px 32px rgba(34,54,74,0.14) !important;
}

.navbar .navbar-cta:hover {
    background: #2f465c !important;
    box-shadow: 0 18px 36px rgba(34,54,74,0.18) !important;
}

.hero-slider {
    background: linear-gradient(180deg, #F9F4EC 0%, #F6F1E9 100%) !important;
}

.hero-slide {
    min-height: auto;
    padding-top: 8.75rem;
    padding-bottom: 4.5rem;
}

.hero-slide::after {
    display: none;
}

.hero-text h1 {
    color: var(--heading);
}

.hero-text .highlight {
    color: var(--amber-dark);
}

.hero-text p {
    color: var(--dark-gray);
}

.hero-badge {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(34,54,74,0.08);
    box-shadow: 0 12px 30px rgba(34,54,74,0.05);
    color: var(--primary-color);
}

.hero-buttons .btn-secondary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 16px 34px rgba(34,54,74,0.14);
    color: var(--white);
}

.hero-buttons .btn-secondary:hover {
    background: #2d455b;
    color: var(--white);
}

.hero-buttons .btn-outline {
    background: rgba(255,255,255,0.55);
    border: 1.5px solid rgba(34,54,74,0.14);
    color: var(--primary-color);
}

.hero-buttons .btn-outline:hover {
    background: rgba(255,255,255,0.92);
    color: var(--primary-color);
}

.hero-stats {
    margin-top: 1.65rem;
}

.hero-stat {
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(34,54,74,0.08);
    box-shadow: 0 18px 36px rgba(34,54,74,0.08);
}

.hero-stat strong {
    color: var(--primary-color);
}

.hero-stat strong small {
    color: var(--amber-dark);
    font-size: 0.55em;
    font-weight: 700;
}

.hero-stat span {
    color: var(--dark-gray);
}

.hero-image-frame {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(126,159,149,0.22);
    box-shadow: 0 28px 64px rgba(34,54,74,0.12);
}

.hero-image-frame img {
    filter: saturate(0.98) contrast(1.01);
}

.hero-bubble {
    background: rgba(255,255,255,0.94);
    color: var(--primary-color);
    box-shadow: 0 16px 36px rgba(34,54,74,0.10);
}

.shape-1 {
    background: radial-gradient(circle, rgba(190,132,101,0.10) 0%, transparent 70%);
}

.shape-2 {
    background: radial-gradient(circle, rgba(126,159,149,0.12) 0%, transparent 70%);
}

.shape-3 {
    background: radial-gradient(circle, rgba(255,255,255,0.45) 0%, transparent 72%);
}

.shape-4 {
    background: radial-gradient(circle, rgba(149,183,196,0.10) 0%, transparent 70%);
}

.slider-dot {
    background: rgba(34,54,74,0.18);
}

.slider-dot.active {
    background: var(--amber);
    box-shadow: 0 0 0 5px rgba(187,132,68,0.14);
}

.stats-strip {
    background: linear-gradient(180deg, #F7F1E8 0%, #FCF8F3 100%) !important;
    margin-top: 0 !important;
    padding: 0.75rem 0 1rem !important;
}

.stats-grid {
    gap: 1.2rem;
}

.stat-item {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(34,54,74,0.07);
    box-shadow: 0 18px 36px rgba(34,54,74,0.07);
}

.stat-number {
    color: var(--primary-color) !important;
    font-size: clamp(1.3rem, 2vw, 1.95rem) !important;
    font-family: var(--font-display);
    line-height: 1.12;
}

.stat-label {
    color: var(--muted);
}

.features-section {
    padding-top: 3rem;
}

.section-header .section-title span {
    color: var(--teal);
}

.cta-section {
    background: linear-gradient(135deg, #22364A 0%, #486575 55%, #7E9F95 100%);
}

.cta-title span {
    color: #E9D1AF;
}

@media (max-width: 992px) {
    .hero-slide {
        padding-top: 7.75rem;
    }

    .stats-strip {
        padding-top: 1rem !important;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        padding-top: 7rem;
        padding-bottom: 3.5rem;
    }

    .hero-buttons .btn-secondary,
    .hero-buttons .btn-outline {
        width: 100%;
    }
}

/* ===========================================================
   UNIFIED RESPONSIVE POLISH
=========================================================== */
html, body {
    max-width: 100%;
}

body.nav-open {
    overflow: hidden;
}

body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(24, 33, 43, 0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: calc(var(--z-fixed) - 1);
}

.home-page {
    background: linear-gradient(180deg, #fbf6ef 0%, #f6f1ea 38%, #fffaf5 100%);
}

.inner-page {
    background: linear-gradient(180deg, #fcf7f0 0%, #f8f3eb 24%, #fffdf9 100%);
}

.navbar {
    background: rgba(252, 247, 240, 0.84);
    border-bottom: 1px solid rgba(34, 54, 74, 0.05);
    box-shadow: 0 10px 30px rgba(34, 54, 74, 0.04);
    padding: 0.7rem 1rem;
}

.navbar.scrolled {
    background: rgba(252, 247, 240, 0.94);
    box-shadow: 0 18px 42px rgba(34, 54, 74, 0.08);
}

.navbar-container {
    min-height: 72px;
    padding: 0.7rem 1.15rem;
    position: relative;
}

.navbar-brand {
    min-width: max-content;
}

.brand-icon {
    border-radius: 0;
    height: 46px;
    width: 46px;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.navbar-menu {
    margin-left: auto;
}

.navbar-menu a {
    align-items: center;
    display: inline-flex;
    min-height: 44px;
}

.navbar-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(34, 54, 74, 0.08);
    border-radius: 14px;
    display: none;
    height: 46px;
    justify-content: center;
    padding: 0;
    width: 46px;
}

.navbar-toggle span {
    width: 20px;
}

.navbar-toggle.active {
    background: var(--white);
}

.page-hero {
    background: linear-gradient(135deg, #f9f3ea 0%, #edf3ec 55%, #e1ebe6 100%);
    border-bottom: 1px solid rgba(34, 54, 74, 0.06);
    overflow: hidden;
    padding: 9.5rem 0 5rem;
    position: relative;
    text-align: center;
}

.page-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 54, 74, 0.12), transparent);
}

.page-hero-content {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

/* page-hero badge/heading/description show immediately (above the fold)
   – AOS still runs but these shouldn't be hidden on page load */
.page-hero-badge {
    align-items: center;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(34, 54, 74, 0.08);
    border-radius: var(--radius-full);
    box-shadow: 0 14px 28px rgba(34, 54, 74, 0.05);
    color: var(--teal);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 1.15rem;
    padding: 0.55rem 0.95rem;
    text-transform: uppercase;
}

.page-hero h1 {
    font-family: var(--font-display);
    color: var(--heading);
    font-size: clamp(2.7rem, 5vw, 4.35rem);
    letter-spacing: -0.06em;
    margin-bottom: 1rem;
}

.page-hero-description {
    color: var(--dark-gray);
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    line-height: 1.8;
    margin: 0 auto;
    max-width: 42rem;
}

.page-hero-orb {
    border-radius: 50%;
    filter: blur(6px);
    pointer-events: none;
    position: absolute;
}

.page-hero-orb-1 {
    background: radial-gradient(circle, rgba(190, 132, 101, 0.12) 0%, transparent 70%);
    height: 380px;
    left: -80px;
    top: 40px;
    width: 380px;
}

.page-hero-orb-2 {
    background: radial-gradient(circle, rgba(126, 159, 149, 0.16) 0%, transparent 70%);
    bottom: -120px;
    height: 420px;
    right: -70px;
    width: 420px;
}

.home-page .hero-slider {
    background: linear-gradient(180deg, #faf5ee 0%, #fffaf6 100%) !important;
}

.home-page .hero-slides-wrapper {
    position: relative;
}

.home-page .hero-slide {
    border-bottom: 1px solid rgba(34, 54, 74, 0.06);
    padding-bottom: 4.75rem;
    padding-top: 9rem;
}

/* Mobile composite images — hidden on desktop, shown on mobile via @media */
.hero-mobile-image {
    display: none;
}

/* Mobile full-bleed background div — hidden on desktop, shown on mobile */
.hero-bg {
    display: none;
}


/* Desktop inner layout — always shown on desktop */
.hero-desktop-inner {
    display: grid;
}


.home-page .hero-slide-inner {
    align-items: center;
    gap: clamp(2.5rem, 4vw, 4rem);
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
}

.home-page .hero-text {
    max-width: 600px;
}

.home-page .hero-text h1,
.home-page .hero-text h2 {
    font-size: clamp(3rem, 5.8vw, 5.4rem);
    line-height: 0.95;
    margin-bottom: 1.15rem;
}

.home-page .hero-text p {
    max-width: 34rem;
}

.home-page .hero-badge i {
    margin-right: 0.2rem;
}

.home-page .hero-image-frame {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.home-page .hero-slide.active .hero-image-frame {
    animation: heroCardReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-page .hero-slide.active .hero-badge,
.home-page .hero-slide.active .hero-text h1,
.home-page .hero-slide.active .hero-text h2,
.home-page .hero-slide.active .hero-text p,
.home-page .hero-slide.active .hero-buttons,
.home-page .hero-slide.active .hero-stats {
    animation: softRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-page .hero-slide.active .hero-text h1,
.home-page .hero-slide.active .hero-text h2 { animation-delay: 0.08s; }
.home-page .hero-slide.active .hero-text p { animation-delay: 0.14s; }
.home-page .hero-slide.active .hero-buttons { animation-delay: 0.2s; }
.home-page .hero-slide.active .hero-stats { animation-delay: 0.26s; }

.home-page .hero-bubble {
    animation: softFloat 5.5s ease-in-out infinite !important;
}

.home-page .hero-bubble-2 {
    animation-delay: 1.4s !important;
}

.home-page .stats-strip {
    background: linear-gradient(180deg, #faf5ee 0%, #fdf9f5 100%) !important;
    border-bottom: 1px solid rgba(34, 54, 74, 0.06);
    margin-top: 2rem !important;
    padding: 1.15rem 0 2rem !important;
}

.home-page .stats-strip::before {
    display: none !important;
}

.home-page .stat-item {
    min-height: 132px;
}

.home-page .stat-number {
    font-size: clamp(1.2rem, 2vw, 1.85rem) !important;
}

.home-page .slider-dots {
    bottom: 1.6rem;
}

.location-tab.active {
    background: rgba(255, 255, 255, 0.92);
}

.footer,
.cta-section,
.card,
.program-card,
.feature-card,
.tcard {
    will-change: transform;
}

@keyframes softRise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroCardReveal {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes softFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ===========================================================
   FORM ELEMENTS & INPUTS
=========================================================== */
.form-group {
    margin-bottom: var(--sp-xl);
    animation: fadeInUp 0.6s ease-out backwards;
}

label {
    display: block;
    margin-bottom: var(--sp-sm);
    font-weight: 600;
    color: var(--heading);
    font-size: var(--fs-sm);
    transition: color var(--transition-base);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    color: var(--heading);
    background: var(--white);
    transition: all var(--transition-base);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    background: rgba(13, 148, 136, 0.02);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235C8F84' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Form validation styles */
.form-error {
    border-color: var(--error) !important;
    background: rgba(195, 93, 78, 0.05);
}

.form-error:focus {
    box-shadow: 0 0 0 3px rgba(195, 93, 78, 0.1) !important;
}

.error-message {
    display: block;
    color: var(--error);
    font-size: var(--fs-sm);
    margin-top: 0.4rem;
    animation: slideInUp 0.3s ease-out;
}

.success-message {
    display: block;
    color: var(--success);
    font-size: var(--fs-sm);
    margin-top: 0.4rem;
    animation: slideInUp 0.3s ease-out;
}

/* Form submit button */
form .btn {
    width: 100%;
    margin-top: var(--sp-lg);
}

/* Checkbox and Radio Styles */
input[type="checkbox"],
input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: var(--sp-sm);
    cursor: pointer;
    accent-color: var(--teal);
    transition: all var(--transition-base);
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
    transform: scale(1.1);
}

/* ===========================================================
   SECTION ANIMATIONS
=========================================================== */
.section {
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.feature-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.program-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.testimonial-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

/* ===========================================================
   SPECIAL EFFECTS
=========================================================== */
/* Gradient text animation */
.gradient-text {
    background: var(--grad-primary);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Spinning loader */
.loader {
    border: 3px solid rgba(13, 148, 136, 0.1);
    border-top: 3px solid var(--teal);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: rotate360 1s linear infinite;
}

/* Blinking cursor */
.blink {
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Emphasis shimmer */
.shimmer-effect {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Hover glow for links */
a.glow-hover:hover {
    animation: glow 2s infinite;
}

/* ===========================================================
   PAGE TRANSITIONS
=========================================================== */
.page-enter {
    animation: fadeInUp 0.5s ease-out;
}

.page-exit {
    animation: fadeInDown 0.3s ease-in;
}

/* Hero slide: simple display toggle + fade animation.
   Works on ALL screen sizes — no absolute positioning tricks. */
.hero-slide {
    display: none;
}
.hero-slide.active {
    display: flex;
    animation: heroSlideFadeIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroSlideFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .navbar-brand span {
        font-size: 1.42rem;
    }

    .navbar-menu {
        gap: 0.5rem;
    }

    .navbar-menu a {
        font-size: 0.88rem;
        padding: 0.68rem 0.95rem;
    }

    .home-page .hero-slide-inner {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 0.75rem 0.85rem;
    }

    .navbar-container {
        min-height: 68px;
        padding: 0.65rem 0.9rem;
    }

    .navbar-brand span {
        font-size: 1.28rem;
    }

    .navbar-toggle {
        display: inline-flex;
    }

    .navbar-menu {
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(34, 54, 74, 0.08);
        border-radius: 22px;
        box-shadow: 0 22px 44px rgba(34, 54, 74, 0.12);
        gap: 0.4rem;
        left: 0;
        margin: 0;
        max-height: calc(100vh - 120px);
        opacity: 0;
        overflow-y: auto;
        padding: 1rem;
        pointer-events: none;
        position: absolute;
        right: 0;
        top: calc(100% + 0.7rem);
        transform: translateY(-10px) scale(0.98);
        transition: opacity var(--transition-base), transform var(--transition-base);
        visibility: hidden;
        width: 100%;
    }

    .navbar-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        visibility: visible;
    }

    .navbar-menu li,
    .navbar-menu a {
        width: 100%;
    }

    .navbar-menu a {
        border-radius: 16px;
        justify-content: flex-start;
        padding: 0.95rem 1rem;
    }

    .navbar-menu .navbar-cta {
        justify-content: center;
        margin-top: 0.3rem;
        width: 100% !important;
    }

    .page-hero {
        padding: 8.7rem 0 4rem;
    }

    /* =====================================================
       MOBILE + TABLET HERO (≤1024px) — hero-bg full-bleed cover approach
       Identical to reference site: background-image:cover on a dedicated div,
       dark gradient overlay, white text on top.
    ===================================================== */

    .home-page .hero-slides-wrapper {
        min-height: auto;
    }

    /* Active slide: full-viewport, positioned container */
    .home-page .hero-slide {
        position: relative;
        padding-top: 0;
        padding-bottom: 0;
        min-height: 100svh;
        min-height: 100vh; /* fallback */
        overflow: hidden;
        display: none;
        background: linear-gradient(135deg, #F9F3EA 0%, #EEF3EC 52%, #DCE9E1 100%) !important;
    }
    .home-page .hero-slide.active {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Keep the desktop card-based hero look on mobile/tablet */
    .home-page .hero-slide .hero-bg {
        display: none !important;
    }

    /* Dark gradient overlay for text readability */
    .home-page .hero-slide::after {
        display: none;
        pointer-events: none;
    }

    /* hero-slide-inner: stays positioned (z-index works correctly) */
    .home-page .hero-slide-inner {
        position: relative;
        z-index: 2;
        display: grid !important;
        grid-template-columns: 1fr;
        align-items: center;
        width: 100%;
        min-height: auto;
        padding: 96px 1.5rem 3rem;
        text-align: left;
    }

    .home-page .hero-image {
        display: block !important;
        order: -1;
        width: 100%;
        max-width: 560px;
        margin: 0 auto 1.25rem;
    }

    .home-page .hero-image-frame {
        background: rgba(255,255,255,0.92);
        border: 1px solid rgba(24,50,74,0.10);
        box-shadow: 0 22px 46px rgba(23,54,82,0.14);
        border-radius: 28px;
        overflow: hidden;
        padding: 10px;
    }

    .home-page .hero-image-frame img {
        height: min(60vw, 420px);
        min-height: 240px;
    }

    .home-page .hero-bubble-1,
    .home-page .hero-bubble-2 {
        display: none;
    }

    .home-page .hero-text {
        width: 100%;
    }

    /* Match desktop text and highlight colors in mobile heading */
    .home-page .hero-text h1,
    .home-page .hero-text h2 {
        color: var(--heading) !important;
        text-shadow: none;
    }
    .home-page .hero-text h1 .highlight,
    .home-page .hero-text h2 .highlight {
        color: var(--amber-dark) !important;
        text-shadow: none;
    }
    .home-page .hero-text h1 .highlight::after {
        background: rgba(212, 154, 82, 0.18);
    }
    .home-page .hero-text p {
        color: var(--body-text);
        max-width: 100%;
    }

    /* Badges: glass pill */
    .home-page .hero-badge {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: var(--navy);
        border: 1px solid rgba(24,50,74,0.10);
    }

    /* Buttons: left aligned, row */
    .home-page .hero-badges,
    .home-page .hero-buttons {
        justify-content: flex-start;
    }
    .home-page .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.7rem;
        margin-top: 0.75rem;
    }
    .home-page .hero-buttons .btn {
        flex: 1 1 140px;
        min-width: 130px;
        justify-content: center;
        padding: 0.75rem 1.1rem;
        font-size: 0.9rem;
    }

    .home-page .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
        margin-top: 1rem;
        max-width: 100%;
    }

    .home-page .hero-stat {
        min-height: 0;
        padding: 0.95rem 0.85rem;
        text-align: center;
        background: rgba(255,255,255,0.9);
        border: 1px solid rgba(24,50,74,0.10);
        color: var(--navy);
    }

    .home-page .hero-stat strong {
        font-size: 1.15rem;
        color: var(--navy);
    }

    .home-page .hero-stat span {
        font-size: 0.68rem;
        color: var(--muted);
    }

    /* Slider dots */
    .home-page .hero-slider { margin-bottom: 36px; }
    .home-page .slider-dots { bottom: -28px !important; }

    /* Stats strip 2-col */
    .home-page .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.7rem 0.7rem;
    }

    .navbar-container {
        border-radius: 18px;
    }

    .brand-icon {
        height: 42px;
        width: 42px;
    }

    .page-hero {
        padding: 8rem 0 3.5rem;
    }

    .page-hero-badge {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .page-hero h1 {
        font-size: clamp(2.3rem, 9vw, 3.4rem);
    }

    .page-hero-description {
        font-size: 1rem;
        line-height: 1.72;
    }

    /* Mobile hero slide: keep the same design, just scale it down */
    .home-page .hero-slide-inner {
        padding: 90px 1.25rem 2.5rem;
    }

    .home-page .hero-slide-inner {
        padding-top: 1rem;
    }

    .home-page .hero-text,
    .home-page .hero-text p {
        margin-left: 0;
        margin-right: 0;
    }

    .home-page .hero-buttons,
    .home-page .hero-badges {
        justify-content: flex-start;
    }

    /* Stats strip 2-col on mobile */
    .home-page .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-page .stat-item {
        min-height: 0;
    }
}

/* 520px – very small phones */
@media (max-width: 520px) {
    .navbar-brand span {
        font-size: 1.15rem;
    }

    .navbar {
        padding: 0.55rem 0.55rem;
    }

    .navbar-container {
        min-height: 60px;
        padding: 0.55rem 0.7rem;
        gap: 0.45rem;
    }

    .navbar-brand {
        gap: 0.5rem;
        min-width: 0;
        max-width: calc(100vw - 72px);
    }

    .navbar-brand span {
        font-size: 0.82rem !important;
        line-height: 1.05;
        white-space: nowrap;
    }

    .navbar-brand > span > span {
        font-size: 0.48rem !important;
        margin-top: 0;
    }

    .brand-icon {
        height: 36px;
        width: 36px;
    }

    .navbar-toggle {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .navbar-toggle span {
        width: 18px;
    }

    .page-hero {
        padding-top: 7.4rem;
    }

    .home-page .hero-slide-inner {
        padding: 88px 1rem 2rem;
    }

    .home-page .hero-text h1,
    .home-page .hero-text h2 {
        font-size: clamp(1.7rem, 8.5vw, 2.2rem);
        line-height: 1.15;
    }

    .home-page .hero-text p {
        font-size: 0.88rem;
    }

    .home-page .hero-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .home-page .hero-buttons .btn {
        width: auto;
        flex: 1 1 130px;
        justify-content: center;
    }

    .home-page .hero-badges {
        gap: 0.35rem;
    }
}

/* ===========================================================
   SCROLL PROGRESS BAR
=========================================================== */
#scrollProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--coral) 0%, var(--amber) 50%, var(--teal) 100%);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 3px 3px 0;
}

/* ===========================================================
   BACK TO TOP BUTTON
=========================================================== */
#backToTopBtn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(34, 54, 74, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity var(--transition-base), visibility var(--transition-base),
                transform var(--transition-spring), box-shadow var(--transition-base);
    z-index: var(--z-fixed);
}
#backToTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#backToTopBtn:hover {
    box-shadow: 0 16px 40px rgba(34, 54, 74, 0.32);
    transform: translateY(-4px) scale(1.08);
}
#backToTopBtn:active {
    transform: translateY(-1px) scale(1.03);
}

/* ===========================================================
   SCROLL-REVEAL ANIMATION SYSTEM
   Usage: add class "reveal", "reveal-left", "reveal-right",
   or "reveal-scale" to any element. JS adds "revealed" when
   the element enters the viewport.
=========================================================== */

/* Base hidden state */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* Directional starting positions */
.reveal          { transform: translateY(32px); }
.reveal-left     { transform: translateX(-40px); }
.reveal-right    { transform: translateX(40px); }
.reveal-scale    { transform: scale(0.92) translateY(20px); }

/* Revealed state – all converge to natural position */
.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
    opacity: 1;
    transform: none;
}

/* Stagger children – delays are set via JS */
.stagger-children > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger-children > *.revealed {
    opacity: 1;
    transform: none;
}

/* Reduce motion override */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-scale,
    .stagger-children > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ===========================================================
   POP-ON-SCROLL ANIMATION
   JS adds .pop-hidden on eligible cards; removes it + adds
   .pop-visible when the card enters the viewport.
=========================================================== */
.pop-hidden {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.pop-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* ===========================================================
   CARD BASE TRANSITION (hover + pop use this)
=========================================================== */
.feature-card,
.program-card,
.tcard,
.stat-item,
.card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                background-image 0.2s ease;
    will-change: transform, box-shadow;
    position: relative;
    overflow: hidden;
}

/* ===========================================================
   CARD TAP – mobile bounce feedback
=========================================================== */
.card-tap {
    transform: scale(0.97) !important;
    box-shadow: 0 4px 14px rgba(34, 54, 74, 0.12) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

/* ===========================================================
   REDUCE MOTION – disable all card animations
=========================================================== */
@media (prefers-reduced-motion: reduce) {
    .pop-hidden { opacity: 1; transform: none; }
    .feature-card, .program-card, .tcard, .stat-item, .card {
        transition: none !important;
    }
}


/* ===========================================================
   BUTTON RIPPLE EFFECT
=========================================================== */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.35);
    transform: translate(-50%, -50%) scale(0);
    animation: btnRipple 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes btnRipple {
    to {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

/* ===========================================================
   LIGHTBOX
=========================================================== */
.ka-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 30, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    transition: opacity 0.35s ease;
    padding: 1.5rem;
}
.ka-lightbox.open {
    opacity: 1;
}
.ka-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    object-fit: contain;
}
.ka-lightbox.open img {
    transform: scale(1);
}
.ka-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}
.ka-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.1) rotate(90deg);
}

/* ===========================================================
   GLOBAL ALERT TOAST
=========================================================== */
.ka-global-alert {
    position: fixed;
    top: 90px;
    right: 1.5rem;
    max-width: 380px;
    padding: 1rem 1.4rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-tooltip);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ka-global-alert.show {
    transform: translateX(0);
}
.ka-global-alert.ka-alert-success {
    background: linear-gradient(135deg, #1b4332, #2d6a4f);
}
.ka-global-alert.ka-alert-error {
    background: linear-gradient(135deg, #7c111e, #b5152b);
}
.ka-global-alert i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ===========================================================
   FIELD ERROR MESSAGE (form validation)
=========================================================== */
.field-error-msg {
    color: #c0392b;
    font-size: 0.82rem;
    margin-top: 0.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.form-control.error,
input.error,
select.error,
textarea.error {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1) !important;
}

/* ===========================================================
   SECTION TRANSITIONS (subtle bg shift on enter)
=========================================================== */
section {
    transition: background-color 0.6s ease;
}

/* ===========================================================
   SMOOTH SCROLLING OVERRIDE (reinforced via CSS)
=========================================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* ===========================================================
   STICKY SECTION DIVIDERS (decorative wave separators)
=========================================================== */
.section-wave-top::before,
.section-wave-bottom::after {
    content: '';
    display: block;
    height: 40px;
    background: inherit;
}

/* ===========================================================
   HOVER CARD 3D TILT (reinforced)
=========================================================== */
.feature-card,
.program-card,
.tcard,
.card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* ===========================================================
   SECTION IN-VIEW PULSE (subtle)
=========================================================== */
section.in-view .section-subtitle {
    animation: subtlePulse 2s ease-in-out 1;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.75; }
}

/* ===========================================================
   FOOTER LINK ANIMATIONS
=========================================================== */
.footer-section a {
    position: relative;
    display: inline-block;
}
.footer-section a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 1px;
    background: var(--teal-light);
    transition: width var(--transition-base);
}
.footer-section a:hover::after {
    width: 100%;
}

/* ===========================================================
   STATS STRIP ENTRANCE
=========================================================== */
.stats-strip .stat-item {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.stats-strip.stats-animated .stat-item {
    animation: statBounceIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.stats-strip.stats-animated .stat-item:nth-child(1) { animation-delay: 0s; }
.stats-strip.stats-animated .stat-item:nth-child(2) { animation-delay: 0.1s; }
.stats-strip.stats-animated .stat-item:nth-child(3) { animation-delay: 0.2s; }
.stats-strip.stats-animated .stat-item:nth-child(4) { animation-delay: 0.3s; }

@keyframes statBounceIn {
    0%   { opacity: 0; transform: translateY(20px) scale(0.95); }
    70%  { transform: translateY(-4px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===========================================================
   NAVBAR BRAND ICON GENTLE FLOAT
=========================================================== */
.brand-icon {
    animation: brandFloat 4s ease-in-out infinite;
}
@keyframes brandFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-3px); }
}

/* ===========================================================
   FEATURE SECTION GRID REVEAL (stagger via CSS nth-child)
=========================================================== */
.features-grid .feature-card:nth-child(1) { animation-delay: 0s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.08s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.16s; }
.features-grid .feature-card:nth-child(4) { animation-delay: 0.24s; }
.features-grid .feature-card:nth-child(5) { animation-delay: 0.32s; }
.features-grid .feature-card:nth-child(6) { animation-delay: 0.40s; }

/* ===========================================================
   PROGRAM CARDS IMAGE HOVER
=========================================================== */
.program-card-img-wrap {
    overflow: hidden;
}
.program-card-img-wrap img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.4s ease;
}
.program-card:hover .program-card-img-wrap img {
    transform: scale(1.07);
    filter: brightness(1.04) saturate(1.05);
}

/* ===========================================================
   PROGRAMS GRID – Force 2 columns (prevents 3/4-col auto-fit)
=========================================================== */
.programs-section .grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}
@media (max-width: 768px) {
    .programs-section .grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* ===========================================================
   SECTION HEADER ANIMATED UNDERLINE
   (only on sections that have entered viewport)
=========================================================== */
.in-view .section-title span {
    position: relative;
}
.in-view .section-title span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--amber));
    border-radius: 3px;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
    pointer-events: none;
}

/* ===========================================================
   MOBILE RESPONSIVE FIXES (no overlap, no clumsy layout)
=========================================================== */
@media (max-width: 768px) {
    /* Ensure no horizontal overflow handled by body scroll */

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
    }

    .cta-section {
        border-radius: 20px;
        margin: 0 0.5rem 0.5rem;
    }

    #backToTopBtn {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 44px;
        height: 44px;
    }

    .ka-global-alert {
        right: 1rem;
        left: 1rem;
        max-width: none;
        top: 80px;
    }

    /* Testimonial slider */
    .testimonial-slide {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .cta-perks {
        flex-direction: column;
        align-items: center;
    }
}

/* Inner-page AOS: allow AOS to animate normally.
   The JS initialises AOS with once:true — no CSS override needed. */

/* ===========================================================
   PREVIEW SPLIT CURTAIN LOADER
=========================================================== */
body.curtain-active {
    overflow: hidden !important;
}

/* Hide split curtains for logo-only preloader */
.curtain-loader .curtain-left,
.curtain-loader .curtain-right,
.curtain-loader .curtain-valance {
    display: none !important;
}

.curtain-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999999;
    display: flex;
    overflow: hidden;
}

.curtain-loader .curtain-left,
.curtain-loader .curtain-right {
    width: 50vw;
    height: 100vh;
    position: relative;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
    will-change: transform;
}

.curtain-loader .curtain-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 50vw;
    height: 100vh;
    background: repeating-linear-gradient(to right, #800a0a, #800a0a 15px, #9c1212 30px, #b01a1a 45px, #9c1212 60px, #800a0a 75px);
    border-right: 4px solid #D49A52;
    box-shadow: inset -10px 0 30px rgba(0, 0, 0, 0.5), 10px 0 30px rgba(0, 0, 0, 0.3);
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
    z-index: 20;
}

.curtain-loader .curtain-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100vh;
    background: repeating-linear-gradient(to right, #800a0a, #800a0a 15px, #9c1212 30px, #b01a1a 45px, #9c1212 60px, #800a0a 75px);
    border-left: 4px solid #D49A52;
    box-shadow: inset 10px 0 30px rgba(0, 0, 0, 0.5), -10px 0 30px rgba(0, 0, 0, 0.3);
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
    z-index: 20;
}

.curtain-loader .curtain-valance {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: repeating-linear-gradient(to right, #9c1212, #9c1212 20px, #c22121 40px, #9c1212 60px);
    border-bottom: 4px solid #D49A52;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 30;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

.curtain-loader .preloader-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle, #ffffff 0%, #f7f3ed 100%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
    will-change: opacity;
}

.curtain-loader .preloader-content {
    text-align: center;
    max-width: 90vw;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}

.curtain-loader .preloader-content .preloader-logo {
    width: 320px;
    height: 320px;
    margin: 0 auto 28px;
    background: #ffffff;
    border-radius: 36px;
    border: 5px solid var(--amber);
    box-shadow: var(--shadow-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.curtain-loader .preloader-content .preloader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}

.curtain-loader .preloader-content .preloader-quote {
    font-family: var(--font-display);
    font-size: 1.95rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    line-height: 1.35;
    text-shadow: 0 2px 4px rgba(23, 54, 82, 0.05);
}

.curtain-loader .preloader-content .preloader-subquote {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--teal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 10px;
}

/* Curtains Open State */
.curtain-loader.curtains-open .curtain-left {
    transform: translateX(-100%);
}

.curtain-loader.curtains-open .curtain-right {
    transform: translateX(100%);
}

.curtain-loader.curtains-open .curtain-valance {
    transform: translateY(-100%);
}

/* Logo Reveal State */
.curtain-loader.logo-reveal .preloader-content {
    opacity: 1;
    transform: scale(1);
}

/* Preloader Fade State */
.curtain-loader.preloader-fade {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .curtain-loader .preloader-content .preloader-logo {
        width: 260px;
        height: 260px;
        border-radius: 28px;
        border-width: 4px;
    }
    .curtain-loader .preloader-content .preloader-logo img {
        padding: 16px;
    }
    .curtain-loader .preloader-content .preloader-quote {
        font-size: 1.45rem;
    }
    .curtain-loader .preloader-content .preloader-subquote {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .curtain-loader .preloader-content .preloader-logo {
        width: 70vw;
        height: 70vw;
        border-radius: 24px;
    }
    .curtain-loader .preloader-content .preloader-quote {
        font-size: 1.25rem;
    }
}


