/* Base & Resets */
html,
body {
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    overflow-y: overlay;
    /* Float scrollbar on top of the web content */
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
    background-color: transparent;
    box-shadow: none;
}

::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.25);
    border-radius: 9999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--brand-color, 220, 38, 38), 0.7);
    /* brand color on hover */
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.25) transparent;
}

/* Glassmorphism Navbar */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.dark .glass {
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glass Cards */
.card-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.dark .card-glass {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Nav Link Style */
.nav-link {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Neon Glow Button */
.neon-btn {
    box-shadow: 0 0 10px #14b8a6, 0 0 20px #14b8a6;
    transition: all 0.3s ease;
}

.neon-btn:hover {
    box-shadow: 0 0 15px #14b8a6, 0 0 30px #14b8a6, 0 0 45px #14b8a6;
    transform: translateY(-2px);
}

/* Preloader */
#preloader {
    display: none !important;
}

.dark #preloader {
    background: #0f172a;
}

/* Timeline */
.timeline-container {
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #14b8a6;
}

@media (min-width: 768px) {
    .timeline-container::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fbbf24;
    border: 4px solid #fff;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    z-index: 10;
}

.dark .timeline-item::before {
    border-color: #0f172a;
}

@media (min-width: 768px) {
    .timeline-item::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-content {
        width: 45%;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: auto;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        text-align: right;
    }
}

/* Map dots */
.alumni-map {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg');
    background-size: cover;
    background-position: center;
    position: relative;
    height: 400px;
    opacity: 0.8;
    filter: invert(1);
}

.dark .alumni-map {
    filter: invert(0);
    opacity: 0.5;
}

.map-dot {
    width: 12px;
    height: 12px;
    background: #fbbf24;
    border-radius: 50%;
    position: absolute;
    animation: pulse 2s infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.map-dot:hover {
    transform: scale(1.5);
}

.map-dot[data-info]::after {
    content: attr(data-info);
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.map-dot:hover[data-info]::after {
    opacity: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(251, 191, 36, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

/* Lightbox */
#lightbox {
    backdrop-filter: blur(8px);
}

/* Marquee Container */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

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

.marquee-y-wrapper {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.marquee-y-content {
    display: flex;
    flex-direction: column;
    animation: marqueeY 20s linear infinite;
}

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

.marquee-y-wrapper::before,
.marquee-y-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 10;
}

.marquee-y-wrapper::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-color), transparent);
}

.marquee-y-wrapper::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-color), transparent);
}

body.dark {
    --bg-color: #0f172a;
}

body {
    --bg-color: #f8fafc;
}

/* Tilt Card Override */
.js-tilt-glare {
    border-radius: 1rem;
}

/* Hide scrollbar for gallery slider */
.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Mitra marquee keyframe — scrolls exactly 50% (= 6 real items) then resets */
@keyframes mitraScroll {
    0% {
        transform: translateX(0);
    }

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

/* Active News Category Button */
.cat-btn.active {
    background-color: rgb(var(--brand-color, 220, 38, 38)) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/* Footer Accordion for Mobile */
@media (max-width: 767px) {
    .footer-accordion summary::-webkit-details-marker {
        display: none;
    }
    .footer-accordion summary {
        list-style: none;
    }
    .footer-accordion[open] summary .accordion-icon {
        transform: rotate(180deg);
    }
}
@media (min-width: 768px) {
    .footer-accordion summary {
        pointer-events: none;
        cursor: default;
    }
    .footer-accordion summary::-webkit-details-marker {
        display: none;
    }
    .footer-accordion summary {
        list-style: none;
    }
    .footer-accordion summary .accordion-icon {
        display: none;
    }
    .footer-accordion {
        display: block !important;
    }
    .footer-accordion[open] summary ~ * {
        display: block !important;
    }
    .footer-accordion:not([open]) summary ~ * {
        display: block !important;
    }
}