/* ==========================================================================
   منصة وتطبيق «إعدادي — دروس اللغة العربية» | fasaha.space
   تصميم تحريري عربي مغربي أصيل — متجاوب أولاً للهواتف (Mobile-First)
   ========================================================================== */

:root {
  --paper: #faf7f0;
  --paper-alt: #f2ece0;
  --surface: #ffffff;
  --ink: #1b2826;
  --ink-muted: #4f5f5c;
  --emerald: #0b4f4a;
  --emerald-mid: #0f766e;
  --emerald-soft: #e6f2ef;
  --brass: #b8821b;
  --brass-light: #e5b853;
  --brass-soft: #fdf5e4;
  --border: #e3dac9;
  --border-strong: #cfc2ab;
  --shadow-sm: 0 2px 10px rgba(11, 79, 74, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 79, 74, 0.10);
  --shadow-phone: 0 24px 56px rgba(11, 45, 42, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: 'Amiri', 'Traditional Arabic', serif;
  --font-kufi: 'Reem Kufi', 'Tajawal', sans-serif;
  --font-body: 'Tajawal', 'Cairo', system-ui, sans-serif;
  --container: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 18px;
}

/* ------------------ الخطوط والعبارات المزخرفة الأصيلة ------------------ */
.font-amiri {
  font-family: var(--font-display);
}

.font-kufi {
  font-family: var(--font-kufi);
}

.ornament-verse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.2vw, 1.2rem);
  color: var(--emerald);
  background: var(--brass-soft);
  border: 1px solid rgba(184, 130, 27, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  line-height: 1.5;
}

.ornament-verse .star {
  color: var(--brass);
  font-size: 1.05em;
}

.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 14px;
  max-width: 260px;
  color: var(--brass);
}

.section-ornament::before,
.section-ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

.calligraphy-ribbon {
  text-align: center;
  padding: 20px 18px;
  background: var(--emerald);
  color: #f8f2e4;
  border-top: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  position: relative;
}

.calligraphy-ribbon p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.65;
}

.calligraphy-ribbon .sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #f4d58d;
  font-weight: 500;
}

/* ------------------ الشريط العلوي المتجاوب ------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--brass);
  flex-shrink: 0;
  background: var(--emerald);
  box-shadow: var(--shadow-sm);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-kufi);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--emerald);
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.desktop-nav a {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--emerald);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(11, 79, 74, 0.22);
}

.btn-primary:hover {
  background: #083d39;
  transform: translateY(-2px);
}

.btn-brass {
  background: var(--brass);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(184, 130, 27, 0.25);
}

.btn-brass:hover {
  background: #9f6e12;
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--surface);
  color: var(--emerald);
  border-color: var(--emerald);
}

.btn-outline:hover {
  background: var(--emerald-soft);
}

.btn-header-dl {
  min-height: 38px;
  padding: 7px 11px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--emerald);
}

/* ------------------ القائمة المنزلقة للهواتف ------------------ */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 35, 33, 0.48);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(310px, 84vw);
  background: var(--paper);
  z-index: 130;
  padding: 20px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 2px solid var(--brass);
  transform: translateX(102%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--emerald);
  font-size: 1.3rem;
  display: grid;
  place-items: center;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-links a {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  border: 1px solid transparent;
}

.drawer-links a.active,
.drawer-links a:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--emerald);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ------------------ الواجهة الافتتاحية (Hero التحريري) ------------------ */
.hero {
  position: relative;
  padding: 32px 0 46px;
  background:
    radial-gradient(circle at 8% 12%, rgba(184, 130, 27, 0.10), transparent 38%),
    radial-gradient(circle at 92% 88%, rgba(11, 79, 74, 0.08), transparent 42%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.hero-copy {
  text-align: right;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7.6vw, 3.35rem);
  line-height: 1.28;
  margin: 14px 0 12px;
  color: var(--emerald);
  font-weight: 700;
}

.hero-title .gold-accent {
  color: var(--brass);
}

.hero-lead {
  font-size: clamp(1rem, 3.6vw, 1.12rem);
  color: var(--ink-muted);
  margin: 0 0 20px;
  max-width: 58ch;
  line-height: 1.85;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-cta-group .btn {
  width: 100%;
}

.store-search-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: 4px solid var(--brass);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 22px;
}

.store-search-tip strong {
  color: var(--emerald);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-kufi);
  font-size: clamp(1.25rem, 4.8vw, 1.65rem);
  font-weight: 700;
  color: var(--emerald);
  line-height: 1.2;
}

