:root {
    --brand-green: #1B7F74;
    --brand-navy: #002D62;
    --white: #ffffff;
    --slate: #334155;
    --bg-light: #f8fafc;

    --surface: #ffffff;
    --border: #e2e8f0;
    --text-main: #1e293b;
    --text-dim: #64748b;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body { font-family: 'Inter', sans-serif; margin: 0; color: var(--slate); }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Compact Navbar */
#navbar { background: var(--brand-navy); padding: 10px 0; position: sticky; top: 0; z-index: 10; }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 90%; margin: auto; }
.nav-brand { color: white; text-decoration: none; font-weight: 900; font-family: 'Montserrat'; }
.accent { color: var(--brand-green); }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: white; text-decoration: none; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }

/* Smaller Hero */

/* --- HERO SECTION ENGINE --- */
.hero-section {
    position: relative;
    height: 100vh; /* Full screen height */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-navy); /* Fallback color */
}

/* 1. The Background Image (Precision Placement) */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills space without distorting */
    z-index: 1;
}

/* 2. The Tactical Overlay (Adds Depth) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 20, 40, 0.7), /* Darker at top for nav visibility */
        rgba(0, 45, 98, 0.4)
    );
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3. The Content (Centered) */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content .eyebrow {
    display: block;
    color: var(--brand-green);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: white;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content .highlight {
    color: var(--brand-green);
    -webkit-text-stroke: 1px var(--brand-green);
    background: none;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 4. Action Buttons (Standardized) */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary {
    background: var(--brand-green);
    color: white;
    padding: 15px 35px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-outline {
    border: 2px solid white;
    color: white;
    padding: 15px 35px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-outline:hover {
    background: white;
    color: var(--brand-navy);
    transform: translateY(-3px);
}
/* Condensed Layouts */
.split-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding: 40px 0; }
.section-heading { font-family: 'Montserrat'; color: var(--brand-navy); font-size: 2rem; margin-bottom: 10px; }
.chip { background: #e2e8f0; padding: 5px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }

.logistics-compact { background: var(--bg-light); padding: 25px; border-radius: 12px; border-top: 4px solid var(--brand-green); }
.time { color: var(--brand-green); font-weight: 900; font-size: 1.2rem; }
.btn-cta { display: block; background: var(--brand-green); color: white; text-align: center; padding: 12px; text-decoration: none; border-radius: 6px; font-weight: 700; margin-top: 15px; }

/* FIXED IMAGE FIT */
.resource-grid-compact { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.res-card { text-align: center; background: white; padding: 15px; border-radius: 8px; border: 1px solid #eee; }

.badge { 
    width: 100px; 
    height: 100px; 
    object-fit: contain; /* This prevents the badges from being cut off */
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

@media (max-width: 768px) {
    .split-layout { grid-template-columns: 1fr; }
}
:root {
    --cadet-green: #1B7F74;
    --navy-black: #000c1a;
    --navy-blue: #002D62;
    --white: #ffffff;
    --slate: #64748b;
    --radius: 12px;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background-color: #fcfcfc; 
    color: #1e293b; 
    line-height: 1.6;
}

/* --- Navigation --- */
.navbar {
    background: rgba(0, 45, 98, 0.95);
    backdrop-filter: blur(10px); /* Glassmorphism */
    padding: 15px 0;
    position: sticky;
    top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo { 
    font-family: 'Montserrat'; font-weight: 900; 
    color: white; text-decoration: none; font-size: 1.4rem; 
}

.logo .accent { color: var(--cadet-green); }

.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { color: white; text-decoration: none; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.btn-tactical {
    background: var(--cadet-green);
    padding: 8px 20px;
    border-radius: 4px;
    transition: 0.3s;
}

/* --- Hero Section --- */

.highlight { color: var(--cadet-green); }
.eyebrow { color: var(--cadet-green); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 3px; }

/* --- Badge Grid (The Fix) --- */
.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
}

.badge-card {
    background: white;
    padding: 20px 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid #eef2f6;
    transition: 0.3s transform ease;
}

.badge-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.img-container {
    height: 100px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* CRITICAL: Prevents cutting off badges */
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.badge-card h3 { font-size: 1rem; color: var(--navy-blue); margin-bottom: 5px; }
.badge-card p { font-size: 0.8rem; color: var(--slate); }

/* --- Footer --- */
.footer { background: var(--navy-black); color: white; text-align: center; padding: 30px 0; font-size: 0.8rem; opacity: 0.8; }

/* Section Header Improvements */
.section-header .subtitle {
    max-width: 700px;
    margin: 10px auto;
    color: var(--text-dim);
}

/* The Professional Card Design */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Wider for better text flow */
    gap: 30px;
    padding: 20px 0;
}

.badge-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px; /* Smoother rounded corners */
    padding: 40px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Subtle Glow on Hover */
.badge-card:hover {
    transform: translateY(-10px);
    border-color: var(--cadet-green);
    box-shadow: var(--shadow-lg);
}

.badge-glow {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(27, 127, 116, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: 0.4s;
}

.badge-card:hover .badge-glow { opacity: 1; }

/* Image Handling (No Clipping) */
.img-container {
    position: relative;
    z-index: 2;
    height: 120px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* The fix for your images being cut off */
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.15));
    transition: 0.3s transform ease;
}

.badge-card:hover img {
    transform: scale(1.1);
}

/* Content & Typography */
.card-content { position: relative; z-index: 2; }

.badge-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--navy-blue);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.level-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--cadet-green);
    background: rgba(27, 127, 116, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.badge-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}
/* Update this section in your qualification.css */
.badge-grid {
    display: grid;
    /* This creates a responsive grid */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
    padding: 20px 0;
    
    /* This ensures that if a row isn't full, items center themselves */
    justify-content: center; 
    justify-items: center; 
}

/* On very large screens, we can force a 3-column top row 
   and a 2-column bottom row (Gold & Master) to be centered */
@media (min-width: 1200px) {
    .badge-grid {
        grid-template-columns: repeat(3, 320px);
    }
}
/* 2379 BURLINGTON ARMY CADETS 
   MASTER STYLESHEET - OPTIMIZED FOR UI/UX 
*/

:root {
    /* Brand Palette */
    --cadet-green: #1B7F74;
    --navy-blue: #002D62;
    --navy-black: #000c1a;
    --white: #ffffff;
    --bg-light: #f8fafc;
    
    /* UI Palette */
    --text-main: #1e293b;
    --text-dim: #64748b;
    --border: #e2e8f0;
    
    /* Design Tokens */
    --radius: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- 1. Reset & Global --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background-color: #fcfcfc; 
    color: var(--text-main); 
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }

/* --- 2. Professional Navigation --- */
.navbar {
    background: rgba(0, 45, 98, 0.95);
    backdrop-filter: blur(12px); /* Premium Blur Effect */
    padding: 15px 0;
    position: sticky;
    top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center;
}

.logo { font-family: 'Montserrat'; font-weight: 900; color: white; text-decoration: none; font-size: 1.4rem; }
.logo .accent { color: var(--cadet-green); }

.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { 
    color: white; text-decoration: none; font-size: 0.85rem; 
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px; 
}

.btn-tactical {
    background: var(--cadet-green);
    padding: 8px 20px;
    border-radius: 4px;
    transition: 0.3s ease;
}

/* --- 3. Hero Section --- */


/* --- 4. Training Grid & Professional Cards --- */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.title { font-family: 'Montserrat'; font-size: 2.5rem; color: var(--navy-blue); margin-bottom: 15px; }

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.badge-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 25px;
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
    display: flex; flex-direction: column;
}

.badge-card:hover {
    transform: translateY(-10px);
    border-color: var(--cadet-green);
    box-shadow: var(--shadow-lg);
}

/* HUD Glow Layer */
.badge-glow {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(27, 127, 116, 0.08) 0%, transparent 70%);
    opacity: 0; transition: 0.4s;
}
.badge-card:hover .badge-glow { opacity: 1; }

/* Fixed Image Box (The Fix for Cutting Off) */
.img-container {
    height: 120px; margin-bottom: 25px;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 2;
}



.img-container img {
    max-width: 100%; max-height: 100%;
    object-fit: contain; /* CRITICAL: ensures full image is visible */
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.1));
}

.level-tag {
    display: inline-block; background: rgba(27, 127, 116, 0.1);
    color: var(--cadet-green); font-weight: 700; font-size: 0.7rem;
    padding: 4px 12px; border-radius: 20px; margin-bottom: 15px;
    text-transform: uppercase;
}

/* --- 5. Footer & Desktop View centering --- */
.footer { background: var(--navy-black); color: white; padding: 40px 0; text-align: center; font-size: 0.85rem; }

@media (min-width: 1200px) {
    .badge-grid {
        grid-template-columns: repeat(3, 320px);
    }
}
/* --- Mobile Responsive Rules --- */

/* 1. Mobile Menu Styling */
:root {
    --brand-green: #1B7F74;
    --brand-navy: #002D62;
    --brand-yellow: #FDEE00;
    --white: #ffffff;
    --text-slate: #334155;
    
    /* ADD THESE TO FIX THE NAVY SECTION ISSUES */
    --surface-white: #ffffff;    /* Fixes the "invisible" header text */
    --navy-deep: #001f3d;       /* Top of your premium gradient */
    --navy-black: #000c1a;      /* Bottom of your premium gradient */

    /* Missing variables used in recruitment section */
    --cadet-green: #1B7F74; 
    --navy-dark: #002D62;
    --off-white: #f8fafc;
    --bg-light: #f1f5f9;
}
/* --- 3. NAVIGATION ENGINE --- */
nav {
    position: fixed; top: 0; width: 100%; height: 80px; z-index: 2000;
    display: flex; align-items: center;
    background-color: var(--brand-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

nav.scrolled {
    height: 70px;
    background-color: var(--navy-deep);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    width: 90%; max-width: 1400px; margin: auto;
    display: flex; justify-content: space-between; align-items: center;
}

.nav-brand { font-weight: 900; color: var(--white); text-decoration: none; text-transform: uppercase; letter-spacing: 2px; }
.nav-brand span.accent { color: var(--brand-green); }

.nav-links { display: flex; list-style: none; gap: 40px; align-items: center; }
.nav-links a { 
    color: var(--white); text-decoration: none; font-weight: 700; 
    font-size: 0.8rem; text-transform: uppercase; opacity: 0.8; transition: 0.3s;
}
.nav-links a:hover { opacity: 1; color: var(--brand-green); }

/* Hamburger Menu Icon */
.hamburger {
    display: none; flex-direction: column; gap: 6px; cursor: pointer;
}
.hamburger span {
    width: 30px; height: 3px; background: var(--white); transition: 0.3s;
}



/* --- 6. DARK NAVY SECTIONS (MAP & PARTNERS) --- */
.map-section, .partner-section-premium {
    background: radial-gradient(circle at top, var(--navy-deep) 0%, var(--navy-black) 100%) !important;
    padding: 120px 5%; color: var(--white); text-align: center;
}
.map-wrapper { 
    max-width: 1200px; margin: 40px auto 0; border-radius: 15px; 
    overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
}

/* --- 7. MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed; top: 0; right: -100%; width: 75%; height: 100vh;
        background: var(--brand-navy); flex-direction: column; 
        justify-content: center; transition: 0.4s ease-in-out;
    }

    .nav-links.active { right: 0; }

    /* Hamburger Animation to 'X' */
    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .resource-section { padding: 80px 5%; }
    .hero { height: 60vh; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: var(--text-slate); line-height: 1.7; overflow-x: hidden; }

/* Navigation - Modern Glassmorphism */

/* Hero Section */
/* --- UPDATED HERO SECTION --- */
.hero { 
    height: 80vh; 
    position: relative; 
    background: #000; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
}

.hero-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.6; /* Slightly darker for better text contrast */
}

.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%; 
    /* REMOVED BLUE TOP SHADE - Added bottom shadow for text readability */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); 
    display: flex; 
    flex-direction: column;
    justify-content: flex-end; /* Pushes content to the bottom */
    align-items: center;
    padding-bottom: 60px; /* Space from the very bottom */
}


