/* ===== PROGRAM PAGES (Playgroup / Nursery / LKG / UKG) ===== */

/* Colour modifiers for the intro (use on .prog-intro) */
.prog-intro {
    --c: var(--red);
    --c-dark: var(--red-dark);
    --c-soft: #fde8e9;
    --c-on: #fff;
    position: relative;
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem);
    background: #fff;
    overflow: hidden
}

.prog--blue {
    --c: var(--blue);
    --c-dark: var(--blue-dark);
    --c-soft: #e3f1fc
}

.prog--yellow {
    --c: var(--yellow);
    --c-dark: var(--yellow-dark);
    --c-soft: #fff4d6;
    --c-on: var(--ink)
}

.prog--green {
    --c: #2fb36d;
    --c-dark: #23874f;
    --c-soft: #e2f6eb
}

.prog-intro::before {
    content: "";
    position: absolute;
    right: 3%;
    top: 2rem;
    width: 140px;
    height: 140px;
    background: radial-gradient(rgba(43, 143, 216, .35) 2px, transparent 2.5px) 0 0/18px 18px;
    pointer-events: none
}

.prog-intro .container-xl {
    position: relative;
    z-index: 1
}

/* ---------- Photo (600 x 400 landscape, 3:2) ---------- */
.prog-media {
    position: relative;
    width: min(100%, 600px);
    aspect-ratio: 3 / 2;
    margin: 1.5rem auto
}

.prog-media::before {
    content: "";
    position: absolute;
    inset: -6% 4% 8% -4%;
    background: var(--c-soft);
    border: 3px dashed var(--c);
    border-radius: 34% 66% 40% 60%/46% 42% 58% 54%;
    transform: rotate(-3deg);
    animation: morph 9s ease-in-out infinite
}

.prog-media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 8px solid #fff;
    border-radius: 28% 72% 36% 64%/44% 40% 60% 56%;
    background: linear-gradient(135deg, var(--c-soft), #fff);
    box-shadow: 0 22px 50px rgba(10, 37, 64, .2)
}

.prog-age {
    position: absolute;
    z-index: 2;
    right: -3%;
    top: -6%;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.1rem .7rem .7rem;
    border-radius: 20px;
    background: var(--c);
    color: var(--c-on);
    box-shadow: 0 6px 0 var(--c-dark);
    transform: rotate(5deg);
    animation: float 4.5s ease-in-out infinite
}

.prog-age>i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .25);
    font-size: 1.3rem
}

.prog-age strong {
    display: block;
    font-family: var(--font-fun);
    font-size: 1.4rem;
    line-height: 1
}

.prog-age small {
    display: block;
    font-size: .78rem;
    opacity: .9
}

.prog-sticker {
    position: absolute;
    z-index: 2;
    left: -2%;
    bottom: -5%;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.1rem;
    border-radius: 50px;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 600;
    font-size: .88rem;
    box-shadow: 0 8px 22px rgba(10, 37, 64, .18);
    transform: rotate(-4deg);
    animation: float 4.5s -2s ease-in-out infinite
}

.prog--yellow .prog-sticker {
    background: #fff
}

.prog-sticker i {
    color: var(--red)
}

/* ---------- Text ---------- */
.prog-sub {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 .3rem;
    color: var(--c-dark);
    font-weight: 600;
    font-size: 1.05rem
}

.prog-sub::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background: currentColor
}

.prog-text h2 {
    font-family: var(--font-fun);
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.05;
    color: var(--ink);
    margin: 0 0 1rem;
    text-shadow: 3px 3px 0 var(--c-soft)
}

.prog-lead {
    font-size: 1.12rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.7;
    margin: 0 0 .9rem
}

.prog-text p:not(.prog-lead):not(.prog-sub) {
    color: #46566c;
    line-height: 1.8;
    margin: 0 0 1.6rem
}

.prog-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
    list-style: none;
    margin: 0 0 1.8rem;
    padding: 0
}

.prog-facts li {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem;
    background: #fff;
    border: 2px solid #e3ecf5;
    border-radius: 18px;
    box-shadow: 0 4px 0 #e3ecf5;
    transition: border-color .25s
}

.prog-facts li:hover {
    border-color: var(--c)
}

