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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 100px; /* Adjust based on header height, will be set by JS or dynamic */
}

/* General Link & Button Styles */
a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #fff; /* Default text color for buttons */
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #333;
}

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

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 60px; /* Base min-height */
    background-color: #1a1a1a; /* Solid dark background */
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 0 20px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ffc107; /* Accent color for logo */
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 20px;
}

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

.main-nav a {
    color: #fff;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

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

.main-nav a:hover, .main-nav a.active {
    color: #007bff;
}

.desktop-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above mobile buttons */
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.4s;
}

.mobile-nav {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background-color: #222;
    padding-top: 80px; /* Space for fixed header content */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease;
    z-index: 1001; /* Ensure it's above everything */
    overflow-y: auto;
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 0;
}

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

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: #fff;
}

.header-buttons-mobile {
    display: none; /* Hidden on desktop */
    padding: 10px 0;
    justify-content: center;
    gap: 15px;
    background-color: #1a1a1a; /* Match header background */
    z-index: 999; /* Below hamburger menu and mobile nav */
    position: relative;
}

/* Footer Styles */
.site-footer {
    background-color: #222;
    color: #bbb;
    padding: 40px 20px;
    font-size: 14px;
}

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

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

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

.footer-column h3, .footer-column h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

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

.footer-column a {
    color: #007bff;
}

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

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

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

.footer-nav a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffc107;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Design */
@media (min-width: 769px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .header-top {
        padding: 0;
        flex-grow: 1;
    }
    .logo {
        margin-right: 40px;
    }
    .desktop-nav {
        display: block;
        flex-grow: 1;
        text-align: center;
    }
    .desktop-nav ul {
        justify-content: center;
    }
    .hamburger-menu,
    .mobile-nav,
    .header-buttons-mobile {
        display: none !important;
    }
}

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

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

    .header-container {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .header-top {
        width: 100%;
        justify-content: space-between;
        padding: 10px 20px;
    }

    .logo {
        flex: 1;
        text-align: center;
        margin: 0;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .desktop-buttons {
        display: none;
    }

    .hamburger-menu {
        display: block;
        position: relative;
        z-index: 1002; /* Ensure hamburger is clickable */
        margin-left: -10px; /* Pull to edge */
    }

    .header-buttons-mobile {
        display: flex;
        width: 100%;
        padding: 10px 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Shadow for separation */
        z-index: 999; /* Below hamburger and mobile nav */
    }

    .header-buttons-mobile .btn {
        flex: 1;
        padding: 12px 10px;
        font-size: 14px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .footer-columns {
        flex-direction: column;
        gap: 20px;
    }

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

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

@media (max-width: 480px) {
    .logo {
        font-size: 24px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .header-buttons-mobile {
        gap: 10px;
    }

    .footer-column h3, .footer-column h4 {
        font-size: 16px;
    }

    .site-footer {
        padding: 30px 15px;
    }
}