/* General Body Reset & Base Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px; /* Default for desktop fixed header */
}

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

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

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 60px; /* Min height for content adaptation */
    background-color: #0A2463; /* Solid background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Floating effect */
    z-index: 1000;
    color: #fff;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    flex-direction: column; /* Default to column for mobile */
}

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

.logo {
    font-size: 2em;
    font-weight: bold;
    color: #E3B505; /* Secondary color for logo */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    white-space: nowrap; /* Prevent logo from wrapping */
}

.main-nav {
    display: none; /* Hidden by default on mobile */
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: #fff;
    font-weight: bold;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #E3B505; /* Secondary color on hover/active */
}

.header-buttons {
    display: none; /* Hidden by default for both, managed by media queries */
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    text-decoration: none; /* No underline */
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #E3B505; /* Secondary color for primary action */
    color: #0A2463; /* Primary color for text */
    box-shadow: 0 4px 10px rgba(227, 181, 5, 0.4);
}

.btn-primary:hover {
    background-color: #f0c945;
    box-shadow: 0 6px 15px rgba(227, 181, 5, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #5A82B3; /* A lighter blue shade */
    color: #fff;
    box-shadow: 0 4px 10px rgba(90, 130, 179, 0.4);
}

.btn-secondary:hover {
    background-color: #7095C7;
    box-shadow: 0 6px 15px rgba(90, 130, 179, 0.6);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001; /* Higher than header buttons on mobile */
    width: 45px; /* Fixed width for mobile centering */
    height: 45px; /* Fixed height for mobile centering */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #E3B505; /* Secondary color for hamburger icon */
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hamburger menu animation */
.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);
}

/* Footer Styles */
.site-footer {
    background-color: #0A2463; /* Primary color for footer */
    color: #fff;
    padding: 40px 20px;
    font-size: 0.9em;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3,
.footer-col h4 {
    color: #E3B505; /* Secondary color for titles */
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-col p {
    margin-bottom: 10px;
    color: #ccc;
}

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

.footer-nav a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #E3B505;
}

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

/* Responsive Styles */
@media (min-width: 769px) {
    .header-container {
        flex-direction: row; /* Desktop: row layout */
        align-items: center;
        justify-content: space-between;
        min-height: 80px; /* Adjust height for desktop */
    }

    .header-main-row {
        flex-grow: 1; /* Allows main row to take available space */
        justify-content: flex-start; /* Align items to start */
    }

    .hamburger-menu,
    .mobile-buttons,
    .header-right-spacer {
        display: none; /* Hide mobile specific elements on desktop */
    }

    .main-nav {
        display: block; /* Show desktop nav */
        margin: 0 20px; /* Space between logo/buttons */
        flex-grow: 1; /* Allow nav to take center space */
        text-align: center; /* Center nav items */
    }

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

    .header-buttons.desktop-buttons {
        display: flex; /* Show desktop buttons */
    }
    .header-main-row .logo {
        flex-grow: 0; /* Reset flex-grow for desktop */
        text-align: left; /* Reset text-align for desktop */
        padding: 0; /* Reset padding for desktop */
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 150px; /* Adjust for mobile header height (top row + buttons) */
    }

    .site-header {
        min-height: auto;
        padding-bottom: 10px; /* Add some padding below buttons */
    }

    .header-container {
        padding: 10px 15px;
    }

    .header-main-row {
        justify-content: space-between; /* Distribute space for hamburger, logo, spacer */
        padding-bottom: 10px; /* Space before mobile buttons */
    }

    .hamburger-menu {
        display: flex; /* Show hamburger on mobile */
        z-index: 1001;
    }

    .header-main-row .logo {
        flex-grow: 1; /* Allow logo to take available space */
        text-align: center; /* Center the logo text within its flex-grow space */
        font-size: 1.8em;
    }

    .header-right-spacer {
        display: block; /* Show spacer on mobile */
        width: 45px; /* Same width as hamburger for balance */
        height: 45px;
    }

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

    .header-buttons.mobile-buttons {
        display: flex; /* Show mobile buttons */
        justify-content: center; /* Center the buttons */
        width: 100%;
        gap: 15px; /* Adjust gap for mobile buttons */
        z-index: 1000; /* Lower than hamburger menu */
        margin-top: 10px; /* Space from top row */
    }

    .main-nav {
        position: fixed;
        top: 0; /* This will be adjusted by JS */
        left: 0;
        width: 100%;
        height: 100vh; /* This will be adjusted by JS */
        background-color: rgba(10, 36, 99, 0.95); /* Semi-transparent overlay */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%); /* Hidden by default */
        transition: transform 0.3s ease-in-out;
        z-index: 999; /* Below hamburger menu, above content */
        overflow-y: auto; /* Enable scrolling for long menus */
    }

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

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .main-nav a {
        font-size: 1.5em;
        padding: 15px 0;
        display: block;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        text-align: center;
    }
    /* Prevent body scroll when menu is open */
    body.no-scroll {
        overflow: hidden;
    }
}