/* ================================================
   SINGLE PRODUCT PAGES - صفحة المنتج
   Training / Coaching / Book
   ================================================ */

/* ============================
   HERO SECTION (Shared)
   ============================ */

.sp-hero {
    padding: 48px 0 40px;
    position: relative;
}

.sp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.sp-hero--training {
    background: linear-gradient(135deg, #0f172a 0%, #1B4332 60%, #2E7A3E 100%);
}

.sp-hero--coaching {
    background: linear-gradient(135deg, #431407 0%, #7c2d12 40%, #ea580c 100%);
}

.sp-hero--book {
    background: linear-gradient(135deg, #0D3318 0%, #1B5E20 50%, #2E7A3E 100%);
}

.sp-hero .hp-container {
    position: relative;
    z-index: 2;
}

.sp-hero__grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: center;
}

.sp-hero__grid--book {
    grid-template-columns: 360px 1fr;
}

/* Badges */
.sp-hero__badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sp-hero__badge {
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    display: inline-block;
}

.sp-hero__badge--type {
    background: rgba(62,142,80,0.2);
    color: #81C784;
    border: 1px solid rgba(62,142,80,0.3);
}

.sp-hero__badge--coaching {
    background: rgba(234,88,12,0.2);
    color: #fdba74;
    border: 1px solid rgba(234,88,12,0.3);
}

.sp-hero__badge--book {
    background: rgba(62,142,80,0.2);
    color: #a5b4fc;
    border: 1px solid rgba(62,142,80,0.3);
}

.sp-hero__badge--cat {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.15);
}

/* مواصفات الكتاب (عدد الصفحات) — بطاقة بحال الـ toast */
.sp-book-specs {
    margin: 0 0 16px;
    padding: 0;
}
.sp-book-specs__pages {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 12px 18px 12px 20px;
    min-width: 0;
}
.sp-book-specs__icon-wrap {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.sp-book-specs__icon {
    color: #2E7A3E;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    max-width: 18px;
    min-height: 18px;
    max-height: 18px;
    flex-shrink: 0;
    display: block;
}
.sp-book-specs__label {
    font-weight: 600;
    color: #1f2937;
}
.sp-book-specs__num {
    font-weight: 700;
    color: #2E7A3E;
}

/* Title */
.sp-hero__title {
    font-family: 'Tajawal', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.4;
}

.sp-hero__desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.8;
    margin: 0 0 20px;
}

/* Stats */
.sp-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.sp-hero__stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    color: #e2e8f0;
    background: rgba(255,255,255,0.08);
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.sp-hero__stat svg {
    color: #66BB6A;
    flex-shrink: 0;
}

.sp-hero--coaching .sp-hero__stat svg {
    color: #fdba74;
}

.sp-hero--book .sp-hero__stat svg {
    color: #a5b4fc;
}

/* Pricing */
.sp-hero__pricing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.sp-hero__price {
    font-family: 'Tajawal', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.sp-hero__price del {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    margin-inline-start: 4px;
}

.sp-hero__price ins {
    text-decoration: none;
    color: #fff;
}

.sp-hero__price .woocommerce-Price-amount {
    font-family: 'Tajawal', sans-serif;
}

.sp-hero__discount {
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(251,191,36,0.15);
    padding: 4px 12px;
    border-radius: 8px;
}

/* Actions */
.sp-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Visual */
.sp-hero__visual {
    display: flex;
    justify-content: center;
}

.sp-hero__img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 100%;
}

.sp-hero__img-wrap img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.sp-hero__sale-badge {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #dc2626;
    padding: 6px 14px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(220,38,38,0.4);
}

/* ============================
   BUTTONS
   ============================ */

.sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.sp-btn--lg {
    padding: 14px 28px;
    font-size: 16px;
}

.sp-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #3E8E50, #2E7A3E);
    box-shadow: 0 4px 14px rgba(62,142,80,0.35);
}

.sp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(62,142,80,0.4);
    color: #fff;
}

.sp-btn--coaching {
    color: #fff;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    box-shadow: 0 4px 14px rgba(234,88,12,0.35);
}

.sp-btn--coaching:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(234,88,12,0.4);
    color: #fff;
}

.sp-btn--book {
    color: #fff;
    background: linear-gradient(135deg, #3E8E50, #2E7A3E);
    box-shadow: 0 4px 14px rgba(62,142,80,0.35);
}

.sp-btn--book:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(62,142,80,0.4);
    color: #fff;
}

.sp-btn--wa {
    color: #fff;
    background: #25D366;
    box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}

.sp-btn--wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.35);
    color: #fff;
}

.sp-btn--white {
    color: #0f172a;
    background: #fff;
    box-shadow: 0 4px 14px rgba(255,255,255,0.2);
}

.sp-btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.25);
    color: #0f172a;
}

.sp-btn--wa-outline {
    color: #25D366;
    background: transparent;
    border: 2px solid rgba(37,211,102,0.4);
}

.sp-btn--wa-outline:hover {
    background: rgba(37,211,102,0.1);
    border-color: #25D366;
    color: #25D366;
}

