/* =========================
   BASE
========================= */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f7f9fb;
    color: #1f2933;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   HEADER / NAV
========================= */

.site-header {
    background-color: #0b3c5d;
    color: #ffffff;
}

.header-row {
    display: flex;
    align-items: center;
    height: 64px;
}

.brand {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 40px;
    position: relative;
}

/* =========================
   DROPDOWNS (THE FIX)
========================= */

.nav-item {
    position: relative;
    margin-right: 24px;
}

.nav-label {
    cursor: pointer;
    font-weight: 500;
    padding: 8px 4px;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: #1f2933;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: #f1f5f9;
}

/* KEY PART: hover stays active */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* =========================
   RIGHT SIDE
========================= */

.nav-spacer {
    flex: 1;
}

.nav-user {
    margin-right: 16px;
    font-size: 14px;
    opacity: 0.9;
}

.nav-button {
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 8px;
}

.nav-button.primary {
    background-color: #ffffff;
    color: #0b3c5d;
}

.nav-button.ghost {
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.4);
}

.nav-button:hover {
    opacity: 0.85;
}

/* =========================
   CONTENT
========================= */

main.container {
    padding: 30px 20px;
}

.card {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 30px;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    background-color: #e5e7eb;
    border-top: 1px solid #cbd5e1;
    margin-top: 60px;
}

.muted {
    color: #555;
    font-size: 0.9em;
}
