/* =========================================================
   scoobianxAcademy — site.css
   Bootstrap 5 based theme, matching reference design
   ========================================================= */
@media (min-width: 1400px) {
    .container {
        max-width: 1490px;
    }
}

:root {
    --sa-green-dark: #0f6b3e;
    --sa-green: #1c8a4f;
    --sa-green-light: #e7f3ea;
    --sa-green-pale: #dcefe2;
    --sa-text-dark: #1c2b25;
    --sa-text-muted: #6b7770;
    --sa-border: #e6e8e6;
    --sa-yellow: #f5a623;
    --sa-radius: 10px;
    --sa-radius-lg: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    color: var(--sa-text-dark);
    background-color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
    text-decoration: none;
}

/* ---------- Top Navbar ---------- */
.sa-navbar {
    border-bottom: 1px solid var(--sa-border);
    padding: 0.85rem 0;
    background: #fff;
}

.sa-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--sa-text-dark) !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

    .sa-brand .sa-logo-icon {
        color: var(--sa-green);
        font-size: 1.4rem;
    }

.sa-navbar .nav-link {
    color: var(--sa-text-dark);
    font-size: 0.92rem;
    font-weight: 500;
}

    .sa-navbar .nav-link.dropdown-toggle::after {
        vertical-align: 0.15em;
    }

.sa-search-form {
    max-width: 480px;
    width: 100%;
}

    .sa-search-form .form-control {
        border-right: none;
        border-radius: var(--sa-radius) 0 0 var(--sa-radius);
        font-size: 0.9rem;
    }

    .sa-search-form .btn-search {
        background: var(--sa-green-dark);
        border: 1px solid var(--sa-green-dark);
        color: #fff;
        border-radius: 0 var(--sa-radius) var(--sa-radius) 0;
        padding-inline: 0.9rem;
    }

.btn-sa-outline {
    border: 1px solid var(--sa-border);
    color: var(--sa-text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--sa-radius);
    padding: 0.4rem 1.1rem;
}

.btn-sa-primary {
    background: var(--sa-green-dark);
    border: 1px solid var(--sa-green-dark);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--sa-radius);
    padding: 0.4rem 1.1rem;
}

    .btn-sa-primary:hover {
        background: var(--sa-green);
        color: #fff;
    }

.sa-cart-icon {
    font-size: 1.15rem;
    color: var(--sa-text-dark);
}

.sa-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--sa-green-pale);
    color: var(--sa-green-dark);
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sa-user-menu::after {
    vertical-align: 0.15em;
}

/* ---------- Hero Section ---------- */
.sa-hero {
    background: linear-gradient(135deg, var(--sa-green-light) 0%, #f3f8f2 60%);
    border-radius: var(--sa-radius-lg);
    overflow: hidden;
    position: relative;
}

.sa-hero-inner {
    padding: 3rem 2.5rem;
}

.sa-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--sa-green-dark);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
}

    .sa-live-badge .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #fff;
        display: inline-block;
    }

.sa-hero h1 {
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1.15;
    margin-top: 1rem;
}

.sa-hero p.lead {
    color: var(--sa-text-muted);
    font-size: 1.02rem;
    max-width: 480px;
}

.sa-hero-img-wrap {
    position: relative;
    height: 100%;
    min-height: 340px;
}

    .sa-hero-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0 var(--sa-radius-lg) var(--sa-radius-lg) 0;
    }

.sa-feature-card {
    background: #fff;
    border-radius: var(--sa-radius);
    box-shadow: 0 6px 18px rgba(20, 40, 30, 0.08);
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    position: absolute;
    min-width: 210px;
}

    .sa-feature-card .icon-badge {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: var(--sa-green-pale);
        color: var(--sa-green-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .sa-feature-card .fc-title {
        font-weight: 700;
        font-size: 0.82rem;
        margin: 0;
        line-height: 1.2;
    }

    .sa-feature-card .fc-sub {
        font-size: 0.74rem;
        color: var(--sa-text-muted);
        margin: 0;
    }

.fc-1 {
    top: 8%;
    right: 3%;
}

.fc-2 {
    top: 42%;
    right: -2%;
}

.fc-3 {
    top: 74%;
    right: 4%;
}

.sa-hero-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--sa-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sa-text-dark);
}

