/**
 * Karla Dance of School - Modern Stylesheet
 * Location: Airakuzhi, Kollam, Kerala
 * Palette: Royal Temple Maroon, Warm Gold, Ivory, Velvet Charcoal
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Manjari:wght@400;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #800020;         /* Deep Temple Maroon */
    --primary-dark: #4A0210;    /* Dark Maroon */
    --primary-light: #A52A2A;   /* Light Crimson */
    --gold: #D4AF37;            /* Temple Gold */
    --gold-light: #F9E79F;      /* Soft Gold */
    --gold-dark: #B7950B;       /* Antique Bronze Gold */
    --gold-glow: rgba(212, 175, 55, 0.25);
    
    --bg-main: #0E090B;         /* Regal Obsidian */
    --bg-surface: #181114;      /* Deep Wine Slate */
    --bg-surface-elevated: #241A1E;
    --bg-card: rgba(36, 26, 30, 0.85);
    
    --text-primary: #F9F6F0;    /* Silk Ivory */
    --text-secondary: #D1C7BD;  /* Soft Warm Gray */
    --text-muted: #9C8E87;      /* Muted Sand */
    --border-color: rgba(212, 175, 55, 0.2);
    --border-highlight: rgba(212, 175, 55, 0.5);

    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #06B6D4;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    --font-ml: 'Manjari', 'Outfit', sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 9999px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-gold: 0 10px 25px rgba(212, 175, 55, 0.2);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Basics */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Malayalam font preference */
