/* Global Styles */
:root {
    --primary-color: #1A237E;
    --secondary-color: #FFC107;
    --text-color: #333;
    --light-text-color: #f8f8f8;
    --dark-bg-color: #0d1247;
    --button-bg-primary: #FFC107;
    --button-text-primary: #1A237E;
    --button-bg-secondary: #1A237E;
    --button-text-secondary: #FFC107;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 80px; /* Default padding for desktop fixed header */
    color: var(--text-color);
    line-height: 1.6;
}

.no-scroll {
    overflow: hidden;
}

/* Site Header - Fixed Navigation (Desktop First) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 60px; /* Minimum height for header */
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
}

.header-top-bar {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    margin-right: 20px;
    display: block; /* Ensure logo is always visible */
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

.main-nav li a {
    color: var(--light-text-color);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.main-nav li a:hover,
.main-nav li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.desktop-nav-buttons {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.mobile-buttons-area,
.hamburger-menu,
.mobile-spacer,
.mobile-menu-overlay {
    display: none; /* Hidden on desktop */
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    font-size: 16px;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--button-bg-primary);
    color: var(--button-text-primary);
    box-shadow: 0 2px 5px rgba(255, 193, 7, 0.4);
}

.btn-secondary {
    background-color: var(--button-bg-secondary);
    color: var(--button-text-secondary);
    box-shadow: 0 2px 5px rgba(26, 35, 126, 0.4);
}

/* Footer */
.site-footer {
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
    padding: 40px 20px 20px;
    font-size: 14px;
    text-align: center;
}

.footer-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto 30px;
    text-align: left;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin: 15px;
}

.footer-column h3 {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
    padding-bottom: 10px;
}

.footer-column p,
.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
}

.footer-column a:hover {
    color: var(--secondary-color);
}

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

.footer-nav li a {
    padding: 5px 0;
}

.footer-email {
    font-weight: bold;
}

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

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Adjusted padding for mobile fixed header + button area */
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        min-height: unset;
    }

    .header-top-bar {
        width: 100%;
        justify-content: space-between;
        padding: 10px 20px;
        box-sizing: border-box;
        min-height: 60px; /* Fixed height for top bar */
    }

    .logo {
        flex-grow: 1;
        text-align: center;
        margin-right: 0;
        order: 2;
        display: block; /* Ensure logo is always visible */
    }

    .mobile-spacer {
        display: block;
        width: 40px; /* Balance hamburger button width */
        order: 3;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        order: 1;
    }

    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--secondary-color);
        transition: all 0.3s ease-in-out;
    }

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

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

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

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

    .mobile-buttons-area {
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 10px;
        padding: 10px 20px;
        box-sizing: border-box;
        background-color: var(--primary-color);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        min-height: 50px; /* Fixed height for mobile button area */
        z-index: 999; /* Below hamburger menu, above content */
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark-bg-color);
        flex-direction: column;
        padding-top: 60px; /* Space for hamburger button */
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1001;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        display: none; /* Default hidden */
    }

    .main-nav.active {
        transform: translateX(0);
        display: flex; /* Must set display for it to be visible */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-nav li a {
        padding: 15px 20px;
        text-align: left;
        color: var(--light-text-color);
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        transition: opacity 0.3s ease-in-out;
    }

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

    .footer-content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        margin: 15px 0;
        text-align: center;
        min-width: unset;
        width: 100%;
    }
    
    .footer-column h3 {
        border-bottom: none;
        padding-bottom: 0;
    }
}