main > .container {
    padding: 70px 15px 20px;
}

/* Footer address block */
.footer-address {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-address-icon {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-address-text {
    text-align: left;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.user-info {
    border: 1px solid transparent;
    padding: 12px 15px;
    color: #66717b;
}
.user-info:hover {
    background: #deebf7;
    color: #1d4f72;
    border-color: transparent;
}

/* Breadcrumbs links */
.breadcrumb a {
    color: #198754;
}

/* Breadcrumbs links */
.site-login a {
    color: #198754;
}

/* Auth pages background */
main:has(.site-login),
main:has(.site-signup),
main:has(.site-activation-pending),
main:has(.site-request-password-reset),
main:has(.site-reset-password) {
    background: #f5f9f4;
    flex: 1;
}

/* ========== Landing (site-index) ========== */
.site-index main {
    padding: 0;
}

.site-index .hero {
    min-height: 100svh;
    background: #7FA875;
    padding: 0;
    overflow: hidden;
}

.site-index .hero-inner {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

.site-index .hero-content {
    max-width: min(94vw, 1180px);
    padding-top: clamp(3.5rem, 12vh, 6.5rem);
    padding-bottom: clamp(4rem, 14vh, 7rem);
}

.site-index .hero-title {
    font-family: 'Russo One', sans-serif;
    color: #234129;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.82;
    font-size: clamp(4.25rem, 15.8vw, 11.5rem);
    text-align: center;
    margin: 0;
    white-space: nowrap;
    transform: scaleX(1.06);
    transform-origin: center;
    letter-spacing: inherit;
}

.site-index .hero-subtitle {
    font-family: 'Russo One', sans-serif;
    color: #FFFFFF;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.92;
    margin: clamp(0.6rem, 2vw, 1rem) auto 0;
    text-align: center;
}

.site-index .hero-subtitle-line {
    display: block;
    font-size: clamp(1.2rem, 4.6vw, 3rem);
    white-space: nowrap;
    transform: scaleX(1.08);
    transform-origin: center;
    letter-spacing: inherit;
}

.site-index .hero-slogan {
    max-width: min(52vw, 590px);
    margin: clamp(1.8rem, 5vw, 3.5rem) 0 0 auto;
    font-family: 'Marck Script', cursive;
    color: #2A6B61;
    font-size: clamp(1.8rem, 3.7vw, 3.35rem);
    line-height: 0.92;
    text-align: center;
    transform: rotate(-1.5deg);
    transform-origin: center;
}

.site-index .hero-slogan-line {
    display: block;
}

/* Hero CTA button */
.site-index .hero-cta {
    text-align: center;
    margin-top: clamp(1.2rem, 3vw, 2rem);
}

.site-index .hero-cta-btn {
    display: inline-block;
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    letter-spacing: 0.5px;
    color: #2f5d3a;
    background-color: #e6efe6;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 2.8rem;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: all 0.25s ease;
}

.site-index .hero-cta-btn:hover {
    background-color: #dbe8db;
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
    color: #2f5d3a;
    text-decoration: none;
}

.site-index .hero-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Scroll reveal */
.site-index .scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.site-index .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger hero items */
.site-index .hero-content .scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.site-index .hero-content .scroll-reveal:nth-child(2) { transition-delay: 0.22s; }
.site-index .hero-content .scroll-reveal:nth-child(3) { transition-delay: 0.34s; }
.site-index .hero-content .scroll-reveal:nth-child(4) { transition-delay: 0.46s; }

/* Adult programs section */
.site-index .adult-programs-section {
    background: #f5f9f4;
    padding: 5rem 0;
}

.site-index .adult-programs-heading {
    margin-bottom: 2rem;
}

.site-index .adult-programs-heading__title {
    color: #1F3C28;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
}

.site-index .adult-programs-row + .adult-programs-row {
    margin-top: 0.25rem;
}

.site-index .adult-program-card {
    position: relative;
    min-height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #45644d;
    background-image:
        linear-gradient(180deg, rgba(20, 35, 24, 0.2) 0%, rgba(20, 35, 24, 0.82) 100%),
        var(--adult-card-image);
    background-size: cover;
    background-position: var(--adult-card-position, center);
    box-shadow: 0 12px 32px rgba(31, 60, 40, 0.16);
}

.site-index .adult-program-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 24%),
        linear-gradient(180deg, rgba(10, 20, 14, 0.06) 0%, rgba(10, 20, 14, 0.24) 100%);
    pointer-events: none;
}

.site-index .adult-program-card__overlay {
    position: relative;
    z-index: 1;
    padding: 1.35rem 1.35rem 1.45rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(22, 43, 29, 0.22) 0%, rgba(22, 43, 29, 0.54) 100%);
    backdrop-filter: blur(1px);
}

.site-index .adult-program-card__title {
    color: #fff;
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.site-index .adult-program-card__subtitle {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.8em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
}

.site-index .adult-program-card__text,
.site-index .adult-program-card__list li {
    font-size: 0.94rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.96);
}

.site-index .adult-program-card__text {
    margin-bottom: 0.75rem;
}

.site-index .adult-program-card__text:last-of-type {
    margin-bottom: 0;
}

.site-index .adult-program-card__list {
    list-style: none;
    padding-left: 0;
    margin: 0.85rem 0 0;
}

.site-index .adult-program-card__list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.5rem;
}

