/* ============================================================
   COURSE DETAILS PAGE (sfc-cd) — custom redesign
   ============================================================ */
.sfc-cd {
    background: #EAF3EE;
    padding: 24px 0 90px;
}
.sfc-cd__crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #6B7A72;
    margin-bottom: 18px;
}
.sfc-cd__crumb a { color: #1B7A47; text-decoration: none; }
.sfc-cd__crumb svg { color: #18A167; }
.sfc-cd__crumb span { color: #18A167; font-weight: 600; }

.sfc-cd__layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* Hero */
.sfc-cd__hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #0D2A1D;
}
.sfc-cd__hero > img {
    width: 100%;
    aspect-ratio: 690 / 420;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}
.sfc-cd__hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}
.sfc-cd__hero-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 22px 40px;
    text-align: center;
    max-width: 80%;
}
.sfc-cd__hero-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0D2A1D;
    margin: 0 0 6px;
}
.sfc-cd__hero-card span {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #18A167;
}
.sfc-cd__play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #2FBF71;
    color: #0D2A1D;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(13,42,29,0.25);
    transition: transform 0.2s;
}
.sfc-cd__play:hover { transform: scale(1.06); color: #0D2A1D; }

/* Meta row */
.sfc-cd__meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.sfc-cd__tag {
    background: #DFF3E7;
    color: #18A167;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
}
.sfc-cd__rating {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #4B5D54;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sfc-cd__rating i { color: #F5A623; }
.sfc-cd__wish {
    margin-left: auto;
    color: #4B5D54;
    font-size: 18px;
}

.sfc-cd__title {
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #0D2A1D;
    margin: 0 0 18px;
    text-wrap: balance;
}

.sfc-cd__info-row {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #5C6E64;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid #DCE7E0;
}
.sfc-cd__info-row i { color: #8FA79A; margin-right: 6px; }
.sfc-cd__author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sfc-cd__author img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}
.sfc-cd__author a {
    color: #0D2A1D;
    font-weight: 700;
    text-decoration: none;
}

/* Tabs */
.sfc-cd__tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid #DCE7E0;
    margin-bottom: 24px;
    list-style: none;
    padding: 0;
}
.sfc-cd__tab {
    background: none;
    border: none;
    padding: 0 0 14px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #8B9990;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
}
.sfc-cd__tab.active {
    color: #18A167;
    border-bottom-color: #18A167;
}

/* Card */
.sfc-cd__card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(13,61,45,0.05);
}
.sfc-cd__card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0D2A1D;
    margin: 0 0 18px;
}
.sfc-cd__desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #4B5D54;
}
.sfc-cd__desc p { margin: 0 0 16px; }
.sfc-cd__desc ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sfc-cd__desc ul li {
    position: relative;
    padding-left: 28px;
    font-weight: 600;
    color: #2C3B33;
}
.sfc-cd__desc ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2FBF71;
}
.sfc-cd__desc ul li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    width: 8px;
    height: 4px;
    border-left: 2px solid #0D3D2D;
    border-bottom: 2px solid #0D3D2D;
    transform: rotate(-45deg);
}

.sfc-cd__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 26px;
}
.sfc-cd__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F1F7F3;
    border-radius: 12px;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2C3B33;
}
.sfc-cd__feature svg { flex: 0 0 auto; }