.prog-fact-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 42% 58% 55% 45%/50% 45% 55% 50%;
    background: var(--c-soft);
    color: var(--c-dark);
    font-size: 1.15rem
}

.prog-facts small {
    display: block;
    font-size: .76rem;
    color: #6b7a8e;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600
}

.prog-facts strong {
    display: block;
    font-size: .95rem;
    color: var(--ink);
    line-height: 1.3
}

.prog-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.4rem
}

.prog-call {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none
}

.prog-call i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(43, 143, 216, .18);
    animation: ring 2.4s ease-in-out infinite
}

.prog-call:hover {
    color: var(--blue-dark)
}

/* ---------- Skills ---------- */
.prog-learn {
    position: relative;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    background:
        radial-gradient(rgba(251, 192, 45, .22) 1.5px, transparent 2px) 0 0/24px 24px,
        #fffaf0;
    overflow: hidden
}

.prog-learn::before {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(227, 36, 43, .07)
}

.prog-learn .container-xl {
    position: relative;
    z-index: 1
}

.skill-card {
    --c: var(--red);
    --c-soft: #fde8e9;
    --c-on: #fff;
    --r: -1deg;
    position: relative;
    height: 100%;
    padding: 2.6rem 1.6rem 1.7rem;
    margin-top: 1.4rem;
    background: #fff;
    border-radius: 24px;
    border-bottom: 5px solid var(--c);
    box-shadow: 0 14px 30px rgba(10, 37, 64, .1);
    transform: rotate(var(--r));
    transition: transform .3s, box-shadow .3s
}

.prog-skills>div:nth-child(even) .skill-card {
    --r: 1deg
}

.skill--blue {
    --c: var(--blue);
    --c-soft: #e3f1fc
}

.skill--yellow {
    --c: var(--yellow);
    --c-soft: #fff4d6;
    --c-on: var(--ink)
}

.skill-card:hover {
    transform: rotate(0) translateY(-6px);
    box-shadow: 0 22px 40px rgba(10, 37, 64, .16)
}

.skill-ic {
    position: absolute;
    top: -30px;
    left: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    border: 5px solid #fff;
    background: var(--c);
    color: var(--c-on);
    font-size: 1.6rem;
    box-shadow: 0 8px 18px rgba(10, 37, 64, .15);
    transform: rotate(-8deg);
    transition: transform .3s
}

.skill-card:hover .skill-ic {
    transform: rotate(6deg) scale(1.06)
}

.skill-card h3 {
    font-family: var(--font-fun);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--ink);
    margin: 0 0 .4rem
}

.skill-card p {
    margin: 0;
    color: #4a5a6e;
    font-size: .94rem;
    line-height: 1.7
}

/* ---------- Day path ---------- */
.prog-day {
    --green: #2fb36d;
    position: relative;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    background: #fff;
    overflow: hidden
}

.day-path {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0
}

/* Dashed road behind circles */
.day-path::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 40px;
    border-top: 3px dashed #b9cfe3
}

.day-step {
    --c: var(--red);
    --c-soft: #fde8e9;
    --c-on: #fff;
    position: relative;
    text-align: center
}

.day--blue {
    --c: var(--blue);
    --c-soft: #e3f1fc
}

.day--yellow {
    --c: var(--yellow);
    --c-soft: #fff4d6;
    --c-on: var(--ink)
}

.day--green {
    --c: var(--green);
    --c-soft: #e2f6eb
}

.day-ic {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--c);
    color: var(--c-on);
    font-size: 1.9rem;
    box-shadow: 0 0 0 8px var(--c-soft), 0 0 0 11px #fff;
    transition: transform .3s
}

.day-step:hover .day-ic {
    transform: scale(1.08) rotate(-8deg)
}

.day-step h3 {
    font-family: var(--font-fun);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
    margin: 1.3rem 0 .25rem
}

.day-step p {
    margin: 0 auto;
    max-width: 170px;
    color: #4a5a6e;
    font-size: .88rem;
    line-height: 1.55
}

@media (min-width: 992px) {
    .day-step:nth-child(even) {
        margin-top: 2.2rem
    }
}

@media (max-width: 991.98px) {
    .day-path {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 2.4rem
    }

    .day-path::before {
        display: none
    }
}

