/* ===========================================================
   Program level pages — shared sections
   (Daily Rhythm timeline + Key Experiences grid)
   Extends the .tp-* inner-page template.
   =========================================================== */

/* ---------- Section tabs — clean text tabs above the content heading ---------- */
/* Sit at the top of the left text box, just above the section heading.
   Flat tabs on a light background with a slim green underline on the active. */
.pr-tabs {
    margin-bottom: 22px;
    border-bottom: 1px solid #e4edf3;
}

.pr-tabs-inner {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    scrollbar-width: none;
}

.pr-tabs-inner::-webkit-scrollbar {
    display: none;
}

.pr-tab {
    padding: 0 0 10px;
    margin-bottom: -1px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: #8a97a3;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.pr-tab:hover {
    color: #0E4459;
}

.pr-tab.active {
    color: #0E4459;
    border-bottom-color: #85C555;
}

/* Floating state — detaches into a slim full-width bar pinned to the top */
.pr-tabs.pr-tabs--stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    margin: 0;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e4edf3;
    box-shadow: 0 2px 14px rgba(14, 68, 89, 0.06);
}

.pr-tabs.pr-tabs--stuck .pr-tabs-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 13px 50px;
}

/* Reserves the in-flow space so content doesn't jump when tabs detach */
.pr-tabs-spacer {
    height: 0;
}

/* Smooth scrolling + a little offset under the section headings */
html {
    scroll-behavior: smooth;
}

/* Any section that a tab links to needs to clear the floating header + tabs */
.tp-row[id],
.pr-band[id],
section[id] {
    scroll-margin-top: 124px;
}

/* ---------- Generic band head ---------- */
.pr-band {
    padding: 84px 50px;
}

.pr-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 46px;
}

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

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

.pr-head p {
    color: #4A5565;
    font-size: 16px;
    line-height: 28px;
    margin-top: 14px;
}

/* ---------- Materials & Classrooms gallery ---------- */
.pr-gallery-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pr-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;
}

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

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

/* ---------- Daily Rhythm timeline ---------- */
.pr-rhythm-list {
    max-width: 840px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.pr-rhythm-item {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 10px 26px rgba(14, 68, 89, 0.07);
}

.pr-time {
    flex: 0 0 auto;
    background: #eef7e6;
    color: #5a9e2c;
    font-weight: 700;
    font-size: 13.5px;
    border-radius: 20px;
    padding: 7px 15px;
    white-space: nowrap;
    margin-top: 2px;
}

.pr-rhythm-item h3 {
    font-family: 'Fira Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0E4459;
    margin-bottom: 5px;
}

.pr-rhythm-item p {
    font-size: 14.5px;
    color: #4A5565;
    line-height: 23px;
}

/* ---------- Key Experiences cards ---------- */
.pr-exp-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pr-exp-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 14px 34px rgba(14, 68, 89, 0.08);
    border-bottom: 4px solid #85C555;
}

.pr-exp-icon {
    display: block;
    font-size: 34px;
    line-height: 1;
    margin-bottom: 14px;
}

.pr-exp-card h3 {
    font-family: 'Fira Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0E4459;
    margin-bottom: 8px;
}

.pr-exp-card p {
    font-size: 14px;
    color: #4A5565;
    line-height: 22px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .pr-band {
        padding: 60px 28px;
    }

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

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


@media (max-width: 560px) {
    .pr-gallery-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .pr-exp-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .pr-rhythm-item {
        flex-direction: column;
        gap: 10px;
    }
}