/* Curriculum */
.sfc-cd__curr-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.sfc-cd__curr-head span {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #18A167;
}
.sfc-cd__accordion { margin-top: 16px; }
.sfc-cd__acc-item {
    border-bottom: 1px solid #EEF3F0;
}
.sfc-cd__acc-item:last-child { border-bottom: none; }
.sfc-cd__acc-item--active { background: #F7FBF8; border-radius: 12px; }
.sfc-cd__acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    background: none;
    border: none;
    padding: 18px 12px;
    text-align: left;
    cursor: pointer;
}
.sfc-cd__acc-item--active .sfc-cd__acc-btn {
    border-left: 3px solid #18A167;
    padding-left: 9px;
}
.sfc-cd__acc-num {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #EDF3EF;
    color: #4B5D54;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
}
.sfc-cd__acc-item--active .sfc-cd__acc-num {
    background: #18A167;
    color: #FFFFFF;
}
.sfc-cd__acc-title {
    flex: 1 1 auto;
    font-family: 'Poppins', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    color: #0D2A1D;
}
.sfc-cd__acc-chevron {
    flex: 0 0 auto;
    color: #8FA79A;
    transition: transform 0.2s;
}
.sfc-cd__acc-btn[aria-expanded="true"] .sfc-cd__acc-chevron { transform: rotate(180deg); }
.sfc-cd__acc-body {
    padding: 4px 12px 18px 62px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sfc-cd__lesson {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}
.sfc-cd__lesson-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #DFF3E7;
    color: #18A167;
}
.sfc-cd__lesson--locked .sfc-cd__lesson-icon {
    background: #EFF2F0;
    color: #A2ADA6;
}
.sfc-cd__lesson-title {
    flex: 1 1 auto;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: #2C3B33;
}
.sfc-cd__lesson--locked .sfc-cd__lesson-title { color: #8B9990; }
.sfc-cd__lesson-sub {
    flex: 0 0 auto;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #8B9990;
}

/* Kreator */
.sfc-cd__creator {
    display: flex;
    gap: 26px;
}
.sfc-cd__creator + .sfc-cd__creator { margin-top: 24px; padding-top: 24px; border-top: 1px solid #EEF3F0; }
.sfc-cd__creator-avatar {
    position: relative;
    flex: 0 0 auto;
}
.sfc-cd__creator-avatar img {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    object-fit: cover;
}
.sfc-cd__creator-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #18A167;
    border: 3px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sfc-cd__creator-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0D2A1D;
    margin: 0 0 4px;
}
.sfc-cd__creator-role {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #18A167;
    margin-bottom: 16px;
}
.sfc-cd__creator-stats {
    display: flex;
    gap: 36px;
    margin-bottom: 18px;
}
.sfc-cd__creator-stats strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #0D2A1D;
}
.sfc-cd__creator-stats span {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #8B9990;
}
.sfc-cd__creator-content p {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.75;
    color: #4B5D54;
    margin: 0 0 16px;
}
.sfc-cd__creator-social {
    display: flex;
    gap: 10px;
}
.sfc-cd__creator-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F1F7F3;
    color: #4B5D54;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.sfc-cd__creator-social a:hover { background: #18A167; color: #fff; }

/* Reviews */
.sfc-cd__rate-summary {
    display: flex;
    gap: 40px;
    align-items: center;
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid #EEF3F0;
}
.sfc-cd__rate-value {
    flex: 0 0 auto;
    text-align: center;
}
.sfc-cd__rate-value span {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #0D2A1D;
}
.sfc-cd__rate-stars { color: #F5A623; margin: 6px 0; }
.sfc-cd__star-empty { color: #DCE7E0; }
.sfc-cd__rate-value small {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #8B9990;
}
.sfc-cd__rate-bars { flex: 1 1 auto; }
.sfc-cd__rate-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #4B5D54;
}
.sfc-cd__rate-bar-row i { color: #F5A623; font-size: 10px; }
.sfc-cd__rate-bar-track {
    flex: 1 1 auto;
    height: 6px;
    border-radius: 999px;
    background: #EEF3F0;
    overflow: hidden;
}
.sfc-cd__rate-bar-fill {
    height: 100%;
    background: #F5A623;
    border-radius: 999px;
}
.sfc-cd__review {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #EEF3F0;
}
.sfc-cd__review:last-child { border-bottom: none; }
.sfc-cd__review img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}
.sfc-cd__review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.sfc-cd__review-head strong {
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    color: #0D2A1D;
}
.sfc-cd__review-head span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #8B9990;
}
.sfc-cd__review-stars { color: #F5A623; font-size: 11px; margin-bottom: 6px; }
.sfc-cd__review p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #4B5D54;
    margin: 0;
}

