/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1a4b8c;
    --secondary: #f39c12;
    --accent: #e74c3c;
    --light: #f5f7fa;
    --dark: #2c3e50;
    --success: #2ecc71;
    --error: #e74c3c;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--primary);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-animation {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-r {
    font-size: 48px;
    font-weight: 900;
    color: var(--secondary);
    position: relative;
    animation: rotateR 3s ease-in-out infinite;
}

@keyframes rotateR {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1.2); color: white; }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Enhanced Multi-level Dropdown Menu */
nav {
    position: relative;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    position: relative;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Level 1 Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 8px;
    overflow: hidden;
}

/* Level 2 Dropdown */
.dropdown-2 {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 101;
    border-radius: 8px;
    overflow: hidden;
}

/* Level 3 Dropdown */
.dropdown-3 {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 102;
    border-radius: 8px;
    overflow: hidden;
}

/* Level 4 Dropdown */
.dropdown-4 {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 103;
    border-radius: 8px;
    overflow: hidden;
}

/* Dropdown Items */
.dropdown-item {
    position: relative;
}

.dropdown-link {
    color: var(--dark);
    text-decoration: none;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    color: var(--primary);
    padding-left: 25px;
}

.dropdown-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* FIXED: Hover Effects for All Levels - SIMPLIFIED SELECTORS */
.nav-item:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item:hover > .dropdown-2 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-item:hover > .dropdown-3 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-item:hover > .dropdown-4 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Arrow rotation on hover */
.dropdown-item:hover > .dropdown-link i {
    transform: rotate(-90deg);
}

/* Hero Section with Slider */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: white;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 75, 140, 0.7), rgba(26, 75, 140, 0.8));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 800px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-content.active {
    opacity: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background-color: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

/* Mobile Styles for Dropdowns */
@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .dropdown, .dropdown-2, .dropdown-3, .dropdown-4 {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1);
        display: none;
        width: 100%;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active,
    .dropdown-2.active,
    .dropdown-3.active,
    .dropdown-4.active {
        display: block;
        max-height: 500px;
    }

    .dropdown-link {
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 20px 10px 30px;
    }

    .dropdown-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        padding-left: 35px;
    }

    .dropdown-link i {
        transform: rotate(-90deg);
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .slider-arrow {
        width: 50px;
        height: 50px;
    }

    .slider-arrow.prev {
        left: 15px;
    }

    .slider-arrow.next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 1.3rem;
    }

    .logo-text p {
        font-size: 0.7rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 80vh;
    }

    section {
        padding: 60px 0;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Desktop hover delays for better UX */
@media (min-width: 993px) {
    .dropdown,
    .dropdown-2,
    .dropdown-3,
    .dropdown-4 {
        transition: all 0.3s ease 0.1s;
    }
    
    .nav-item:hover > .dropdown,
    .dropdown-item:hover > .dropdown-2,
    .dropdown-item:hover > .dropdown-3,
    .dropdown-item:hover > .dropdown-4 {
        transition: all 0.3s ease 0s;
    }
}

 .btn-outline {
            background-color: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
        }

        .btn-outline:hover {
            background-color: var(--primary);
            color: white;
        }