/* Welcome Grid (Outstanding UX) */
.welcome-section { padding: 120px 10%; background: white; }
.welcome-grid { max-width: 1200px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start; }
.sub-headline { font-weight: 900; letter-spacing: 4px; font-size: 0.8rem; color: #000; }
.main-headline { font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 900; line-height: 1; margin-top: 10px; }
.welcome-content p { font-size: 1.2rem; margin-bottom: 25px; color: var(--text-slate); }
.btn-primary { 
    display: inline-block; background: var(--brand-green); color: white; 
    padding: 20px 40px; text-decoration: none; font-weight: 900; 
    border-radius: 4px; text-transform: uppercase; transition: 0.3s;
    box-shadow: 0 10px 20px rgba(27, 127, 116, 0.2);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(27, 127, 116, 0.4); }

/* Resource Cards */
.resource-section { 
    padding: 160px 10%; /* Extra vertical padding */
    background: #f1f5f9; 
}
.resource-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; 
}
.res-card-link { text-decoration: none; color: inherit; display: block; }
.res-card { background: white; border-radius: 12px; overflow: hidden; transition: 0.3s; }
.res-card:hover { transform: translateY(-10px); }

.res-image-box { 
    height: 350px; /* Taller images for vertical impact */
    overflow: hidden; 
}
.res-image-box img { width: 100%; height: 100%; object-fit: cover; }

