.programs-shell {
    font-family: "Raleway", sans-serif;
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 1.5rem;
}

.programs-hero {
    background: #f8f4ee;
    border-bottom: 1px solid rgba(155, 125, 85, 0.16);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 4.75rem 0 5rem;
}

.programs-kicker {
    color: #7d6a4f;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.programs-main-title {
    color: #2f3b36;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.02;
    margin-bottom: 1.75rem;
    max-width: 13ch;
}

.programs-main-copy {
    color: #6f625b;
    font-size: clamp(1.08rem, 1.6vw, 1.32rem);
    line-height: 1.75;
    margin-bottom: 0;
    max-width: 720px;
}

.program-story-section {
    background: #f8f4ee;
    border-bottom: 1px solid rgba(155, 125, 85, 0.16);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 4.5rem 0;
}

.program-how-section,
.program-classes-section {
    background: #f4ede5;
    border-bottom: 1px solid rgba(155, 125, 85, 0.16);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 4.5rem 0;
}

.program-classes-section {
    background: #f8f4ee;
}

.program-section-header {
    margin-bottom: 2.5rem;
    max-width: 760px;
}

.program-section-header h2 {
    color: #2f3b36;
    font-size: clamp(2rem, 3.8vw, 3.15rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.08;
    margin-bottom: 1rem;
}

.program-section-header p:not(.programs-kicker) {
    color: #6f625b;
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 0;
}

.program-steps-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-step-card,
.program-class-card {
    background: rgba(255, 252, 248, 0.9);
    border: 1px solid rgba(155, 125, 85, 0.14);
    border-radius: 1.5rem;
    box-shadow: 0 18px 40px rgba(84, 66, 47, 0.08);
    padding: 1.8rem;
}

.program-step-number {
    align-items: center;
    background: #9b7d55;
    border-radius: 999px;
    color: #fff8f0;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    height: 2.5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
    width: 2.5rem;
}

.program-step-card h3,
.program-class-card h3 {
    color: #433c37;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.program-step-card p,
.program-class-card p {
    color: #6f625b;
    line-height: 1.7;
    margin-bottom: 0;
}

.program-class-layout {
    align-items: stretch;
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.program-class-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-class-card-wide {
    grid-column: 1 / -1;
}

.program-class-type {
    color: #9b7d55 !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 0.7rem !important;
    text-transform: uppercase;
}

.program-story-grid {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.program-story-grid-reverse {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.program-story-image-wrap {
    background: #efe4d6;
    border-radius: 1.75rem;
    box-shadow: 0 24px 55px rgba(84, 66, 47, 0.12);
    min-height: 420px;
    overflow: hidden;
}

.program-story-image {
    display: block;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.program-story-copy {
    max-width: 560px;
}

.program-story-copy h2,
.programs-enquiry-band h2 {
    color: #2f3b36;
    font-size: clamp(2rem, 3.8vw, 3.15rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.08;
    margin-bottom: 1.6rem;
}

.program-story-copy p:not(.programs-kicker),
.programs-enquiry-band p:not(.programs-kicker) {
    color: #6f625b;
    font-size: 1.08rem;
    line-height: 1.78;
    margin-bottom: 1.15rem;
}

.program-story-copy p:last-child,
.programs-enquiry-band p:last-child {
    margin-bottom: 0;
}

.programs-enquiry-section {
    background: #f8f4ee;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 4.5rem 0 5rem;
}

.programs-enquiry-band {
    align-items: center;
    background: #fffaf6;
    border: 1px solid rgba(155, 125, 85, 0.16);
    border-radius: 1.75rem;
    box-shadow: 0 20px 45px rgba(84, 66, 47, 0.08);
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    padding: 2.5rem;
}

.programs-enquiry-band > div {
    max-width: 720px;
}

.programs-enquiry-button {
    background: #9b7d55;
    border-radius: 999px;
    color: #fff8f0;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.95rem 2.3rem;
    text-decoration: none;
}

.programs-enquiry-button:hover,
.programs-enquiry-button:focus {
    background: #8c704c;
    color: #fff8f0;
}

@media (max-width: 991.98px) {
    .programs-hero,
    .program-story-section,
    .program-how-section,
    .program-classes-section,
    .programs-enquiry-section {
        padding-bottom: 3.5rem;
        padding-top: 3.5rem;
    }

    .programs-main-title {
        max-width: 15ch;
    }

    .program-story-grid,
    .program-story-grid-reverse,
    .program-class-layout,
    .program-steps-grid {
        grid-template-columns: 1fr;
    }

    .program-class-cards {
        grid-template-columns: 1fr;
    }

    .program-story-grid-reverse .program-story-copy {
        order: 2;
    }

    .program-story-grid-reverse .program-story-image-wrap {
        order: 1;
    }

    .program-story-copy {
        max-width: 100%;
    }

    .programs-enquiry-band {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .programs-shell {
        padding: 0 1rem;
    }

    .programs-hero,
    .program-story-section,
    .program-how-section,
    .program-classes-section,
    .programs-enquiry-section {
        padding-bottom: 2.5rem;
        padding-top: 2.5rem;
    }

    .program-story-image-wrap,
    .program-story-image {
        min-height: 320px;
    }

    .programs-enquiry-band {
        border-radius: 1.35rem;
        padding: 1.5rem;
    }

    .program-step-card,
    .program-class-card {
        padding: 1.4rem;
    }

    .programs-enquiry-button {
        justify-content: center;
        width: 100%;
    }
}
.available-classes-scroll-wrap {
    position: relative;
}
.available-classes-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 64px;
    height: 100%;
    background: linear-gradient(to right, transparent, #f4f0ea);
    pointer-events: none;
    border-radius: 0 1.75rem 1.75rem 0;
}

.available-classes-grid {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    padding-right: 48px;
}

.available-classes-grid::-webkit-scrollbar {
    height: 5px;
}
.available-classes-grid::-webkit-scrollbar-track {
    background: rgba(155, 125, 85, 0.08);
    border-radius: 99px;
}
.available-classes-grid::-webkit-scrollbar-thumb {
    background: rgba(155, 125, 85, 0.35);
    border-radius: 99px;
}

.available-class-card {
    background: #fffaf6;
    border: 1px solid rgba(155, 125, 85, 0.14);
    border-radius: 1.75rem;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(84, 66, 47, 0.08);
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.available-class-card h3 {
    color: #3f3129;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.available-class-card p {
    color: #6f625b;
    line-height: 1.7;
}

.available-class-card ul {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.available-class-card li {
    color: #6f625b;
    margin-bottom: 0.6rem;
}

.available-class-card strong {
    color: #3f3129;
}

@media (max-width: 768px) {
    .available-class-card {
        flex: 0 0 260px;
        padding: 1.5rem;
    }
}
.view-all-classes-button {
    align-items: center;
    background: #9b7d55;
    border: 1px solid #9b7d55;
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(84, 66, 47, 0.12);
    color: #fff8f0;
    display: flex;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    justify-content: center;
    margin: 32px auto 0;
    padding: 14px 28px;
    text-decoration: none;
    transition: 0.2s ease;
    width: fit-content;
}

.view-all-classes-button:hover,
.view-all-classes-button:focus {
    background: #8c704c;
    border-color: #8c704c;
    color: #fff8f0;
    transform: translateY(-1px);
}
.class-filter-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    gap: 14px 18px;
    margin: 30px 0 36px;
    padding: 26px 28px;
    background: rgba(255, 250, 246, 0.92);
    border: 1px solid rgba(155, 125, 85, 0.16);
    border-radius: 1.5rem;
    box-shadow: 0 18px 40px rgba(84, 66, 47, 0.06);
}

.class-filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cff-wide {
    grid-column: span 1;
}

.class-filter-spacer {
    /* empty grid cell for alignment */
}

.class-filter-field label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a6a58;
}

.cff-input {
    appearance: none;
    background: #fffaf6;
    border: 1px solid #d8c7b5;
    border-radius: 999px;
    color: #3f3129;
    font: inherit;
    font-size: 0.92rem;
    height: 44px;
    outline: none;
    padding: 0 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.cff-input:focus {
    border-color: #9b7d55;
    box-shadow: 0 0 0 3px rgba(155, 125, 85, 0.12);
}

.cff-input[type="date"],
.cff-input[type="time"] {
    padding: 0 12px;
}

.class-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .class-filter-form {
        grid-template-columns: repeat(2, 1fr);
    }
    .class-filter-spacer {
        display: none;
    }
    .class-filter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .class-filter-form {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

.filter-apply-button,
.filter-clear-button {
    align-items: center;
    border: 1px solid #d8c7b5;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(84, 66, 47, 0.08);
    cursor: pointer;
    display: inline-flex;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    height: 46px;
    justify-content: center;
    padding: 0 22px;
    text-decoration: none;
    transition: 0.2s ease;
}

.filter-apply-button {
    background: #9b7d55;
    color: #fff8f0;
}

.filter-clear-button {
    background: #fffaf6;
    color: #3f3129;
}

.filter-apply-button:hover,
.filter-apply-button:focus {
    background: #8c704c;
    border-color: #8c704c;
    color: #fff8f0;
    transform: translateY(-1px);
}

.filter-clear-button:hover,
.filter-clear-button:focus {
    background: #f7efe7;
    border-color: #c9b092;
    color: #2f241d;
    transform: translateY(-1px);
}

.class-table-wrap {
    background: rgba(255, 250, 246, 0.86);
    border: 1px solid rgba(155, 125, 85, 0.14);
    border-radius: 1.5rem;
    box-shadow: 0 18px 45px rgba(84, 66, 47, 0.08);
    overflow-x: auto;
    margin-top: 24px;
}

.class-availability-table {
    background: transparent;
    border-collapse: separate;
    border-spacing: 0;
    color: #433c37;
    overflow: hidden;
    width: 100%;
}

.class-availability-table th,
.class-availability-table td {
    border-bottom: 1px solid rgba(155, 125, 85, 0.14);
    padding: 16px;
    text-align: left;
}

.class-availability-table th {
    background: #9b7d55;
    color: #fff8f0;
    font-weight: 700;
}

.class-availability-table tbody tr {
    background: rgba(255, 252, 248, 0.94);
}

.class-availability-table tbody tr:nth-child(even) {
    background: rgba(248, 244, 238, 0.94);
}

.class-availability-table tbody tr:hover {
    background: #f7efe7;
}

.class-availability-table tr:last-child td {
    border-bottom: none;
}

.no-classes-message {
    text-align: center;
    margin-top: 30px;
    font-weight: 600;
}
.class-row-book-btn {
    align-items: center;
    background: #9b7d55;
    border: 1px solid #9b7d55;
    border-radius: 999px;
    color: #fff8f0;
    display: inline-flex;
    font-family: "Raleway", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    justify-content: center;
    padding: 7px 18px;
    text-decoration: none;
    transition: 0.2s ease;
    white-space: nowrap;
}

.class-row-book-btn:hover,
.class-row-book-btn:focus {
    background: #8c704c;
    border-color: #8c704c;
    color: #fff8f0;
    transform: translateY(-1px);
}

.classes-book-button-wrap {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
}

.classes-book-button {
    align-items: center;
    background: #9b7d55;
    border: 1px solid #9b7d55;
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(84, 66, 47, 0.12);
    color: #fff8f0;
    display: inline-flex;
    font-family: "Raleway", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
    min-height: 52px;
    padding: 0 42px;
    text-decoration: none;
    transition: 0.2s ease;
}

.classes-book-button:hover,
.classes-book-button:focus {
    background: #8c704c;
    border-color: #8c704c;
    color: #fff8f0;
    transform: translateY(-1px);
}

/* ── Accordion class cards ──────────────────────────────── */
.acc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.acc-card {
    background: #fffaf6;
    border: 1px solid rgba(155, 125, 85, 0.14);
    border-radius: 1.75rem;
    box-shadow: 0 18px 45px rgba(84, 66, 47, 0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.acc-card:hover {
    box-shadow: 0 24px 56px rgba(84, 66, 47, 0.13);
    transform: translateY(-2px);
}

.acc-card.is-open {
    border-color: rgba(155, 125, 85, 0.30);
}

.acc-card-toggle {
    appearance: none;
    background: none;
    border: none;
    cursor: pointer;
    display: block;
    font-family: inherit;
    padding: 2rem;
    text-align: left;
    width: 100%;
}

.acc-card-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.acc-class-type {
    margin-bottom: 0;
}

.acc-icon {
    align-items: center;
    background: rgba(155, 125, 85, 0.10);
    border-radius: 50%;
    color: #9b7d55;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.25rem;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    line-height: 1;
    transition: transform 0.25s ease, background 0.2s ease;
    width: 28px;
}

.acc-card.is-open .acc-icon {
    background: rgba(155, 125, 85, 0.22);
    transform: rotate(45deg);
}

.acc-card-title {
    color: #3f3129;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
}

.acc-card-summary {
    list-style: none;
    margin: 0;
    padding: 0;
}

.acc-card-summary li {
    color: #6f625b;
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}

.acc-card-summary strong {
    color: #3f3129;
}

.acc-expand-hint {
    color: #9b7d55;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 0.9rem 0 0;
    transition: opacity 0.2s ease;
}

.acc-card.is-open .acc-expand-hint {
    opacity: 0;
    pointer-events: none;
}

/* Expandable body — slides open */
.acc-card-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s ease;
}

.acc-card.is-open .acc-card-body {
    grid-template-rows: 1fr;
}

.acc-card-body-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    transition: padding 0.32s ease;
}

.acc-card.is-open .acc-card-body-inner {
    padding: 0 2rem 2rem;
}

.acc-divider {
    border: none;
    border-top: 1px solid rgba(155, 125, 85, 0.14);
    margin: 0 0 1.25rem;
}

.acc-card-details {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.acc-card-details li {
    color: #6f625b;
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}

.acc-card-details strong {
    color: #3f3129;
}

.acc-book-btn {
    align-items: center;
    background: #9b7d55;
    border: 1px solid #9b7d55;
    border-radius: 999px;
    color: #fff8f0;
    display: inline-flex;
    font-family: "Raleway", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    justify-content: center;
    padding: 11px 26px;
    text-decoration: none;
    transition: 0.2s ease;
}

.acc-book-btn:hover,
.acc-book-btn:focus {
    background: #8c704c;
    border-color: #8c704c;
    color: #fff8f0;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .acc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .acc-card-toggle,
    .acc-card-body-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .acc-card.is-open .acc-card-body-inner {
        padding: 0 1.5rem 1.5rem;
    }
}