body.lang-ml, .lang-ml-text {
    font-family: var(--font-ml);
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Top Announcement Bar */
.top-announcement {
    background: linear-gradient(90deg, #4A0210 0%, #800020 50%, #4A0210 100%);
    color: #FFF;
    padding: 7px 16px;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.announcement-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.top-contact-links {
    display: flex;
    gap: 16px;
    align-items: center;
}
.top-link {
    color: var(--gold-light);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.top-link:hover {
    color: #FFF;
}

/* Header & Navigation */
.site-header {
    background: rgba(24, 17, 20, 0.95);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.school-logo-emblem {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.school-logo-emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.45));
}

.brand-details h1 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFF;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-details span {
    font-size: 0.78rem;
    color: var(--gold);
    display: block;
    letter-spacing: 0.3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 4px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language switch button */
.lang-switch-btn {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--border-color);
    color: var(--gold-light);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.lang-switch-btn:hover {
    background: var(--gold);
    color: var(--primary-dark);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.btn-login {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 500;
}
.btn-login:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.6rem;
    cursor: pointer;
}

/* ============================================================
   Mobile Sidebar Navigation Drawer System
   ============================================================ */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    background: #140D10;
    border-left: 1px solid var(--border-color);
    box-shadow: -12px 0 45px rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

/* Open states */
.mobile-sidebar-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}
.mobile-sidebar.active {
    transform: translateX(0) !important;
}
body.drawer-open {
    overflow: hidden !important;
    touch-action: none;
}

/* Sidebar Header */
.mobile-sidebar-header {
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(24, 17, 20, 0.95);
}

.mobile-sidebar-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}
.mobile-sidebar-close:hover, .mobile-sidebar-close:active {
    background: var(--gold);
    color: var(--primary-dark);
    border-color: var(--gold);
}

/* Sidebar Body & Scroll Area */
.mobile-sidebar-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.sidebar-nav-link:hover, .sidebar-nav-link.active {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    border-color: var(--border-highlight);
    padding-left: 18px;
}

.sidebar-nav-icon {
    font-size: 1.15rem;
    width: 22px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

/* Sub-menu inside Sidebar */
.sidebar-sub-menu {
    list-style: none;
    margin: 2px 0 6px 14px;
    padding-left: 14px;
    border-left: 2px solid rgba(212, 175, 55, 0.25);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-sub-link {
    display: block;
    padding: 7px 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: var(--transition);
}
.sidebar-sub-link:hover {
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.08);
}

/* Sidebar Auth & Portal */
.mobile-sidebar-auth {
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

/* Sidebar Footer */
.mobile-sidebar-footer {
    padding: 14px 18px 18px;
    border-top: 1px solid var(--border-color);
    background: rgba(14, 9, 11, 0.95);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gold-light);
    font-weight: 500;
}
.sidebar-contact-item:hover {
    color: #FFF;
}

/* Hide on desktop by default */
@media (min-width: 861px) {
    .mobile-sidebar-overlay,
    .mobile-sidebar {
        display: none !important;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #B7950B 100%);
    color: #1A0408;
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.4);
    color: #000;
}

.btn-secondary {
    background: rgba(128, 0, 32, 0.7);
    color: #FFF;
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: #800020;
    border-color: var(--gold);
    color: #FFF;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}
.btn-outline:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #FFF;
    border-color: var(--gold-light);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 90px 20px 80px;
    background: #0E090B;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    opacity: 0.58;
    filter: saturate(1.2) brightness(0.9);
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(14, 9, 11, 0.5) 0%, rgba(14, 9, 11, 0.78) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-ornament {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.hero-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-gold {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-light);
    border: 1px solid var(--border-color);
}

.badge-maroon {
    background: rgba(128, 0, 32, 0.4);
    color: #FFB3BA;
    border: 1px solid rgba(128, 0, 32, 0.6);
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.18;
    color: #FFF;
    margin-bottom: 18px;
    font-weight: 700;
}

.hero-headline span {
    background: linear-gradient(90deg, #FFF 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subhead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 620px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-trust-row {
    display: flex;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.trust-item h4 {
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 700;
}
.trust-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Hero Visual Showcase */
.hero-visual-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-image-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: #241A1E;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-frame svg {
    width: 100%;
    height: 100%;
}

.hero-overlay-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(14, 9, 11, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-overlay-badge .icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* ============================================================
   School Announcements & Notice Board Component
   ============================================================ */
.announcements-section {
    background: linear-gradient(180deg, rgba(30, 16, 22, 0.95) 0%, rgba(14, 9, 11, 0.98) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 28px 20px;
    position: relative;
}

.announcements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.announcements-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--border-highlight);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}

.announcements-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.announcements-icon {
    font-size: 1.1rem;
}

.announcements-title {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.announcements-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.announcement-card {
    background: rgba(24, 17, 20, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition);
}

.announcement-card.priority-high {
    border-left-color: var(--primary-light);
    background: linear-gradient(135deg, rgba(74, 2, 16, 0.4) 0%, rgba(24, 17, 20, 0.85) 100%);
}

.announcement-card:hover {
    border-color: var(--gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.announcement-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.announcement-card-title-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
}

.announcement-card-icon {
    font-size: 1.1rem;
    line-height: 1.3;
}

.announcement-card-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: #FFF;
    margin: 0;
    line-height: 1.4;
}

.announcement-card-body {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.announcement-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    margin-top: 4px;
}

.announcement-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Mobile Responsiveness for Announcements */
@media (max-width: 640px) {
    .announcements-section {
        padding: 20px 14px;
    }
    .announcements-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .announcement-card {
        padding: 14px 14px;
    }
    .announcements-header {
        margin-bottom: 14px;
    }
}

/* Feature Grid */
.features-section {
    padding: 80px 20px;
    background: var(--bg-surface);
}

.section-container {
    max-width: 1240px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 54px;
}

.section-tag {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    color: #FFF;
    margin-bottom: 14px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--gold);
}

.feature-card h3 {
    font-size: 1.2rem;
    color: #FFF;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Packages Section */
.packages-section {
    padding: 85px 20px;
    background: var(--bg-main);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
}

.package-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(212, 175, 55, 0.15);
}

.package-card.highlight {
    border: 2px solid var(--gold);
    background: linear-gradient(180deg, rgba(74, 2, 16, 0.5) 0%, rgba(36, 26, 30, 0.95) 100%);
}

.package-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.package-code-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
    border: 1px solid var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 12px;
}

.package-title {
    font-size: 1.45rem;
    color: #FFF;
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.package-title-ml {
    font-size: 1.05rem;
    color: var(--gold-light);
    font-weight: 500;
}

.package-desc {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ============================================================
   Package Card Metadata Box (Mobile-First Polish)
   ============================================================ */
.package-meta {
    background: rgba(14, 9, 11, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.meta-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-block:not(:last-child) {
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.15);
}

.meta-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-icon {
    font-size: 1rem;
    line-height: 1;
}

.meta-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gold-light);
    font-family: var(--font-heading);
}

.meta-timing-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timing-badge {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: #FFF;
    font-weight: 500;
    line-height: 1.45;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 7px 10px;
    border-radius: 6px;
}

.timing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    margin-top: 6px;
    flex-shrink: 0;
}

.meta-fee-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-fee-value {
    color: var(--gold);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Fallback legacy classes for other templates if any */
.meta-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.88rem;
    padding: 6px 0;
}
.meta-row:not(:last-child) {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.meta-label {
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.meta-value {
    color: #FFF;
    font-weight: 500;
}
.meta-value.fee-highlight {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
}

/* Form Styles */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-control, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(14, 9, 11, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #FFF;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
    background: rgba(24, 17, 20, 0.95);
}

.form-textarea {
    min-height: 110px;
    resize: vertical;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Flash Alerts */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
}
.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: #A7F3D0;
}
.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: #FECACA;
}
.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--warning);
    color: #FDE68A;
}

/* Gallery Section */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--gold);
    color: #1A0408;
    font-weight: 600;
    border-color: var(--gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.gallery-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}
.gallery-item:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: var(--shadow-soft);
}
.gallery-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #241A1E;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-thumb img {
    transform: scale(1.05);
}
.gallery-caption {
    padding: 14px 16px;
}
.gallery-caption h4 {
    color: #FFF;
    font-size: 1rem;
    margin-bottom: 4px;
}
.gallery-caption p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Modal Lightbox */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    padding: 24px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.modal-close:hover {
    color: #FFF;
}

