/*
 * SENZA Formations - public training page (face-to-face, distance and city landing pages).
 *
 * Page level rules of the long training page, loaded right after design-system.css. The two column
 * layout, the hero, the sections without a shared component and the restyling of the live components
 * embedded in the page live here. Every other piece is rendered by a Sz component and is not restyled.
 *
 * main.css turns every hovered <a> and <button> yellow at 0-1-1 (see the rule in
 * design-system.css): any classed link declared below pins its own hover colour.
 */

/* =============================================================
   Layout
   ============================================================= */

/*
 * The section-nav controller writes the measured height of the fixed theme header into
 * --section-nav-header-height; 90px is the value measured on desktop, used until the header is fixed.
 * The navigation bar sticks right under the header, and the sidebar 16px under the bar.
 */
.sz-training {
    --sz-training-nav-height: 64px;
    --sz-training-sticky-top: calc(var(--section-nav-header-height, 90px) + var(--sz-training-nav-height) + 16px);
}

.sz-training__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
    align-items: start;
    padding-top: 44px;
    padding-bottom: 72px;
}

.sz-training__main {
    min-width: 0;
}

/* The layout padding already spaces the last section from the closing banner (72px in the mock-up). */
.sz-training .sz-content > section:last-child {
    margin-bottom: 0;
}

.sz-training__closing {
    padding-bottom: 80px;
}

@media (max-width: 1199px) {
    .sz-training__layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 36px;
    }
}

@media (max-width: 991px) {
    .sz-training__layout {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 28px;
    }
}

/* =============================================================
   Hero
   ============================================================= */

.sz-training .sz-training-hero {
    padding: 22px 0 52px;
}

.sz-training-hero__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 40px;
    font-size: 13px;
    color: var(--tg-common-color-gray-3);
}

.sz-training-hero__breadcrumb-link {
    font-weight: var(--tg-fw-semi-bold);
    color: var(--tg-heading-color);
}

.sz-training-hero__breadcrumb-link:hover,
.sz-training-hero__breadcrumb-link:focus-visible {
    color: var(--tg-theme-primary);
}

.sz-training-hero__breadcrumb-current {
    font-weight: var(--tg-fw-semi-bold);
    color: var(--tg-theme-primary);
}

.sz-training-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 48px;
    align-items: center;
}

.sz-training-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

/* The badges of the mock-up are inline pills that keep the body line height and letter spacing,
   where the socle badge tightens both. */
.sz-training .sz-badge {
    line-height: var(--tg-body-line-height);
    letter-spacing: normal;
}

/* The hero badges of the mock-up are also larger than the socle ones. */
.sz-training .sz-training-hero__badges .sz-badge {
    padding: 6px 15px;
    font-size: 12.5px;
}

.sz-training .sz-training-hero__title {
    max-width: 680px;
    margin: 0 0 16px;
    font-size: clamp(32px, 3.9vw, 50px);
    line-height: 1.08;
}

.sz-training-hero__title-accent {
    color: var(--tg-theme-primary);
}

/* Lead paragraph of the mock-up: body font, grey, 17.5px. */
.sz-training .sz-training-hero__subtitle {
    max-width: 560px;
    margin: 0 0 26px;
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--tg-body-color);
}

.sz-training-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.sz-training-hero__aside {
    position: relative;
}

.sz-training-hero__picture {
    height: 210px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 8px 10px 0 0 var(--tg-common-color-blue);
    transform: rotate(-1.5deg);
}

.sz-training-hero__picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sz-training-hero__offer {
    position: relative;
    z-index: 2;
    padding: 20px 22px;
    border: 1px solid var(--tg-border-3);
    border-radius: var(--sz-radius-card);
    background: var(--tg-common-color-white);
    box-shadow: var(--sz-shadow-card);
}

.sz-training-hero__picture + .sz-training-hero__offer {
    margin: -28px 8px 0 24px;
}

.sz-training-hero__offer-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sz-training-hero__offer-price {
    font-family: var(--tg-heading-font-family);
    font-size: 24px;
    font-weight: var(--tg-fw-extra-bold);
    color: var(--tg-heading-color);
}

.sz-training .sz-training-hero__offer-list {
    gap: 9px;
    margin-bottom: 16px;
}

.sz-training .sz-training-hero__offer-list li {
    font-size: 13px;
    font-weight: var(--tg-fw-medium);
    line-height: 1.45;
    color: var(--tg-heading-color);
}

