/* ==========================================================================
   PROGRAMMES PAGE (V2 Redesign)
   ========================================================================== */

.single-programmes {
    background-color: #EDF6EE;
}

/* Hero handled by .pa-page-hero.pa-page-hero--banner — see home-v2.css */

.prog-intro {
    position: relative;
    z-index: 2;
    margin-top: -8rem;
    padding: 0 0 24px;
}

.prog-intro__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 4vw;
    margin: 0 auto;
    max-width: 1020px;
}

.prog-intro__visual {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

@media (max-width: 1230px) {
    .prog-intro__visual {
        height: 240px;
    }
}

.prog-intro__img {
    width: 100%;
    height: 100%;
    object-fit: unset;
    display: block;
}

@media (max-width:1230px) {
    .prog-intro__img {
        object-fit: cover;
    }
}

.prog-intro__play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background 0.3s;
}

.prog-intro__play-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.prog-intro__play-btn {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0000007A;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s;
}

@media (min-width: 1230px) {
    .prog-intro__play-btn {
        width: 88px;
        height: 88px;
    }
}

.prog-intro__play-bg {
    display: none;
}

.prog-intro__play-icon-wrap {
    position: relative;
    z-index: 2;
    width: 26px;
    height: 26px;
}

@media (min-width: 1230px) {
    .prog-intro__play-icon-wrap {
        width: 32px;
        height: 32px;
    }
}

.prog-intro__play-icon-wrap svg {
    display: block;
    width: 100%;
    height: 100%;
}

.prog-intro__play-icon-wrap svg path {
    fill: #fff;
}

.prog-intro__heading {
    font-family: 'Keep Calm', sans-serif;
    font-size: 32px;
    color: #333;
    line-height: 1.3;
    text-align: left;
    font-weight: 700;
    margin-top: 0;
}

.prog-intro__desc {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 20px;
}

.prog-intro__desc p {
    margin: 0 0 12px;
    color: #333;
    font-size: 18px;
}

@media (max-width: 1230px) {
    .prog-intro__desc p {
        font-size: 16px;
        color: #333;
    }
}

.prog-intro__desc p:last-child {
    margin-bottom: 0;
}

.prog-block {
    padding: 0 0 24px;
}

/* The last block keeps the larger bottom gap so the page breathes before
   the next section (sponsor-cta / featured-children). Between blocks we
   want a tighter 24px gap. */
.prog-block:last-of-type {
    padding-bottom: 100px;
}

.prog-block__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 4vw;
    margin: 0 auto;
    max-width: 1020px;
}

.prog-block__card p {
    font-size: 18px;
    color: #333;
}

.prog-block__grid-item {
    border-radius: 16px;
    overflow: hidden;
    height: auto;
}

.prog-block__grid-swiper .swiper-slide.prog-block__grid-item {
    width: 372px;
    max-width: 100%;
    flex-shrink: 0;
}

@media (max-width: 1230px) {
    .prog-block__grid-swiper .swiper-slide.prog-block__grid-item {
        width: 248px;
    }
}

.prog-block__grid-swiper {
    overflow: hidden;
    border-radius: 16px;
}

.prog-block__grid-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.prog-block__grid-nav {
    all: unset;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--pa-primary);
    background-color: #EDF6EE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.prog-block__grid-nav:hover:not(.swiper-button-disabled) {
    background-color: rgba(14, 138, 63, 0.15);
}

.prog-block__grid-nav.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.prog-block__grid-nav svg {
    width: 20px;
    height: 20px;
}

.prog-block__grid-pagination {
    position: relative !important;
    bottom: auto !important;
    width: auto !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.prog-block__grid-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    opacity: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, width 0.2s;
    margin: 0;
}

.prog-block__grid-pagination .swiper-pagination-bullet-active {
    background: var(--pa-primary);
    width: 16px;
    height: 16px;
}

/* One image per slide at every breakpoint — no desktop grid fallback. */

