/* ===== CSS Reset & Variables ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Warm and Inviting for Kindergarten */
    --primary-color: #FF6B6B;
    --primary-dark: #E85555;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --bg-light: #FFF9F0;
    --bg-white: #FFFFFF;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Spacing */
    --section-padding: 60px 0;
    --container-padding: 0 20px;

    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Prevent fixed header overlap */
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: blur(0px);
    box-shadow: none;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled,
.navbar.solid-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    height: 100dvh;
    background: #000;
    /* Fallback color */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Transparent overlay */
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.95;
}

/* Transparent Navbar Styles */
.navbar:not(.scrolled):not(.solid-nav) .nav-link {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar:not(.scrolled):not(.solid-nav) .logo h1 {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar:not(.scrolled):not(.solid-nav) .hamburger span {
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-rotating-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    /* Reduced from 2rem */
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    /* Dimmer continued text */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 10;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    font-family: var(--font-primary);
    max-width: 80%;
    line-height: 1.2;
}

.hero-rotating-text strong {
    font-size: 1.8rem;
    /* Slightly larger than continued text */
    font-weight: 700;
    color: white;
    /* Bright white for emphasis */
}

/* ===== Hero Admissions Badge (Cloud Shape) ===== */
.hero-badge {
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.admissions-badge,
.summer-camp-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: var(--accent-color);
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    color: var(--text-dark);
    font-family: var(--font-primary);
    overflow: visible;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.admissions-badge::before,
.admissions-badge::after,
.summer-camp-badge::before,
.summer-camp-badge::after {
    content: '';
    position: absolute;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: -1;
}

/* Cloud bubbles */
.admissions-badge::before,
.summer-camp-badge::before {
    width: 26px;
    height: 26px;
    top: -10px;
    left: 8px;
}

.admissions-badge::after,
.summer-camp-badge::after {
    width: 32px;
    height: 32px;
    top: -4px;
    right: 4px;
}

.summer-camp-badge {
    background: var(--secondary-color);
    color: white;
    cursor: pointer;
}

.admissions-badge:not(.visible),
.summer-camp-badge:not(.visible) {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.summer-camp-badge::before,
.summer-camp-badge::after {
    background: var(--secondary-color);
}

.summer-camp-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
    filter: brightness(1.02);
}

.summer-camp-badge:active {
    transform: translateY(0);
}

.admissions-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

.admissions-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admissions-years {
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .admissions-badge,
    .summer-camp-badge {
        padding: 6px 10px;
    }

    .admissions-label,
    .admissions-years {
        font-size: 0.7rem;
    }
}

/* ===== Simple Poster Page ===== */
.simple-page {
    min-height: 100vh;
    background: var(--bg-light);
    padding-top: 110px; /* space for fixed navbar */
    padding-bottom: 60px;
}

.poster-center {
    min-height: calc(100vh - 110px - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.poster-card {
    width: min(900px, 100%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.poster-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .hero-rotating-text {
        font-size: 1.1rem;
        left: 5%;
        width: 90%;
        text-align: center;
    }

    .hero-rotating-text strong {
        font-size: 1.3rem;
    }
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-left: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(-45deg);
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 300;
}

/* ===== About Section ===== */
.about-section {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.about-text {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
}

.about-image {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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


.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .about-image img {
        height: auto;
        /* Allow height to adjust automatically */
        max-height: 400px;
        /* Optional constraint */
        object-fit: contain;
        /* Ensure the whole image is visible */
    }
}

/* ===== Director Section ===== */
.director-section {
    padding: var(--section-padding);
    background: white;
}

.director-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.director-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.director-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.director-image:hover img {
    transform: scale(1.05);
}

.director-info {
    padding: 20px 0;
}

.director-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.director-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 500;
}

.director-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.director-credentials {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 15px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    color: var(--text-dark);
}

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

/* ===== Teachers Section ===== */
.teachers-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.teacher-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.teacher-image {
    position: relative;
    overflow: hidden;
    height: 320px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-slow);
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.1);
}

.teacher-info {
    padding: 30px 25px;
}

.teacher-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.teacher-role {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.teacher-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* ===== Why Choose Us Section ===== */
.why-choose-us {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}


.feature-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    /* Optional: slight rounding if desired, though images are PNGs with likely transparent backgrounds */
}

@keyframes float {

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

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

.feature-card:nth-child(2) .feature-image {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) .feature-image {
    animation-delay: 0.4s;
}

.feature-card:nth-child(4) .feature-image {
    animation-delay: 0.6s;
}

.feature-card:nth-child(5) .feature-image {
    animation-delay: 0.8s;
}

.feature-card:nth-child(6) .feature-image {
    animation-delay: 1s;
}

.feature-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Learning Pathways Section ===== */
.learning-pathways {
    padding: var(--section-padding);
    background: white;
}

.pathways-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 60px;
}

.pathway-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pathway-card.reverse {
    direction: rtl;
}

.pathway-card.reverse>* {
    direction: ltr;
}

.pathway-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.pathway-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.pathway-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.pathway-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.95) 0%, rgba(78, 205, 196, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-slow);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
    padding: 20px;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.gallery-description {
    font-size: 1rem;
    opacity: 0.9;
}

/* Staggered animation for gallery items */
.gallery-item:nth-child(1) {
    animation: fadeInScale 0.6s ease-out 0.1s both;
}

.gallery-item:nth-child(2) {
    animation: fadeInScale 0.6s ease-out 0.2s both;
}

.gallery-item:nth-child(3) {
    animation: fadeInScale 0.6s ease-out 0.3s both;
}

.gallery-item:nth-child(4) {
    animation: fadeInScale 0.6s ease-out 0.4s both;
}

.gallery-item:nth-child(5) {
    animation: fadeInScale 0.6s ease-out 0.5s both;
}

.gallery-item:nth-child(6) {
    animation: fadeInScale 0.6s ease-out 0.6s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Community Section ===== */
.community-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.community-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 300px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.community-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.community-image:hover img {
    transform: scale(1.1);
}

/* ===== Programs Section ===== */
.programs-section {
    padding: var(--section-padding);
    background: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.program-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.program-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 25px 25px 15px;
    font-weight: 600;
}

.program-description {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 25px 25px;
}


/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0) 90%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 2;
}

.testimonials-grid {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    animation: scroll-testimonials 40s linear infinite;
    width: max-content;
}

.testimonials-grid:hover {
    animation-play-state: paused;
}

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

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

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    min-width: 450px;
    max-width: 450px;
    flex-shrink: 0;
    border: 2px solid transparent;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 7rem;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    line-height: 1;
    z-index: 0;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
}

.testimonial-card:hover::after {
    transform: scaleX(1);
}

.testimonial-content {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 107, 107, 0.15);
    position: relative;
    z-index: 1;
}