/* The mock-up gives this call to action a tighter padding and a 4px 5px shadow. */
.sz-training .sz-training-hero__offer .sz-btn {
    padding: 14px;
    box-shadow: 4px 5px 0 0 var(--tg-common-color-blue);
}

.sz-training .sz-training-hero__offer .sz-btn:hover,
.sz-training .sz-training-hero__offer .sz-btn:focus-visible {
    box-shadow: 0 0 0 0 var(--tg-common-color-blue);
}

/* The sidebar follows the hero on small screens and carries the same offer. */
@media (max-width: 991px) {
    .sz-training-hero__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sz-training-hero__aside {
        display: none;
    }

    .sz-training-hero__breadcrumb {
        margin-bottom: 24px;
    }
}

/*
 * Button labels capitalised as in the mock-up (".btn { text-transform: capitalize }"), on the training
 * page only: the design system leaves it out on purpose (see .sz-btn in design-system.css), and the
 * trainer page shares that sheet.
 */
.sz-training .sz-btn {
    text-transform: capitalize;
}

/* =============================================================
   Content helpers
   ============================================================= */

/* Rich text edited in the back office: its paragraphs and lists keep the rhythm of the section. */
.sz-training-rich > :last-child {
    margin-bottom: 0;
}

.sz-training-rich ul,
.sz-training-rich ol {
    margin: 0 0 12px;
    padding-left: 20px;
}

.sz-training-rich li {
    margin-bottom: 4px;
}

.sz-training .sz-training-rich p {
    font-size: inherit;
}

/* The summary rows hold full sentences: no minimum width forcing a horizontal scroll on mobile. */
.sz-training .sz-training-summary {
    min-width: 0;
}

.sz-training-video {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: var(--sz-radius-card);
}

.sz-training-video iframe {
    display: block;
    width: 100%;
}

/* =============================================================
   Programme, objectives and attested skills
   ============================================================= */

.sz-training .sz-training-program__intro {
    margin-bottom: 20px;
}

.sz-training-program__download {
    margin-top: 18px;
}

/* The module content is rich text: its lists take the unbulleted look of the mock-up modules. */
.sz-training .sz-accordion__body .sz-training-rich ul {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sz-training .sz-accordion__body .sz-training-rich li {
    margin: 0;
    padding-left: 14px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--tg-body-color);
}

/* Bootstrap makes buttons inherit the 1.75 body line height; the mock-up triggers keep the normal one. */
.sz-training .sz-accordion__trigger,
.sz-training .sz-faq__trigger {
    line-height: 1.5;
}

/* Unlike the socle accordion, the programme of the mock-up rules off its last module too. */
.sz-training #programme .sz-accordion__item:last-child {
    border-bottom: 1px solid var(--tg-border-3);
}

.sz-training-objectives {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.sz-training-objectives__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sz-training-objectives__bullet {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tg-theme-secondary);
    color: var(--tg-heading-color);
    box-shadow: 2px 3px 0 0 rgba(5, 0, 113, 0.15);
}

.sz-training-objectives__text {
    padding-top: 4px;
    font-family: var(--tg-heading-font-family);
    font-size: 14.5px;
    font-weight: var(--tg-fw-semi-bold);
    line-height: 1.5;
    color: var(--tg-heading-color);
}

.sz-training-skills {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.sz-training-skills__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 24px;
    border: 1px solid var(--tg-border-3);
    border-radius: 14px;
}

.sz-training-skills__number {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--tg-theme-primary);
    font-family: var(--tg-heading-font-family);
    font-size: 14px;
    font-weight: var(--tg-fw-extra-bold);
    color: var(--tg-common-color-white);
}

.sz-training-skills__body {
    min-width: 0;
    font-size: 14.5px;
    line-height: 1.7;
}

.sz-training .sz-training-skills__title {
    margin: 0 0 8px;
    font-size: 16.5px;
}

/* =============================================================
   Training place
   ============================================================= */

.sz-training-place__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.sz-training-place__picture {
    display: block;
    height: 300px;
    overflow: hidden;
    border-radius: 14px;
}

.sz-training-place__picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Map card of the mock-up: a plan above a white band carrying the address, as high as the pictures. */
.sz-training-place__card {
    display: flex;
    flex-direction: column;
    height: 300px;
    overflow: hidden;
    border: 1px solid var(--tg-border-3);
    border-radius: 14px;
    background: var(--tg-common-color-white);
}

