/* ============================================================
   SkillForCuan Custom CSS — override layer on top of main.css
   ============================================================ */

/* ---- Password field with eye toggle ---- */
.sfc-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.sfc-password-wrap input[type="password"],
.sfc-password-wrap input[type="text"] {
    flex: 1;
    padding-right: 44px !important;
}
.sfc-eye-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #9a9a9a;
    font-size: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.sfc-eye-btn:hover { color: #555; }

/* ---- E-Course Hero ---- */
.sfc-ecourse-hero {
    padding: 56px 0 40px;
    background: #fff;
    text-align: center;
}

.sfc-video-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #E8F5EE;
    color: #1B7A47;
    border: 1px solid #B8DFC9;
    border-radius: 100px;
    padding: 6px 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.sfc-hero-title {
    font-size: 52px;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    margin-bottom: 14px;
    letter-spacing: -1px;
}

.sfc-hero-desc {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 28px;
}

.sfc-hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #18A167;
    color: #fff;
    border-radius: 100px;
    padding: 13px 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.sfc-hero-cta-btn:hover {
    background: #0D3D24;
    color: #fff;
    transform: translateY(-1px);
}

/* ---- Courses Main Section ---- */
.sfc-courses-main {
    background: #F3F4F6;
    padding: 48px 0 80px;
}

/* ---- Filter Section Wrapper ---- */
.sfc-courses-filter {
    background: #fff;
    padding: 24px 0;
}

/* ---- Filter Row (Search + Sort) ---- */
.sfc-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}

.sfc-search-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.sfc-search-icon {
    position: absolute;
    left: 10px;
    color: #9CA3AF;
    font-size: 13px;
    pointer-events: none;
}

.sfc-search-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 6px 12px 6px 34px;
    font-size: 14px;
    color: #111827;
    background: transparent;
}

.sfc-search-input::placeholder {
    color: #9CA3AF;
}

.sfc-sort-wrap {
    flex-shrink: 0;
}

.sfc-sort-select {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    cursor: pointer;
    outline: none;
    min-width: 130px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* ---- Category Pills ---- */
.sfc-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sfc-pill {
    border: 1px solid #D1D5DB;
    border-radius: 100px;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
    line-height: 1;
}

.sfc-pill:hover:not(.active) {
    border-color: #1B3A2D;
    color: #1B3A2D;
    background: #F0FAF4;
}

.sfc-pill.active {
    background: #1B3A2D;
    border-color: #1B3A2D;
    color: #fff;
    font-weight: 600;
}

/* ---- Course Count Label ---- */
.sfc-count-text {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 16px;
}

/* ---- Courses / Class Replay Grid Section ---- */
.sfc-courses-bg,
.sfc-courses-main {
    background: #F5F4F2;
    padding: 32px 0 64px;
}
/* Tighten the gap to the pricing section on /class-replay specifically */
.sfc-courses-bg:has(+ .sfc-pricing) {
    padding-bottom: 32px;
}

/* ---- Learning Series / Class Replay Card ---- */
.sfc-ls-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.2s, transform 0.2s;
}
.sfc-ls-card:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.13);
    transform: translateY(-4px);
}

