/* Base styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 120px; /* Adjusted for mobile header height, consider dynamic calculation for desktop */
}

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

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

/* Header styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF; /* Solid white background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-height: 60px; /* Ensure content adaptation */
    display: flex;
    flex-direction: column; /* Stack main and buttons on mobile */
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    min-height: 60px; /* Base height for header-main */
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #1A2B5B; /* Primary color for logo */
    text-decoration: none;
    flex-shrink: 0;
    display: block;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001; /* Higher than mobile-buttons */
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1A2B5B;
    margin: 5px 0;
    transition: 0.4s;
}

.hamburger-menu.is-active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

.desktop-nav-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

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

.main-nav a {
    color: #1A2B5B;
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease;
}

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

.desktop-buttons {
    display: flex;
    gap: 15px;
    margin-left: 30px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px; /* Rounded buttons */
    font-weight: bold;
    text-align: center;
    text-decoration: none; /* Remove underline */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Floating effect */
}

.btn-primary {
    background-color: #FFD700; /* Gold */
    color: #1A2B5B; /* Dark blue */
    border: 2px solid #FFD700;
}

.btn-primary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: #1A2B5B; /* Dark blue */
    color: #FFFFFF; /* White */
    border: 2px solid #1A2B5B;
}

.btn-secondary:hover {
    background-color: #0d1a3f; /* Slightly darker blue */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.mobile-nav-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark overlay */
    z-index: 999; /* Below hamburger, above content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.main-nav-mobile {
    background-color: #1A2B5B; /* Dark blue background for mobile menu */
    width: 250px;
    height: 100%;
    position: absolute;
    left: -250px; /* Off-screen by default */
    top: 0;
    transition: left 0.3s ease;
    padding-top: 80px; /* Adjust for fixed header height */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-nav-overlay.open .main-nav-mobile {
    left: 0; /* Slide in */
}

.main-nav-mobile ul {
    flex-direction: column;
    padding: 20px 0;
}

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

.main-nav-mobile a {
    display: block;
    padding: 15px 20px;
    color: #FFFFFF;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.main-nav-mobile a:hover,
.main-nav-mobile a.active {
    background-color: #FFD700;
    color: #1A2B5B;
}

.mobile-buttons {
    display: none; /* Hidden on desktop */
    justify-content: center;
    gap: 15px;
    padding: 10px 20px;
    background-color: #FFFFFF; /* Same as header background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    z-index: 998; /* Below mobile nav overlay, below hamburger */
}

/* Footer styles */
.site-footer {
    background-color: #1A2B5B; /* Dark blue background */
    color: #FFFFFF;
    padding: 40px 20px 20px;
    font-size: 14px;
}

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

.footer-col {
    flex: 1;
    min-width: 250px; /* Minimum width for columns */
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700; /* Gold for footer logo */
    margin-bottom: 15px;
    display: block;
}

.site-footer h3 {
    color: #FFD700; /* Gold for headings */
    margin-bottom: 20px;
    font-size: 18px;
}

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

.site-footer a {
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #FFD700;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Adjust for stacked header on mobile */
    }

    .header-main {
        padding: 10px 15px;
        justify-content: space-between; /* Space out items */
    }

    .hamburger-menu {
        display: block;
        order: 1;
    }

    .logo {
        flex-grow: 0; /* Don't let logo grow */
        text-align: center;
        order: 2; /* Place logo in the middle */
    }

    .header-spacer {
        display: block;
        flex-grow: 1; /* Take up remaining space on the right */
        order: 3;
    }

    .desktop-nav-wrapper {
        display: none; /* Hide desktop nav and buttons */
    }

    .mobile-buttons {
        display: flex; /* Show mobile buttons */
        padding: 10px 15px;
        justify-content: center;
        gap: 10px;
    }

    .site-header .btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

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

    .footer-nav ul {
        align-items: center;
    }
}

/* Scroll to top button style */
.scroll-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFD700;
    color: #1A2B5B;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 24px;
    line-height: 45px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 990;
}

.scroll-to-top:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}