:root {
    --primary-color: #1A237E;
    --secondary-color: #FFD700;
    --text-light: #f8f8f8;
    --text-dark: #333;
    --button-bg-primary: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    --button-text-primary: var(--primary-color);
    --button-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --button-hover-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 100px; /* Adjust based on header height */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 80px; /* Minimum height, content adapts */
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    flex-direction: column; /* Default to column for mobile */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-top-row {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between; /* For mobile: hamburger left, logo center, desktop-nav-buttons right (hidden) */
}

.logo {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    flex-grow: 1; /* Allows logo to take available space */
    text-align: center; /* Centered on mobile */
    padding: 10px 0;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001; /* Above other elements */
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-nav {
    display: none; /* Hidden on mobile by default */
    width: 100%;
    margin-top: 10px; /* Space below header-top-row on desktop if needed */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.main-nav a {
    color: var(--text-light);
    font-size: 1.1em;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary-color);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.desktop-nav-buttons {
    display: none; /* Hidden on mobile by default */
    margin-left: auto; /* Push to the right on desktop */
}

.header-buttons-mobile {
    display: none; /* Hidden on desktop */
    width: 100%;
    padding: 10px 0;
    justify-content: center;
    gap: 15px;
    background-color: var(--primary-color); /* Matches header background */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Below hamburger overlay */
}

.mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000; /* Below hamburger button, above header-buttons-mobile */
    padding-top: 100px; /* Offset for fixed header */
    overflow-y: auto;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: all;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav li {
    margin-bottom: 15px;
}

.mobile-nav a {
    color: var(--text-light);
    font-size: 1.5em;
    padding: 10px 20px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1em;
    text-decoration: none; /* No underline */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--button-shadow);
}

.btn-primary {
    background: var(--button-bg-primary);
    color: var(--button-text-primary);
    border: none;
}

.btn-primary:hover {
    box-shadow: var(--button-hover-shadow);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 20px;
    font-size: 0.9em;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-info a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-info a:hover {
    color: #fff;
}

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

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

/* Responsive */
@media (min-width: 769px) {
    .site-header {
        min-height: 90px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 40px;
    }

    .header-container {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        height: 100%;
        gap: 0;
        position: relative; /* For absolute positioning */
    }

    .header-top-row {
        flex-grow: 0;
        width: auto;
        justify-content: flex-start;
        align-items: center;
        display: flex;
    }

    .logo {
        text-align: left;
        flex-grow: 0;
        margin-right: 30px; /* Space between logo and nav */
    }

    .desktop-nav-buttons {
        position: absolute; /* Position buttons absolutely relative to header-container */
        right: 0; /* Align to right edge of header-container */
        top: 50%; /* Center vertically */
        transform: translateY(-50%);
        display: flex !important; /* Show buttons on desktop */
        align-items: center;
        gap: 10px; /* Space between buttons if multiple */
        z-index: 10; /* Ensure buttons are above other elements */
    }

    .hamburger-menu {
        display: none;
    }

    .main-nav {
        display: flex; /* Use flex instead of block */
        width: auto;
        max-width: calc(100% - 200px); /* Reserve space for buttons (button width ~150px + gap 40px + padding 10px) */
        margin-top: 0;
        flex-grow: 1; /* Allows nav to take center space */
        align-items: center;
        justify-content: center; /* Center menu items */
        margin-left: 0;
        margin-right: 40px; /* Gap between menu and buttons */
        padding-right: 0;
        box-sizing: border-box;
    }

    .main-nav ul {
        justify-content: center; /* Center menu items */
        margin: 0;
    }

    .header-buttons-mobile {
        display: none; /* Hide mobile buttons */
    }

    .mobile-menu-overlay {
        display: none !important; /* Ensure it's hidden */
    }
}

@media (max-width: 768px) {
    .site-header {
        min-height: auto; /* Let content define height */
        padding: 10px 15px;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
    }

    .header-top-row {
        justify-content: space-between; /* Hamburger left, logo center, desktop-buttons hidden */
        padding-bottom: 10px; /* Space above mobile buttons */
    }

    .logo {
        font-size: 1.8em;
        padding: 0;
        text-align: center;
        flex-grow: 1; /* To center it */
        order: 2; /* Place logo in the middle */
    }

    .hamburger-menu {
        display: block; /* Show hamburger */
        order: 1; /* Place hamburger first */
    }

    .desktop-nav-buttons {
        display: block; /* Keep it visible for flex sizing */
        opacity: 0; /* Make it invisible */
        pointer-events: none; /* Make it unclickable */
        order: 3; /* Place empty space last */
        width: 50px; /* Give it a fixed width to push logo to center */
        margin-left: 0;
    }

    .header-buttons-mobile {
        display: flex; /* Show mobile buttons */
        order: 4; /* Place below header-top-row */
        margin-top: 5px; /* Space between logo and buttons */
        width: 100%;
    }

    .main-nav {
        display: none; /* Hide desktop nav */
    }

    .footer-columns {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-col {
        min-width: auto;
        width: 100%;
    }

    .footer-info p,
    .footer-nav li {
        text-align: center;
    }
}