.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 60px; /* Base min-height, adjusted by JS for mobile menu */
    background-color: #1A237E; /* Primary color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    color: #fff;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: min-height 0.3s ease; /* Smooth height transition */
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.logo {
    font-family: 'Arial Black', sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: #FFD700;
    text-decoration: none;
    padding: 5px 10px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #fff;
}

.main-nav {
    flex-grow: 1; /* Allows nav to take available space on desktop */
    display: flex;
    justify-content: center;
}

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

.main-nav li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFD700;
}

.header-desktop-buttons {
    display: flex;
    gap: 10px;
}

.header-mobile-buttons {
    display: none; /* Hidden by default on desktop */
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding-top: 10px;
    max-width: 1200px;
}

.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 content */
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFD700;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger-menu.open .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger-menu.open .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.open .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1A237E;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #FFA500, #FFD700);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    color: #fff;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #8BC34A, #4CAF50);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.6);
    transform: translateY(-2px);
}

.header-spacer {
    display: none; /* Hidden on desktop */
}

.site-footer {
    background-color: #1A237E;
    color: #fff;
    padding: 40px 20px 20px;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 40px;
}

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

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #FFD700;
}

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

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

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFD700;
}

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

.footer-bottom p {
    margin: 0;
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px); /* Position below header-top and mobile buttons with padding */
        left: 0;
        width: 100%;
        background-color: #1A237E;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1002;
        padding-bottom: 10px;
        min-height: auto;
        box-sizing: border-box; /* Include padding in width/height calculations */
    }

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

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

    .main-nav li a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    .header-desktop-buttons {
        display: none;
    }

    .hamburger-menu {
        display: block;
        z-index: 1001;
    }

    .header-top {
        justify-content: space-between;
        padding: 0 15px;
        min-height: 60px;
    }
    
    .logo {
        flex-grow: 1;
        text-align: center;
    }

    .header-spacer {
        display: block;
        width: 45px; /* Approximate width of hamburger menu */
        height: 1px;
    }

    .header-mobile-buttons {
        display: flex;
        padding: 10px 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    .site-header {
        min-height: auto; /* Allow height to adapt to both top and button areas, JS handles expansion */
    }
}

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

    .footer-section {
        min-width: unset;
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    .header-mobile-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 24px;
    }
    .header-mobile-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 80%;
        max-width: 250px;
    }
}