.author-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
    position: relative;
    transition: transform 0.4s ease;
}

.testimonial-card:hover .author-image {
    transform: scale(1.1);
}

.author-image::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: -1;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.testimonial-card:hover .author-name {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-role {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: white;
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.info-text p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E8E8E8;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.btn-full {
    width: 100%;
    cursor: pointer;
    border: none;
}

/* ===== Footer ===== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-container img {
    height: 50px;
    width: auto;
    object-fit: contain;
    background: white;
    /* Add white background for visibility on dark footer */
    padding: 5px;
    border-radius: 5px;
}

.footer-logo-container h3 {
    margin-bottom: 0;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    padding-left: 5px;
    /* Add slight movement on hover */
}

.social-link.facebook:hover {
    color: #1877F2;
}

.social-link.instagram:hover {
    color: #E1306C;
}

.social-link.twitter:hover {
    color: #1DA1F2;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-bottom p a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 40px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition-smooth);
        align-items: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        color: var(--text-dark) !important;
        margin: 10px 0;
        text-shadow: none !important;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content,
    .pathway-card,
    .contact-content,
    .director-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pathway-card.reverse {
        direction: ltr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    :root {
        --section-padding: 60px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

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

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

    .section-title {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 25px;
    }

    .testimonial-card {
        min-width: 280px;
        max-width: 340px;
        padding: 25px 20px;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .author-image {
        width: 55px;
        height: 55px;
    }

    .author-name {
        font-size: 1.1rem;
    }

    .author-role {
        font-size: 0.85rem;
    }

    /* Disable animation on mobile for better readability */
    .testimonials-grid {
        animation: none;
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
        width: 100%;
        margin-top: 30px;
    }

    /* Hide duplicated (cloned) testimonials on mobile */
    .testimonials-grid .testimonial-card.cloned {
        display: none;
    }

    .testimonials-section::before {
        display: none;
    }

    .testimonials-section {
        padding: 80px 20px 60px;
    }
}


/* ===== Floating Buttons ===== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
    z-index: 1000;
}

.floating-badge {
    width: max-content;
    max-width: 220px;
    padding: 10px 12px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
    position: relative;
    transform-origin: right center;
    animation: floatingBadgeBob 2.8s ease-in-out infinite;
}

.floating-badge > * {
    position: relative;
    z-index: 1;
}

.floating-badge .admissions-badge-text {
    text-align: right;
    align-items: flex-end;
}

/* Animated highlight for floating badges (playful + child-friendly) */
.floating-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 35%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 65%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 220% 100%;
    animation: floatingBadgeShine 2.2s ease-in-out infinite;
    mix-blend-mode: soft-light;
}

.floating-badge::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    padding: 3px;
    background: conic-gradient(from 0deg,
            rgba(255, 230, 109, 0.0),
            rgba(255, 230, 109, 0.95),
            rgba(78, 205, 196, 0.95),
            rgba(255, 107, 107, 0.95),
            rgba(255, 230, 109, 0.0));
    animation: floatingBadgeSpin 2.4s linear infinite, floatingBadgeGlow 1.7s ease-in-out infinite;
    opacity: 1;
    pointer-events: none;
    z-index: -1;

    /* Show only the "ring" */
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.floating-badge:hover::after {
    opacity: 1;
    animation-duration: 2.0s;
}

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

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

@keyframes floatingBadgeSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes floatingBadgeGlow {
    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(255, 230, 109, 0.0)) drop-shadow(0 0 0 rgba(78, 205, 196, 0.0));
    }

    50% {
        filter: drop-shadow(0 0 10px rgba(255, 230, 109, 0.45)) drop-shadow(0 0 14px rgba(78, 205, 196, 0.35));
    }
}

@keyframes floatingBadgeShine {
    0% {
        background-position: 140% 0;
        opacity: 0.6;
    }

    45% {
        opacity: 0.95;
    }

    100% {
        background-position: -40% 0;
        opacity: 0.6;
    }
}

.floating-badge .admissions-label,
.floating-badge .admissions-years {
    font-size: 0.75rem;
    line-height: 1.1;
}

.floating-badge .admissions-label {
    letter-spacing: 0.06em;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    outline: none;
    text-decoration: none;
}

.floating-btn i {
    font-size: 28px;
    color: white;
}

.whatsapp-btn {
    background: #25D366;
}

.whatsapp-btn:hover {
    background: #20BA5C;
    transform: scale(1.1);
}

.scroll-top-btn {
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px) scale(1.1);
    background: transparent;
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 10px;
        align-items: flex-end; /* keep right aligned on mobile */
    }

    .floating-btn {
        width: 50px;
        height: 50px;
    }

    .floating-btn i {
        font-size: 24px;
    }

    .floating-badge {
        max-width: 200px;
        padding: 8px 10px;
        border-radius: 16px;
    }
}

