/* ================================================================
   BOOTCAMP LEARNING INTERFACE — sfc-learn-*
   ================================================================ */

/* Top Bar */
.sfc-learn-topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #1B3A2D;
    padding: 10px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.sfc-learn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}
.sfc-learn-back:hover { color: #2FBF71; text-decoration: none; }
.sfc-learn-progress-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sfc-learn-progress-bar {
    flex: 1;
    background: rgba(255,255,255,.2);
    border-radius: 4px;
    height: 6px;
}
.sfc-learn-progress-fill {
    background: #2FBF71;
    height: 6px;
    border-radius: 4px;
    transition: width .5s ease;
}
.sfc-learn-progress-text {
    font-size: 12px;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
}

/* 2-Panel Layout */
.sfc-learn-layout {
    display: flex;
    height: calc(100vh - 46px);
    overflow: hidden;
}
.sfc-learn-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}
.sfc-learn-video-wrap {
    background: #111827;
    max-height: 56vh;
}
.sfc-learn-no-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 240px;
    color: #9CA3AF;
    font-size: 14px;
    gap: 12px;
}
.sfc-learn-no-video i { font-size: 36px; }
.sfc-learn-content { flex: 1; overflow-y: auto; padding: 24px 32px; }
.sfc-learn-lesson-header { margin-bottom: 16px; }
.sfc-learn-lesson-section { font-size: 12px; color: #9CA3AF; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.sfc-learn-lesson-title { font-size: 22px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.sfc-learn-duration { font-size: 13px; color: #6B7280; }
.sfc-learn-desc { font-size: 14px; color: #374151; line-height: 1.7; margin-bottom: 24px; }

/* Action Bar — pinned to bottom of sfc-learn-main */
.sfc-learn-action-bar {
    flex-shrink: 0;
    border-top: 1px solid #E5E7EB;
    padding: 14px 32px;
    background: #fff;
}
.sfc-learn-watch-hint {
    background: #FFFBEB;
    border: 1px solid #FEF3C7;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #92400E;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sfc-learn-nav-btns {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.sfc-learn-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.sfc-learn-nav-btn:hover:not(:disabled):not(.sfc-learn-nav-btn--locked) {
    background: #F9FAFB;
    color: #111827;
    text-decoration: none;
}
.sfc-learn-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.sfc-learn-nav-btn--locked { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.sfc-learn-nav-btn--next { background: #1B3A2D; color: #fff; border-color: #1B3A2D; }
.sfc-learn-nav-btn--next:hover:not(:disabled):not(.sfc-learn-nav-btn--locked) { background: #1B7A47; color: #fff; }

.sfc-learn-complete-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    background: #D1FAE5;
    color: #065F46;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    flex: 1;
    justify-content: center;
    max-width: 220px;
}
.sfc-learn-complete-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.sfc-learn-complete-btn--ready { background: #1B7A47; color: #fff; }
.sfc-learn-complete-btn--ready:hover { background: #1B3A2D; }
.sfc-learn-complete-btn--done { background: #D1FAE5; color: #065F46; }

/* Sidebar */
.sfc-learn-sidebar {
    width: 320px;
    flex-shrink: 0;
    border-left: 1px solid #E5E7EB;
    overflow-y: auto;
    background: #FAFAFA;
}
.sfc-learn-sidebar-header {
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid #E5E7EB;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}
.sfc-learn-section { border-bottom: 1px solid #E5E7EB; }
.sfc-learn-section-title {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    background: #F3F4F6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sfc-learn-lesson-list { list-style: none; padding: 0; margin: 0; }
.sfc-learn-lesson-item { border-bottom: 1px solid #F3F4F6; }
.sfc-learn-lesson-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    transition: background .15s;
    cursor: pointer;
}
a.sfc-learn-lesson-link:hover { background: #F0FDF4; color: #1B7A47; text-decoration: none; }
.sfc-learn-lesson--current .sfc-learn-lesson-link { background: #ECFDF5; color: #1B7A47; font-weight: 600; }
.sfc-learn-lesson--locked .sfc-learn-lesson-link { opacity: 0.55; cursor: not-allowed; }
.sfc-learn-lesson--done .sfc-learn-lesson-link { color: #6B7280; }
.sfc-learn-lesson-icon { width: 18px; flex-shrink: 0; font-size: 14px; }
.sfc-learn-lesson-name { flex: 1; line-height: 1.4; }
.sfc-learn-lesson-dur { font-size: 11px; color: #9CA3AF; white-space: nowrap; }

/* Done Modal */
.sfc-learn-done-modal { border-radius: 16px; }
.sfc-learn-done-icon { font-size: 56px; }

/* My Bootcamps */
.sfc-mybc-list { display: flex; flex-direction: column; gap: 16px; }
.sfc-mybc-card {
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.sfc-mybc-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    gap: 20px;
}
.sfc-mybc-card-info { flex: 1; }
.sfc-mybc-title { font-size: 18px; font-weight: 600; color: #111827; margin-bottom: 4px; }
.sfc-mybc-progress-wrap { margin-top: 10px; }
.sfc-mybc-progress-bar {
    background: #E5E7EB;
    border-radius: 4px;
    height: 8px;
    margin-bottom: 4px;
}
.sfc-mybc-progress-fill { background: #1B7A47; height: 8px; border-radius: 4px; transition: width .4s; }
.sfc-mybc-progress-text { font-size: 12px; color: #6B7280; }
.sfc-mybc-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    min-width: 180px;
}
.sfc-mybc-card-actions .sfc-bc-cta-btn { font-size: 13px; padding: 8px 18px; }

@media (max-width: 991px) {
    .sfc-learn-sidebar { display: none; }
    .sfc-learn-layout { height: auto; flex-direction: column; }
    .sfc-learn-main { overflow-y: visible; }
    .sfc-bcd-rating-summary { flex-direction: column; gap: 16px; }
    .sfc-mybc-card-body { flex-direction: column; align-items: flex-start; }
    .sfc-mybc-card-actions { align-items: flex-start; min-width: unset; }
}
@media (max-width: 767px) {
    .sfc-bcd-hero { padding: 36px 0 32px; }
    .sfc-bcd-title { font-size: 24px; }
    .sfc-bcd-tabs .nav-link { padding: 10px 12px; font-size: 14px; }
    .sfc-learn-content { padding: 16px 18px; }
    .sfc-learn-nav-btns { gap: 8px; }
    .sfc-bcd-sidebar { position: static; margin-top: 24px; }
}

/* ===== Blog Article Badge (Gratis / Premium) ===== */
.sfc-blog-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.3px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: default;
}
.sfc-blog-badge--free {
    background: #1B3A2D;
    color: #fff;
    border-color: #1B3A2D;
}
.sfc-blog-badge--free:hover {
    background: #fff;
    color: #1B3A2D;
}
.sfc-blog-badge--premium {
    background: #F97316;
    color: #fff;
    border-color: #F97316;
}
.sfc-blog-badge--premium:hover {
    background: #fff;
    color: #F97316;
}

/* ── Checkout payment sidebar text color ── */
.cart__collaterals-wrap.payment_slidebar .list-wrap li,
.cart__collaterals-wrap.payment_slidebar .list-wrap li span,
.cart__collaterals-wrap.payment_slidebar .list-wrap li .amount,
.cart__collaterals-wrap.payment_slidebar .list-wrap li p,
.cart__collaterals-wrap.payment_slidebar .list-wrap li small,
.cart__collaterals-wrap.payment_slidebar .payable-text,
.cart__collaterals-wrap.payment_slidebar .payable-text span {
    color: #1B3A2D !important;
}

/* ── SFC Preloader ── */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sfc-preloader-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
}
.sfc-preloader-wrap.sfc-preloader-sm {
    width: 80px;
    height: 80px;
}
.sfc-preloader-logo {
    width: 60px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: sfcPulse 1.6s ease-in-out infinite;
}
.sfc-preloader-sm .sfc-preloader-logo {
    width: 40px;
}
.sfc-preloader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(27, 58, 45, 0.12);
    border-top-color: #1B3A2D;
    animation: sfcSpin 0.9s linear infinite;
}
@keyframes sfcSpin {
    to { transform: rotate(360deg); }
}
@keyframes sfcPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(0.92); }
}

/* ---- Cart table header ---- */
.cart__table thead tr {
    background: #1B7A47 !important;
}
.cart__table thead th {
    color: #fff !important;
}

