/* ================================================================
   موقع تفسير الأحلام — التنسيقات الرئيسية
   ملف: css/style.css
   ملاحظة: جميع الأنماط بُنيت لدعم الاتجاه من اليمين إلى اليسار (RTL)
   ================================================================ */

/* ----------------------------------------------------------------
   1) متغيّرات التصميم (Design Tokens)
   يمكن تغيير الهوية اللونية كلها من هنا فقط.
   ---------------------------------------------------------------- */
:root {
    /* الألوان الأساسية */
    --bg-primary: #FAF7F2;
    --bg-secondary: #F0EBE3;
    --bg-white: #FFFFFF;
    --text-primary: #2B1F17;
    --text-secondary: #6B5B4F;
    --text-muted: #8C7B6D;

    /* الأخضر الإسلامي + الذهبي */
    --accent-green: #1B4332;
    --accent-green-light: #2D6A4F;
    --accent-green-soft: #40916C;
    --accent-gold: #C9A227;
    --accent-gold-dark: #A8891F;
    --accent-gold-soft: #FDF8EE;

    /* ألوان المفسّرين الأربعة */
    --ibn-sirin: #2D6A4F;
    --nabulsi: #B8860B;
    --ibn-shahin: #1A5276;
    --jafar: #6A1B9A;

    /* الحدود والظلال */
    --border-color: #E5DCC9;
    --border-strong: #D8CBB2;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 18px 50px rgba(0, 0, 0, 0.16);

    /* الحواف */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;

    /* القياسات */
    --container-max: 1300px;
    --content-max: 820px;
    --header-h: 68px;

    /* الانتقالات */
    --t-fast: 0.18s ease;
    --t: 0.28s ease;
    --t-slow: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------------
   2) إعادة الضبط (Reset)
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.9;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Amiri', 'Noto Naskh Arabic', serif;
    color: var(--accent-green);
    line-height: 1.45;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--t-fast);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

ul, ol { list-style: none; }

::selection {
    background: var(--accent-gold);
    color: #fff;
}

/* حلقة تركيز واضحة لإمكانية الوصول (لوحة المفاتيح) */
:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* رابط تجاوز المحتوى (يظهر عند التنقل بلوحة المفاتيح) */
.skip-link {
    position: absolute;
    right: -9999px;
    top: 0;
    background: var(--accent-gold);
    color: #1B4332;
    padding: 12px 20px;
    z-index: 2000;
    font-weight: 700;
    border-radius: 0 0 0 10px;
}
.skip-link:focus {
    right: 0;
}

/* حاوية عامة */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ----------------------------------------------------------------
   3) شريط التنقل الرئيسي
   ---------------------------------------------------------------- */
.main-header {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    max-width: var(--container-max);
    margin: 0 auto;
    min-height: var(--header-h);
    gap: 16px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}
.logo-icon {
    font-size: 1.7rem;
    filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.6));
}

.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.97rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: background var(--t), color var(--t);
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.7rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    line-height: 1;
}

/* ----------------------------------------------------------------
   4) مساحات الإعلانات (Ad Zones)
   %  نسبة الإعلان محدودة وواضحة، وتُعرَض كنائب حتى يجيء القبول.
   ---------------------------------------------------------------- */
.ad-zone {
    max-width: var(--container-max);
    margin: 30px auto;
    padding: 12px;
    text-align: center;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.012),
        rgba(0, 0, 0, 0.012) 12px,
        rgba(0, 0, 0, 0.024) 12px,
        rgba(0, 0, 0, 0.024) 24px
    );
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-strong);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.ad-zone.ad-top { margin-top: 16px; margin-bottom: 24px; }
.ad-zone.ad-middle { margin: 46px auto; }
.ad-zone.ad-bottom { margin: 40px auto; }

.ad-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 6px;
    font-family: 'Segoe UI', sans-serif;
}

