/* General Body & Container */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: #E0E0E0;
    background-color: #1A202C;
    line-height: 1.6;
}

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

/* Header */
.site-header {
    background-color: #0D1B2A;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* New container for hamburger and logo */
.site-header .header-top-row {
    display: flex;
    align-items: center;
}

.site-header .logo {
    color: #FFD700;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.site-header .logo:hover {
    color: #FFF;
}

/* Desktop: main-nav and header-actions */
.site-header .main-nav {
    display: flex; /* Make main-nav a flex item */
    align-items: center; /* Align its content (ul) vertically */
    margin-left: auto; /* Pushes main-nav and subsequent elements (header-actions) to the right */
}

.site-header .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.site-header .main-nav ul li {
    margin-left: 30px;
}

.site-header .main-nav ul li a {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.site-header .main-nav ul li a:hover,
.site-header .main-nav ul li a.active {
    color: #FFD700;
    border-bottom-color: #FFD700;
}

.site-header .header-actions {
    margin-left: 30px;
    display: flex;
    gap: 10px;
}

.site-header .btn {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.site-header .btn-login {
    background-color: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
}

.site-header .btn-login:hover {
    background-color: #FFD700;
    color: #0D1B2A;
}

.site-header .btn-register {
    background-color: #FFD700;
    color: #0D1B2A;
    border: 2px solid #FFD700;
}

.site-header .btn-register:hover {
    background-color: #E0B800;
    border-color: #E0B800;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative; /* Keep relative for span animation */
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFD700;
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu span:last-child {
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    background-color: #0D1B2A;
    color: #E0E0E0;
    padding: 40px 0 20px;
    border-top: 1px solid #1A202C;
}

.site-footer h3 {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-footer p {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.8;
}

.site-footer .footer-logo {
    color: #FFD700;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #1A202C;
}

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

.site-footer .footer-col ul li {
    margin-bottom: 10px;
}

.site-footer .footer-col ul li a {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.site-footer .footer-col ul li a:hover {
    color: #FFD700;
}

.site-footer .company-info {
    grid-column: span 1;
}

.site-footer .footer-nav {
    grid-column: span 1;
}

.site-footer .contact-info {
    grid-column: span 1;
}

/* Responsive */
@media (max-width: 992px) {
    /* .site-header .main-nav ul { margin-left: 15px; } */
    /* .site-header .header-actions { margin-left: 15px; } */
    /* Above commented out as it will be handled by main-nav's margin-left: auto and header-actions' margin-left: 30px */
}

@media (max-width: 768px) {
    /* Modify .site-header .container for mobile layout */
    .site-header .container {
        flex-direction: column; /* Stack header-top-row, main-nav, header-actions */
        align-items: center; /* Center content horizontally */
        /* position: relative; Removed as it's not strictly needed for hamburger, and site-header already provides context for absolute main-nav */
    }

    /* New styles for header-top-row on mobile */
    .site-header .header-top-row {
        display: flex; /* Make it a flex container */
        align-items: center; /* Vertically center hamburger and logo */
        width: 100%; /* Take full width of container for proper spacing */
        padding: 0 15px; /* Match container padding */
        box-sizing: border-box; /* Include padding in width */
        min-height: 50px; /* Ensure a minimum height for the row */
    }

    /* Hamburger menu positioning for mobile */
    .hamburger-menu {
        display: block; /* Ensure it's visible */
        /* Remove position: absolute, left, top, transform */
        margin-right: auto; /* Pushes the logo to the right, allowing it to be centered */
        /* z-index: 1001; Keep existing z-index */
    }

    /* Logo centering for mobile */
    .site-header .logo {
        margin: 0 auto; /* Centers the logo horizontally within header-top-row */
        /* Remove text-align: center; as flex handles centering */
    }

    /* Adjust main-nav for mobile */
    .site-header .main-nav {
        display: none; /* Hide by default, toggled by JS */
        margin-left: 0; /* Override desktop's margin-left: auto */
        width: 100%; /* Take full width for dropdown */
        background-color: #0D1B2A; /* Example background for dropdown */
        box-shadow: 0 5px 10px rgba(0,0,0,0.3); /* Example shadow */
        position: absolute; /* Position it below the header */
        top: 100%; /* Position right below the site-header */
        left: 0;
        z-index: 999; /* Below hamburger */
    }

    .site-header .main-nav.active {
        display: flex; /* Show as flex column */
    }

    .site-header .main-nav ul {
        flex-direction: column;
        width: 100%;
        margin: 0;
    }

    .site-header .main-nav ul li {
        margin: 0;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .site-header .main-nav ul li:last-child {
        border-bottom: none;
    }

    .site-header .main-nav ul li a {
        display: block;
        padding: 10px 15px;
    }

    /* Style for header actions on mobile (moved out of main-nav) */
    .site-header .header-actions {
        display: flex; /* Arrange buttons side-by-side */
        justify-content: center; /* Center the buttons within their container */
        gap: 10px; /* Space between buttons */
        margin: 20px auto 0; /* Space below the header-top-row/nav and center the block */
        width: 100%; /* Ensure it takes full width for centering */
        padding: 0 15px; /* Match container padding */
        box-sizing: border-box; /* Include padding in width calculation */
    }

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

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-footer .footer-col {
        margin-bottom: 30px;
    }
    .site-footer .footer-col:last-child {
        margin-bottom: 0;
    }
    .site-footer .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .site-header .logo {
        font-size: 24px;
    }
    /* .site-header .main-nav { top: 55px; } This is now handled by top: 100% relative to site-header */
}