/* ===================================
   EDUCAKIDS PAGE STYLES
   =================================== */

:root {
    --color-kids-primary: #e91e8c;
    /* Hot pink / magenta from photo */
    --color-kids-dark: #b5156d;
    --color-kids-light: #fde8f4;
    --color-kids-accent: #ff6b35;
    /* Orange accent for button */
}



/* Hero Section with 3D Carousel */
.hero-educakids {
    background-image: url('../assets/educakidsBG.png');
    background-size: cover;
    background-position: center;
    padding: var(--space-24) 0 var(--space-10);
    text-align: center;
    color: white;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.carousel-educakids {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

.carousel-3d-wrapper {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.carousel-3d-item {
    position: absolute;
    width: 650px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Side Screens */
.carousel-3d-item.prev,
.carousel-3d-item.next {
    opacity: 0.6;
    pointer-events: auto;
    z-index: 5;
    filter: brightness(0.4);
}

.carousel-3d-item.prev {
    transform: translateX(-500px) translateZ(-250px) rotateY(15deg) scale(0.85);
}

.carousel-3d-item.next {
    transform: translateX(500px) translateZ(-250px) rotateY(-15deg) scale(0.85);
}

/* Central Active Laptop */
.carousel-3d-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    transform: translateX(0) translateZ(0) rotateY(0) scale(1.2);
}

/* Only show laptop frame for active item */
.carousel-3d-item .laptop-container {
    display: none;
}

.carousel-3d-item.active .laptop-container {
    display: block;
}

/* Fallback simple image for side items */
.carousel-3d-item .fallback-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.carousel-3d-item.active .fallback-img {
    display: none;
}

.laptop-container {
    background: #111;
    border-radius: 20px 20px 0 0;
    padding: 6px;
    position: relative;
    border: 6px solid #333;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
}

.laptop-container::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: -10%;
    width: 120%;
    height: 12px;
    background: #222;
    border-radius: 0 0 15px 15px;
}

.laptop-screen {
    width: 100%;
    aspect-ratio: 16/10;
    background: #000;
    overflow: hidden;
    position: relative;
    border-radius: 2px;
    padding: 4px;
}

.laptop-screen img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 20;
    padding: 0 20px;
}

.carousel-nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    color: var(--color-kids-primary);
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
    background: var(--color-kids-primary);
    color: white;
    transform: scale(1.1);
}

/* Wrapper for unified background */
.educakids-content-wrapper {
    background-image: url('../assets/chapeauBG.png');
    background-size: 80% auto;
    background-position: center 80%;
    background-repeat: no-repeat;
    padding-bottom: 60px;
}

/* Page Intro Section */
.intro-educakids {
    padding: 60px 0;
    background: none;
}

.intro-educakids .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.logo-educakids {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 20px;
    max-width: 280px;
    height: auto;
}

.intro-educakids__subtitle {
    color: #888;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
    display: block;
}

.intro-educakids__title {
    font-size: 2.8rem;
    color: #222;
    margin-bottom: 20px;
    font-weight: 800;
}

.intro-educakids__description {
    max-width: 750px;
    margin: 0 auto 50px;
    line-height: 1.7;
    color: #666;
    font-size: 1.15rem;
}

/* Features Grid */
.features-grid-educakids {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 60px 0;
    max-width: 1250px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .features-grid-educakids {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .features-grid-educakids {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.feature-card-educakids {
    background: #fdf0f8;
    border-radius: 30px;
    padding: 30px;
    border-left: 8px solid var(--color-kids-primary);
    text-align: left;
    box-shadow: 0 10px 30px rgba(233, 30, 140, 0.06);
    transition: transform 0.3s ease;
}

.feature-card-educakids:hover {
    transform: translateY(-5px);
}

.feature-card-educakids__title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.feature-card-educakids ul {
    list-style: none;
    padding: 0;
}

.feature-card-educakids li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.95rem;
}

.feature-card-educakids li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-kids-primary);
    font-weight: bold;
}

/* Mobile App Section */
.mobile-educakids {
    background-color: transparent;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.mobile-educakids__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.mobile-educakids__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 180px;
}

.mobile-educakids__title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.15;
    margin-bottom: 25px;
    max-width: 450px;
}

.mobile-educakids__text {
    font-size: 1.4rem;
    color: #888;
    margin-bottom: 40px;
    max-width: 420px;
    line-height: 1.5;
}

.btn-educakids {
    background: linear-gradient(90deg, #e91e8c 0%, #ff6b35 100%);
    color: #ffffff;
    padding: 18px 45px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(233, 30, 140, 0.25);
}

.btn-educakids:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(233, 30, 140, 0.35);
    filter: brightness(1.1);
}

.mascot-educakids {
    margin-top: 60px;
    max-width: 250px;
    height: auto;
    margin-left: -140px;
    animation: floatMascotKids 3s ease-in-out infinite;
}

@keyframes floatMascotKids {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

.mobile-educakids__images {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.mobile-mockup-kids {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
    margin-bottom: 0;
}

.store-badges-educakids {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: -20px;
}

.store-badge img {
    height: 110px;
    width: auto;
    display: block;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.12));
}

.store-badge:hover img {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

/* Footer override for Educakids — pink/magenta */
.page-educakids .footer {
    background-color: var(--color-kids-primary);
}

/* Responsive */
/* Responsive Updates */
@media (max-width: 1024px) {
    .header {
        position: fixed !important;
        top: 0 !important;
    }

    .hero-educakids {
        padding-top: var(--space-32);
        min-height: auto;
    }

    .carousel-3d-wrapper {
        height: 400px;
    }

    .carousel-3d-item {
        width: 500px;
    }

    .intro-educakids__title {
        font-size: 2.2rem;
    }

    .intro-educakids__description {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .feature-card-educakids__title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .carousel-3d-wrapper {
        height: 300px;
    }

    .carousel-3d-item {
        width: 100%;
        max-width: 450px;
    }

    .carousel-3d-item.prev,
    .carousel-3d-item.next {
        display: none;
    }

    .carousel-3d-item.active {
        transform: scale(1);
    }

    .features-grid-educakids {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .feature-card-educakids {
        padding: 25px;
        border-radius: 20px;
    }

    .mobile-educakids__container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .mobile-educakids__content {
        padding-left: 20px;
        padding-right: 20px;
        align-items: center;
    }

    .mobile-educakids__title {
        font-size: 2rem;
        max-width: 100%;
    }

    .mobile-educakids__text {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .mascot-educakids {
        margin-left: 0;
        margin-top: 20px;
        max-width: 180px;
    }

    .store-badge img {
        height: 110px;
    }

    .store-badges-educakids {
        justify-content: center;
        margin-top: 20px;
        gap: 15px;
    }

    .educakids-content-wrapper {
        background-size: 150% auto;
        background-position: center bottom;
    }

    .laptop-container {
        border-width: 4px;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .intro-educakids__title {
        font-size: 1.8rem;
    }

    .carousel-3d-wrapper {
        height: 250px;
    }
}