:root {
    --bg: #f7f7f7;
    --nav: #2a2a72;
    --accent: #192a81;
    --card-bg: #fff;
    --muted: #666;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: #111;
    -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: var(--nav);
    color: #fff;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    opacity: 0.95;
}
.auth-buttons {
    display: flex;
    gap: 10px;
}
.auth-buttons button {
    border: 0;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    background: #fff;
    color: var(--nav);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* PAGE LAYOUT - add top padding so content not hidden under fixed navbar */
main {
    padding-top: 92px;
    max-width: 1200px;
    margin: 0 auto;
}

/* CAROUSEL */
.carousel-container {
    width: 100%;
    height: 380px;
    position: relative;
    margin: 8px 0 28px 0;
    overflow: hidden;
    border-radius: 8px;
}
.carousel-slide {
    display: none;
}
.carousel-slide img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}
.fade {
    animation: fadeIn 0.8s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

/* HERO */
.hero {
    text-align: center;
    padding: 36px 20px 28px;
    margin-bottom: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
    border-radius: 8px;
}
.hero h1 {
    margin: 0;
    font-size: 34px;
    color: var(--nav);
    line-height: 1.05;
    font-weight: 800;
}
.hero p {
    color: var(--muted);
    margin: 12px 0 0;
    font-size: 16px;
}

.hero-buttons {
    margin-top: 22px;
    display: flex;
    gap: 16px;
    justify-content: center;
}
.hero-buttons button {
    padding: 12px 20px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    background: var(--nav);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Form card container (centered like login/signup) */
.form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 80px;
    min-height: 420px;
}
.form-card {
    width: 100%;
    max-width: 540px;
    background: var(--card-bg);
    padding: 34px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(20, 20, 60, 0.08);
    transition: transform 0.18s ease, opacity 0.18s ease;
}
.form-title {
    text-align: center;
    color: var(--accent);
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
}

.form-row {
    margin-bottom: 14px;
}
label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 600;
}
.input-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e1e1e6;
    font-size: 15px;
    background: #fff;
}
textarea.input-control {
    min-height: 110px;
    resize: vertical;
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
}
.btn {
    padding: 12px 18px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.primary-btn {
    background: var(--accent);
    color: #fff;
}
.back-btn {
    background: #111;
    color: #fff;
}

/* Utilities */
.hidden {
    display: none !important;
}
@media (max-width: 700px) {
    .hero h1 {
        font-size: 26px;
    }
    .carousel-container {
        height: 220px;
    }
    .carousel-slide img {
        height: 220px;
    }
}

.nav-links .dropdown {
    position: relative;
}

.dropdown a {
    text-decoration: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 30px;
    left: 0;
    background: #fff;
    border-radius: 4px;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 10;
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    white-space: nowrap;
    color: #333;
}

.dropdown-menu a:hover {
    background: #f3f3f3;
}

/* Show on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown {
    position: relative;
}

.dropdown > a {
    display: inline-block;
    padding: 5px 10px;
}

.dropdown-menu {
    position: absolute;
    top: 100%; /* sits directly below the button */
    left: 0;
    display: none;
    background: #fff;
    min-width: 180px;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999; /* stays above everything */
}

/* show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* make dropdown sticky so cursor doesn’t break hover */
.dropdown-menu:hover {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #1d1c1c;
}

.dropdown-menu a:hover {
    background: var(--accent);
    color: white;
}

/* =========================
   MOBILE NAVBAR FIX
   ========================= */

/* Hamburger button */
.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {

    /* Show hamburger */
    .menu-toggle {
        display: block;
    }

    /* Stack navbar properly */
    .navbar {
        padding: 0 18px;
    }

    /* Hide menu by default */
    .nav-links {
        position: absolute;
        top: 68px; /* navbar height */
        left: 0;
        width: 100%;
        background: var(--nav);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        gap: 12px;
        display: none;
    }

    /* Show when active */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 8px 0;
        font-size: 16px;
    }

    /* Auth buttons full width */
    .auth-buttons {
        width: 100%;
        flex-direction: column;
        margin-top: 10px;
    }

    .auth-buttons button {
        width: 100%;
    }

    /* Dropdown fixes for mobile */
    .dropdown-menu {
        position: static;
        background: #fff;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
        border-radius: 6px;
        display: none;
    }

    /* Open dropdown on click */
    .dropdown.open .dropdown-menu {
        display: block;
    }

    /* Disable hover behavior on mobile */
    .dropdown:hover .dropdown-menu {
        display: none;
    }
}
