/* ==========================================================================
   Edukall Site — pages: the content pages: blog, events agenda, catalogues, FAQ, search, about, contact, facilities, legal, 404, TV, partner profiles, gift claim, admission application and the organisation landings.
   --------------------------------------------------------------------------
   Loaded after edukall-site.css only by the pages SiteStylesheets lists for
   this family, and before the skin's own layer. A rule lives here only when
   every page that can show what it styles is in this family: a component
   another family uses too belongs in edukall-site.css.
   ========================================================================== */

/* ── Eyebrows and the buttons for dark bands and photos ─────────────────────── */

/* Plans grid on the pricing page: room for the "most popular" flag */
.s-plans { padding-top: 14px; }
.s-plans__note { max-width: 720px; margin: 20px auto 0; text-align: center; }
.s-plans__note + .s-plans__note { margin-top: 8px; }
/* The pricing page's audience switch: two addresses, one per tab. */
.s-segmented { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border: 1px solid var(--s-line); border-radius: 999px; background: var(--s-surface); }
.s-site .s-segmented__item { padding: 10px 20px; border-radius: 999px; color: var(--s-muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.s-site .s-segmented__item:hover { color: var(--s-ink); }
.s-site .s-segmented__item.is-active { background: var(--s-ink); color: var(--s-bg); font-weight: 600; }

/* Comparison table */
/* Positioned, so the visually-hidden labels in its cells (position: absolute) are clipped by its
   scroll instead of widening the page on a phone. */
.s-table-wrap { position: relative; overflow-x: auto; max-width: 100%; min-width: 0; border: 1px solid var(--s-line); border-radius: var(--s-radius); background: var(--s-surface); }
.s-compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.s-compare th, .s-compare td { padding: 16px 20px; border-bottom: 1px solid var(--s-line); text-align: center; }
.s-compare tbody tr:last-child th, .s-compare tbody tr:last-child td { border-bottom: 0; }
.s-compare thead th { font-weight: 700; }
.s-compare tbody th { text-align: left; font-weight: 500; }
/* On a narrow screen the table scrolls sideways; what each row is stays in view. */
.s-compare tbody th, .s-compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--s-surface); }
.s-compare .is-popular { background: var(--s-accent-soft); }
.s-compare thead .is-popular { color: var(--s-accent); }
.s-compare__yes { color: var(--s-accent); font-size: 20px; }
.s-compare__no { color: var(--s-faint); }

/* Accent banner (closing call to action) */
.s-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; padding: 56px; border-radius: var(--s-radius-lg); background: var(--s-accent); color: var(--s-on-accent); }
.s-banner .s-h2 { color: var(--s-on-accent); }
.s-banner__text { margin: 10px 0 0; color: var(--s-on-accent-muted); font-size: 17px; }
@media (max-width: 575.98px) { .s-banner { padding: 32px 20px; } }

/* Feature blocks (organisation landings) */
.s-blocks { display: flex; flex-direction: column; gap: 96px; }
.s-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.s-block--flip .s-block__media { order: -1; }
.s-block--solo { grid-template-columns: minmax(0, 820px); }
.s-block__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.s-block__media { aspect-ratio: 4 / 3; }
@media (max-width: 991.98px) {
    .s-blocks { gap: 56px; }
    .s-block { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .s-block--flip .s-block__media { order: 0; }
}

/* Signup */
.s-signup__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: start; }
.s-signup__form { display: flex; flex-direction: column; gap: 18px; }
.s-signup__plan { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: var(--s-radius-lg); background: var(--s-accent-soft); color: var(--s-accent-soft-ink); }
.s-signup__plan .s-plan__list { color: var(--s-accent-soft-ink); }
@media (max-width: 991.98px) {
    .s-signup__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .s-signup__plan { position: static; }
}