/* تركيز واضح للوحة المفاتيح (إمكانية الوصول) */
.sp-btn:focus-visible,
.sp-book-sticky-cta__btn:focus-visible,
.sp-book-faq__q:focus-visible,
.sp-book-gallery__thumb:focus-visible {
    outline: 2px solid var(--sp-book-green, #2E7A3E);
    outline-offset: 2px;
}

/* ============================
   SECTIONS (Shared)
   ============================ */

.sp-section {
    padding: 48px 0;
}
/* لا نستخدم nth-child(even) — كل قسم يحدد خلفيته صراحة لتفادي تعارض عند إضافة/حذف أقسام */

.sp-section__title {
    font-family: 'Tajawal', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-section__title svg {
    color: #3E8E50;
    flex-shrink: 0;
}

.sp-section__count {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    background: #e2e8f0;
    padding: 3px 12px;
    border-radius: 999px;
    margin-right: 8px;
}

/* ============================
   ABOUT / DESCRIPTION
   ============================ */

.sp-about {
    background: linear-gradient(180deg, #f8faf8 0%, #fff 100%);
    padding: 56px 0;
}

.sp-about__content {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    max-width: 65ch;
    margin: 0 auto;
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e8f0e8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.sp-about__content p {
    margin: 0 0 16px;
}

.sp-about__content p:last-child {
    margin-bottom: 0;
}

.sp-about__content strong {
    color: #0f172a;
}

.sp-about__content h2,
.sp-about__content h3 {
    color: #1B5E20;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-family: 'Tajawal', sans-serif;
}

.sp-about__content h2 { font-size: 1.35em; }
.sp-about__content h3 { font-size: 1.15em; }

.sp-about__content ul,
.sp-about__content ol {
    padding-right: 24px;
    margin: 12px 0;
}

.sp-about__content li {
    margin-bottom: 8px;
}

/* ============================
   LESSONS LIST (Training)
   ============================ */

.sp-lessons__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-lesson {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.sp-lesson:hover {
    border-color: #A5D6A7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sp-lesson--free {
    border-color: #86efac;
    background: #E8F5E9;
}

.sp-lesson__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 10px;
}

.sp-lesson--free .sp-lesson__num {
    color: #3E8E50;
    background: #dcfce7;
}

.sp-lesson__info {
    flex: 1;
    min-width: 0;
}

.sp-lesson__title {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-lesson__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    text-decoration: none;
}

.sp-lesson__badge--free {
    color: #3E8E50;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.sp-lesson__badge--free:hover {
    background: #bbf7d0;
    color: #2E7A3E;
}

.sp-lesson__badge--locked {
    color: #94a3b8;
    background: #f1f5f9;
}

.sp-lesson__badge--locked svg {
    opacity: 0.6;
}

/* ============================
   FEATURES GRID
   ============================ */

.sp-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sp-feature {
    background: #fff;
    padding: 28px 20px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
}

.sp-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.sp-feature__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin: 0 auto 16px;
}

.sp-feature__icon--blue {
    background: #E8F5E9;
    color: #3E8E50;
}

.sp-feature__icon--green {
    background: #E8F5E9;
    color: #3E8E50;
}

.sp-feature__icon--purple {
    background: #faf5ff;
    color: #1B5E20;
}

.sp-feature__icon--amber {
    background: #fffbeb;
    color: #d97706;
}

.sp-feature__icon--orange {
    background: #fff7ed;
    color: #ea580c;
}

.sp-feature h4 {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.sp-feature p {
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

/* ============================
   CTA SECTION
   ============================ */

.sp-cta {
    padding: 56px 0;
}

.sp-cta--training {
    background: linear-gradient(135deg, #0f172a, #1B4332);
}

.sp-cta--coaching {
    background: linear-gradient(135deg, #431407, #7c2d12);
}

.sp-cta--book {
    background: linear-gradient(135deg, #0D3318, #1B5E20);
}

.sp-cta__content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.sp-cta__content h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
}

.sp-cta__content p {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    color: #94a3b8;
    margin: 0 0 28px;
    line-height: 1.7;
}

.sp-cta__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================
   BOOK-SPECIFIC
   ============================ */

.sp-book-cover {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 4px 4px 0 rgba(255,255,255,0.05);
}

.sp-book-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.sp-book-cover--placeholder {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
    border: 2px dashed rgba(255,255,255,0.25);
}
.sp-book-cover__placeholder-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

.sp-book-gallery {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.sp-book-gallery__thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: border-color 0.2s;
}

.sp-book-gallery__thumb:hover {
    border-color: rgba(255,255,255,0.6);
}

.sp-book-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-book-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.sp-book-meta__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255,255,255,0.06);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.sp-book-meta__label {
    font-family: 'Tajawal', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

.sp-book-meta__value {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.sp-book-meta__value--instock {
    color: #4ade80;
}

.sp-book-meta__value--outstock {
    color: #f87171;
}

/* شريط الثقة الوحيد تحت النص — تصميم احترافي */
.sp-book-trust {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin: 20px 0 0;
    padding: 14px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
}

.sp-book-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.sp-book-trust__item svg {
    color: #86efac;
    flex-shrink: 0;
}

.sp-book-trust__item--sold {
    font-weight: 700;
    color: #fff;
}

/* Hero: نص مقنع واحد تحت العنوان (دمج tagline + وصف مختصر + جملة القيمة) */
.sp-hero__pitch {
    margin: 0 0 20px;
    padding: 18px 22px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    border-right: 4px solid rgba(167,243,208,0.6);
}
.sp-hero__pitch-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #fff !important;
    margin: 0;
    font-weight: 500;
}

/* Book: value line + delivery (مستخدم داخل عناصر أخرى أو كاحتياط) */
.sp-book-value {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    color: #a5d6a7;
    line-height: 1.7;
    margin: 0 0 16px;
}

.sp-book-delivery {
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin: 0 0 20px;
}

.sp-book-delivery--out {
    color: #fca5a5;
}

.sp-book-delivery a {
    color: #93c5fd;
    text-decoration: underline;
}

.sp-book-delivery a:hover {
    color: #fff;
}

.sp-book-tagline {
    font-family: 'Tajawal', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #a5d6a7;
    margin: 0 0 12px;
    line-height: 1.5;
}
/* Book: cover wrap + gallery as buttons */
.sp-book-cover-wrap {
    max-width: 320px;
    margin: 0 auto;
}

.sp-book-cover-wrap .sp-book-cover {
    margin: 0;
}

.sp-book-gallery__thumb {
    background: none;
    padding: 0;
    font: inherit;
    appearance: none;
}

.sp-book-gallery__thumb.active {
    border-color: #4ade80;
    box-shadow: 0 0 0 1px #4ade80;
}

/* Book: benefits section — لماذا هذا الكتاب؟ */
.sp-book-benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.sp-book-benefit {
    text-align: center;
    padding: 28px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sp-book-benefit:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.sp-book-benefit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #2E7A3E, #3E8E50);
    border-radius: 12px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.sp-book-benefit h4 {
    font-family: 'Tajawal', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.35;
}

.sp-book-benefit p {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: #64748b;
    margin: 0;
}

/* Book: reviews — قواعد أساسية (الخلفية والعنوان والملخص الكامل في قسم "تقييم القراء" أدناه) */
.sp-book-reviews__summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sp-book-reviews__stars {
    display: flex;
    gap: 2px;
}

.sp-book-reviews__star {
    font-size: 20px;
    color: #e2e8f0;
}

.sp-book-reviews__star.filled {
    color: #fbbf24;
}

.sp-book-reviews__rating-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.sp-book-reviews__count {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: #64748b;
}

.sp-book-reviews__link {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2E7A3E;
    text-decoration: none;
}

.sp-book-reviews__link:hover {
    text-decoration: underline;
}

/* Book: FAQ accordion */
.sp-book-faq__list {
    max-width: 640px;
}

.sp-book-faq__item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}

.sp-book-faq__q {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    background: none;
    border: none;
    cursor: pointer;
    appearance: none;
    transition: background 0.2s;
}

.sp-book-faq__q:hover {
    background: #f8fafc;
}

.sp-book-faq__q::after {
    content: '+';
    font-size: 20px;
    color: #64748b;
    flex-shrink: 0;
    margin-left: 12px;
}

.sp-book-faq__item.open .sp-book-faq__q::after {
    content: '−';
}

.sp-book-faq__a {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    padding: 0 20px 0 40px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.2s ease;
}

.sp-book-faq__item.open .sp-book-faq__a {
    max-height: 320px;
    padding: 0 20px 16px 40px;
}

/* Book: related books — كتب ذات صلة */
.sp-book-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    justify-items: center;
}

.sp-book-related__card {
    display: block;
    width: 100%;
    max-width: 180px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.sp-book-related__card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* صندوق مربع ثابت للغلاف — تقنية padding-bottom لضمان مربع في كل المتصفحات */
.sp-book-related__img {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    height: 0;
    background: #f1f5f9;
    overflow: hidden;
}

.sp-book-related__img img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-book-related__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.sp-book-related__img--placeholder span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.sp-book-related__title {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    padding: 12px 14px 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-book-related__price {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #2E7A3E;
    padding: 0 14px 14px;
    display: block;
}

.sp-book-related__price .woocommerce-Price-amount {
    font-family: 'Tajawal', sans-serif;
}

/* ============================
   RELATED TRAINING CARD (Coaching)
   ============================ */

.sp-related-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sp-related-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.sp-related-card__img {
    position: relative;
    background: #f1f5f9;
}

.sp-related-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-related-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(62,142,80,0.9);
    padding: 4px 10px;
    border-radius: 6px;
}

.sp-related-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.sp-related-card__body h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.sp-related-card__body p {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 16px;
    flex: 1;
}

.sp-related-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sp-related-card__price {
    font-family: 'Tajawal', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #3E8E50;
}

.sp-related-card__price del {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
}

.sp-related-card__price ins {
    text-decoration: none;
    color: #3E8E50;
}

.sp-related-card__price .woocommerce-Price-amount {
    font-family: 'Tajawal', sans-serif;
}

/* ============================
   HIDE DEFAULT WOOCOMMERCE ELEMENTS
   ============================ */

.sp-custom-page .woocommerce-breadcrumb,
.sp-custom-page .academy-breadcrumbs,
.sp-custom-page .related.products,
.sp-custom-page .woocommerce-tabs,
.sp-custom-page .product_meta,
.sp-custom-page .academy-product-features,
.sp-custom-page .academy-related-courses,
.sp-custom-page .academy-product-wa-cta,
.sp-custom-page .academy-product-cats {
    display: none !important;
}

/* ============================
   RESPONSIVE - TABLET
   ============================ */

@media (max-width: 1024px) {
    #inner-wrap,
    main#inner-wrap,
    body.single-product #inner-wrap,
    body.single-product #wrapper.site {
        overflow: visible !important;
        min-height: auto !important;
    }
    .sp-custom-page#primary,
    .sp-custom-page main#main {
        overflow: visible !important;
        min-height: auto !important;
    }
    .sp-book-custom-content,
    .sp-custom-page .sp-book-custom-content,
    .sp-book-benefits,
    .sp-custom-page .sp-book-benefits,
    .sp-book-related,
    .sp-custom-page .sp-book-related {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .sp-hero__grid,
    .sp-hero__grid--book {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sp-hero__grid--book {
        direction: ltr;
    }

    .sp-hero__grid--book > .sp-hero__visual {
        order: -1;
    }

    .sp-hero__grid--book > .sp-hero__info {
        direction: rtl;
    }

    .sp-hero__title {
        font-size: 26px;
    }

    .sp-hero__img-wrap {
        max-width: 360px;
        margin: 0 auto;
    }

    .sp-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-related-card {
        grid-template-columns: 1fr;
    }

    .sp-related-card__img {
        height: 200px;
    }

    .sp-book-cover,
    .sp-book-cover-wrap .sp-book-cover {
        max-width: 260px;
    }

    .sp-book-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .sp-book-benefit {
        padding: 22px 16px;
    }

    .sp-book-benefit h4 { font-size: 16px; }
    .sp-book-benefit p { font-size: 13px; }

    .sp-book-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .sp-book-related__card {
        max-width: 100%;
    }
}

/* ============================
   RESPONSIVE - MOBILE
   ============================ */

@media (max-width: 768px) {
    .sp-hero {
        padding: 32px 0 28px;
    }

    .sp-hero__title {
        font-size: 22px;
    }

    .sp-hero__desc {
        font-size: 14px;
    }

    .sp-hero__stats {
        gap: 8px;
    }

    .sp-hero__stat {
        font-size: 12px;
        padding: 6px 10px;
    }

    .sp-hero__price {
        font-size: 24px;
    }

    .sp-hero__actions {
        flex-direction: column;
    }

    .sp-book-specs__pages {
        padding: 10px 14px 10px 16px;
        gap: 10px;
    }
    .sp-book-specs__icon-wrap {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
    .sp-book-specs__icon {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px;
        max-width: 16px;
        min-height: 16px;
        max-height: 16px;
    }

    .sp-btn--lg {
        justify-content: center;
        width: 100%;
        min-height: 48px;
    }

    .sp-btn {
        min-height: 44px;
    }

    .sp-hero__img-wrap {
        border-radius: 12px;
    }

    .sp-cta__actions {
        width: 100%;
    }

    .sp-cta__actions .sp-btn {
        width: 100%;
        justify-content: center;
    }

    .sp-lesson {
        min-height: 48px;
    }

    .sp-section {
        padding: 32px 0;
    }

    /* إظهار كل أقسام صفحة الكتاب على الموبايل (وصف، لماذا هذا الكتاب، كتب ذات صلة) */
    .sp-book-custom-content,
    .sp-custom-page .sp-book-custom-content,
    .sp-book-benefits,
    .sp-custom-page .sp-book-benefits,
    .sp-book-related,
    .sp-custom-page .sp-book-related {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible;
        position: relative !important;
    }
    .sp-book-custom-content,
    .sp-custom-page .sp-book-custom-content {
        padding: 32px 16px 48px;
    }
    .sp-book-custom-content__inner {
        max-width: 100%;
    }
    .sp-book-custom-content__body {
        font-size: 16px;
    }

    .sp-section__title {
        font-size: 20px;
    }

    .sp-features__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sp-feature {
        padding: 20px 16px;
    }

    .sp-lesson {
        padding: 12px 14px;
    }

    .sp-lesson__title {
        font-size: 14px;
    }

    .sp-about__content {
        padding: 20px;
        font-size: 15px;
    }

    .sp-cta__content h2 {
        font-size: 22px;
    }

    .sp-cta__actions {
        flex-direction: column;
        align-items: center;
    }

    .sp-book-meta {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .sp-book-cover {
        max-width: 220px;
    }

    .sp-book-trust {
        flex-direction: column;
        gap: 8px;
    }

    .sp-book-value {
        font-size: 14px;
    }

    .sp-book-benefits__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sp-book-benefit {
        padding: 20px 16px;
    }

    .sp-book-faq__a {
        padding: 0 16px 0 24px;
    }

    .sp-book-faq__item.open .sp-book-faq__a {
        padding: 0 16px 14px 24px;
    }

    .sp-book-benefits__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sp-book-benefit {
        padding: 20px 18px;
    }

    .sp-book-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .sp-book-related__card {
        max-width: 100%;
    }

    .sp-related-card__footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .sp-hero__stat {
        width: 100%;
    }

    .sp-hero__title { font-size: 20px; }
    .sp-hero__desc { font-size: 13px; }
    .sp-hero__pitch { padding: 14px 16px; margin-bottom: 16px; }
    .sp-hero__pitch-text { font-size: 14px; line-height: 1.7; }

    .sp-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .sp-btn--lg {
        font-size: 15px;
    }

    .sp-feature h4 { font-size: 15px; }
    .sp-feature p { font-size: 13px; }

    .sp-lesson__title { font-size: 13px; }

    .sp-book-meta {
        grid-template-columns: 1fr;
    }

    .sp-book-benefits__grid {
        grid-template-columns: 1fr;
    }

    .sp-book-related__grid {
        grid-template-columns: 1fr;
    }

    .sp-book-related__card {
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }

    .sp-cta__content h2 { font-size: 20px; }
    .sp-cta__content p { font-size: 14px; }
}

@media (max-width: 360px) {
    .sp-hero__title { font-size: 18px; }
    .sp-hero { padding: 24px 0 20px; }
    .sp-section { padding: 24px 0; }
    .sp-section__title { font-size: 18px; }
    .sp-about__content { padding: 16px; font-size: 14px; }
    .sp-feature { padding: 16px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .sp-feature,
    .sp-related-card,
    .sp-related-card__img img,
    .sp-btn,
    .sp-lesson,
    .sp-hero__img-wrap,
    .sp-book-faq__a,
    .sp-book-benefit,
    .sp-book-related__card,
    .sp-related-courses-section .acad-related-courses__card {
        transition: none !important;
    }
    .sp-feature:hover,
    .sp-related-card:hover,
    .sp-btn:hover,
    .sp-book-related__card:hover,
    .sp-related-courses-section .acad-related-courses__card:hover {
        transform: none !important;
    }
    .sp-related-card:hover .sp-related-card__img img {
        transform: none !important;
    }
}

/* ============================
   إشعار "X أضاف الكتاب للسلة" — فوق كل العناصر (ما يطلعش تحت الفوتر)
   ============================ */
.acad-social-proof {
    z-index: 999999 !important;
    bottom: 100px !important;
}
@media (max-width: 768px) {
    .acad-social-proof {
        bottom: 100px !important;
        left: 12px !important;
        right: 12px !important;
        max-width: none !important;
    }
}

/* ================================================
   صفحة الكتاب — توحيد مع هوية الموقع (مثل صفحة الهبوط)
   ================================================ */

/* متغيرات صفحة الكتاب — تغيير القيم هنا يطبق على الأقسام الفاتحة */
.sp-custom-page {
    --sp-book-bg-light: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
    --sp-book-bg-benefits: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
    --sp-book-text-dark: #0f172a;
    --sp-book-text-muted: #475569;
    --sp-book-border-light: #a7f3d0;
    --sp-book-green: #2E7A3E;
}

/* مسار التنقل (Breadcrumb) — صفحة الكتاب */
.sp-book-breadcrumb {
    padding: 12px 0;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    direction: rtl;
    padding-inline: 0;
}
.sp-book-breadcrumb .hp-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
}
.sp-book-breadcrumb a {
    color: #475569;
    text-decoration: none;
}
.sp-book-breadcrumb a:hover {
    color: #1B5E20;
    text-decoration: underline;
}
.sp-book-breadcrumb__sep {
    color: #94a3b8;
    user-select: none;
}
.sp-book-breadcrumb__current {
    color: #0f172a;
    font-weight: 700;
}

/* Breadcrumb — تحسين الموبايل */
@media (max-width: 768px) {
    .sp-book-breadcrumb {
        padding: 10px 0;
        font-size: 13px;
    }
    .sp-book-breadcrumb .hp-container {
        gap: 5px 8px;
        align-items: flex-start;
        min-height: 44px;
        padding-top: 4px;
        padding-bottom: 4px;
    }
    .sp-book-breadcrumb a {
        padding: 6px 0;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        -webkit-tap-highlight-color: transparent;
    }
    .sp-book-breadcrumb__sep {
        flex-shrink: 0;
        margin: 0 1px;
        line-height: 1.5;
    }
    .sp-book-breadcrumb__current {
        flex: 1 1 100%;
        min-width: 0;
        overflow-wrap: break-word;
        word-break: break-word;
        line-height: 1.45;
        padding: 4px 0 2px;
    }
}

@media (max-width: 360px) {
    .sp-book-breadcrumb {
        font-size: 12px;
    }
    .sp-book-breadcrumb .hp-container {
        gap: 4px 6px;
    }
}

/* عناوين الأقسام (افتراضي: أخضر — أي قسم جديد يحتاج لوناً مختلفاً يضيف override) */
.sp-custom-page .sp-section__title {
    text-align: center;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 900;
    color: #1B5E20;
    margin-bottom: 32px;
    font-family: 'Tajawal', sans-serif;
}

/* لماذا هذا الكتاب — خلفية بسيطة (أبيض/رمادي) لتنويع بصري */
.sp-book-benefits,
.sp-custom-page .sp-book-benefits {
    background: #f8fafc !important;
    padding: 56px 24px;
    position: relative;
}
.sp-book-benefits .hp-container {
    position: relative;
    z-index: 2;
}
.sp-book-benefits .sp-section__title,
.sp-custom-page .sp-book-benefits .sp-section__title {
    color: var(--sp-book-text-dark) !important;
    text-shadow: none;
    margin-bottom: 32px;
}
.sp-book-benefits .sp-section__title svg {
    color: var(--sp-book-green) !important;
}
.sp-book-benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: stretch;
}
.sp-book-benefit,
.sp-custom-page .sp-book-benefit {
    background: #fff !important;
    border: 1px solid var(--sp-book-border-light, #e5e7eb);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sp-book-benefit:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.sp-book-benefit__icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
    background: linear-gradient(135deg, #2E7A3E, #3E8E50);
    color: #fff !important;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-weight: 800;
    border: none;
}
.sp-book-benefit h4,
.sp-custom-page .sp-book-benefits .sp-book-benefit h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--sp-book-text-dark, #0f172a) !important;
    margin: 0 0 8px;
    line-height: 1.35;
}
.sp-book-benefit p,
.sp-custom-page .sp-book-benefits .sp-book-benefit p {
    font-size: 14px;
    color: var(--sp-book-text-muted, #64748b) !important;
    line-height: 1.65;
    margin: 0;
}

/* الهيرو: سطر ISBN وعدد الصفحات */
.sp-book-meta-line {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 12px;
}

/* أبرز ما في الكتاب — تصميم جذاب للفهرس */
.sp-book-toc,
.sp-custom-page .sp-book-toc {
    background: linear-gradient(165deg, #ecfdf5 0%, #d1fae5 35%, #f0fdf4 70%, #fff 100%);
    padding: 56px 24px 64px;
    border-top: 2px solid #86efac;
}
.sp-book-toc .hp-container {
    max-width: 800px;
    margin: 0 auto;
}
.sp-book-toc__header {
    text-align: center;
    margin-bottom: 32px;
}
.sp-book-toc__icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2E7A3E, #3E8E50);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(46,122,62,0.3);
}
.sp-book-toc__icon-wrap svg {
    width: 28px;
    height: 28px;
}
.sp-book-toc__heading,
.sp-custom-page .sp-book-toc .sp-section__title.sp-book-toc__heading {
    color: #0f172a !important;
    margin: 0 0 8px !important;
    font-size: clamp(22px, 4vw, 28px) !important;
}
.sp-book-toc .sp-section__title svg {
    display: none;
}
.sp-book-toc__intro {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}
.sp-book-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}
.sp-book-toc__item {
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    padding: 18px 22px;
    border-radius: 16px;
    border: 2px solid #bbf7d0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06), 0 0 0 1px rgba(34,197,94,0.08);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.sp-book-toc__item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--sp-book-green), #3E8E50);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.sp-book-toc__item:hover {
    border-color: #4ade80;
    box-shadow: 0 8px 24px rgba(34,197,94,0.15), 0 0 0 2px rgba(74,222,128,0.2);
    transform: translateY(-3px);
}
.sp-book-toc__item:hover::before {
    opacity: 1;
}
.sp-book-toc__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, #16a34a, var(--sp-book-green));
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(22,163,74,0.35);
}
.sp-book-toc__text {
    flex: 1;
    line-height: 1.55;
    min-width: 0;
}
.sp-book-toc__arrow {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--sp-book-green);
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.sp-book-toc__item:hover .sp-book-toc__arrow {
    opacity: 1;
    transform: translateX(-4px);
}
@media (min-width: 600px) {
    .sp-book-toc__list {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}
@media (max-width: 599px) {
    .sp-book-toc__item {
        padding: 16px 18px;
    }
    .sp-book-toc__num {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* من داخل الكتاب — معرض صور */
.sp-book-inside,
.sp-custom-page .sp-book-inside {
    background: #f8fafc;
    padding: 48px 24px;
}
.sp-book-inside .sp-section__title,
.sp-custom-page .sp-book-inside .sp-section__title {
    color: var(--sp-book-text-dark) !important;
}
.sp-book-inside .sp-section__title svg {
    color: var(--sp-book-green) !important;
}
.sp-book-inside__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.sp-book-inside__item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sp-book-inside__item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* قبل وبعد قراءة الكتاب — نفس هوية القسم الأول */
.sp-book-ba-wrap,
.sp-custom-page .sp-book-ba-wrap {
    background: var(--sp-book-bg-light) !important;
    padding: 56px 24px;
    position: relative;
    overflow: hidden;
}
.sp-book-ba-wrap::before {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(62,142,80,0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.sp-book-ba-wrap .hp-container {
    position: relative;
    z-index: 2;
}
/* قبل وبعد قراءة الكتاب — تصميم احترافي */
.sp-book-ba-wrap .acad-ba {
    margin: 0;
    padding: 0;
}
.sp-book-ba-wrap .acad-ba__title,
.sp-custom-page .sp-book-ba-wrap .acad-ba__title {
    font-size: clamp(20px, 3.5vw, 28px);
    font-weight: 900;
    color: #fff !important;
    text-align: center;
    margin: 0 0 24px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    letter-spacing: -0.02em;
}
.sp-book-ba-wrap .acad-ba__grid,
.sp-custom-page .sp-book-ba-wrap .acad-ba__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(167,243,208,0.5);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.02);
}
.sp-book-ba-wrap .acad-ba__col,
.sp-custom-page .sp-book-ba-wrap .acad-ba__col {
    padding: 32px 28px;
    background: #fff !important;
    border: none;
    position: relative;
}
.sp-book-ba-wrap .acad-ba__col--before,
.sp-custom-page .sp-book-ba-wrap .acad-ba__col--before {
    background: linear-gradient(180deg, #fef2f2 0%, #fff5f5 100%) !important;
    border-inline-start: 5px solid #dc2626;
    color: #1e293b !important;
}
.sp-book-ba-wrap .acad-ba__col--after,
.sp-custom-page .sp-book-ba-wrap .acad-ba__col--after {
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%) !important;
    border-inline-start: 5px solid #16a34a;
    min-width: 0;
    color: #1e293b !important;
}
.sp-book-ba-wrap .acad-ba__col h4 {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 10px;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sp-book-ba-wrap .acad-ba__col h4 span,
.sp-custom-page .sp-book-ba-wrap .acad-ba__col h4 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    margin-left: 0;
}
.sp-book-ba-wrap .acad-ba__col--before h4 span {
    background: rgba(220,38,38,0.2);
    color: #b91c1c;
}
.sp-book-ba-wrap .acad-ba__col--after h4 span {
    background: rgba(22,163,74,0.2);
    color: #15803d;
}
/* فرض وضوح النص في العمودين — تحديدية عالية لتجاوز الثيم */
.sp-book-ba-wrap .acad-ba__col h4,
.sp-custom-page .sp-book-ba-wrap .acad-ba__col h4,
.sp-book-ba-wrap .acad-ba__grid .acad-ba__col h4 {
    font-size: 18px !important;
    font-weight: 800 !important;
    margin: 0 0 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #0f172a !important;
}
.sp-book-ba-wrap .acad-ba__col--before h4,
.sp-custom-page .sp-book-ba-wrap .acad-ba__col--before h4 {
    color: #991b1b !important;
}
.sp-book-ba-wrap .acad-ba__col--after h4,
.sp-custom-page .sp-book-ba-wrap .acad-ba__col--after h4 {
    color: #166534 !important;
}
.sp-book-ba-wrap .acad-ba__col ul,
.sp-custom-page .sp-book-ba-wrap .acad-ba__col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.sp-book-ba-wrap .acad-ba__col li,
.sp-custom-page .sp-book-ba-wrap .acad-ba__col li,
.sp-book-ba-wrap .acad-ba__grid .acad-ba__col li {
    padding: 8px 0 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    color: #0f172a !important;
}
.sp-book-ba-wrap .acad-ba__col--before li,
.sp-custom-page .sp-book-ba-wrap .acad-ba__col--before li {
    color: #1e293b !important;
}
.sp-book-ba-wrap .acad-ba__col--before li span,
.sp-custom-page .sp-book-ba-wrap .acad-ba__col--before li span {
    color: #b91c1c !important;
    background: #fff !important;
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.sp-book-ba-wrap .acad-ba__col--after li,
.sp-custom-page .sp-book-ba-wrap .acad-ba__col--after li {
    color: #1e293b !important;
}
.sp-book-ba-wrap .acad-ba__col--after li span,
.sp-custom-page .sp-book-ba-wrap .acad-ba__col--after li span {
    color: #15803d !important;
    background: #fff !important;
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
    .sp-book-ba-wrap .acad-ba__grid {
        grid-template-columns: 1fr;
    }
}

/* مصداقية مختصرة — سطر واحد تحت قبل/بعد (محدد بصفحة الكتاب فقط) */
.sp-book-ba-wrap .acad-expert__one-liner,
.sp-custom-page .sp-book-ba-wrap .acad-expert__one-liner {
    margin: 24px 0 0 !important;
    padding: 16px 20px !important;
    background: #fff !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    color: #0f172a !important;
    text-align: center !important;
    font-family: 'Tajawal', sans-serif !important;
}
.sp-book-ba-wrap .acad-expert__one-liner strong,
.sp-custom-page .sp-book-ba-wrap .acad-expert__one-liner strong {
    color: #0f172a !important;
}
.sp-custom-page .sp-book-ba-wrap .acad-ba h3,
.sp-book-ba-wrap .acad-ba__title {
    color: var(--sp-book-text-dark) !important;
    font-weight: 800;
}

/* FAQ — نفس ستايل lp-faq */
.sp-book-faq {
    background: #f8faf8;
    padding: 56px 0;
}
.sp-book-faq__item {
    border-radius: 16px;
    border: 1px solid #e8f0e8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    margin-bottom: 16px;
}
.sp-book-faq__q {
    min-height: 44px !important;
    box-sizing: border-box !important;
    color: #1B5E20 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    padding: 20px 24px !important;
}
.sp-book-faq__q:hover {
    background: #f0f7f0 !important;
}
.sp-book-faq__q::after {
    color: #3E8E50 !important;
}

/* CTA نهائي — مثل lp-final-cta */
.sp-cta--final {
    background: linear-gradient(135deg, #0d1b0f 0%, #1B5E20 50%, #3E8E50 100%) !important;
    color: #fff;
    padding: 64px 24px;
    text-align: center;
}
.sp-cta--final .sp-cta__title {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 900;
    margin-bottom: 12px;
    color: #fff;
}
.sp-cta--final .sp-cta__desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 28px;
    color: rgba(255,255,255,0.95);
}
.sp-cta--final .sp-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.sp-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    border: none;
    cursor: pointer;
}
.sp-cta-btn--primary {
    background: #fff;
    color: #1B5E20;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25), 0 4px 14px rgba(46,122,62,0.2);
}
.sp-cta-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 6px 20px rgba(46,122,62,0.25);
    background: #f0f0f0;
    color: #1B5E20;
}
.sp-cta-btn--wa {
    background: #25D366;
    color: #fff;
    box-shadow: 0 8px 30px rgba(37,211,102,0.35);
}
.sp-cta-btn--wa:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(37,211,102,0.45);
    background: #20bd5a;
    color: #fff;
}

/* عدّاد تنازلي — لمسة هوية (أخضر بدل أصفر) */
.sp-custom-page .acad-countdown {
    background: linear-gradient(135deg, rgba(27,94,32,0.12), rgba(62,142,80,0.15));
    border: 1px solid rgba(62,142,80,0.3);
}
.sp-custom-page .acad-countdown__label {
    color: #1B5E20;
}
.sp-custom-page .acad-countdown__unit {
    box-shadow: 0 2px 8px rgba(27,94,32,0.12);
}
.sp-custom-page .acad-countdown__unit span {
    color: #1B5E20;
}
.sp-custom-page .acad-countdown__unit small {
    color: #2E7A3E;
}
.sp-custom-page .acad-countdown__sep {
    color: #2E7A3E;
}

/* ضمان تحت أزرار CTA النهائي */
/* شريط CTA ثابت — موبايل (يظهر عند التمرير) + حاسوب (دائماً ظاهر) */
.sp-book-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #fff;
    border-top: 2px solid #1B5E20;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    padding: 12px 16px;
    direction: rtl;
    transition: transform 0.3s ease;
    /* موبايل: مخفي حتى يمرّ المستخدم تحت الهيرو */
    display: none;
    transform: translateY(100%);
}
.sp-book-sticky-cta.visible {
    transform: translateY(0);
    display: block;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.15);
}

/* حاسوب: الشريط يبان دائماً (تحديدية عالية بدل !important) */
@media (min-width: 769px) {
    body.single-product .sp-book-sticky-cta,
    .sp-custom-page .sp-book-sticky-cta {
        display: block;
        transform: translateY(0);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    }
}

.sp-book-sticky-cta__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}
.sp-book-sticky-cta__price {
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #1B5E20;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.sp-book-sticky-cta__price del {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}
.sp-book-sticky-cta__price .sp-book-sticky-cta__price-current,
.sp-book-sticky-cta__price .woocommerce-Price-amount {
    color: #1B5E20;
}
.sp-book-sticky-cta__btn {
    flex-shrink: 0;
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3E8E50;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
    transition: background 0.2s;
}
.sp-book-sticky-cta__btn:hover { background: #2E7A3E; color: #fff; }

/* ========== محتوى الكتاب (وصف المنتج) — تصميم احترافي جذاب ========== */
.sp-book-custom-content {
    direction: rtl;
    padding: 56px 24px 64px;
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 18%, #f8faf8 45%, #fff 100%);
    position: relative;
    display: block !important;
    visibility: visible !important;
    overflow: visible;
}
.sp-book-custom-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #22c55e, #4ade80);
    opacity: 0.9;
}
.sp-book-custom-content__inner {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}
.sp-book-custom-content__body {
    font-family: 'Tajawal', sans-serif;
    font-size: 17px;
    line-height: 1.85;
    color: #1e293b;
}

/* عناوين — تسلسل بصري قوي */
.sp-book-custom-content__body h2 {
    font-size: 1.55rem;
    font-weight: 900;
    color: #14532d;
    margin: 2.2em 0 0.65em;
    padding: 0 0 12px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #22c55e, #86efac) 1;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sp-book-custom-content__body h2:first-child { margin-top: 0; }
.sp-book-custom-content__body h2::before {
    content: '';
    width: 6px;
    height: 28px;
    background: linear-gradient(180deg, #16a34a, #22c55e);
    border-radius: 3px;
    flex-shrink: 0;
}
.sp-book-custom-content__body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #166534;
    margin: 1.6em 0 0.5em;
}
.sp-book-custom-content__body h4 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.25em 0 0.4em;
}

.sp-book-custom-content__body p {
    margin: 0 0 1.05em;
}

/* غلاف عام لكل قسم من أقسام الوصف — تباعد وحدّ بصري */
.sp-book-custom-content__body .sp-book-desc-section {
    margin-bottom: 2.25em;
    padding: 24px 28px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.sp-book-custom-content__body .sp-book-desc-section:last-child {
    margin-bottom: 0;
}

/* قسم: عن الكتاب — خلفية بيضاء مع حد أخضر خفيف */
.sp-book-custom-content__body .sp-book-desc-section--about {
    border-right: 4px solid #22c55e;
    background: linear-gradient(90deg, #f0fdf4 0%, #fff 12%);
}
.sp-book-custom-content__body .sp-book-desc-section--about h2 {
    margin-top: 0;
}

/* قسم: النقاط المفتاحية — بدون إطار إضافي، المسافات من الداخل */
.sp-book-custom-content__body .sp-book-desc-section--highlights {
    padding: 20px 24px;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* قسم: ماذا ستجد (جدول المحتويات) — خلفية رمادية فاتحة جداً */
.sp-book-custom-content__body .sp-book-desc-section--toc {
    background: #f8faf8;
    border-color: #d1fae5;
}
.sp-book-custom-content__body .sp-book-desc-section--toc h2 {
    margin-top: 0;
}

/* قسم: لمن هذا الكتاب — حد ذهبي/برتقالي خفيف */
.sp-book-custom-content__body .sp-book-desc-section--audience {
    border-right: 4px solid #f59e0b;
    background: linear-gradient(90deg, #fffbeb 0%, #fff 14%);
}
.sp-book-custom-content__body .sp-book-desc-section--audience h2 {
    margin-top: 0;
}

/* قسم: الاقتباس — يبقى blockquote داخله أو نتركه حراً */
.sp-book-custom-content__body .sp-book-desc-section--quote {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* قسم: ما يميز هذا الدليل — قائمة مع خلفية خضراء فاتحة جداً */
.sp-book-custom-content__body .sp-book-desc-section--features {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.sp-book-custom-content__body .sp-book-desc-section--features h2 {
    margin-top: 0;
}

/* قسم: التوصيل والدفع — الصندوق الأخضر يملأ القسم */
.sp-book-custom-content__body .sp-book-desc-section--delivery {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* قسم: التقديمة (الليدر + النقاط المفتاحية) — بدون صندوق إضافي */
.sp-book-custom-content__body .sp-book-desc-section--lead {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* فقرة تمهيدية — بطاقة «هيرو» للوصف */
.sp-book-custom-content__body .sp-book-lead {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #1e293b;
    padding: 28px 32px;
    background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
    border: 2px solid #bbf7d0;
    border-right: 6px solid #16a34a;
    border-radius: 16px;
    margin-bottom: 2em;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.12), 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    font-weight: 500;
}
.sp-book-custom-content__body .sp-book-lead::after {
    content: '📖';
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 1.5rem;
    opacity: 0.35;
}

/* قوائم — أيقونة في دائرة */
.sp-book-custom-content__body ul,
.sp-book-custom-content__body ol {
    margin: 0 0 1.2em;
    padding-right: 0;
}
.sp-book-custom-content__body li {
    margin-bottom: 0.6em;
}
.sp-book-custom-content__body ul {
    list-style: none;
}
.sp-book-custom-content__body ul li {
    position: relative;
    padding: 10px 44px 10px 16px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sp-book-custom-content__body ul li:hover {
    border-color: #bbf7d0;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.08);
}
.sp-book-custom-content__body ul li::before {
    content: '✓';
    position: absolute;
    right: 14px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 50%;
}

/* اقتباس — ستايل «بول كوت» */
.sp-book-custom-content__body blockquote {
    margin: 2em 0;
    padding: 28px 32px 28px 48px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: none;
    border-radius: 16px;
    font-style: normal;
    color: #14532d;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.85;
    position: relative;
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.15);
}
.sp-book-custom-content__body blockquote::before {
    content: '"';
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 4rem;
    font-family: 'Tajawal', Georgia, serif;
    color: #22c55e;
    opacity: 0.4;
    line-height: 1;
}

/* صندوق التوصيل والدفع — CTA واضح */
.sp-book-custom-content__body .sp-book-box {
    padding: 24px 28px;
    background: linear-gradient(135deg, #166534 0%, #15803d 50%, #16a34a 100%);
    border: none;
    border-radius: 16px;
    margin: 2em 0;
    box-shadow: 0 8px 28px rgba(22, 101, 52, 0.35);
    color: #fff;
}
.sp-book-custom-content__body .sp-book-box p {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
}
.sp-book-custom-content__body .sp-book-box strong {
    color: #fef08a;
}

/* جدول المحتويات — بطاقات فصول */
.sp-book-custom-content__body .sp-book-desc-toc {
    list-style: none;
    padding: 0;
    margin: 1.75em 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 600px) {
    .sp-book-custom-content__body .sp-book-desc-toc {
        grid-template-columns: 1fr 1fr;
    }
}
.sp-book-custom-content__body .sp-book-desc-toc li {
    padding: 16px 52px 16px 20px;
    margin-bottom: 0;
    background: #fff;
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}
.sp-book-custom-content__body .sp-book-desc-toc li:hover {
    border-color: #22c55e;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12);
    transform: translateY(-2px);
}
.sp-book-custom-content__body .sp-book-desc-toc li::before {
    content: none;
}
.sp-book-custom-content__body .sp-book-desc-toc .sp-book-desc-toc-num {
    position: absolute;
    right: 16px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    border-radius: 10px;
    margin: 0;
    vertical-align: middle;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}
.sp-book-custom-content__body .sp-book-desc-toc li {
    position: relative;
}

.sp-book-custom-content__body img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

/* فاصل — خط تدرّج */
.sp-book-custom-content__body hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent, #86efac, #22c55e, #86efac, transparent);
    margin: 2.5em 0;
    border-radius: 2px;
}

/* شريط نقاط مفتاحية (أرقام أو جمل قصيرة) */
.sp-book-custom-content__body .sp-book-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 1.75em 0;
    list-style: none;
    padding: 0;
}
.sp-book-custom-content__body .sp-book-highlights li {
    padding: 20px 16px;
    background: linear-gradient(145deg, #fff 0%, #f0fdf4 100%);
    border: 2px solid #bbf7d0;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
    color: #166534;
    font-size: 1rem;
    margin: 0;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.sp-book-custom-content__body .sp-book-highlights li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
}
.sp-book-custom-content__body .sp-book-highlights li::before {
    display: none;
}
.sp-book-custom-content__body .sp-book-highlights .sp-book-highlights-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 900;
    color: #16a34a;
    margin-bottom: 4px;
    line-height: 1.2;
}

/* صندوق تنبيه عام (إن وُجد بدون p) */
.sp-book-custom-content__body .sp-book-box:not(:has(p)) {
    padding: 20px 24px;
    background: #fff;
    color: #1e293b;
    border: 2px solid #e5e7eb;
}
.sp-book-custom-content__body .sp-book-box:not(:has(p)) strong {
    color: #166534;
}

/* شهادات القراء — نفس هوية القسم الأول (تدرّج + بطاقات زجاجية) */
/* ماذا يقول القراء؟ — خلفية فاتحة وكتابة داكنة لوضوح أفضل (تحت قبل/بعد) */
.sp-book-testimonials {
    background: linear-gradient(180deg, #f0f7f0 0%, #f8faf8 50%, #fff 100%);
    padding: 56px 24px;
    position: relative;
    overflow: hidden;
}
.sp-book-testimonials::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(27,94,32,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.sp-book-testimonials .hp-container {
    position: relative;
    z-index: 2;
}
.sp-book-testimonials .sp-section__title {
    color: #1B5E20 !important;
    text-shadow: none;
    margin-bottom: 32px;
}
.sp-book-testimonials .sp-section__title svg {
    color: #1B5E20;
}
.sp-book-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.sp-book-testimonial {
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 18px;
    padding: 28px 24px;
    margin: 0;
    font-family: 'Tajawal', sans-serif;
    box-shadow: 0 4px 20px rgba(27,94,32,0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.sp-book-testimonial:hover {
    box-shadow: 0 8px 28px rgba(27,94,32,0.12);
    border-color: #86efac;
    transform: translateY(-4px);
}
.sp-book-testimonial__text {
    font-size: 16px;
    line-height: 1.8;
    color: #1e293b;
    margin: 0 0 14px;
}
.sp-book-testimonial__author {
    font-size: 14px;
    font-weight: 700;
    color: #166534;
    margin: 0;
}

/* تقييم القراء — كل أنماط القسم (خلفية + عنوان + ملخص + روابط) */
.sp-book-reviews,
.sp-custom-page .sp-book-reviews {
    background: var(--sp-book-bg-light) !important;
    padding: 56px 24px;
    position: relative;
    overflow: hidden;
}
.sp-book-reviews::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(62,142,80,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.sp-book-reviews .hp-container {
    position: relative;
    z-index: 2;
}
.sp-book-reviews .sp-section__title,
.sp-custom-page .sp-book-reviews .sp-section__title {
    color: var(--sp-book-text-dark) !important;
    text-shadow: none;
    margin-bottom: 24px;
}
.sp-book-reviews .sp-section__title svg {
    color: var(--sp-book-text-dark);
}
.sp-book-reviews__summary,
.sp-custom-page .sp-book-reviews .sp-book-reviews__summary {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    background: #fff !important;
    border: 1px solid var(--sp-book-border-light);
    border-radius: 18px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sp-book-reviews__star {
    color: #cbd5e1;
}
.sp-book-reviews__star.filled {
    color: #fbbf24;
}
.sp-book-reviews__count,
.sp-custom-page .sp-book-reviews .sp-book-reviews__count {
    color: #334155 !important;
    font-weight: 600;
}
.sp-book-reviews__link,
.sp-custom-page .sp-book-reviews .sp-book-reviews__link {
    color: #166534 !important;
    font-weight: 700;
}
.sp-book-reviews__link:hover {
    color: #15803d !important;
    text-decoration: underline;
}
.sp-book-reviews__rating-text,
.sp-custom-page .sp-book-reviews .sp-book-reviews__rating-text {
    color: var(--sp-book-text-dark) !important;
}

/* عرض الباندل — ألوان الهوية (أخضر بدل بنفسجي) */
.sp-custom-page .acad-bundle,
.acad-bundle {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border: 2px solid #86efac !important;
    border-radius: 18px !important;
}
.sp-custom-page .acad-bundle__badge,
.acad-bundle__badge {
    background: #1B5E20 !important;
    color: #fff !important;
}
.sp-custom-page .acad-bundle h3,
.acad-bundle h3 {
    color: #166534 !important;
}
.sp-custom-page .acad-bundle p,
.acad-bundle p {
    color: #15803d !important;
}
.sp-custom-page .acad-bundle__book,
.acad-bundle__book {
    border-color: #bbf7d0 !important;
    background: #fff !important;
}
.sp-custom-page .acad-bundle__book strong,
.acad-bundle__book strong {
    color: #166534 !important;
}
.sp-custom-page .acad-bundle__price ins,
.acad-bundle__price ins {
    color: #1B5E20 !important;
}
.sp-custom-page .acad-bundle__cta,
.acad-bundle__cta {
    background: linear-gradient(135deg, #2E7A3E, #3E8E50) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(46,122,62,0.35);
}
.sp-custom-page .acad-bundle__cta:hover,
.acad-bundle__cta:hover {
    background: #1B5E20 !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(27,94,32,0.4);
}

/* أسئلة شائعة — خلفية تدرّج خفيفة + بطاقات موحّدة */
.sp-book-faq {
    background: linear-gradient(180deg, #f0f7f0 0%, #f8faf8 100%);
    padding: 56px 0;
}
.sp-book-faq .sp-section__title {
    color: #1B5E20 !important;
}
.sp-book-faq__item {
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* كتب ذات صلة — خلفية + عنوان + بطاقات 18px + hover */
.sp-book-related {
    background: #f8faf8;
    padding: 56px 24px;
}
.sp-book-related .sp-section__title {
    text-align: center;
    color: #1B5E20 !important;
}
.sp-book-related__card {
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.sp-book-related__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* دورات ذات صلة — نفس المعالجة */
.sp-related-courses-section {
    background: #f8faf8;
    padding: 56px 24px;
}
.sp-related-courses-section .acad-related-courses h3 {
    color: #1B5E20;
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}
.sp-related-courses-section .acad-related-courses p {
    text-align: center;
    margin-bottom: 20px;
}
.sp-related-courses-section .acad-related-courses__card {
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sp-related-courses-section .acad-related-courses__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* عناوين الأقسام — أيقونات موحّدة 24px */
.sp-section__title svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* تباعد موحّد بين الأقسام */
.sp-custom-page .sp-section {
    padding-top: 56px;
    padding-bottom: 56px;
}
.sp-custom-page .sp-section + .sp-section { padding-top: 0; }
.sp-custom-page .hp-container + .sp-section { margin-top: 0; }

@media (max-width: 768px) {
    .sp-cta--final { padding: 48px 16px; }
    .sp-book-testimonials__grid { grid-template-columns: 1fr; }
}

/* ============================
   BOOK PAGE — أنماط نقلت من القالب (كانت inline)
   ============================ */
.acad-savings-badge {
    display: inline-block;
    background: #DC2626;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}
.acad-countdown {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
    text-align: center;
    direction: rtl;
}
.acad-countdown__label { font-size: 14px; color: #92400e; font-weight: 600; margin-bottom: 10px; }
.acad-countdown__timer { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.acad-countdown__unit { background: #fff; border-radius: 10px; padding: 8px 14px; min-width: 60px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.acad-countdown__unit span { display: block; font-size: 24px; font-weight: 800; color: #92400e; }
.acad-countdown__unit small { font-size: 11px; color: #b45309; }
.acad-countdown__sep { font-size: 24px; font-weight: 700; color: #b45309; }
.acad-book-urgency { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border: 1px solid #86efac; border-radius: 10px; padding: 16px; margin: 16px 0; text-align: center; direction: rtl; }
.acad-book-urgency strong { color: #166534; font-size: 16px; }
.acad-book-urgency p { margin: 4px 0 0; color: #15803d; font-size: 14px; }
.acad-payments { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0; padding: 14px 18px; background: #f9fafb; border-radius: 10px; border: 1px solid #e5e7eb; direction: rtl; }
.acad-payments__label { font-size: 13px; color: #6b7280; font-weight: 600; }
.acad-payments__icons { display: flex; gap: 8px; align-items: center; }
.acad-payments__icon { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 700; color: #374151; }
.acad-guarantee-cta { margin: 14px 0 0; font-size: 14px; color: #166534; font-weight: 600; }
.acad-bundle { direction: rtl; text-align: right; margin: 24px 0; padding: 24px; background: linear-gradient(135deg, #faf5ff, #f3e8ff); border: 2px solid #c084fc; border-radius: 16px; position: relative; overflow: hidden; }
.acad-bundle__badge { display: inline-block; background: #7c3aed; color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.acad-bundle h3 { font-size: 18px; color: #4c1d95; margin: 0 0 10px; }
.acad-bundle p { font-size: 14px; color: #6b21a8; line-height: 1.7; margin: 0 0 16px; }
.acad-bundle__books { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.acad-bundle__book { flex: 1; min-width: 140px; background: #fff; border-radius: 12px; padding: 14px; border: 1px solid #e9d5ff; text-align: center; }
.acad-bundle__book span { font-size: 28px; display: block; margin-bottom: 6px; }
.acad-bundle__book strong { font-size: 13px; color: #4c1d95; display: block; }
.acad-bundle__price { text-align: center; margin-bottom: 12px; }
.acad-bundle__price del { color: #9ca3af; font-size: 16px; margin-left: 8px; }
.acad-bundle__price ins { font-size: 24px; font-weight: 800; color: #7c3aed; text-decoration: none; }
.acad-bundle__cta { display: block; text-align: center; background: #7c3aed; color: #fff; padding: 14px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 16px; transition: all .2s; }
.acad-bundle__cta:hover { background: #6d28d9; color: #fff; }
.acad-related-courses { margin: 32px 0; padding: 24px; background: #f0fdf4; border-radius: 12px; border: 1px solid #86efac; direction: rtl; text-align: right; }
.acad-related-courses h3 { margin: 0 0 16px; color: #166534; font-size: 18px; }
.acad-related-courses p { color: #15803d; margin: 0 0 16px; font-size: 15px; }
.acad-related-courses__grid { display: flex; gap: 12px; flex-wrap: wrap; }
.acad-related-courses__card { flex: 1; min-width: 200px; background: #fff; padding: 16px; border-radius: 10px; border: 1px solid #d1fae5; text-decoration: none; display: block; }
.acad-related-courses__card strong { color: #1f2937; display: block; margin-bottom: 4px; font-size: 15px; }
.acad-related-courses__card span { color: #3e8e50; font-size: 14px; font-weight: 600; }
.sp-hero__urgency { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding: 14px 18px; background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); border-radius: 14px; direction: rtl; text-align: right; }
.sp-hero__urgency-countdown { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-hero__urgency-icon { font-size: 18px; }
.sp-hero__urgency-label { font-size: 13px; color: rgba(255,255,255,0.9); font-weight: 600; }
.sp-hero__urgency-timer { display: flex; align-items: center; gap: 4px; }
.sp-hero__urgency-unit { display: inline-flex; flex-direction: column; align-items: center; background: rgba(255,255,255,0.2); border-radius: 8px; padding: 6px 10px; min-width: 44px; }
.sp-hero__urgency-unit span { font-size: 18px; font-weight: 800; color: #fff; line-height: 1; }
.sp-hero__urgency-unit small { font-size: 10px; color: rgba(255,255,255,0.85); margin-top: 2px; }
.sp-hero__urgency-sep { font-size: 16px; font-weight: 700; color: rgba(255,255,255,0.8); }
.sp-hero__urgency-text { display: flex; flex-direction: column; gap: 2px; }
.sp-hero__urgency-text strong { font-size: 14px; color: #fff; margin: 0; }
.sp-hero__urgency-text span { font-size: 13px; color: rgba(255,255,255,0.9); }
@media (max-width: 640px) {
    .sp-hero__urgency { flex-direction: column; align-items: stretch; text-align: center; }
    .sp-hero__urgency-countdown { justify-content: center; }
    .sp-hero__urgency-text { align-items: center; }
}

/* شريط CTA ثابت — safe-area للموبايل */
.sp-book-sticky-cta {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

/* حاسوب (شاشة عريضة): إظهار الشريط الثابت دائماً — قاعدة نهائية تفوق أي أخرى */
@media (min-width: 768px) {
    body.single-product #sp-book-sticky-cta.sp-book-sticky-cta,
    body.single-product .sp-book-sticky-cta#sp-book-sticky-cta {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        z-index: 99999 !important;
    }
}
