:root {
    --primary: #2c5aa0;
    --primary-light: #3a6fc8;
    --secondary: #f8f9fa;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --accent: #e74c3c;
    --text: #34495e;
    --text-light: #7f8c8d;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-hover: 0 14px 28px rgba(0,0,0,0.12), 0 10px 10px rgba(0,0,0,0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
}

/* ===== Navigation Container ===== */
.nav-container {
    /* background: white; */
    /* box-shadow: var(--shadow); */
    position: relative;
    z-index: 1000;

}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

/* ===== Main Navigation ===== */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-logo {
    margin-right: 2rem;
}

.nav-logo img {
    height: 40px;
    transition: var(--transition);
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1.5rem 1.2rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link i {
    margin-left: 8px;
    font-size: 0.8em;
    transition: var(--transition);
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* ===== Dropdown Menus ===== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 650px;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    display: flex;
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Columns */
.dropdown-column {
    padding: 1.5rem;
    flex: 1;
    border-right: 1px solid #eee;
}

.dropdown-column:last-child {
    border-right: none;
}

.dropdown-header {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.dropdown-header i {
    margin-right: 10px;
    font-size: 1rem;
}

.dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-item {
    margin-bottom: 0.5rem;
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 0.7rem 0.7rem 0.7rem 0;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 4px;
}

.dropdown-link:hover {
    color: var(--primary);
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.dropdown-link i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
    color: var(--primary-light);
    font-size: 0.9em;
    transform: none !important;
}

/* Featured Dropdown Content */
.dropdown-featured {
    width: 220px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dropdown-featured h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.dropdown-featured p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.dropdown-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: white;
    color: var(--primary);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* ===== Mega Menu ===== */
.mega-menu {
    width: 900px;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.nav-item:hover .mega-menu {
    transform: translateX(-50%) translateY(0);
}

.mega-column h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
    font-size: 1.1rem;
}

.mega-links {
    list-style: none;
}

.mega-links li {
    margin-bottom: 0.5rem;
}

.mega-links a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.mega-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* ===== Active States ===== */
.nav-item.active .nav-link {
    color: var(--primary);
    background: rgba(52, 152, 219, 0.1);
}

.nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

/* CTA Container */
.nav-cta {
    margin-left: 2rem;
}

/* Button Styles */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background-color: #2c5aa0; /* Professional blue */
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #1d4a8a; /* Slightly darker border */
    transition: all 0.2s ease;
}

/* Hover State */
.cta-button:hover {
    background-color: red;
    transform: translateY(-1px);
    color: white;
}

/* Active State */
.cta-button:active {
    transform: translateY(0);
}


/* ===== Mobile Toggle ===== */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 1rem;
    z-index: 1002;

}

.toggle-icon {
    pointer-events: none;
}

.body-lock {
    overflow: hidden;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
    .dropdown-menu {
        width: 550px;
    }

    .mega-menu {
        width: 700px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    /* Show mobile toggle */
    .mobile-toggle {
        display: block;
    }

    /* Main navigation styles */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 2rem 1.5rem;
        transition: all 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    /* Logo adjustment */
    .nav-logo {
        margin: 0 0 2rem 0;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #eee;
    }

    /* List adjustments */
    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    /* Menu items */
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-link {
        padding: 1rem 0;
        justify-content: space-between;
    }

    /* Dropdown adjustments */
    .dropdown-menu {
        position: static;
        width: 100% !important;
        background: #f9fafc;
        box-shadow: none;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 0.5rem 0 1rem;
        padding: 0;
    }

    .nav-item.dropdown-open .dropdown-menu {
        display: block;
    }

    .dropdown-column {
        padding: 0.75rem 0;
        border-right: none;
    }

    /* Mega menu adjustments */
    .mega-menu {
        width: 100% !important;
        grid-template-columns: 1fr;
        padding: 0;
    }

    /* Hide CTA on mobile */
    .nav-cta {
        display: none;
    }
}