/* العنصر ins قبل تحميل أدسنس لا يظهر إن كان فارغاً */
.ad-zone ins.adsbygoogle { display: block; width: 100%; }

/* ----------------------------------------------------------------
   5) قسم الترحيب (Hero)
   ---------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #40916C 100%);
    padding: 72px 20px 84px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 28%, rgba(201, 162, 39, 0.16) 0%, transparent 52%),
        radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.09) 0%, transparent 50%);
    pointer-events: none;
}

/* زخرفة نجمية إسلامية خفيفة */
.hero-section::after {
    content: '✦';
    position: absolute;
    font-size: 26rem;
    color: rgba(255, 255, 255, 0.03);
    top: -6rem;
    left: -4rem;
    pointer-events: none;
    line-height: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.9rem;
    color: #fff;
    margin-bottom: 18px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    line-height: 1.95;
    max-width: 720px;
    margin-inline: auto;
}

/* البحث */
.search-container {
    display: flex;
    max-width: 660px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-pill);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform var(--t), box-shadow var(--t);
}
.search-container:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
}

.search-container input {
    flex: 1;
    padding: 19px 28px;
    border: none;
    font-size: 1.08rem;
    font-family: 'Noto Naskh Arabic', serif;
    outline: none;
    text-align: right;
    direction: rtl;
    background: transparent;
    color: var(--text-primary);
}
.search-container input::placeholder { color: var(--text-muted); }

.search-container button {
    padding: 0 34px;
    background: var(--accent-gold);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    transition: background var(--t);
}
.search-container button:hover { background: var(--accent-gold-dark); }

.search-results {
    max-width: 660px;
    margin: 14px auto 0;
    text-align: right;
    max-height: 360px;
    overflow-y: auto;
    border-radius: var(--radius-md);
}
.search-results:empty { display: none; }

.search-results .result-item {
    background: rgba(255, 255, 255, 0.98);
    padding: 13px 22px;
    margin-bottom: 6px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform var(--t-fast), background var(--t-fast);
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
}
.search-results .result-item:hover {
    transform: translateX(-4px);
    background: #fff;
    border-color: var(--accent-gold);
}
.search-results .result-item .badge {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.76rem;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.search-results .no-result {
    background: rgba(255, 255, 255, 0.98);
    padding: 16px 22px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-align: center;
}

/* إحصائيات سريعة */
.quick-stats {
    display: flex;
    justify-content: center;
    gap: 46px;
    margin-top: 44px;
    flex-wrap: wrap;
}
.quick-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}
.quick-stats .stat strong {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--accent-gold);
    line-height: 1.2;
}
.quick-stats .stat span {
    font-size: 0.9rem;
    opacity: 0.88;
    margin-top: 2px;
}

/* ----------------------------------------------------------------
   6) عناوين الأقسام
   ---------------------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 42px;
}
.section-header h2 {
    font-size: 2.1rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 3px;
    background: linear-gradient(to left, transparent, var(--accent-gold), transparent);
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ----------------------------------------------------------------
   7) قسم المفسّرين
   ---------------------------------------------------------------- */
.interpreters-section,
.home-section {
    padding: 68px 20px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.interpreters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.interpreter-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 5px solid;
    border-bottom: 1px solid var(--border-color);
    border-inline: 1px solid var(--border-color);
    transition: transform var(--t), box-shadow var(--t);
    display: flex;
    flex-direction: column;
}
.interpreter-card[data-interpreter="ibn-sirin"] { border-top-color: var(--ibn-sirin); }
.interpreter-card[data-interpreter="nabulsi"] { border-top-color: var(--nabulsi); }
.interpreter-card[data-interpreter="ibn-shahin"] { border-top-color: var(--ibn-shahin); }
.interpreter-card[data-interpreter="jafar"] { border-top-color: var(--jafar); }

.interpreter-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.interpreter-icon {
    font-size: 2.3rem;
    margin-bottom: 10px;
    line-height: 1;
}