.prog-block__grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.prog-block__visual {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

@media (max-width: 1230px) {
    .prog-block__visual {
        height: 240px;
    }
}

.prog-block__visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.prog-block__heading {
    font-family: 'Keep Calm', sans-serif;
    font-size: 32px;
    color: #333;
    font-weight: 700;
    line-height: 1.4;
    margin: 20px 0 16px;
    text-align: left;
}

.prog-block__card>.prog-block__heading:first-child {
    margin-top: 0;
}

.prog-block__desc {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    text-align: left;
    margin: 0;
    margin-top: 20px;
    margin-bottom: 20px;
}

.prog-block__desc blockquote {
    border-left: none;
}

/* No heading above the description → remove the top gap */
.prog-block__desc--no-heading {
    margin-top: 0;
}

.prog-card__section {
    margin-top: 40px;
}

.prog-card__section>:first-child {
    margin-top: 0;
}

.prog-card__section p {
    font-size: 18px;
    color: #333;
}

@media (max-width: 1230px) {
    .prog-card__section p {
        font-size: 16px;
        color: #333;
    }
}

.single-programmes blockquote {
    min-height: 0;
    margin: 20px 0 0;
    padding: 16px 24px;
    border-left: none;
    background: rgba(4, 149, 81, 0.05);
    border-radius: 0 10px 10px 0;
    color: #333;
    font-size: 18px;
    line-height: 1.7;
}

.single-programmes blockquote p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
}

@media (max-width: 1230px) {
    .single-programmes blockquote {
        font-size: 16px;
    }

    .single-programmes blockquote p {
        font-size: 16px;
        color: #333;
    }
}

.prog-locations {
    padding: 24px 0 40px;
}

.prog-locations__card {
    background: #fff;
    border-radius: 48px;
    padding: 48px;
}

.prog-locations__title {
    font-family: 'Keep Calm', sans-serif;
    font-size: clamp(22px, 2.6vw, 30px);
    color: #333;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    margin: 0 0 16px;
}

.prog-locations__intro {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    text-align: center;
    margin: 0 auto 36px;
}

.prog-locations__intro strong {
    color: #333;
    font-weight: 700;
}

