/* =============================================================
   BizCode Team Carousel  v9
   Desktop  > 1024px : carousel  (N slides, P cards each)
   Tablet  601-1024  : carousel  (N slides, 2 cards each)
   Mobile  < 600px   : stacked   (all cards in one column, no dots)
   ============================================================= */

.btc-wrapper {
    --btc-accent:    rgba(106,17,21,0.93);
    --btc-accent-dk: #6A1115;
    --btc-ease:      0.36s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "Poppins", sans-serif;
	text-align:center;
    padding: 0px 0 30px;
    width: 100%;
    box-sizing: border-box;
}

/* ── Carousel shell ── */
.btc-carousel {
    position: relative;
    overflow: hidden;   /* clips inactive carousel slides */
	padding:0 8%;
    width: 100%;
}

/* ── Carousel slide (desktop / tablet) ── */
.btc-slide {
    display: none;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 12px 30px 20px;
    box-sizing: border-box;
    width: 100%;
    animation: btcIn 0.38s ease both;
}
.btc-slide.active { display: flex; }

@keyframes btcIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Card ── */
.btc-card {
    flex: 1 1 0;
    min-width: 0;
    cursor: pointer;
}

.btc-card-inner {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--btc-ease);
}
.btc-card:hover .btc-card-inner { transform: translateY(-6px); }

/* Photo zone */
.btc-photo-zone {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: #D9D9D9;
}

.btc-img-wrap { position: absolute; inset: 0; }
.btc-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    display: block;
}

/* Red hover overlay */
.btc-back {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column;
    background: var(--btc-accent);
    opacity: 0; pointer-events: none;
    transition: opacity var(--btc-ease);
}
.btc-card:hover .btc-back { opacity: 1; pointer-events: auto; }

.btc-back-img-wrap { position: absolute; inset: 0; z-index: 0; }
.btc-back-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    opacity: 0.20; filter: grayscale(30%); display: block;
}

.btc-back-body {
    position: relative; z-index: 1; flex: 1;
    padding: 26px 20px 18px;
    display: flex; flex-direction: column; justify-content: center;
    text-align: center; overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.25) transparent;
}

.btc-back-desc {
    color: rgba(255,255,255,0.93);
    font-size: 0.82rem; line-height: 1.70;
    margin: 0 0 14px; text-align: center;
}

.btc-certs { text-align: center; }
.btc-cert-badge {
    display: inline; color: #fff;
    font-size: 0.80rem; font-weight: 700;
    letter-spacing: 0.02em; line-height: 1.8;
}
.btc-cert-badge + .btc-cert-badge::before {
    content: "  ·  "; font-weight: 300; opacity: 0.55;
}

/* Footer zone */
.btc-footer-zone {
    position: relative; z-index: 3;
    background: #fff;
    border-radius: 10px;
    margin-top: -40px;
    margin-left: 10%; margin-right: 10%;
    padding: 16px 14px 18px;
    text-align: center;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 18px rgba(0,0,0,0.11);
    transition:
        background var(--btc-ease),
        border-color var(--btc-ease),
        box-shadow var(--btc-ease);
}
.btc-card:hover .btc-footer-zone {
    background: var(--btc-accent-dk);
    border-color: var(--btc-accent-dk);
    box-shadow: 0 8px 28px rgba(107,18,32,0.38);
}

.btc-name {
    font-size: 1.55rem; font-weight: 700;
    margin: 0 0 5px;
    color: var(--btc-accent-dk) !important;
    letter-spacing: -0.01em; line-height: 1.2;
    transition: color var(--btc-ease);
}
.btc-card:hover .btc-footer-zone .btc-name { color: #fff !important; }

.btc-name-divider {
    display: block; width: 70px; height: 1px;
    background: #ccc; margin: 0 auto 6px;
    border: none; transition: background var(--btc-ease);
}
.btc-card:hover .btc-footer-zone .btc-name-divider { background: rgba(255,255,255,0.45); }

.btc-position {
    font-size: 0.66rem; letter-spacing: 0.18em;
    color: #555; margin: 0; font-weight: 500;
    text-transform: uppercase; line-height: 1.4;
    transition: color var(--btc-ease);
}
.btc-card:hover .btc-footer-zone .btc-position { color: rgba(255,255,255,0.85); }

/* Dots */
.btc-dots {
	display:none!important;
    margin-top: 32px;
    display: flex; justify-content: center; gap: 8px;
}
.btc-dot {
	display:none!important;
    width: 10px; height: 10px; border-radius: 50%;
    background: #d0d0d0; border: none; cursor: pointer; padding: 0;
    transition: background 0.22s, transform 0.18s;
}
.btc-dot.active { background: var(--btc-accent-dk); transform: scale(1.28); }
.btc-dot:hover:not(.active) { background: #aaa; }

/* =============================================================
   TABLET  601–1024px  —  carousel, 2 cards per slide
   ============================================================= */
@media (min-width: 601px) and (max-width: 1024px) {
    .btc-slide { gap: 16px; padding: 0px 10px 16px; }

    .btc-card {
        flex: 0 0 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
        min-width: 0;
    }
    .btc-back-desc  { font-size: 0.72rem; line-height: 1.62; }
    .btc-cert-badge { font-size: 0.68rem; }
    .btc-name       { font-size: 1.20rem; }
    .btc-position   { font-size: 0.60rem; }
    .btc-footer-zone {
        margin-top: -30px;
        margin-left: 5%; margin-right: 5%;
        padding: 12px 10px 14px;
    }
    .btc-name-divider { width: 56px; }
	.btc-carousel {
    
	padding:0%;
}
}

/* =============================================================
   MOBILE  < 600px  —  ALL CARDS STACKED, NO CAROUSEL, NO DOTS
   
   .btc-stack is added by JS to the single slide it creates.
   We override display:none and flex-direction so all cards
   stack vertically in one continuous column.
   ============================================================= */
@media (max-width: 600px) {
.btc-carousel {
    
	padding:0%;
}
    /* The single stack slide is always visible and flows vertically */
    .btc-slide.btc-stack {
        display: flex !important;
        flex-direction: column !important;
        gap: 28px;
        padding: 0px;
        overflow: visible;
    }

    /* Each card is full width */
    .btc-slide.btc-stack .btc-card {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Slightly less tall aspect ratio on small screens */
    .btc-photo-zone { aspect-ratio: 3 / 3.5; }

    /* Slightly smaller text */
    .btc-back-desc  { font-size: 0.78rem; line-height: 1.66; }
    .btc-cert-badge { font-size: 0.74rem; }
    .btc-name       { font-size: 1.35rem; }
    .btc-position   { font-size: 0.62rem; }
    .btc-footer-zone {
        margin-top: -32px;
        margin-left: 4%; margin-right: 4%;
        padding: 14px 12px 16px;
    }

    /* Carousel overflow must not clip the stacked layout */
    .btc-carousel { overflow: visible; }

    /* Hide dots completely on mobile */
    .btc-dots { display: none !important; }
}
