/* Shared CSS */
:root {
    --primary-color: #003366;
    --accent-color: #FFCC00;
    --text-light: #f0f0f0;
    --text-dark: #333;
    --bg-dark: #1a1a1a;
    --bg-light: #ffffff;
    --header-desktop-height: 80px; /* Approximate height of desktop header */
    --header-mobile-top-row-height: 60px; /* Approx padding + logo height on mobile */
    --header-mobile-buttons-row-height: 55px; /* Approx buttons height + padding/margin on mobile */
    --header-mobile-total-height: calc(var(--header-mobile-top-row-height) + var(--header-mobile-buttons-row-height));
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: var(--header-desktop-height) 0 0 0; /* Add padding to body for fixed header */
    box-sizing: border-box;
    line-height: 1.6;
    color: var(--text-dark);
}

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

/* Header Styles */
.site-header {
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: var(--text-light);
    position: fixed; /* Make header sticky */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure header is above other content */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.site-header .logo:hover {
    color: #fff;
}

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

.main-nav .nav-list li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

/* Hamburger menu - Hidden on desktop by default */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative; /* Keep relative for span animation */
    z-index: 100;
}

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

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

/* Header Buttons */
.header-buttons {
    display: flex; /* Show on desktop */
    gap: 10px;
    align-items: center;
    margin-left: 20px; /* Space between nav and buttons */
}

.header-buttons a {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    font-size: 0.95em;
}

.header-buttons a:hover {
    background-color: #fff;
    color: var(--primary-color);
}

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

.site-footer h3 {
    color: var(--accent-color);
    font-size: 1.4em;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

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

.site-footer a:hover {
    color: var(--accent-color);
}

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

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

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

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

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

.footer-col .read-more,
.footer-col .contact-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-col .read-more:hover,
.footer-col .contact-button:hover {
    background-color: #fff;
    color: var(--primary-color);
}

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

.footer-bottom .copyright {
    margin: 0;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding-top: var(--header-mobile-total-height); /* Adjust body padding for fixed header on mobile */
    }

    .site-header .container {
        flex-wrap: wrap; /* Allow items to wrap to next line */
        justify-content: flex-start; /* Align items to the start of the cross axis */
        padding-top: 10px; /* Adjust header padding for mobile */
        padding-bottom: 10px;
    }

    /* Hamburger menu - now a direct child of .container */
    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
        order: 1; /* First item in flex container */
        margin-right: auto; /* Push logo to center */
        position: static; /* Remove absolute positioning */
        left: unset; top: unset; /* Clear old positioning */
        align-self: center; /* Vertically center with logo */
    }

    /* Logo - now a direct child of .container */
    .site-header .logo {
        order: 2; /* Second item */
        margin: 0 auto; /* Center horizontally in remaining space */
        flex-grow: 1; /* Allow it to take available space */
        text-align: center;
        margin-left: auto; /* Balance margin-right from hamburger */
        font-size: 2em; /* Adjust font size for mobile */
    }

    /* Header buttons */
    .header-buttons {
        order: 3; /* Third item, on a new line */
        width: 100%;
        display: flex; /* Ensure buttons are side-by-side */
        justify-content: center; /* Center the buttons */
        gap: 15px;
        margin-top: 15px; /* Space below the logo/hamburger row */
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Separator line */
    }

    /* Main navigation container */
    .main-nav {
        order: 4; /* Last item, on its own line */
        width: 100%;
    }

    /* Nav list for mobile */
    .main-nav .nav-list {
        background-color: var(--primary-color);
        position: absolute;
        top: var(--header-mobile-total-height); /* Position below the combined header height */
        left: 0;
        width: 100%;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        display: none; /* Hidden by default */
        z-index: 1001; /* CHANGED: Ensure it's above the fixed header (z-index: 1000) */
        text-align: center;
        flex-direction: column; /* Stack menu items */
    }

    .main-nav .nav-list.active {
        display: flex; /* Show when active */
    }

    .main-nav .nav-list li {
        margin-bottom: 15px;
    }
    .main-nav .nav-list li:last-child {
        margin-bottom: 0;
    }
    .main-nav .nav-list li a {
        font-size: 1.2em;
        padding: 10px 0;
        display: block;
    }

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

    /* Footer responsive styles (unchanged) */
    .footer-columns {
        flex-direction: column;
        align-items: center;
    }
    .footer-col {
        text-align: center;
        margin-bottom: 30px;
        min-width: unset;
        width: 100%;
    }
    .footer-col h3 {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 10px;
    }
    .footer-col ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .footer-col ul li {
        margin-bottom: 0;
    }
    .footer-col ul li a {
        padding: 5px 10px;
        border-radius: 3px;
        background-color: rgba(255, 255, 255, 0.1);
    }
    .footer-col ul li a:hover {
        background-color: var(--accent-color);
        color: var(--primary-color);
    }
}

@media (min-width: 769px) {
    /* Desktop specific styles */
    .site-header .hamburger-menu {
        display: none; /* Hide hamburger on desktop */
    }

    /* Ensure main nav and header buttons are side-by-side on desktop */
    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main-nav {
        display: block; /* Ensure main-nav takes up its space */
    }

    .main-nav .nav-list {
        display: flex; /* Ensure nav list is horizontal on desktop */
        position: static; /* Reset absolute positioning from mobile */
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        flex-direction: row;
        width: auto;
    }
    .main-nav .nav-list li {
        margin-bottom: 0; /* Reset margin from mobile */
    }
    .header-buttons {
        display: flex; /* Ensure buttons are visible and side-by-side on desktop */
        gap: 10px;
        align-items: center;
        margin-left: 20px; /* Space between nav and buttons */
    }
}

@media (max-width: 480px) {
    .site-header .logo {
        font-size: 2em;
    }
    /* Mobile header heights might need further adjustment for very small screens */
    :root {
        --header-mobile-top-row-height: 55px; /* Adjust for smaller logo/padding */
        --header-mobile-buttons-row-height: 50px; /* Adjust for smaller buttons/padding */
    }
}