        /* --- Base Styles --- */
       /* --- Base Styles --- */
html {
    margin: 0;
    padding: 0;
    background-color: #121212;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #b3b3b3;
    line-height: 1.6;
    overflow-x: hidden; /* Kept ONLY on the body to prevent the double scrollbar */
}

      /* --- General Link Styles --- */
a {
    color: #ff4757; /* Sith Red */
    text-decoration: none; /* Keeps it looking clean */
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #ff6b81; /* Slightly brighter red when hovered */
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.5); /* Adds a subtle dark side glow */
}

/* Make sure we don't accidentally turn the logo red! */
.logo {
    color: #ffffff !important;
} 
 
        /* --- Navigation Styles --- */
        #navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: transparent; 
            padding: 30px 10%;
            width: 100%;
            box-sizing: border-box;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1000;
            transition: all 0.4s ease;
        }

        .logo {
            font-family: 'Oswald', sans-serif;
            text-transform: uppercase;
            font-size: 2.2rem;
            font-weight: 700;
            color: #ffffff;
            letter-spacing: 2px;
            text-decoration: none;
        }

        .logo .accent {
            color: #ff4757; 
        }

        .nav-links {
            list-style: none;
            display: flex;
            gap: 30px;
            margin: 0;
            padding: 0;
        }

        .nav-links a {
            text-decoration: none;
            color: #ffffff;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .nav-links a:hover {
            color: #ff4757;
        }

        #navbar.scrolled {
            background-color: rgba(18, 18, 18, 0.9);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            padding: 15px 10%;
        }

        /* --- Section Logic --- */
        .content-section {
            display: flex;
            align-items: center;
            padding: 80px 10%;
            gap: 50px;
            box-sizing: border-box;
        }

        .content-section:first-of-type {
            min-height: 90vh; 
            background: linear-gradient(135deg, #000000 0%, #000000 50%, #2a0000 100%);
            padding-top: 120px; 
        }

        .content-section:nth-child(even) {
            flex-direction: row-reverse;
            background-color: #1a1a1a; 
        }

        .section-image, .section-text {
            flex: 1;
        }

        .section-image img {
            width: 100%;
            max-width: 600px;
            height: auto;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        /* --- Typography Updates --- */
        .section-text h1 {
            font-family: 'Oswald', sans-serif;
            text-transform: uppercase;
            font-size: 4rem; 
            margin-bottom: 20px;
            color: #ffffff;
            line-height: 1.1;
        }

        .section-text h2 {
            font-family: 'Oswald', sans-serif;
            text-transform: uppercase;
            font-size: 2.5rem;
            color: #ffffff;
            line-height: 1.2;
        }

        .section-text h1::after,
        .section-text h2::after {
            content: '';
            display: block;
            width: 60px;
            height: 4px;
            background-color: #ff4757;
            margin-top: 15px;
            border-radius: 2px;
        }

        /* --- Animation Styles --- */
        .fade-in-up {
            opacity: 0;
            transform: translateY(40px); /* Starts 40px lower */
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
            will-change: opacity, transform; /* Performance optimization */
        }

        /* When the JS adds the 'visible' class, it animates to this state */
        .fade-in-up.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Stagger the animations so the image appears slightly before the text */
        .section-image.fade-in-up { transition-delay: 0.1s; }
        .section-text.fade-in-up { transition-delay: 0.3s; }

        /* --- Responsive --- */
        @media (max-width: 768px) {
            .content-section, .content-section:nth-child(even) {
                flex-direction: column;
                text-align: center;
                padding: 100px 5% 40px 5%;
            }
            .section-text h1 { font-size: 3rem; }
            
            .section-text h1::after,
            .section-text h2::after {
                margin: 15px auto 0 auto;
            }

            /* Updates for the mobile view at the bottom of style.css */
            .temple-card {
                flex-direction: column; 
            }
            .temple-logo {
                border-right: none;
                border-bottom: 1px solid #3a3a3a;
                padding: 40px 20px;
            }
            .temple-info {
                padding: 30px 20px;
                text-align: left; /* Keeps text left-justified on mobile */
            }
            .temple-links {
                justify-content: flex-start; /* Moves buttons to the left on mobile so they align with text */
                margin-top: 20px;
            }
        }

        /* --- Footer Styles --- */
        #site-footer {
            background-color: #0a0a0a; /* Slightly darker than the body for contrast */
            padding: 60px 10% 20px 10%;
            border-top: 1px solid #222; /* Subtle divider line */
        }

        .footer-columns {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap; /* Allows columns to stack on small screens */
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column {
            flex: 1;
            min-width: 200px; /* Ensures columns don't get too squished on mobile */
        }

        .footer-column h3 {
            font-family: 'Oswald', sans-serif;
            text-transform: uppercase;
            color: #ffffff;
            font-size: 1.5rem;
            margin-bottom: 20px;
            letter-spacing: 1px;
        }

        /* Small red accent line for footer headers */
        .footer-column h3::after {
            content: '';
            display: block;
            width: 30px;
            height: 2px;
            background-color: #ff4757;
            margin-top: 8px;
            border-radius: 1px;
        }

        .footer-column ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-column ul li {
            margin-bottom: 12px;
        }

        .footer-column ul li a {
            color: #b3b3b3;
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 0.95rem;
        }

        /* Red hover effect to match navigation */
        .footer-column ul li a:hover {
            color: #ff4757;
        }

        /* --- Footer Disclaimer --- */
        .footer-disclaimer {
            text-align: center;
            font-size: 0.75rem; /* Small font size */
            color: #666666; /* Muted gray so it isn't too bright */
            border-top: 1px solid #222;
            padding-top: 20px;
            line-height: 1.6;
        }

        /* --- Call to Action Button --- */
        .cta-button {
            display: inline-block;
            margin-top: 30px;
            padding: 15px 40px;
            background-color: transparent;
            color: #ff4757; /* Sith Red text */
            font-family: 'Oswald', sans-serif;
            font-size: 1.2rem;
            font-weight: 700;
            text-transform: uppercase;
            text-decoration: none;
            letter-spacing: 2px;
            border: 2px solid #ff4757;
            border-radius: 4px;
            transition: all 0.3s ease;
            box-shadow: 0 0 10px rgba(255, 71, 87, 0.1); /* Very subtle default glow */
        }

        /* The Hover Glow Effect */
        .cta-button:hover {
            background-color: #ff4757;
            color: #ffffff;
            box-shadow: 0 0 20px rgba(255, 71, 87, 0.6), 0 0 40px rgba(255, 71, 87, 0.3); /* Intense red glow */
            transform: translateY(-3px); /* Lifts the button slightly off the page */
        }

        /* --- Social Media Icons --- */
        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }

        .social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: #1a1a1a;
            color: #b3b3b3;
            border-radius: 50%; /* Makes them perfect circles */
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 1.2rem;
            border: 1px solid #333;
        }

        /* Sith Red Hover State */
        .social-icons a:hover {
            background-color: #ff4757;
            color: #ffffff;
            border-color: #ff4757;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
        }

        /* --- Gallery Section --- */
        .gallery-section {
            padding: 80px 10%;
            background-color: #121212;
            text-align: center;
        }

        .gallery-section h2 {
            font-family: 'Oswald', sans-serif;
            text-transform: uppercase;
            font-size: 3rem;
            color: #ffffff;
            margin-bottom: 40px;
        }

        /* Center the red accent line for the gallery header */
        .gallery-section h2::after {
            content: '';
            display: block;
            width: 60px;
            height: 4px;
            background-color: #ff4757;
            margin: 15px auto 0 auto;
            border-radius: 2px;
        }

        /* The CSS Grid Magic */
        .gallery-grid {
            display: grid;
            /* This tells the grid to fit as many 250px columns as possible, and stretch them to fill the space */
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .gallery-item {
            position: relative;
            overflow: hidden; /* Keeps the zoom effect contained inside the box */
            border-radius: 8px;
            aspect-ratio: 1 / 1; /* Makes all images perfect squares */
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Ensures images fill the square without stretching */
            transition: transform 0.5s ease, filter 0.5s ease;
            filter: grayscale(30%); /* Gives a slightly darker, grittier look by default */
        }

        /* The Hover Effect */
        .gallery-item:hover img {
            transform: scale(1.1); /* Zooms the image in slightly */
            filter: grayscale(0%); /* Brings back full color */
        }
        
        /* Subtle red glow around the box on hover */
        .gallery-item::after {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            border-radius: 8px;
            box-shadow: inset 0 0 0 0 rgba(255, 71, 87, 0);
            transition: box-shadow 0.3s ease;
            pointer-events: none; /* Prevents the overlay from blocking clicks */
        }

        .gallery-item:hover::after {
            box-shadow: inset 0 0 0 3px #ff4757; /* Adds a red inner border */
        }

        /* --- Lightbox Styles --- */
        #lightbox {
            display: none; /* Hidden by default */
            position: fixed;
            z-index: 2000; /* Sits on top of absolutely everything, even the navbar */
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9); /* Deep, dark overlay */
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px); /* Blurs the website behind it */
        }

        #lightbox.active {
            display: flex; /* Flexbox automatically centers the image */
        }

        #lightbox-img {
            max-width: 90%;
            max-height: 90vh;
            border-radius: 8px;
            box-shadow: 0 0 30px rgba(255, 71, 87, 0.4); /* Sith red glow around the full image */
            animation: zoomIn 0.3s ease-out; /* Quick pop-in animation */
        }

        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 40px;
            color: #ffffff;
            font-size: 3rem;
            font-family: 'Oswald', sans-serif;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .lightbox-close:hover {
            color: #ff4757;
        }

        /* Lightbox pop-in animation */
        @keyframes zoomIn {
            from { transform: scale(0.9); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        
/* The Card Wrapper */
.temple-card {
    display: flex;
    background-color: #2b2b2b; /* Lighter rectangle against the dark background */
    border-radius: 16px; /* Slightly softer rounded corners */
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid #3a3a3a; /* Lighter border to match */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.temple-card:hover {
    transform: translateY(-5px);
    border-color: #ff4757;
}

/* Logo Section */
.temple-logo {
    flex: 0 0 250px;
    background-color: rgba(0, 0, 0, 0.2); /* Very subtle darkening behind just the logo */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-right: 1px solid #3a3a3a;
}

.temple-logo img {
    width: 100%;
    max-width: 160px;
    height: auto;
    padding: 5px;
}

/* Text and Links Section */
.temple-info {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left; /* Explicitly left-justified text */
}

.temple-info h2 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 2.2rem;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 15px;
}

.temple-info p {
    color: #cccccc; /* Slightly brighter text for readability on the lighter card */
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Social Buttons Row */
.temple-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: auto; /* Pushes the buttons to the very bottom of the card */
    justify-content: flex-end; /* Pushes the buttons to the right */
}

/* --- Temples Directory --- */
.temples-container {
    padding-top: 160px;   /* Pushes the header safely below the navbar */
    padding-bottom: 80px;
    max-width: 1000px;    /* Stops the cards from stretching too wide on big screens */
    margin: 0 auto;       /* Centers the entire container on the page */
    width: 85%;           /* Ensures there is always a gap on the left and right edges */
    min-height: 80vh;
}

/* --- Honorary Members Directory --- */
.members-container {
    padding-top: 160px;
    padding-bottom: 80px;
    max-width: 1200px; /* Slightly wider to fit multiple cards across */
    margin: 0 auto;
    width: 90%;
    min-height: 80vh;
}

.members-header {
    text-align: center;
    margin-bottom: 60px;
}

.members-header h1 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.members-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #ff4757;
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.members-grid {
    display: grid;
    /* Automatically fits as many 280px wide cards as possible */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* The Member Card Wrapper */
.member-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #222;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: #ff4757;
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.2);
}