.res-card h3 { padding: 30px 25px 10px; font-weight: 900; color: var(--brand-navy); }
.res-card p { padding: 0 25px 30px; font-size: 0.95rem; }

/* Logistics & Map */
.logistics-section { background: var(--brand-navy); color: white; padding: 100px 10%; }
.logistics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.age-pill { display: inline-block; border: 2px solid var(--brand-green); padding: 5px 20px; border-radius: 50px; font-weight: 900; margin-bottom: 20px; }
.info-item { margin-bottom: 30px; }
.info-item p { font-size: 1.5rem; font-weight: 700; color: var(--brand-green); }
.entrance-note { background: rgba(255,255,255,0.05); padding: 25px; border-left: 4px solid var(--brand-yellow); }
.map-wrapper { height: 450px; background: #ddd; border-radius: 15px; overflow: hidden; }

/* Sponsor Section */
.sponsor-section { padding: 60px 10%; text-align: center; background: white; }
.sponsor-section h3 { font-weight: 900; margin-bottom: 40px; opacity: 0.5; text-transform: uppercase; letter-spacing: 2px; }
.sponsor-marquee { display: flex; flex-wrap: wrap; justify-content: center; gap: 50px; align-items: center; opacity: 0.7; }
.sponsor-marquee img { height: 60px; filter: grayscale(100%); transition: 0.3s; }
.sponsor-marquee img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }
.recruitment-section {
    padding: 100px 5%;
    background: var(--white);
    font-family: 'Montserrat', sans-serif;
}
/* --- PARTNER SECTION PREMIUM --- */
.partner-section-premium {
    padding: 120px 5%;
    background: radial-gradient(circle at center, #001f3d, #000c1a);
    position: relative;
    overflow: hidden;
}

.partner-header-premium {
    text-align: center;
    margin-bottom: 80px;
}

/* Tiered Grid System */
.minimal-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* PRIMARY CARDS: Large & Impactful */
.logo-card-premium {
    width: 380px;
    height: 220px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px; /* Sharp tactical edges */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-smooth);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.logo-card-premium img {
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Forces logos to white for a high-end look */
    opacity: 0.8;
    transition: 0.4s ease;
}

.tier-tag {
    position: absolute;
    bottom: 15px;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-green);
    opacity: 0.6;
}

