*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --font: 'Plus Jakarta Sans', sans-serif;
    --blue: #2563EB;
    --blue2: #3B82F6;
    --blue3: #60A5FA;
    --blue-light: #EFF6FF;
    --blue-mid: #DBEAFE;
    --black: #111111;
    --gray-dark: #374151;
    --gray: #6B7280;
    --gray-light: #9CA3AF;
    --border: #E5E7EB;
    --border2: #D1D5DB;
    --bg: #FFFFFF;
    --bg2: #F9FAFB;
    --bg3: #F3F4F6;
    --grad: linear-gradient(135deg, #1D4ED8, #3B82F6);
    --grad-text: linear-gradient(135deg, #1D4ED8, #60A5FA);
    --text: #111111;
    --text2: #374151;
    --text3: #6B7280;
}

html, body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--blue);
    text-decoration: none;
}

    a:hover {
        opacity: .8;
    }

/* ── Navbar ── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

    .navbar-logo-text .logo-main {
        font-size: 18px;
        font-weight: 700;
        color: var(--black);
        letter-spacing: .04em;
    }

    .navbar-logo-text .logo-amharic {
        font-size: 10px;
        color: var(--blue2);
        opacity: .8;
    }

.navbar-links {
    display: flex;
    gap: 28px;
    font-size: 14px;
    list-style: none;
}

    .navbar-links a {
        color: var(--text2);
        transition: color .2s;
        font-weight: 500;
    }

        .navbar-links a:hover {
            color: var(--blue);
            opacity: 1;
        }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font);
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap;
}

    .btn:hover {
        transform: translateY(-1px);
        opacity: 1;
    }

    .btn:active {
        transform: translateY(0);
    }

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,.3);
}

    .btn-primary:hover {
        background: #1D4ED8;
        box-shadow: 0 4px 16px rgba(37,99,235,.4);
    }

.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
}

    .btn-outline:hover {
        background: var(--blue-light);
    }

.btn-ghost {
    background: transparent;
    color: var(--text2);
    border: 1px solid var(--border2);
}

    .btn-ghost:hover {
        background: var(--bg3);
        border-color: var(--blue2);
        color: var(--blue);
    }

.btn-lg {
    padding: 13px 32px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ── Hero ── */
.hero-section {
    background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 50%, #2563EB 100%);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

.hero-content {
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: .04em;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #fff;
    margin-bottom: 16px;
}

.hero-amharic {
    font-size: 15px;
    color: rgba(255,255,255,.7);
    margin-bottom: 16px;
}

.hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,.85);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-white {
    background: #fff;
    color: var(--blue);
    font-weight: 700;
}

    .btn-white:hover {
        background: var(--blue-light);
    }

.btn-white-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.6);
}

    .btn-white-outline:hover {
        background: rgba(255,255,255,.1);
    }

/* ── Stats bar ── */
.stats-bar {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 20px 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--blue);
}

.stat-lbl {
    font-size: 13px;
    color: var(--text3);
    font-weight: 500;
}

.stat-div {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* ── Courses section ── */
.courses-section {
    padding: 64px 40px;
    background: var(--bg);
}

.section-header {
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

.section-sub {
    font-size: 14px;
    color: var(--text3);
}

/* Udemy-style course grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
}

.course-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

    .course-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0,0,0,.1);
        border-color: var(--blue2);
        opacity: 1;
    }

.course-thumb {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--blue-light);
}

    .course-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.course-thumb-icon {
    font-size: 56px;
    color: var(--blue2);
    opacity: .4;
}

.coming-soon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

.course-info {
    padding: 16px;
}

.course-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 6px;
    line-height: 1.4;
}

.course-desc {
    font-size: 13px;
    color: var(--text3);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.course-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
}

.tag-beginner {
    background: var(--blue-light);
    color: var(--blue);
}

.tag-inter {
    background: #ECFDF5;
    color: #059669;
}

.tag-advanced {
    background: #FEF3C7;
    color: #D97706;
}

.tag-all {
    background: var(--bg3);
    color: var(--text3);
}

.tag-soon {
    background: var(--bg3);
    color: var(--text3);
}

.course-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue);
}

.course-lessons {
    font-size: 12px;
    color: var(--text3);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Course detail page ── */
.course-hero {
    background: linear-gradient(135deg, #1E3A8A, #1D4ED8);
    padding: 48px 40px;
    color: #fff;
}

.course-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.course-breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-hero-title {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.course-hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,.8);
    line-height: 1.75;
    margin-bottom: 20px;
}

.course-hero-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,.7);
}

