/* Public shop: cart, checkout, course purchase bar */

.shop-flash {
    position: sticky;
    top: 0;
    z-index: 80;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}
.shop-flash--success { background: #e8f6ee; color: #1b6b3f; border-bottom: 1px solid #bfe3cd; }
.shop-flash--error   { background: #fdecec; color: #a52020; border-bottom: 1px solid #f5c6c6; }
.shop-flash--info    { background: #eaf2f7; color: #1d5a7a; border-bottom: 1px solid #c3dced; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 18px;
    border-radius: 22px;
    color: #0F3D2E !important;
    background: #C8A951;
    border: 2px solid #C8A951;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(200, 169, 81, 0.45);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.nav-cart i { font-size: 16px; color: #0F3D2E; }
.nav-cart:hover {
    background: #e0c36a;
    border-color: #e0c36a;
    color: #0F3D2E !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 169, 81, 0.55);
}
.nav-cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    color: #0F3D2E;
    border: 2px solid #0F3D2E;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .nav-actions { order: 3; }
    .nav-cart { padding: 8px 12px; }
    .nav-cart-label { display: none; }
}

.course-price {
    color: #0F3D2E;
    font-weight: 700;
    font-size: 18px;
    margin: 8px 0 0;
}
.course-grid-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}
.btn-add-cart {
    display: inline-block;
    width: 100%;
    padding: 11px;
    background: #0F3D2E;
    color: #fff !important;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
}
.btn-add-cart:hover { background: #1F6F5F; }

.enroll-cta {
    background: linear-gradient(135deg, #0F3D2E, #1F6F5F);
    color: #fff;
    padding: 36px 0;
}
.enroll-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.enroll-cta h2 { margin: 0 0 6px; font-family: 'Amiri', serif; color: #fff; }
.enroll-cta p { margin: 0; opacity: .9; }
.enroll-cta-price { font-size: 28px; font-weight: 800; color: #C8A951; }
.enroll-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.enroll-cta .btn-add-cart { width: auto; padding: 12px 22px; background: #C8A951; color: #0F3D2E !important; }
.enroll-cta .btn-add-cart:hover { background: #d4b76a; }
.btn-ghost-light {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.35);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
}

.shop-page { padding: 50px 0 80px; background: linear-gradient(to bottom, #fcfcfc, #f4f9f6); min-height: 50vh; }
.shop-page h1 { color: #0F3D2E; font-family: 'Amiri', serif; margin-bottom: 8px; }
.shop-lede { color: #555; margin-bottom: 28px; }

.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.cart-table th, .cart-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.cart-table th { background: #f7f3e8; color: #0F3D2E; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.cart-course { display: flex; align-items: center; gap: 14px; }
.cart-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(200,169,81,.15); color: #C8A951; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.cart-remove { background: none; border: 0; color: #a52020; cursor: pointer; font-size: 14px; }
.cart-summary { margin-top: 24px; background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.05); max-width: 420px; margin-left: auto; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.cart-summary .total { font-size: 22px; font-weight: 800; color: #0F3D2E; }
.btn-checkout {
    display: block; text-align: center; margin-top: 16px; padding: 14px;
    background: linear-gradient(135deg, #C8A951, #d4b76a); color: #0F3D2E !important;
    border-radius: 8px; font-weight: 800; text-decoration: none;
}

.checkout-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }

.bank-box, .checkout-form, .order-card {
    background: #fff; border-radius: 16px; padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05); border: 1px solid #f0f0f0;
}
.bank-box h3 { color: #0F3D2E; margin-top: 0; }
.bank-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #eee; font-size: 14px; align-items: center; }
.bank-row strong { color: #666; font-weight: 600; }
.bank-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 70%;
    text-align: right;
    color: #33403A;
    font-weight: 600;
}
.bank-value-text {
    word-break: break-all;
}
.bank-copy {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid #E4DFD2;
    border-radius: 8px;
    background: #FBF9F4;
    color: #0F3D2E;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.bank-copy:hover {
    background: #0F3D2E;
    color: #F5E6C4;
    border-color: #0F3D2E;
}
.bank-copy.is-copied {
    background: #1E7F4E;
    border-color: #1E7F4E;
    color: #fff;
}
.bank-note { margin-top: 16px; background: #f7f3e8; padding: 12px 14px; border-radius: 10px; font-size: 13px; color: #5c4a16; }

.checkout-form label { display: block; font-weight: 600; margin: 14px 0 6px; color: #0F3D2E; font-size: 14px; }
.checkout-form input[type=text], .checkout-form textarea, .checkout-form input[type=file] {
    width: 100%; padding: 11px 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit;
}
.checkout-form .is-invalid { border-color: #c0392b; }
.field-error { color: #c0392b; font-size: 13px; display: block; margin-top: 4px; }
.btn-place {
    margin-top: 18px; width: 100%; padding: 14px; border: 0; border-radius: 8px;
    background: #0F3D2E; color: #fff; font-weight: 800; cursor: pointer; font-size: 15px;
}
.btn-place:hover { background: #1F6F5F; }

.checkout-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    cursor: pointer;
}
.checkout-terms input { margin-top: 3px; flex-shrink: 0; }
.checkout-terms a { color: #1F6F5F; font-weight: 600; }

.shop-empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: 16px; }
.shop-empty i { font-size: 42px; color: #C8A951; }

form.shop-add-form { margin: 0; width: 100%; }
button.btn-purchase,
button.btn-trial {
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: center;
}

.syllabus-block {
    padding: 64px 0 40px;
    background: #fff;
    border-top: 1px solid #eee;
}
.syllabus-lede {
    text-align: center;
    color: #555;
    max-width: 640px;
    margin: 0 auto 22px;
}
.syllabus-teacher {
    text-align: center;
    font-weight: 600;
    color: #0F3D2E;
    margin-bottom: 22px;
}
.syllabus-teacher a { color: #1F6F5F; }
.syllabus-copy {
    max-width: 760px;
    margin: 0 auto 28px;
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap;
}
.syllabus-rich {
    white-space: normal;
}
.syllabus-rich p { margin: 0 0 12px; }
.syllabus-rich ul, .syllabus-rich ol { margin: 0 0 12px; padding-left: 1.3em; }

.course-outline {
    max-width: 960px;
    margin: 0 auto 28px;
}
.course-outline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.course-outline-title {
    margin: 0;
    color: #0F3D2E;
    font-size: 1.15rem;
}
.course-outline-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d7ddd9;
    color: #0F3D2E;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.course-outline-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(15, 61, 46, 0.08);
}
.course-outline-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    background: #fff;
}
.course-outline-table th,
.course-outline-table td {
    border: 1px solid #1a1a1a;
    padding: 11px 12px;
    vertical-align: top;
}
.course-outline-table thead th {
    background: #0F3D2E;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.course-outline-table thead th.col-ur,
.course-outline-table thead th.col-ar {
    text-transform: none;
    letter-spacing: 0;
    font-size: 15px;
    font-family: "Noto Nastaliq Urdu", "Noto Sans Arabic", "Segoe UI", serif;
}
.course-outline-table .col-no {
    width: 56px;
    text-align: center;
    font-weight: 700;
}
.course-outline-table .col-ur,
.course-outline-table .col-ar {
    direction: rtl;
    text-align: right;
    font-family: "Noto Nastaliq Urdu", "Noto Sans Arabic", "Segoe UI", serif;
    font-size: 15px;
    line-height: 1.7;
}
.course-outline-table .col-ar {
    font-family: "Noto Sans Arabic", "Noto Nastaliq Urdu", "Segoe UI", serif;
}

.syllabus-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 760px;
}
.syllabus-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.syllabus-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0F3D2E;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.syllabus-list em { display: block; font-style: normal; color: #888; font-size: 13px; margin-top: 2px; }

.scholar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 12px;
}
.scholar-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
    border: 1px solid #f0f0f0;
    transition: transform .25s ease, box-shadow .25s ease;
}
.scholar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15,61,46,.12);
}
.scholar-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(200,169,81,.12);
    color: #C8A951;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.scholar-card h3 { color: #0F3D2E; margin: 0 0 8px; font-size: 20px; }
.scholar-card p { color: #666; margin: 0 0 14px; }
.scholar-link { color: #1F6F5F; font-weight: 700; font-size: 14px; }
.scholar-profile {
    background: #fff;
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
    text-align: center;
}
.scholar-photo {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid #C8A951;
    display: block;
}
.scholar-photo--initials {
    background: #0F3D2E;
    color: #C8A951;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
}
.scholar-spec { color: #C8A951; font-weight: 700; }
.scholar-cv { text-align: left; margin: 28px 0 0; }
.scholar-cv dt { font-weight: 700; color: #0F3D2E; margin-top: 18px; }
.scholar-cv dd { margin: 6px 0 0; color: #444; line-height: 1.7; }
.scholar-courses { text-align: left; padding-left: 18px; }
.scholar-courses a { color: #1F6F5F; font-weight: 600; }
.scholar-profile-wrap { max-width: 780px; }
