/* ===========================================================
   Toddler Program page (18 Months – 3 Years)
   =========================================================== */

/* ---------- Hero header ---------- */
.tp-hero {
    position: relative;
    height: 80vh;
    min-height: 416px;
    background: url('../images/inner-hero.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

.tp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 68, 89, 0.55) 0%, rgba(14, 68, 89, 0.88) 100%);
}

.tp-hero nav {
    position: absolute;
    z-index: 100;
}

.tp-hero-content {
    position: relative;
    z-index: 2;
    margin: auto 0;
    max-width: 760px;
    text-align: left;
    color: #fff;
    padding: 0 64px;
}

/* Hero text — matches the home page hero (.kms-label / h2 / p) */
.tp-eyebrow {
    display: inline-block;
    color: #85C555;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.tp-hero-content h1 {
    font-family: 'Fira Sans', sans-serif;
    font-size: 48px;
    line-height: 58px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
}

.tp-hero-content .tp-sub {
    font-size: 19px;
    line-height: 29px;
    font-weight: 400;
    color: #ffffff;
}

/* ---------- Breadcrumb — pinned to the bottom-left of the hero ---------- */
/* Lives inside .tp-hero; absolutely positioned at bottom-left, aligned with
   the hero title's left padding (64px), in light colors for the dark hero. */
.tp-hero .tp-breadcrumb {
    position: absolute;
    left: 0;
    right: auto;
    top: auto;
    bottom: 30px;
    z-index: 3;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 64px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.tp-hero .tp-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.tp-hero .tp-breadcrumb a:hover {
    text-decoration: underline;
}

.tp-hero .tp-breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 7px;
}

@media (max-width: 640px) {
    .tp-hero .tp-breadcrumb {
        bottom: 22px;
        padding: 0 28px;
    }
}

/* ---------- Intro ---------- */
.tp-intro {
    background: #eef4f8;
    padding: 84px 24px;
    text-align: center;
}

.tp-intro .tp-quote,
.tp-intro > p {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.tp-quote {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    line-height: 1.4;
    font-style: italic;
    color: #0E4459;
    margin-bottom: 26px;
}

.tp-quote span {
    display: block;
    font-size: 15px;
    font-style: normal;
    font-family: 'Fira Sans', sans-serif;
    color: #85C555;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 14px;
}

.tp-intro p {
    color: #4A5565;
    font-size: 17px;
    line-height: 30px;
    margin-bottom: 18px;
}

/* ---------- Alternating image / text rows (full-width bands) ---------- */
.tp-row {
    padding: 84px 50px;
}

.tp-row:nth-child(odd) {
    background: #ffffff;
}

.tp-row:nth-child(even) {
    background: #eef4f8;
}

.tp-row-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
}

.tp-row.reverse .tp-figure {
    order: -1;
}

.tp-figure img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.16);
    display: block;
}

.tp-row h2 {
    font-family: 'Fira Sans', sans-serif;
    font-size: 31px;
    line-height: 1.3;
    font-weight: 700;
    color: #101828;
    margin-bottom: 18px;
}

.tp-row h2 .tp-kicker {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #30A7DF;
    margin-bottom: 12px;
}

.tp-row p {
    color: #4A5565;
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 16px;
}

/* Checklist of activities */
.tp-list {
    list-style: none;
    margin: 8px 0 18px;
    display: grid;
    gap: 13px;
}

.tp-list li {
    position: relative;
    padding-left: 34px;
    color: #364152;
    font-size: 15.5px;
    line-height: 24px;
}

.tp-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #85C555;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
}

/* ---------- Highlight callout ---------- */
.tp-callout-band {
    background: #eef4f8;
    padding: 84px 24px;
}

.tp-callout {
    background: linear-gradient(135deg, #0E4459 0%, #14607e 100%);
    color: #fff;
    max-width: 1080px;
    margin: 0 auto;
    border-radius: 22px;
    padding: 56px 56px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(14, 68, 89, 0.28);
}

.tp-callout h2 {
    font-family: 'Fira Sans', sans-serif;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tp-callout p {
    color: #cfe3ea;
    font-size: 17px;
    line-height: 30px;
    max-width: 780px;
    margin: 0 auto;
}

.tp-callout a {
    color: #85C555;
    font-weight: 600;
    text-decoration: none;
}

.tp-callout a:hover {
    text-decoration: underline;
}

/* ---------- Toddler Life & Activities (gallery, sits below hero) ---------- */
.tp-gallery {
    background: #ffffff;
    padding: 84px 50px;
}

.tp-gallery-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 46px;
}

.tp-gallery-head span {
    color: #30A7DF;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
}

.tp-gallery-head h2 {
    font-family: 'Fira Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #101828;
    margin-top: 10px;
}

.tp-gallery-head p {
    color: #4A5565;
    font-size: 16px;
    line-height: 26px;
    margin-top: 12px;
}

/* Uniform grid — equal-sized tiles (slight crop via object-fit). */
.tp-gallery-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tp-gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    aspect-ratio: 4 / 3;
}

.tp-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.tp-gallery-grid figure:hover img {
    transform: scale(1.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .tp-hero-content h1 {
        font-size: 40px;
        line-height: 50px;
    }

    .tp-row {
        padding: 50px 28px;
    }

    .tp-row-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .tp-row.reverse .tp-figure {
        order: 0;
    }

    .tp-figure img {
        height: 300px;
    }

    .tp-intro,
    .tp-callout-band {
        padding: 56px 24px;
    }

    .tp-callout {
        padding: 40px 26px;
        border-radius: 16px;
    }

    .tp-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tp-gallery {
        padding: 60px 24px;
    }
}

@media (max-width: 640px) {
    .tp-hero-content {
        padding: 0 28px;
    }
}

@media (max-width: 560px) {
    .tp-hero-content h1 {
        font-size: 32px;
        line-height: 40px;
    }

    .tp-eyebrow {
        font-size: 18px;
    }

    .tp-quote {
        font-size: 24px;
    }

    .tp-gallery-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}
