/* ─────────────────────────────────────────────────────────────────────────
   Feat Portfolio Fields — Front-end Styles
   ───────────────────────────────────────────────────────────────────────── */

/* [featfilms_description] and [feat_case_study] — no forced alignment; editor inline styles win */
.project-description,
.case-study-text {
    text-align: left;
}

.case-study-text {
    color: #F8F6EF;
}

/* [feat_bts_description] output */
.bts-description {
    font-family: 'General Sans', sans-serif;
    font-size: 32px;
    line-height: 42px;
    color: #F8F6EF;
    margin: 0;
}

/* ── Video carousel ──────────────────────────────────────────────────────── */

.feat-video-carousel {
    position: relative;
}

.feat-video-track {
    position: relative;
    overflow: hidden;
}

.feat-video-slide {
    width: 100%;
}

.feat-video-slide--active {
    position: relative;
}

/* Hidden slides: taken out of flow, invisible */
.feat-video-slide--hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: none;
}

/* Pill nav container — stacks dots above pill, both centered */
.feat-video-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Dots indicator */
.feat-video-dots {
    display: flex;
    gap: 6px;
}

.feat-video-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(231, 230, 221, 0.25);
    transition: background 180ms ease;
}

.feat-video-dot--active {
    background: rgba(231, 230, 221, 0.85);
}

/* ── Pill nav tokens ─────────────────────────────────────────────────────── */
:root {
    --pill-bg:          rgba(255, 255, 255, 0.08);
    --pill-blur:        blur(8px) saturate(1.05);
    --pill-ink:         #E7E6DD;
    --pill-hover-bg:    rgba(255, 255, 255, 0.10);
    --pill-active-bg:   rgba(253, 213, 110, 0.20);
    --pill-focus-ring:  #E7E6DD;
    --pill-ease:        180ms ease;
}

.pill-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 999px;
    background: var(--pill-bg);
    -webkit-backdrop-filter: var(--pill-blur);
    backdrop-filter: var(--pill-blur);
    pointer-events: auto;
}

/* !important on structural props overrides Elementor's global button rules */
.pill-nav__btn {
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    color: var(--pill-ink) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: background var(--pill-ease) !important;
    flex-shrink: 0;
    box-shadow: none !important;
    outline: none;
}

.pill-nav__btn:hover {
    background: var(--pill-hover-bg) !important;
}

/* Click-and-drag-outside: gold accent */
.pill-nav__btn:active:not(:hover) {
    background: var(--pill-active-bg) !important;
}

/* Suppress browser/Elementor focus ring except when keyboard-navigating */
.pill-nav__btn:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.pill-nav__btn:focus-visible {
    outline: 2px solid var(--pill-focus-ring) !important;
    outline-offset: 2px;
    box-shadow: none !important;
}

.pill-nav__btn svg {
    display: block;
    pointer-events: none;
}

.pill-nav__btn:disabled,
.pill-nav__btn[aria-disabled="true"] {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .pill-nav__btn,
    .feat-video-dot {
        transition: none;
    }
}

@media (max-width: 767px) and (orientation: portrait) {
    .feat-video-nav {
        display: none;
    }
}
