/* -------------------------------------------------------------------------- */
/*                               DESIGN SYSTEM                                */
/* -------------------------------------------------------------------------- */

:root {
    /* Brand Colors - Action (Orange) */
    --cta-orange: #FF6B35;
    --cta-orange-hover: #E85A2A;
    --cta-orange-soft: rgba(255, 107, 53, 0.1);

    /* Brand Colors - Trust (Blue) */
    --trust-blue: #1e3a5f;
    --trust-blue-light: #4A7BA7;
    --trust-blue-soft: rgba(46, 92, 138, 0.1);
    --trust-blue-dark: #1e3a5f;

    /* Brand Colors - Warmth (Brown) */
    --warmth-brown: #6B4423;
    --warmth-brown-light: #8B5A2B;
    --warmth-brown-soft: rgba(107, 68, 35, 0.05);

    /* Legacy mappings for compatibility */
    --primary: var(--trust-blue);
    --primary-light: var(--trust-blue-light);
    --accent: var(--cta-orange);
    --accent-soft: var(--cta-orange-soft);

    /* Additional Colors */
    --secondary: #6366f1;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Neutrals */
    --bg-white: #ffffff;
    --bg-soft: #f8fafc;
    --text-main: #1a1a1a;
    --text-muted: #4a5568;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;

    /* Typography */
    --font-main: "Roboto", sans-serif;
    --font-heading: "Raleway", sans-serif;
    --font-nav: "Poppins", sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------------------- */
/*                                CORE STYLES                                 */
/* -------------------------------------------------------------------------- */

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* -------------------------------------------------------------------------- */
/*                                  LAYOUT                                    */
/* -------------------------------------------------------------------------- */

.section {
    padding: 80px 0;
    overflow: hidden;
}

.section-bg {
    background-color: var(--bg-soft);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    position: absolute;
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* -------------------------------------------------------------------------- */
/*                                  HEADER                                    */
/* -------------------------------------------------------------------------- */

.header {
    background: var(--trust-blue) !important;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.header .logo img {
    max-height: 50px;
    transition: var(--transition);
}

.navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
}

.navmenu a {
    padding: 10px 15px;
    font-family: var(--font-nav);
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
    position: relative;
}

/* Mobile Navigation */
@media (max-width: 1199px) {
    .navmenu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        bottom: 0;
        transition: 0.3s;
        z-index: 9999;
        background-color: var(--trust-blue-dark);
        /* Solid dark blue */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 20px 20px;
        display: block !important;
        flex-direction: column;
    }

    .navmenu.active {
        right: 0;
    }

    .navmenu ul {
        flex-direction: column;
        align-items: flex-start !important;
        width: 100%;
    }

    .navmenu a {
        color: rgba(255, 255, 255, 0.9);
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navmenu a:hover,
    .navmenu .active {
        color: var(--cta-orange);
        background: transparent;
    }

    .mobile-nav-toggle {
        position: fixed;
        /* Keep toggle visible */
        top: 20px;
        right: 20px;
        z-index: 10000;
    }
}

.navmenu a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 15px;
    background: var(--accent);
    transition: var(--transition);
}

.navmenu a:hover::after,
.navmenu .active::after {
    width: calc(100% - 30px);
}

/* -------------------------------------------------------------------------- */
/*                                   HERO                                     */
/* -------------------------------------------------------------------------- */

.hero {
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding: 140px 0 100px 0;
    display: flex;
    align-items: center;
    background: var(--primary);
    /* Fallback */
    color: #fff;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-video-container iframe,
.hero-video-container video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    transform: none;
    /* Remove centering transform since we are covering */
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    /* Reduced opacity for better visibility */
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero h2 {
    color: #fff;
    font-size: 56px;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
}

.hero .btn-get-started {
    background: var(--accent);
    color: #fff;
    padding: 14px 38px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 14px 0 rgba(27, 188, 169, 0.39);
}

.hero .btn-get-started:hover {
    background: #159d8c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.23);
}

/* -------------------------------------------------------------------------- */
/*                                  CARDS                                     */
/* -------------------------------------------------------------------------- */

.card-premium {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-soft);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-premium:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: #fff;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.card-body-premium {
    padding: 25px;
    flex-grow: 1;
}

.card-body-premium h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary);
}

.card-body-premium p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

/* Specific for Featured Programs */
.program-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.program-highlights span {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* -------------------------------------------------------------------------- */
/*                                  EVENTS                                    */
/* -------------------------------------------------------------------------- */

.code-camp-tabs .nav-tabs {
    border: none;
    background: var(--bg-soft);
    padding: 10px;
    border-radius: 50px;
    display: inline-flex;
    margin-bottom: 40px !important;
}

.code-camp-tabs .nav-link {
    border: none !important;
    color: var(--text-muted);
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 50px;
    transition: var(--transition);
}

.code-camp-tabs .nav-link.active {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: var(--shadow-md);
}

.event-card-premium {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.event-card-premium:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(10px);
}

.event-date-box {
    background: var(--primary);
    color: #fff;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 140px;
    text-align: center;
}

.event-date-box .day {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.event-date-box .month {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-top: 5px;
}

.event-content-premium {
    padding: 30px;
    flex-grow: 1;
}

/* -------------------------------------------------------------------------- */
/*                                  FOOTER                                    */
/* -------------------------------------------------------------------------- */

.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 80px;
}

.footer h4 {
    color: #fff;
    border-left: 3px solid var(--accent);
    padding-left: 15px;
    margin-bottom: 25px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
    display: inline-block;
}

/* -------------------------------------------------------------------------- */
/*                                SPOTLIGHT                                   */
/* -------------------------------------------------------------------------- */

.spotlight-premium {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../web/images/sept25-esb-camp 2.MP4');
    /* Fallback logic needed */
    background-size: cover;
    background-attachment: fixed;
    padding: 100px 0;
    color: #fff;
    border-radius: 30px;
    margin: 40px 10px;
}