.stat-label {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 700;
}

/* ------------------ إطار الهاتف الحقيقي ------------------ */
.hero-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.phone-device {
  width: min(296px, 80vw);
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(155deg, #1b2a29, #0c1716);
  box-shadow: var(--shadow-phone);
  border: 2px solid #354b49;
  position: relative;
}

.phone-notch {
  width: 78px;
  height: 16px;
  background: #0c1716;
  border-radius: 0 0 12px 12px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #0b4f4a;
  aspect-ratio: 540 / 1107;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.24s ease;
}

.phone-caption-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald);
  box-shadow: var(--shadow-sm);
}

/* ------------------ الأقسام العامة ------------------ */
.section {
  padding: 52px 0;
}

.section-alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 30px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-kufi);
  font-size: 0.92rem;
  color: var(--brass);
  font-weight: 700;
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  color: var(--emerald);
  margin: 0 0 10px;
  line-height: 1.3;
}

.section-desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

/* ------------------ معرض واجهات الهاتف التفاعلي ------------------ */
.screens-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.screen-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.screen-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  text-align: right;
  color: var(--ink);
  transition: all 0.2s ease;
  min-height: 58px;
}

.screen-tab-btn .tab-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.screen-tab-btn .tab-title {
  display: block;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.25;
}

.screen-tab-btn .tab-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.screen-tab-btn.active {
  border-color: var(--emerald);
  background: var(--emerald);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.screen-tab-btn.active .tab-ico {
  background: rgba(255, 255, 255, 0.16);
  color: #f4d58d;
  transform: scale(1.06);
}

.screen-tab-btn.active .tab-sub {
  color: rgba(255, 255, 255, 0.84);
}

.screen-detail-box {
  margin-top: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.screen-detail-box h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--emerald);
}

.screen-detail-box p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

/* ------------------ مستكشف المقررات والكتب التسعة ------------------ */
.grade-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.grade-tab {
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.94rem;
  transition: all 0.2s ease;
}

.grade-tab.active {
  background: var(--emerald);
  color: #ffffff;
  border-color: var(--emerald);
  box-shadow: var(--shadow-sm);
}

.books-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.book-card:hover {
  transform: translateY(-3px);
  border-color: var(--brass);
}

.book-cover {
  width: 82px;
  height: 112px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

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

.book-info h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--emerald);
  line-height: 1.3;
}

.book-publisher {
  font-size: 0.82rem;
  color: var(--brass);
  font-weight: 700;
  margin-bottom: 6px;
}

.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.book-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
}

.curriculum-summary-bar {
  margin-top: 20px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* ------------------ معرض الشخصيات العربية الـ 16 ------------------ */
.avatar-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-pill {
  min-height: 40px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.filter-pill.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}

.avatar-spotlight {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--brass);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 0 auto 20px;
  max-width: 540px;
  box-shadow: var(--shadow-sm);
}

.avatar-spotlight img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brass);
  flex-shrink: 0;
}

.avatar-spotlight h3 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--emerald);
}

.avatar-spotlight p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.avatars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.avatar-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.avatar-card:hover,
.avatar-card.selected {
  transform: translateY(-3px);
  border-color: var(--brass);
  box-shadow: var(--shadow-md);
}

.avatar-card.selected {
  background: var(--brass-soft);
}

