/* ==========================================================================
   SMA Global Darussalam Academy - Modern Master Stylesheet
   Theme: Official Brand Colors - Primary (#26316E, #FEDD72, #332C2B) & Secondary (#2553A2, #13ACE5, #FDD42E)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

:root {
    /* Color Palette - Primary: #26316E, #FEDD72, #332C2B | Secondary: #2553A2, #13ACE5, #FDD42E */
    --gda-primary: #26316E;         /* Primary Deep Navy */
    --gda-primary-dark: #161c40;    /* Deep Midnight Shadow */
    --gda-primary-light: #2553A2;   /* Secondary Royal Blue */
    --gda-primary-cyan: #13ACE5;    /* Secondary Bright Cyan */
    --gda-primary-soft: #edf3fb;    /* Crisp Ice Tint */
    --gda-navy: #26316E;            /* Primary Brand Navy */
    --gda-navy-dark: #161c40;       /* Deep Navy Dark */
    --gda-navy-primary: #26316E;    /* Primary Brand Navy */
    --gda-navy-royal: #2553A2;      /* Secondary Royal Blue */
    --gda-cyan: #13ACE5;            /* Secondary Bright Cyan */
    --gda-cyan-soft: #e8f7fd;       /* Soft Cyan Tint */
    --gda-gold: #FEDD72;            /* Primary Soft Gold / Yellow */
    --gda-gold-dark: #e5c455;       /* Amber Gold */
    --gda-gold-pastel: #FEDD72;     /* Soft Gold Tint */
    --gda-gold-vibrant: #FDD42E;    /* Vibrant Gold */
    --gda-gold-light: #fef9e7;      /* Soft Gold Sheen */
    --gda-yellow: #FEDD72;          /* Primary Yellow */
    --gda-yellow-vibrant: #FDD42E;  /* Secondary Vibrant Yellow */
    --gda-yellow-soft: #fef9e7;     /* Light Yellow Tint */
    --gda-white: #ffffff;
    --gda-light: #f8fafc;
    --gda-dark: #332C2B;            /* Primary Dark Warm Charcoal */
    --gda-charcoal: #332C2B;        /* Primary Charcoal */
    --gda-body: #332C2B;            /* Main Body Text Color */
    --gda-muted: #64748b;
    --gda-card-bg: #ffffff;
    --gda-border: #e2e8f0;
    --gda-border-light: rgba(226, 232, 240, 0.8);
    
    /* Apple Frosted Glass Tokens */
    --apple-glass-dark: rgba(22, 28, 64, 0.96);
    --apple-glass-light: rgba(255, 255, 255, 0.88);
    --apple-blur: saturate(180%) blur(20px);
    
    /* Legacy / Compatibility Variables */
    --gda-emerald: #26316E;
    --gda-emerald-dark: #161c40;
    --gda-emerald-light: #2553A2;
    --gda-emerald-soft: #edf3fb;
    
    /* Typography */
    --gda-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    --gda-font-heading: 'Playfair Display', Georgia, serif;
    
    /* Apple Diffusion Shadows */
    --shadow-sm: 0 2px 6px -1px rgba(38, 49, 110, 0.05), 0 1px 3px -1px rgba(51, 44, 43, 0.04);
    --shadow-md: 0 6px 18px -2px rgba(38, 49, 110, 0.08), 0 2px 6px -1px rgba(51, 44, 43, 0.04);
    --shadow-lg: 0 16px 36px -4px rgba(38, 49, 110, 0.12), 0 4px 12px -2px rgba(51, 44, 43, 0.06);
    --shadow-hover: 0 20px 40px -6px rgba(38, 49, 110, 0.16), 0 6px 16px -3px rgba(51, 44, 43, 0.08);
    --shadow-glow-gold: 0 6px 20px rgba(254, 221, 114, 0.45);
    --shadow-glow-navy: 0 8px 24px rgba(38, 49, 110, 0.35);
    --shadow-glow-cyan: 0 6px 20px rgba(19, 172, 229, 0.4);
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
html { scroll-behavior: smooth; }

