/* Global Styles */
* {
    font-family: 'Poppins', sans-serif;
}

/* Hero Slider */
.hero-slider {
    height: 600px;
    overflow: hidden;
    position: relative;
}

.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;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    background: linear-gradient(to right, rgba(0, 33, 71, 0.8), rgba(0, 33, 71, 0.4));
}

/* Dropdown Menu */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Counter Animation */
.counter {
    transition: all 1s ease-out;
}

/* Gallery Slider */
.gallery-slider {
    height: 400px;
}

/* News Items */
.news-item {
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

/* Enhanced Navigation Styles */
.nav-item {
    position: relative;
}

.mega-menu {
    display: none;
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #1e3a8a;
    z-index: 1000;
    min-width: 250px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 20px;
    margin: 0 auto;
}

.mega-menu-wide {
    width: 85vw;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.mega-menu-column {
    border-right: 1px solid #e5e7eb;
    padding-right: 20px;
    min-height: 0;
}

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

.mega-menu-category {
    margin-bottom: 20px;
}

.mega-menu-category-title {
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1e3a8a;
    font-size: 14px;
}

.mega-menu-item {
    display: block;
    padding: 8px 12px;
    color: #374151;
    font-size: 13px;
    transition: all 0.3s;
    border-radius: 4px;
}

.mega-menu-item:hover {
    background: #eff6ff;
    color: #1e3a8a;
    padding-left: 16px;
}

/* Mobile Menu */
.mobile-submenu {
    display: none;
    padding-left: 15px;
    margin-top: 8px;
}

.mobile-submenu.active {
    display: block;
}

.mobile-menu-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-toggle i {
    transition: transform 0.3s;
}

.mobile-menu-toggle.active i {
    transform: rotate(180deg);
}

/* Scrollbar styling for mega menus */
.mega-menu::-webkit-scrollbar {
    width: 8px;
}

.mega-menu::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.mega-menu::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 4px;
}

.mega-menu::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Smooth scrolling */
.mega-menu {
    scroll-behavior: smooth;
}

/* Overlay backdrop for mega menus */
.mega-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
}

/* Better visual indicator for scrollable content */
.mega-menu::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, white, transparent);
    pointer-events: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .mega-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 10px 0;
        max-height: none;
        transform: none;
        left: auto;
        right: auto;
    }

    .mega-menu-wide {
        width: 100%;
        transform: none;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mega-menu-column {
        border-right: none;
        padding-right: 0;
    }

    .mega-menu-backdrop {
        display: none !important;
    }
}

/* Logo Carousel */
.logo-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.logo-carousel {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.logo-carousel:hover {
    animation-play-state: paused;
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.logo-image {
    height: 80px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-item:hover .logo-image {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments for logo carousel */
@media (max-width: 768px) {
    .logo-carousel {
        gap: 40px;
    }

    .logo-image {
        height: 60px;
        max-width: 120px;
    }
}

/* Notices Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-notices 40s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee-notices {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.mask-image-linear {
    mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}