/* Member Photo Box */
.member-photo {
    width: 100%;
    aspect-ratio: 1 / 1; /* Keeps images a perfect square */
    overflow: hidden;
    background-color: #0a0a0a;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%); /* Moody, slightly desaturated look */
    transition: filter 0.5s ease, transform 0.5s ease;
}

.member-card:hover .member-photo img {
    filter: grayscale(0%); /* Snaps to full color on hover */
    transform: scale(1.05); /* Slight zoom */
}

/* Member Details */
.member-info {
    padding: 25px;
    text-align: center;
    flex: 1; /* Pushes the card to equal height if text length varies */
    display: flex;
    flex-direction: column;
}

.member-info h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0 0 5px 0;
}

.member-info .title {
    color: #ff4757; /* Sith Red Accent */
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.member-info p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* --- Dropdown Menu Styles --- */
.dropdown {
    position: relative; /* Anchors the dropdown menu to this specific link */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px); /* Centers it and pushes it down */
    background-color: rgba(18, 18, 18, 0.35); /* Dark translucent background */
    backdrop-filter: blur(12px); /* The frosted glass effect */
    -webkit-backdrop-filter: blur(12px); /* Safari support */
    min-width: 220px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 12px; /* Soft rounded edges */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle highlight edge */
    
    /* Hidden by default for the animation */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Show the menu when hovering over the parent 'li' */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(15px); /* Slides up smoothly */
}