/* SECONDARY CARDS: Minimalist Grid */
.logo-card-standard {
    width: 200px;
    height: 120px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: 0.3s ease;
}

.logo-card-standard img {
    max-width: 90%;
    max-height: 60%;
    object-fit: contain;
    filter: grayscale(1) brightness(1.5); /* Unified look */
    opacity: 0.5;
}

/* HOVER STATES: "Activating" the logo */
.logo-card-premium:hover, .logo-card-standard:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--brand-green);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.logo-card-premium:hover img, .logo-card-standard:hover img {
    filter: none; /* Restore original colors on hover */
    opacity: 1;
    transform: scale(1.05);
}

/* MOBILE REFINEMENT */
@media (max-width: 768px) {
    .logo-card-premium {
        width: 100%;
        max-width: 320px;
        height: 180px;
    }
    .logo-card-standard {
        width: calc(50% - 15px); /* Two across on mobile */
        height: 100px;
    }
}
/* --- TACTICAL NAV BAR (ALWAYS NAVY) --- */


/* Tactical Join Button */
.btn-nav-tactical {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    border: 1px solid var(--brand-green);
    padding: 10px 20px;
    border-radius: 2px;
    transition: 0.3s ease;
}

.btn-nav-tactical:hover {
    background: var(--brand-green);
    color: var(--brand-navy) !important;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.split-layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Experience Side */
.experience-content {
    flex: 1.2;
    min-width: 350px;
}

.eyebrow {
    color: var(--cadet-green);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 15px;
}

.section-heading {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--navy-dark);
    margin-bottom: 30px;
}

