/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Touch-friendly base styles */
button, 
.btn, 
.nav-link, 
.carousel-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent horizontal scroll on mobile */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

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

/* Pastel Color Palette */
:root {
    --sky-blue: #87CEFA;
    --soft-yellow: #FFE4B5;
    --baby-pink: #FFB6C1;
    --mint-green: #98FB98;
    --lavender: #E6E6FA;
    --light-purple: #DDA0DD;
    --peach: #FFDAB9;
    --light-cyan: #E0FFFF;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--light-gray);
    padding: 1rem 0;
    margin-top: 80px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--sky-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

.breadcrumb-item[aria-current="page"] {
    color: var(--text-dark);
    font-weight: 500;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    width: 100%;
    margin: 0;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-left: 0;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-right: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--sky-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sky-blue);
    transition: width 0.3s ease;
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--sky-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    animation: float 8s ease-in-out infinite;
}

.cloud-1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.cloud-2 {
    width: 80px;
    height: 30px;
    top: 60%;
    right: 15%;
    animation-delay: 4s;
    animation-duration: 10s;
}

.butterfly {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--baby-pink);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flutter 6s ease-in-out infinite;
}

.butterfly::before,
.butterfly::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--baby-pink);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    top: -5px;
}

.butterfly::before {
    left: -10px;
    animation: flutter 4s ease-in-out infinite reverse;
}

.butterfly::after {
    right: -10px;
    animation: flutter 5s ease-in-out infinite;
}

.butterfly-1 {
    top: 30%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.butterfly-2 {
    top: 70%;
    right: 25%;
    animation-delay: 3s;
    animation-duration: 8s;
}

.star {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--soft-yellow);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 4s ease-in-out infinite;
}

.star-1 {
    top: 15%;
    right: 30%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.star-2 {
    top: 80%;
    left: 30%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.kite {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--light-purple);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: fly 10s ease-in-out infinite;
}

.kite-1 {
    top: 25%;
    left: 60%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.hero-content {
    text-align: center;
    color: var(--text-dark);
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Baloo 2', cursive;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.welcome-quote {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.welcome-quote blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.welcome-quote cite {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.school-motto {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border-left: 5px solid var(--sky-blue);
}

.school-motto h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.8rem;
    color: var(--sky-blue);
    margin-bottom: 0.5rem;
}

.school-motto p {
    font-size: 1rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--sky-blue);
    color: white;
}

.btn-primary:hover {
    background: #5bc0de;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border: 2px solid var(--sky-blue);
}

.btn-secondary:hover {
    background: var(--sky-blue);
    color: white;
    transform: translateY(-2px);
}

.hero-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 50px;
}

.child-slide,
.child-paint,
.child-blocks {
    position: relative;
    height: 150px;
}

.child-slide {
    animation: slidePlay 4s ease-in-out infinite;
}

.child-paint {
    animation: paintPlay 5s ease-in-out infinite;
}

.child-blocks {
    animation: blockPlay 6s ease-in-out infinite;
}

.child {
    width: 40px;
    height: 60px;
    background: var(--baby-pink);
    border-radius: 20px 20px 0 0;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.child::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--peach);
    border-radius: 50%;
}

