/* =============================
   GLOBAL FIX (CRITICAL)
============================= */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

input, button, select, textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============================
   HEADER
============================= */

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: #1d3557;
    border-bottom: 3px solid #e63946;
    z-index: 3000;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    gap: 10px;
}

/* =============================
   LOGO
============================= */

.logo img {
    height: 55px;
    width: auto;
    max-width: 160px;
}

/* =============================
   NAV MENU
============================= */

.nav-menu {
    display: flex;
    flex: 1;
    justify-content: space-evenly;
    align-items: center;
    min-width: 0;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.nav-menu a.active {
    color: #e63946;
}

/* =============================
   ACTION BUTTONS
============================= */

.nav-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 18px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.btn.primary {
    background: #e63946;
    color: #fff;
}

.btn.secondary {
    background: #457b9d;
    color: #fff;
}

/* =============================
   DROPDOWN (FIXED + STABLE)
============================= */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .btn {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;

    background: #fff;
    min-width: 180px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    overflow: hidden;
    z-index: 999;

    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: 0.18s ease;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

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

/* =============================
   HAMBURGER
============================= */

#hamburger {
    display: none;
    cursor: pointer;
}

#hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    display: block;
}

/* =============================
   MOBILE MENU
============================= */

#mobileMenu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: #1d3557;
    padding-top: 60px;
    transition: 0.3s;
    z-index: 5000;
    display: flex;
    flex-direction: column;
}

#mobileMenu.open {
    left: 0;
}

#mobileMenu a {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* =============================
   MOBILE BUTTONS
============================= */

.mobile-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
}

.mobile-buttons .btn {
    border-radius: 0;
}

/* =============================
   OVERLAY
============================= */

#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 4500;
}

#overlay.show {
    display: block;
}

/* =============================
   CLOSE BUTTON
============================= */

#mobileClose {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
}

/* =============================
   RESPONSIVE
============================= */

@media (max-width: 768px) {
    .nav-menu,
    .nav-actions {
        display: none;
    }

    #hamburger {
        display: block;
    }
}

/* =============================
   SPACER
============================= */

.header-spacer {
    height: 80px;
}