/* Shared layout for activity programme pages. */
.program-hero {
    position: relative;
    min-height: 500px;
    display: grid;
    place-items: center;
    padding: 80px 0;
    overflow: hidden;
    color: #fff;
    background: #063f70;
}

.program-hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(4, 44, 80, .96) 0 48%, rgba(4, 44, 80, .62) 75%, rgba(4, 44, 80, .84)), url('https://picsum.photos/seed/aquatic-programmes/1800/900') center/cover;
    content: '';
}

.program-hero-inner,
.program-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1640px;
    margin: 0 auto;
    padding-right: 2.5cm;
    padding-left: 2.5cm;
    box-sizing: border-box;
}

.program-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 70px;
    align-items: end;
}

.program-kicker {
    margin-bottom: 22px;
    color: #8edaf0;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.program-hero h1 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.6rem, 5.1vw, 5.4rem);
    font-weight: 600;
    line-height: 1.02;
}

.program-hero h1 span {
    display: block;
    color: #8edaf0;
}

.program-intro {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, .83);
    font-size: 1.05rem;
    line-height: 1.75;
}

.program-outcomes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, .25);
}

.program-outcome {
    padding: 20px 14px 0 0;
}

.program-outcome strong {
    display: block;
    color: #fff;
    font-size: 1.35rem;
}

.program-outcome span {
    color: rgba(255, 255, 255, .66);
    font-size: .75rem;
}

.program-section {
    padding: 84px 0;
    background: #f4f8fa;
}

.program-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 48px;
}

.program-title small {
    display: block;
    margin-bottom: 8px;
    color: #087ca4;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.program-title h2 {
    margin: 0;
    color: #063f70;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.program-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.program-filters button {
    padding: 9px 18px;
    border: 1px solid #b9d2de;
    border-radius: 4px;
    background: transparent;
    color: #315667;
    font-weight: 700;
    cursor: pointer;
}

.program-filters button.active,
.program-filters button:hover {
    border-color: #087ca4;
    background: #087ca4;
    color: #fff;
}

.program-list {
    display: grid;
    gap: 18px;
}

.program-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 200px;
    min-height: 178px;
    border: 1px solid #dbe7ec;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 20px rgba(14, 63, 88, .04);
}

.program-card[hidden] {
    display: none;
}

.program-card-image {
    min-height: 178px;
}

.program-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-card-copy {
    padding: 25px 30px;
}

.program-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 9px;
    flex-wrap: wrap;
    color: #60737d;
    font-size: .78rem;
}

.program-meta i {
    margin-right: 6px;
    color: #087ca4;
}

.program-card h3 {
    margin: 0 0 8px;
    color: #153d51;
    font-size: 1.2rem;
}

.program-card p {
    margin: 0;
    color: #63737c;
    line-height: 1.55;
}

.program-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-left: 1px solid #e2eaee;
}

.program-card-action a {
    color: #076d94;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 991px) {
    .program-hero-inner,
    .program-container { padding-right: 24px; padding-left: 24px; }
    .program-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .program-card { grid-template-columns: 240px minmax(0, 1fr); }
    .program-card-action { grid-column: 2; justify-content: center; padding: 0 30px 24px; border: 0; }
}

@media (max-width: 700px) {
    .program-hero { min-height: 600px; padding: 60px 0; }
    .program-hero-inner,
    .program-container { padding-right: 16px; padding-left: 16px; }
    .program-hero h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
    .program-outcomes { grid-template-columns: 1fr; }
    .program-outcome { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .13); }
    .program-section { padding: 55px 0; }
    .program-toolbar { align-items: flex-start; flex-direction: column; }
    .program-card { display: flex; flex-direction: column; }
    .program-card-image { height: 210px; }
    .program-card-copy { padding: 22px; }
    .program-card-action {
        padding: 0 22px 24px;
        justify-content: center;
        border: 0;
    }
    .program-card-action a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 12px 24px;
        background: #076d94;
        color: #ffffff;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
        transition: background 200ms ease, transform 200ms ease;
    }
    .program-card-action a:hover {
        background: #055878;
        transform: translateY(-1px);
    }
}