@media (max-width: 575.98px) {
    .day-path {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        max-width: 420px;
        margin: 0 auto
    }

    .day-path::before {
        display: block;
        left: 31px;
        right: auto;
        top: 30px;
        bottom: 30px;
        border-top: 0;
        border-left: 3px dashed #b9cfe3
    }

    .day-step {
        display: grid;
        grid-template-columns: 64px 1fr;
        column-gap: 1.1rem;
        align-items: center;
        text-align: left
    }

    .day-ic {
        grid-row: span 2;
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
        box-shadow: 0 0 0 6px var(--c-soft), 0 0 0 9px #fff
    }

    .day-step h3 {
        margin: 0 0 .15rem;
        align-self: end
    }

    .day-step p {
        margin: 0;
        max-width: none;
        align-self: start
    }
}

/* ---------- Other programs ---------- */
.prog-more {
    position: relative;
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem);
    background:
        radial-gradient(rgba(43, 143, 216, .14) 1.5px, transparent 2px) 0 0/24px 24px,
        var(--soft);
    overflow: hidden
}

.prog-more-title {
    font-family: var(--font-fun);
    font-weight: 800;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    text-align: center;
    color: var(--ink);
    margin: 0 0 1.8rem
}

.prog-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem
}

.prog-link {
    --c: var(--red);
    --c-soft: #fde8e9;
    --c-on: #fff;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 2px solid #dbe7f3;
    border-radius: 20px;
    box-shadow: 0 5px 0 #dbe7f3;
    color: var(--ink);
    text-decoration: none;
    transition: transform .2s, border-color .2s, box-shadow .2s
}

.pl--blue {
    --c: var(--blue);
    --c-soft: #e3f1fc
}

.pl--yellow {
    --c: var(--yellow);
    --c-soft: #fff4d6;
    --c-on: var(--ink)
}

.pl--green {
    --c: #2fb36d;
    --c-soft: #e2f6eb
}

.prog-link>i:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--c);
    color: var(--c-on);
    font-size: 1.3rem
}

.prog-link span {
    flex: 1
}

.prog-link strong {
    display: block;
    font-family: var(--font-fun);
    font-size: 1.2rem;
    line-height: 1.1
}

.prog-link small {
    color: #6b7a8e;
    font-size: .82rem
}

.pl-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c-soft);
    transition: transform .2s, background .2s, color .2s
}

.prog-link:hover,
.prog-link:focus-visible {
    color: var(--ink);
    border-color: var(--c);
    box-shadow: 0 5px 0 var(--c);
    transform: translateY(-3px)
}

.prog-link:hover .pl-arrow {
    background: var(--c);
    color: var(--c-on);
    transform: translateX(3px)
}

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
    .prog-text {
        text-align: center
    }

    .prog-sub::after {
        content: "";
        width: 28px;
        height: 3px;
        border-radius: 3px;
        background: currentColor
    }

    .prog-facts {
        text-align: left;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto
    }

    .prog-actions {
        justify-content: center
    }

    .prog-links {
        grid-template-columns: 1fr 1fr
    }

    .prog-media {
        width: min(92%, 520px)
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 575.98px) {
    .prog-facts {
        grid-template-columns: 1fr
    }

    .prog-media {
        width: min(90%, 400px)
    }

    .prog-age {
        right: -4%;
        top: -8%;
        padding: .5rem .8rem .5rem .5rem
    }

    .prog-age>i {
        width: 34px;
        height: 34px;
        font-size: 1.05rem
    }

    .prog-age strong {
        font-size: 1.15rem
    }

    .prog-sticker {
        left: -3%;
        bottom: -6%;
        font-size: .78rem
    }

    .prog-actions .btn {
        width: 100%
    }

    .prog-links {
        grid-template-columns: 1fr
    }

    .skill-card {
        --r: 0deg
    }

    .prog-skills>div:nth-child(even) .skill-card {
        --r: 0deg
    }
}

@media (prefers-reduced-motion: reduce) {

    .skill-card,
    .skill-card:hover,
    .skill-card:hover .skill-ic,
    .day-step:hover .day-ic,
    .prog-link:hover,
    .prog-link:hover .pl-arrow {
        transform: none
    }
}