.interpreter-card h3 { font-size: 1.25rem; margin-bottom: 4px; }

.interpreter-dates {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.interpreter-bio {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    flex-grow: 1;
}

.book-name {
    font-size: 0.86rem;
    color: var(--accent-gold-dark);
    font-weight: 600;
    background: var(--accent-gold-soft);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    display: block;
    margin-bottom: 4px;
    border: 1px solid #F0E4C8;
}

/* الأزرار */
.btn {
    display: inline-block;
    margin-top: 14px;
    padding: 11px 26px;
    background: var(--accent-green);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background var(--t), transform var(--t-fast);
    border: none;
}
.btn:hover { background: var(--accent-green-light); transform: translateY(-2px); }
.btn.btn-gold { background: var(--accent-gold); }
.btn.btn-gold:hover { background: var(--accent-gold-dark); }
.btn.btn-outline {
    background: transparent;
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
}
.btn.btn-outline:hover { background: var(--accent-green); color: #fff; }

/* ----------------------------------------------------------------
   8) شبكة الحروف
   ---------------------------------------------------------------- */
.letters-section {
    padding: 68px 20px;
    background: var(--bg-secondary);
    text-align: center;
}

.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 13px;
    max-width: 980px;
    margin: 0 auto;
}

.letter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 8px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--t);
    border: 2px solid transparent;
    min-height: 74px;
}
.letter-btn span {
    font-family: 'Amiri', serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1.1;
}
.letter-btn small {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.letter-btn:hover {
    background: var(--accent-green);
    transform: translateY(-4px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-md);
}
.letter-btn:hover span,
.letter-btn:hover small { color: #fff; }

/* ----------------------------------------------------------------
   9) صفحة الحرف — التخطيط العام
   ---------------------------------------------------------------- */
.letter-page-wrapper {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 28px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
}

.letter-main-content { min-width: 0; }

.letter-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 60px);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* شريط تنقل الحروف اللاصق */
.letter-nav-strip {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--header-h);
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    scrollbar-width: thin;
}
.letter-nav-inner {
    display: flex;
    gap: 4px;
    padding: 9px 20px;
    max-width: var(--container-max);
    margin: 0 auto;
    white-space: nowrap;
}
.letter-nav-inner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-family: 'Amiri', serif;
    font-size: 1.15rem;
    color: var(--accent-green);
    background: var(--bg-secondary);
    transition: all var(--t-fast);
    flex: 0 0 auto;
}
.letter-nav-inner a:hover,
.letter-nav-inner a.active {
    background: var(--accent-green);
    color: #fff;
}

/* رأس الحرف */
.letter-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #fff, var(--accent-gold-soft));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}
.letter-header .big-letter {
    font-family: 'Amiri', serif;
    font-size: 5.5rem;
    color: var(--accent-green);
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(27, 67, 50, 0.12);
}
.letter-header .letter-name {
    font-size: 1.3rem;
    color: var(--text-secondary);
}
.letter-header .letter-count {
    font-size: 0.9rem;
    color: var(--accent-gold-dark);
    background: var(--accent-gold-soft);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-top: 12px;
    border: 1px solid #F0E4C8;
}

/* شريط تصفية المفسّرين */
.letter-filter {
    display: flex;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.filter-btn {
    padding: 9px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-pill);
    background: #fff;
    cursor: pointer;
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--t-fast);
}
.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
}
.filter-btn[data-filter="ibn-sirin"].active { background: var(--ibn-sirin); border-color: var(--ibn-sirin); }
.filter-btn[data-filter="nabulsi"].active { background: var(--nabulsi); border-color: var(--nabulsi); }
.filter-btn[data-filter="ibn-shahin"].active { background: var(--ibn-shahin); border-color: var(--ibn-shahin); }
.filter-btn[data-filter="jafar"].active { background: var(--jafar); border-color: var(--jafar); }

