/* General Body Styles for Fixed Header */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 110px; /* Estimated combined height of header-top and main-nav on desktop */
}

/* Site Header - Fixed Navigation */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    background-color: #fff; /* Fallback, actual backgrounds set on sub-elements */
}

/* Header Top Area - Desktop */
.header-top {
    background-color: #0056b3; /* Darker primary color */
    width: 100%;
    min-height: 60px; /* Ensure minimum height */
    display: flex; /* For desktop, ensure it's a flex container */
    align-items: center;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px; /* Padding for logo and buttons */
}

/* Logo */
.logo {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    padding: 5px 0; /* Visual padding for logo text */
    display: block; /* Ensure it's block for proper alignment */
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
    display: flex; /* Show on desktop */
    gap: 10px;
}

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

.btn-primary {
    background: linear-gradient(45deg, #007BFF, #0056b3);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #007BFF);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(45deg, #FFC107, #e0a800);
    color: #333;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #e0a800, #FFC107);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.6);
    transform: translateY(-2px);
}

/* Main Navigation Area - Desktop */
.main-nav {
    background-color: #007BFF; /* Primary color */
    width: 100%;
    display: flex; /* Show on desktop */
    min-height: 50px; /* Ensure minimum height */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: row; /* Horizontal on desktop */
    justify-content: center; /* Center menu items */
    align-items: center;
    padding: 10px 20px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}

/* Hamburger Menu - Hidden on Desktop */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    z-index: 1002; /* Above overlay */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 11px; }
.hamburger-menu span:nth-child(3) { top: 22px; }

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

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

/* Footer Styles */
.site-footer {
    background-color: #222;
    color: #f8f9fa;
    padding: 40px 20px 20px;
    font-size: 14px;
    line-height: 1.8;
}

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

.site-footer .footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.site-footer .footer-col h3 {
    color: #FFC107;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 5px;
}

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

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

.site-footer .footer-col ul li a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer .footer-col ul li a:hover {
    color: #007BFF;
}

.site-footer .footer-col p,
.site-footer .footer-col address {
    margin: 0 0 10px 0;
}

.site-footer .footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: #bbb;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    body {
        /* Adjusted padding for mobile header and button area */
        padding-top: calc(60px + 50px); /* header-top min-height + mobile-buttons-area estimated height */
    }

    /* Header Top Area - Mobile */
    .header-top {
        min-height: 60px;
    }
    .header-container {
        width: 100%;
        max-width: none; /* CRITICAL: Must be 100% width, no max-width */
        padding: 10px 15px; /* Smaller padding for mobile */
        justify-content: space-between; /* Hamburger left, Logo center, space right */
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
        order: -1; /* Place at the beginning */
        margin-right: auto; /* Push logo to center */
    }

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

    .logo {
        flex-grow: 1; /* Allow logo to take available space for centering */
        text-align: center; /* Center the logo text */
        font-size: 24px;
        padding: 0;
    }
    
    .desktop-nav-buttons {
        display: none; /* Hide desktop buttons on mobile */
    }

    /* Mobile Buttons Area - Show on Mobile */
    .mobile-buttons-area {
        display: block; /* Show on mobile */
        background-color: #FFC107; /* Secondary color */
        padding: 10px 0;
        z-index: 999; /* Below main nav, above content */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .mobile-buttons-container {
        width: 100%;
        max-width: none; /* CRITICAL: Must be 100% width, no max-width */
        margin: 0 auto;
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 0 15px;
    }
    .mobile-buttons-container .btn {
        flex: 1; /* Make buttons take equal width */
        max-width: 150px; /* Max width for individual buttons */
        font-size: 14px;
        padding: 8px 15px;
    }

    /* Main Navigation Area - Mobile */
    .main-nav {
        display: none; /* Hidden by default on mobile */
        flex-direction: column; /* Vertical on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 80%; /* Sidebar width */
        height: 100%;
        background-color: #f8f9fa; /* Light background for menu */
        transform: translateX(-100%); /* Slide out to left */
        transition: transform 0.3s ease;
        overflow-y: auto; /* Enable scrolling for long menus */
        z-index: 1001; /* Above overlay */
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }

    .main-nav.active {
        display: flex; /* CRITICAL: Must set display to show menu */
        transform: translateX(0); /* Slide in */
    }

    .nav-container {
        width: 100%;
        max-width: none; /* CRITICAL: Must be 100% width, no max-width */
        flex-direction: column; /* Vertical menu items */
        align-items: flex-start; /* Align menu items to left */
        padding: 20px 15px;
    }

    .nav-link {
        width: 100%;
        color: #333;
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
    }

    .nav-link:hover, .nav-link.active {
        background-color: #eee;
        color: #007BFF;
    }

    /* Mobile Menu Overlay - Show when active */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 1000; /* Below menu, above content */
        display: none; /* Hidden by default */
        transition: opacity 0.3s ease;
        opacity: 0;
    }

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

    /* Footer Responsive */
    .site-footer .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .site-footer .footer-col {
        min-width: unset;
        width: 100%;
    }

    .site-footer .footer-col h3 {
        text-align: center;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 10px;
    }
    .site-footer .footer-col ul {
        text-align: center;
    }
}

/* Utility for no-scroll body */
body.no-scroll {
    overflow: hidden;
}