/* Sidebar */
.sfc-cd__sidebar { position: sticky; top: 20px; }
.sfc-cd__sidebar-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 2px 8px rgba(13,61,45,0.06);
}
.sfc-cd__price-box {
    background: #F1F7F3;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 22px;
}
.sfc-cd__price-box span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #5C6E64;
    margin-bottom: 4px;
}
.sfc-cd__price-box del {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #A2ADA6;
    margin-bottom: 2px;
}
.sfc-cd__price-box h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #0D2A1D;
    margin: 0;
}
.sfc-cd__price-sub {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #5C6E64;
    margin-top: 4px;
}
.sfc-cd__includes h5,
.sfc-cd__share h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0D2A1D;
    margin: 0 0 14px;
}
.sfc-cd__includes ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.sfc-cd__includes li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #F0F3F1;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
}
.sfc-cd__includes li:last-child { border-bottom: none; }
.sfc-cd__includes-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #4B5D54;
    font-weight: 600;
}
.sfc-cd__includes-label svg { color: #8FA79A; }
.sfc-cd__includes-value {
    color: #0D2A1D;
    font-weight: 700;
}
.sfc-cd__pill {
    background: #DFF3E7;
    color: #18A167;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-left: 4px;
}
.sfc-cd__share { padding-top: 4px; margin-bottom: 22px; }
.sfc-cd__share .shareon { justify-content: flex-start; }

/* Instagram / TikTok / Threads: no public "share URL" intent exists for these
   networks, so these icons copy the page link instead (see sfc-share-copy handler). */
.shareon > .instagram {
    cursor: pointer;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.shareon > .instagram:before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3e%3crect x='2' y='2' width='20' height='20' rx='5' stroke='%23fff' stroke-width='2'/%3e%3ccircle cx='12' cy='12' r='4' stroke='%23fff' stroke-width='2'/%3e%3ccircle cx='17.5' cy='6.5' r='1' fill='%23fff'/%3e%3c/svg%3e");
}
.shareon > .tiktok {
    cursor: pointer;
    background-color: #000;
}
.shareon > .tiktok:before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18' fill='none'%3e%3cpath d='M11 1C11 1 11.5 4 15 4V7C15 7 12.5 6.5 11 5V12C11 14.76 8.76 17 6 17C3.24 17 1 14.76 1 12C1 9.24 3.24 7 6 7C6.34 7 6.67 7.03 7 7.09V10.18C6.69 10.07 6.35 10 6 10C4.9 10 4 10.9 4 12C4 13.1 4.9 14 6 14C7.1 14 8 13.1 8 12V1H11Z' fill='%23fff'/%3e%3c/svg%3e");
}
.shareon > .threads {
    cursor: pointer;
    background-color: #000;
}
.shareon > .threads:before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3ctext x='12' y='17' font-size='16' font-weight='700' font-family='Arial,sans-serif' fill='%23fff' text-anchor='middle'%3e@%3c/text%3e%3c/svg%3e");
}
.shareon > .sfc-share-copy.done {
    background-color: #18a167 !important;
}

.sfc-cd__enroll { display: flex; flex-direction: column; gap: 10px; }
.sfc-cd__cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0D3D2D;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s;
}
.sfc-cd__cart-btn:hover { background: #1B7A47; color: #fff; }
.sfc-cd__cart-btn.add-to-class-replay-cart { background: #18A167; }
.sfc-cd__cart-btn.add-to-class-replay-cart:hover { background: #0D3D2D; }
.sfc-cd__cart-btn.sfc-course-buy-now { background: #18A167; }
.sfc-cd__cart-btn.sfc-course-buy-now:hover { background: #0D3D2D; }
.sfc-cd__gift-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #18A167;
    border: 1.5px solid #DFF3E7;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
}

.sfc-cd__limited {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #E4F5EC;
    border-radius: 16px;
    padding: 18px 20px;
    margin-top: 18px;
}
.sfc-cd__limited svg { flex: 0 0 auto; color: #18A167; margin-top: 2px; }
.sfc-cd__limited strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #0D2A1D;
    margin-bottom: 4px;
}
.sfc-cd__limited p {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    line-height: 1.6;
    color: #3D5B4E;
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .sfc-cd__layout { grid-template-columns: 1fr; }
    .sfc-cd__sidebar { position: static; margin-top: 8px; }
    .sfc-cd__hero-card { padding: 16px 22px; }
    .sfc-cd__hero-card h2 { font-size: 18px; }
    .sfc-cd__title { font-size: 26px; }
    .sfc-cd__features { grid-template-columns: 1fr; }
    .sfc-cd__creator { flex-direction: column; }
}
@media (max-width: 575px) {
    .sfc-cd__tabs { gap: 18px; overflow-x: auto; }
    .sfc-cd__info-row { gap: 16px; }
    .sfc-cd__card { padding: 22px; }
}

