* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-family: 'Fredoka One', cursive;
}

h2 {
    font-size: 2.5rem;
    font-family: 'Fredoka One', cursive;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

:root {
    --primary-color: #003399;
    --secondary-color: #FFCC00;
    --accent-color: #FE0000;
    
    --primary-light: #E6F2FF;
    --secondary-light: #FFF9E6;
    --accent-light: #FFE6E6;
    --primary-dark: #002266;
    --secondary-dark: #E6B800;
    --accent-dark: #CC0000;
    
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --medium-gray: #E2E8F0;
    --gray: #64748B;
    --dark-gray: #334155;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    
    --gradient-primary: linear-gradient(135deg, #003399 0%, #FE0000 100%);
    --gradient-secondary: linear-gradient(135deg, #FE0000 0%, #FFCC00 100%);
    --gradient-hero: linear-gradient(135deg, #003399 0%, #FE0000 50%, #FFCC00 100%);
    --gradient-soft: linear-gradient(135deg, #E6F2FF 0%, #FFE6E6 100%);
    
    --shadow-sm: 0 2px 4px rgba(0, 51, 153, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 51, 153, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 51, 153, 0.15);
    --shadow-xl: 0 16px 40px rgba(0, 51, 153, 0.18);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 1rem 2rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-soft);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.loading-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo img {
    max-width: 200px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-xl);
    margin: 0;
    box-shadow: var(--shadow-lg);
    animation: logoFloat 3s ease-in-out infinite;
    display: block;
}

.loading-text {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Fredoka One', cursive;
    text-align: center;
    animation: textPulse 2s ease-in-out infinite;
}

.loading-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 500;
}

.children-animation {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    justify-content: center;
}

.child-figure {
    font-size: 3.5rem;
    animation: childWalk 2.5s ease-in-out infinite;
}

.child-figure:nth-child(1) {
    animation-delay: 0s;
}

.child-figure:nth-child(2) {
    animation-delay: 0.4s;
}

.child-figure:nth-child(3) {
    animation-delay: 0.8s;
}

.child-figure:nth-child(4) {
    animation-delay: 1.2s;
}

.loading-progress {
    width: 250px;
    height: 6px;
    background: var(--medium-gray);
    border-radius: 3px;
    overflow: hidden;
    margin: 25px auto 0;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 30%;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: progressContinuous 2s ease-in-out infinite;
    position: absolute;
    top: 0;
    left: 0;
}

.loading-status {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 20px;
    text-align: center;
    font-weight: 400;
    opacity: 0.8;
}

.emergency-skip {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 1.5s infinite;
}

.emergency-skip:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.03);
    }
}

@keyframes childWalk {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(-3deg);
    }
    50% {
        transform: translateY(-3px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(3deg);
    }
}

@keyframes progressLoad {
    0% {
        width: 0%;
        opacity: 1;
    }
    50% {
        width: 100%;
        opacity: 1;
    }
    100% {
        width: 0%;
        opacity: 1;
    }
}

@keyframes progressContinuous {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-medium);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gradient-soft);
    overflow: hidden;
    padding-top: 90px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: var(--radius-xl);
    opacity: 0.08;
    animation: gentleFloat 8s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    top: 15%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    top: 70%;
    right: 10%;
    animation-delay: 3s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    top: 5%;
    right: 25%;
    animation-delay: 6s;
}

@keyframes gentleFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1) rotate(0deg); 
    }
    50% { 
        transform: translateY(-8px) scale(1.02) rotate(2deg); 
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content .container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1.2;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Fredoka One', cursive;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.6;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--white);
    padding: 1rem;
}

.hero-image-container img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform 0.4s ease;
    display: block;
    min-height: 550px;
}

.hero-image-container:hover img {
    transform: scale(1.02);
}

.hero-image-container img[loaded="true"] {
    height: 550px !important;
    min-height: 550px !important;
    object-fit: cover !important;
    display: block !important;
}

.hero-image-section {
    position: relative;
    width: 100%;
}

.hero-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 51, 153, 0.15);
    background: var(--light-color);
    padding: 8px;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.4s ease;
    max-width: 120%;
    margin-left: -10%;
    will-change: transform;
    backface-visibility: hidden;
    transform-origin: center center;
}

.hero-img-wrapper:hover {
    transform: perspective(1000px) rotateY(-2deg) translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 51, 153, 0.18);
}

.hero-main-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 15px;
    display: block;
    transition: transform 0.3s ease;
    background-color: var(--light-color);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: transform;
    backface-visibility: hidden;
    transform-origin: center center;
}

.hero-img-wrapper:hover .hero-main-image {
    transform: scale(1.01);
}

.hero-img-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    z-index: -1;
    pointer-events: none;
}

.hero-main-image[src$=".png"] {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    background: var(--white);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-medium);
    animation: floatIcon 3s ease-in-out infinite;
}

.floating-icon-1 {
    top: 20%;
    left: 10%;
    color: var(--accent-color);
    animation-delay: 0s;
}

.floating-icon-2 {
    top: 60%;
    right: 15%;
    color: var(--primary-color);
    animation-delay: 1s;
}

.floating-icon-3 {
    bottom: 20%;
    left: 20%;
    color: var(--secondary-color);
    animation-delay: 2s;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.about {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.feature-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-light);
    margin: 0;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    background: var(--white);
}