/* ----------------------------------------------------------------
   10) بطاقة الرمز
   ---------------------------------------------------------------- */
.symbol-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 26px 30px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    scroll-margin-top: 140px;
}

.symbol-card h3 {
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 10px;
}
.symbol-card h3::before {
    content: '📖';
    font-size: 1.15rem;
    opacity: 0.55;
}
.symbol-card .symbol-divider {
    height: 2px;
    background: linear-gradient(to left, transparent, var(--border-color), transparent);
    margin: 16px 0 20px;
}

/* تفسير كل مفسّر */
.interpretation {
    padding: 17px 20px;
    margin-bottom: 13px;
    border-radius: var(--radius-sm);
    border-inline-start: 5px solid;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.interpretation:hover {
    transform: translateX(-3px);
    box-shadow: var(--shadow-sm);
}

.interpretation[data-interpreter="ibn-sirin"] { border-inline-start-color: var(--ibn-sirin); background: #F0FAF4; }
.interpretation[data-interpreter="nabulsi"]   { border-inline-start-color: var(--nabulsi);   background: #FDF8EE; }
.interpretation[data-interpreter="ibn-shahin"]{ border-inline-start-color: var(--ibn-shahin);background: #F0F5FA; }
.interpretation[data-interpreter="jafar"]     { border-inline-start-color: var(--jafar);     background: #F5F0FA; }

.interpretation .interpreter-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Amiri', serif;
    flex-wrap: wrap;
}
.interpretation[data-interpreter="ibn-sirin"] .interpreter-name { color: var(--ibn-sirin); }
.interpretation[data-interpreter="nabulsi"] .interpreter-name { color: var(--nabulsi); }
.interpretation[data-interpreter="ibn-shahin"] .interpreter-name { color: var(--ibn-shahin); }
.interpretation[data-interpreter="jafar"] .interpreter-name { color: var(--jafar); }

.interpretation .interpreter-name::before { font-size: 0.85rem; }
.interpretation[data-interpreter="ibn-sirin"] .interpreter-name::before { content: '🟢'; }
.interpretation[data-interpreter="nabulsi"] .interpreter-name::before { content: '🟡'; }
.interpretation[data-interpreter="ibn-shahin"] .interpreter-name::before { content: '🔵'; }
.interpretation[data-interpreter="jafar"] .interpreter-name::before { content: '🟣'; }

.interpretation p {
    font-size: 0.97rem;
    color: var(--text-primary);
    line-height: 2;
}

.interpretation .book-mini {
    opacity: 0.62;
    font-weight: 400;
    font-size: 0.8rem;
}

/* ----------------------------------------------------------------
   11) الشريط الجانبي
   ---------------------------------------------------------------- */
.sidebar-ad {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    min-height: 250px;
    border: 1px dashed var(--border-strong);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-widget {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.sidebar-widget h4 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-secondary);
}
.popular-list li,
.interpreter-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.93rem;
}
.popular-list li:last-child,
.interpreter-list li:last-child { border-bottom: none; }
.popular-list a:hover,
.interpreter-list a:hover { color: var(--accent-gold-dark); }

/* ----------------------------------------------------------------
   12) الفوتر
   ---------------------------------------------------------------- */
.main-footer {
    background: #142e22;
    color: rgba(255, 255, 255, 0.78);
    padding: 54px 20px 24px;
    margin-top: 56px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
    max-width: var(--container-max);
    margin: 0 auto;
}
.footer-section h4 {
    color: var(--accent-gold);
    font-size: 1.05rem;
    margin-bottom: 14px;
}
.footer-section p,
.footer-section li {
    font-size: 0.88rem;
    line-height: 1.9;
}
.footer-section ul li { padding: 3px 0; }
.footer-section ul li a { color: rgba(255, 255, 255, 0.72); }
.footer-section ul li a:hover { color: var(--accent-gold); }

.footer-bottom {
    text-align: center;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ----------------------------------------------------------------
   13) صفحات المحتوى الثابت (عن الموقع / سياسة الخصوصية...)
   ---------------------------------------------------------------- */
.page-hero {
    background: linear-gradient(135deg, #1B4332, #2D6A4F);
    color: #fff;
    text-align: center;
    padding: 52px 20px;
}
.page-hero h1 {
    color: #fff;
    font-size: 2.3rem;
    margin-bottom: 8px;
}
.page-hero p { color: rgba(255, 255, 255, 0.85); }

.page-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 46px 20px 10px;
}

.page-content section {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.page-content h2 {
    font-size: 1.55rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-secondary);
}
.page-content h3 {
    font-size: 1.2rem;
    margin: 18px 0 8px;
    color: var(--accent-green-light);
}
.page-content p { margin-bottom: 12px; color: var(--text-primary); }
.page-content ul,
.page-content ol {
    list-style: none;
    margin: 10px 0 14px;
    padding: 0;
}
.page-content ul li,
.page-content ol li {
    padding: 6px 0 6px 0;
    padding-inline-start: 26px;
    position: relative;
}
.page-content ul li::before {
    content: '◆';
    position: absolute;
    inset-inline-start: 0;
    color: var(--accent-gold);
    font-size: 0.7rem;
    top: 12px;
}
.page-content ol { counter-reset: item; }
.page-content ol li::before {
    counter-increment: item;
    content: counter(item);
    position: absolute;
    inset-inline-start: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    background: var(--accent-green);
    color: #fff;
    border-radius: 50%;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
}

.page-content .note {
    background: var(--accent-gold-soft);
    border-inline-start: 4px solid var(--accent-gold);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    color: var(--text-secondary);
    margin: 16px 0;
}

/* ----------------------------------------------------------------
   14) عناصر مساعدة
   ---------------------------------------------------------------- */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.breadcrumbs a:hover { color: var(--accent-gold-dark); }
.breadcrumbs span.sep { color: var(--border-strong); }

.back-to-top {
    position: fixed;
    inset-inline-start: 22px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-green);
    color: #fff;
    border: none;
    font-size: 1.3rem;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 950;
    transition: transform var(--t-fast), background var(--t-fast);
}
.back-to-top.show { display: block; }
.back-to-top:hover { background: var(--accent-green-light); transform: translateY(-3px); }

.symbol-list-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
}
.symbol-list-links a {
    background: var(--bg-secondary);
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--t-fast);
}
.symbol-list-links a:hover {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
}

