/* General Styles */
:root {
    --primary-color: #004D99;
    --secondary-color: #FFD700;
    --text-color: #333;
    --light-text-color: #f8f8f8;
    --bg-dark: #1a1a1a;
}

body {
    font-family: 'Arial', sans-serif;
    margin-top: 100px; /* Adjust for fixed header height */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.no-scroll {
    overflow: hidden;
}

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

.header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    padding: 5px 0;
}

.main-nav ul,
.mobile-nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li,
.mobile-nav-menu li {
    margin: 0 15px;
}

.main-nav a,
.mobile-nav-menu a {
    color: var(--light-text-color);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

.header-buttons {
    display: flex;
    gap: 10px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--light-text-color);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #FFC107; /* Slightly darker gold */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #E60000; /* Red for login/urgent */
}

.btn-secondary:hover {
    background-color: #CC0000;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-tertiary {
    background-color: #28A745; /* Green for download/success */
}

.btn-tertiary:hover {
    background-color: #218838;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001; /* Ensure it's above other elements */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--light-text-color);
    margin-bottom: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu span:last-child {
    margin-bottom: 0;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    display: none; /* Hidden by default */
    position: fixed;
    top: 60px; /* Adjust based on header-top-bar height */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px); /* Full height minus header */
    background-color: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999; /* Below hamburger, above content */
    padding-top: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.mobile-nav-menu.active {
    transform: translateX(0);
}

.mobile-nav-menu ul {
    flex-direction: column;
    align-items: center;
}

.mobile-nav-menu li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
}

.mobile-nav-menu a {
    padding: 15px 20px;
    font-size: 1.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu li:last-child a {
    border-bottom: none;
}

/* Mobile Buttons Area */
.mobile-buttons-area {
    display: none; /* Hidden by default on desktop */
    background-color: var(--primary-color);
    padding: 10px 20px;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 998; /* Below hamburger and mobile nav, but above content */
}

/* Footer Styles */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--light-text-color);
    padding: 40px 20px 20px;
    font-size: 0.9em;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto 30px;
    text-align: left;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin: 15px;
}

.footer-column h3 {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

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

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

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.8em;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .site-header {
        min-height: auto;
        padding: 0;
    }

    .header-top-bar {
        justify-content: space-between;
        padding: 0 20px;
    }

    .hamburger-menu {
        display: block;
        order: 1;
        margin-right: 15px;
    }

    .logo {
        order: 2;
        flex-grow: 1; /* Allow logo to take available space */
        text-align: center;
        font-size: 24px;
    }

    .desktop-right-elements {
        order: 3;
        flex-grow: 1; /* Pushes logo to center by taking remaining space */
        display: flex;
        justify-content: flex-end; /* Align elements to the right, or empty space */
        align-items: center;
    }

    .main-nav, .header-buttons.desktop-only {
        display: none;
    }

    .mobile-nav-menu {
        display: block;
    }

    .mobile-buttons-area {
        display: flex;
        min-height: 50px;
        z-index: 998;
    }

    /* Adjust body padding for mobile header */
    body {
        margin-top: 110px; /* 60px for top bar + 50px for button area */
    }

    .site-header.mobile-expanded {
        min-height: 100vh; /* If you want header to take full screen when menu is open */
    }

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

    .footer-column {
        min-width: unset;
        width: 100%;
        margin: 15px 0;
        text-align: center;
    }

    .footer-nav ul {
        align-items: center;
    }
}