/* ================= LAYOUT.CSS ================= */
/* Navbar, Footer, and Main Containers */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0; /* Consistent vertical padding for main content containers */
}

/* ===== Navigation ===== */
nav {
    background-color: var(--dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative; /* Added for underline effect */
    padding-bottom: 5px; /* Added for underline effect clearance */
}

/* --- Navigation Hover Effect (Underline) --- */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0; /* Position at the bottom of the link */
    left: 0;
    background-color: var(--accent); /* Using accent color for the underline */
    transition: width 0.3s ease-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Dropdown Styles (for Admin link in main nav) --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dark);
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    top: 100%;
    left: 0;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    z-index: 200;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--primary-dark);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ===== Footer ===== */
footer {
    background-color: var(--dark);
    color: var(--light);
    text-align: center;
    padding: 0.25rem 0; /* Minimal top/bottom padding */
    font-size: 0.85rem; /* Slightly smaller text */
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    box-sizing: border-box;
    margin-top: 40px;
}

footer p {
    margin: 0; /* Remove all paragraph margins */
    line-height: 1.2; /* Tighten line spacing */
}

footer a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.7;
}

/* Footer Sticky (Optional) */
.footer-sticky {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 50;
}

/* ===== Responsive Navigation ===== */
@media (max-width: 768px) {
    /* hide desktop row, show drawer via JS */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--dark);
        padding: 1rem 0;
    }

    .nav-links.active { /* For JS toggling of mobile menu */
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 1.5rem;
    }

    .hamburger {
        display: block;
    }
}