/* Circular Carousel: base component styles (from the supplied file), then the ARMY Hub theme. */
.circular-carousel {
    --cc-fade: #000000;
    --cc-radius: 12px;
    --cc-inner: 0.4;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: none;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.circular-carousel[data-axis='x'] {
    touch-action: pan-x;
}

.circular-carousel[data-draggable] {
    cursor: grab;
}

.circular-carousel[data-dragging] {
    cursor: grabbing;
}

.circular-carousel:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(128, 128, 140, 0.55);
}

.circular-carousel__view {
    position: absolute;
    inset: 0;
}

.circular-carousel[data-shape='wheel'] .circular-carousel__view {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000000 18%, #000000 82%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000000 18%, #000000 82%, transparent);
}

.circular-carousel[data-shape='panorama'] .circular-carousel__view {
    -webkit-mask-image: linear-gradient(to right, transparent, #000000 12%, #000000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000000 12%, #000000 88%, transparent);
}

.circular-carousel__stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.circular-carousel[data-ready] .circular-carousel__stage {
    opacity: 1;
}

.circular-carousel__camera,
.circular-carousel__ring,
.circular-carousel__card {
    width: 0;
    height: 0;
    transform-style: preserve-3d;
}

.circular-carousel__camera {
    position: relative;
}

.circular-carousel__ring,
.circular-carousel__card {
    position: absolute;
    left: 0;
    top: 0;
}

.circular-carousel__tile {
    position: absolute;
    outline: 1px solid transparent;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.circular-carousel__frame {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
}

.circular-carousel__photo {
    position: absolute;
    display: block;
    max-width: none;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.circular-carousel__photo--leaving {
    animation: circular-carousel-leave 700ms cubic-bezier(0.33, 1, 0.68, 1) both;
}

.circular-carousel__shade,
.circular-carousel__inner {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.circular-carousel__shade {
    background: var(--cc-fade);
    opacity: var(--cc-depth, 0);
}

.circular-carousel__inner {
    background: #000000;
    opacity: var(--cc-inner);
}

.circular-carousel__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    color: inherit;
    text-align: center;
    pointer-events: none;
    animation: circular-carousel-reveal 900ms ease both;
}

.circular-carousel__title {
    display: flex;
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    animation: circular-carousel-title 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.circular-carousel__subtitle {
    font-weight: 400;
    opacity: 0.6;
}

.circular-carousel__count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    opacity: 0.5;
}

.circular-carousel__slash {
    opacity: 0.6;
}

.circular-carousel__digits {
    display: inline-flex;
}

.circular-carousel__digit {
    display: inline-block;
    height: 1em;
    overflow: hidden;
}

.circular-carousel__reel {
    display: flex;
    flex-direction: column;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.circular-carousel__reel>span {
    height: 1em;
}

.circular-carousel__live {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@keyframes circular-carousel-title {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes circular-carousel-leave {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes circular-carousel-reveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .circular-carousel__stage,
    .circular-carousel__reel {
        transition: none;
    }

    .circular-carousel__caption,
    .circular-carousel__title {
        animation: none;
    }
}


/* ---------- ARMY Hub theme ---------- */
.showcase {
    position: relative;
    overflow: hidden;
}

.bts-car {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.bts-stage {
    position: relative;
    height: clamp(360px, 58vh, 560px);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(196, 181, 253, .18);
    border-radius: 1.25rem;
    background:
        radial-gradient(60% 55% at 50% 58%, rgba(139, 92, 246, .38), transparent 70%),
        radial-gradient(40% 40% at 12% 8%, rgba(232, 166, 255, .14), transparent 70%),
        radial-gradient(45% 45% at 92% 14%, rgba(124, 74, 237, .2), transparent 70%),
        #0f0820;
    box-shadow: 0 30px 80px -30px rgba(76, 29, 149, .75), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.bts-stage::before {
    /* soft glow under the front card */
    content: "";
    position: absolute;
    left: 50%;
    bottom: 14%;
    width: min(46%, 520px);
    aspect-ratio: 3 / 1;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(196, 181, 253, .55), rgba(139, 92, 246, .22) 55%, transparent 75%);
    filter: blur(18px);
    z-index: 0;
    pointer-events: none;
}

.bts-stage .mount {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bts-stage .hint {
    position: absolute;
    top: 12px;
    left: 16px;
    z-index: 2;
    pointer-events: none;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(221, 214, 254, .75);
}

.bts-stage .circular-carousel {
    --cc-radius: 14px;
    color: #fff;
}

.bts-stage .circular-carousel:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(196, 181, 253, .8);
}

/* Cards are drawn as 8 thin strips, so no per-strip borders or shadows (they would show as seams). The glow comes from .bts-stage::before. */
.bts-stage .circular-carousel__caption {
    bottom: 18px;
    gap: 8px;
}

.bts-stage .circular-carousel__title {
    font-family: var(--font-display, 'Unbounded', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 14px rgba(11, 7, 20, .95), 0 0 2px rgba(11, 7, 20, .9);
}

.bts-stage .circular-carousel__subtitle {
    font-family: var(--font-body, 'Manrope', sans-serif);
    font-size: .8rem;
    font-weight: 500;
    color: #e9e3ff;
    opacity: .92;
    letter-spacing: .02em;
}

.bts-stage .circular-carousel__count {
    color: #ddd6fe;
    opacity: .9;
}

.bts-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
}

.bts-bar .group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.bts-ctl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0 .9rem;
    cursor: pointer;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fg, #f5f3ff);
    background: rgba(139, 92, 246, .12);
    border: 1px solid rgba(196, 181, 253, .28);
    border-radius: 999px;
}

.bts-ctl:hover {
    border-color: var(--violet-hi, #c4b5fd);
    background: rgba(139, 92, 246, .24);
}

.bts-ctl:focus-visible {
    outline: 2px solid var(--violet-hi, #c4b5fd);
    outline-offset: 2px;
}

.bts-ctl[aria-pressed="true"] {
    background: var(--btn, #7c4aed);
    border-color: var(--btn, #7c4aed);
    color: #fff;
}

.bts-story {
    min-height: 1.5rem;
    margin: 0;
    font-size: .9rem;
    color: var(--muted, #b7aec9);
}

.bts-story a {
    color: var(--violet-hi, #c4b5fd);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bts-note {
    margin: 0;
    font-size: .75rem;
    color: var(--muted, #b7aec9);
}

.bts-static {
    display: none;
}

.bts-car.no-react .bts-static {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
}

.bts-static img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: .75rem;
}

@media (max-width: 640px) {
    .bts-stage {
        height: clamp(300px, 44vh, 380px);
        border-radius: 1rem;
    }

    .bts-bar {
        justify-content: center;
    }

    .bts-stage .circular-carousel__title {
        font-size: .9rem;
    }
}

:root[data-theme="light"] .bts-stage .hint {
    color: rgba(221, 214, 254, .8);
}