.value-text p {
    font-size: 1.2rem;
    color: var(--text-slate);
    margin-bottom: 30px;
}

.activity-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    background: var(--bg-light);
    border: 1px solid #E2E8F0;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy-dark);
}

/* Logistics Card */
.logistics-card {
    flex: 0.8;
    min-width: 320px;
    background: var(--off-white);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid #F1F5F9;
    position: relative;
}

.card-badge {
    position: absolute;
    top: -15px;
    right: 40px;
    background: var(--cadet-green);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.8rem;
}

.log-group {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.log-icon { font-size: 1.8rem; }

.log-text h3 {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--navy-dark);
}

.time {
    font-weight: 900;
    color: var(--cadet-green);
    font-size: 1.3rem;
}

.entrance-instruction {
    background: #FFFBEB; /* Soft alert yellow */
    border-left: 4px solid #F59E0B;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 40px 0;
}

.btn-primary-cta {
    display: block;
    background: var(--cadet-green);
    color: white;
    text-align: center;
    padding: 20px;
    text-decoration: none;
    font-weight: 900;
    border-radius: 8px;
    transition: 0.3s ease;
}

.btn-primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(27, 127, 116, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .split-layout { gap: 40px; }
    .section-heading { font-size: 2.2rem; }
}
/* Minimalist Logo Section */
.partner-section-minimal {
    padding: 100px 5%;
    background-color: var(--brand-navy); /* From style.css */
    text-align: center;
}

