/* Jumps Club Site: timetable, events, locations, announcement bar.
   Colours and spacing follow the Elementor kit (black #0C0B0B, red #D71832,
   light #FFF9FA) and the site's --nwd-space-* variables. */

/* No single words left hanging on their own line: headings are balanced across
   their lines, body text avoids a lone last word. Browsers that do not support
   text-wrap simply ignore it. */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.elementor-icon-box-title,
.elementor-price-table__heading,
.e-n-accordion-item-title-text {
    text-wrap: balance;
}
p, li, blockquote, figcaption,
.elementor-widget-text-editor,
.elementor-icon-box-description,
.elementor-icon-list-text,
.elementor-price-table__period {
    text-wrap: pretty;
}

/* The theme sets no body font (each Elementor widget sets its own), so anything
   this plugin prints must ask for Open Sans itself. Elementor already loads it. */
.jcs-page,
.jcs-events,
.jcs-timetable,
.jcs-locations,
.jcs-locations-list,
.jcs-announce,
.jcs-btn,
.jcs-empty {
    font-family: "Open Sans", sans-serif;
    color: #0C0B0B;
}
.jcs-page h1 {
    font-family: "Open Sans", sans-serif;
    font-size: clamp(2rem, 1.4688rem + 2.5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.2;
}
.jcs-page h2,
.jcs-page h3,
.jcs-events h3,
.jcs-locations h3,
.jcs-locations-list h3 {
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
}

.jcs-btn {
    display: inline-block;
    padding: var(--nwd-btn-padding-v-m, 0.75rem) var(--nwd-btn-padding-h-m, 1.5rem);
    border: 1px solid #D71832;
    border-radius: 5px;
    background: #D71832;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
    line-height: 1.2;
    transition: background 0.2s, color 0.2s;
}
.jcs-btn:hover,
.jcs-btn:focus {
    background: #b51429;
    border-color: #b51429;
}
.jcs-btn--outline {
    background: transparent;
    color: #D71832 !important;
}
.jcs-btn--outline:hover,
.jcs-btn--outline:focus {
    background: #D71832;
    color: #fff !important;
}
.jcs-btn--lg {
    padding: var(--nwd-btn-padding-v-l, 1rem) var(--nwd-btn-padding-h-l, 2rem);
    font-size: 1.05rem;
}
.jcs-link {
    color: #D71832;
    font-weight: 600;
}
.jcs-center {
    text-align: center;
}
.jcs-empty {
    text-align: center;
    color: #575e66;
}

/* ── Timetable ───────────────────────────────────────────────── */
.jcs-timetable__heading {
    margin: 0 0 1rem;
    font-family: "Open Sans", sans-serif;
    font-size: clamp(1.4rem, 1.145rem + 1.2vw, 2rem) !important;
    font-weight: 700;
    text-align: center;
}
.jcs-timetable {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}
.jcs-timetable__item {
    margin: 0;
    text-align: center;
}
.jcs-timetable__title {
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.15rem;
}
.jcs-timetable__img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 18px rgba(12, 11, 11, 0.12);
}
.jcs-timetable__hint {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #575e66;
}

/* On a red section the heading and hint are light. */
.jcs-timetable-wrap--red .jcs-timetable__heading,
.jcs-timetable-wrap--red .jcs-timetable__title,
.jcs-timetable-wrap--red .jcs-timetable__hint {
    color: #FFF9FA;
}

/* ── Events ──────────────────────────────────────────────────── */
.jcs-events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
    justify-content: center;
    gap: 1.5rem;
}
.jcs-event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(12, 11, 11, 0.1);
    text-align: left;
}
.jcs-event-card--past {
    opacity: 0.6;
}
.jcs-event-card__poster {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #0C0B0B;
}
.jcs-event-card__poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.jcs-event-card__noposter {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.5rem;
}
.jcs-event-card__date {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 54px;
    padding: 6px 8px;
    border-radius: 5px;
    background: #D71832;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}
.jcs-event-card__date strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
}
.jcs-event-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}
.jcs-event-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem !important;
    letter-spacing: -0.3px !important;
    line-height: 1.25 !important;
}
.jcs-event-card__title a {
    color: #0C0B0B;
    text-decoration: none;
}
.jcs-event-card__meta {
    margin: 0 0 0.75rem;
    color: #575e66;
    font-size: 0.95rem;
    line-height: 1.5;
}
.jcs-event-card__summary {
    margin: 0 0 1rem;
}
.jcs-event-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin: auto 0 0;
}

