/* ===== Video Tabs Section ===== */

/* ── Section root ──────────────────────────────────────────────── */
.video-tabs {
    position: relative;
}

/* ── Background variants (tabs body block) ─────────────────────── */
.video-tabs--dark      { --vt-body-bg: var(--color-green-400, var(--text-dark)); }
.video-tabs--dark-pink { --vt-body-bg: var(--color-pink-700, var(--dark-pink)); }
.video-tabs--teal      { --vt-body-bg: var(--color-blue-100, var(--color-blue-100)); }

/* ── Section header ────────────────────────────────────────────── */
.video-tabs__header {
    padding-top: 4rem;
    padding-bottom: 0;
}

.video-tabs__header-container {
    padding-left: 1rem;
    padding-right: 1rem;
}

.video-tabs__header-inner {
    max-width: 48rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Label badge */
.video-tabs__label {
    display: inline-block;
    width: fit-content;
    border-radius: 1.25rem 0 1.25rem 0;
    background-color: var(--dark-pink, var(--dark-pink));
    padding: 0.35rem 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white, #fff);
    line-height: 1.4;
}

/* Section title */
.video-tabs__title {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
}

@media (min-width: 768px) {
    .video-tabs__title { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
    .video-tabs__title { font-size: 3rem; }
}

/* Description */
.video-tabs__description {
    max-width: none;
}

.video-tabs__description p {
    font-size: 1.125rem;
    line-height: 1.75;
    margin: 0;
}

.video-tabs__description strong {
    color: var(--color-teal, var(--color-blue-100));
}

/* ── Tabs body block ────────────────────────────────────────────── */
.video-tabs__body {
    border-bottom-left-radius: 4.7rem;
    border-bottom-right-radius: 0.3125rem;
    border-top-right-radius: 4.7rem;
    background-color: var(--vt-body-bg, var(--text-dark, var(--text-dark)));
    padding-top: 6rem;
    padding-bottom: 5rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .video-tabs__body {
        padding-bottom: 9rem;
    }
}

.video-tabs__container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ── Two-column layout ──────────────────────────────────────────── */
.video-tabs__layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .video-tabs__layout {
        flex-direction: row-reverse;
        align-items: flex-start;
    }
}

/* ── Tabs column ────────────────────────────────────────────────── */
.video-tabs__tabs-col {
    width: 100%;
}

@media (min-width: 1024px) {
    .video-tabs__tabs-col {
        width: 50%;
    }
}

.video-tabs__tab-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* ── Individual tab button ──────────────────────────────────────── */
.video-tabs__tab {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
    padding-left: 0;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transition: opacity 0.2s;
}

.video-tabs__tab:focus-visible {
    outline: 2px solid var(--color-blue-100, var(--color-blue-100));
    outline-offset: 4px;
    border-radius: 2px;
}

/* Wave decorator (desktop only, active tab only) */
.video-tabs__tab-decorator {
    display: none;
    position: absolute;
    left: -4.5rem;
    z-index: 2;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .video-tabs__tab--active .video-tabs__tab-decorator {
        display: inline;
    }
}

.video-tabs__tab-wave {
    height: 4rem;
    width: 4rem;
}

/* Number circle */
.video-tabs__tab-number {
    display: flex;
    flex-shrink: 0;
    height: 2.25rem;
    width: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: var(--dark-pink, var(--dark-pink));
    font-family: var(--font-code, monospace);
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--white, #fff);
    transition: background-color 0.2s;
}

.video-tabs__tab--active .video-tabs__tab-number {
    background-color: #d4d4d8;
}

/* Tab title */
.video-tabs__tab-title {
    font-family: var(--font-code-next-trial), sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--grey-blue, var(--mid-blue));
    border-bottom: 1px solid var(--grey-blue, var(--mid-blue));
    margin: 0;
    padding-bottom: 0.25rem;
    line-height: 1.3;
    transition: color 0.2s, border-color 0.2s;
}

.video-tabs__tab--active .video-tabs__tab-title {
    color: var(--white, #fff);
    border-color: var(--white, #fff);
}

@media (min-width: 1024px) {
    .video-tabs__tab-title { font-size: 1.25rem; }
}

/* ── Panels column ──────────────────────────────────────────────── */
.video-tabs__panels-col {
    width: 100%;
}

@media (min-width: 1024px) {
    .video-tabs__panels-col {
        width: 50%;
    }
}

/* ── Individual panel ───────────────────────────────────────────── */
.video-tabs__panel {
    width: 100%;
}

.video-tabs__panel--hidden {
    display: none;
}

/* ── Video wrapper ──────────────────────────────────────────────── */
.video-tabs__video-wrap {
    margin-top: -6rem;
}

@media (min-width: 1024px) {
    .video-tabs__video-wrap {
        margin-top: -10rem;
    }
}

.video-tabs__video-aspect {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1.25rem;
    background-color: #000;
}

/* ── Preview (thumbnail + play button) ─────────────────────────── */
.video-tabs__video-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-tabs__video-preview:focus-visible {
    outline: 3px solid var(--color-blue-100, var(--color-blue-100));
    outline-offset: 0;
}

/* Play button circle */
.video-tabs__play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: rgba(0, 0, 0, 0.45);
    padding: 1.5rem;
    transition: background-color 0.2s, transform 0.2s;
}

.video-tabs__video-preview:hover .video-tabs__play-btn,
.video-tabs__video-preview:focus-visible .video-tabs__play-btn {
    background-color: rgba(0, 0, 0, 0.65);
    transform: scale(1.08);
}

@media (min-width: 1024px) {
    .video-tabs__play-btn {
        padding: 2.5rem;
    }
}

.video-tabs__play-icon {
    height: 2rem;
    width: 2rem;
    fill: var(--white, #fff);
}

@media (min-width: 1024px) {
    .video-tabs__play-icon {
        height: 3.5rem;
        width: 3.5rem;
    }
}

/* ── Iframe (replaces preview after play) ───────────────────────── */
.video-tabs__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── Panel header (title + description above video) ─────────────── */
.video-tabs__panel-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.video-tabs__panel-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-code, monospace);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white, #fff);
    margin: 0;
    line-height: 1.3;
}

@media (min-width: 1024px) {
    .video-tabs__panel-title {
        font-size: 1.5rem;
    }
}

.video-tabs__panel-number {
    display: inline-flex;
    flex-shrink: 0;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: var(--dark-pink, var(--dark-pink));
    font-family: var(--font-code, monospace);
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--white, #fff);
}

.video-tabs__panel-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    padding-left: calc(2rem + 0.75rem); /* align text under title, past the number */
}

.video-tabs__panel-desc p {
    margin: 0;
}
