/* =====================================================
HERO SECTION
===================================================== */

.hero-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg,
            #f9fcff 0%,
            #ffffff 100%);
    padding:
        60px 0 120px;
}

/* =========================
DECORATIVE SHAPES
========================= */

.hero-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.shape-1 {
    width: 250px;
    height: 250px;
    background:
        rgba(255, 201, 40, .15);
    top: -80px;
    left: -80px;
}

.shape-2 {
    width: 180px;
    height: 180px;
    background:
        rgba(45, 46, 168, .08);
    right: -50px;
    top: 120px;
}

.shape-3 {
    width: 140px;
    height: 140px;
    background:
        rgba(255, 91, 26, .10);
    bottom: 80px;
    left: 15%;
}

/* =========================
HERO GRID
========================= */

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns:
        1fr 1.2fr;
    align-items: center;
    gap: 60px;
}

/* =====================================================
LEFT CONTENT
===================================================== */

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-logo {
    width: 100%;
    max-width: 620px;
    margin-bottom: 25px;
    animation:
        floatLogo 5s ease-in-out infinite;
}

/* =========================
BADGE
========================= */

.school-badge {
    background:
        linear-gradient(135deg,
            #ffd43b,
            #ffbd00);
    color: #222;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 50px;
    margin-bottom: 22px;
    box-shadow:
        0 8px 20px rgba(255, 189, 0, .25);
}

/* =========================
ADMISSION TEXT
========================= */

.admission-heading {
    color: #e62222;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 28px;
    text-transform: uppercase;
}

/* =====================================================
RIGHT SIDE HERO IMAGE
===================================================== */

.hero-image-wrapper {
    position: relative;
}

.hero-image-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero-image-card:hover {
    transform:
        translateY(-8px);
    box-shadow:
        var(--shadow-hover);
}

.hero-image-card img {
    width: 100%;
    height: auto;
    transition: .7s ease;
}

.hero-image-card:hover img {
    transform: scale(1.05);
}

/* =========================
GLOW BORDER EFFECT
========================= */

.hero-image-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 2px;
    background:
        linear-gradient(135deg,
            #ff5b1a,
            #ffc928,
            #2d2ea8);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
}

/* =====================================================
HERO WAVE
===================================================== */

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 120px;
}

/* =====================================================
HERO ANIMATIONS
===================================================== */

.hero-content {
    animation:
        slideLeft .8s ease;
}

.hero-image-wrapper {
    animation:
        slideRight .8s ease;
}

/* =====================================
JS REVEAL SUPPORT
===================================== */

.hero-content,
.hero-image-wrapper {
    opacity: 0;
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.hero-content {
    transform:
        translateX(-50px);
}

.hero-image-wrapper {
    transform:
        translateX(50px);
}

.hero-content.visible,
.hero-image-wrapper.visible {
    opacity: 1;
    transform:
        translateX(0);
}

/* =====================================================
ABOUT SECTION
===================================================== */

.about-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns:
        1fr 1.4fr 0.9fr;
    gap: 50px;
    align-items: center;
}

/* =========================
IMAGE
========================= */

.about-image-area {
    position: relative;
}

.about-circle {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1/1;
    margin: auto;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #fff;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, .12);
    transition: .4s ease;
}

.about-circle:hover {
    transform:
        translateY(-10px);
}

.about-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}

.about-circle:hover img {
    transform: scale(1.08);
}

/* =========================
DECORATIONS
========================= */

.rainbow {
    position: absolute;
    width: 80px;
    height: 80px;
    background:
        radial-gradient(circle,
            #ffd43b,
            #ff922b);
    border-radius: 50%;
    bottom: 20px;
    right: 10px;
    opacity: .25;
}

.star {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #ffc928;
    top: 40px;
    left: 20px;
    transform: rotate(45deg);
    opacity: .5;
}

/* =========================
CONTENT
========================= */

.section-tag {
    display: inline-block;
    background: #ff6a22;
    color: #fff;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-title span:nth-child(1) {
    color: #ff5b1a;
}

.about-title span:nth-child(2) {
    color: #2d2ea8;
}

.about-title span:nth-child(3) {
    color: #16a34a;
}

.about-content p {
    margin-bottom: 18px;
    line-height: 1.9;
    color: #555;
}

/* =========================
INFO PANEL
========================= */

.about-info {
    background: #fff8f0;
    border-radius: 28px;
    padding: 30px;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, .08);
}

.info-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom:
        1px solid rgba(0, 0, 0, .08);
    transition: .3s ease;
}

.info-card:last-child {
    border: none;
}

.info-card:hover {
    transform:
        translateX(8px);
}