.course-purchase-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.course-preview-thumb {
    height: 180px;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .course-preview-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--blue);
    cursor: pointer;
    transition: transform .2s;
}

    .play-btn:hover {
        transform: scale(1.1);
    }

.purchase-info {
    padding: 20px;
}

.purchase-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}

.purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.purchase-features {
    list-style: none;
    font-size: 13px;
    color: var(--text2);
}

    .purchase-features li {
        padding: 6px 0;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .purchase-features li:last-child {
            border-bottom: none;
        }

    .purchase-features i {
        color: var(--blue);
        font-size: 14px;
    }

/* ── Course content (curriculum) ── */
.course-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.curriculum-section {
    margin-bottom: 36px;
}

.curriculum-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
}

.what-you-learn {
    background: var(--blue-light);
    border: 1px solid var(--blue-mid);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

.wyl-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}

.wyl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wyl-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text2);
}

.wyl-check {
    color: var(--blue);
    flex-shrink: 0;
    font-size: 15px;
    margin-top: 1px;
}

.lesson-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color .2s, background .2s;
    cursor: pointer;
    text-decoration: none;
}

    .lesson-item:hover {
        border-color: var(--blue2);
        background: var(--blue-light);
        opacity: 1;
    }

    .lesson-item.locked {
        opacity: .65;
        cursor: default;
    }

        .lesson-item.locked:hover {
            border-color: var(--border);
            background: var(--bg2);
        }

.lesson-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lesson-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--blue);
    flex-shrink: 0;
}

    .lesson-icon.locked {
        background: var(--bg3);
        color: var(--text3);
    }

.lesson-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--text3);
}

.lesson-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
}

.lesson-duration {
    font-size: 12px;
    color: var(--text3);
    font-weight: 500;
}

/* ── How it works ── */
.how-section {
    padding: 64px 40px;
    background: var(--bg2);
    border-top: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
    max-width: 1100px;
}

.step-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 24px;
    transition: border-color .2s, box-shadow .2s;
}

    .step-card:hover {
        border-color: var(--blue2);
        box-shadow: 0 4px 16px rgba(37,99,235,.1);
    }

.step-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.step-icon {
    font-size: 28px;
    color: var(--blue);
    margin-bottom: 14px;
    display: block;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13px;
    color: var(--text3);
    line-height: 1.7;
}

/* ── CTA ── */
.cta-section {
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, #1E3A8A, #2563EB);
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}

.cta-sub {
    font-size: 16px;
    color: rgba(255,255,255,.8);
    margin-bottom: 16px;
}

.price-amount {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1;
}

.price-currency {
    font-size: 24px;
    color: rgba(255,255,255,.7);
    font-weight: 500;
}

.price-note {
    font-size: 14px;
    color: rgba(255,255,255,.6);
    display: block;
    margin-top: 8px;
    margin-bottom: 36px;
}

/* ── Footer ── */
.site-footer {
    padding: 32px 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--black);
}

.footer-copy {
    font-size: 13px;
    color: #9CA3AF;
}

.footer-links {
    display: flex;
    gap: 20px;
}

    .footer-links a {
        font-size: 13px;
        color: #9CA3AF;
        font-weight: 500;
        transition: color .2s;
    }

        .footer-links a:hover {
            color: #fff;
            opacity: 1;
        }

/* ── Split pages ── */
.split-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.split-art {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: linear-gradient(135deg, #1E3A8A, #2563EB);
}

.split-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    background: #fff;
    border-left: 1px solid var(--border);
}

.form-box {
    width: 100%;
    max-width: 380px;
}

