/* --- Global Variables and Reset --- */
:root {
    --primary-red: #C40000; /* British-themed Red */
    --secondary-black: #1a1a1a;
    --background-dark: #0f0f0f;
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-stack);
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Header & Navigation --- */

.main-header {
    background-color: var(--secondary-black);
    color: var(--text-light);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Fixed position for easy access */
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Desktop Navigation */
.desktop-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0 15px;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--primary-red);
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none; /* Hide on large screens */
    background: none;
    border: none;
    color: var(--primary-red);
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    z-index: 1010;
}

/* Mobile Menu Overlay (Hidden by default) */
.mobile-nav-overlay {
    display: none; /* Controlled by JavaScript */
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.mobile-nav-overlay.open {
    display: flex;
}

.mobile-nav-overlay a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 2em;
    font-weight: bold;
    padding: 10px 0;
    transition: color 0.3s;
}

.mobile-nav-overlay a:hover {
    color: var(--primary-red);
}

/* --- Utility Classes & Buttons --- */

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
}

.primary-btn {
    background-color: var(--primary-red);
    color: var(--text-light);
    border: 2px solid var(--primary-red);
}

.primary-btn:hover {
    background-color: #a00000; /* Darker red */
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.secondary-btn:hover {
    background-color: var(--primary-red);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* --- Section Styling --- */

main {
    padding-top: 60px; /* Offset for fixed header */
}

.content-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5em;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1em;
    margin-bottom: 40px;
}

/* --- 1. Hero Section (Home) --- */

.hero-section {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), /* Dark Overlay */
        url('img/bg.png') no-repeat center center/cover; /* *** IMPORTANT: Change this URL *** */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
}

.hero-content {
    padding: 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 5em;
    color: var(--primary-red);
    margin-bottom: 15px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-style: italic;
}

/* --- 2. Rules Page --- */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.rule-card {
    background-color: var(--secondary-black);
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    border-left: 5px solid var(--primary-red);
    transition: transform 0.3s;
}

.rule-card:hover {
    transform: translateY(-5px);
}

.rule-card h3 {
    color: var(--primary-red);
    margin-bottom: 10px;
}

/* --- 3. Images / Promo Page --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item img, .gallery-item .placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img, .gallery-item:hover .placeholder {
    transform: scale(1.05);
}

.placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333;
    color: var(--text-muted);
    font-style: italic;
}

/* --- 4. Join Us Page --- */
.join-steps {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.step-card {
    background-color: var(--secondary-black);
    padding: 30px;
    border-radius: 8px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    transition: box-shadow 0.3s;
}

.step-card:hover {
    box-shadow: 0 0 20px rgba(196, 0, 0, 0.5);
}

.step-card h3 {
    color: var(--text-light);
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.join-section .btn {
    margin-top: 20px;
}

/* --- 5. Staff Page --- */
.staff-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.staff-card {
    background-color: var(--secondary-black);
    padding: 20px;
    border-radius: 8px;
    width: 250px;
    transition: background-color 0.3s;
}

.staff-card:hover {
    background-color: #2c2c2c;
}

.staff-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-red);
}

.staff-card h3 {
    color: var(--primary-red);
    margin-bottom: 5px;
}

.staff-card p {
    color: var(--text-muted);
    font-size: 0.9em;
}

/* --- Footer --- */
footer {
    background-color: var(--secondary-black);
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid #333;
    color: var(--text-muted);
}


/* --- Responsive Design (Mobile First) --- */

/* Base styles above are for mobile/small screens. */

/* Tablet & Larger Devices (e.g., width > 768px) */
@media (max-width: 950px) {
    /* Hide desktop nav and show mobile menu button */
    .desktop-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block; /* Show menu icon on smaller screens */
    }

    .hero-content h1 {
        font-size: 3.5em;
    }
    
    .hero-content p {
        font-size: 1.2em;
    }
}

/* Very Large Screens (Desktop specific tweaks) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 6em;
    }
}
