/* ============================================================
   FITUR 4 — TIM (Compact 3D Cards + Clean Directory Table)
   Butuh: base.css
   ============================================================ */

.team {
    padding: 68px 0 76px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    overflow: hidden;
}

.team-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 24px;
}

.team-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.team-title {
    font-size: clamp(26px, 3vw, 35px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.18;
    max-width: 520px;
    color: var(--ink);
}

.team-sub {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 420px;
    margin-top: 8px;
}

.team-controls {
    display: flex;
    gap: 6px;
}

.slider-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--hairline-strong);
    background: var(--paper);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.slider-btn:hover {
    background: var(--maroon);
    color: #fff;
    border-color: var(--maroon);
}

.team-circular-shell.is-hidden,
.team-slider-wrap.is-hidden,
.team-table-wrap.is-hidden {
    display: none;
}

.team-slider {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 4px 20px;
    cursor: grab;
}

.team-slider.is-auto-gliding {
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

.team-slider::-webkit-scrollbar {
    display: none;
}

.team-card {
    flex: 0 0 calc(25% - 13.5px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: 12px 12px 0;
    overflow: hidden;
    user-select: none;
}

.team-card:hover {
    background-color: var(--maroon);
    border-color: var(--maroon);
    box-shadow: 0 20px 40px -12px rgba(143, 0, 8, 0.34);
}

.team-photo {
    width: 100%;
    aspect-ratio: 4/4.2;
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    position: relative;
    background-color: #E5E5EA;
}

.team-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: transform 0.55s var(--ease);
}

.team-card:hover .team-photo::before {
    transform: scale(1.03);
}

.team-photo.t1::before { background-image: url('../images/team/team_ali_safaat.jpg'); }
.team-photo.t2::before { background-image: url('../images/team/team_fauzin.jpg'); }
.team-photo.t3::before { background-image: url('../images/team/team_imam_fauzi.jpg'); }
.team-photo.t4::before { background-image: url('../images/team/team_tolib_effendi.jpg'); }
.team-photo.t5::before { background-image: url('../images/team/team_riesta.jpg'); }
.team-photo.t6::before { background-image: url('../images/team/team_labib.jpg'); }
.team-photo.t7::before { background-image: url('../images/team/team_syaiful.jpg'); }
.team-photo.t8::before { background-image: url('../images/team/team_heri.jpg'); }
.team-photo.t9::before { background-image: url('../images/team/team_bhentar.jpg'); }

.team-card.is-hidden,
.ios-table tr[data-role].is-hidden,
.ios-table.hide-consult-cols .col-consult {
    display: none;
}

.team-role-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--maroon);
    margin-bottom: 4px;
    padding: 0 4px;
    transition: color 0.22s var(--ease);
}

.team-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.28;
    margin-bottom: 3px;
    color: var(--ink);
    padding: 0 4px;
    transition: color 0.22s var(--ease);
}

.team-role {
    font-size: 12.5px;
    color: var(--tertiary);
    margin-bottom: 8px;
    padding: 0 4px;
    transition: color 0.22s var(--ease);
}

.team-bio {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
    padding: 0 4px;
    margin-bottom: 14px;
    transition: color 0.22s var(--ease);
}

.team-card:hover .team-role-label {
    color: var(--champagne);
}

.team-card:hover .team-name {
    color: #FFFFFF;
}

.team-card:hover .team-role,
.team-card:hover .team-bio {
    color: rgba(255, 255, 255, 0.88);
}

.team-meta-line {
    margin: auto -12px 0;
    padding: 11px 16px 13px;
    background-color: var(--paper);
    border-top: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.team-meta-line span:first-child {
    color: var(--muted);
}

.team-meta-line span:last-child {
    color: var(--ink);
    font-weight: 600;
    transition: color 0.22s var(--ease);
}

.team-card:hover .team-meta-line {
    background-color: #EFEFF2;
    border-top-color: rgba(0, 0, 0, 0.06);
}

.team-card:hover .team-meta-line span:last-child {
    color: var(--maroon);
}

.team-table-avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    object-position: center top;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1050px) {
    .team-card {
        flex: 0 0 calc(46% - 9px);
    }
}

@media (max-width: 900px) {
    .team-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .team-head-right {
        width: 100%;
    }

    .team-card {
        flex: 0 0 calc(78% - 10px);
    }
}

/* ============================================================
   @react-bits/CircularCarousel-JS-CSS — 3D Team Portrait Carousel
   ============================================================ */
.team-circular-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.team-circular-stage-box {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 22px;
    background:
        radial-gradient(560px 260px at 50% 44%, rgba(143, 0, 8, 0.14), transparent 72%),
        var(--paper);
    border: 1px solid var(--hairline);
    box-shadow: 0 18px 42px -18px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

html.dark-theme .team-circular-stage-box,
html[data-theme="dark"] .team-circular-stage-box {
    background:
        radial-gradient(560px 260px at 50% 44%, rgba(185, 28, 28, 0.22), transparent 72%),
        rgba(18, 18, 24, 0.84);
    border-color: rgba(255, 255, 255, 0.1);
}

.team-circular-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--hairline-strong, rgba(0, 0, 0, 0.12));
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.12);
    transition: transform 0.22s var(--spring), background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.team-circular-hint:hover {
    background: var(--maroon);
    border-color: var(--maroon);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.team-circular-hint-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--maroon);
    box-shadow: 0 0 0 3px rgba(143, 0, 8, 0.18);
}

.team-circular-hint:hover .team-circular-hint-dot {
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.team-back-circular-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.team-card.is-spotlight {
    border-color: var(--maroon) !important;
    box-shadow: 0 0 0 3px rgba(143, 0, 8, 0.24), 0 22px 44px -14px rgba(143, 0, 8, 0.34) !important;
}

.circular-carousel {
    --cc-fade: #000000;
    --cc-radius: 14px;
    --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(143, 0, 8, 0.55);
}

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

.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__card {
    cursor: pointer;
}

.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;
    object-position: center top;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.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: #1a0406;
    opacity: var(--cc-inner);
}

.circular-carousel__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    color: var(--ink);
    text-align: center;
    pointer-events: none;
}

.circular-carousel__title {
    display: flex;
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: var(--ink);
}

.circular-carousel__subtitle {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--maroon);
    margin-top: 2px;
}

.circular-carousel__count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--muted);
}

.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;
}

@media (max-width: 640px) {
    .team-circular-stage-box {
        height: 380px;
    }
}
