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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 150px; /* Adjust based on desktop header height (top + buttons) */
}

/* Colors */
:root {
    --primary-color: #0A2463; /* Dark Blue */
    --accent-color: #FFD700; /* Gold */
    --text-light: #ffffff;
    --text-dark: #333333;
}

/* Header Styling */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-height: 60px; /* Ensures content adaptation */
    padding-top: 10px;
    padding-bottom: 10px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    min-height: 40px;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.header-placeholder {
    display: none; /* Only for mobile alignment */
}

.header-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end; /* Align right on desktop */
    padding: 10px 20px;
    flex-wrap: wrap;
}

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

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.5);
}

.btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background-color: #1a4080;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.btn-tertiary {
    background-color: #1A4080; /* Slightly lighter primary */
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.main-nav {
    flex-grow: 1; /* Allows nav to take up available space */
    text-align: center; /* Center nav links on desktop */
}

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

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

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

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.hamburger-menu .bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Footer Styling */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 20px 20px;
    font-size: 14px;
    margin-top: 50px;
}

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

.footer-column {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--accent-color);
    text-decoration: none;
    margin-bottom: 15px;
    display: block;
}

.footer-column h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 5px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-column p,
.footer-column ul {
    margin-bottom: 10px;
}

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

.footer-column a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-column a:hover {
    text-decoration: underline;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .main-nav ul li a {
        padding: 10px 12px;
    }
    .header-buttons {
        gap: 10px;
        padding: 10px 15px;
    }
    .btn {
        padding: 10px 20px;
    }
    .logo {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 180px; /* Adjust for mobile header with buttons */
    }
    .site-header {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .header-top {
        justify-content: space-between;
        padding: 0 15px;
        min-height: 50px;
    }

    .logo {
        flex: 1; /* Allows logo to take available space for centering */
        text-align: center;
        font-size: 24px;
        order: 2; /* Move logo to center */
    }

    .hamburger-menu {
        display: flex; /* Show hamburger on mobile */
        order: 1; /* Move hamburger to left */
    }

    .header-placeholder {
        display: block; /* Occupy space for balancing hamburger */
        width: 40px;
        order: 3;
    }

    .header-buttons {
        justify-content: center; /* Center buttons */
        padding: 10px 15px;
        background-color: var(--primary-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        z-index: 999; /* Below hamburger menu, but still fixed */
        width: 100%;
        position: relative;
        gap: 10px;
        flex-wrap: wrap;
        min-height: 50px;
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: calc(100% + 5px); /* Position below header, including buttons */
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
        z-index: 1001; /* Above buttons */
        flex-direction: column;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

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

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

    .main-nav ul li {
        width: 100%;
        text-align: center;
    }

    .main-nav ul li a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .main-nav ul li:last-child a {
        border-bottom: none;
    }

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

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

    .footer-column {
        max-width: 90%;
        min-width: unset;
    }

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