.sa-hero-dots {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

    .sa-hero-dots .d {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #c9d3cd;
    }

        .sa-hero-dots .d.active {
            background: var(--sa-green-dark);
            width: 16px;
            border-radius: 4px;
        }

/* ---------- Category strip ---------- */
.sa-category-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.sa-category-item {
    flex: 0 0 auto;
    width: 128px;
    background: #f7f8f7;
    border-radius: var(--sa-radius);
    padding: 1.1rem 0.6rem;
    text-align: center;
    color: var(--sa-text-dark);
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.15s ease;
}

    .sa-category-item:hover {
        background: var(--sa-green-light);
        color: var(--sa-text-dark);
        transform: translateY(-2px);
    }

    .sa-category-item .cat-icon {
        font-size: 1.4rem;
        display: block;
        margin-bottom: 0.5rem;
        color: var(--sa-green-dark);
    }

/* ---------- Section headers ---------- */
.sa-section-title {
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 0;
}

.sa-view-all {
    color: var(--sa-green-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ---------- Course Cards ---------- */
.sa-course-card {
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius-lg);
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    background: #fff;
}

    .sa-course-card:hover {
        box-shadow: 0 10px 24px rgba(20, 40, 30, 0.12);
        transform: translateY(-3px);
    }

.sa-course-thumb {
    position: relative;
    height: 140px;
    background-size: cover;
    background-position: center;
}

    .sa-course-thumb .sa-live-badge {
        position: absolute;
        top: 0.6rem;
        left: 0.6rem;
    }

.sa-course-body {
    padding: 0.9rem 1rem 1.1rem;
}

.sa-course-title {
    font-weight: 700;
    font-size: 0.96rem;
    margin-bottom: 0.35rem;
    color: var(--sa-text-dark);
}

.sa-instructor {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--sa-text-muted);
    margin-bottom: 0.4rem;
}

    .sa-instructor .avatar {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--sa-green-pale);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.6rem;
        color: var(--sa-green-dark);
        font-weight: 700;
    }

.sa-course-schedule {
    font-size: 0.78rem;
    color: var(--sa-text-muted);
    margin-bottom: 0.6rem;
}

.sa-course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.sa-price {
    font-weight: 800;
    color: var(--sa-text-dark);
}

.sa-rating {
    color: var(--sa-text-muted);
    font-weight: 600;
}

    .sa-rating .star {
        color: var(--sa-yellow);
    }

.sa-status-live {
    color: var(--sa-green-dark);
    font-weight: 700;
    font-size: 0.76rem;
}

.sa-status-starts {
    color: var(--sa-text-muted);
    font-weight: 600;
    font-size: 0.76rem;
}

/* ---------- Slider arrows for popular courses ---------- */
.sa-slider-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--sa-border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sa-text-dark);
}

/* ---------- All Courses Page Header ---------- */
.sa-page-header {
    padding: 1.6rem 0 1rem;
}

    .sa-page-header h2 {
        font-weight: 800;
        font-size: 1.7rem;
        margin-bottom: 0.2rem;
    }

    .sa-page-header p {
        color: var(--sa-text-muted);
        font-size: 0.92rem;
        margin-bottom: 0;
    }

.sa-sort-select {
    max-width: 220px;
    font-size: 0.88rem;
    border-radius: var(--sa-radius);
}