.slide {
    width: 60px;
    height: 10px;
    background: var(--soft-yellow);
    border-radius: 5px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.easel {
    width: 50px;
    height: 40px;
    background: var(--light-purple);
    border-radius: 5px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.blocks {
    width: 40px;
    height: 40px;
    background: var(--mint-green);
    border-radius: 5px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-family: 'Baloo 2', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--sky-blue), var(--mint-green));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* About Section */
.about {
    background: linear-gradient(135deg, rgba(135, 206, 250, 0.03) 0%, rgba(230, 230, 250, 0.05) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(135,206,250,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 3rem;
    align-items: stretch;
    min-height: 500px;
    position: relative;
    z-index: 2;
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 0;
    margin-right: -4rem;
}

.about-text {
    padding-left: 2rem;
}

.about-text,
.about-visual {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.about-text h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

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

.philosophy-section {
    margin-bottom: 2rem;
}

.aims-list {
    list-style: none;
    padding-left: 0;
}

.aims-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
    color: var(--text-light);
}

.aims-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sky-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.principal-section {
    height: 100%;
    min-height: 350px;
    padding: 2.5rem 1.5rem;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 25px;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(135, 206, 250, 0.08) 0%, rgba(230, 230, 250, 0.08) 100%);
    border: 1px solid rgba(135, 206, 250, 0.15);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.principal-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(135, 206, 250, 0.15);
    border-color: rgba(135, 206, 250, 0.25);
}

/* Principal image box */
.principal-image {
    width: 100%;
    max-width: 360px;   /* 🔹 broader on desktop */
    height: auto;       /* 🔹 keep natural ratio */
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid var(--sky-blue);
    box-shadow: 0 8px 25px rgba(135, 206, 250, 0.3);
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.principal-image:hover {
    transform: scale(1.02);
    border-color: var(--sky-blue);
    box-shadow: 0 12px 30px rgba(135, 206, 250, 0.4);
}

.principal-img {
    width: 100%;
    height: auto;        /* 🔹 natural scaling */
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.principal-image::before {
    content: '👩‍🏫';
    font-size: 4rem;
    color: var(--sky-blue);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: none;
}

.principal-image img[src] {
    background: transparent;
}

.principal-info h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.principal-section:hover .principal-info h3 {
    color: var(--sky-blue);
    transform: scale(1.02);
}

.principal-title {
    font-size: 1.1rem;
    color: var(--sky-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.principal-section:hover .principal-title {
    opacity: 1;
    letter-spacing: 2px;
}

.principal-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
}

/* 🔹 Mobile adjustments */
@media (max-width: 480px) {
    .principal-image {
        max-width: 220px;   /* smaller on mobile */
    }
    
    /* Better mobile centering for principal section */
    .principal-section {
        margin-left: -15px;  /* Move more to the left */
        transform: translateX(0);  /* Remove any transform */
        left: auto;  /* Remove left positioning */
        position: static;  /* Remove relative positioning */
        max-width: 95%;  /* Slightly wider */
        padding: 2rem 1rem;  /* Reduce padding */
    }
    
    /* Fix testimonials mobile layout */
    .testimonials-carousel {
        padding: 0 10px;  /* Reduce side padding */
    }
    
    .testimonial-card {
        margin: 0;  /* Remove side margins */
        padding: 1.5rem 1rem;  /* Reduce padding */
        width: 100%;  /* Full width */
        box-sizing: border-box;
    }
    
    .carousel-container {
        height: auto;  /* Auto height */
        min-height: 350px;  /* Minimum height */
    }
    
    .testimonial-text p {
        font-size: 0.9rem;  /* Smaller font for mobile */
        line-height: 1.5;
        padding: 0 0.5rem;  /* Add some side padding */
    }
    
    .testimonial-author {
        padding: 0 0.5rem;  /* Add side padding */
    }
}

/* Additional mobile centering for principal section */
@media (max-width: 768px) {
    .about-visual {
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .principal-section {
        margin: 0 auto;
        max-width: 95%;
        width: 100%;
        position: static;
        left: auto;
        transform: none;
        margin-left: -8px;  /* Fine-tune left positioning */
    }
}

/* Montessori Method Section */
.method {
    background: linear-gradient(135deg, var(--lavender) 0%, var(--light-cyan) 100%);
}

.method-content {
    max-width: 1000px;
    margin: 0 auto;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.method-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.method-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.method-card h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

/* Programs Section */
.programs {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.04) 0%, rgba(230, 230, 250, 0.06) 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.programs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,182,193,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.25;
    pointer-events: none;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

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

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

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-back {
    transform: rotateY(180deg);
    background: var(--sky-blue);
    color: white;
}

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

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

.program-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.program-card h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card-back h3 {
    color: white;
}

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

.card-back ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.card-back li {
    padding: 0.3rem 0;
    color: white;
}

.card-back li::before {
    content: '•';
    color: var(--soft-yellow);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Video Gallery Section */
.video-gallery {
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--light-cyan) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.video-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.2;
    pointer-events: none;
}

.video-gallery-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

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

.video-card, .image-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.video-card.hidden, .image-card.hidden {
    display: none;
}

.video-card.visible, .image-card.visible {
    display: block;
}

.video-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.video-card:hover .play-button {
    transform: scale(1.2);
    background: var(--sky-blue);
}

.video-card:hover .event-overlay {
    opacity: 1;
    transform: translateY(0);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    background: linear-gradient(45deg, var(--sky-blue), var(--light-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(135, 206, 250, 0.8), rgba(221, 160, 221, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-thumbnail::before {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--sky-blue);
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.play-button i {
    margin-left: 3px;
}

.event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.event-overlay h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.event-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.video-info {
    padding: 1.5rem;
    text-align: center;
}

.video-info h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.video-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}













/* Video Card Entrance Animations */
.video-card {
    animation: cardEntrance 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.2s; }
.video-card:nth-child(3) { animation-delay: 0.3s; }
.video-card:nth-child(4) { animation-delay: 0.4s; }
.video-card:nth-child(5) { animation-delay: 0.5s; }
.video-card:nth-child(6) { animation-delay: 0.6s; }
.video-card:nth-child(7) { animation-delay: 0.7s; }
.video-card:nth-child(8) { animation-delay: 0.8s; }
.video-card:nth-child(9) { animation-delay: 0.9s; }

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

/* Enhanced Hover Effects */
.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--sky-blue), var(--light-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 20px;
}

.video-card:hover::before {
    opacity: 0.1;
}

.video-card:hover .video-info h3 {
    color: var(--sky-blue);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Image Card Styles */
.image-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.image-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.image-thumbnail {
    position: relative;
    height: 200px;
    background: linear-gradient(45deg, var(--mint-green), var(--soft-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.image-card:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

.image-overlay h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.image-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.image-info {
    padding: 1.5rem;
    text-align: center;
}

.image-info h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.image-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* View More Button */
.view-more-container {
    text-align: center;
    margin-top: 3rem;
}

.view-more-btn {
    background: linear-gradient(135deg, var(--sky-blue), var(--light-purple));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(135, 206, 250, 0.3);
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(135, 206, 250, 0.4);
    background: linear-gradient(135deg, var(--light-purple), var(--sky-blue));
}

.view-more-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.view-more-btn.expanded .btn-icon {
    transform: rotate(180deg);
}

/* Play Button Pulse Animation */
.play-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--sky-blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Tablet Optimization */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        max-width: 900px;
        padding: 0 30px;
    }

    .about-content {
        grid-template-columns: 1fr 1.5fr;
        gap: 2rem;
    }

    .principal-section {
        min-height: 450px;
    }

    .principal-image {
        width: 320px;
        height: 380px;
    }

    .video-grid,
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .testimonials-carousel {
        padding: 0 40px;
    }

    /* Map container tablet optimization */
    .map-container {
        height: 350px;
        margin: 1.5rem 0;
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .video-modal-content {
        width: 98%;
        margin: 3% auto;
        padding: 15px;
    }
    
    .video-thumbnail, .image-thumbnail {
        height: 180px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .video-container {
        min-height: 300px;
        padding: 30px;
    }
    
    .video-container video {
        max-width: 90%;
        max-height: 90%;
    }
    
    .view-more-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 15px;
    }
    
    .video-container {
        margin-bottom: 1rem;
        min-height: 250px;
    }
    
    .video-title {
        padding: 0.5rem 0;
    }
}

/* Rules Section */
.rules {
    background: linear-gradient(135deg, rgba(152, 251, 152, 0.03) 0%, rgba(224, 255, 255, 0.05) 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.rules::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(152,251,152,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.25;
    pointer-events: none;
}

.rules-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.rule-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid var(--sky-blue);
}

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

.rule-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.rule-card h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, var(--lavender) 0%, var(--light-purple) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.15)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
    pointer-events: none;
}

.testimonials-content {
    position: relative;
    z-index: 2;
}

.testimonials-carousel {
    position: relative;
    margin-top: 3rem;
    overflow: visible;
    padding: 0 60px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
}

.testimonial-card {
    min-width: 100%;
    height: 100%;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sky-blue), var(--light-purple), var(--mint-green));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.testimonial-card.active::before {
    transform: scaleX(1);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sky-blue), var(--light-purple), var(--mint-green));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

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

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quote-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--sky-blue), var(--light-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.rating {
    display: flex;
    gap: 0.3rem;
}

.rating i {
    color: #FFD700;
    font-size: 1.1rem;
    animation: starTwinkle 1.5s infinite;
}

.rating i:nth-child(2) { animation-delay: 0.1s; }
.rating i:nth-child(3) { animation-delay: 0.2s; }
.rating i:nth-child(4) { animation-delay: 0.3s; }
.rating i:nth-child(5) { animation-delay: 0.4s; }

.testimonial-text {
    margin-bottom: 2rem;
}

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

.testimonial-text p::before {
    content: '"';
    font-size: 3rem;
    color: var(--sky-blue);
    position: absolute;
    top: -10px;
    left: -15px;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-author {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
}

.author-info h4 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.author-title {
    color: var(--sky-blue);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonial Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes starTwinkle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Carousel Navigation */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(135, 206, 250, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: var(--sky-blue);
    transform: scale(1.2);
    border-color: var(--sky-blue);
}

.dot:hover {
    background: var(--sky-blue);
    transform: scale(1.1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--sky-blue);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(135, 206, 250, 0.3);
}

.carousel-btn:hover {
    background: var(--sky-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(135, 206, 250, 0.3);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Responsive Design for Testimonials */
@media (max-width: 768px) {
    .carousel-container {
        height: 350px;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-text p {
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 15px;
    }
    
    .next-btn {
        right: 15px;
    }
}

/* Gallery Styles for Event Images */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    min-height: 400px;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

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

.gallery-item-info {
    padding: 1.5rem;
    text-align: center;
}

.gallery-item-info h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.gallery-item-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Hide gallery items that don't have images */
.gallery-item:has(img[style*="display: none"]) {
    display: none !important;
}

/* Features Section */
.features {
    background: linear-gradient(135deg, var(--baby-pink) 0%, var(--lavender) 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.2;
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

/* Contact Section */
.contact {
    background: linear-gradient(135deg, rgba(221, 160, 221, 0.03) 0%, rgba(230, 230, 250, 0.05) 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(221,160,221,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.25;
    pointer-events: none;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--sky-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.6;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.contact-form-container h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 2rem 0;
}

.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    border-radius: 20px;
    display: block;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--sky-blue);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--sky-blue);
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--sky-blue);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--sky-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--mint-green);
    transform: translateY(-3px);
}

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

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-15px) translateX(5px); }
    50% { transform: translateY(-25px) translateX(-3px); }
    75% { transform: translateY(-10px) translateX(8px); }
}

@keyframes flutter {
    0%, 100% { transform: rotate(0deg) scale(1) translateY(0); }
    25% { transform: rotate(8deg) scale(1.1) translateY(-3px); }
    50% { transform: rotate(0deg) scale(1) translateY(-5px); }
    75% { transform: rotate(-8deg) scale(0.9) translateY(-2px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: scale(1) rotate(0deg); }
    25% { opacity: 0.8; transform: scale(1.1) rotate(90deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
    75% { opacity: 0.6; transform: scale(1.05) rotate(270deg); }
}

@keyframes fly {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-20px) rotate(5deg) scale(1.05); }
    50% { transform: translateY(-35px) rotate(0deg) scale(1.1); }
    75% { transform: translateY(-15px) rotate(-5deg) scale(1.02); }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slidePlay {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes paintPlay {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes blockPlay {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.1); }
}



/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 1000;
    }

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

    .hamburger {
        display: flex;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-logo img {
        width: 32px;
        height: 32px;
    }

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

    .welcome-quote blockquote {
        font-size: 1rem;
    }

    .school-motto h2 {
        font-size: 1.4rem;
    }

    .about-content,
    .method-grid,
    .programs-grid,
    .events-highlights,
    .rules-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        min-height: auto;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }
    
    .about-text,
    .about-visual {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .about-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
    }
    
    .principal-section {
        height: auto;
        min-height: 400px;
        padding: 2rem 1.5rem;
        margin: 0 auto;
        max-width: 95%;
        width: 100%;
        border-radius: 25px;
        margin-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        text-align: center;
        background: linear-gradient(135deg, rgba(135, 206, 250, 0.08) 0%, rgba(230, 230, 250, 0.08) 100%);
        border: 1px solid rgba(135, 206, 250, 0.15);
        backdrop-filter: blur(10px);
        box-sizing: border-box;
        position: static;
        left: auto;
        transform: none;
        margin-left: -10px;
    }
    
    .principal-image {
        width: 260px;
        height: 300px;
        margin: 0 auto;
        border-radius: 20px;
        overflow: hidden;
        border: 4px solid var(--sky-blue);
        box-shadow: 0 8px 25px rgba(135, 206, 250, 0.3);
        background: var(--light-gray);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .principal-info {
        text-align: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        flex: 1;
    }
    
    .principal-info h3 {
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 0.5rem;
        font-family: 'Baloo 2', cursive;
        color: var(--text-dark);
        font-weight: 600;
    }
    
    .principal-title {
        font-size: 1rem;
        color: var(--sky-blue);
        font-weight: 600;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        opacity: 0.9;
        text-align: center;
    }
    
    .principal-description {
        max-width: 280px;
        font-size: 0.95rem;
        text-align: center;
        margin: 0 auto;
        line-height: 1.6;
        color: var(--text-light);
    }
    
    .principal-section:hover .principal-title {
        opacity: 1;
        letter-spacing: 2px;
    }

    /* Gallery Mobile Optimization */
    .video-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-card,
    .image-card {
        margin: 0 1rem;
    }

    .view-more-container {
        padding: 0 1rem;
    }

    /* Testimonials Mobile Optimization */
    .testimonials-carousel {
        padding: 0 15px;
    }

    .carousel-container {
        height: auto;
        min-height: 380px;
    }

    .testimonial-card {
        padding: 1.5rem 1rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .testimonial-text p {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 0.5rem;
    }
    
    .testimonial-author {
        padding: 0 0.5rem;
    }

    /* Touch-friendly buttons */
    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        min-height: 44px; /* iOS touch target */
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    /* Performance optimization for mobile */
    .floating-elements {
        display: none; /* Hide heavy animations on mobile */
    }

    .hero-animation {
        display: none; /* Hide complex animations on mobile */
    }

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

    .btn {
        width: 200px;
    }

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

    .method-card,
    .highlight-card,
    .rule-card,
    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Ultra-mobile optimization */
    .container {
        padding: 0 15px;
    }

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

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

    .program-card {
        height: 250px;
        padding: 1rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-bottom: 1rem;
    }

    /* Map container mobile optimization */
    .map-container {
        height: 300px;
        margin: 1rem 0;
    }

    .map-container iframe {
        border-radius: 15px;
    }

    /* Gallery ultra-mobile */
    .video-card,
    .image-card {
        margin: 0 0.5rem;
        border-radius: 15px;
    }

    .video-thumbnail,
    .image-thumbnail {
        height: 160px;
    }

    .play-button {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* Testimonials ultra-mobile */
    .testimonials-carousel {
        padding: 0 15px;
    }

    .carousel-container {
        height: 350px;
    }

    .testimonial-card {
        padding: 1rem;
        margin: 0 0.25rem;
    }

    .testimonial-text p {
        font-size: 0.9rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }

    /* Principal section ultra-mobile */
    .principal-section {
        min-height: 300px;
        padding: 0.5rem;
    }

    /* Landscape orientation support */
    @media (orientation: landscape) and (max-height: 500px) {
        .hero-content-centered {
            min-height: 60vh;
        }
        
        .hero-welcome {
            font-size: 1.8rem;
        }
        
        .hero-main-logo {
            width: 300px;
        }
        
        .hero-house {
            font-size: 1.2rem;
        }
    }

    .principal-image {
        width: 250px;
        height: 280px;
    }

    .principal-info h3 {
        font-size: 1.3rem;
    }

    .principal-description {
        max-width: 250px;
        font-size: 0.85rem;
    }

    /* Map container ultra-mobile optimization */
    .map-container {
        height: 250px;
        margin: 0.5rem 0;
    }

    /* Performance optimization for ultra-mobile */
    .floating-elements,
    .hero-animation {
        display: none;
    }

    /* Touch-friendly improvements */
    .btn,
    .view-more-btn,
    .carousel-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
} 

.navbar-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    margin-right: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hero-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.hero-welcome {
    font-size: 3.2rem;
    font-family: 'Baloo 2', cursive;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.08);
    animation: gentlePulse 3s ease-in-out infinite;
}

.hero-main-logo {
    width: 480px;
    max-width: 98vw;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.10);
    background: #fff;
    padding: 18px;
    animation: gentleBounce 4s ease-in-out infinite;
}

.hero-house {
    font-size: 2.5rem;
    font-family: 'Baloo 2', cursive;
    color: #fff;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.08);
    animation: gentleSway 5s ease-in-out infinite;
}

.hero-social-links-main {
    margin-top: 1.2rem;
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    animation: floatUpDown 6s ease-in-out infinite;
}

.hero-social-links-main a {
    color: var(--sky-blue);
    background: white;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.hero-social-links-main a:hover {
    background: var(--mint-green);
    color: var(--text-dark);
    transform: translateY(-2px) scale(1.08);
}

.brand-icon svg {
    width: 48px;
    height: 48px;
    display: block;
    background: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0 auto;
    transition: transform 0.18s, filter 0.18s;
}
.brand-icon:hover svg {
    filter: brightness(1.15) drop-shadow(0 2px 8px rgba(0,0,0,0.10));
    transform: scale(1.08);
}

.brand-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: none;
    margin: 0 auto;
    display: block;
    transition: transform 0.18s, box-shadow 0.18s;
}
.brand-icon:hover .brand-img {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

@media (max-width: 600px) {
    .hero-main-logo {
        width: 98vw;
        max-width: 99vw;
        padding: 8px;
    }
    .hero-welcome {
        font-size: 2rem;
    }
    .hero-house {
        font-size: 1.5rem;
    }
    .navbar-logo-img {
        width: 36px;
        height: 36px;
    }
} 

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.95; }
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes gentleSway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* High-DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo img,
    .hero-main-logo,
    .principal-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .floating-elements,
    .hero-animation,
    .carousel-btn,
    .view-more-container {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .section-title {
        page-break-after: avoid;
    }
    
    .card,
    .video-card,
    .image-card {
        page-break-inside: avoid;
    }
} 

/* FAQ Section Styles */
.faq {
    background: linear-gradient(135deg, rgba(152, 251, 152, 0.03) 0%, rgba(230, 230, 250, 0.05) 100%);
    padding: 4rem 0;
    position: relative;
    z-index: 1;
    min-height: 400px;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* FAQ Carousel */
.faq-carousel {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.faq-carousel .carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    min-height: 300px;
}

.faq-carousel .carousel-track {
    position: relative;
    min-height: 300px;
}

.faq-carousel .faq-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.faq-carousel .faq-item.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.faq-question {
    background: linear-gradient(135deg, var(--sky-blue), var(--light-cyan));
    color: var(--white);
    padding: 1.5rem;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.faq-answer {
    padding: 1.5rem;
    background: var(--white);
}

.faq-answer p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* FAQ Navigation Dots */
.faq-carousel .carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.faq-carousel .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-carousel .dot.active {
    background: var(--sky-blue);
    transform: scale(1.2);
    border-color: var(--sky-blue);
}

.faq-carousel .dot:hover {
    background: var(--mint-green);
    transform: scale(1.1);
}

/* FAQ Navigation Arrows */
.faq-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.faq-carousel .carousel-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.faq-carousel .carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.faq-carousel .prev-btn {
    left: 20px;
}

.faq-carousel .next-btn {
    right: 20px;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-carousel .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .faq-carousel .prev-btn {
        left: 10px;
    }
    
    .faq-carousel .next-btn {
        right: 10px;
    }
    
    .faq-question {
        font-size: 1.1rem;
        padding: 1.2rem;
    }
    
    .faq-answer {
        padding: 1.2rem;
    }
    
    .faq-answer p {
        font-size: 1rem;
    }
}
