/* =====================================================
   Team Carousel — Beth Horner & Associates
   Shortcode: [pxl_team_horner_carousel]
   ===================================================== */

.thc-section {
    width: 100%;
    box-sizing: border-box;
}

.thc-nav-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.thc-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.thc-track {
    display: flex;
    gap: 20px;
    will-change: transform;
    /* transition is set by JS */
}

/* ---- Card shell ---- */

.thc-card {
    flex-shrink: 0;
    /* width set by JS */
    height: 400px;
    perspective: 1200px;
}

.thc-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
    border-radius: 14px;
}

/* Hover — desktop only */
@media (hover: hover) {
    .thc-card:hover .thc-card-inner {
        transform: rotateY(180deg);
    }
}

/* Tap-to-flip — all devices */
.thc-card.thc-flipped .thc-card-inner {
    transform: rotateY(180deg);
}

.thc-front,
.thc-back {
    position: absolute;
    inset: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 14px;
    overflow: hidden;
}

/* ---- Front face ---- */

.thc-front {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(72, 110, 226, 0.15);
    box-shadow: 0 4px 24px rgba(18, 18, 42, 0.08);
}

.thc-front-meta {
    padding: 16px 18px 14px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(72, 110, 226, 0.1);
}

.thc-name {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0d0d1e !important;
    margin: 0 0 5px !important;
    line-height: 1.3 !important;
}

.thc-role {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #486ee2 !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.thc-photo {
    flex: 1;
    overflow: hidden;
    background: #eef0f8;
}

.thc-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

@media (hover: hover) {
    .thc-card:hover .thc-photo img {
        transform: scale(1.04);
    }
}

/* ---- Back face ---- */

.thc-back {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    background: linear-gradient(150deg, #486ee2 0%, #2d4cc4 100%);
    display: flex;
    flex-direction: column;
}

.thc-back-scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 18px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.thc-back-scroll::-webkit-scrollbar {
    width: 4px;
}

.thc-back-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.thc-back-name {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 4px !important;
    line-height: 1.3 !important;
}

.thc-back-role {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.65) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    margin: 0 0 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.thc-bio p {
    font-size: 13px !important;
    line-height: 1.65 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0 10px !important;
}

.thc-bio ul {
    margin: 0 0 10px !important;
    padding-left: 18px !important;
}

.thc-bio li {
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 5px !important;
}

.thc-bio blockquote {
    margin: 0 0 10px !important;
    padding: 8px 10px !important;
    border-left: 3px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 0 4px 4px 0 !important;
    background: rgba(0, 0, 0, 0.12) !important;
    font-size: 12px !important;
    font-style: italic !important;
    line-height: 1.55 !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

/* ---- Navigation buttons ---- */

.thc-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #486ee2;
    background: #ffffff;
    color: #486ee2;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    user-select: none;
    padding: 0;
}

.thc-btn:hover {
    background: #486ee2;
    color: #ffffff;
    transform: scale(1.06);
}

.thc-btn:focus-visible {
    outline: 3px solid #486ee2;
    outline-offset: 3px;
}

/* ---- Dots ---- */

.thc-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
}

.thc-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(72, 110, 226, 0.22);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, width 0.25s, border-radius 0.25s;
}

.thc-dot.is-active {
    background: #486ee2;
    width: 26px;
    border-radius: 5px;
}

/* ---- Responsive ---- */

@media (max-width: 1100px) {
    .thc-card { height: 380px; }
}

@media (max-width: 768px) {
    .thc-card { height: 360px; }
    .thc-btn { width: 36px; height: 36px; font-size: 22px; }
    .thc-nav-wrap { gap: 8px; }
}

@media (max-width: 480px) {
    .thc-card { height: 340px; }
    .thc-btn { width: 32px; height: 32px; font-size: 18px; }
}
