/* Base Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin-top: 70px; /* Adjusted for sticky header height */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.site-header {
    background-color: #222; /* Dark background for professional look */
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: fixed; /* Make it sticky */
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure it's above other content */
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-header .logo {
    font-size: 28px;
    font-weight: bold;
    color: #ffc107; /* Secondary color for logo */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    border: 2px solid #ffc107;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.site-header .logo:hover {
    color: #fff;
    background-color: #ffc107;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between nav and action buttons */
}
.main-nav ul {
    display: flex;
}
.main-nav li {
    margin-left: 30px;
}
.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: 0;
    width: 0;
    height: 2px;
    background-color: #007bff; /* Primary color for hover */
    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; /* Primary color for active/hover */
}
.header-actions {
    display: flex;
    gap: 10px; /* Space between register and login buttons */
}
.header-actions .btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}
.header-actions .btn-register {
    background-color: #007bff; /* Primary color */
    color: #fff;
    border: 1px solid #007bff;
}
.header-actions .btn-register:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.header-actions .btn-login {
    background-color: transparent;
    color: #ffc107; /* Secondary color */
    border: 1px solid #ffc107;
}
.header-actions .btn-login:hover {
    background-color: #ffc107;
    color: #222;
}
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
}

/* Footer Styles */
.site-footer {
    background-color: #222; /* Consistent dark background */
    color: #eee;
    padding: 40px 0 20px;
    font-size: 15px;
}
.site-footer h3 {
    color: #ffc107; /* Secondary color for headings */
    font-size: 18px;
    margin-bottom: 20px;
}
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col {
    flex: 1;
    min-width: 250px; /* Minimum width for columns before wrapping */
}
.footer-col p,
.footer-nav a {
    color: #bbb;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.footer-nav a:hover {
    color: #007bff; /* Primary color for hover */
}
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
}
.footer-bottom .copyright {
    color: #bbb;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
        justify-content: flex-start; /* Start hamburger on left */
        align-items: center; /* Vertically center first row elements */
        padding-bottom: 0;
        position: relative; /* For main-nav absolute positioning */
    }
    .hamburger-menu {
        display: block;
        order: 1; /* First item in flex order */
        margin-right: auto; /* Pushes logo to the right, balancing it */
    }
    .site-header .logo {
        order: 2; /* Second item in flex order */
        flex-grow: 1; /* Allows logo to take available space */
        text-align: center; /* Centers the logo within its flex item */
        margin: 0;
        padding: 5px 0;
    }
    .header-right {
        order: 3; /* Third item in flex order, takes full width for new line */
        flex-basis: 100%; /* Take full width */
        flex-direction: column; /* Stack nav and actions vertically */
        gap: 15px; /* Space between actions and nav */
        margin-top: 10px; /* Space below the logo row */
        align-items: center; /* Center its children horizontally */
    }
    .header-actions {
        order: 1; /* Within header-right, actions come first */
        width: 100%; /* Take full width */
        justify-content: center; /* Center the buttons */
        gap: 15px;
    }
    .header-actions .btn {
        flex: 1; /* Allow buttons to grow and fill space */
        max-width: 150px; /* Limit button width */
        padding: 10px 0; /* Adjust padding for mobile */
    }
    .main-nav {
        order: 2; /* Within header-right, nav comes after actions */
        width: 100%;
        display: none; /* Hidden by default for mobile */
        flex-direction: column;
        text-align: center;
        background-color: #333;
        position: absolute; /* Position relative to .site-header .container */
        top: 100%; /* Position below the container's content */
        left: 0;
        z-index: 1000;
        padding-bottom: 10px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    .main-nav li {
        margin: 0;
        border-bottom: 1px solid #444;
    }
    .main-nav li:last-child {
        border-bottom: none;
    }
    .main-nav a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }
    .main-nav a::after {
        display: none;
    }

    .footer-columns {
        flex-direction: column;
        gap: 20px;
    }
    .footer-col {
        min-width: unset;
        width: 100%;
        text-align: center;
    }
    .footer-col p {
        margin-bottom: 5px;
    }
    .footer-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-nav li {
        margin-bottom: 5px;
    }
}