:root {
    --primary-color: #0A2463;
    --secondary-color: #E3A81D;
    --text-color: #ffffff;
    --dark-text-color: #333;
    --header-desktop-height: 80px;
    --header-mobile-top-height: 60px;
    --header-mobile-buttons-height: 60px;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-text-color);
    padding-top: var(--header-desktop-height); /* Space for fixed header on desktop */
}

body.no-scroll {
    overflow: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    min-height: var(--header-desktop-height);
    background-color: var(--primary-color);
    color: var(--text-color);
    width: 100%;
}

.logo {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    padding: 0;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002; /* Higher than nav to be clickable */
}

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

.main-nav {
    flex-grow: 1; /* Allows nav to take up available space */
    margin: 0 20px;
}

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

.main-nav li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.main-nav li a:hover,
.main-nav li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

.desktop-buttons {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

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

/* Buttons */
.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.3);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-register {
    background-color: #28a745; /* Green */
    color: var(--text-color);
}

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

.btn-login {
    background-color: #007bff; /* Blue */
    color: var(--text-color);
}

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

.btn-download {
    background-color: var(--secondary-color); /* Accent Yellow */
    color: var(--primary-color); /* Dark text for contrast */
}

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

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

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

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

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

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

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

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding-top: calc(var(--header-mobile-top-height) + var(--header-mobile-buttons-height));
    }

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

    .header-content-wrapper {
        padding: 10px;
        min-height: var(--header-mobile-top-height);
        justify-content: flex-start; /* Adjust to allow hamburger on left */
    }

    .logo {
        flex-grow: 1; /* Allow logo to take available space */
        text-align: center;
        margin-left: -45px; /* Counteract hamburger width for center align */
    }

    .hamburger-menu {
        display: block;
        order: -1; /* Place hamburger at the very beginning */
        margin-right: 10px;
    }

    .main-nav {
        position: fixed;
        top: calc(var(--header-mobile-top-height) + var(--header-mobile-buttons-height));
        left: -100%;
        width: 100%;
        height: calc(100vh - (var(--header-mobile-top-height) + var(--header-mobile-buttons-height)));
        background-color: var(--primary-color);
        transition: left 0.3s ease-in-out;
        z-index: 1001;
        overflow-y: auto;
        padding: 20px;
    }

    .main-nav.active {
        left: 0;
    }

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

    .main-nav li {
        width: 100%;
        margin-bottom: 10px;
    }

    .main-nav li a {
        padding: 12px 15px;
        border-radius: 5px;
    }

    .desktop-buttons {
        display: none;
    }

    .mobile-buttons-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 10px;
        background-color: var(--primary-color);
        min-height: var(--header-mobile-buttons-height);
        z-index: 999; /* Below sliding nav */
        width: 100%;
    }

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

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

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

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