.avatar-card img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 3px solid var(--emerald-soft);
}

.avatar-card.selected img {
  border-color: var(--brass);
}

.avatar-card .av-name {
  display: block;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--emerald);
  line-height: 1.3;
}

.avatar-card .av-role {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ------------------ ركائز التطبيق بأيقونات تفاعلية ------------------ */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--emerald-mid);
}

.pillar-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(11, 79, 74, 0.14);
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.pillar-card:hover .pillar-icon {
  background: var(--emerald);
  color: #f4d58d;
  transform: rotate(-4deg) scale(1.06);
}

.pillar-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--emerald);
}

.pillar-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

/* ------------------ بطاقة المؤلف والرسالة التربوية ------------------ */
.author-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.author-quote {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--paper);
  border-right: 4px solid var(--brass);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--emerald);
  line-height: 1.7;
}

.social-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--emerald);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.social-chip:hover {
  background: var(--emerald-soft);
  border-color: var(--emerald);
}

/* ------------------ الأسئلة الشائعة ------------------ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 15px 18px;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--emerald);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--brass);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 18px 16px;
  color: var(--ink-muted);
  font-size: 0.94rem;
  line-height: 1.8;
  border-top: 1px solid var(--paper-alt);
  padding-top: 12px;
}

/* ------------------ بطاقة التحميل الختامية ------------------ */
.download-band {
  background: linear-gradient(135deg, #0b4f4a 0%, #0d6961 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  border: 2px solid var(--brass);
  box-shadow: var(--shadow-md);
}

.download-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6vw, 2.4rem);
  margin: 0 0 10px;
  color: #ffffff;
}

.download-band p {
  margin: 0 auto 20px;
  max-width: 56ch;
  color: #e6f3f0;
  font-size: 0.98rem;
}

/* ------------------ صفحات المحتوى الداخلية (الخصوصية، الشروط، عن، تواصل) ------------------ */
.page-hero {
  background: var(--emerald);
  color: #ffffff;
  padding: 36px 0;
  border-bottom: 3px solid var(--brass);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.6rem);
  margin: 0 0 8px;
}

.page-hero p {
  margin: 0;
  color: #e2f1ee;
  max-width: 62ch;
}

.prose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.prose-card h2 {
  font-family: var(--font-display);
  color: var(--emerald);
  font-size: 1.45rem;
  margin: 24px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--paper-alt);
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card ul {
  padding-right: 20px;
  margin: 8px 0 14px;
}

.prose-card li {
  margin-bottom: 6px;
  color: var(--ink-muted);
}

.prose-card p {
  color: var(--ink-muted);
  margin: 0 0 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--emerald);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--emerald);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: inherit;
  font-size: 0.96rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--paper);
  color: var(--ink);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--emerald);
  background: #ffffff;
}

/* ------------------ التذييل ------------------ */
.site-footer {
  background: #093d39;
  color: #dcebe8;
  padding: 40px 0 24px;
  border-top: 3px solid var(--brass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-col h4 {
  font-family: var(--font-kufi);
  color: #f4d58d;
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.92rem;
  color: #dcebe8;
}

.footer-links a:hover {
  color: #f4d58d;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  font-size: 0.85rem;
  color: #b7d3ce;
}

/* ------------------ نقاط التجاوب للأجهزة اللوحية والحاسوب ------------------ */
@media (max-width: 440px) {
  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-sub {
    font-size: 0.7rem;
  }

  .btn-header-dl {
    padding: 6px 10px;
    font-size: 0.78rem;
    gap: 5px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-cta-group .btn {
    width: auto;
  }

  .avatars-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

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

  .curriculum-summary-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .container {
    padding-inline: 28px;
  }

  .desktop-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero {
    padding: 54px 0 68px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 44px;
  }

  .section {
    padding: 72px 0;
  }

  .screens-showcase {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
  }

  .books-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .author-panel {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 34px 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }
}
