/* Base Styles */
:root {
    --primary-color: #1A237E; /* Dark Blue */
    --secondary-color: #FFC107; /* Amber/Yellow */
    --text-color: #333;
    --light-text-color: #f0f0f0;
    --bg-light: #f8f8f8;
    --bg-dark: #2c3e50;
}

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

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    padding-top: 120px; /* Default for desktop fixed header */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* Crucial: remove underline */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #3F51B5);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3F51B5, var(--primary-color));
    color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #FFEB3B);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #FFEB3B, var(--secondary-color));
    color: var(--text-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 60px; /* Base min-height for header-top on desktop */
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Max width for content */
    padding: 10px 20px;
    min-height: 60px; /* Ensures a minimum height for the top row */
}

.logo {
    color: var(--secondary-color);
    font-size: 2.2em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease-in-out;
    display: block;
}

.logo:hover {
    transform: scale(1.05);
}

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

.main-nav a {
    color: var(--light-text-color);
    font-weight: 600;
    font-size: 1.05em;
    padding: 8px 0;
    position: relative;
}

.main-nav a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease-out;
}

.main-nav a:hover::after,
.main-nav a.active-link::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001; /* Ensure it's clickable */
}

.hamburger-menu .bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 6px 0;
    transition: 0.4s;
    border-radius: 2px;
}

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

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

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

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

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

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

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

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

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

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

.footer-section a {
    color: var(--light-text-color);
}

.footer-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .main-nav ul {
        gap: 15px;
    }
    .header-actions .btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 140px; /* Adjust for mobile header (top + buttons) */
    }

    .site-header {
        min-height: auto;
    }

    .header-top {
        justify-content: flex-start;
        padding: 10px 15px;
        min-height: 60px; /* Fixed height for top bar on mobile */
    }

    .hamburger-menu {
        display: block;
        order: 1;
        margin-right: 15px;
    }

    .logo {
        order: 2;
        flex-grow: 1; /* Allow logo to take available space */
        text-align: center;
        font-size: 1.8em;
    }

    .header-actions {
        display: none; /* Hide desktop buttons */
    }

    .main-nav {
        display: flex; /* Always flex for layout, but hidden by default */
        flex-direction: column;
        position: fixed;
        top: 0; /* Will be dynamically adjusted by JS to be below header-top */
        left: 0;
        width: 100%;
        height: 100vh; /* Full viewport height */
        background-color: var(--primary-color);
        z-index: 1001; /* Above header */
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
        overflow-y: auto;
        padding-top: 80px; /* Default space for hamburger/logo if JS fails */
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        width: 100%;
        gap: 15px;
    }

    .main-nav a {
        font-size: 1.3em;
        padding: 10px 0;
        width: 100%;
        text-align: center;
    }

    .main-nav a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
        justify-content: center;
        gap: 15px;
        width: 100%;
        padding: 10px 20px;
        background-color: var(--primary-color); /* Match header background */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 999; /* Ensures it's below the main-nav overlay if active */
    }

    .mobile-only .btn {
        flex: 1; /* Distribute buttons evenly */
        max-width: 150px;
        font-size: 0.9em;
        padding: 8px 12px;
    }

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

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