/* --- GLOBAL RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #080808;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

/* --- UNIFIED HEADER & CENTERING FIX --- */
/* This overrides conflicting flex behavior from header.css */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: relative;
    height: 70px;
    background-color: #080808;
    /* Ensures header matches page theme */
    z-index: 1000;
}

/* --- Branding between Title and Tagline --- */
.nav-header-center {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    text-align: center;
    margin: 10px 0 20px 0;
    /* Space above and below the branding */
    width: 100%;
}

.logo-text {
    font-size: 1.1rem;
    letter-spacing: 12px;
    font-weight: 200;
    margin-right: -12px;
    /* Fixes optical centering */
    color: #ffffff;
    text-transform: uppercase;
}

.logo-text span {
    color: #444;
    /* Darker grey for the .25/26 */
}

/* --- Hero Adjustments --- */
.main-title {
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: 15px;
    margin-bottom: 0;
    /* Remove bottom margin to tighten space with branding */
}

.hero-tagline {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: #888;
    margin-top: 10px;
}

/* --- Keep Hero Styles --- */
.hero {
    padding: 100px 20px 60px;
    /* Reduced top padding since logo moved in */
    text-align: center;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: 15px;
    margin-top: 10px;
}

.header-left,
.header-right {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
}


.main-cta {
    margin-top: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 20px 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #670000;
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 4px;
    transition: all 0.4s ease;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* --- CATEGORY LIST (Accordion Style) --- */
.category-section {
    max-width: 900px;
    margin: 60px auto 100px;
    padding: 0 40px;
}

.category-row {
    border-bottom: 1px solid #1a1a1a;
    overflow: hidden;
    transition: all 0.4s ease;
}

.category-header {
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: padding 0.4s ease;
}

.category-header:hover {
    padding-left: 20px;
}

.category-header h2 {
    font-size: 0.8rem;
    font-weight: 200;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #888;
    transition: color 0.3s ease;
}

.category-row:hover .category-header h2 {
    color: #fff;
}

/* Rule Reveal Effect */
.category-details {
    max-height: 0;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.category-row.active .category-details {
    max-height: 200px;
    opacity: 1;
    padding-bottom: 40px;
}

.category-details p {
    font-size: 0.85rem;
    color: #555;
    max-width: 600px;
    line-height: 1.8;
}

/* --- GUIDELINES SECTION --- */
.general-guidelines {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.general-guidelines h3 {
    font-size: 0.8rem;
    letter-spacing: 6px;
    font-weight: 200;
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.guideline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.g-label {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: #444;
    margin-bottom: 10px;
}

.guideline-item p {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #888;
}

.rules-download-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-secondary {
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.btn-secondary:hover {
    color: #fff;
    border-color: #fff;
}

/* --- ACCORDION ICON FIX --- */
.category-row.active .toggle-icon {
    transform: rotate(45deg);
}

.toggle-icon {
    transition: transform 0.3s ease;
    display: inline-block;
    color: #333;
    font-size: 1.2rem;
}

/* --- MOBILE RESPONSIVE FIXES --- */
@media screen and (max-width: 768px) {
    .main-header {
        height: 70px;
        padding: 0 20px;
    }

    .logo-text {
        font-size: 0.8rem;
        letter-spacing: 6px;
        margin-right: -6px;
    }

    .header-logo-image {
        height: 35px;
    }

    .main-title {
        font-size: 1.8rem;
        letter-spacing: 8px;
    }

    .category-section {
        padding: 0 20px;
        margin-top: 40px;
    }

    .category-header h2 {
        font-size: 0.7rem;
        letter-spacing: 3px;
    }
}