.site-index .adult-program-card__list li:last-child {
    margin-bottom: 0;
}

.site-index .adult-program-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d6f0ce;
}

/* Children programs section */
.site-index .children-programs-section {
    background: #f5f9f4;
    padding: 5rem 0;
}

.site-index .children-programs-heading {
    margin-bottom: 2rem;
}

.site-index .children-programs-heading__title {
    color: #1F3C28;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
}

.site-index .children-hero-card {
    position: relative;
    border-radius: 12px;
    background-color: #344233;
    background-image:
        linear-gradient(180deg, rgba(23, 32, 24, 0.28) 0%, rgba(23, 32, 24, 0.8) 100%),
        var(--children-card-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 32px rgba(31, 60, 40, 0.16);
    overflow: hidden;
}

.site-index .children-hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 29, 21, 0.84) 0%, rgba(20, 29, 21, 0.6) 45%, rgba(20, 29, 21, 0.48) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 24%);
    pointer-events: none;
}

.site-index .children-hero-card__overlay {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.site-index .children-hero-card__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.site-index .children-hero-card__block {
    border-radius: 12px;
    padding: 1.35rem 1.35rem 1.45rem;
    background: rgba(245, 249, 244, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.site-index .children-hero-card__title {
    color: #fff;
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.site-index .children-hero-card__subtitle {
    color: rgba(214, 240, 206, 0.96);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.9rem;
}

.site-index .children-hero-card__text,
.site-index .children-hero-card__list li {
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.98rem;
    line-height: 1.58;
}

.site-index .children-hero-card__text {
    margin-bottom: 0.75rem;
}

.site-index .children-hero-card__text:last-of-type {
    margin-bottom: 0;
}

.site-index .children-hero-card__list {
    list-style: none;
    padding-left: 0;
    margin: 0.9rem 0 0;
}

.site-index .children-hero-card__list + .children-hero-card__text,
.site-index .children-hero-card__list + .children-hero-card__list {
    margin-top: 1.25rem;
}

.site-index .children-hero-card__list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.45rem;
}

.site-index .children-hero-card__list li:last-child {
    margin-bottom: 0;
}

.site-index .children-hero-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d6f0ce;
}

.site-index .children-hero-card__text--tail {
    margin-top: 1.25rem;
}

/* Teachers section */
.site-index .teachers-section {
    background: #f5f9f4;
    padding: 4rem 0;
}

.site-index .teacher-block:last-child {
    margin-bottom: 0 !important;
}

.site-index .teacher-img {
    max-width: 280px;
    box-shadow: 0 12px 32px rgba(31, 60, 40, 0.15);
    border-radius: 12px;
}

.site-index .teachers-section h2 {
    color: #1F3C28;
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-index .teachers-section p,
.site-index .teachers-section li {
    color: #2d3d35;
    line-height: 1.6;
}

.site-index .teachers-section ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
}

.site-index .teachers-section ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.35rem;
}

.site-index .teachers-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: #7FA875;
    border-radius: 50%;
}

