/* --- Variables & Reset --- */
:root {
    --bg-deep: #0a0a0a;
    --bg-surface: #141414;
    --primary-red: #E53935;
    --primary-glow: rgba(229, 57, 53, 0.4);
    --text-main: #f5f5f5;
    --text-muted: #a3a3a3;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }

/* --- Glassmorphism Utilities --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px var(--primary-glow);
    border-color: rgba(229, 57, 53, 0.3);
}

/* --- Typography --- */
h1, h2, h3 { font-weight: 700; letter-spacing: 1px; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; text-transform: uppercase;}
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px; 
    background: var(--primary-red); margin: 15px auto 0;
}

/* --- Navigation --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px); position: fixed; width: 100%; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}
.logo { font-size: 24px; font-weight: 900; }
.logo span { color: var(--primary-red); }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-size: 0.9rem; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-red); }

/* Buttons */
.btn-solid {
    background: var(--primary-red); color: #fff; padding: 12px 30px;
    border-radius: 4px; text-decoration: none; font-weight: 700;
    text-transform: uppercase; transition: 0.3s;
}
.btn-solid:hover { background: #b71c1c; box-shadow: 0 0 15px var(--primary-glow); }

.btn-outline {
    border: 2px solid var(--primary-red); color: var(--primary-red);
    padding: 10px 20px; border-radius: 4px; text-decoration: none;
    font-weight: 700; transition: 0.3s;
}
.btn-outline:hover { background: var(--primary-red); color: #fff; }

/* =========================================
   NEW: Logo Showcase Area 
========================================= */
/* =========================================
   UPDATED: Logo Showcase Area 
========================================= */
.logo-showcase {
    margin-top: 80px; 
    padding: 120px 5% 80px; 
    display: flex;
    flex-direction: column; /* CRITICAL: This stacks the text under the logo */
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden; /* Keeps the animated background from spilling out */
    min-height: 70vh; /* Gives the section enough height to look epic */
}

/* --- The Background Animation --- */
.showcase-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    /* Replace 'your-bg-image.jpg' with the Torii gate or dojo image from your reference */
    background: url('images/download.jfif') center/cover;
    filter: brightness(0.40) contrast(1.2); /* Darkens the image so the red text pops */
    z-index: 0;
    animation: slow-pan 20s infinite alternate linear;
}

@keyframes slow-pan {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); } /* Smooth, slow zoom effect */
}

/* Ensure content sits above the animated background */
.glow-effect,  .circle-logo, .club-title-glow {
    position: relative;
    z-index: 2;
}

.circle-logo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
    box-shadow: 0 0 30px rgba(229, 57, 53, 0.6);
    overflow: hidden;
    background-color: #000;
    transition: transform 0.5s ease;
}

.circle-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(229, 57, 53, 0.9);
}

.circle-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- NEW: The Highlighted Glowing Text --- */
.club-title-glow {
    margin-top: 40px; /* Space between logo and text */
    font-size: 3.5rem; 
    color: var(--primary-red);
    font-weight: 1000;
    font-size: 3.2rem;
    letter-spacing: 12px; /* Gives it that wide, cinematic look */
    text-transform: uppercase;
    text-align: center;
    font-family: 'Simplifica',Algerian;
    /* The intense Neon Glow Effect */
                 0 0 60px rgba(0, 0, 0, 1); /* Dark shadow behind to separate from background */
}

/* Mobile adjustments so the text doesn't break on small screens */
@media (max-width: 768px) {
    .club-title-glow {
        font-size: 2rem;
        font-family: "Rye", serif;
        letter-spacing: 5px;
        margin-top: 30px;
    }
}

/* =========================================
   UPDATED: Our Team Section (Group Photo)
========================================= */
.our-team {
    padding-top: 20px;
    padding-bottom: 60px;
}

.team-group-wrapper {
    max-width: 1400px; /* Increases the overall width of the section */
    margin: 0 auto 50px auto; 
    padding: 20px; 
    border-radius: 15px; /* Matches the glass-card aesthetic */
}