.sz-training-place__plan {
    flex: 1;
    display: block;
    min-height: 0;
}

.sz-training-place__plan svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sz-training-place__card-body {
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    border-top: 1px solid var(--tg-border-3);
    background: var(--tg-common-color-white);
}

.sz-training-place__name {
    font-family: var(--tg-heading-font-family);
    font-size: 15px;
    font-weight: var(--tg-fw-extra-bold);
    letter-spacing: 0.02em;
    color: var(--tg-heading-color);
}

.sz-training-place__address {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--tg-common-color-gray-3);
}

.sz-training-place__phone {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    font-size: 13.5px;
    font-weight: var(--tg-fw-bold);
    color: var(--tg-theme-primary);
}

.sz-training-place__phone:hover,
.sz-training-place__phone:focus-visible {
    color: var(--tg-heading-color);
}

.sz-training .sz-training-place__map {
    margin-top: 12px;
    box-shadow: 3px 4px 0 0 var(--tg-common-color-blue);
}

.sz-training-place__details {
    margin-bottom: 24px;
    padding: 22px 24px;
    border: 1px solid var(--tg-border-3);
    border-radius: var(--sz-radius-card);
}

.sz-training .sz-training-place__description {
    margin: 0 0 20px;
}

.sz-training-place__tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sz-training-place__tags-title {
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: var(--tg-fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tg-common-color-gray-3);
}

.sz-training-place__tag-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sz-training-place__tag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: var(--tg-fw-medium);
    color: var(--tg-heading-color);
}

.sz-training-place__tag::before {
    content: "\2713";
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: var(--tg-fw-extra-bold);
}

.sz-training-place__tag--information::before {
    background: rgba(18, 187, 106, 0.14);
    color: var(--tg-common-color-green);
}

.sz-training-place__tag--amenity::before {
    background: rgba(87, 81, 225, 0.12);
    color: var(--tg-theme-primary);
}

.sz-training-place__notice,
.sz-training-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 12px;
}

.sz-training-place__notice svg,
.sz-training-notice svg {
    flex: none;
    margin-top: 2px;
}

.sz-training .sz-training-place__notice p,
.sz-training .sz-training-notice p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
}

.sz-training-place__notice:first-child {
    margin-top: 0;
}

.sz-training-place__notice {
    border: 1px solid #fde68a;
    background: #fef3c7;
    color: #92400e;
}

.sz-training .sz-training-place__notice p {
    color: #78350f;
}

.sz-training-notice {
    margin: 0 0 18px;
    border: 1px solid rgba(87, 81, 225, 0.2);
    background: rgba(87, 81, 225, 0.06);
    color: var(--tg-theme-primary);
}

.sz-training .sz-training-notice p {
    color: var(--tg-heading-color);
}

/* Pills of the mock-up: slightly larger than the socle outline badge, with the body line height. */
.sz-training .sz-training-place__zones .sz-badge {
    padding: 6px 14px;
    font-size: 13px;
}

.sz-training-place__zones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 575px) {
    .sz-training-place__tags {
        grid-template-columns: 1fr;
    }

    .sz-training-place__picture {
        height: 220px;
    }
}

/* =============================================================
   Sessions
   ============================================================= */

.sz-training-place-search {
    margin-bottom: 18px;
}

/* Same room under the heading when the page resolves its place and renders no place selector. */
.sz-training h3 + .sz-training-notice {
    margin-top: 18px;
}

.sz-training-place-search__label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--tg-heading-font-family);
    font-size: 14px;
    font-weight: var(--tg-fw-semi-bold);
    color: var(--tg-heading-color);
}

/* main.css styles every select of the theme: the selector keeps the rounded field of the design system. */
.sz-training .sz-training-place-search__select {
    width: 100%;
    max-width: 420px;
    height: 50px;
    padding: 0 20px;
    border: 1px solid var(--tg-border-1);
    border-radius: var(--sz-radius-pill);
    background-color: var(--tg-common-color-white);
    font-size: 15px;
    color: var(--tg-heading-color);
}

.sz-training .sz-training-sessions__table {
    min-width: 600px;
}

/* The first column holds the date, not a row label: the design system width of 32% is kept. */
.sz-training-sessions__table td {
    vertical-align: middle;
}

.sz-training .sz-training-sessions__heading {
    margin-top: 18px;
}

.sz-training .sz-training-sessions__heading + .sz-tblwrap {
    margin-top: 10px;
}