/* Individual Dropdown Links */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 25px;
    font-size: 0.95rem;
    color: #cccccc;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 500;
}

/* Sith Red hover effect inside the dropdown */
.dropdown-menu li a:hover {
    color: #ff4757;
    background-color: rgba(255, 255, 255, 0.03); /* Extremely subtle highlight behind the text */
}

/* --- Join Page Styles --- */
.join-container {
    padding-top: 160px;
    padding-bottom: 80px;
    max-width: 1000px;
    margin: 0 auto;
    width: 85%;
    min-height: 80vh;
}

.join-header {
    text-align: center;
    margin-bottom: 60px;
}

.join-header h1 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.join-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #ff4757;
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

/* Step Cards for the Guidelines */
.step-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid #222;
    border-left: 4px solid #ff4757; /* Strong red accent line on the left */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.step-card h2 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 2rem;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-card .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ff4757;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-card p {
    color: #cccccc;
    font-size: 1.05rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.step-card ul {
    color: #cccccc;
    margin-bottom: 20px;
    padding-left: 20px;
}

.step-card ul li {
    margin-bottom: 10px;
}

.step-card .note {
    font-style: italic;
    color: #888888;
    font-size: 0.9rem;
    background-color: #111;
    padding: 15px;
    border-radius: 6px;
    border-left: 2px solid #555;
}