.prog-locations__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.prog-locations__item {
    background: linear-gradient(180deg, #FFFFFF 0%, #E4FFEE 100%);
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.prog-locations__item-visual {
    width: 100%;
    aspect-ratio: 5 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
    margin-bottom: 16px;
}

@media (max-width: 1230px) {
    .prog-locations__item-visual {
        aspect-ratio: 4 / 3;
    }
}

.prog-locations__item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.prog-locations__item-name {
    font-family: 'Keep Calm', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #333;
    margin: 8px 0 12px;
    line-height: 1.2;
}

.prog-locations__item-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 16px;
}

.prog-locations__item-address {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.prog-locations__item-pin {
    width: 18px;
    height: 18px;
    color: var(--pa-primary);
    flex-shrink: 0;
}

.prog-locations__item-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border: 1.5px solid var(--pa-primary);
    border-radius: 999px;
    background: #fff;
    color: var(--pa-primary);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.prog-locations__item-cta:hover {
    background: var(--pa-primary);
    color: #fff;
}

.prog-locations__item-cta:focus:not(:hover) {
    color: var(--pa-primary);
    text-decoration: none;
}

@media (max-width: 1230px) {
    .prog-locations {
        padding: 16px 0 24px;
    }

    .prog-locations__card {
        border-radius: 20px;
        padding: 28px 16px 32px;
    }

    .prog-locations__title {
        font-size: 24px;
    }

    .prog-locations__intro {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .prog-locations__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .prog-locations__item-name {
        font-size: 20px;
    }
}

/* --- LEGACY CONTENT SECTION (kept for safety; no longer used) --- */
.prog-content {
    padding: 40px 0;
}

.prog-content__inner {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    text-align: left;
}

.prog-content__inner p {
    color: #333;
    margin-bottom: 40px;
}

.prog-content__inner p:last-child {
    margin-bottom: 0;
}

/* --- GALLERY SECTION --- */
.prog-gallery {
    padding: 0;
}

.prog-gallery__swiper-wrap {
    position: relative;
}

.prog-gallery__swiper {
    width: 100%;
    overflow: hidden;
}

/* Pagination: hidden by default, shown on mobile via media query */
.prog-gallery__pagination {
    display: none;
}

.prog-gallery__pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s;
    cursor: pointer;
}

.prog-gallery__pagination .swiper-pagination-bullet-active {
    background: var(--pa-primary);
    width: 16px;
    height: 16px;
}

.prog-gallery__item {
    aspect-ratio: 16 / 10;
    border-radius: 24px;
    overflow: hidden;
}

/* Desktop (≥768px): hide pagination, Swiper shows 3 slides via breakpoints in JS */
@media (min-width: 1230px) {
    .prog-gallery__item {
        height: 190px;
    }

    .prog-gallery__pagination {
        display: none !important;
    }
}

.prog-gallery__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}


/* --- DONATION CTA SECTION --- */
.prog-cta {
    padding: 0 0 40px;
}

.prog-cta__card {
    position: relative;
    background: #ebf5ee;
    border-radius: 48px;
    padding: 40px;
    overflow: hidden;
    text-align: center;
}

/* Badge for CTA */
.prog-cta__badge {
    margin-bottom: 24px;
}

.prog-cta__cloud {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

.prog-cta__cloud--1 {
    left: 10%;
    width: 240px;
}

.prog-cta__cloud--2 {
    bottom: 20px;
    right: 5%;
    width: 280px;
}

.prog-cta__cloud--3 {
    top: 30%;
    right: 15%;
    width: 180px;
    opacity: 0.5;
}

.prog-cta__content {
    position: relative;
    z-index: 2;
    max-width: 1184px;
    margin: 0 auto;
}

.prog-cta__img-wrap {
    width: 100%;
    max-width: 372px;
    margin: 0 auto 40px;
    border-radius: 24px;
    overflow: hidden;
}

.prog-cta__img {
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.prog-cta__title {
    font-family: 'Keep Calm', sans-serif;
    font-size: clamp(28px, 4vw, 32px);
    color: #333;
    margin-bottom: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.prog-cta__title-highlight {
    color: var(--pa-primary);
    text-decoration: underline;
    text-underline-offset: 8px;
}

.prog-cta__desc {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 40px;
}

.prog-cta__link {
    color: var(--pa-primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--pa-primary);
}

.prog-cta__link:hover {
    opacity: 0.8;
}

.prog-cta__action {
    display: flex;
    justify-content: center;
}

/* --- RESPONSIVE --- */
@media (max-width: 1230px) {
    .prog-intro {
        margin-top: -5rem;
    }

    .prog-intro__card,
    .prog-block__card {
        padding: 28px 32px;
    }
}

@media (max-width: 1230px) {
    .prog-intro {
        margin-top: -40px;
        padding-bottom: 24px;
    }

    .prog-intro__card,
    .prog-block__card {
        border-radius: 20px;
        padding: 16px;
    }

    .prog-intro__visual,
    .prog-block__visual {
        border-radius: 16px;
    }

    .prog-block__grid {
        gap: 12px;
    }

    .prog-block__grid-item {
        border-radius: 14px;
    }

    .prog-block__heading {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .prog-intro__heading {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .prog-content__inner {
        font-size: 14px;
    }

    .prog-content__inner p {
        margin-bottom: 24px;
    }

    .prog-gallery__swiper-wrap {
        padding-bottom: 40px;
    }

    .prog-gallery__pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        position: absolute;
        bottom: 10px;
        left: 0;
        width: 100%;
    }

    .prog-gallery__item {
        border-radius: 16px;
    }

    .prog-cta__card {
        padding: 32px 20px;
        border-radius: 24px;
    }

    .prog-cta__title {
        font-size: 22px;
        margin-bottom: 20px;
        font-weight: 500;
    }

    .prog-cta__desc {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .prog-cta__img-wrap {
        max-width: 240px;
        margin-bottom: 24px;
    }

    .prog-cta__cloud--1 {
        width: 150px;
        left: -20px;
    }

    .prog-cta__cloud--2 {
        width: 180px;
        right: -30px;
    }
}