/* Footer */
.site-footer {
    background: #090507;
    border-top: 1px solid var(--border-color);
    padding: 60px 20px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.contact-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    line-height: 1.5;
}
.contact-item .contact-label {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}
.contact-item .contact-val {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-item a.contact-val:hover {
    color: var(--gold);
}

.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* Package Detailed Card for Curriculum Breakdown */
.package-detailed-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    background: var(--bg-card);
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 36px;
    align-items: start;
    transition: var(--transition);
}
.package-detail-title {
    font-family: var(--font-heading);
    color: #FFF;
    font-size: 2rem;
    margin-bottom: 6px;
    line-height: 1.25;
}
.package-card-sidebar {
    background: #181114;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Mobile Table Hint */
.mobile-table-hint {
    display: none;
    background: rgba(212, 175, 55, 0.08);
    border-left: 3px solid var(--gold);
    padding: 9px 14px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: var(--gold-light);
    border-radius: 4px;
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
    display: none;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--border-color);
    color: var(--gold);
    font-size: 1.5rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    line-height: 1;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.mobile-nav-toggle:hover {
    background: var(--gold);
    color: var(--primary-dark);
}

/* Mobile Sticky Bottom Quick Action Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 12, 15, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    z-index: 990;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
}
.mobile-bar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    text-decoration: none;
    flex: 1;
    padding: 6px 4px;
    border-radius: 8px;
    transition: var(--transition);
    min-height: 48px;
}
.mobile-bar-btn .btn-icon {
    font-size: 1.25rem;
    line-height: 1;
}
.mobile-bar-btn:active, .mobile-bar-btn:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}
.mobile-bar-btn.btn-whatsapp:active, .mobile-bar-btn.btn-whatsapp:hover {
    color: #25D366;
}
.mobile-bar-btn.btn-apply {
    color: var(--gold-light);
    font-weight: 700;
}

/* =========================================================
   Comprehensive Responsive System (Mobile-First Polish)
   ========================================================= */

/* Tablets & Small Laptops (<= 992px) */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    .hero-headline {
        font-size: 2.3rem;
    }
    .hero-badges, .hero-cta-group {
        justify-content: center;
    }
    .hero-subhead {
        margin-left: auto;
        margin-right: auto;
    }
    /* Hide the bulky desktop card on mobile/tablet so ambient video shines */
    .hero-visual-card {
        display: none !important;
    }
    /* Sleek 3-column stats bar on mobile/tablet */
    .hero-trust-row {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 440px !important;
        margin: 20px auto 0 !important;
        padding: 12px 6px !important;
        background: rgba(18, 11, 14, 0.72) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(212, 175, 55, 0.22) !important;
        border-radius: 12px !important;
    }
    .trust-item {
        text-align: center !important;
        padding: 4px 6px !important;
    }
    .trust-item:not(:last-child) {
        border-right: 1px solid rgba(212, 175, 55, 0.2) !important;
    }
    .trust-item h4 {
        font-size: 1.22rem !important;
        color: var(--gold) !important;
        margin: 0 0 2px 0 !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
    }
    .trust-item p {
        font-size: 0.72rem !important;
        color: var(--text-secondary) !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Tablets & Large Phones (<= 860px) */
@media (max-width: 860px) {
    .package-detailed-card {
        grid-template-columns: 1fr;
        padding: 24px 18px;
        gap: 24px;
    }
    .package-card-sidebar {
        padding: 20px 16px;
        height: auto;
    }
    .package-detail-title {
        font-size: 1.6rem;
    }
}

/* Smartphones & Portrait Tablets (<= 768px) */
@media (max-width: 768px) {
    body {
        padding-bottom: 72px; /* Leave room for mobile sticky bar */
    }

    /* Top Announcement Bar */
    .top-announcement {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .top-contact-links {
        gap: 12px;
        font-size: 0.78rem;
    }

    /* Header & Navigation */
    .nav-container {
        padding: 10px 16px;
    }
    .mobile-nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 8px;
        background: rgba(212, 175, 55, 0.1);
        border: 1px solid var(--border-color);
        color: var(--gold);
        font-size: 1.4rem;
        cursor: pointer;
        transition: var(--transition);
    }
    .mobile-nav-toggle:hover {
        background: var(--gold);
        color: var(--primary-dark);
    }
    .nav-menu,
    .site-header .nav-menu,
    .nav-actions,
    .site-header .nav-actions {
        display: none !important;
    }

    /* Package Quick Anchors Horizontal Scroll on Mobile */
    .package-quick-anchors {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px !important;
        margin-bottom: 30px !important;
        scrollbar-width: none;
    }
    .package-quick-anchors::-webkit-scrollbar {
        display: none;
    }
    .package-quick-anchors .package-code-badge {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Mobile Sticky Bar Display */
    .mobile-sticky-bar {
        display: flex;
    }

    /* Table Mobile Swipe Indicator */
    .mobile-table-hint {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        display: block;
        width: 100%;
    }

    /* Grids & Cards */
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px 18px;
    }
    .footer-section {
        padding: 35px 16px 20px;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 22px 18px;
        margin-bottom: 25px;
    }
    .footer-col-brand,
    .footer-col-contact {
        grid-column: 1 / -1;
    }
    .footer-col-contact {
        text-align: center;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .footer-col-contact h4 {
        text-align: center;
        margin-bottom: 10px;
    }
    .footer-contact-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    .contact-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex-wrap: wrap;
        text-align: center;
        font-size: 0.86rem;
        line-height: 1.35;
    }
    .contact-item .contact-label {
        font-size: 0.86rem;
    }
    .contact-item .contact-val {
        font-size: 0.86rem;
    }
    .footer-col-nav {
        grid-column: 1;
    }
    .footer-col-pkgs {
        grid-column: 2;
    }
    .footer-col h4 {
        font-size: 1.02rem;
        margin-bottom: 12px;
    }
    .footer-links a {
        font-size: 0.85rem;
        line-height: 1.45;
        display: block;
    }
    .footer-links li {
        margin-bottom: 8px;
    }

    /* Sections Spacing */
    .hero-section {
        padding: 50px 16px 45px;
    }
    .section-container {
        padding: 0 16px;
    }
    .section-title {
        font-size: 1.85rem;
    }
}

/* Compact Smartphones (<= 480px, e.g. iPhone SE, Galaxy) */
@media (max-width: 480px) {
    .brand-details h1 {
        font-size: 1rem;
        line-height: 1.2;
    }
    .brand-details span {
        font-size: 0.72rem;
    }
    .school-logo-emblem {
        width: 38px;
        height: 38px;
    }

    .hero-headline {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
    }
    .hero-subhead {
        font-size: 0.95rem !important;
        margin-bottom: 22px !important;
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }

    /* Forms */
    .form-card {
        padding: 22px 16px !important;
    }
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .form-control, .form-select, .form-textarea {
        font-size: 16px !important; /* Prevents auto-zoom on mobile safari */
        padding: 11px 13px !important;
        min-height: 46px;
    }

    /* Buttons */
    .btn {
        min-height: 44px;
        font-size: 0.95rem;
    }

    .package-card {
        padding: 22px 16px;
    }
}


/* ==========================================================================
   Documentation / Terms / Privacy Policy Responsive Layout
   ========================================================================== */
.doc-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: flex-start;
}

.doc-sidebar {
    position: sticky;
    top: 100px;
    background: rgba(24, 17, 20, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.doc-card {
    scroll-margin-top: 90px;
}

@media (max-width: 900px) {
    .doc-layout {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    .doc-sidebar {
        position: static !important;
        top: auto !important;
        padding: 18px 16px !important;
        margin-bottom: 5px;
    }
    .doc-sidebar ul {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        gap: 8px 14px !important;
    }
    .doc-card {
        padding: 20px 16px !important;
    }
}

@media (max-width: 480px) {
    .doc-sidebar ul {
        grid-template-columns: 1fr !important;
    }
    .doc-card {
        padding: 18px 14px !important;
    }
    .doc-card h2 {
        font-size: 1.15rem !important;
    }
}