@media (max-width: 991.98px) {
    .site-index .hero-content {
        max-width: min(95vw, 980px);
        padding-top: clamp(4rem, 13vh, 5.5rem);
        padding-bottom: clamp(3rem, 11vh, 4.5rem);
    }

    .site-index .hero-title {
        font-size: clamp(4rem, 16vw, 8.8rem);
    }

    .site-index .hero-subtitle-line {
        font-size: clamp(1.15rem, 4.8vw, 2.4rem);
    }

    .site-index .hero-slogan {
        max-width: min(60vw, 500px);
        font-size: clamp(1.7rem, 4vw, 2.8rem);
    }

    .site-index .adult-programs-heading {
        margin-bottom: 1.5rem;
    }

    .site-index .adult-program-card__overlay {
        padding: 1.15rem;
    }

    .site-index .children-programs-heading {
        margin-bottom: 1.5rem;
    }

    .site-index .children-hero-card__overlay {
        padding: 1.5rem;
    }

    .site-index .children-hero-card__content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .site-index .hero {
        min-height: auto;
        padding-top: 56px;
    }

    .site-index .hero-content {
        max-width: 100%;
        padding-top: 2.75rem;
        padding-bottom: 3.5rem;
    }

    .site-index .hero-title {
        font-size: clamp(3.35rem, 19vw, 6.6rem);
        line-height: 0.86;
        white-space: normal;
        transform: none;
        letter-spacing: inherit;
    }

    .site-index .hero-subtitle {
        margin-top: 1.5rem !important;
        margin-bottom: 0 !important;
        letter-spacing: inherit;
    }

    .site-index .hero-subtitle-line {
        font-size: clamp(1rem, 6vw, 1.85rem);
        white-space: normal;
        transform: none;
    }

    .site-index .hero-cta {
        margin-top: 1.5rem;
    }

    .site-index .hero-cta-btn {
        padding: 0.75rem 2.4rem;
        font-size: 1rem;
    }

    .site-index .hero-slogan {
        max-width: 100%;
        margin-top: 2rem;
        font-size: clamp(1.55rem, 7vw, 2.35rem);
        line-height: 0.98;
        transform: none;
    }

    .site-index .adult-programs-section {
        padding: 3.5rem 0;
    }

    .site-index .adult-programs-heading {
        margin-bottom: 1.25rem;
    }

    .site-index .adult-programs-row + .adult-programs-row {
        margin-top: 0;
    }

    .site-index .adult-program-card__overlay {
        padding: 1rem;
    }

    .site-index .adult-program-card__title {
        font-size: 1.35rem;
        margin-bottom: 0.8rem;
    }

    .site-index .adult-program-card__text,
    .site-index .adult-program-card__list li {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .site-index .children-programs-section {
        padding: 3.5rem 0;
    }

    .site-index .children-programs-heading {
        margin-bottom: 1.25rem;
    }

    .site-index .children-hero-card__overlay {
        padding: 1rem;
    }

    .site-index .children-hero-card__content {
        grid-template-columns: 1fr;
    }

    .site-index .children-hero-card__block {
        padding: 1rem;
    }

    .site-index .children-hero-card__title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .site-index .children-hero-card__text,
    .site-index .children-hero-card__list li {
        font-size: 0.92rem;
        line-height: 1.5;
    }
}

/* ========== Enroll: direction cards ========== */
.enroll-card {
    display: block;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(127, 168, 117, 0.25);
    box-shadow: 0 4px 16px rgba(31, 60, 40, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
    color: #1F3C28;
}

.enroll-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(31, 60, 40, 0.16);
    color: #1F3C28;
}

.enroll-card__inner {
    padding: 1.5rem;
}

.enroll-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7FA875 0%, #5a8a50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.enroll-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1F3C28;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.enroll-card__text {
    font-size: 0.92rem;
    color: #4a6350;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.enroll-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #7FA875;
    transition: gap 0.2s ease;
}

.enroll-card:hover .enroll-card__action {
    gap: 0.7rem;
}

/* ========== Enroll: timetable slots ========== */
.enroll-slot {
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(127, 168, 117, 0.25);
    box-shadow: 0 2px 8px rgba(31, 60, 40, 0.06);
    padding: 1.25rem;
    transition: box-shadow 0.2s ease;
}

.enroll-slot:hover {
    box-shadow: 0 6px 20px rgba(31, 60, 40, 0.12);
}

.enroll-slot__time {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1F3C28;
    margin-bottom: 0.85rem;
}

.enroll-slot__time .fas {
    color: #7FA875;
}

.btn-enroll {
    background: linear-gradient(135deg, #7FA875 0%, #5a8a50 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.2rem;
    font-weight: 600;
    font-size: 0.92rem;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-enroll:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}

.btn-enroll:active {
    transform: translateY(0);
}

.btn-enroll-cancel {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.2rem;
    font-weight: 600;
    font-size: 0.92rem;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-enroll-cancel:hover {
    background: #c82333;
    transform: translateY(-1px);
    color: #fff;
}

.btn-enroll-cancel:active {
    transform: translateY(0);
}

.btn-enroll-cancel--disabled,
.btn-enroll-cancel--disabled:hover,
.btn-enroll-cancel--disabled:focus,
.btn-enroll-cancel--disabled:active,
.btn-enroll-cancel--disabled[disabled] {
    background: #9e9e9e !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    border: none;
}

/* Enroll pages background */
main:has(.enroll-index),
main:has(.enroll-timetable) {
    background: #f5f9f4;
    flex: 1;
}

@media (max-width: 575.98px) {
    .enroll-card__inner {
        padding: 1.15rem;
    }

    .enroll-slot {
        padding: 1rem;
    }
}

/* ========== Image pages (Price / Timetable) ========== */
main:has(.site-img-price),
main:has(.site-img-timetable) {
    background: #f5f9f4;
    flex: 1;
}

.img-page-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.img-page-photo {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(31, 60, 40, 0.13);
    cursor: zoom-in;
    transition: box-shadow 0.2s ease;
}

.img-page-photo:hover {
    box-shadow: 0 12px 36px rgba(31, 60, 40, 0.22);
}

/* Lightbox overlay */
.img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    cursor: zoom-out;
    padding: 1rem;
    -webkit-tap-highlight-color: transparent;
}

.img-lightbox--active {
    opacity: 1;
    visibility: visible;
}

.img-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    transform: scale(0.92);
    transition: transform 0.25s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.img-lightbox--active .img-lightbox__img {
    transform: scale(1);
}

.img-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 1;
}

.img-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}