/* ─────────────────────────────────────────────
   Bariatric Procedures – bp-style.css v1.1.0
───────────────────────────────────────────── */

.bp-wrap {
    --bp-bg:        #ffffff;
    --bp-card-bg:   #ffffff;
    --bp-border:    #e8edf2;
    --bp-title:     #0d2b5e;
    --bp-desc:      #556677;
    --bp-link:      #2ecc71;
    --bp-subtitle:  #556677;
    --bp-btn-bg:    #0d2b5e;
    --bp-btn-text:  #ffffff;

    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bp-bg);
    padding: 28px 20px 36px;
    box-sizing: border-box;
}
.bp-wrap *, .bp-wrap *::before, .bp-wrap *::after { box-sizing: inherit; }

/* Section title */
.bp-section-title {
    text-align: center;
    color: var(--bp-title);
    font-size: 26px;
    font-weight: 800;
    margin: 0 auto 10px;
    line-height: 1.2;
}

/* Subtitle */
.bp-subtitle {
    text-align: center;
    color: var(--bp-subtitle);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 auto 24px;
    max-width: 700px;
}

/* ── CARD shared (desktop) ───────────────── */
.bp-card {
    background: var(--bp-card-bg);
    border: 1.5px solid var(--bp-border);
    border-radius: 12px;
    padding: 22px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}
.bp-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.09);
    transform: translateY(-2px);
}

.bp-card-icon {
    width: 60px; height: 60px;
    margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bp-card-icon img { width: 60px; height: 60px; object-fit: contain; display: block; }
.bp-card-icon svg { width: 60px; height: 60px; }

.bp-card-title {
    color: var(--bp-title);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
    letter-spacing: 0;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bp-card-desc {
    color: var(--bp-desc);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 14px;
    flex: 1;
}

.bp-learn-link {
    color: var(--bp-link);
    font-size: 12.5px;
    font-weight: 400;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    display: inline-flex; align-items: center; gap: 4px;
    transition: gap .15s;
}
.bp-learn-link:hover { gap: 8px; text-decoration: none; color: var(--bp-link); }

/* ── Footer / View All ───────────────────── */
.bp-footer { display: flex; justify-content: center; margin-top: 28px; }
.bp-view-all-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    color: var(--bp-btn-bg);
    border: 2px solid var(--bp-btn-bg);
    border-radius: 8px;
    padding: 11px 28px;
    font-size: 13px; font-weight: 700; letter-spacing: .04em;
    text-decoration: none;
    transition: background .18s, color .18s;
}
.bp-view-all-btn:hover { background: var(--bp-btn-bg); color: var(--bp-btn-text); text-decoration: none; }

/* ── DESKTOP (≥ 768px) ───────────────────── */
.bp-mobile  { display: none; }
.bp-desktop { display: block; }

.bp-cards-row {
    display: flex;
    flex-direction: row;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.bp-cards-row::-webkit-scrollbar { display: none; }
.bp-cards-row .bp-card {
    flex: 0 0 calc((100% - 5 * 14px) / 6);
    min-width: 150px;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .bp-cards-row .bp-card { flex: 0 0 calc((100% - 2 * 14px) / 3); }
}

/* ── MOBILE (< 768px): horizontal slider, 3 visible, icon+name only ── */
@media (max-width: 767px) {

    .bp-desktop { display: none; }
    .bp-mobile  { display: block; }

    .bp-wrap { padding: 20px 14px 24px; }

    .bp-subtitle { font-size: 13px; margin-bottom: 16px; }
    .bp-section-title { font-size: 22px; }

    /* Slider row — shows 3 items, scrollable for more */
    .bp-mobile-slider {
        display: flex;
        flex-direction: row;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .bp-mobile-slider::-webkit-scrollbar { display: none; }

    /* Each item takes exactly 1/3 of viewport */
    .bp-slide-item {
        flex: 0 0 33.333%;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 6px 12px;
        text-decoration: none;
        border: 1.5px solid var(--bp-border);
        border-radius: 10px;
        margin-right: 10px;
        background: var(--bp-card-bg);
        transition: box-shadow .18s, transform .18s;
    }
    .bp-slide-item:last-child { margin-right: 0; }
    .bp-slide-item:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,.08);
        transform: translateY(-1px);
        text-decoration: none;
    }

    .bp-slide-icon {
        width: 72px; height: 72px;
        display: flex; align-items: center; justify-content: center;
        margin-bottom: 8px;
    }
    .bp-slide-icon img { width: 72px; height: 72px; object-fit: contain; display: block; }
    .bp-slide-icon svg { width: 72px; height: 72px; }

    .bp-slide-name {
        color: var(--bp-title);
        font-size: 12px;
        font-weight: 700;
        line-height: 1.3;
        display: block;
        text-shadow: none;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .bp-footer { margin-top: 18px; }
    .bp-view-all-btn { font-size: 12px; padding: 10px 22px; }
}
