/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"src/app/layout.tsx","import":"Tajawal","arguments":[{"subsets":["arabic"],"weight":["400","500","700","900"],"display":"swap"}],"variableName":"tajawal"} ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* arabic */
@font-face {
  font-family: '__Tajawal_d4d3d8';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/dd994fbf464986f0-s.p.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: '__Tajawal_d4d3d8';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/e97026df054cf2a3-s.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: '__Tajawal_d4d3d8';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/63a79a6cf340c5d2-s.p.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: '__Tajawal_d4d3d8';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/f15f45d13243c643-s.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: '__Tajawal_d4d3d8';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/1ebb550cd0a67fc6-s.p.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: '__Tajawal_d4d3d8';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/ce401babc0566bc1-s.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: '__Tajawal_d4d3d8';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/_next/static/media/420b3da95f5fbf98-s.p.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: '__Tajawal_d4d3d8';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/_next/static/media/0a61324d85234ed0-s.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Tajawal_Fallback_d4d3d8';src: local("Arial");ascent-override: 67.93%;descent-override: 37.71%;line-gap-override: 21.13%;size-adjust: 94.66%
}.__className_d4d3d8 {font-family: '__Tajawal_d4d3d8', '__Tajawal_Fallback_d4d3d8';font-style: normal
}

/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #faf6ef;
  --surface: #ffffff;
  --border: #e6e0d2;
  --text: #1c2420;
  --text-muted: #666a60;
  --accent: #0b6b56;
  --accent-dark: #073f33;
  --accent-soft: #e8f3f0;
  --secondary-bg: #f3ede0;
  --warn: #a8752a;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-hover: 0 8px 22px rgba(7, 63, 51, 0.08);
  --max-width: 780px;
  --wide-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  color: var(--text);
}

button {
  font-family: inherit;
}

/* ===== الهيدر ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header-start {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-logo {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--accent-dark);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 22px;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-footer {
  max-width: var(--wide-width);
  margin: 40px auto 0;
  padding: 24px 20px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== الصفحة الرئيسية ===== */
.home {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 20px 60px;
}

.hero {
  text-align: center;
  padding: clamp(36px, 7vw, 68px) 20px clamp(20px, 4vw, 32px);
  max-width: 680px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 900;
  margin: 0 0 10px;
}

.hero .tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 28px;
}

.hero-note {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 14px 0 0;
}

.search {
  display: flex;
  gap: 8px;
}

.search input {
  flex: 1 1;
  padding: 15px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 1rem;
  background: var(--surface);
  font-family: inherit;
}

.search input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.search button {
  padding: 15px 30px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search button:hover {
  background: var(--accent-dark);
}

.inline-search {
  display: flex;
  gap: 8px;
  margin: 4px 0 4px;
}

.inline-search input {
  flex: 1 1;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  background: var(--surface);
  font-family: inherit;
}

.inline-search button {
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.inline-search button:hover {
  background: var(--accent-dark);
}

/* أقسام الصفحة الرئيسية */
.home-section {
  margin-top: 52px;
}

.home-section h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 18px;
  text-align: center;
}

.view-all {
  display: block;
  text-align: center;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.view-all:hover {
  text-decoration: underline;
}

/* بطاقتا "تصفح حسب" في الرئيسية */
.browse-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 18px;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}

.browse-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.browse-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}

.browse-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.browse-card-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.browse-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.browse-card-cta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.cta-chevron {
  width: 14px;
  height: 14px;
  transform: scaleX(-1); /* RTL: السهم يشاور لليسار */
}

.grid-search {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 20px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  background: var(--surface);
  font-family: inherit;
}

.grid-search:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== كروت التصنيفات/المصادر (صفحة تصفح كاملة) ===== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  justify-content: center;
  grid-gap: 14px;
  gap: 14px;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.showcase-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-soft);
}

.showcase-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  margin-bottom: 8px;
  color: var(--accent-dark);
}

.showcase-card--category .showcase-card-icon {
  background: var(--accent-soft);
}

.showcase-card--source .showcase-card-icon {
  background: var(--secondary-bg);
  color: var(--warn);
}

.showcase-card .name {
  font-weight: 800;
  font-size: 1.02rem;
}

.showcase-card .count {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.showcase-card .cta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
}

/* ===== قائمة دليل (Directory) — صفحة التصنيفات ===== */
.index-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 0 36px;
  gap: 0 36px;
}

.index-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 6px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s ease, background 0.15s ease;
}

.index-row:hover {
  color: var(--accent-dark);
  background: var(--secondary-bg);
}

.index-row:hover .index-row-chevron {
  color: var(--accent);
}

.index-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.index-row-name {
  font-weight: 700;
  font-size: 0.95rem;
  flex: 1 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-row-count {
  color: var(--text-muted);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.index-row-chevron {
  width: 14px;
  height: 14px;
  color: var(--border);
  flex-shrink: 0;
  transform: scaleX(-1);
}

/* ===== صفحات البحث/التصفح ===== */
.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--accent);
}

.search-page,
.fatwa-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-page.has-filters {
  max-width: var(--wide-width);
}

.search-page.browse-page {
  max-width: var(--wide-width);
}