/* ── Catalogues (programs.php, courses.php via _catalog.php) ──────────────── */
.s-facets { width: 100%; display: flex; flex-direction: column; gap: 28px; }
.s-active-filters { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.s-site .s-active-filters__chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--s-accent-soft); color: var(--s-accent-soft-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.s-site .s-active-filters__chip:hover { background: var(--s-accent); color: var(--s-on-accent); }
.s-active-filters__chip .bi { font-size: 18px; }
.s-site .s-active-filters__clear { margin-left: 4px; font-size: 14px; font-weight: 600; color: var(--s-muted); }
/* The recommender's "for you" mark (catalog-recommender.js places it on the image). */
.s-pcard .rec-badge { top: 12px !important; right: 12px !important; margin: 0 !important; padding: 5px 10px; border-radius: 999px; background: var(--s-surface); color: var(--s-accent); font-size: 12px; font-weight: 700; box-shadow: var(--s-shadow); }
.s-pcard .rec-badge i { display: none; }

/* ── Events: the agenda (events.php) and the event page (event_page.php) ──── */

.s-agenda { padding-top: 32px; padding-bottom: 72px; }
.s-agenda .s-catalog__head p { margin: 0; }
.s-agenda__month + .s-agenda__month { margin-top: 36px; }
.s-site .s-agenda__label { margin: 0 0 12px; font-family: var(--s-font-body); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--s-muted); }
.s-agenda__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.s-agenda__row { position: relative; display: grid; grid-template-columns: 76px 140px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 16px; border: 1px solid var(--s-line); border-radius: var(--s-radius); background: var(--s-surface); transition: box-shadow .15s ease; }
.s-agenda__row:hover { box-shadow: var(--s-shadow); }
.s-agenda__row:hover .s-pcard__link { color: var(--s-accent); }
.s-agenda__row:has(.s-pcard__link:focus-visible) { outline: 3px solid var(--s-focus); outline-offset: 2px; }
.s-agenda__date { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 4px; border-radius: var(--s-radius-sm); background: var(--s-accent-soft); color: var(--s-accent-soft-ink); line-height: 1.1; text-align: center; }
.s-agenda__date span { font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.s-agenda__date span:last-child { font-size: 11px; font-weight: 600; letter-spacing: 0; }
.s-agenda__date strong { font-family: var(--s-font-display); font-size: 30px; }
.s-agenda__thumb { width: 140px; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--s-radius-sm); background: var(--s-tint-3); }
.s-agenda__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.s-agenda__body p { margin: 0; }
.s-agenda__kicker { font-size: 13px; font-weight: 600; color: var(--s-accent); }
.s-agenda__title { margin: 0; font-family: var(--s-font-display); font-weight: 600; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.s-agenda__subtitle { font-size: 14px; color: var(--s-muted); }
.s-agenda__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.s-agenda__side .s-pcard__price { margin: 0; }
@media (max-width: 991.98px) {
    .s-agenda__row { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; }
    .s-agenda__thumb { display: none; }
    .s-agenda__side { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; flex-wrap: wrap; }
    .s-agenda__date strong { font-size: 24px; }
}

/* ── Blog (blog.php, blog_read_post.php) ──────────────────────────────────── */
.s-popular { margin: 0; padding: 0; list-style: none; counter-reset: pop; display: flex; flex-direction: column; }
.s-popular li { counter-increment: pop; display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--s-line); }
.s-popular li::before { content: counter(pop); font-family: var(--s-font-display); font-size: 22px; font-weight: 700; line-height: 1; color: var(--s-accent); min-width: 22px; }
.s-site .s-popular a { color: var(--s-ink); font-weight: 600; text-decoration: none; line-height: 1.35; }
.s-site .s-popular a:hover { color: var(--s-accent); }

.s-newsbox { padding: 22px; border-radius: var(--s-radius); background: var(--s-accent-soft); color: var(--s-accent-soft-ink); display: flex; flex-direction: column; gap: 10px; }
.s-newsbox p { margin: 0; }
.s-newsbox .s-form { gap: 10px; }
.s-newsbox__result { font-size: 14px; font-weight: 600; }
.s-newsbox__result--error { color: var(--s-ink); }

