:root {
    --primary-color: #1A2E44;
    --secondary-color: #FFC107;
    --text-light: #f8f8f8;
    --text-dark: #333;
    --bg-light: #ffffff;
    --bg-dark: #111b27;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 70px; /* Desktop header height: header-top-bar min-height */
    overflow-x: hidden;
}

/* Global Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.btn-primary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.6);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 8px rgba(26, 46, 68, 0.3);
}

.btn-secondary:hover {
    background-color: #1a3c5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 46, 68, 0.5);
}

.btn-tertiary {
    background-color: #28a745; /* Example green for 'Download' */
    color: var(--text-light);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

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

/* Header - Desktop First */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-height: 70px; /* Minimum height for desktop header */
    display: flex;
    flex-direction: column; /* Allows top-bar and mobile-buttons-area to stack */
}

.site-header a {
    color: var(--text-light);
    text-decoration: none;
}

.site-header a:hover {
    color: var(--secondary-color);
}

.header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    min-height: 50px;
    flex-grow: 1;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-right: 20px;
    order: 1; /* Desktop: logo on the left */
    display: block; /* Ensure logo is always visible */
}

.logo:hover {
    color: #e0a800;
}

/* Desktop Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    order: 2; /* Desktop: menu in the middle */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row; /* Desktop: horizontal */
    gap: 25px;
}

.main-nav li a {
    padding: 10px 0;
    font-size: 16px;
    position: relative;
}

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

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

.desktop-nav-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
    order: 3; /* Desktop: buttons on the right */
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
}

.mobile-buttons-area {
    display: none; /* Hidden on desktop */
}

.mobile-menu-overlay {
    display: none; /* Hidden on desktop */
}

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

.site-footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

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

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

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

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 15px;
}

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

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

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

/* Mobile responsive styles */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Mobile header-top-bar (60px) + mobile-buttons-area (60px) height */
    }

    .site-header {
        min-height: auto; /* Reset min-height for mobile, now determined by children */
    }

    .header-top-bar {
        padding: 10px 15px;
        min-height: 60px;
        justify-content: space-between;
        position: relative;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002; /* Above logo and buttons */
        order: 1;
    }

    .hamburger-icon {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--secondary-color);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

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

    .logo {
        font-size: 24px;
        margin: 0;
        flex: 1;
        text-align: center;
        order: 2;
        display: block; /* Ensure logo is visible */
    }
    
    .header-top-bar::after { /* Placeholder for balancing logo centering */
        content: '';
        width: 30px;
        order: 3;
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0; 
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        padding-top: 80px; /* Space from top for menu items */
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001; /* Above overlay */
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex; /* Show menu when active */
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li a {
        padding: 15px 20px;
        font-size: 18px;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-nav li:last-child a {
        border-bottom: none;
    }

    .main-nav li a::after {
        display: none; /* Remove underline effect on mobile */
    }

    .desktop-nav-buttons {
        display: none; /* Hidden on mobile */
    }

    .mobile-buttons-area {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
        background-color: var(--primary-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999; /* Below hamburger menu */
        min-height: 60px;
        flex-wrap: wrap;
    }
    .mobile-buttons-area .btn {
        flex-grow: 1;
        min-width: 100px;
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998; /* Below menu, above page content */
        opacity: 0;
        transition: opacity 0.3s ease;
    }

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

    /* Footer mobile styles */
    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-column {
        min-width: unset;
        width: 100%;
        text-align: center;
    }
    .footer-column h3 {
        margin-top: 20px;
    }
    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .footer-nav li {
        margin-bottom: 0;
    }
    .footer-nav li a {
        padding: 5px 10px;
        border-radius: 3px;
        background-color: rgba(255, 255, 255, 0.05);
    }
}

/* Ensure no-scroll works */
body.no-scroll {
    overflow: hidden;
}