.form-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    text-decoration: none;
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 6px;
    letter-spacing: -.02em;
}

.form-sub {
    font-size: 14px;
    color: var(--text3);
    margin-bottom: 32px;
}

.field {
    margin-bottom: 18px;
}

    .field label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: var(--text2);
        margin-bottom: 8px;
    }

    .field input, .field select {
        width: 100%;
        padding: 12px 14px;
        background: #fff;
        border: 1.5px solid var(--border2);
        border-radius: 6px;
        color: var(--black);
        font-size: 14px;
        font-family: var(--font);
        outline: none;
        transition: border-color .2s, box-shadow .2s;
    }

        .field input:focus, .field select:focus {
            border-color: var(--blue);
            box-shadow: 0 0 0 3px rgba(37,99,235,.1);
        }

        .field input::placeholder {
            color: var(--gray-light);
        }

        .field select option {
            background: #fff;
        }

.form-footer {
    text-align: center;
    font-size: 13px;
    color: var(--text3);
    margin-top: 20px;
}

    .form-footer a {
        color: var(--blue);
        font-weight: 600;
    }

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.alert-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
}

.alert-success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #059669;
}

/* ── Art side ── */
.art-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.art-rings {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
}

.ring-1 {
    width: 140px;
    height: 140px;
    border-color: rgba(255,255,255,.15);
    animation: rot 14s linear infinite;
}

.ring-2 {
    width: 100px;
    height: 100px;
    border-color: rgba(255,255,255,.3);
    animation: rot 9s linear infinite reverse;
}

.ring-3 {
    width: 62px;
    height: 62px;
    border-color: rgba(255,255,255,.6);
}

.ring-center {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 18px rgba(255,255,255,.5);
}

@keyframes rot {
    to {
        transform: rotate(360deg);
    }
}

.art-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 56px;
}

.art-bar {
    width: 5px;
    border-radius: 3px;
    background: rgba(255,255,255,.7);
    animation: wv 1.8s ease-in-out infinite;
}

@keyframes wv {
    0%,100% {
        transform: scaleY(1);
        opacity: .4
    }

    50% {
        transform: scaleY(2.2);
        opacity: 1
    }
}

.art-label {
    font-size: 15px;
    color: rgba(255,255,255,.7);
    text-align: center;
    line-height: 1.75;
}

    .art-label strong {
        color: #fff;
        font-weight: 600;
    }

.course-list-art {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 240px;
}

.cli {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    padding: 11px 16px;
}

.cli-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cli-text {
    font-size: 13px;
    color: rgba(255,255,255,.85);
    font-weight: 500;
}

/* ── Code input ── */
.code-segments {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.code-seg {
    flex: 1;
    padding: 16px 8px;
    background: var(--bg2);
    border: 1.5px solid var(--border2);
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    color: var(--text3);
    letter-spacing: .12em;
    font-family: var(--font);
    transition: all .2s;
}

    .code-seg.filled {
        border-color: var(--blue);
        background: var(--blue-light);
        color: var(--blue);
        box-shadow: 0 0 0 3px rgba(37,99,235,.1);
    }

.code-sep {
    color: var(--text3);
    font-size: 22px;
    flex-shrink: 0;
    font-weight: 300;
}

/* ── Dashboard ── */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--bg2);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    padding: 0 8px;
    text-decoration: none;
}

.sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .sidebar-nav a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        color: var(--text2);
        transition: all .2s;
        text-decoration: none;
    }

        .sidebar-nav a:hover, .sidebar-nav a.active {
            background: var(--blue-light);
            color: var(--blue);
            opacity: 1;
        }

.main-content {
    padding: 40px;
}

.page-header {
    margin-bottom: 32px;
}

    .page-header h1 {
        font-size: 26px;
        font-weight: 700;
        color: var(--black);
        margin-bottom: 4px;
        letter-spacing: -.02em;
    }

    .page-header p {
        font-size: 14px;
        color: var(--text3);
    }

/* ── Video player ── */
.video-player-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
    min-height: calc(100vh - 64px);
}

.video-main {
    background: var(--black);
}

