/* Base Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding-top: 130px; /* Default padding for mobile header height */
    background-color: #f4f7f6;
    color: #333;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 60px; /* Base min-height for top bar */
    background-color: #1A237E; /* Main color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    color: #fff;
    padding: 0 20px;
    display: flex;
    flex-direction: column; /* Default to column for mobile first approach */
    align-items: center;
}

.site-header a {
    color: #fff;
    text-decoration: none;
}

/* Header Top Area (Mobile: Hamburger | Logo | Placeholder) */
.site-header .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 50px; /* Height for top bar */
}

.site-header .logo {
    flex-grow: 1;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #FFC107; /* Accent color */
    padding: 10px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.site-header .header-placeholder {
    width: 40px; /* Match hamburger width for centering */
    flex-shrink: 0;
}

/* Hamburger Menu */
.hamburger-menu {
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    position: relative;
    z-index: 1001; /* Ensure hamburger is above other elements */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFC107;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

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

.hamburger-menu.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Header Buttons Area (Mobile: Below Logo) */
.site-header .header-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    width: 100%;
    background-color: #1A237E; /* Ensure it has a solid background */
    z-index: 999; /* Lower than hamburger menu content */
}

/* Main Navigation (Mobile: Hidden by default, appears on toggle) */
.site-header .main-nav {
    display: none; /* Hidden by default on mobile */
    position: absolute;
    top: 100%; /* Position below header-top and header-buttons */
    left: 0;
    width: 100%;
    background-color: #1A237E; /* Solid background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Above buttons and header */
    padding-bottom: 10px;
}

.site-header .main-nav.active {
    display: block;
}

.site-header .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.site-header .main-nav ul li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.site-header .main-nav ul li a:hover {
    background-color: #2C387E; /* Slightly lighter main color */
    color: #FFC107;
}

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

.btn-primary {
    background: linear-gradient(45deg, #FFC107, #FFA000);
    color: #1A237E;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

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

.btn-secondary {
    background-color: #3F51B5;
    color: #fff;
    border: 2px solid #3F51B5;
    box-shadow: 0 4px 10px rgba(63, 81, 181, 0.3);
}

.btn-secondary:hover {
    background-color: #5C6BC0;
    border-color: #5C6BC0;
    box-shadow: 0 6px 15px rgba(63, 81, 181, 0.5);
    transform: translateY(-2px);
}

/* Desktop Styles */
@media (min-width: 769px) {
    body {
        padding-top: 80px; /* Adjust padding for desktop header height */
    }

    .site-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 40px;
        min-height: 80px;
    }

    .site-header .header-top {
        display: contents; /* Remove flex context for desktop */
    }

    .site-header .hamburger-menu,
    .site-header .header-placeholder {
        display: none;
    }

    .site-header .logo {
        flex-grow: 0;
        text-align: left;
        margin-right: 30px; /* Space between logo and nav */
    }

    .site-header .main-nav {
        display: block;
        position: static;
        background-color: transparent;
        box-shadow: none;
        z-index: auto;
        padding: 0;
        margin: 0 auto; /* Center the navigation */
        flex-grow: 1; /* Allow nav to take remaining space */
    }

    .site-header .main-nav ul {
        display: flex;
        justify-content: center;
        gap: 25px;
        text-align: left;
    }

    .site-header .main-nav ul li a {
        padding: 10px 0;
        color: #fff;
    }

    .site-header .main-nav ul li a:hover {
        color: #FFC107;
        background-color: transparent;
    }

    .site-header .header-buttons {
        display: flex;
        gap: 15px;
        padding: 0;
        width: auto;
        background-color: transparent;
        z-index: auto;
        margin-left: 30px; /* Space between nav and buttons */
    }
}

/* Footer Styles */
.site-footer {
    background-color: #1A237E; /* Main color */
    color: #f0f0f0;
    padding: 40px 20px;
    font-size: 14px;
}

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

.site-footer .footer-col {
    flex: 1 1 280px; /* Allow columns to grow and shrink */
    min-width: 200px;
}

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

.site-footer p {
    line-height: 1.6;
    margin-bottom: 10px;
}

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

.site-footer .footer-nav ul li a {
    display: block;
    padding: 5px 0;
    color: #f0f0f0;
    transition: color 0.3s ease;
}

.site-footer .footer-nav ul li a:hover {
    color: #FFC107;
}

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

@media (max-width: 768px) {
    .site-footer .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer .footer-col {
        margin-bottom: 20px;
    }

    .site-footer h3 {
        margin-left: auto;
        margin-right: auto;
    }
}
