/* ==========================================================================
   Trainer NFC digital card — builds on the tokens and .sp-* pieces in specialists.css
   The theme sets html { font-size: 10px }, so sizes here are in px.
   ========================================================================== */

.tc-card { max-width: 480px; background: #fff; }
.tc-card__inner { position: relative; padding: 22px 18px 20px; }

/* ------------------------------------------------------------------ waves */

.tc-card__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tc-card__deco svg { position: absolute; top: 78px; left: 0; width: 100%; height: 64px; }
@media (max-width: 420px) { .tc-card__deco svg { top: 64px; height: 52px; } }

/* ------------------------------------------------------------------ brand header */

.tc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 54px;
}
.tc-head__logo { height: 52px; width: auto; max-width: 48%; object-fit: contain; }
.tc-head__brand { color: var(--sp-navy); font-weight: 900; font-size: 22px; }
.tc-head__sep { width: 2px; height: 46px; background: var(--sp-navy); opacity: .7; border-radius: 2px; }
.tc-head__nfc {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--sp-navy);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}
.tc-head__nfc-text { display: flex; flex-direction: column; }
.tc-head__nfc-text b { font-weight: 900; }
[dir="rtl"] .tc-head__nfc-text b { text-align: right; }
.tc-head__nfc svg { width: 36px; height: 36px; flex-shrink: 0; }

/* ------------------------------------------------------------------ identity */

.tc-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.tc-hero__info { flex: 1; min-width: 0; text-align: start; }
.tc-hero__photo { flex-shrink: 0; }
.tc-hero__photo .sp-avatar { --size: clamp(96px, 31vw, 172px); padding: 5px; }

.tc-hero__name {
    color: var(--sp-navy);
    font-size: 30px;
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 6px;
}
.tc-hero__title {
    color: var(--sp-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 12px;
}

/* certified pill: rosette seal (with ribbon tails) at the start, text centred */
.tc-certified {
    position: relative;
    margin: 0 0 14px;
    --seal: clamp(46px, 14vw, 68px);
    padding: 9px 14px;
    padding-inline-start: calc(var(--seal) + 6px);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd65a, var(--sp-gold));
    color: var(--sp-navy);
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 8px 18px rgba(254, 173, 4, .3);
}
.tc-certified__text { display: block; font-size: clamp(10.5px, 3.1vw, 13px); font-weight: 800; }
.tc-certified__brand { display: block; font-size: clamp(12.5px, 3.8vw, 16px); font-weight: 900; white-space: nowrap; }
.tc-certified__seal {
    position: absolute;
    inset-inline-start: 3px;
    top: 50%;
    width: var(--seal);
    height: calc(var(--seal) * 1.118);   /* 64x72 viewBox */
    /* rosette centre sits a little above the pill's middle; tails hang below it */
    transform: translateY(calc(-39% - 4px));
    filter: drop-shadow(0 3px 4px rgba(2, 25, 78, .25));
    overflow: visible;
}

.tc-hero__exp {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sp-ink);
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}
.tc-hero__exp i { font-size: 20px; color: var(--sp-navy); flex-shrink: 0; }

/* ------------------------------------------------------------------ quick actions */