.video-embed {
    width: 100%;
    aspect-ratio: 16/9;
}

    .video-embed iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

.video-info-bar {
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.video-info-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.video-info-meta {
    font-size: 13px;
    color: var(--text3);
}

.lesson-sidebar {
    background: #fff;
    border-left: 1px solid var(--border);
    overflow-y: auto;
    max-height: calc(100vh - 64px);
}

.lesson-sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.sidebar-lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
}

    .sidebar-lesson-item:hover {
        background: var(--blue-light);
    }

    .sidebar-lesson-item.active {
        background: var(--blue-light);
        border-left: 3px solid var(--blue);
    }

    .sidebar-lesson-item.locked {
        opacity: .55;
        cursor: default;
    }

        .sidebar-lesson-item.locked:hover {
            background: transparent;
        }

.sidebar-lesson-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--text3);
    min-width: 20px;
}

.sidebar-lesson-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
    flex: 1;
    line-height: 1.4;
}

.sidebar-lesson-dur {
    font-size: 11px;
    color: var(--text3);
    flex-shrink: 0;
}

/* ── Video grid (old dashboard) ── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

    .video-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0,0,0,.1);
    }

.video-thumb {
    position: relative;
    padding-top: 56.25%;
    background: var(--bg3);
}

    .video-thumb iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

.video-info {
    padding: 16px;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
}

.video-meta {
    font-size: 12px;
    color: var(--text3);
}

/* ── Admin panel ── */
.admin-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 60px;
    background: var(--black);
    border-bottom: 1px solid #1F2937;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .course-hero-inner {
        grid-template-columns: 1fr;
    }

    .course-purchase-card {
        display: none;
    }

    .course-body {
        grid-template-columns: 1fr;
    }

    .video-player-layout {
        grid-template-columns: 1fr;
    }

    .lesson-sidebar {
        max-height: 400px;
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
        height: 56px;
    }

    .navbar-links {
        display: none;
    }

    .hero-section {
        padding: 48px 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .courses-section {
        padding: 40px 16px;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .how-section {
        padding: 40px 16px;
    }

    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .cta-section {
        padding: 48px 20px;
    }

    .site-footer {
        padding: 24px 16px;
        flex-direction: column;
        text-align: center;
    }

    .split-page {
        grid-template-columns: 1fr;
    }

    .split-art {
        display: none;
    }

    .split-form {
        padding: 32px 24px;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 20px 16px;
    }

    .stats-bar {
        gap: 20px;
        padding: 16px;
    }

    .stat-div {
        display: none;
    }

    .wyl-grid {
        grid-template-columns: 1fr;
    }

    .course-hero {
        padding: 32px 20px;
    }

    .course-body {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .hero-actions .btn {
            justify-content: center;
        }
}
/* ── Mobile admin tab bar ── */
.mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 300;
    padding: 8px 0 12px;
}

.mobile-tab-bar-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mob-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text3);
    font-size: 10px;
    font-weight: 600;
    transition: all .2s;
    min-width: 56px;
}

    .mob-tab i {
        font-size: 20px;
    }

    .mob-tab.active {
        color: var(--blue);
    }

    .mob-tab:hover {
        color: var(--blue);
        opacity: 1;
    }

/* Mobile sidebar toggle */
.mobile-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: var(--blue);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(37,99,235,.4);
    cursor: pointer;
    z-index: 250;
    border: none;
}