.info-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 1.3rem;
    box-shadow:
        0 5px 15px rgba(0, 0, 0, .08);
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #222;
}

.info-card p {
    font-weight: 600;
    color: #2d2ea8;
}

/* =====================================================
WHY CHOOSE SECTION
===================================================== */

.why-section {
    padding: 30px 0 100px;
}

.why-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 25px;
}

.why-card {
    background: #fff;
    border-radius: 28px;
    padding: 40px 25px;
    text-align: center;
    box-shadow:
        0 10px 35px rgba(0, 0, 0, .08);
    transition: .35s ease;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.purple-card::before {
    background: #8b5cf6;
}

.yellow-card::before {
    background: #f59e0b;
}

.green-card::before {
    background: #16a34a;
}

.blue-card::before {
    background: #3b82f6;
}

.why-card:hover {
    transform:
        translateY(-12px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, .12);
}

.why-icon {
    width: 90px;
    height: 90px;
    margin: auto auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    background: #fff;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, .08);
    transition: .35s ease;
}

.why-card:hover .why-icon {
    transform:
        rotate(8deg) scale(1.08);
}

.purple-card .why-icon {
    background: #f3e8ff;
}

.yellow-card .why-icon {
    background: #fff7d6;
}

.green-card .why-icon {
    background: #e8fce8;
}

.blue-card .why-icon {
    background: #eaf4ff;
}

.why-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: #222;
}

.why-card p {
    color: #666;
    line-height: 1.8;
    font-size: .95rem;
}

/* =====================================================
PROGRAMS SECTION
===================================================== */

.programs-section {
    padding: 100px 0;
    background:
        linear-gradient(180deg,
            #ffffff,
            #f8fbff);
}

.programs-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 25px;
}

.program-card {
    position: relative;
    background: #fff;
    border-radius: 28px;
    padding: 35px 25px;
    text-align: center;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .08);
    transition: .35s ease;
    overflow: hidden;
}

.program-card:hover {
    transform:
        translateY(-12px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, .14);
}

/* CARD COLORS */

.playgroup-card {
    border-top: 6px solid #ff8a00;
}

.nursery-card {
    border-top: 6px solid #ff4d6d;
}

.prep-card {
    border-top: 6px solid #16a34a;
}

.kg-card {
    border-top: 6px solid #2d2ea8;
}

/* AGE BADGE */

.age-badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 50px;
    background: #f5f5f5;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ICON */

.program-icon {
    width: 90px;
    height: 90px;
    margin: auto auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: #fff;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, .08);
    transition: .35s ease;
}

.program-card:hover .program-icon {
    transform:
        scale(1.1) rotate(10deg);
}

.playgroup-card .program-icon {
    background: #fff4e8;
}

.nursery-card .program-icon {
    background: #ffeaf0;
}

.prep-card .program-icon {
    background: #eafce9;
}

.kg-card .program-icon {
    background: #eef1ff;
}

/* TEXT */

.program-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #222;
}

.program-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    min-height: 120px;
}

/* BUTTON */

.program-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 50px;
    background:
        linear-gradient(135deg,
            var(--secondary),
            #ff7a3d);
    color: #fff;
    font-weight: 600;
    transition: .3s ease;
}

.program-btn:hover {
    transform:
        translateY(-3px);
    box-shadow:
        0 10px 20px rgba(255, 91, 26, .25);
}

/* =====================================================
FACILITIES SECTION
===================================================== */

.facilities-section {
    padding: 100px 0;
    background: #ffffff;
}

.facilities-grid {
    display: grid;
    grid-template-columns:
        repeat(2, 1fr);
    gap: 30px;
}

/* CARD */

.facility-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    min-height: 250px;
    cursor: pointer;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, .08);
    transition: .4s ease;
}

.facility-card:hover {
    transform:
        translateY(-10px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, .15);
}

.facility-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .8s ease;
}

.facility-card:hover img {
    transform: scale(1.08);
}

/* OVERLAY */

.facility-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px;
    background:
        linear-gradient(to top,
            rgba(0, 0, 0, .82),
            rgba(0, 0, 0, .25),
            transparent);
    color: #fff;
}

.facility-overlay h3 {
    font-size: 1.7rem;
    margin-bottom: 10px;
    transform:
        translateY(10px);
    transition: .4s ease;
}

.facility-overlay p {
    line-height: 1.7;
    opacity: .95;
    transform:
        translateY(20px);
    transition: .4s ease;
}

.facility-card:hover .facility-overlay h3,
.facility-card:hover .facility-overlay p {
    transform:
        translateY(0);
}

/* =====================================================
ABACUS SECTION
===================================================== */