/* 6-Image Submission Grid */
.submission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.submission-item {
    background-color: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    text-align: center;
}

.submission-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/5; /* Keeps portrait ratio for full-body costume shots */
    object-fit: cover;
}

.submission-item .caption {
    padding: 10px;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    background-color: #222;
}

/* --- Dynamic Flow Gallery --- */
.flow-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
}

/* The invisible flex-grow element prevents the last row from stretching wildly */
.flow-gallery::after {
    content: '';
    flex-grow: 999;
}

.flow-gallery .gallery-img-wrapper {
    height: 250px; /* The fixed height for all images */
    flex-grow: 1; /* Allows the width to adapt naturally */
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.flow-gallery img {
    height: 100%;
    min-width: 100%;
    object-fit: cover; /* Ensures the image fills the space without squishing */
    cursor: pointer;
    filter: grayscale(30%); /* Keeping your Dark Side aesthetic */
    transition: transform 0.5s ease, filter 0.5s ease;
}

.flow-gallery img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Sith Red inner border on hover (reusing your gallery logic) */
.flow-gallery .gallery-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 8px;
    box-shadow: inset 0 0 0 0 rgba(255, 71, 87, 0);
    transition: box-shadow 0.3s ease;
    pointer-events: none;
}

.flow-gallery .gallery-img-wrapper:hover::after {
    box-shadow: inset 0 0 0 3px #ff4757;
}