/* 2. The Images (Now massive, but keeping your awesome styling) */
/* 2. The Images (Forced to be massive) */
/* 2. The Images (Forced with !important) */
.group-photo {
    min-width: 100% !important; 
    height: 750px !important; /* The Sledgehammer */
    object-fit: cover !important; 
    margin: 0 !important; 
    border-radius: 12px;
    filter: grayscale(80%) brightness(0.8);
    transition: filter 0.6s ease, transform 0.6s ease, border-color 0.4s ease;
    border: 2px solid var(--glass-border, rgba(255,255,255,0.1));
}
/* Hover Effect: The image turns colorful and zooms slightly */
.team-group-wrapper:hover .group-photo {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.02);
    border-color: var(--primary-red, #e53935);
    box-shadow: 0 10px 30px var(--primary-glow, rgba(229, 57, 53, 0.4));
}

.team-caption {
    margin-top: 30px;
    align-items: center;
    text-align: center;
    font-family: 'Montserrat', sans-serif;

}

.team-caption h3 {
    color: var(--text-main);
    font-size: 10rem;!important; /* The Sledgehammer */
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.team-caption p {
    color: var(--primary-red);
    font-size: 0.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive adjustment for mobile screens */
@media (max-width: 768px) {
    .group-photo { max-height: 300px; }
    .team-caption p { font-size: 0.8rem; line-height: 1.6; }
}
/* --- Updated Hero Section --- */
.hero {
    height: 100vh; 
    position: relative;
    overflow: hidden; /* CRITICAL: Prevents the video from spilling out */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    background: #0a0a0a; /* Fallback color while video loads */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    
    z-index: 0; /* Sits at the very bottom */
    transform: translate(-50%, -50%); /* Keeps video perfectly centered */
    object-fit: cover; /* Ensures video fills space without stretching */
}

/* This stays the same - it will naturally dim the video now! */
.hero-overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.3), var(--bg-deep));
    z-index: 1; /* Sits above the video but below the text */
}

.hero-content { 
    position: relative; 
    z-index: 2; /* Sits on top of everything */
}
.hero h1 { font-size: 4.5rem; margin-bottom: 10px; }
.hero h1 span { color: var(--primary-red); }
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; letter-spacing: 2px; }