@media (max-width: 768px) {
    .mobile-tab-bar {
        display: block;
    }

    .mobile-sidebar-toggle {
        display: flex;
    }

    /* Push content up so tab bar doesn't cover it */
    .main-content {
        padding-bottom: 80px;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

        /* Mobile overlay sidebar */
        .sidebar.mobile-open {
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            width: 260px;
            height: 100vh;
            z-index: 400;
            box-shadow: 4px 0 20px rgba(0,0,0,.15);
        }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 399;
    }

        .sidebar-overlay.active {
            display: block;
        }
}
/* ── Mobile global fixes ── */
@media (max-width: 768px) {

    /* Navbar */
    .navbar {
        padding: 0 16px;
        height: 56px;
        border-radius: 0;
        top: 0;
        width: 100%;
        left: 0;
        transform: none;
    }

    .navbar-links {
        display: none;
    }

    .navbar-logo-text .logo-main {
        font-size: 15px;
    }

    /* Hero */
    .hero-section {
        padding: 80px 20px 48px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-sub {
        font-size: 14px;
    }

    .hero-amharic {
        font-size: 13px;
    }

    .hero-actions {
        flex-direction: column;
    }

        .hero-actions .btn {
            width: 100%;
            justify-content: center;
        }

    /* Stats */
    .stats-bar {
        gap: 16px;
        padding: 16px 20px;
        justify-content: space-between;
    }

    .stat-div {
        display: none;
    }

    .stat-num {
        font-size: 18px;
    }

    .stat-lbl {
        font-size: 10px;
    }

    /* Courses */
    .courses-section {
        padding: 32px 16px 100px;
    }

    .section-title {
        font-size: 20px;
    }

    .course-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* How it works */
    .how-section {
        padding: 32px 16px 100px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .step-card {
        padding: 20px;
    }

    /* CTA */
    .cta-section {
        padding: 48px 20px 80px;
    }

    .cta-title {
        font-size: 24px;
    }

    .price-amount {
        font-size: 40px;
    }

    .cta-section .btn {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .site-footer {
        padding: 20px 16px 100px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    /* Split pages — register/login/activate/buy */
    .split-page {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    .split-art {
        display: none;
    }

    .split-form {
        padding: 80px 24px 40px;
        border-left: none;
        min-height: 100vh;
        align-items: flex-start;
    }

    .form-box {
        max-width: 100%;
    }

    .form-title {
        font-size: 22px;
    }

    /* Dashboard */
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 20px 16px 100px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    /* Admin pages */
    .admin-content {
        padding: 16px 16px 100px;
    }

    /* Course detail */
    .course-hero {
        padding: 80px 20px 32px;
    }

    .course-hero-inner {
        grid-template-columns: 1fr;
    }

    .course-purchase-card {
        display: none;
    }

    .course-body {
        padding: 24px 16px 100px;
        grid-template-columns: 1fr;
    }

    .wyl-grid {
        grid-template-columns: 1fr;
    }

    /* Course hero title */
    .course-hero-title {
        font-size: 22px;
    }

    .course-hero-desc {
        font-size: 13px;
    }

    /* Tables in admin */
    table {
        font-size: 12px;
    }

        table td, table th {
            padding: 8px 10px;
        }

    /* Forms in admin */
    .field input, .field select {
        font-size: 16px;
    }

    /* Buy page banks */
    .bank-tags {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Video player */
    .video-player-layout {
        grid-template-columns: 1fr;
    }

    .lesson-sidebar {
        max-height: 300px;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    /* Admin grid cards */
    .admin-grid-2 {
        grid-template-columns: 1fr !important;
    }

    .admin-grid-3 {
        grid-template-columns: 1fr !important;
    }

    .admin-grid-4 {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Bento cards */
    .bc-1, .bc-2, .bc-3, .bc-4, .bc-5 {
        grid-column: span 1 !important;
    }

    /* General spacing */
    h1 {
        font-size: 22px !important;
    }

    h2 {
        font-size: 18px !important;
    }
}

@media (max-width: 400px) {
    .navbar-logo-text .logo-main {
        font-size: 14px;
    }

    .hero-title {
        font-size: 24px;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .admin-grid-4 {
        grid-template-columns: 1fr !important;
    }
}
/* ── Split page mobile fix ── */
@media (max-width: 768px) {
    .split-page {
        display: block;
        min-height: 100vh;
    }

    .split-art {
        display: none !important;
    }

    .split-form {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 80px 24px 40px;
        border-left: none;
        min-height: 100vh;
        background: #fff;
    }

    .form-box {
        width: 100%;
        max-width: 100%;
    }

    /* Fix navbar on split pages */
    .split-page .navbar,
    nav.navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        border-radius: 0 !important;
        transform: none !important;
        max-width: 100% !important;
    }

    /* Code segments on activate page */
    .code-segments {
        flex-direction: row;
        gap: 6px;
    }

    .code-seg {
        font-size: 14px;
        padding: 12px 4px;
    }

    /* Buy page bank tags */
    div[style*="justify-content:center"][style*="gap:8px"] {
        flex-wrap: wrap;
        gap: 6px !important;
    }
}
v /* ── Admin mobile fix ── */
@media (max-width: 768px) {
    .dashboard-layout {
        display: block;
        min-height: 100vh;
    }

    .sidebar {
        display: none;
    }

        .sidebar.mobile-open {
            display: block !important;
            position: fixed;
            top: 0;
            left: 0;
            width: 260px;
            height: 100vh;
            z-index: 400;
            box-shadow: 4px 0 20px rgba(0,0,0,.15);
            overflow-y: auto;
        }

    .main-content {
        padding: 24px 16px 100px;
        width: 100%;
    }
    /* Admin stats grid */
    div[style*="grid-template-columns:repeat(4"] {
        grid-template-columns: 1fr 1fr !important;
    }

    div[style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr 1fr !important;
    }

    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    /* Admin tables */
    div[style*="overflow-x:auto"] {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Admin form cards */
    div[style*="max-width:700px"],
    div[style*="max-width:900px"],
    div[style*="max-width:560px"],
    div[style*="max-width:640px"] {
        max-width: 100% !important;
    }
    /* Admin videos grid */
    div[style*="grid-template-columns:380px 1fr"] {
        display: block !important;
    }

        div[style*="grid-template-columns:380px 1fr"] > div:first-child {
            position: static !important;
            margin-bottom: 20px;
        }
    /* Settings grid */
    div[style*="grid-template-columns:1fr 1fr;gap:20px;max-width:900px"] {
        grid-template-columns: 1fr !important;
    }
    /* Page header */
    .page-header h1 {
        font-size: 20px !important;
    }
    /* Mobile menu button position */
    .mobile-sidebar-toggle {
        bottom: 76px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    div[style*="grid-template-columns:repeat(4"] {
        grid-template-columns: 1fr 1fr !important;
    }

    .main-content {
        padding: 20px 12px 100px;
    }

    .form-title {
        font-size: 20px;
    }
}
/* ── Admin mobile fix ── */
@media (max-width: 768px) {
    .dashboard-layout {
        display: block;
        min-height: 100vh;
    }

    .sidebar {
        display: none;
    }

        .sidebar.mobile-open {
            display: block !important;
            position: fixed;
            top: 0;
            left: 0;
            width: 260px;
            height: 100vh;
            z-index: 400;
            box-shadow: 4px 0 20px rgba(0,0,0,.15);
            overflow-y: auto;
        }

    .main-content {
        padding: 24px 16px 100px;
        width: 100%;
    }

    /* Admin stats grid */
    div[style*="grid-template-columns:repeat(4"] {
        grid-template-columns: 1fr 1fr !important;
    }

    div[style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr 1fr !important;
    }

    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Admin tables */
    div[style*="overflow-x:auto"] {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Admin form cards */
    div[style*="max-width:700px"],
    div[style*="max-width:900px"],
    div[style*="max-width:560px"],
    div[style*="max-width:640px"] {
        max-width: 100% !important;
    }

    /* Admin videos grid */
    div[style*="grid-template-columns:380px 1fr"] {
        display: block !important;
    }

        div[style*="grid-template-columns:380px 1fr"] > div:first-child {
            position: static !important;
            margin-bottom: 20px;
        }

    /* Settings grid */
    div[style*="grid-template-columns:1fr 1fr;gap:20px;max-width:900px"] {
        grid-template-columns: 1fr !important;
    }

    /* Page header */
    .page-header h1 {
        font-size: 20px !important;
    }

    /* Mobile menu button position */
    .mobile-sidebar-toggle {
        bottom: 76px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    div[style*="grid-template-columns:repeat(4"] {
        grid-template-columns: 1fr 1fr !important;
    }

    .main-content {
        padding: 20px 12px 100px;
    }

    .form-title {
        font-size: 20px;
    }
}