.partner-header-minimal { margin-bottom: 60px; }
.eyebrow-tactical {
    color: var(--brand-green);
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.partner-header-minimal h2 {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-top: 10px;
}

.header-accent {
    width: 50px;
    height: 4px;
    background: var(--brand-green);
    margin: 20px auto;
}

/* Grid Logic */
.minimal-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

/* Logo Card Styling */
.logo-card-premium, .logo-card-standard {
    background: rgba(255, 255, 255, 0.03); /* Subtle Glass Effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

/* Sizing for Primary vs Secondary */
.logo-card-premium {
    width: 350px;
    height: 180px;
    padding: 40px;
}

.logo-card-standard {
    width: 220px;
    height: 130px;
    padding: 25px;
}

/* The Professional Finish: Logo Visibility */
.minimal-grid img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Keeps logos bright and clear without being distracting */
    filter: brightness(1.1) contrast(1.1); 
}

/* Refined Hover (No text reveal, just depth) */
.logo-card-premium:hover, .logo-card-standard:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--brand-green);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive Mobile Fix */
@media (max-width: 768px) {
    .logo-card-premium, .logo-card-standard {
        width: 100%;
        max-width: 300px;
        height: 140px;
    }
/* --- COMPREHENSIVE MOBILE RESPONSIVENESS --- */

@media (max-width: 992px) {
    /* Adjusting the split layout for tablets */
    .split-layout {
        flex-direction: column;
        gap: 40px;
    }

    .experience-content, .logistics-card {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 768px) {
    /* Navigation: Simplify for mobile */
    .nav-links {
        display: none; /* In a full build, you'd add a hamburger menu here */
    }
    
    .nav-container {
        justify-content: center;
    }

    /* Hero Section: Adjust height for mobile screens */
    .hero {
        height: 60vh;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    /* Sections: Reduce padding for tighter screens */
    .recruitment-section, .resource-section, .partner-section-premium {
        padding: 60px 5%;
    }

    /* Logistics Card: Make it full width and adjust padding */
    .logistics-card {
        padding: 30px 20px;
    }

    /* Grids: Ensure all grids drop to single column */
    .resource-grid, .minimal-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo-card-premium, .logo-card-standard {
        width: 100%;
        max-width: 320px;
        height: auto;
        min-height: 120px;
    }
}

/* Fix for the Welcome Grid (if used) */
@media (max-width: 768px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/* --- HAMBURGER MENU STYLES --- */
  
/* --- GRIDS & LAYOUTS --- */
.welcome-grid, .logistics-grid, .split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    padding: 0 5%;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- MOBILE RESPONSIVENESS (PHONES & TABLETS) --- */

@media (max-width: 992px) {
    /* Stack layouts vertically */
    .welcome-grid, .logistics-grid, .split-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .split-layout { gap: 60px; }

    .experience-content, .logistics-card {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--brand-navy);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    /* Logic for JS: when nav-links has class 'active' */
    .nav-links.active { right: 0; }

    /* Hero adjustments */
    .hero { height: 60vh; }
    .hero-title { font-size: 2.5rem; }

    /* Spacing adjustments for mobile ergonomics */
    .welcome-section, .resource-section, .logistics-section, .recruitment-section {
        padding: 60px 5%;
    }

    .main-headline { font-size: 2.5rem; }

    /* Map & Media */
    .map-wrapper { height: 300px; }

    /* Activity Chips center alignment */
    .activity-chips { justify-content: center; }

    /* Sponsor/Partner Grid */
    .minimal-grid {
        flex-direction: column;
        align-items: center;
    }

    .logo-card-premium, .logo-card-standard {
        width: 100%;
        max-width: 320px;
        height: 120px;
    }
}

/* --- UTILITY CLASSES --- */
.btn-primary, .btn-primary-cta {
    display: inline-block;
    width: 100%; /* Full width buttons on mobile are easier to tap */
    max-width: 300px;
    text-align: center;
}
/* --- PREMIUM PARTNER HEADER --- */
.partner-header-premium {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
    position: relative;
}

/* 1. The Eyebrow (Tactical Label) */
.eyebrow-tactical {
    display: block;
    color: var(--cadet-green);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px; /* Wide spacing for a high-end feel */
    font-size: 0.75rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* 2. The Main Title */
.partner-header-premium h2 {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive fluid typography */
    font-weight: 900;
    color: var(--surface-white);
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 25px;
}

/* 3. The HUD-Style Accent (Visual Polish) */
.partner-header-premium .header-accent {
    width: 60px;
    height: 3px;
    background: var(--cadet-green);
    margin: 0 auto 25px auto;
    position: relative;
    box-shadow: 0 0 15px rgba(27, 127, 116, 0.5); /* Subtle glow */
}

/* Adding tactical "crosshair" dots to the line */
.partner-header-premium .header-accent::before,
.partner-header-premium .header-accent::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--surface-white);
    border-radius: 50%;
}

.partner-header-premium .header-accent::before { left: -15px; }
.partner-header-premium .header-accent::after { right: -15px; }

/* 4. The Subtext (Ergonomic UX) */
.partner-header-premium p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6); /* Muted slate for better hierarchy */
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}
/* --- PARTNER SECTION PREMIUM --- */
.partner-section-premium {
    padding: 140px 5%;
    background: radial-gradient(circle at top, #001f3d 0%, #000c1a 100%);
    position: relative;
}

.partner-header-premium {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 100px auto;
}

/* 1. Tactical Eyebrow */
.eyebrow-tactical {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-green);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.eyebrow-tactical .dot {
    width: 8px;
    height: 8px;
    background: var(--brand-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-green);
}

/* 2. Main Heading */
.alliance-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 30px;
}

.alliance-title span {
    color: var(--brand-green);
    -webkit-text-stroke: 1px var(--brand-green);
    background: transparent;
}

/* 3. The Tactical Divider */
.tactical-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
}

.tactical-divider .line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-green), transparent);
}

.tactical-divider .crosshair {
    width: 12px;
    height: 12px;
    border: 1px solid var(--brand-green);
    transform: rotate(45deg);
    position: relative;
}

/* 4. Description Text */
.alliance-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

.alliance-description strong {
    color: var(--brand-green);
    font-weight: 700;
}

