/* Basic reset and body adjustments */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 100px; /* Default padding for desktop header, adjusted for mobile via media query */
}

/* Colors */
:root {
    --primary-color: #1A2E44;
    --secondary-color: #FFD700;
    --text-light: #F0F2F5;
    --text-dark: #333;
}

/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 60px; /* Minimum height for desktop */
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Desktop Header */
.header-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-header .logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 5px 0;
    white-space: nowrap;
}

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

.main-nav-desktop li {
    margin: 0 15px;
}

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

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

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #FFC107 100%);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFC107 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.btn-secondary {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    color: var(--text-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #007BFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Mobile Header (Hidden by default on desktop) */
.header-mobile {
    display: none; /* Will be shown via media query */
    flex-direction: column;
    padding: 10px 0;
}

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

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

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

.site-header .logo-mobile {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    flex: 1;
    text-align: center;
    padding: 5px 0;
    white-space: nowrap;
}

.mobile-top-spacer {
    width: 30px; /* Same width as hamburger to balance logo centering */
    height: 25px;
    flex-shrink: 0;
}

.header-buttons-mobile {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-nav-mobile {
    position: fixed; /* Use fixed to cover content below header */
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 999; /* Below hamburger button but above page content */
    height: 100vh;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out; /* Added visibility to transition */
    visibility: hidden; /* Added to hide initially */
}

.main-nav-mobile.active {
    transform: translateX(0);
    visibility: visible; /* Added to show when active */
}

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

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

.main-nav-mobile li:last-child {
    border-bottom: none;
}

.main-nav-mobile a {
    display: block;
    padding: 15px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.main-nav-mobile a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer-about p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-contact p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

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

.copyright {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .header-desktop {
        display: none;
    }
    .header-mobile {
        display: flex;
    }
    body {
        padding-top: 120px; /* Adjust for mobile header height (approx 60px top + 40px buttons) */
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-about .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}