.sz-training .sz-training-sessions__heading--distance {
    margin-top: 28px;
}

.sz-training-sessions__status--full {
    font-weight: var(--tg-fw-bold);
    color: var(--tg-common-color-gray-3);
}

.sz-training-sessions__status--available {
    font-weight: var(--tg-fw-bold);
    color: var(--tg-common-color-green);
}

.sz-training-sessions__register-link {
    margin-left: 10px;
    font-family: var(--tg-heading-font-family);
    font-size: 13px;
    font-weight: var(--tg-fw-semi-bold);
    white-space: nowrap;
    color: var(--tg-theme-primary);
}

.sz-training-sessions__register-link:hover,
.sz-training-sessions__register-link:focus-visible {
    color: var(--tg-heading-color);
}

/* The closing row is a note, not a row label: it drops the weight of the first column. */
.sz-training .sz-tbl .sz-training-sessions__to-agree {
    font-size: 13px;
    font-weight: var(--tg-fw-regular);
    color: var(--tg-common-color-gray-3);
}

.sz-training .sz-training-sessions__register {
    box-shadow: 2px 3px 0 0 var(--tg-common-color-blue);
}

.sz-training .sz-training-sessions__note {
    margin: 12px 0 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--tg-common-color-gray-2);
    font-size: 13.5px;
    line-height: 1.65;
}

.sz-training-sessions__action {
    margin-top: 18px;
}

/* =============================================================
   Pricing and certification
   ============================================================= */

.sz-training .sz-training-pricing,
.sz-training .sz-training-certification {
    min-width: 0;
}

.sz-training-financing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.sz-training-financing__card {
    padding: 22px;
    border-radius: 14px;
    background: var(--tg-common-color-gray-2);
}

.sz-training-financing__card--dark {
    background: var(--tg-common-color-black-2);
    color: rgba(255, 255, 255, 0.82);
}

.sz-training-financing__badge {
    margin-bottom: 12px;
    text-transform: uppercase;
}

@media (max-width: 575px) {
    .sz-training-financing {
        grid-template-columns: 1fr;
    }
}

.sz-training .sz-training-financing__text,
.sz-training .sz-training-financing__text p {
    font-size: 14px;
    line-height: 1.65;
}

.sz-training .sz-training-financing__card--dark .sz-training-financing__text,
.sz-training .sz-training-financing__card--dark .sz-training-financing__text p {
    color: var(--tg-common-color-white);
}

.sz-training-certification__link {
    font-weight: var(--tg-fw-semi-bold);
    color: var(--tg-theme-primary);
    word-break: break-word;
}

.sz-training-certification__link:hover,
.sz-training-certification__link:focus-visible {
    color: var(--tg-heading-color);
}

.sz-training-more__text {
    line-height: 1.6;
}

/* Collapsed: the first line only. The rich text holds block elements, so the clamp is backed by a
   height limit of one line. */
.sz-training-more:not([data-show-more-expanded-value="true"]) .sz-training-more__text {
    display: -webkit-box;
    max-height: 1.6em;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.sz-training-more:not([data-show-more-expanded-value="true"]) .sz-training-more__text > * {
    margin-bottom: 0;
}

.sz-training .sz-training-more__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--tg-heading-font-family);
    font-size: 12.5px;
    font-weight: var(--tg-fw-semi-bold);
    line-height: 1.5;
    color: var(--tg-theme-primary);
}

.sz-training .sz-training-more__toggle:hover,
.sz-training .sz-training-more__toggle:focus-visible {
    color: var(--tg-heading-color);
}

.sz-training-more__toggle::before {
    content: "";
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid currentColor;
    transition: transform 0.2s ease;
}

.sz-training-more__toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

/* =============================================================
   Duration, prerequisites and admission
   ============================================================= */

.sz-training .sz-training-highlight {
    margin: 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--tg-common-color-gray-2);
}

.sz-training-mail {
    display: inline-block;
    height: 1.2em;
    width: auto;
    vertical-align: middle;
}

.sz-training-follow-up {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.sz-training-follow-up__item {
    padding: 16px 18px;
    border: 1px solid var(--tg-border-3);
    border-radius: 12px;
}

.sz-training-follow-up__title {
    margin-bottom: 6px;
    font-family: var(--tg-heading-font-family);
    font-size: 14px;
    font-weight: var(--tg-fw-bold);
    color: var(--tg-heading-color);
}

.sz-training .sz-training-follow-up__text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
}