/* --- REVEAL ANIMATION HOOK --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* GLOBAL SETTINGS FOR DARK SECTIONS */
.map-section, 
.partner-section-premium, 
.section-combined-logistics {
    background: radial-gradient(circle at top, #001f3d 0%, #000c1a 100%) !important;
    background-color: #000c1a;
    color: #ffffff;
    padding: 100px 5%;
}

/* Ensure header text is always white against the dark background */
.map-section h2, 
.map-section p, 
.partner-header-premium h2 {
    color: #ffffff !important;
}

/* TRAINING GRID LOGIC */
.unified-training-wrapper {
    display: grid;
    grid-template-columns: 1.8fr 1fr; 
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .unified-training-wrapper {
        grid-template-columns: 1fr;
    }
}


/* THE FIX: Force Navy on ALL screen sizes */
.map-section {
    background: radial-gradient(circle at top, var(--navy-deep) 0%, var(--navy-black) 100%) !important;
    background-color: var(--navy-black) !important;
    color: var(--white) !important;
    padding: 100px 5%;
    display: block; /* Ensures it takes up space on desktop */
    width: 100%;
}

/* Force Header Text to be white (Fixing the missing --surface-white bug) */
.map-section .partner-header-premium h2, 
.map-section .partner-header-premium p,
.map-section .eyebrow-tactical {
    color: var(--white) !important;
}

/* Desktop Map Polish */
.map-wrapper {
    max-width: 1200px;
    margin: 40px auto 0;
    border: 1px solid rgba(27, 127, 116, 0.3);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.map-section {
    background: radial-gradient(circle at top, var(--navy-deep) 0%, var(--navy-black) 100%) !important;
    background-color: var(--navy-black); /* Fallback for older browsers */
}
/* This forces the section to be navy regardless of screen width */
.map-section, 
.partner-section-premium, 
.section-combined-logistics {
    background: radial-gradient(circle at top, var(--navy-deep) 0%, var(--navy-black) 100%) !important;
    background-color: var(--navy-black) !important;
    display: block; 
    width: 100%;
    color: var(--white);
}

/* Fixes the text visibility on Desktop */
.map-section h2, 
.partner-header-premium h2,
.partner-header-premium p {
    color: var(--surface-white) !important;
}

/* --- UI/UX REFINED NAVBAR --- */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999; /* Ensure it's always on top */
    padding: 20px 0;
    transition: all 0.4s ease;
}

/* Shine: Glassmorphism effect when scrolling */
#navbar.scrolled {
    background: rgba(0, 26, 51, 0.9);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid var(--brand-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Set in Order: Flex alignment */
.nav-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation Links - Desktop */
.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.3s ease;
    position: relative;
}

/* Underline Animation UX */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-green);
    transition: 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- MOBILE UX DRAWER --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 75%;
        height: 100vh;
        background: var(--navy-deep);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 2px solid var(--brand-green);
    }

    .nav-links.active {
        right: 0;
    }

    /* Make links bigger for thumb-tapping */
    .nav-links a {
        font-size: 1.2rem;
    }
}/* Hammy Styling */
.mobile-toggle {
    display: none;
    cursor: pointer;
    z-index: 10000;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--white);
    transition: 0.4s;
}

/* Animation to X */
.mobile-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
}
/* 1. Functional Mobile Menu Slide-In */
@media (max-width: 768px) {
    #nav-menu.active {
        right: 0 !important; /* Forces the menu onto the screen */
        display: flex !important;
    }
}

/* 2. Hammy Transformation to 'X' */
#hammy.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--brand-green);
}

#hammy.active span:nth-child(2) {
    opacity: 0;
}

#hammy.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--brand-green);
}

/* 3. Mobile Dropdown Toggle */
@media (max-width: 768px) {
    .nav-dropdown.active .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important; /* Makes it push content down instead of floating */
        transform: none !important;
        background: rgba(255, 255, 255, 0.05);
    }
}

/* --- Dropdown Container Logic --- */
.nav-dropdown {
    position: relative; /* Essential for child positioning */
}

/* The Sub-Menu (Hidden by default) */
.dropdown-menu {
    position: absolute;
    top: 100%; /* Sits directly below the navbar */
    left: 0;
    background: var(--navy); /* Matching your cadet theme */
    min-width: 220px;
    list-style: none;
    padding: 15px 0;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    
    /* Animation: Subtle fade and slide */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Sub-Menu Links */
.dropdown-menu li a {
    padding: 12px 25px;
    display: block;
    color: white !important;
    font-size: 0.9rem;
    text-transform: none;
    text-decoration: none !important; /* Ensuring no underlines */
    transition: background 0.2s;
}

/* Highlight item on hover */
.dropdown-menu li a:hover {
    background: var(--primary);
    color: white !important;
}

/* --- The Trigger Logic --- */
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow styling */
.arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s;
    display: inline-block;
}

.nav-dropdown:hover .arrow {
    transform: rotate(180deg);
}
@media (max-width: 768px) {
    .dropdown-menu {
        position: static; /* Moves menu back into the normal flow */
        opacity: 1;
        visibility: visible;
        display: none; /* Initially closed on mobile */
        background: rgba(255, 255, 255, 0.05);
        border: none;
        transform: none;
        width: 100%;
    }

    /* Open dropdown when active class is toggled on mobile */
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
}