.sfc-ls-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 690 / 420;
    height: auto;
    flex-shrink: 0;
    background: #0D3D24;
    overflow: hidden;
}
.sfc-ls-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.sfc-ls-play-ring {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(24, 161, 103, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sfc-ls-play-circle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sfc-ls-badge {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 1;
    background: #18A167;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    line-height: 1;
}
.sfc-ls-badge--coming-soon {
    background: #A7F0E1;
    color: #0F6B57;
}
.sfc-ls-wishlist {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    font-size: 14px;
    transition: color 0.15s;
}
.sfc-ls-wishlist:hover,
.sfc-ls-wishlist .fas.fa-heart {
    color: #E11D48;
}

.sfc-ls-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 16px;
    flex: 1;
    min-width: 0;
}
.sfc-ls-category {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #18A167;
}
.sfc-ls-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: #1A1A1A;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sfc-ls-thumb--disabled {
    cursor: default;
}
.sfc-ls-title--disabled {
    cursor: default;
    color: #1A1A1A;
}
.sfc-ls-title a {
    color: inherit;
    text-decoration: none !important;
}
.sfc-ls-title a:hover {
    color: #18A167;
}
.sfc-ls-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.sfc-ls-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9B9B95;
    white-space: nowrap;
}
.sfc-ls-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}
.sfc-ls-rating-num {
    font-size: 12px;
    font-weight: 600;
    color: #1A1A1A;
}
.sfc-ls-rating-count {
    font-size: 12px;
    color: #9B9B95;
}
.sfc-ls-rating-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #D1D1CB;
    flex-shrink: 0;
    margin: 0 2px 0 auto;
}
.sfc-ls-rating .sfc-ls-avatar {
    width: 20px;
    height: 20px;
    font-size: 9px;
}
.sfc-ls-rating .sfc-ls-instructor-name {
    font-size: 12px;
    color: #6B6B65;
}
.sfc-ls-divider {
    margin: 0;
    border: none;
    border-top: 1px solid #F0EDE8;
}
.sfc-ls-footer {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.sfc-ls-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.sfc-ls-price-old {
    font-size: 11px;
    color: #BCBCB8;
    text-decoration: line-through;
}
.sfc-ls-price {
    font-size: 17px;
    font-weight: 700;
    color: #18A167;
    white-space: nowrap;
}
.sfc-ls-instructor {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin-left: auto;
}
.sfc-ls-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0D3D24;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sfc-ls-instructor-name {
    font-size: 12px;
    color: #4A4A45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sfc-ls-footer--stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}
.sfc-ls-access-btn {
    display: block;
    flex: 1;
    text-align: center;
    padding: 9px 16px;
    border-radius: 8px;
    background: #0D3D24;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s;
}
.sfc-ls-access-btn:hover {
    background: #18A167;
    color: #fff;
}
.sfc-ls-access-btn--disabled {
    background: #E5E7EB;
    color: #9B9B95;
    cursor: not-allowed;
}
.sfc-ls-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9B9B95;
    font-size: 14px;
}

/* ---- Load More Button ---- */
.sfc-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.sfc-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #0D3D24;
    border-radius: 100px;
    padding: 14px 36px;
    color: #0D3D24;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
}
.sfc-load-more-btn:hover {
    background: #0D3D24;
    color: #fff;
}
.sfc-load-more-btn:hover svg path {
    stroke: #fff;
}

/* ---- Course Card ---- */
.sfc-course-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.sfc-course-card:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.13);
    transform: translateY(-4px);
}

/* Thumbnail */
.sfc-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0D2118;
    overflow: hidden;
    flex-shrink: 0;
}

.sfc-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.sfc-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    transition: opacity 0.3s;
}

.sfc-course-card:hover .sfc-thumb-img {
    opacity: 0.72;
}

.sfc-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.sfc-play-btn {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    padding-left: 3px;
    transition: background 0.2s, transform 0.2s;
}

.sfc-course-card:hover .sfc-play-btn {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}

/* Badge */
.sfc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 100px;
    background: #2FBF71;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
}

/* Wishlist button */
.sfc-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1;
    transition: color 0.2s;
}

.sfc-wishlist-btn:hover {
    color: #ff6b6b;
}

/* Card Content */
.sfc-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sfc-card-category {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1B7A47;
    text-transform: uppercase;
}

.sfc-card-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.45;
    color: #111827;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sfc-card-title a {
    color: inherit;
    text-decoration: none;
}

.sfc-card-title a:hover {
    color: #1B7A47;
}

.sfc-card-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #6B7280;
    flex-wrap: wrap;
    margin-top: 2px;
}

.sfc-card-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sfc-card-stats i {
    font-size: 11px;
    color: #9CA3AF;
}

/* Card Footer */
.sfc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #F3F4F6;
}

.sfc-price {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.sfc-price-old {
    font-size: 12px;
    color: #9CA3AF;
    text-decoration: line-through;
    margin-left: 5px;
}

.sfc-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sfc-cart-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #F3F4F6;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.sfc-cart-btn:hover {
    background: #1B3A2D;
    color: #fff;
}

.sfc-instructor-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1B3A2D;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- Pagination overrides ---- */
.sfc-courses-main .pagination-wrap {
    display: flex;
    justify-content: center;
}

.sfc-courses-main .pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.sfc-courses-main .pagination .page-item .page-link,
.sfc-courses-main .pagination .page-item span {
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    text-decoration: none;
    transition: all 0.15s;
}

.sfc-courses-main .pagination .page-item.active .page-link {
    background: #1B3A2D;
    border-color: #1B3A2D;
    color: #fff;
}

.sfc-courses-main .pagination .page-item .page-link:hover {
    background: #F0FAF4;
    border-color: #1B3A2D;
    color: #1B3A2D;
}

.sfc-courses-main .pagination .page-item.disabled span {
    opacity: 0.4;
    cursor: default;
}

