@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

body {
    font-family: 'Lexend', sans-serif;
}

/* FAQ Page Specific Styles */
details>summary::-webkit-details-marker {
    display: none;
}

details[open] summary .expand-icon {
    transform: rotate(180deg);
}

/* Gallery Page Specific Styles */
.masonry-grid {
    columns: 1;
    column-gap: 1.5rem;
}

@media (min-width: 640px) {
    .masonry-grid {
        columns: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        columns: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* Academics Page Specific Styles */
.curriculum-card:hover {
    transform: translateY(-8px);
}

/* Admissions Page Specific Styles */
.step-connector::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #E21B1B;
    opacity: 0.2;
    z-index: 0;
}

@media (max-width: 1024px) {
    .step-connector::after {
        display: none;
    }
}

/* Events Page Specific Styles */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Autoprefixer might duplicate, but standard property needed */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/*                                 Animations                                 */
/* -------------------------------------------------------------------------- */

/* Base settings for all animated elements */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for children if needed */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Slide In From Left */
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Zoom In */
.reveal-zoom {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-zoom.active {
    opacity: 1;
    transform: scale(1);
}

/* -------------------------------------------------------------------------- */
/*                           Micro-Interactions                               */
/* -------------------------------------------------------------------------- */

/* Button Hover Glow */
button,
.button-hover {
    transition: all 0.3s ease;
}

button:hover,
.button-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(226, 27, 27, 0.5);
    /* Red glow matches theme */
}

/* Card Hover Lift */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Navigation Link Hover */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #E21B1B;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* -------------------------------------------------------------------------- */
/*                               Mobile Marquee                               */
/* -------------------------------------------------------------------------- */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

.mobile-marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .mobile-marquee-content {
        display: inline-flex;
        animation: marquee 20s linear infinite;
        width: max-content;
        /* Gap and Padding are handled in HTML wrappers now for perfect loop */
    }
}