/* Second group of the registration section, set apart like a section of its own in the mock-up. */
.sz-training .sz-training-group-title {
    margin-top: 44px;
    padding-top: 40px;
    border-top: 1px solid var(--tg-border-3);
}

.sz-training .sz-training-admission__closing {
    margin-top: 16px;
}

.sz-training-registration {
    margin-top: 28px;
    padding: 28px 30px;
    border-radius: var(--sz-radius-card);
    background: var(--tg-common-color-gray-2);
}

.sz-training .sz-training-registration__title {
    margin-top: 0;
    font-size: 19px;
}

.sz-training-registration__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
    padding: 0;
    list-style: none;
}

.sz-training-registration__step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: var(--tg-common-color-white);
}

.sz-training-registration__step-number {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--tg-theme-primary);
    font-family: var(--tg-heading-font-family);
    font-weight: var(--tg-fw-bold);
    color: var(--tg-common-color-white);
}

.sz-training-registration__step-title {
    margin-bottom: 4px;
    font-family: var(--tg-heading-font-family);
    font-size: 14.5px;
    font-weight: var(--tg-fw-semi-bold);
    color: var(--tg-heading-color);
}

.sz-training .sz-training-registration__step-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
}

/* Fields of the theme form restyled as the design system inputs: 56px pills. */
.sz-training-registration .contact-form-wrap .form-grp input,
.sz-training-registration .contact-form-wrap .form-grp textarea {
    height: 56px;
    padding: 0 24px;
    border: 1px solid var(--tg-border-1);
    border-radius: var(--sz-radius-pill);
    font-family: var(--tg-body-font-family);
    font-size: 15px;
    color: var(--tg-heading-color);
}

.sz-training-registration .contact-form-wrap .form-grp textarea {
    height: auto;
    min-height: 140px;
    max-height: 230px;
    padding: 16px 24px;
    border-radius: 24px;
}

.sz-training-registration .contact-form-wrap .form-grp input:focus,
.sz-training-registration .contact-form-wrap .form-grp textarea:focus {
    border-color: var(--tg-theme-primary);
    box-shadow: 0 0 0 4px rgba(87, 81, 225, 0.12);
}

.sz-training-registration .contact-form-wrap .form-grp input::placeholder,
.sz-training-registration .contact-form-wrap .form-grp textarea::placeholder {
    font-size: 15px;
    color: var(--tg-common-color-gray-3);
    opacity: 1;
}

/* Primary call to action of the mock-up, with its 4px 5px shadow. */
.sz-training .sz-training-contact__submit {
    box-shadow: 4px 5px 0 0 var(--tg-common-color-blue);
}

.sz-training .sz-training-contact__submit:hover,
.sz-training .sz-training-contact__submit:focus-visible {
    box-shadow: 0 0 0 0 var(--tg-common-color-blue);
}

/* Same reset as the former contact tab gave to the theme form (main.css, #Contact-tab-pane). */
.sz-training .contact-form-wrap {
    padding: 0;
    border: none;
    border-radius: var(--sz-radius-card);
    background-color: transparent;
}

@media (max-width: 575px) {
    .sz-training-registration {
        padding: 22px 18px;
    }
}

/* =============================================================
   Trainers
   ============================================================= */

.sz-training-trainers {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.sz-training-trainer {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--tg-border-3);
    border-radius: 14px;
    background: var(--tg-common-color-white);
}

.sz-training-trainer__photo {
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 3px 4px 0 0 var(--tg-common-color-blue);
}

.sz-training-trainer__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sz-training-trainer__identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.sz-training .sz-training-trainer__name {
    margin: 0;
    font-size: 17px;
}

.sz-training-trainer__certified {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--tg-common-color-green);
    color: var(--tg-common-color-white);
}

.sz-training-trainer__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--tg-common-color-gray-3);
}

/* Level colours of the mock-up: navy for the ambassadors, cyan for the experts. */
.sz-training-trainer__level--level_4 {
    background: var(--tg-common-color-black-2);
}

.sz-training-trainer__level--level_3 {
    background: var(--tg-common-color-cyan);
}