.tc-actions {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}
.tc-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 104px;
    padding: 12px 6px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--sp-line);
    box-shadow: 0 8px 18px rgba(2, 25, 78, .08);
    color: var(--sp-navy);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: transform .2s var(--sp-ease), box-shadow .2s;
}
.tc-action:hover { transform: translateY(-3px); box-shadow: var(--sp-shadow-lg); color: var(--sp-navy); }
.tc-action__icon { font-size: 28px; line-height: 1; display: inline-flex; }
.tc-action__icon svg { width: 32px; height: 32px; fill: currentColor; }
.tc-action--whatsapp {
    background: linear-gradient(160deg, #22b14c, #10862f);
    border-color: transparent;
    color: #fff;
    font-size: 17px;
    box-shadow: 0 12px 22px rgba(16, 134, 47, .32);
}
.tc-action--whatsapp:hover { color: #fff; }

/* ------------------------------------------------------------------ section blocks */

.tc-block {
    border-radius: 22px;
    margin-bottom: 18px;
    overflow: hidden;
}
.tc-block__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 21px;
    font-weight: 900;
}
.tc-block__icon { width: 34px; height: 34px; flex-shrink: 0; }

.tc-block--courses {
    background: linear-gradient(135deg, var(--sp-navy-2), var(--sp-navy));
    box-shadow: 0 14px 30px rgba(2, 25, 78, .16);
}
.tc-block--courses .tc-block__head { color: #fff; padding: 14px 18px 12px; }
.tc-block--courses .tc-carousel {
    background: #fff;
    border-radius: 20px 20px 22px 22px;
    margin: 0 4px 4px;
    padding: 14px 0 12px;
}

.tc-block--reviews {
    background: var(--sp-soft);
    border: 1px solid var(--sp-line);
    padding-bottom: 4px;
}
.tc-block__head--light { color: var(--sp-navy); padding: 16px 18px 6px; }
.tc-block--reviews .tc-carousel { padding: 8px 0 12px; }

/* ------------------------------------------------------------------ carousel */

.tc-carousel { position: relative; }
.tc-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.tc-carousel__track::-webkit-scrollbar { display: none; }
.tc-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    padding: 0 46px;
    box-sizing: border-box;
}
.tc-carousel:not(:has(.tc-carousel__nav)) .tc-slide { padding: 0 14px; }

.tc-carousel__nav {
    position: absolute;
    top: calc(50% - 14px);
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--sp-line);
    background: #fff;
    color: var(--sp-navy);
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(2, 25, 78, .14);
    cursor: pointer;
    z-index: 2;
    transition: opacity .2s, transform .2s;
}
.tc-carousel__nav:hover { transform: translateY(-50%) scale(1.06); }
.tc-carousel__nav[disabled] { opacity: .35; cursor: default; transform: translateY(-50%); }
.tc-carousel__nav--prev { inset-inline-start: 6px; }
.tc-carousel__nav--next { inset-inline-end: 6px; }

.tc-carousel__dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; }
.tc-carousel__dots button {
    flex: 0 0 auto;          /* keep them round: as shrinkable flex items they turned into ovals */
    width: 9px; height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c4cbd8;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.tc-carousel__dots button[hidden] { display: none; }
/* outermost dots of the window shrink when more slides continue beyond them */
.tc-carousel__dots button.is-edge { transform: scale(.6); }
.tc-carousel__dots button[aria-current="true"] { background: var(--sp-navy); transform: scale(1.2); }

[dir="rtl"] .tc-flip { display: inline-block; transform: scaleX(-1); }

/* ------------------------------------------------------------------ course slide */

.tc-course {
    display: flex;
    align-items: stretch;
    gap: 12px;
    min-height: 150px;
}
.tc-course__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    text-align: start;
}
.tc-course__title {
    color: var(--sp-navy);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tc-course__tagline { color: var(--sp-text); font-size: 13px; margin: 0; line-height: 1.6; }
.tc-course__btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sp-gold-2), var(--sp-gold));
    color: var(--sp-navy);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(254, 173, 4, .35);
}
.tc-course__btn:hover { color: var(--sp-navy); filter: brightness(1.04); }
.tc-course__media {
    position: relative;
    flex: 0 0 40%;
    border-radius: 14px;
    overflow: hidden;
    background: var(--sp-soft);
}
.tc-course__media::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    inset-inline-start: -12px;
    width: 26px;
    background: var(--sp-gold);
    transform: skewX(-12deg);
}
[dir="ltr"] .tc-course__media::after { transform: skewX(12deg); }
.tc-course__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-course__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sp-navy-2);
    font-size: 36px;
}

/* ------------------------------------------------------------------ review slide */

.tc-review {
    margin: 0;
    background: #fff;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 8px 18px rgba(2, 25, 78, .07);
    text-align: start;
    min-height: 100px;
}
.tc-review__text {
    position: relative;
    margin: 0 0 10px;
    padding-inline-start: 28px;
    color: var(--sp-ink);
    font-size: 15px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tc-review__text::before {
    content: "\201D";
    position: absolute;
    inset-inline-start: 0;
    top: -8px;
    color: var(--sp-gold);
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    font-family: Georgia, serif;
}
.tc-review__author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sp-navy);
    font-size: 14px;
    font-weight: 800;
}
.tc-review__author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sp-gold); }

