/* ===== NAVIGATION DROPDOWN STYLES ===== */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
    z-index: 1003;
    position: relative;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Desktop/Mobile visibility helpers */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 0;
    min-width: 900px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
    z-index: 1000;
    display: grid;
    grid-template-columns: 440px 1fr;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 20px;
}

.dropdown-header {
    background: linear-gradient(135deg, #001a4d 0%, #0047b3 50%, #0066ff 100%);
    padding: 40px;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dropdown-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.dropdown-header p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 20px;
}

.dropdown-item {
    padding: 24px;
    border-radius: 12px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid transparent;
}

.dropdown-item:hover {
    background: var(--bg-light);
    border-color: #e0e0e0;
    transform: translateX(4px);
}

.dropdown-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.dropdown-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dropdown-item:hover .dropdown-icon {
    background: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item-content {
    flex: 1;
}

.dropdown-item h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.dropdown-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Mobile Responsive Styles */
@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex !important;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1003;
        background: white;
        border-radius: 8px;
        padding: 12px;
    }

    .logo {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1003;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        display: flex !important;
        flex-direction: column;
        padding: 80px 24px 40px;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
        z-index: 1002;
        gap: 0;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #e5e5e5;
    }

    .nav-item.mobile-only {
        border-bottom: none;
        margin-top: 20px;
    }

    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
        width: 100%;
        font-size: 18px;
        font-weight: 500;
        color: var(--text-primary);
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        padding: 0;
        min-width: auto;
        width: 100%;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        display: block;
        grid-template-columns: 1fr;
    }

    .dropdown.active .dropdown-menu {
        max-height: 2000px;
        padding: 16px 0 24px;
    }

    .dropdown-header {
        display: none;
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        display: block;
    }

    .dropdown-item {
        padding: 16px 0;
        border-radius: 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        gap: 12px;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover {
        background: transparent;
        transform: none;
        border-color: #f0f0f0;
    }

    .dropdown-icon {
        width: 32px;
        height: 32px;
        background: transparent;
        border-radius: 0;
    }

    .dropdown-icon svg {
        width: 20px;
        height: 20px;
    }

    .dropdown-item:hover .dropdown-icon {
        background: transparent;
        box-shadow: none;
    }

    .dropdown-item h4 {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 4px;
    }

    .dropdown-item p {
        font-size: 13px;
        color: #666;
    }

    .arrow {
        transition: transform 0.3s ease;
        font-size: 12px;
    }

    .dropdown.active .arrow {
        transform: rotate(180deg);
    }

    .nav-item.mobile-only {
        border-bottom: none;
        margin-top: 20px;
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .nav-item.mobile-only:first-of-type {
        margin-top: auto;
        padding-top: 20px;
    }

    .mobile-only .nav-link {
        flex: 1;
        text-align: center;
        padding: 14px 20px;
        font-size: 16px;
        font-weight: 500;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        color: var(--text-primary);
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .mobile-only .nav-link:hover {
        background: #f5f5f5;
    }

    .mobile-only .btn-primary {
        flex: 1;
        text-align: center;
        padding: 14px 20px;
        font-size: 16px;
        font-weight: 600;
        background: #000;
        color: white;
        border-radius: 8px;
        text-decoration: none;
        border: none;
        transition: all 0.2s ease;
    }

    .mobile-only .btn-primary:hover {
        background: #333;
    }
}

/* Overlay for mobile menu */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 968px) {
    body.menu-open {
        overflow: hidden;
    }
}