.abacus-section {
    padding: 100px 0;
    background:
        linear-gradient(135deg,
            #2D2EA8 0%,
            #1E207A 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative circles */

.abacus-section::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background:
        rgba(255, 255, 255, .05);
    top: -120px;
    right: -100px;
}

.abacus-section::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background:
        rgba(255, 255, 255, .04);
    bottom: -80px;
    left: -80px;
}

.abacus-wrapper {
    display: grid;
    grid-template-columns:
        1.3fr .9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* LEFT */

.abacus-tag {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 50px;
    background:
        rgba(255, 255, 255, .12);
    color: #fff;
    font-size: .9rem;
    margin-bottom: 20px;
}

.abacus-content h2 {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.abacus-content h3 {
    color: #FFC928;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.abacus-content p {
    color:
        rgba(255, 255, 255, .9);
    line-height: 1.9;
    margin-bottom: 30px;
    max-width: 650px;
}

/* FEATURES */

.abacus-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}

.abacus-features span {
    background:
        rgba(255, 255, 255, .12);
    color: #fff;
    padding: 12px 18px;
    border-radius: 50px;
    transition: .3s ease;
}

.abacus-features span:hover {
    background:
        rgba(255, 255, 255, .2);
    transform:
        translateY(-3px);
}

/* BUTTON */

.abacus-btn {
    display: inline-block;
    padding: 15px 28px;
    border-radius: 50px;
    background:
        linear-gradient(135deg,
            #FF6A22,
            #FF4D12);
    color: #fff;
    font-weight: 600;
    transition: .35s ease;
}

.abacus-btn:hover {
    transform:
        translateY(-5px);
    box-shadow:
        0 15px 30px rgba(255, 106, 34, .35);
}

/* RIGHT */

.abacus-logo-area {
    display: flex;
    justify-content: center;
}

.abacus-logo-card {
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, .18);
    transition: .4s ease;
}

.abacus-logo-card:hover {
    transform:
        translateY(-10px) rotate(2deg);
}

.abacus-logo-card img {
    width: 100%;
    max-width: 320px;
}

/* =====================================================
GALLERY PREVIEW
===================================================== */

.gallery-preview {
    padding: 100px 0;
    background:
        linear-gradient(180deg,
            #ffffff,
            #f8fbff);
}

.gallery-subtitle {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px;
    color: #666;
    line-height: 1.8;
}

/* GRID */

.gallery-grid {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    cursor: pointer;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .7s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* LARGE */

.gallery-item.large {
    grid-row:
        span 2;
}

/* WIDE */

.gallery-item.wide {
    grid-column:
        span 2;
}

/* OVERLAY */

.gallery-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 25px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    background:
        linear-gradient(to top,
            rgba(0, 0, 0, .8),
            transparent);
    transform:
        translateY(20px);
    opacity: 0;
    transition: .35s ease;
}

.gallery-item:hover .gallery-overlay {
    transform:
        translateY(0);
    opacity: 1;
}

/* BUTTON */

.gallery-btn-wrap {
    text-align: center;
    margin-top: 50px;
}

.gallery-view-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    background:
        linear-gradient(135deg,
            #2D2EA8,
            #4D5DFF);
    color: #fff;
    font-weight: 600;
    transition: .35s ease;
}

.gallery-view-btn:hover {
    transform:
        translateY(-5px);
    box-shadow:
        0 15px 30px rgba(45, 46, 168, .25);
}

/* =====================================================
TESTIMONIALS
===================================================== */

.testimonials-section {
    padding: 100px 0;
    background: #fff;
}

.testimonial-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: #666;
}

.testimonial-slider {
    position: relative;
    max-width: 850px;
    margin: auto;
}

.testimonial-track {
    position: relative;
    min-height: 320px;
}

.testimonial-card {
    display: none;
    background: #fff;
    border-radius: 30px;
    padding: 50px;
    text-align: center;
    box-shadow:
        0 15px 45px rgba(0, 0, 0, .08);
}

.testimonial-card.active {
    display: block;
    animation: fadeSlide .6s ease;
}

.stars {
    color: #FFC928;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.testimonial-card p {
    line-height: 2;
    color: #555;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-card h4 {
    color: var(--primary);
    font-size: 1.15rem;
}

.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform:
        translateY(-50%);
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, .1);
    cursor: pointer;
    z-index: 10;
    transition: .3s ease;
}

.testimonial-arrow:hover {
    transform:
        translateY(-50%) scale(1.08);
}

.prev-btn {
    left: -80px;
}

.next-btn {
    right: -80px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d6d6d6;
    cursor: pointer;
    transition: .3s ease;
}

.dot.active {
    background: #ff6a22;
    transform: scale(1.2);
}