.s-article { padding-top: 32px; padding-bottom: 56px; }
.s-article__head, .s-article__body { max-width: 760px; margin: 0 auto; padding: 0 var(--s-gutter); box-sizing: content-box; }
.s-article__head { display: flex; flex-direction: column; gap: 16px; }
.s-article__title { font-size: calc(clamp(34px, 4.6vw, 58px) * var(--s-h1-scale)); line-height: 1.04; }
.s-article__meta { display: flex; align-items: center; gap: 12px; }
.s-article__meta img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; }
.s-article__meta p { margin: 0; }
.s-site .s-article__author { color: var(--s-ink); font-weight: 700; text-decoration: none; }
.s-article__cover { max-width: 1080px; margin: 32px auto; padding: 0 var(--s-gutter); }
.s-article__cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--s-radius-lg); display: block; background: var(--s-tint-3); }
.s-article__body { display: flex; flex-direction: column; gap: 28px; }
.s-article__cats { margin: 0; color: var(--s-muted); }
.s-article__comments { padding-top: 12px; border-top: 1px solid var(--s-line); }
.s-zoomable { cursor: zoom-in; }
.s-zoom { background: transparent; border: 0; }
.s-zoom img { width: 100%; height: auto; max-height: 88vh; object-fit: contain; }
.s-zoom__close { position: absolute; top: -40px; right: 0; }

/* ── Search and content pages (search_results, faq, contact_us, about_us, facilities, legal, page, 404) ── */