.experience-counter {
    position: absolute;
    top: 30px;
    right: 30px;
}

.counter-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.counter-number {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.counter-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 2px;
}

.counter-text {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    margin-top: 5px;
    line-height: 1.2;
}

.stat {
    background: var(--white);
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.programs {
    padding: 80px 0;
    background: var(--light-color);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    align-items: stretch;
}

.program-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 2rem;
}

.program-content h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.program-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.program-details {
    margin-bottom: 2rem;
}

.detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: var(--light-color);
    border-radius: 10px;
}

.detail i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.detail span {
    font-weight: 500;
    color: var(--text-dark);
}

.program-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex: 1;
}

.program-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.activities {
    padding: 80px 0;
    background: var(--white);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-card:hover::before {
    opacity: 0.1;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.activity-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.activity-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.activity-card p {
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.gallery {
    padding: 80px 0;
    background: var(--light-color);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 350px));
    gap: 2rem;
    justify-content: center;
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 380px));
        max-width: 1200px;
        margin: 0 auto;
    }
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 157, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--white);
}

.testimonials {
    padding: 80px 0;
    background: var(--white);
}

.testimonials-slider {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.testimonial-card {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: serif;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stars i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact {
    padding: 80px 0;
    background: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.contact-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.contact-details h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
    background: transparent;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group select:focus + label,
.form-group select:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--white);
    padding: 0 5px;
}

.form-group select + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--white);
    padding: 0 5px;
}

.form-group label.active {
    top: -10px !important;
    left: 10px !important;
    font-size: 0.8rem !important;
    color: var(--primary-color) !important;
    background: var(--white) !important;
    padding: 0 5px !important;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.footer-logo span {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.footer-section p {
    color: #a0aec0;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #a0aec0;
}

.footer-contact i {
    color: var(--primary-color);
    width: 22px;
    min-width: 22px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    text-align: center;
    color: #a0aec0;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.always-visible {
    position: fixed !important;
    z-index: 1001 !important;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    * {
        max-width: 100vw;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

.footer-bottom i {
    color: var(--primary-color);
}

.mobile-break {
    display: none;
}

.credits-line {
    display: inline;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    max-width: calc(100vw - 60px);
    max-height: calc(100vh - 60px);
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    color: var(--white);
    font-size: 2rem;
    text-decoration: none;
    box-shadow: var(--shadow-medium);
    animation: pulse 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: calc(100vw - 60px);
    max-height: calc(100vh - 140px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
}

.modal img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.modal-prev,
.modal-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    pointer-events: auto;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-medium);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .loading-text {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .loading-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .loading-content {
        max-width: 350px;
        padding: 0 15px;
    }

    .loading-progress {
        width: 200px;
    }

    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .activities-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-section {
        text-align: center;
    }

    .contact-section .footer-contact {
        text-align: left !important;
        display: inline-block !important;
        margin: 0;
        width: auto;
        max-width: none;
    }

    .contact-section .footer-contact p {
        text-align: left !important;
        justify-content: flex-start !important;
    }

    .footer-contact {
        text-align: left !important;
        display: block !important;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .footer-contact p {
        align-items: flex-start;
        text-align: left !important;
        justify-content: flex-start;
        margin-bottom: 0.9rem;
    }

    .footer-contact i {
        width: 24px;
        min-width: 24px;
        font-size: 1.1rem;
        margin-top: 1px;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }

    .footer-bottom p {
        margin-bottom: 0.8rem;
        line-height: 1.5;
    }

    .gallery-filter {
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
        gap: 1.5rem;
    }

    .filter-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .loading-text {
        font-size: 1.8rem;
        margin-bottom: 10px;
        padding: 0 10px;
    }

    .loading-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .loading-content {
        max-width: 300px;
        padding: 0 10px;
    }

    .loading-logo img {
        max-width: 150px;
        max-height: 105px;
    }

    .loading-progress {
        width: 180px;
    }

    .child-figure {
        font-size: 2.8rem;
    }

    .children-animation {
        gap: 15px;
        margin-bottom: 25px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .program-card,
    .contact-form {
        padding: 2rem;
    }

    .activity-card {
        padding: 2rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .contact-section {
        text-align: center;
    }
    
    .contact-section .footer-contact {
        text-align: left !important;
        width: auto;
        max-width: none;
        margin: 0;
        display: inline-block !important;
    }
    
    .contact-section .footer-contact p {
        font-size: 0.9rem;
        gap: 0.7rem;
        margin-bottom: 0.8rem;
        display: flex;
        align-items: flex-start;
        text-align: left !important;
        justify-content: flex-start !important;
    }

    .contact-section .footer-contact i {
        width: 22px;
        min-width: 22px;
        font-size: 1rem;
        margin-top: 1px;
        flex-shrink: 0;
    }

    .footer-bottom {
        padding: 1.5rem 0 1rem;
        font-size: 0.85rem;
    }

    .footer-bottom p {
        margin-bottom: 0.6rem;
        line-height: 1.6;
        padding: 0 10px;
    }

    .credits-line {
        margin-bottom: 2px;
    }

    .footer-bottom p:last-child {
        word-break: break-word;
        hyphens: auto;
    }

    .mobile-break {
        display: block;
    }

    .credits-line {
        display: block;
        line-height: 1.4;
    }
}