/* Event page + /events/ */
.jcs-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: var(--nwd-space-m, 4.25rem) var(--nwd-space-s, 2rem);
}
.jcs-breadcrumb {
    margin-bottom: 1.5rem;
}
.jcs-breadcrumb a {
    color: #D71832;
    font-weight: 600;
}
.jcs-event__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: var(--nwd-space-s, 2rem);
    align-items: start;
}
.jcs-event__poster img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.jcs-event__title {
    margin-top: 0;
}
.jcs-event__facts {
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: #fff;
    list-style: none;
    line-height: 1.8;
}
.jcs-event__summary {
    font-size: 1.1rem;
    font-weight: 600;
}
.jcs-event__past {
    padding: 0.75rem 1rem;
    border-left: 4px solid #D71832;
    background: #fff;
}
.jcs-events-page__header {
    max-width: 720px;
    margin: 0 auto var(--nwd-space-s, 2rem);
    text-align: center;
}
.jcs-kicker {
    margin-bottom: 0.25rem;
    color: #D71832;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Locations (same look as the original footer block) ───── */
.jcs-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem 2rem;
    font-family: "Open Sans", sans-serif;
    color: #0C0B0B;
    text-align: left;
}
.jcs-location__photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 5px;
}
/* No entrance photo: the white Jumps Club logo on a red box, the same size as a photo. */
.jcs-location__photo--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D71832;
    border-radius: inherit;
}
.jcs-location__photo--logo img {
    width: auto !important;
    height: 72% !important;
    max-width: 72%;
    object-fit: contain;
}
.jcs-location__photo--logo span {
    color: #fff;
    font-weight: 700;
}
/* On red sections a red box would disappear, so it is dark there. */
.jcs-locations--red .jcs-location__photo--logo {
    background: #0C0B0B;
}
.jcs-location__label {
    display: inline-block;
    margin-left: 0.4em;
    padding: 0.2em 0.6em;
    border-radius: 999px;
    background: #D71832;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}
.jcs-locations--red .jcs-location__label {
    background: #FFF9FA;
    color: #D71832;
}
.jcs-location__name {
    margin: 0 0 1rem;
    font-family: "Open Sans", sans-serif;
    font-size: 1.2rem !important;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    color: inherit;
}
.jcs-dots {
    margin: 0;
    padding: 0;
    list-style: none;
}
.jcs-dots li {
    position: relative;
    margin: 0 0 1em;
    padding-left: 1.1em;
    line-height: 1.5;
}
.jcs-dots li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: #D71832;
}
.jcs-dots a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}
.jcs-locations--red,
.jcs-locations--dark,
.jcs-locations--red .jcs-location__name,
.jcs-locations--dark .jcs-location__name {
    color: #FFF9FA !important;
}
.jcs-locations .jcs-dots a {
    color: inherit !important;
}
.jcs-locations--red .jcs-dots li::before {
    background: #FFF9FA;
}

/* ── Announcement bar ────────────────────────────────────────── */
.jcs-announce {
    padding: 0.6rem 1rem;
    background: #D71832;
    color: #fff !important;
    font-weight: 600;
    text-align: center;
}
.jcs-announce a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .jcs-event__grid {
        grid-template-columns: 1fr;
    }
    .jcs-page {
        padding: var(--nwd-space-s, 2rem) var(--nwd-space-xs, 1.5rem);
    }
}

/* ── Cookie Policy tables ────────────────────────────────────── */
.jcs-table-wrap {
    overflow-x: auto;
    margin: 0 0 1.5em;
    -webkit-overflow-scrolling: touch;
}
.jcs-cookie-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.95em;
    line-height: 1.5;
}
.jcs-cookie-table th,
.jcs-cookie-table td {
    padding: 0.6em 0.75em;
    border: 1px solid #e6dfe0;
    text-align: left;
    vertical-align: top;
}
.jcs-cookie-table th {
    background: #FFF9FA;
    font-weight: 700;
}
.jcs-cookie-table code {
    font-size: 0.9em;
    word-break: break-word;
    background: none;
    padding: 0;
}
/* A <button> styled like the site's Elementor buttons (beats the theme's button reset). */
button.jcs-btn[type="button"] {
    cursor: pointer;
    background-color: #D71832;
    border: 1px solid #D71832;
    border-radius: 5px;
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: var(--nwd-btn-padding-v-m, 0.75rem) var(--nwd-btn-padding-h-m, 1.5rem);
}
button.jcs-btn[type="button"]:hover,
button.jcs-btn[type="button"]:focus {
    background-color: #0C0B0B;
    border-color: #0C0B0B;
    color: #fff;
}
.jcs-cookie-settings-note {
    display: block;
    margin-top: 0.6em;
    font-size: 0.95em;
    color: #575e66;
}

/* Legal pages (Terms, Privacy, Cookies): numbered sub-headings (e.g. 3.1) a step below the section headings. */
.jcs-legal h3 {
    font-size: 24px;
    line-height: 1.3;
}
@media (max-width: 767px) {
    .jcs-legal h3 {
        font-size: 21px;
    }
}

/* ── Price cards (Home, Prices): same height in a row, buttons lined up at the bottom,
      space above each button. site.js gives the red headers in a row the same height. ── */
.elementor-widget-price-table.jcs-price-card {
    display: flex;
    flex-direction: column;
}
.elementor-widget-price-table.jcs-price-card .elementor-price-table {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.elementor-widget-price-table.jcs-price-card .elementor-price-table__header {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.elementor-widget-price-table.jcs-price-card .elementor-price-table__features-list {
    flex: 1 0 auto;
    padding-bottom: 28px;
}
.elementor-widget-price-table.jcs-price-card .elementor-price-table__period {
    margin-top: 12px;
    padding: 0 24px;
    text-wrap: balance;
}

/* Alex's class video on Home: a tall phone video, so it sits in a portrait frame.
   (Doubled classes so these win over Elementor's own video styles.) */
.e-con .elementor-widget-video.jcs-portrait-video {
    --video-aspect-ratio: 0.5577;
    max-width: 100%;   /* the width (340px) is set in Elementor */
}
.e-con .elementor-widget-video.jcs-portrait-video .elementor-wrapper {
    aspect-ratio: 464 / 832;
    border-radius: 12px;
    overflow: hidden;
    background: #0C0B0B;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}
.e-con .elementor-widget-video.jcs-portrait-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