.s-search, .s-faqpage { padding-top: 32px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.s-search__head { display: flex; flex-direction: column; gap: 16px; }
.s-search__count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--s-band); color: var(--s-muted); font-size: 12px; }
.s-blog__cats a[aria-current="page"] .s-search__count { background: rgba(255, 255, 255, .2); color: var(--s-on-accent); }
.s-search__group { display: flex; flex-direction: column; gap: 16px; }
.s-search__snippet { color: var(--s-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-faqpage__head { text-align: left; }
.s-faqpage__list { max-width: 860px; }
.s-faqpage__more { max-width: 860px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border-radius: var(--s-radius); background: var(--s-accent-soft); color: var(--s-accent-soft-ink); }
.s-faqpage__more p { margin: 0; font-weight: 600; }
.s-legal { padding-bottom: 72px; }
.s-legal .s-article__body { margin-top: 24px; }
.s-notfound { min-height: 60vh; padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.s-notfound__code { margin: 0; font-family: var(--s-font-display); font-size: clamp(88px, 16vw, 160px); font-weight: 700; line-height: 1; color: var(--s-accent-soft); letter-spacing: -0.04em; }
.s-notfound .s-blog__search { width: 100%; }
.s-notfound .s-btn-row { justify-content: center; }
.s-about__intro { margin-top: 16px; }
.s-pillar { display: flex; flex-direction: column; gap: 12px; }
.s-pillar img { width: 56px; height: 56px; object-fit: contain; }
.s-pillar p { margin: 0; color: var(--s-muted); }
.s-teacher img { aspect-ratio: 1 / 1; }
.s-photos { columns: 3 280px; column-gap: 16px; }
.s-photos figure { margin: 0 0 16px; break-inside: avoid; position: relative; overflow: hidden; border-radius: var(--s-radius-sm); }
.s-photos img { width: 100%; height: auto; display: block; }
.s-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 12px; background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); color: #fff; font-size: 14px; }
.s-contact { padding-top: 32px; padding-bottom: 72px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 991.98px) { .s-contact { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.s-contact__form { display: flex; flex-direction: column; gap: 16px; }
.s-contact__form .s-lead { margin: 0; }
.s-contact__form .s-btn { align-self: flex-start; }
.s-contact__ways { display: flex; flex-direction: column; gap: 12px; }
.s-site .s-contact__way { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--s-line); border-radius: var(--s-radius); background: var(--s-surface); color: var(--s-ink); text-decoration: none; overflow-wrap: anywhere; }
.s-contact__way > .bi { font-size: 22px; color: var(--s-accent); }
.s-contact__way > span { display: flex; flex-direction: column; gap: 2px; }
.s-contact__way strong { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--s-muted); }
.s-site a.s-contact__way:hover { border-color: var(--s-accent); color: var(--s-ink); }
.s-site .s-contact__way--primary { background: var(--s-accent); border-color: var(--s-accent); color: var(--s-on-accent); }
.s-site .s-contact__way--primary:hover { background: var(--s-accent-hover); color: var(--s-on-accent); }
.s-contact__way--primary > .bi, .s-contact__way--primary strong { color: var(--s-on-accent-muted); }

/* ── Profiles and the gift claim (user_profile, partner_profile, gift_redeem) ── */

.s-partner { padding-bottom: 72px; }
.s-partner__cover { height: 240px; overflow: hidden; background: var(--s-accent-soft); }
.s-partner__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-partner__cover--plain { height: 140px; }
.s-partner__head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
/* Only the mark overlaps the cover; the name sits below it, on the page. */
.s-partner__head > .s-partner__logo { margin-top: -56px; }
.s-partner__head > div { padding-top: 16px; }
.s-partner__head h1 { margin-bottom: 6px; }
.s-partner__logo { width: 112px; height: 112px; flex-shrink: 0; border-radius: var(--s-radius); border: 4px solid var(--s-bg); background: var(--s-surface); object-fit: contain; box-shadow: var(--s-shadow); }
.s-partner__logo--initial { display: inline-flex; align-items: center; justify-content: center; background: var(--s-accent); color: var(--s-on-accent); font-family: var(--s-font-display); font-size: 44px; font-weight: 700; }
.s-partner__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 991.98px) { .s-partner__layout { grid-template-columns: minmax(0, 1fr); } .s-partner__head { flex-direction: column; gap: 8px; } .s-partner__head > div { padding-top: 0; } }
.s-partner__main { display: flex; flex-direction: column; gap: 32px; }
.s-partner__more { align-self: center; }
.s-partner__more[hidden] { display: none; }
.s-partner__about { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
.s-partner__about p { margin: 0; }
@media (max-width: 991.98px) { .s-partner__about { position: static; } }

.s-gift { padding-top: 40px; padding-bottom: 72px; }
.s-gift__card { max-width: 820px; margin: 0 auto; overflow: hidden; border: 1px solid var(--s-line); border-radius: var(--s-radius-lg); background: var(--s-surface); box-shadow: var(--s-shadow); }
.s-gift__image { width: 100%; aspect-ratio: 16 / 7; height: auto; object-fit: cover; display: block; background: var(--s-tint-3); }
.s-gift__body { padding: 32px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
@media (max-width: 575.98px) { .s-gift__body { padding: 22px 18px; } }
.s-gift__body > p { margin: 0; }
.s-gift__program { display: block; color: var(--s-accent); }
.s-gift__message { margin: 0; padding: 14px 18px; border-left: 4px solid var(--s-highlight); background: var(--s-bg); border-radius: 0 var(--s-radius-sm) var(--s-radius-sm) 0; font-style: italic; }
.s-gift__dates { margin: 0; padding: 0; border: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.s-gift__dates legend { float: none; margin-bottom: 4px; }
.s-gift__dates p { margin: 0; }
.s-gift [data-ek-claim-error][hidden] { display: none; }

/* ── Admission application (apply.php) ─────────────────────────────────────── */

.s-apply .s-crumbs { max-width: 820px; margin: 0 auto 16px; }
.s-apply__form, .s-apply__docs-field { width: 100%; }
.s-apply__docs-field { margin: 0; padding: 0; border: 0; }
.s-apply__docs-field legend { float: none; margin-bottom: 4px; }
.s-apply__docs { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.s-apply__doc { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--s-line); border-radius: var(--s-radius-sm); background: var(--s-bg); }
.s-apply__doc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.s-apply__upload { display: flex; flex-wrap: wrap; gap: 8px; }
.s-apply__upload .form-control { flex: 1 1 220px; }
.s-apply__result { margin: 0; font-size: 14px; font-weight: 600; }
.s-apply__result--error { color: var(--s-ink); }
.s-apply__result[hidden] { display: none; }
.s-apply__withdraw { width: 100%; padding-top: 16px; border-top: 1px solid var(--s-line); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.s-apply__withdraw form[hidden] { display: none; }

/* ── TV (tv.php, tv_watch_video.php) ──────────────────────────────────────── */

.s-tv { padding-top: 32px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.s-tv .s-blog__head { align-items: flex-start; }
.s-tv__thumb { position: relative; display: block; }
.s-tv__play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.s-post:hover .s-tv__play { transform: scale(1.08); }
.s-watch { background: var(--s-viewer-bg); color: var(--s-viewer-ink); padding: 24px 0 40px; }
.s-watch__stage { display: flex; flex-direction: column; gap: 14px; max-width: 1100px; }
.s-site .s-watch__back { color: var(--s-viewer-muted); }
.s-site .s-watch__title { color: var(--s-viewer-ink); margin: 0; }
.s-watch__player { border-radius: var(--s-radius); overflow: hidden; }
.s-watch__text { margin: 0; color: var(--s-viewer-muted); max-width: 760px; }