/* ---------- Filter chips ---------- */
.sa-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.sa-chip {
    flex: 0 0 auto;
    border: 1px solid var(--sa-border);
    background: #fff;
    color: var(--sa-text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    transition: all 0.15s ease;
}

    .sa-chip.active,
    .sa-chip:hover {
        background: var(--sa-green-dark);
        border-color: var(--sa-green-dark);
        color: #fff;
    }

.sa-chip-filter {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ---------- Footer ---------- */
.sa-footer {
    background: #0c3d24;
    color: #d7e7dd;
    padding-top: 3rem;
    margin-top: 3rem;
}

    .sa-footer .sa-brand {
        color: #fff !important;
    }

    .sa-footer h6 {
        color: #fff;
        font-weight: 700;
        font-size: 0.92rem;
        margin-bottom: 1rem;
    }

    .sa-footer a {
        color: #b7d0c1;
        font-size: 0.88rem;
        display: block;
        margin-bottom: 0.55rem;
    }

        .sa-footer a:hover {
            color: #fff;
        }

    .sa-footer p.sa-footer-desc {
        color: #b7d0c1;
        font-size: 0.88rem;
        max-width: 260px;
    }

.sa-footer-social a {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.sa-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 2rem;
    padding: 1.1rem 0;
    font-size: 0.82rem;
    color: #9fbcae;
}

    .sa-footer-bottom a {
        display: inline;
        color: #9fbcae;
        margin: 0 0 0 1.2rem;
    }

/* =========================================================
   My Courses — student dashboard
   ========================================================= */

.sa-mc-header {
    padding: 2rem 0 0;
}

    .sa-mc-header h1 {
        font-weight: 800;
        font-size: 1.9rem;
        margin-bottom: 0.2rem;
    }

    .sa-mc-header p {
        color: var(--sa-text-muted);
        font-size: 0.92rem;
        margin-bottom: 0;
    }

.sa-stat-card {
    background: var(--sa-green-light);
    border-radius: var(--sa-radius-lg);
    padding: 1.1rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.sa-stat-label {
    font-size: 0.8rem;
    color: var(--sa-text-muted);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.sa-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sa-green-dark);
}

    .sa-stat-value.pending {
        color: #e07a1f;
    }

/* ---------- Tabs ---------- */
.sa-mc-tabs {
    border-bottom: 1px solid var(--sa-border);
    display: flex;
    gap: 2rem;
    margin-top: 1.75rem;
}

.sa-mc-tab {
    border: none;
    background: none;
    padding: 0 0 0.9rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--sa-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

    .sa-mc-tab.active {
        color: var(--sa-green-dark);
        border-bottom-color: var(--sa-green-dark);
    }

/* ---------- Enrolled courses table ---------- */
.sa-mc-table-wrap {
    overflow-x: auto;
}

.sa-mc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 920px;
}

    .sa-mc-table thead th {
        text-align: left;
        font-size: 0.78rem;
        text-transform: none;
        color: var(--sa-text-muted);
        font-weight: 700;
        padding: 0.9rem 0.75rem;
        border-bottom: 1px solid var(--sa-border);
        white-space: nowrap;
    }

    .sa-mc-table tbody td {
        padding: 1rem 0.75rem;
        border-bottom: 1px solid var(--sa-border);
        vertical-align: middle;
        font-size: 0.88rem;
    }

    .sa-mc-table tbody tr:last-child td {
        border-bottom: none;
    }

.sa-mc-course-cell {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.sa-mc-thumb {
    width: 88px;
    height: 56px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.sa-mc-course-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--sa-text-dark);
}

.sa-mc-tag-live {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--sa-green-light);
    color: var(--sa-green-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

.sa-mc-instructor {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

    .sa-mc-instructor img {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        object-fit: cover;
    }

.sa-mc-instructor-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--sa-text-dark);
    margin-bottom: 0.1rem;
}

.sa-mc-instructor-role {
    font-size: 0.76rem;
    color: var(--sa-text-muted);
}

.sa-mc-session {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

    .sa-mc-session .session-date {
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .sa-mc-session .session-sub {
        font-size: 0.76rem;
        color: var(--sa-text-muted);
    }

    .sa-mc-session.live .session-date {
        color: var(--sa-green-dark);
    }

    .sa-mc-session.live .session-sub {
        color: var(--sa-green-dark);
        font-weight: 600;
        cursor: pointer;
    }

.sa-mc-payment-amount {
    font-weight: 700;
    color: var(--sa-text-dark);
    display: block;
}

.sa-mc-payment-status {
    font-size: 0.78rem;
    color: var(--sa-green-dark);
    font-weight: 600;
}

.sa-status-pill {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    display: inline-block;
}

    .sa-status-pill.confirmed {
        background: var(--sa-green-light);
        color: var(--sa-green-dark);
        border-color: #c7e4cf;
    }

    .sa-status-pill.in-progress {
        background: #eaf2fc;
        color: #2563a8;
        border-color: #cfe2f6;
    }

.btn-sa-details {
    border: 1px solid var(--sa-border);
    background: #fff;
    color: var(--sa-text-dark);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--sa-radius);
    white-space: nowrap;
}

.btn-sa-join {
    border: 1px solid var(--sa-green-dark);
    background: var(--sa-green-dark);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.35rem 1.1rem;
    border-radius: var(--sa-radius);
    white-space: nowrap;
}

    .btn-sa-join:hover {
        background: var(--sa-green);
        color: #fff;
    }

/* ---------- Payment summary + transactions ---------- */
.sa-payment-summary-card {
    background: var(--sa-green-light);
    border-radius: var(--sa-radius-lg);
    padding: 1.6rem 1.8rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .sa-payment-summary-card h5 {
        font-weight: 800;
        font-size: 1.05rem;
        margin-bottom: 1.3rem;
    }

    .sa-payment-summary-card .figure {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--sa-green-dark);
        margin-bottom: 0.1rem;
    }

        .sa-payment-summary-card .figure.pending {
            color: var(--sa-text-dark);
        }

    .sa-payment-summary-card .figure-label {
        font-size: 0.82rem;
        color: var(--sa-text-muted);
        font-weight: 600;
    }

.sa-wallet-illustration {
    position: absolute;
    right: 1.2rem;
    bottom: 1rem;
    font-size: 4.5rem;
    color: var(--sa-green);
    opacity: 0.85;
}

.sa-transactions-card {
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius-lg);
    padding: 1.4rem 1.6rem;
    height: 100%;
}

    .sa-transactions-card h5 {
        font-weight: 800;
        font-size: 1.05rem;
        margin-bottom: 0;
    }

.sa-transaction-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--sa-border);
}

    .sa-transaction-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.sa-transaction-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--sa-green-light);
    color: var(--sa-green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.sa-transaction-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--sa-text-dark);
    margin-bottom: 0.1rem;
}

.sa-transaction-date {
    font-size: 0.78rem;
    color: var(--sa-text-muted);
}

.sa-transaction-amount {
    font-weight: 700;
    font-size: 0.88rem;
    margin-left: auto;
    margin-right: 1.2rem;
    white-space: nowrap;
}

.sa-transaction-receipt {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sa-green-dark);
    white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .sa-hero h1 {
        font-size: 2rem;
    }

    .sa-feature-card {
        position: static;
        margin-bottom: 0.7rem;
        min-width: 0;
    }

    .sa-hero-img-wrap {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .sa-hero-inner {
        padding: 2rem 1.25rem;
    }

    .sa-category-item {
        width: 100px;
    }
}