/* --- Marquee --- */
.moving-gallery-section { padding: 40px 0; background: var(--bg-surface); overflow: hidden; border-top: 1px solid #222; border-bottom: 1px solid #222;}
.marquee { width: 100%; overflow: hidden; white-space: nowrap; }
.marquee-content { display: inline-block; animation: scroll-left 150s linear infinite; }
.marquee-content img {
    height: 200px; width: 300px; object-fit: cover;
    margin-right: 20px; border-radius: 8px; filter: grayscale(50%);
    transition: filter 0.4s; border: 1px solid #333;
}
.marquee-content img:hover { filter: grayscale(0%); border-color: var(--primary-red); }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Split Layout (About & Mission) --- */
.split-layout { display: flex; align-items: center; gap: 50px; margin-bottom: 60px; }
.split-layout.reverse { flex-direction: row-reverse; }
.text-box { flex: 1; }
.text-box h2 { color: var(--primary-red); margin-bottom: 20px; font-size: 2rem; }
.text-box p { color: var(--text-muted); line-height: 1.8; }
.icon-box { flex: 1; display: flex; justify-content: center; font-size: 8rem; color: #222; text-shadow: 0 0 20px rgba(255,255,255,0.05); }
.fa-spin-hover:hover { animation: spin 2s linear infinite; color: var(--text-main);}
@keyframes spin { 100% { transform: rotate(360deg); } }
/* =========================================
   Custom Icon Animations
========================================= */

/* Yin Yang Spin */
.fa-spin-hover:hover { 
    animation: spin 2s linear infinite; 
    color: var(--text-main);
}
@keyframes spin { 
    100% { transform: rotate(360deg); } 
}

/* Fire Flicker Animation (Hover Only) */
.fa-flame-flicker {
    color: var(--text-muted);
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

.fa-flame-flicker:hover {
    animation: flicker 1.5s infinite alternate ease-in-out;
}

@keyframes flicker {
    0% { 
        transform: scale(1) rotate(-3deg); 
        text-shadow: 0 0 10px rgba(229, 57, 53, 0.4); 
        color: var(--primary-red);
    }
    50% { 
        transform: scale(1.1) rotate(3deg); 
        text-shadow: 0 0 25px rgba(229, 57, 53, 0.8), 0 0 10px #ff9800; 
        color: #ff5722; 
    }
    100% { 
        transform: scale(1.05) rotate(-1deg); 
        text-shadow: 0 0 15px rgba(229, 57, 53, 0.6); 
        color: var(--primary-red);
    }
}

/* --- Offerings Grid --- */
.offerings-section { background: var(--bg-surface); padding: 80px 0; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.offer-card { text-align: center; }
.offer-card i { font-size: 3rem; color: var(--primary-red); margin-bottom: 20px; }
.offer-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.offer-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* --- Branches --- */
.branches-container { display: flex; padding: 0; overflow: hidden; }
.branch-list { flex: 1; padding: 40px; background: rgba(0,0,0,0.4); }
.branch-item { margin-bottom: 30px; border-left: 3px solid var(--primary-red); padding-left: 20px; }
.branch-item h4 { font-size: 1.2rem; margin-bottom: 10px; }
.branch-item p { color: var(--text-muted); font-size: 0.9rem; }
.branch-item i { color: var(--primary-red); margin-right: 5px; }
.map-wrapper { flex: 1; min-height: 400px; }

/* --- Footer --- */
.footer { background: #050505; border-top: 1px solid #1a1a1a; padding-top: 60px; }
.footer-grid { display: flex; justify-content: space-between; padding-bottom: 40px; }
.brand h2 span { color: var(--primary-red); }
.brand p { color: var(--text-muted); margin-top: 10px; }
.socials p { font-weight: 700; margin-bottom: 15px; }
.social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; background: #1a1a1a;
    color: var(--text-main); margin-right: 10px; transition: 0.3s; text-decoration: none;
}
.social-icons a:hover {align-items: center; background: var(--primary-red); transform: translateY(-3px); }
.copyright { text-align: center; padding: 20px; background: #000; color: #666; font-size: 0.8rem; }

/* --- Scroll Animations --- */
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    .split-layout, .split-layout.reverse, .branches-container { flex-direction: column; }
    .icon-box { display: none; }
    .nav-links { display: none; }
    .hero h1 { font-size: 3rem; }
}
/* =========================================
   Detail Pages & Clickable Cards
========================================= */

/* Clickable Offer Cards */
a.detail-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    position: relative;
}

.learn-more {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

a.detail-link:hover .learn-more {
    opacity: 1;
    transform: translateY(0);
}

/* Subpage Hero Banners */
.detail-hero {
    height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #222;
}

.detail-hero h1 {
    font-size: 4rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

/* Discipline Feature Lists */
.feature-list {
    list-style: none;
    margin-top: 25px;
}

.feature-list li {
    margin-bottom: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.feature-list i {
    color: var(--primary-red);
    font-size: 1.2rem;
    margin-top: 4px;
}

.discipline-image {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
/* =========================================
   READABILITY & FONT SIZE UPGRADES
========================================= */

/* 1. Increase Base Text Size and Breathing Room */
body {
    font-size: 20px; 
}

p {
    font-size: 1.4rem;
    line-height: 1.8; /* Adds more space between lines of text */
}

/* 2. Enlarge Navigation Links */
.nav-links a {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* 3. Hero Subtitles */
.hero p, .detail-hero p {
    font-size: 1.35rem; 
}

/* 4. Increase Headings */
.section-title, .text-box h2 {
    font-size: 2.8rem;
}

.offer-card h3, .team-card h3, .team-caption h3 {
    font-size: 1.5rem;
}

/* 5. Specific Card & List Text */
.offer-card p, .branch-item p, .team-caption p {
    font-size: 1.8rem; 
}

.feature-list li {
    font-size: 1.35rem;
    line-height: 1.8;
}

.learn-more {
    font-size: 1rem; /* Makes the "Explore Path" button bigger */
}

/* 6. Mobile Adjustments (Keeps it from looking too huge on phones) */
@media (max-width: 768px) {
    body { font-size: 16px; }
    .section-title, .text-box h2 { font-size: 2.2rem; }
    .hero p, .detail-hero p { font-size: 1.15rem; }
    .hero h1, .detail-hero h1 { font-size: 3rem; }
}
/* =========================================
   DASHBOARD LAYOUT (Student & Sensei)
========================================= */

.dashboard-body {
    background-color: #050505; /* Even darker for the app feel */
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding-top: 40px;
    align-items: start;
}

/* Sidebar Styling */
.dashboard-sidebar {
    padding: 30px 20px;
    text-align: center;
}

.circular-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 4px solid var(--primary-red);
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.3);
    overflow: hidden;
}


.profile-header h3 { font-size: 1.5rem; margin-bottom: 5px; }
.role-badge { display: inline-block; background: #222; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 30px; }

.sidebar-nav { display: flex; flex-direction: column; gap: 10px; }
.nav-tab {
    background: transparent; border: 1px solid transparent; color: var(--text-main);
    padding: 15px; text-align: left; border-radius: 8px; cursor: pointer;
    font-family: inherit; font-size: 1rem; font-weight: 600; transition: 0.3s;
}
.nav-tab i { width: 30px; color: var(--primary-red); }
.nav-tab:hover { background: rgba(255,255,255,0.05); }
.nav-tab.active { background: var(--primary-red); color: #fff; border-color: var(--primary-red); }
.nav-tab.active i { color: #fff; }

/* Main Content Styling */
.dashboard-main { min-height: 500px; }
.tab-pane { display: none; animation: fadeIn 0.4s ease-in-out; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.pane-title { font-size: 2rem; margin-bottom: 30px; border-bottom: 1px solid var(--glass-border); padding-bottom: 15px; }

/* Achievement Grid */
.achievement-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.achievement-card { background: #111; border-radius: 10px; overflow: hidden; border: 1px solid #333; transition: 0.3s; }
.achievement-card:hover { border-color: var(--primary-red); transform: translateY(-5px); }
.achievement-card img { width: 100%; height: 160px; object-fit: cover; border-bottom: 2px solid var(--primary-red); }
.achievement-info { padding: 15px; }
.achievement-info h4 { font-size: 1.1rem; margin-bottom: 5px; }
.achievement-info p { font-size: 0.85rem; color: var(--text-muted); }

/* Insignia Grid */
.insignia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.insignia-card { background: #111; border: 1px solid #333; padding: 25px 20px; border-radius: 10px; text-align: center; }
.insignia-card i { font-size: 2.5rem; color: var(--primary-red); margin-bottom: 15px; }
.insignia-card .label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.insignia-card h4 { font-size: 1.2rem; }

/* Sensei Data Table */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { background: rgba(229, 57, 53, 0.1); color: var(--primary-red); padding: 15px; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; }
.data-table td { padding: 15px; border-bottom: 1px solid #333; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

.action-btn { background: transparent; border: none; cursor: pointer; font-family: inherit; font-size: 0.9rem; margin-right: 10px; transition: 0.3s; }
.action-btn.edit { color: #2196F3; }
.action-btn.view { color: #4CAF50; }
.action-btn:hover { text-decoration: underline; }

/* Mobile Adjustments */
@media (max-width: 900px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar-nav { flex-direction: row; justify-content: center; }
    .nav-tab { text-align: center; padding: 10px; font-size: 0.9rem; }
    .nav-tab i { display: none; } /* Hide icons on mobile to save space */
}
/* Biography Link Styling */
.bio-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

.bio-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.bio-link:hover::after {
    width: 100%;
}
/* --- FIND YOUR DOJO RE-STYLING --- */

/* 1. Make the Dojo Name (h4) BIG and BOLD */
.branch-item h4 {
    font-size: 1.4rem; 
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* 2. Make the Address (p) SMALLER and MUTED */
.branch-item p {
    font-size: 0.95rem; 
    color: var(--text-muted, #a0a0a0); 
    line-height: 1.6;
    margin: 0; 
}

/* 3. Make the map pin icon pop with your theme color */
.branch-item p i {
    color: var(--primary-red, #e53935);
    margin-right: 8px;
}
/* --- GROUP PHOTO SLIDER --- */
.group-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* Hides the second image until it slides in */
    border-radius: 8px;
}

.group-slider-track {
    display: flex;
    width: 100%;
    /* CHANGED: Increased from 0.8s to 1.5s for a much smoother, slower slide */
    transition: transform 1.5s ease-in-out; 
}

.group-photo {
    min-width: 100%; /* Forces both images to be full width */
    height: auto;
    max-height: 500px; /* Adjust this if you want them taller/shorter */
    object-fit: cover;
    margin: 0; /* Removes any old spacing */
}

/* Arrow Button Styling */
.group-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    border-radius: 4px;
    font-size: 1.5rem;
}

.group-arrow:hover { background: var(--primary-red, #e53935); }
.group-arrow.prev { left: 15px; }
.group-arrow.next { right: 15px; }
/* Ensure your gallery items are relative so the overlay stays inside them */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Or whatever your current border-radius is */
    display: block; /* Helps the <a> tag behave like a standard block */
}

/* --- The Video Play Overlay --- */
.play-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darkens the thumbnail slightly */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

/* The Play Icon */
.play-overlay i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

/* --- Hover Effects --- */
.video-item:hover .play-overlay {
    background: rgba(0, 0, 0, 0.1); /* Lightens up on hover */
}

.video-item:hover .play-overlay i {
    color: var(--primary-red, #e53935); /* Turns your Dojo Red */
    transform: scale(1.15); /* Zooms the play button slightly */
    filter: drop-shadow(0 0 15px rgba(229, 57, 53, 0.8)); /* Red Glow */
}
/* Makes the video act exactly like a background image */
.gallery-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents squishing */
    display: block;
}

/* Ensure the play overlay sits on top of the video */
.video-item {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 8px; /* Match your gallery border radius */
}

/* (Keep your existing .play-overlay and hover CSS from the previous step!) */
/* --- Desktop Default Settings --- */
/* Hide the hamburger button on big screens */
.hamburger {
    display: none;
    font-size: 2rem;
    color: white; /* Make sure this contrasts with your navbar! */
    cursor: pointer;
}

/* --- Mobile Settings (Screens smaller than 768px) --- */
@media (max-width: 768px) {
    /* Show the hamburger icon */
    .hamburger {
        display: block;
        z-index: 9999;
    }

    /* Redesign the link list into a vertical dropdown */
    .nav-links {
        display: none; /* Hide it entirely by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: #111; /* Dark background so it's readable */
        position: absolute;
        top: 100%; /* Pushes it directly below the navbar */
        left: 0;
        padding: 20px 0;
        z-index: 1000;
        text-align: center;
        border-bottom: 2px solid var(--primary-red);
    }

    /* Add some spacing between the vertical links */
    .nav-links li {
        margin: 15px 0;
    }

    /* NEW CLASS: We will use JavaScript to add this class when clicked */
    /* Force the menu to show with !important and higher specificity */
    nav .nav-links.active {
        display: flex !important; 
        opacity: 1 !important;
        visibility: visible !important;
    }
}