body {
    font-family: var(--gda-font-main);
    color: var(--gda-body);
    background-color: #f8fafc;
    line-height: 1.65;
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--gda-dark);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

/* Global: remove underline from ALL links */
a, a:hover, a:focus, a:visited {
    text-decoration: none;
}

.heading-serif, .font-serif {
    font-family: var(--gda-font-heading);
}

/* Utility Colors */
.text-emerald, .text-navy-primary { color: var(--gda-primary) !important; }
.text-dark-emerald, .text-navy-dark { color: var(--gda-navy-dark) !important; }
.text-royal { color: var(--gda-navy-royal) !important; }
.text-cyan { color: var(--gda-cyan) !important; }
.text-gold, .text-yellow { color: var(--gda-gold) !important; }
.text-gold-vibrant { color: var(--gda-gold-vibrant) !important; }
.text-charcoal { color: var(--gda-dark) !important; }
.bg-emerald, .bg-navy-primary { background-color: var(--gda-primary) !important; }
.bg-emerald-dark, .bg-navy-dark { background-color: var(--gda-navy-dark) !important; }
.bg-emerald-soft, .bg-navy-soft { background-color: var(--gda-primary-soft) !important; }
.bg-royal { background-color: var(--gda-navy-royal) !important; }
.bg-cyan { background-color: var(--gda-cyan) !important; }
.bg-cyan-soft { background-color: var(--gda-cyan-soft) !important; }
.bg-soft { background-color: #f4f8fc !important; }
.bg-gold, .bg-yellow { background-color: var(--gda-gold) !important; }
.bg-gold-subtle, .bg-yellow-subtle { background-color: var(--gda-gold-light) !important; }
.border-emerald { border-color: var(--gda-primary) !important; }
.border-royal { border-color: var(--gda-navy-royal) !important; }
.border-cyan { border-color: var(--gda-cyan) !important; }
.border-gold, .border-yellow { border-color: var(--gda-gold) !important; }
.smaller { font-size: 0.82rem; }
.letter-spacing-1 { letter-spacing: 1px; }

/* ==========================================================================
   APPLE / IPHONE INSPIRED BUTTONS
   ========================================================================== */
.btn-gda-primary {
    background: linear-gradient(180deg, #2553A2 0%, #26316E 100%);
    color: #ffffff !important;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 980px;
    padding: 0.72rem 1.8rem;
    font-size: 0.94rem;
    letter-spacing: -0.01em;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: 0 4px 14px rgba(38, 49, 110, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-gda-primary:hover {
    background: linear-gradient(180deg, #2f65be 0%, #1c2452 100%);
    transform: scale(1.02) translateY(-2px);
    box-shadow: var(--shadow-glow-navy);
    color: #ffffff !important;
}

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

.btn-gda-gold, .btn-gda-yellow {
    background: linear-gradient(180deg, #fff3b8 0%, #FEDD72 55%, #e5c455 100%);
    color: #332C2B !important;
    font-weight: 800;
    border: none;
    border-radius: 980px;
    padding: 0.75rem 1.9rem;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: 0 4px 16px rgba(254, 221, 114, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-gda-gold:hover, .btn-gda-yellow:hover {
    background: linear-gradient(180deg, #ffffff 0%, #FEDD72 45%, #e5c455 100%);
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 221, 114, 0.55);
    color: #26316E !important;
}

.btn-gda-gold:active, .btn-gda-yellow:active {
    transform: scale(0.98);
}

.btn-gda-cyan {
    background: linear-gradient(180deg, #32beef 0%, #13ACE5 100%);
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    border-radius: 980px;
    padding: 0.72rem 1.8rem;
    font-size: 0.94rem;
    letter-spacing: -0.01em;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: 0 4px 14px rgba(19, 172, 229, 0.35);
}

.btn-gda-cyan:hover {
    background: linear-gradient(180deg, #4ed0fb 0%, #0fa0d6 100%);
    transform: scale(1.02) translateY(-2px);
    box-shadow: var(--shadow-glow-cyan);
    color: #ffffff !important;
}

.btn-gda-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff !important;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 980px;
    padding: 0.72rem 1.8rem;
    font-size: 0.94rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.btn-gda-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    color: #ffffff !important;
    transform: scale(1.02) translateY(-2px);
}

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

/* ==========================================================================
   NAVIGATION BAR (APPLE FROSTED GLASS & SLIM SHEEN)
   ========================================================================== */
.main-navbar {
    background-color: var(--apple-glass-dark);
    backdrop-filter: var(--apple-blur);
    -webkit-backdrop-filter: var(--apple-blur);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 0.75rem 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-logo {
    height: 46px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand-text .brand-title {
    font-family: var(--gda-font-main);
    font-size: 0.96rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.4px;
    line-height: 1.2;
}

.brand-text .brand-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gda-gold);
    letter-spacing: 0.3px;
}

.main-navbar .navbar-nav > .nav-item > .nav-link,
.main-navbar .navbar-nav > .nav-item > .nav-link.dropdown-toggle,
.main-navbar .navbar-nav > .nav-item > .nav-link:visited {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff !important;
    padding: 0.5rem 0.95rem !important;
    border-radius: 980px;
    transition: var(--transition-fast);
    letter-spacing: -0.01em;
    opacity: 0.95;
}

.main-navbar .navbar-nav > .nav-item > .nav-link:hover,
.main-navbar .navbar-nav > .nav-item > .nav-link.dropdown-toggle:hover,
.main-navbar .navbar-nav > .nav-item.dropdown.show > .nav-link {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    opacity: 1;
}

.main-navbar .navbar-nav > .nav-item > .nav-link.active,
.main-navbar .navbar-nav > .nav-item.dropdown.show > .nav-link.active,
.main-navbar .navbar-nav > .nav-item.dropdown:hover > .nav-link.active {
    color: var(--gda-gold) !important;
    background-color: rgba(254, 221, 114, 0.16) !important;
    font-weight: 700;
    opacity: 1;
}

/* Dropdown Menu Styling (Apple Glassmorphism) */
.navbar-nav .dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 0.6rem;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    animation: dropdownFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-navbar .dropdown-menu,
.main-navbar .dropdown-menu * {
    color: #1e293b;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.main-navbar .dropdown-menu .dropdown-item,
.main-navbar .dropdown-menu .dropdown-item.dropdown-toggle,
.main-navbar .dropdown-submenu > .dropdown-item,
.main-navbar .dropdown-submenu > .dropdown-menu .dropdown-item {
    font-size: 0.88rem;
    font-weight: 500;
    color: #1e293b !important;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    transition: var(--transition-fast);
    background: transparent;
}

.main-navbar .dropdown-menu .dropdown-item:hover,
.main-navbar .dropdown-menu .dropdown-item:focus,
.main-navbar .dropdown-menu .dropdown-item.active,
.main-navbar .dropdown-submenu:hover > .dropdown-item,
.main-navbar .dropdown-submenu > .dropdown-menu .dropdown-item:hover,
.main-navbar .dropdown-submenu > .dropdown-menu .dropdown-item.active {
    background-color: #f1f5f9 !important;
    color: var(--gda-navy) !important;
    font-weight: 700 !important;
    transform: translateX(2px);
}

/* Multi-level Submenu (Desktop) */
@media (min-width: 992px) {
    .dropdown-submenu {
        position: relative;
    }
    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -6px;
        margin-left: 2px;
        display: none;
    }
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

/* Multi-level Submenu (Mobile) */
@media (max-width: 991.98px) {
    .main-navbar .navbar-collapse {
        background-color: #161c40;
        border-radius: 16px;
        padding: 1rem;
        margin-top: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    }
    
    .main-navbar .navbar-nav .dropdown-menu {
        background-color: #ffffff !important;
        border: none !important;
        border-radius: 12px !important;
        padding: 0.5rem !important;
        margin: 0.4rem 0 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    }

    .dropdown-submenu {
        position: static;
    }
    .dropdown-submenu > .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 3px solid var(--gda-gold) !important;
        border-radius: 0 8px 8px 0 !important;
        margin-left: 0.75rem !important;
        margin-right: 0.25rem !important;
        padding: 0.25rem 0.5rem !important;
        background: #f1f5f9 !important;
        display: none;
    }
    .dropdown-submenu > .dropdown-menu.show {
        display: block !important;
    }
    
    .main-navbar .dropdown-submenu > .dropdown-menu .dropdown-item {
        color: #334155 !important;
        font-size: 0.84rem;
        padding: 0.45rem 0.8rem;
    }
    
    .main-navbar .dropdown-submenu > .dropdown-menu .dropdown-item:hover,
    .main-navbar .dropdown-submenu > .dropdown-menu .dropdown-item.active {
        color: var(--gda-navy) !important;
        background-color: #e2e8f0 !important;
        font-weight: 700;
    }

    .dropdown-submenu > .dropdown-item.dropdown-toggle::after {
        float: right;
        margin-top: 8px;
        transition: transform 0.2s ease;
    }
}

/* Ensure all text/headings inside dark and navy containers are crisp white */
.bg-navy-dark,
.bg-navy,
.bg-navy-primary,
.bg-emerald-dark,
.main-navbar,
.main-footer,
.hero-overlay,
.hero-content,
[style*="background: #26316E"],
[style*="background:#26316E"],
[style*="background: #161c40"],
[style*="background:#161c40"],
[style*="background: #2553A2"],
[style*="background:#2553A2"],
[style*="background: #004da5"],
[style*="background:#004da5"],
[style*="background: #003778"],
[style*="background:#003778"],
[style*="background: #0d2444"],
[style*="background:#0d2444"],
[style*="background: #091a32"],
[style*="background:#091a32"],
[style*="background: #07172e"],
[style*="background-color: #26316E"],
[style*="background-color: #161c40"],
[style*="background-color: #2553A2"],
[style*="background-color: #004da5"],
[style*="background-color: #003778"],
[style*="background-color: #0d2444"],
[style*="background-color: #091a32"],
[style*="background-color: #07172e"] {
    color: #ffffff;
}

.bg-navy-dark h1, .bg-navy-dark h2, .bg-navy-dark h3, .bg-navy-dark h4, .bg-navy-dark h5, .bg-navy-dark h6,
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4, .bg-navy h5, .bg-navy h6,
.bg-emerald-dark h1, .bg-emerald-dark h2, .bg-emerald-dark h3, .bg-emerald-dark h4, .bg-emerald-dark h5, .bg-emerald-dark h6,
.main-footer h1, .main-footer h2, .main-footer h3, .main-footer h4, .main-footer h5, .main-footer h6,
.hero-content h1, .hero-content h2, .hero-content h3, .hero-content h4, .hero-content h5, .hero-content h6 {
    color: #ffffff !important;
}

.bg-navy-dark p,
.bg-navy p,
.bg-emerald-dark p,
.main-footer p {
    color: rgba(255, 255, 255, 0.9);
}

.bg-navy-dark .text-muted,
.bg-navy .text-muted,
.bg-emerald-dark .text-muted,
.main-footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Language Switcher Pill */
.lang-switcher-pill {
    display: inline-flex;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 3px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
    padding: 3px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    transition: var(--transition-fast);
}

.lang-btn.active {
    background-color: var(--gda-gold);
    color: #332C2B;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   JUMBOTRON SLIDER (APPLE / IPHONE INSPIRED HERO)
   ========================================================================== */
.hero-slider-section {
    position: relative;
    background-color: #121833;
    overflow: hidden;
}

.hero-carousel-item {
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 4.5rem 0;
}

/* Fix for overlapping slides by correctly applying flex only when active */
.hero-carousel-item.active,
.carousel-item-next.hero-carousel-item,
.carousel-item-prev.hero-carousel-item {
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 75% 35%, rgba(37, 83, 162, 0.35) 0%, rgba(22, 28, 64, 0.95) 85%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(254, 221, 114, 0.14);
    border: 1px solid rgba(254, 221, 114, 0.4);
    color: var(--gda-gold);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.45rem 1.25rem;
    border-radius: 980px;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-title {
    font-family: var(--gda-font-heading);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.35rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 680px;
    margin-bottom: 2.2rem;
    line-height: 1.65;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* YouTube Embedded Slide Container (Apple iPad Frame Style) */
.youtube-slide-container {
    position: relative;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15);
    background: #000000;
    transition: var(--transition-smooth);
}

.youtube-slide-container:hover {
    transform: scale(1.01);
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(254, 221, 114, 0.35);
}

.youtube-slide-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* YouTube frameless variant (side-by-side layout) */
.youtube-slide-container[style*="border:none"],
.youtube-slide-container[style*="border: none"] {
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.youtube-slide-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(22, 28, 64, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 1.5rem;
    opacity: 0.85;
    transition: var(--transition-fast);
    z-index: 5;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--gda-primary);
    opacity: 1;
    border-color: var(--gda-gold);
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    transition: var(--transition-fast);
}

.carousel-indicators .active {
    width: 28px;
    border-radius: 10px;
    background-color: var(--gda-gold);
}

/* ==========================================================================
   SECTIONS & MODERN FLAT CARDS
   ========================================================================== */
.section-padding {
    padding: 4.5rem 0;
}

.section-tag {
    display: inline-block;
    color: var(--gda-primary);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.5rem;
    background: var(--gda-primary-soft);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(38, 49, 110, 0.12);
}

.section-title {
    font-family: var(--gda-font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gda-navy);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--gda-muted);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto 2.5rem auto;
}

/* Modern Flat Feature Cards (Highlights) */
.feature-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.75rem;
    border: 1px solid var(--gda-border);
    transition: var(--transition-fast);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--gda-gold);
    box-shadow: var(--shadow-hover);
}

.feature-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--gda-primary);
    color: var(--gda-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

/* Modern Flat News Card */
.news-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--gda-border);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: var(--shadow-hover);
}

.news-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: var(--gda-navy);
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* ==========================================================================
   FOOTER (MODERN FLAT NAVY & YELLOW)
   ========================================================================== */
.main-footer {
    background-color: var(--gda-primary-dark);
    color: #ffffff;
    padding-top: 3.5rem;
    border-top: 4px solid var(--gda-gold);
}

.footer-take-action {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.take-action-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-fast);
    color: #ffffff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.take-action-card:hover {
    background: var(--gda-primary);
    border-color: var(--gda-gold);
    transform: translateY(-3px);
    color: #ffffff;
}

.take-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gda-gold);
    color: var(--gda-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.social-icon-btn:hover {
    background: var(--gda-gold);
    color: #161c40;
    border-color: var(--gda-gold);
    transform: translateY(-2px);
}

.footer-bottom {
    background: #0f132b;
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   FLIPBOOK & VIRTUAL TOUR (ADMISSIONS)
   ========================================================================== */
.flipbook-container {
    background: #161c40;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    padding: 2rem 1rem;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flipbook-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.flipbook-page {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    overflow: hidden;
}

.flipbook-page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flipbook-toolbar {
    background: rgba(38, 49, 110, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(254, 221, 114, 0.3);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 10;
}

.flip-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.flip-btn:hover {
    background: var(--gda-gold);
    color: #161c40;
}

/* Virtual Tour Scene Thumbnails */
.tour-scene-thumb {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid var(--gda-border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    user-select: none;
}

.tour-scene-thumb:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateX(3px);
}

.tour-scene-thumb.active {
    background: #eff6ff !important;
    border-color: var(--gda-primary) !important;
    border-left: 4px solid var(--gda-gold) !important;
}

.tour-scene-thumb .feature-icon-box {
    width: 58px;
    height: 58px;
    background-color: var(--gda-primary-soft);
    color: var(--gda-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon-box {
    background-color: var(--gda-navy);
    color: var(--gda-gold);
    transform: scale(1.05);
}

/* Program Unggulan Clean Navy Icons & Navy+Yellow Badges */
.highlight-icon-clean {
    font-size: 2.5rem;
    color: var(--gda-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-icon-clean {
    transform: scale(1.12);
    color: var(--gda-primary);
}

.highlight-badge {
    background-color: var(--gda-navy) !important;
    color: var(--gda-gold) !important;
    border: 1px solid var(--gda-gold) !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(38, 49, 110, 0.25);
}

.tour-scene-thumb .scene-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gda-primary-soft);
    color: var(--gda-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.tour-scene-thumb.active .scene-icon-box {
    background: var(--gda-primary);
    color: var(--gda-gold);
}

/* Panorama 360 Container */
#panorama-container {
    width: 100%;
    height: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* Calendar Card */
.visit-calendar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--gda-border);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.calendar-day-head {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--gda-muted);
    padding: 0.4rem 0;
    text-transform: uppercase;
}

.calendar-day-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: var(--transition-fast);
    position: relative;
    color: var(--gda-navy);
    background: #ffffff;
}

/* Available Date: Green */
.calendar-day-cell.status-available {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

.calendar-day-cell.status-available:hover {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    transform: scale(1.04);
}

/* Full Date: Red */
.calendar-day-cell.status-full {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

/* Closed Date: Grey */
.calendar-day-cell.status-closed {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
}

/* Selected Date: Text is dark and high contrast, NOT white */
.calendar-day-cell.selected {
    background: #86efac !important;
    color: #161c40 !important;
    font-weight: 800 !important;
    border: 2px solid #161c40 !important;
    box-shadow: 0 4px 14px rgba(22, 101, 52, 0.4) !important;
}

.calendar-day-cell.status-available.selected {
    background: #4ade80 !important;
    color: #161c40 !important;
    font-weight: 800 !important;
    border: 2px solid #161c40 !important;
    box-shadow: 0 4px 14px rgba(22, 101, 52, 0.45) !important;
}

.calendar-day-cell.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: transparent !important;
    border-color: transparent !important;
}

.calendar-day-cell .slot-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-top: 3px;
    display: inline-block;
}

.slot-dot.available { background: #22c55e !important; box-shadow: 0 0 4px rgba(34, 197, 94, 0.6); }
.slot-dot.full { background: #ef4444 !important; box-shadow: 0 0 4px rgba(239, 68, 68, 0.6); }
.slot-dot.closed { background: #94a3b8 !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .hero-carousel-item { min-height: 480px; }
}

/* ==========================================================================
   LEGACY ALIASES - Compatibility for Admission Views
   ========================================================================== */

/* Colors from old system */
.text-emerald { color: var(--gda-primary) !important; }
.text-dark-emerald { color: var(--gda-navy) !important; }
.bg-emerald { background-color: var(--gda-primary) !important; }
.bg-navy-dark { background-color: var(--gda-navy) !important; }
.bg-emerald-dark { background-color: var(--gda-navy) !important; }
.border-emerald { border-color: var(--gda-primary) !important; }

/* Card custom (legacy admission card) */
.card-custom {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--gda-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

/* Form section title (used in boarding trial, open house forms) */
.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gda-navy);
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gda-gold);
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
}

/* Take Action row in footer */
.take-action-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3.5rem;
}

.take-action-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: var(--transition-smooth);
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.take-action-btn:hover {
    background: linear-gradient(135deg, var(--gda-primary) 0%, var(--gda-navy) 100%);
    border-color: var(--gda-gold);
    transform: translateY(-4px);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Floating WhatsApp button */
.floating-wa-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.floating-wa-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
    color: #ffffff;
}

/* Transition hover for admission cards */
.transition-hover {
    transition: var(--transition-smooth);
}

.transition-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover) !important;
}

/* ==========================================================================
   PARALLAX SECTIONS & KEYBOARD SECTION GLIDE
   ========================================================================== */
.home-section {
    position: relative;
    scroll-margin-top: 72px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Parallax subtle background movement */
.parallax-bg-accent {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* ==========================================================================
   Article Content Body (Rich WYSIWYG Output Styling)
   ========================================================================== */
.content-body {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #334155;
}

.content-body p {
    margin-bottom: 1.25rem;
}

.content-body h1, .content-body h2, .content-body h3, .content-body h4, .content-body h5, .content-body h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--gda-navy, #161c40);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.35;
}

.content-body h1 { font-size: 2.2rem; }
.content-body h2 { font-size: 1.85rem; }
.content-body h3 { font-size: 1.5rem; }
.content-body h4 { font-size: 1.25rem; }

.content-body ul, .content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

.content-body blockquote {
    border-left: 4px solid var(--gda-primary, #2553A2);
    padding: 1rem 1.5rem;
    margin: 1.75rem 0;
    background: #f8fafc;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #1e293b;
}

.content-body table {
    width: 100%;
    margin: 1.75rem 0;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.content-body table th, .content-body table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
}

.content-body table th {
    background-color: #f1f5f9;
    font-weight: 700;
    color: var(--gda-navy, #161c40);
}

.content-body table tr:nth-child(even) {
    background-color: #f8fafc;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.content-body iframe {
    max-width: 100%;
    border-radius: 12px;
    margin: 1rem 0;
}

/* ==========================================================================
   ELEGANT PAGE HERO / HEAD OF TITLE BANNER (SMOOTH, MODERN & LUXURIOUS)
   ========================================================================== */
.page-hero-banner,
.page-title-banner,
.bg-emerald-dark {
    position: relative;
    background: 
        radial-gradient(ellipse 90% 70% at 88% -15%, rgba(37, 83, 162, 0.45) 0%, transparent 65%),
        radial-gradient(ellipse 65% 55% at 5% 115%, rgba(254, 221, 114, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 45% 45%, rgba(19, 172, 229, 0.06) 0%, transparent 70%),
        linear-gradient(135deg, #101533 0%, #151b40 40%, #1b2353 75%, #222c66 100%) !important;
    color: #ffffff !important;
    padding-top: 3.75rem !important;
    padding-bottom: 4rem !important;
    border-bottom: 1px solid rgba(254, 221, 114, 0.16) !important;
    overflow: hidden;
}

/* Subtle Geometric Mesh Texture Overlay */
.page-hero-banner::before,
.page-title-banner::before,
.bg-emerald-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0);
    background-size: 26px 26px;
    pointer-events: none;
    opacity: 0.85;
    z-index: 1;
}

/* Soft Ambient Light Glow */
.page-hero-banner::after,
.page-title-banner::after,
.bg-emerald-dark::after {
    content: "";
    position: absolute;
    top: -60px;
    right: 6%;
    width: 380px;
    height: 280px;
    background: radial-gradient(circle, rgba(37, 83, 162, 0.28) 0%, rgba(254, 221, 114, 0.06) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(55px);
    pointer-events: none;
    z-index: 1;
}

/* Ensure Inner Container is above pseudo-elements */
.page-hero-banner > .container,
.page-title-banner > .container,
.bg-emerald-dark > .container {
    position: relative;
    z-index: 2;
}

/* Enhanced Page Hero Typography */
.page-hero-banner h1,
.page-title-banner h1,
.bg-emerald-dark h1 {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    font-size: clamp(2.1rem, 3.8vw, 2.85rem) !important;
    margin-bottom: 0.85rem !important;
}

.page-hero-banner p.lead,
.page-title-banner p.lead,
.bg-emerald-dark p.lead,
.bg-emerald-dark .text-white-50 {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 1.06rem !important;
    line-height: 1.85 !important;
    max-width: 860px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* Glassmorphism Category Pill Badge */
.page-hero-banner .badge,
.page-title-banner .badge,
.bg-emerald-dark .badge {
    background: rgba(254, 221, 114, 0.14) !important;
    color: #FEDD72 !important;
    border: 1px solid rgba(254, 221, 114, 0.35) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.45rem 1.15rem !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


