:root {
    --primary-color: #1A237E; /* Dark Blue */
    --secondary-color: #FFD700; /* Gold */
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --button-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --button-glow: 0 0 15px rgba(255, 215, 0, 0.7);
}

body {
    margin-top: 120px; /* Default margin for header, adjusted by JS */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: #f4f4f4;
}

/* Base Link Styles */
a {
    text-decoration: none;
    color: inherit;
}

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

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    letter-spacing: 1px;
    display: block;
    text-align: center;
    flex-grow: 1;
}

.header-spacer {
    width: 40px;
}

/* Hamburger Menu */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002; /* Higher than expanded menu */
    margin-right: 15px;
    order: -1; /* Ensure it's always first on mobile */
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

/* Hide desktop buttons and nav on mobile */
.header-buttons-desktop,
.main-nav {
    display: none;
}

/* Mobile-specific button area */
.header-buttons-mobile {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    width: 100%;
    flex-wrap: wrap;
    z-index: 999; /* Lower than expanded menu */
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

/* General Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color-light);
    box-shadow: var(--button-shadow);
    white-space: nowrap;
}

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

.btn-primary {
    background: linear-gradient(135deg, #FFD700, #FFA500); /* Gold to Orange gradient */
    color: var(--primary-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
}

.btn-secondary {
    background-color: #4CAF50; /* Green */
    color: var(--text-color-light);
}

.btn-secondary:hover {
    background-color: #45a049;
}

.btn-tertiary {
    background-color: #2196F3; /* Blue */
    color: var(--text-color-light);
}

.btn-tertiary:hover {
    background-color: #1976D2;
}


/* Mobile Navigation (Hidden by default) */
.main-nav.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    padding-top: 100px; /* Placeholder, adjusted by JS */
    z-index: 1001; /* Higher than buttons, below hamburger */
    overflow-y: auto;
}

.main-nav .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.main-nav .nav-list li {
    text-align: center;
    margin-bottom: 15px;
}

.main-nav .nav-list a {
    display: block;
    padding: 15px 20px;
    font-size: 1.2em;
    color: var(--text-color-light);
    transition: background-color 0.3s ease;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    background-color: rgba(255, 215, 0, 0.2); /* Gold tint */
    color: var(--secondary-color);
}

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

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 20px;
}

.footer-section h3 {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-section p,
.footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.6);
}

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

    body {
        margin-top: 80px; /* Adjusted for desktop header height */
    }

    .header-top {
        flex-grow: 0;
        width: auto;
    }

    .logo {
        text-align: left;
        flex-grow: 0;
        margin-right: 30px;
    }

    .hamburger-menu,
    .header-buttons-mobile,
    .header-spacer {
        display: none;
    }

    .main-nav {
        display: flex;
        flex-grow: 1;
        justify-content: center;
        margin: 0 20px;
        position: static;
        height: auto;
        padding: 0;
        background: none;
        overflow-y: visible;
    }

    .main-nav .nav-list {
        display: flex;
        gap: 25px;
        width: auto;
    }

    .main-nav .nav-list li {
        margin-bottom: 0;
    }

    .main-nav .nav-list a {
        font-size: 1em;
        padding: 8px 15px;
        border-radius: 5px;
    }

    .main-nav .nav-list a:hover,
    .main-nav .nav-list a.active {
        background-color: rgba(255, 215, 0, 0.2);
        color: var(--secondary-color);
    }

    .header-buttons-desktop {
        display: flex;
        gap: 15px;
        z-index: 1000;
    }
}

/* Mobile specific adjustments (max-width: 768px) */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 15px;
        min-height: auto;
    }
    .header-top {
        justify-content: space-between;
    }
    .logo {
        font-size: 1.8em;
        flex-grow: 1;
        text-align: center;
        margin-right: 0; /* Reset for mobile */
    }
    .header-spacer {
        order: 1; /* Ensure spacer is last to push logo to center */
    }
    .main-nav.active {
        padding-top: 150px; /* Placeholder, adjusted by JS */
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    .footer-section {
        margin: 15px 0;
        min-width: unset;
        width: 100%;
        text-align: center;
    }
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .header-buttons-mobile .btn {
        flex-basis: calc(50% - 10px); /* Two buttons per row on small screens */
    }
}
