/* --- 1. Variables & Global Reset --- */
:root {
    --primary-blue: #0c589c;
    --primary-red: #e82126;
    --white: #ffffff;
    --gray-light: #f4f6f8;
    --header-height: 90px;
    
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f4;
    padding-top: var(--header-height); /* <--- ADD THIS LINE */
    margin-top: 90px !important;
}


/* --- 2. Header Container --- */
.site-header {
    background-color: var(--white);
    height: var(--header-height);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* --- 3. Logo --- */
.logo-container {
    height: 100%;
    display: flex;
    align-items: center;
    width: 160px;
    z-index: 1001;
}

.logo-video {
    width: 100%;
    height: 100%;
    max-height: 90px;
    object-fit: contain;
}

/* --- 4. Navigation (Desktop) --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* --- 5. Desktop Animations --- */
.nav-link {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
    display: block;
    height: 20px;
    line-height: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Desktop Scroll Effect */
.nav-link span {
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--primary-red);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link:hover span {
    transform: translateY(-100%);
}

.nav-link:hover::after {
    transform: translateY(-100%);
}

/* Desktop Arrows */
.desktop-arrow {
    display: inline-block;
    margin-left: 5px;
    font-size: 10px;
    vertical-align: middle;
}

/* --- 6. Dropdowns (Desktop) --- */
@media screen and (min-width: 1025px) {
    .dropdown-menu {
        position: absolute;
        top: 50px;
        left: -15px;
        background: var(--white);
        min-width: 220px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        list-style: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s ease;
        border-top: 3px solid var(--primary-red);
        padding: 10px 0;
        border-radius: 0 0 4px 4px;
        z-index: 1100;
    }

    .nav-item::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 60px;
    }

    .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu li .nav-link {
        padding: 10px 20px;
        height: auto;
        overflow: visible;
        font-size: 13px;
        color: #444;
    }

    .dropdown-menu li .nav-link:hover {
        background-color: #f9f9f9;
        color: var(--primary-red);
    }

    .sub-dropdown {
        position: absolute;
        left: 100%;
        top: 0;
        background: var(--white);
        min-width: 200px;
        list-style: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 3px solid var(--primary-blue);
    }

    .has-submenu:hover>.sub-dropdown {
        opacity: 1;
        visibility: visible;
        top: -5px;
    }

    /* Disable scroll animation in dropdowns */
    .dropdown-menu .nav-link span {
        transform: none !important;
    }

    .dropdown-menu .nav-link::after {
        display: none;
    }
}

/* --- 7. Button --- */
.btn-login {
    background-color: var(--primary-red);
    color: var(--white) !important;
    padding: 12px 25px;
    border-radius: 4px;
    height: auto;
    overflow: visible;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(232, 33, 38, 0.3);
    text-align: center;
}

.btn-login:hover {
    background-color: #cc1e23;
    padding: 12px 35px;
    letter-spacing: 1.5px;
}

.btn-login span {
    transform: none !important;
}

.btn-login::after {
    display: none;
}

/* --- 8. Hamburger --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    z-index: 2000;
    background: transparent;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: 0.3s;
}

/* --- 9. MOBILE & TABLET UI (Fixed Accordion) --- */
@media screen and (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .desktop-arrow {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        right: -400px;
        width: 400px;
        height: 80vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0 10px 0;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 1500;
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        height: auto;
        display: block;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link {
        width: 100%;
        padding: 18px 25px;
        height: auto;
        line-height: normal;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #333;
    }

    .nav-link:hover span {
        transform: none;
    }

    .nav-link:hover::after {
        display: none;
    }

    /* Dropdowns */
    .dropdown-menu,
    .sub-dropdown {
        position: static;
        visibility: visible;
        opacity: 1;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        transform: none;
        transition: none;
        padding: 0;
    }

    .dropdown-menu {
        background-color: var(--gray-light);
    }

    .dropdown-menu .nav-link {
        padding-left: 40px;
        font-size: 13px;
        color: #555;
    }

    .sub-dropdown {
        background-color: #eaeff2;
        border-left: 4px solid var(--primary-blue);
    }

    .sub-dropdown .nav-link {
        padding-left: 55px;
    }

    .show-mobile {
        display: block !important;
    }

    /* Mobile Arrow Logic */
    .mobile-arrow {
        font-size: 18px;
        font-weight: bold;
        color: var(--primary-blue);
        transition: transform 0.3s ease;
    }

    .mobile-open>.mobile-arrow {
        transform: rotate(90deg);
        color: var(--primary-red);
    }

    .btn-wrapper {
        padding: 30px 20px;
        border: none;
        margin-top: 10px;
    }

    .btn-login {
        width: 100%;
        display: block;
        background-color: var(--primary-blue);
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--primary-red);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--primary-red);
    }
}