/* ============================================
   BEATA SAI INTEGRATED SCHOOL
   Child-Friendly Red & White Theme
   ============================================ */

/* Keyframe Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    60% {
        transform: scale(1.05) translateY(-5px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
    background: #fff;
}

h1,
h2,
h3,
h4 {
    font-family: 'Fredoka', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.emoji-badge {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #b71c1c;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}


/* ============================================
   HEADER / NAVIGATION
   ============================================ */
header {
    background: linear-gradient(135deg, #8e0000 0%, #b71c1c 50%, #e53935 100%);
    padding: 0.8rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(183, 28, 28, 0.35);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.6rem 2rem;
    box-shadow: 0 4px 30px rgba(183, 28, 28, 0.45);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.logo-text {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.portal-link {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(142, 0, 0, 0.6), rgba(183, 28, 28, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 2rem;
    max-width: 800px;
    animation: slideUp 0.8s ease;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.highlight {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.1rem 0.6rem;
    border-radius: 12px;
    display: inline;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.left {
    left: 2rem;
}

.slider-arrow.right {
    right: 2rem;
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: 'Fredoka', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: #fff;
    color: #b71c1c;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2.5px solid rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
    background: #fff;
    color: #b71c1c;
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #b71c1c, #e53935);
    color: #fff;
    box-shadow: 0 5px 20px rgba(183, 28, 28, 0.3);
}

.btn-full:hover {
    box-shadow: 0 8px 30px rgba(183, 28, 28, 0.4);
    transform: translateY(-2px);
}

/* ============================================
   NEWS / ANNOUNCEMENTS
   ============================================ */
.announcements {
    padding: 6rem 0;
    background: linear-gradient(180deg, #fff5f5, #fff);
}

.announcements .container {
    max-width: 1400px;
}

/* News Cards */
.news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.news-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
    border: 2px solid #ffebee;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 50px rgba(183, 28, 28, 0.18);
    border-color: #ffcdd2;
}

.news-card-image {
    position: relative;
    overflow: hidden;
}

.news-card-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: linear-gradient(135deg, #e53935, #ff6b6b);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulse 2s infinite;
    box-shadow: 0 3px 10px rgba(229, 57, 53, 0.3);
}

.news-card-body {
    padding: 2.5rem;
}

.news-card-body .news-date {
    font-size: 0.9rem;
    color: #e65100;
    font-weight: 600;
    display: block;
    margin-bottom: 0.8rem;
}

.news-card-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-card-body .news-desc {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.news-read-more {
    color: #b71c1c;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.news-card:hover .news-read-more {
    color: #e53935;
}

/* News Modal */
.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
}

.news-modal-overlay.active {
    display: flex;
}

.news-modal {
    background: #fff;
    border-radius: 24px;
    max-width: 1200px;
    width: 100%;
    max-height: 800px;
    overflow-y: auto;
    position: relative;
    animation: bounceIn 0.4s ease;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.news-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-modal-close:hover {
    background: #b71c1c;
    transform: scale(1.1);
}

.news-modal-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 24px 24px 0 0;
    background: #f5f5f5;
}

.news-modal-body {
    padding: 2rem;
}

.news-modal-body h2 {
    color: #b71c1c;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.news-modal-body .news-date {
    color: #e65100;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.news-modal-body p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: pre-line;
}


/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 6rem 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text {
    padding-top: 1rem;
}

.values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, #fff5f5, #ffebee);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.value-item:hover {
    transform: translateX(5px);
    border-color: #ffcdd2;
    box-shadow: 0 4px 16px rgba(183, 28, 28, 0.08);
}

.value-item>span {
    font-size: 2rem;
    flex-shrink: 0;
}

.value-item h4 {
    color: #b71c1c;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.value-item p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}

.about-image {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.image-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #b71c1c, #e53935);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 5px 20px rgba(183, 28, 28, 0.35);
    font-family: 'Fredoka', sans-serif;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    background: linear-gradient(135deg, #fff5f5, #ffebee);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    border: 2px solid #ffcdd2;
    max-width: 700px;
    margin: 3rem auto 0;
}

.stat {
    text-align: center;
    transition: all 0.3s ease;
}

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

.stat-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #b71c1c;
    font-family: 'Fredoka', sans-serif;
}

.stat p {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    font-weight: 600;
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */
.programs {
    padding: 6rem 0;
    background: linear-gradient(180deg, #fff5f5, #fff);
}

.program-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.program-card {
    perspective: 1000px;
    height: 320px;
    cursor: pointer;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-front {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid #ffcdd2;
}

.card-front:hover {
    box-shadow: 0 8px 30px rgba(183, 28, 28, 0.12);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.2rem;
    animation: float 3s ease-in-out infinite;
}

.card-front h3 {
    color: #b71c1c;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.card-front p {
    color: #888;
    font-weight: 500;
    font-size: 1rem;
}

.tap-hint {
    font-size: 0.8rem;
    color: #e53935;
    margin-top: 1.2rem;
    font-weight: 600;
    opacity: 0.7;
}

.card-back {
    background: linear-gradient(135deg, #b71c1c, #e53935);
    color: #fff;
    transform: rotateY(180deg);
}

.card-back h3 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.card-back ul {
    list-style: none;
    text-align: left;
    width: 100%;
}

.card-back ul li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.card-back ul li::before {
    content: "✓ ";
    opacity: 0.8;
}

.program-card.flipped .card-front {
    transform: rotateY(180deg);
}

.program-card.flipped .card-back {
    transform: rotateY(0deg);
}


/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    padding: 6rem 0;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 2px solid #ffebee;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(183, 28, 28, 0.15);
    border-color: #ffcdd2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(183, 28, 28, 0.75) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    background: linear-gradient(180deg, transparent 30%, rgba(183, 28, 28, 0.85) 100%);
}

.gallery-label {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Fredoka', sans-serif;
}

/* Gallery Modal */
.gallery-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99998;
    padding: 2rem;
}

.gallery-modal-overlay.active {
    display: flex;
}

.gallery-modal {
    background: #fff;
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    animation: bounceIn 0.4s ease;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.gallery-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ffebee;
    color: #b71c1c;
    border: 2px solid #ffcdd2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-close:hover {
    background: #b71c1c;
    color: #fff;
    border-color: #b71c1c;
    transform: scale(1.1);
}

.gallery-modal h3 {
    font-size: 1.4rem;
    color: #b71c1c;
    margin-bottom: 1.5rem;
}

.gallery-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-modal-item {
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #ffebee;
}

.gallery-modal-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(183, 28, 28, 0.12);
    border-color: #ffcdd2;
}

.gallery-modal-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* ============================================
   ADMISSIONS SECTION
   ============================================ */
.admissions {
    padding: 6rem 0;
    background: linear-gradient(180deg, #fff, #fff5f5);
}

.admissions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.requirements-card {
    background: linear-gradient(135deg, #fff5f5, #ffebee);
    padding: 2.5rem;
    border-radius: 24px;
    border: 2px solid #ffcdd2;
}

.requirements-card h3 {
    color: #b71c1c;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.requirements-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.requirements-card ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #ffcdd2;
    font-size: 1.05rem;
    font-weight: 500;
}

.requirements-card ul li span {
    margin-right: 0.5rem;
}

.steps h4 {
    color: #b71c1c;
    margin-bottom: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.step-num {
    background: linear-gradient(135deg, #b71c1c, #e53935);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Fredoka', sans-serif;
    box-shadow: 0 3px 10px rgba(183, 28, 28, 0.3);
    flex-shrink: 0;
}

/* Inquiry Form */
.inquiry-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid #ffebee;
}

.inquiry-form h3 {
    color: #b71c1c;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    padding: 0.85rem 1.2rem;
    margin-bottom: 1rem;
    border: 2px solid #ffcdd2;
    border-radius: 14px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fff;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

.form-success {
    display: none;
    color: #2e7d32;
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem;
    background: #e8f5e9;
    border-radius: 14px;
    text-align: center;
}


/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 6rem 0;
    background: #fff;
}

.contact .container {
    max-width: 1500px;
}

.contact-grid-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #fff5f5, #ffebee);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateX(5px);
    border-color: #ffcdd2;
    box-shadow: 0 4px 16px rgba(183, 28, 28, 0.08);
}

.contact-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.contact-card h4 {
    color: #b71c1c;
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.contact-card p {
    color: #666;
    font-size: 0.9rem;
}

.contact-facebook-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.fb-feed-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    color: #b71c1c;
    margin-bottom: 1rem;
    text-align: center;
}

.fb-feed-container {
    background: #fff;
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid #ffebee;
    overflow: hidden;
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.fb-feed-container .fb-page,
.fb-feed-container .fb-page span,
.fb-feed-container .fb-page iframe {
    width: 100% !important;
    height: 100% !important;
}

.map {
    border-radius: 20px;
    overflow: hidden;
    min-height: 380px;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #ffebee;
}

@media (max-width: 1024px) {
    .contact-grid-3col {
        grid-template-columns: 1fr 1fr;
    }

    .map {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .contact-grid-3col {
        grid-template-columns: 1fr;
    }

    .map {
        grid-column: span 1;
        height: 300px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, #8e0000, #b71c1c);
    color: #fff;
    position: relative;
}

.footer-wave {
    margin-top: -2px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    opacity: 0.85;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.footer-section a {
    display: block;
    color: #ffcdd2;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-section a:hover {
    color: #fff;
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.footer-note {
    margin-top: 1rem;
    font-style: italic;
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #b71c1c, #e53935);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 5px 20px rgba(183, 28, 28, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 28px rgba(183, 28, 28, 0.45);
}

/* ============================================
   WELCOME POPUP
   ============================================ */
.welcome-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.4s ease;
    padding: 1.5rem;
}

.welcome-popup-overlay.hidden {
    display: none;
}

.welcome-popup {
    position: relative;
    max-width: 800px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
    animation: bounceIn 0.5s ease;
}

.welcome-popup-img {
    width: 100%;
    display: block;
}

.welcome-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.welcome-popup-close:hover {
    background: #b71c1c;
    transform: scale(1.1);
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .program-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    nav ul {
        display: none;
    }

    nav ul.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #8e0000, #b71c1c);
        padding: 1.5rem 2rem;
        gap: 0.3rem;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 20px 20px;
    }

    .hamburger {
        display: flex;
    }

    .about-grid,
    .admissions-grid,
    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .program-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-cards {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-arrow.left {
        left: 1rem;
    }

    .slider-arrow.right {
        right: 1rem;
    }

    .logo-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .program-cards {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        padding: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .gallery-modal-grid {
        grid-template-columns: 1fr;
    }

    .logo-text {
        display: none;
    }
}

/* ============================================
   PREMIUM ENHANCEMENTS
   ============================================ */

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    animation: preloaderPulse 1.2s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

@keyframes preloaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.preloader-bar {
    width: 120px;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-progress {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #b71c1c, #e53935);
    border-radius: 2px;
    animation: preloaderBar 1.5s ease-in-out;
}

@keyframes preloaderBar {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: #b71c1c;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

.cursor-ring {
    width: 35px;
    height: 35px;
    border: 2px solid rgba(183, 28, 28, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99997;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    transform: translate(-50%, -50%);
}

.cursor-ring.hover {
    width: 55px;
    height: 55px;
    border-color: rgba(183, 28, 28, 0.8);
}

/* Navigation Scroll Effect */
#mainHeader {
    transition: all 0.3s ease;
}

#mainHeader.nav-scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#mainHeader.nav-scrolled .logo-text {
    color: #333;
}

#mainHeader.nav-scrolled nav ul li a {
    color: #333;
}

/* Hero Floating Gradient Blob */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(183, 28, 28, 0.08) 0%, transparent 50%);
    animation: floatBlob 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes floatBlob {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* 3D Tilt on News Cards */
.news-card {
    transform-style: preserve-3d;
}

.news-card:hover {
    transform: translateY(-10px) perspective(1000px) rotateX(2deg) rotateY(-1deg);
}

/* Glassmorphism on Program Cards */
.card-front {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* Gallery Items Enhanced Hover */
.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
    opacity: 0.9;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Animated Section Divider */
.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #b71c1c, #e53935);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Smooth transitions for all interactive elements */
a,
button,
.news-card,
.program-card,
.gallery-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .preloader {
        display: none;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}


/* ============================================
   SCHOOL CALENDAR SECTION
   ============================================ */
.school-calendar {
    padding: 6rem 0;
    background: linear-gradient(180deg, #fff, #fff5f5);
}

.school-calendar-page {
    padding-top: 6rem;
    min-height: 100vh;
}