.sz-training-trainer__meta {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.sz-training-trainer__meta-label {
    display: block;
    margin-bottom: 2px;
    font-size: 10.5px;
    font-weight: var(--tg-fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tg-common-color-gray-3);
}

.sz-training-trainer__meta-value {
    font-weight: var(--tg-fw-medium);
    color: var(--tg-heading-color);
}

.sz-training-trainer__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sz-training-trainer__skill {
    padding: 4px 11px;
    border-radius: 7px;
    background: rgba(87, 81, 225, 0.09);
    font-size: 12px;
    font-weight: var(--tg-fw-semi-bold);
    line-height: 1.75;
    color: var(--tg-theme-primary);
}

.sz-training .sz-training-trainer__profile {
    margin-top: 14px;
}

.sz-training-trainer__rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--tg-fw-semi-bold);
    color: var(--tg-heading-color);
}

/* =============================================================
   Reviews
   ============================================================= */

.sz-training-stars {
    display: inline-flex;
    gap: 1px;
    letter-spacing: 1px;
    color: var(--tg-theme-secondary);
}

.sz-training-stars__star--off {
    color: var(--tg-border-1);
}

.sz-training-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 28px 30px;
    border-radius: var(--sz-radius-card);
    color: rgba(255, 255, 255, 0.82);
}

.sz-training-rating__value {
    font-family: var(--tg-heading-font-family);
    font-size: 26px;
    font-weight: var(--tg-fw-extra-bold);
    line-height: 1;
    color: var(--tg-common-color-white);
}

.sz-training-rating .sz-training-stars__star--off {
    color: rgba(255, 255, 255, 0.25);
}

.sz-training-rating__count {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.sz-training-rating__distribution {
    display: flex;
    flex: 1 1 240px;
    flex-direction: column;
    gap: 6px;
    max-width: 320px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.sz-training-rating__row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.82);
}

.sz-training-rating__star {
    white-space: nowrap;
}

.sz-training-rating__bar {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
}

.sz-training-rating__fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: var(--tg-theme-secondary);
}

.sz-training-rating__row-count {
    text-align: right;
}

.sz-training-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.sz-training-review {
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    border: 1px solid var(--tg-border-3);
    border-radius: 14px;
    background: var(--tg-common-color-white);
}

/* "hidden" must win over the flex display above until the visitor expands the list. */
.sz-training-review[hidden] {
    display: none;
}

.sz-training-review__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.sz-training-review__source {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: var(--tg-fw-bold);
    line-height: 1.4;
}

.sz-training-review__source--google {
    background: var(--tg-common-color-gray-2);
    color: var(--tg-heading-color);
}

.sz-training-review__source--digiforma {
    background: rgba(87, 81, 225, 0.09);
    color: var(--tg-theme-primary);
}

.sz-training-review__source-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    border-radius: 4px;
    background: var(--tg-theme-primary);
    font-family: var(--tg-heading-font-family);
    font-size: 9px;
    font-weight: var(--tg-fw-extra-bold);
    line-height: 1;
    color: var(--tg-common-color-white);
}

.sz-training-review__source--trustpilot {
    background: rgba(0, 182, 122, 0.12);
    color: #00754f;
}

.sz-training-review__body {
    margin-bottom: 14px;
}

.sz-training .sz-training-review__comment {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--tg-heading-color);
}

/* Collapsed: five lines at most, the rest of the review is unfolded by the clamped-text controller. */
.sz-training-review__body:not([data-clamped-text-expanded-value="true"]) .sz-training-review__comment {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.sz-training .sz-training-review__comment-toggle {
    padding: 4px 0 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--tg-heading-font-family);
    font-size: 12.5px;
    font-weight: var(--tg-fw-semi-bold);
    line-height: 1.5;
    color: var(--tg-theme-primary);
}

.sz-training .sz-training-review__comment-toggle:hover,
.sz-training .sz-training-review__comment-toggle:focus-visible {
    color: var(--tg-heading-color);
}

/* The theme styles buttons: "hidden" must win until the clamp is known to cut the text. */
.sz-training .sz-training-review__comment-toggle[hidden] {
    display: none;
}

.sz-training-review__author {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--tg-common-color-gray-3);
}

.sz-training-review__author strong {
    font-size: 13px;
    color: var(--tg-heading-color);
}

.sz-training-reviews__more {
    margin-top: 20px;
    text-align: center;
}

/* Neutral pill of the mock-up, with a primary chevron that turns over once the list is expanded. */
.sz-training .sz-training-reviews__toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    border: 1px solid var(--tg-border-1);
    border-radius: 999px;
    background: none;
    cursor: pointer;
    font-family: var(--tg-heading-font-family);
    font-size: 14px;
    font-weight: var(--tg-fw-semi-bold);
    line-height: 1.5;
    color: var(--tg-heading-color);
}

