/* Base Styles */
:root {
    --primary-color: #1A237E;
    --secondary-color: #FFD700;
    --text-color: #333;
    --light-text-color: #f8f8f8;
    --button-gradient-start: #FFD700;
    --button-gradient-end: #FFA500;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 60px; /* Minimum height for desktop */
    background-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    color: var(--light-text-color);
}

.header-primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    padding: 5px 0;
    white-space: nowrap;
}

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

.main-nav a {
    color: var(--light-text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--light-text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 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;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-image: linear-gradient(45deg, var(--button-gradient-start), var(--button-gradient-end));
    color: var(--primary-color);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--button-gradient-start);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--secondary-color);
    transform: translateY(-2px);
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-buttons.mobile-only {
    display: none; /* Hidden on desktop */
}

.mobile-placeholder {
    display: none; /* Hidden on desktop */
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 40px 20px;
    font-size: 0.9em;
}

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

.footer-section {
    flex: 1;
    min-width: 250px;
    padding: 10px;
}

.footer-logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    margin-bottom: 15px;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-section p {
    margin-bottom: 10px;
}

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

.footer-nav a {
    color: var(--light-text-color);
    text-decoration: none;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-nav a.active {
    color: var(--secondary-color);
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .site-header {
        min-height: unset;
    }

    .header-primary {
        padding: 10px;
        flex-wrap: wrap; /* Allow items to wrap */
        justify-content: center;
        position: relative;
    }

    .hamburger-menu {
        display: block;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

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

    .logo {
        flex-grow: 1; /* Allow logo to take available space */
        text-align: center;
        font-size: 1.8em;
        padding: 0;
        margin-left: 40px; /* Offset for hamburger */
        margin-right: 40px; /* Offset for placeholder */
    }

    .mobile-placeholder {
        display: block;
        width: 30px; /* Same width as hamburger to balance logo */
        height: 22px;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0; /* Changed to 0 to cover the whole screen */
        left: 0;
        width: 100%;
        height: 100vh; /* Full viewport height */
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%); /* Slide out from left */
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.is-open {
        transform: translateX(0); /* Slide in */
        display: flex; /* Ensure it's flex when open */
    }

    .main-nav ul {
        flex-direction: column;
        width: 80%;
        text-align: center;
        gap: 0;
    }

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

    .main-nav a {
        padding: 15px 0;
        font-size: 1.2em;
        display: block;
    }

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

    .header-buttons.mobile-only {
        display: flex;
        justify-content: center;
        padding: 10px 0;
        gap: 10px;
        background-color: var(--primary-color);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 999; /* Below main-nav when open, but above content */
        width: 100%;
    }

    .header-buttons.mobile-only .btn {
        padding: 8px 15px;
        font-size: 0.9em;
        border-radius: 20px;
    }

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

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

    .footer-nav ul {
        padding-left: 0;
    }
}