/* ------------------------------------------------------------------ membership strip */

.tc-membership {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    margin: 0 0 20px;
    padding: 14px 6px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--sp-navy-2), var(--sp-navy));
    color: #fff;
    box-shadow: 0 14px 30px rgba(2, 25, 78, .2);
}
.tc-membership__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 8px;
    min-width: 0;
}
.tc-membership__item + .tc-membership__item { border-inline-start: 1px solid rgba(255, 255, 255, .3); }
.tc-membership__icon { color: var(--sp-gold); flex-shrink: 0; display: inline-flex; }
.tc-membership__icon svg { width: 32px; height: 32px; }
.tc-membership dt { color: rgba(255, 255, 255, .85); font-size: 12px; font-weight: 700; line-height: 1.4; margin: 0 0 2px; }
.tc-membership dd { color: #fff; font-size: 15px; font-weight: 900; margin: 0; white-space: nowrap; }
[dir="rtl"] .tc-membership dd[dir="ltr"] { text-align: right; }

/* ------------------------------------------------------------------ main CTA */

.tc-cta {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 66px;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--sp-gold-2), var(--sp-gold));
    color: var(--sp-navy);
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 6px 0 #d58f00, 0 16px 30px rgba(254, 173, 4, .38);
    transition: transform .2s var(--sp-ease), box-shadow .2s;
}
.tc-cta:hover { color: var(--sp-navy); transform: translateY(-2px); }
.tc-cta:active { transform: translateY(3px); box-shadow: 0 3px 0 #d58f00, 0 10px 20px rgba(254, 173, 4, .3); }
.tc-cta svg { width: 58px; height: 36px; flex-shrink: 0; }

/* ------------------------------------------------------------------ small phones */

@media (max-width: 575px) {
    .tc-page.sp-page--bare { padding-top: 0; padding-bottom: 0; }
    .tc-page > .container { padding-left: 0; padding-right: 0; }
    .tc-card { border-radius: 0; box-shadow: none; min-height: 100vh; }
}
@media (max-width: 420px) {
    .tc-card__inner { padding: 18px 14px 16px; }
    .tc-head { margin-bottom: 44px; }
    .tc-head__logo { height: 42px; }
    .tc-head__nfc { font-size: 14px; }
    .tc-head__nfc svg { width: 28px; height: 28px; }
    .tc-hero { gap: 10px; }
    .tc-hero__name { font-size: 24px; }
    .tc-hero__title { font-size: 15px; }
    .tc-certified { padding-inline-end: 8px; }
    .tc-hero__exp { font-size: 13px; }
    .tc-actions { gap: 7px; }
    .tc-action { min-height: 90px; font-size: 12px; border-radius: 15px; }
    .tc-action--whatsapp { font-size: 15px; }
    .tc-action__icon { font-size: 24px; }
    .tc-action__icon svg { width: 28px; height: 28px; }
    .tc-slide { padding: 0 40px; }
    .tc-course { min-height: 130px; gap: 10px; }
    .tc-course__title { font-size: 16px; }
    .tc-course__btn { padding: 7px 12px; font-size: 12px; }
    .tc-membership { padding: 12px 2px; }
    .tc-membership__item { flex-direction: column; text-align: center; gap: 4px; padding: 2px 4px; }
    .tc-membership__icon svg { width: 26px; height: 26px; }
    .tc-membership dd { font-size: 13px; }
    [dir="rtl"] .tc-membership dd[dir="ltr"] { text-align: center; }
    .tc-cta { font-size: 18px; min-height: 58px; }
    .tc-cta svg { width: 46px; height: 30px; }
}
@media (max-width: 340px) {
    .tc-course { flex-direction: column-reverse; }
    .tc-course__media { flex-basis: auto; height: 120px; }
    .tc-course__media::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .tc-carousel__track { scroll-behavior: auto; }
    .tc-action, .tc-cta, .tc-carousel__nav { transition: none; }
}

/* the theme's tall default line-height makes wrapped labels look loose */
.tc-hero__exp, .tc-course__btn, .tc-cta, .tc-action__label, .tc-head__nfc-text { line-height: 1.35; }
.tc-review__text { line-height: 1.7; }