/* جدول بسيط للاستخدام في الصفحات */
.simple-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 14px 0;
}
.simple-table th,
.simple-table td {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    text-align: right;
}
.simple-table th {
    background: var(--bg-secondary);
    color: var(--accent-green);
    font-family: 'Amiri', serif;
}
.simple-table tr:nth-child(even) td { background: #FCFAF6; }

/* نموذج الاتصال */
.contact-form { display: grid; gap: 16px; }
.contact-form label {
    font-weight: 600;
    font-size: 0.92rem;
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 1rem;
    background: #fff;
    color: var(--text-primary);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent-green-light);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}
.contact-form textarea { min-height: 150px; resize: vertical; }

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    margin-bottom: 14px;
}
.alert-info {
    background: #EAF4EF;
    border-inline-start: 4px solid var(--accent-green-light);
    color: var(--accent-green);
}

/* ----------------------------------------------------------------
   15) الطباعة
   ---------------------------------------------------------------- */
@media print {
    .main-header, .main-footer, .ad-zone, .sidebar-ad,
    .letter-nav-strip, .letter-filter, .back-to-top,
    .mobile-menu-btn, .ad-sticky-mobile { display: none !important; }
    body { background: #fff; font-size: 12pt; }
    .symbol-card, .interpretation { box-shadow: none; border: 1px solid #ccc; }
    .letter-page-wrapper { display: block; }
}