.sz-training .sz-training-reviews__toggle:hover,
.sz-training .sz-training-reviews__toggle:focus-visible {
    border-color: var(--tg-theme-primary);
    color: var(--tg-heading-color);
}

.sz-training-reviews__toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 2.5px solid var(--tg-theme-primary);
    border-bottom: 2.5px solid var(--tg-theme-primary);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.sz-training-reviews__toggle[aria-expanded="true"]::after {
    margin-top: 4px;
    transform: rotate(225deg);
}

.sz-training-reviews__widget {
    margin-top: 28px;
}

@media (max-width: 575px) {
    .sz-training-trainer {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =============================================================
   Related trainings
   ============================================================= */

.sz-training .sz-training-related__intro {
    margin-bottom: 18px;
}

/* =============================================================
   Sticky sidebar and mobile action bar
   ============================================================= */

/* Stretched over the whole row, so the price card inside has room to stick while the page scrolls. */
.sz-training__sidebar {
    align-self: stretch;
}

.sz-training .sz-training-sidebar {
    top: var(--sz-training-sticky-top);
}

/* Long labels, such as the CPF one, wrap inside the card rather than overflowing it. */
.sz-training .sz-training-sidebar .sz-btn {
    white-space: normal;
}

/* Footnote logos of the mock-up: 120px wide, 8px radius, 18px below the actions. */
.sz-training-sidebar__logos {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.sz-training-sidebar__logos img {
    width: 120px;
    max-width: 100%;
    height: auto;
    border-radius: var(--sz-radius-sm);
}

@media (max-width: 991px) {
    /* Right after the hero, where the price card of the hero is hidden. */
    .sz-training__sidebar {
        order: -1;
        align-self: start;
    }
}

@media (max-width: 767.98px) {
    /* Keeps the end of the page reachable above the fixed action bar. */
    .sz-training .sz-training__closing {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
}

/* =============================================================
   Section navigation
   ============================================================= */

/*
 * Scroll anchoring off for this page only. When the theme fixes its header, the browser reacts to the
 * header leaving the page flow before the section-nav placeholder takes over its height, and shifts
 * the scroll position in the middle of a smooth scroll (measured on the trainer page).
 */
html {
    overflow-anchor: none;
}

/* Native anchor fallback without JavaScript: header plus navigation bar, with the gap of the controller. */
.sz-training__main [id] {
    scroll-margin-top: calc(var(--section-nav-header-height, 90px) + var(--sz-training-nav-height) + 8px);
}

/* Sections and in-page link targets receive the focus when reached from a link. */
.sz-training .sz-content > section:focus:not(:focus-visible),
.sz-training [tabindex="-1"]:focus:not(:focus-visible) {
    outline: none;
}

/* Full width band right under the hero, sticking right against the header: its white background hides
   the content scrolling under it. */
.sz-training-nav {
    position: sticky;
    top: var(--section-nav-header-height, 90px);
    z-index: 5;
    border-bottom: 1px solid var(--tg-border-3);
    background: var(--tg-common-color-white);
}

.sz-training-nav__links {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sz-training-nav__links::-webkit-scrollbar {
    display: none;
}

.sz-training-nav__link {
    flex: none;
    padding: 18px 2px;
    border-bottom: 3px solid transparent;
    font-family: var(--tg-heading-font-family);
    font-size: 14px;
    font-weight: var(--tg-fw-semi-bold);
    white-space: nowrap;
    color: var(--tg-heading-color);
    transition: all 0.2s ease;
}

.sz-training-nav__link:hover,
.sz-training-nav__link:focus-visible {
    color: var(--tg-theme-primary);
}

.sz-training-nav__link--active,
.sz-training-nav__link--active:hover,
.sz-training-nav__link--active:focus-visible {
    border-bottom-color: var(--tg-theme-primary);
    color: var(--tg-theme-primary);
}

/* The tabs overflow on small screens: a fade on the right edge tells that the bar scrolls. */
@media (max-width: 991px) {
    .sz-training-nav::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 32px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--tg-common-color-white));
        pointer-events: none;
    }

    /* Lets the last tab scroll out of the fade. */
    .sz-training-nav__links {
        padding-right: 40px;
    }
}

@media (max-width: 575px) {
    .sz-training-nav__links {
        gap: 20px;
    }
}
