* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #f8f8f8;
    color: #222;
}

/* ===== NAVBAR ===== */
.navbar {
    width: 100%;
    background: #042f5b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.navbar .logo img {
    width: 80px;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #ffcc00;
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
    position: absolute;
    top: 100%;
    
    transform: translateX(-50%) translateY(-10px);
    width: 95%;
    max-width: 1200px;
    background: white;
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 204, 0, 0.3) 50%, 
        transparent 100%);
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #042f5b 0%, #0d4a84 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.dropdown-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

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

.dropdown li {
    width: 100%;
    margin-bottom: 4px;
}

.dropdown li a {
    color: #555;
    padding: 12px 16px;
    font-size: 0.95rem;
    display: block;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.dropdown li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #ffcc00;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown li a:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    color: #042f5b;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(4, 47, 91, 0.1);
}

.dropdown li a:hover::before {
    transform: scaleY(1);
}

.dropdown li a:active {
    transform: translateX(4px) scale(0.98);
}

/* Animation states */
.dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Enhanced hover effects for the entire dropdown */
.dropdown:hover {
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Loading animation */
@keyframes dropdownFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.dropdown.active {
    animation: dropdownFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ===== FOOTER ===== */
footer {
    background: #042f5b;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 40px 50px;
    flex-wrap: wrap;
}

.footer-left,
.footer-right {
    width: 45%;
}

.footer-left h3,
.footer-right h3 {
    margin-bottom: 10px;
}

.map-box {
    width: 100%;
    height: 200px;
    background: #00315c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}
.map-box iframe {
    border-radius: 10px;
    width: 100%;
    height: 220px;
}

/* ===== RESPONSIVE ===== */
@media(max-width: 900px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 18px;
    }

    footer {
        flex-direction: column;
        gap: 25px;
        padding: 30px;
    }

    .footer-left,
    .footer-right {
        width: 100%;
    }
}
::-webkit-scrollbar {
  display: none;
}
body {
  scrollbar-width: none; 
}
/* ===== SOCIAL MEDIA ===== */
footer .social-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
}

footer .social-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.3s ease;
}

footer .social-links svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

footer .facebook-link svg {
    fill: #1877F2;
}

footer .youtube-link svg {
    fill: #FF0000;
}

footer .social-links a:hover {
    opacity: 0.7;
}

/* =====================================
   BOOK FAIR THEME MARQUEE
===================================== */

.theme-marquee {
    width: 100%;
    overflow: hidden;
    background: #ffcc00;
    color: #042f5b;
    padding: 13px 0;
    white-space: nowrap;
    position: relative;
    z-index: 50;
    border-bottom: 2px solid #e0ad00;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}

.marquee-item {
    flex-shrink: 0;
    padding-right: 60px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.marquee-item strong {
    font-weight: 800;
    color: #042f5b;
}

/* Pause scrolling when hovered */

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

/* Scrolling animation */

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

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

/* Mobile responsive */

@media (max-width: 650px) {
    .theme-marquee {
        padding: 11px 0;
    }

    .marquee-item {
        font-size: 13px;
        padding-right: 40px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}
