/* HEADER MAIN STYLES */
.site-header {
    background: #FFFFFF;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: 16px;
}

/* LEFT COLUMN */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.x-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0A2540;
}

.tagline {
    font-size: 0.65rem;
    font-weight: 400;
    color: #5b6e8c;
}

/* CENTER COLUMN - DESKTOP NAV */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e2f41;
    transition: color 0.2s;
    white-space: nowrap;
    padding-bottom: 6px;
}

.nav-links li a:hover {
    color: #1E6DF2;
}

.nav-links .active a {
    color: #1E6DF2;
}

.nav-links .active a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: #1E6DF2;
    border-radius: 4px;
}

.nav-links li a {
    position: relative;
}

.dropdown-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dropdown-item i {
    font-size: 0.7rem;
    color: #5b6e8c;
}

/* RIGHT COLUMN CTA */
.cta-area {
    flex-shrink: 0;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(105deg, #1A5FCC, #1E6DF2);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-cta:hover {
    background: linear-gradient(105deg, #0E4CB0, #1660DF);
    transform: translateY(-2px);
}

.btn-cta:hover i {
    transform: translateX(4px);
}

.btn-cta i {
    transition: transform 0.2s;
}

/* MOBILE TOGGLE BUTTON */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #0A2540;
    padding: 8px;
    flex-shrink: 0;
}

/* DESKTOP DEFAULT - nav visible */
.nav-menu {
    display: flex !important;
}

/* Mobile menu overlay - fullscreen slide from right */
@media (max-width: 880px) {
    .container {
        padding: 0 16px;
    }
    
    .header-wrapper {
        flex-wrap: wrap;
        min-height: 60px;
        position: relative;
    }
    
    .logo-area {
        order: 1;
    }
    
    .cta-area {
        order: 2;
        margin-left: auto;
    }
    
    .mobile-toggle {
        display: block;
        order: 3;
        z-index: 1002;
        position: relative;
    }
    
    /* Fullscreen overlay menu - slides from right */
    .nav-menu {
        position: fixed !important;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #0A2540;
        z-index: 1001;
        padding: 100px 32px 40px;
        transition: right 0.3s ease-in-out;
        margin: 0 !important;
        display: block !important;
        overflow-y: auto;
    }
    
    /* When menu is open */
    .nav-menu.open {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 2rem;
        padding: 0;
    }
    
    .nav-links li a {
        white-space: normal;
        font-size: 1.3rem;
        padding: 8px 0;
        display: block;
        color: #ffffff;
        font-weight: 500;
    }
    
    .nav-links li a:hover {
        color: #4CAF50;
    }
    
    .nav-links .active a {
        color: #4CAF50;
    }
    
    .nav-links .active a::after {
        background: #4CAF50;
    }
    
    /* Close button style - reposition */
    .mobile-toggle {
        position: relative;
        z-index: 1002;
    }
    
    /* Body scroll lock when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    .company-name {
        font-size: 1rem;
        color: #0A2540;
    }
    
    .tagline {
        font-size: 0.6rem;
    }
    
    .x-icon {
        width: 38px;
        height: 38px;
    }
    
    .btn-cta {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}

@media (max-width: 560px) {
    .nav-links li a {
        font-size: 1.1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .company-name {
        font-size: 0.85rem;
    }
    
    .tagline {
        font-size: 0.55rem;
    }
    
    .x-icon {
        width: 32px;
        height: 32px;
    }
    
    .btn-cta {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

/* Desktop styles remain unchanged */
@media (min-width: 881px) {
    .nav-menu {
        display: flex !important;
        position: static;
        background: transparent;
        padding: 0;
        height: auto;
        overflow: visible;
    }
    
    .nav-links li a {
        color: #1e2f41;
    }
    
    .nav-links li a:hover {
        color: #1E6DF2;
    }
    
    .nav-links .active a {
        color: #1E6DF2;
    }
}

/* ===== DROPDOWN MENU STYLES ===== */
.nav-item {
    position: relative;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-trigger i {
    font-size: 0.7rem;
    color: #5b6e8c;
    transition: transform 0.2s;
}

.nav-item:hover .dropdown-trigger i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
    border: 1px solid #eef2f0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    /* transform: translateX(-50%) translateY(0); */
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e2f41;
    white-space: nowrap;
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    background: #f8fafc;
    color: #1E6DF2;
    padding-left: 26px;
}

/* Remove underline from dropdown trigger when active */
.nav-links .nav-item .dropdown-trigger::after {
    display: none;
}

/* Mobile dropdown styles */
@media (max-width: 880px) {
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-trigger {
        justify-content: center;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        border: none;
        margin-top: 10px;
        padding: 10px 0;
        width: 100%;
    }
    
    .nav-item.active-dropdown .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li a {
        color: #ffffff;
        text-align: center;
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #4CAF50;
        padding-left: 20px;
    }
    
    .dropdown-trigger i {
        transition: transform 0.2s;
    }
    
    .nav-item.active-dropdown .dropdown-trigger i {
        transform: rotate(180deg);
    }
}