/* Adjust height for mobile phones */
@media (max-width: 768px) {
    .flow-gallery .gallery-img-wrapper {
        height: 150px;
    }
}

/* --- High Command Tiers --- */
.tier-section {
    margin-bottom: 80px;
}

.tier-header {
    text-align: center;
    margin-bottom: 40px;
}

.tier-header h2 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 2.5rem;
    color: #ff4757; /* Sith Red for the tier titles */
    letter-spacing: 2px;
    margin: 0;
}

/* The Emperor Layout (Centered and Larger) */
.emperor-grid {
    display: flex;
    justify-content: center;
}

.emperor-grid .member-card {
    max-width: 400px; /* Makes the Emperor's card wider than the rest */
    width: 100%;
}

.emperor-grid .member-info h3 {
    font-size: 2rem; /* Larger font for the supreme leader */
}

/* High Council Layout (Centered Grid for 4-6 items) */
.council-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 900px; /* Constrains the width so 4 items center beautifully */
    margin: 0 auto;
}

.regent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 900px; /* Constrains the width so 4 items center beautifully */
    margin: 0 auto;
}

/* ==========================================================================
   Sith Costume Requirements Styles
   ========================================================================== */

.requirements-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    color: #d1d1d1; /* Soft gray for readability against dark backgrounds */
    line-height: 1.6;
}

/* Individual Requirement Blocks */
.requirements-section {
    background-color: #1a1a1a; /* Dark card background */
    border-left: 5px solid #b30000; /* Imposing Sith-red accent line */
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

.requirements-section:hover {
    transform: translateX(5px); /* Slight hover effect to make it feel interactive */
}

/* Section Headings */
.requirements-section h2 {
    font-family: 'Oswald', sans-serif;
    color: #ff3333; /* Bright, saber-like red */
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* Paragraphs within sections */
.requirements-section p {
    margin-bottom: 20px;
}

/* Customizing the lists to fit the theme */
.requirements-section ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.requirements-section li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
}

/* FontAwesome icon as a custom bullet point */
.requirements-section li::before {
    content: "\f0da"; /* FontAwesome solid right caret */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #b30000; 
}

/* Make the bold labels (like "Color Palette:") pop a bit more */
.requirements-section li strong {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Nested lists (Used in the Lightsaber section) */
.requirements-section ul ul {
    margin-top: 15px;
    padding-left: 15px;
    border-left: 1px dashed #444; /* Subtle visual nesting indicator */
}

.requirements-section ul ul li::before {
    content: "\f111"; /* Small solid circle for nested lists */
    font-size: 0.4rem;
    top: 8px;
    left: 10px;
}

/* Desktop: Hide the hamburger by default */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #fff; /* Ensures it shows up on dark theme */
    padding: 10px;
}

/* Mobile: Under 768px */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show hamburger */
    }

    .nav-links {
        display: none; /* Hide main links by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Drops right below the navbar */
        left: 0;
        background-color: #111; /* Dark Sith theme background */
        padding: 0;
        margin: 0;
        z-index: 1000;
    }

    /* Show the main menu when the hamburger is clicked */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        width: 100%;
        border-bottom: 1px solid #333; /* Separator lines for mobile */
    }

    .nav-links li a {
        display: block;
        padding: 15px;
    }

/* Mobile Dropdown Styling - INSIDE your max-width: 768px media query */
    .dropdown-menu {
        display: none; 
        position: static !important; /* Overrides desktop absolute positioning */
        background-color: #222; 
        width: 100%;
        padding: 0 !important; /* Strips default list indents */
        margin: 0 !important;
        left: auto !important; /* Kills any leftward pull from desktop */
        transform: none !important; /* Kills any centering transforms from desktop */
        box-shadow: none !important; /* Optional: removes desktop hover shadows */
    }
    
    /* Show the sub-menu when the parent link is tapped */
    .dropdown.active .dropdown-menu {
        display: flex !important;
        flex-direction: column;
        align-items: center; /* Ensures the text stays centered */
    }

    /* Flip the little arrow when the dropdown is open */
    .dropdown.active .dropbtn i {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }
}

    