.page-header {
  text-align: center;
}

.page-header h1 {
  font-size: 1.5rem;
  margin: 0 0 4px;
}

.results-count-query {
  color: var(--text-muted);
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
}

.hint,
.error,
.results-count {
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

.error {
  color: var(--warn);
}

.hint {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

/* شريط: عدد النتائج + زرار الفلاتر */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.results-toolbar .results-count {
  text-align: right;
  margin: 0;
}

/* ===== زرار وDrawer الفلاتر ===== */
.filters-drawer-wrap {
  position: relative;
}

.filters-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.filters-trigger:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.filters-trigger-icon {
  width: 16px;
  height: 16px;
}

.filters-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 36, 32, 0.35);
  z-index: 30;
}

.drawer-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: 300px;
  max-width: 90vw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(7, 63, 51, 0.16);
  z-index: 31;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}

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

.drawer-panel-header h3 {
  margin: 0;
  font-size: 1rem;
}

.drawer-close {
  display: flex;
  border: none;
  background: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-muted);
}

.drawer-close:hover {
  color: var(--text);
}

.drawer-panel-body {
  padding: 16px 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-group h3 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
}

.filter-search {
  width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  font-family: inherit;
  background: var(--bg);
}

.filter-search:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.filter-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 6px 8px;
}

.filter-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
}

.filter-link {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}

.filter-link:hover {
  background: var(--secondary-bg);
}

.filter-link.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
}

.filter-count {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.filter-link.active .filter-count {
  color: var(--accent-dark);
}

/* ===== نتائج الفتاوى ===== */
.results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.results-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.result-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-soft);
}

.result-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.result-card:hover .result-title {
  color: var(--accent);
}

.result-excerpt {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.result-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.result-meta .scholar {
  color: var(--accent-dark);
}

/* ===== ملخص AI (معاينة تصميم فقط) ===== */
.ai-summary-card {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-summary-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--accent-dark);
  font-size: 0.95rem;
}

.ai-summary-icon {
  width: 18px;
  height: 18px;
}

.ai-summary-preview-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

/* ===== صفحة الفتوى ===== */
.fatwa-source-line {
  text-align: center;
}

.fatwa-source-line .scholar {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.fatwa-category-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--secondary-bg);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.fatwa-page section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.fatwa-page section h2 {
  font-size: 0.85rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
}

.fatwa-page section p {
  margin: 0;
  line-height: 1.95;
  font-size: 1.02rem;
}

.share-row {
  display: flex;
  justify-content: center;
}

.whatsapp-share {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.whatsapp-share:hover {
  border-color: #25d366;
  color: #1da851;
}

.source-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.source-box-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.source-link {
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 999px;
}

.source-link:hover {
  background: var(--accent-dark);
}

.copy-link-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.copy-link-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.copy-link-icon {
  width: 15px;
  height: 15px;
}

.report-issue-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.report-issue-link:hover {
  border-color: var(--warn);
  color: var(--warn);
}

.report-issue-icon {
  width: 15px;
  height: 15px;
}

.fatwa-page section ul {
  margin: 10px 0 0;
  -webkit-padding-start: 22px;
          padding-inline-start: 22px;
  line-height: 1.95;
  font-size: 1.02rem;
}

.related-fatwas.fatwa-page section,
.related-fatwas {
  background: transparent;
  border: none;
  padding: 0;
}

.related-fatwas h2 {
  text-align: center;
  margin-bottom: 16px;
}

/* ===== الترقيم ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.page-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.page-link.disabled {
  color: var(--border);
  pointer-events: none;
}

.page-link:hover {
  text-decoration: underline;
}

.page-numbers {
  display: flex;
  gap: 4px;
}

.page-number {
  min-width: 32px;
  text-align: center;
  padding: 4px 6px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.page-number:hover {
  background: var(--secondary-bg);
}

.page-number.active {
  background: var(--accent);
  color: #fff;
}

.page-ellipsis {
  color: var(--text-muted);
  padding: 4px 2px;
}

/* ===== حالات التحميل (Skeleton) ===== */
@keyframes skeleton-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.skeleton {
  background: var(--secondary-bg);
  border-radius: 8px;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line {
  height: 12px;
}

.skeleton-line.w-60 {
  width: 60%;
}

.skeleton-line.w-100 {
  width: 100%;
}

.skeleton-line.w-80 {
  width: 80%;
}

.skeleton-line.title {
  height: 16px;
  width: 45%;
}

/* ===== استجابة الموبايل ===== */
@media (max-width: 768px) {
  .browse-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .site-header-start {
    gap: 16px;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 0.85rem;
  }

  .search,
  .inline-search {
    flex-direction: column;
  }

  .search button,
  .inline-search button {
    width: 100%;
  }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .search-page,
  .fatwa-page {
    padding: 24px 14px 60px;
  }

  .result-card,
  .fatwa-page section {
    padding: 14px 16px;
  }

  .drawer-panel {
    position: fixed;
    inset: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .drawer-panel-body {
    max-height: none;
  }

  .source-box-actions {
    flex-direction: column;
    width: 100%;
  }

  .source-link,
  .copy-link-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