/* ===== Immersive Gallery Styles ===== */
.immersive-gallery-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Full viewport height */
    background-color: #101622;
    /* Dark background base */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: white;
}

/* Background Layer */
.immersive-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.immersive-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(40px);
    /* blur-2xl */
    transform: scale(1.1);
    opacity: 0.6;
    transition: background-image 0.7s ease-in-out;
}

.immersive-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(16, 22, 34, 0.4), rgba(16, 22, 34, 0.2), rgba(16, 22, 34, 0.9));
}

/* Main Content */
.immersive-content {
    position: relative;
    z-index: 10;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    margin-top: 120px;
    /* Space for navbar */
    overflow: hidden;
    /* Prevent spillover */
}

/* Mobile Filter Toggle */
.mobile-filter-icon-btn {
    display: none;
    /* Hidden by default */
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 15px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-filter-icon-btn:hover,
.mobile-filter-icon-btn.active {
    color: white;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    z-index: 20;
    position: relative;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

/* Mobile Styles for One-Screen Gallery */
@media (max-width: 768px) {
    .immersive-gallery-wrapper {
        height: 100vh;
        overflow: hidden;
        /* Prevent scrolling strictly */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        /* Space out content */
    }

    .immersive-content {
        margin-top: 130px;
        /* Increased top margin to clear navbar */
        padding: 0 10px;
        flex-grow: 1;
        justify-content: flex-start;
        /* Align content to top */
    }

    /* Move Location Tag (Header) Above Main Image */
    .location-tag {
        order: -1;
        /* Move to top */
        margin-bottom: 10px;
        margin-top: 0 !important;
        /* Override potential mt-4 */
        font-size: 0.7rem;
        padding: 4px 12px;
        display: inline-flex;
        align-items: center;
    }

    /* Adjust Main Image Size */
    .main-image-container {
        height: 40vh;
        /* Reduced height to fit screen */
        max-height: 350px;
        margin-bottom: 10px;
        border-radius: 12px;
    }

    /* Filters Logic */
    .mobile-filter-icon-btn {
        display: inline-flex;
    }

    .gallery-filters {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin-bottom: 0;
        position: absolute;
        /* Float over content */
        bottom: 100px;
        /* Adjust based on reel height */
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 10px;
        padding: 0;
        pointer-events: none;
    }

    .gallery-filters.show {
        max-height: 200px;
        /* Adjust as needed */
        opacity: 1;
        padding: 15px;
        pointer-events: auto;
        margin-bottom: 0;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* Reel Adjustments */
    .gallery-reel-container {
        padding: 10px 0 20px;
        /* Reduced padding */
        background: rgba(16, 22, 34, 0.95);
        /* Ensure visibility */
        flex-shrink: 0;
        /* Keep at bottom, don't shrink */
    }

    .gallery-reel {
        padding: 10px 20px;
        gap: 12px;
    }

    .reel-item {
        width: 120px;
        /* Smaller thumbnails */
        border-radius: 8px;
    }

    .gallery-controls {
        display: none;
        /* Hide scroll buttons on mobile to save space */
    }
}


.main-image-container {
    width: 100%;
    max-width: 900px;
    height: 50vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    position: relative;
}

.main-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.location-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(var(--primary-rgb), 0.2);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 50px;
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.gallery-main-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 16px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .gallery-main-title {
        font-size: 5rem;
    }
}

.gallery-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

/* Thumbnail Reel */
.gallery-reel-container {
    position: relative;
    z-index: 20;
    padding: 30px 0 50px;
    background: linear-gradient(to top, rgba(16, 22, 34, 0.8), transparent);
}

.gallery-reel {
    display: flex;
    gap: 24px;
    width: 100%;
    overflow-x: auto;
    padding: 20px 40px;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.gallery-reel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.reel-item {
    flex-shrink: 0;
    width: 200px;
    aspect-ratio: 16/9;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.reel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.reel-item.active {
    opacity: 1;
    transform: scale(1.15);
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 30px rgba(78, 205, 196, 0.4);
    z-index: 10;
}

/* Controls */
.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== Success Message ===== */
/* ===== Success Message ===== */
.success-message {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4ECDC4;
    color: white;
    font-size: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.success-message h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.success-message p {
    color: var(--text-light);
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .success-message {
        padding: 30px 20px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .success-message h3 {
        font-size: 1.5rem;
    }

    .success-message p {
        font-size: 1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ===== Gallery Page Styles ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.gallery-page-section {
    padding: 60px 0;
    min-height: 60vh;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(78, 205, 196, 0.3);
}

.gallery-page-section .gallery-item.hide {
    display: none;
}

.gallery-page-section .gallery-grid {
    column-count: 3;
    column-gap: 20px;
}

.gallery-page-section .gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    /* Removed fixed height for masonry effect */
    display: inline-block;
    width: 100%;
}

.gallery-page-section .gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-page-section .gallery-image {
    width: 100%;
    /* Removed fixed height */
}

.gallery-page-section .gallery-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-page-section .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-page-section .gallery-overlay i {
    color: white;
    font-size: 2rem;
}

.gallery-page-section .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@media (max-width: 900px) {
    .gallery-page-section .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-page-section .gallery-grid {
        column-count: 1;
    }
}


/* ===== Lightbox Modal ===== */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: lightboxFadeIn 0.4s;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    animation: zoomIn 0.4s;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.2rem;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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