    @font-face {
    font-family: Vazir;
    src: url("/static/fonts/IRANSansWeb(FaNum).eot");
    src: url("/static/fonts/IRANSansWeb(FaNum).eot?#iefix") format("embedded-opentype"), url("/static/fonts/IRANSansWeb(FaNum).woff2") format("woff2"), url("/static/fonts/IRANSansWeb(FaNum).woff") format("woff"),
        url("/static/fonts/IRANSansWeb(FaNum).ttf") format("truetype");
    font-display: swap;
}
* {
    font-family: Vazir !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

    :root{
      --header-bg:#308497;       /* اصلی برند */
      --header-hover:#24a19d;    /* هاور و تأکید */
      --border:#50a1b1;          /* خطوط لطیف */
      --accent:#e6bc23;          /* هایلایت */
      --text:#484848;
      --muted:#666;
      --card:#fffdf7;
      --bg:#f6f7f8;
      --radius:18px;
      --shadow:0 10px 30px rgba(0,0,0,.08);
    }
    *{box-sizing:border-box}
    html,body{margin:0;background:var(--bg);color:var(--text);font-family: Vazir, Tahoma, sans-serif;line-height:1.8;  background:  url('/static/bg.jpg') repeat;
    }
    a{color:var(--header-bg);text-decoration:none}
    a:hover{color:var(--header-hover)}
    .container{max-width:1080px;margin:auto;padding:24px 16px}

    /* ====== Hero ====== */
    .hero{
      background:linear-gradient(180deg,#d6ac74 0%, #ffffff 60%, #f1f7f8 100%);
      border:1px solid rgba(80,161,177,.18);
      border-radius:28px;
      box-shadow:var(--shadow);
      padding:28px;
      display:grid;
      grid-template-columns: 1.1fr .9fr;
      gap:28px;
      align-items:center;
    }
    .hero-media{

      border-radius:24px;
      padding:18px;
    }
    .cover{
      width:100%;
      aspect-ratio: 16/10;
      object-fit:cover;
      border-radius:16px;
      border:1px solid rgba(80,161,177,.25);
      display:block;
    }
    .title{
      font-size:clamp(22px, 3vw, 36px);
      margin:6px 0 12px;
      font-weight:800;
      letter-spacing:-.2px;
    }
    .lead{
      color:var(--muted);
      font-size:clamp(14px, 1.6vw, 16px);
      margin-bottom:18px;
    }

    .cta-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
    .btn{
      cursor:pointer;
      border:none;
      border-radius:14px;
      padding:12px 18px;
      font-weight:700;
      font-size:15px;
      transition:transform .05s ease, box-shadow .2s ease, background .2s ease;
      box-shadow:0 6px 16px rgba(48,132,151,.18);
    }
    .btn:active{transform:translateY(1px)}
    .btn-primary{
      background:#d6ac74;
      color:#fff;
      width : 100%;
      text-align: center;
    }
    .btn-ghost{
      background:#fff;
      color:var(--header-bg);
      border:1px solid rgba(80,161,177,.35);
    }
    .meta-row{
      display:flex;gap:14px;flex-wrap:wrap;margin-top:14px;color:#888;font-size:13px
    }
    .chip{background:#f3fbfd;border:1px dashed var(--border);padding:6px 10px;border-radius:999px}

    /* ====== Video / quick preview ====== */
    .video-card{
      background:#fff;border:1px solid rgba(80,161,177,.25);
      border-radius:18px;padding:14px;margin-top:14px
    }
    video{width:100%;border-radius:12px;display:block}
    .video-note{font-size:13px;color:#777;margin-top:6px}

    /* ====== Details section ====== */
    .section{
      margin-top:28px;background:#fff;border:1px solid rgba(80,161,177,.18);
      border-radius:22px;box-shadow:var(--shadow);padding:22px
    }
    .sec-title{font-size:20px;margin:0 0 8px;color:#222}
    .faq{border-top:1px dashed rgba(80,161,177,.35);margin-top:12px;padding-top:12px}
    details{background:#fcfefd;border:1px dashed rgba(80,161,177,.35);border-radius:14px;padding:10px 14px}
    details+details{margin-top:10px}
    summary{cursor:pointer;font-weight:700;color:#2c7783}
    .note{background:#fff7df;border:1px dashed #e6bc23;color:#6d5a1a;border-radius:12px;padding:10px 12px;margin-top:12px;font-size:14px}

    /* ====== Result box (anchor scroll) ====== */
    .result{
      margin-top:24px;border:2px dashed var(--border);background:#fff;border-radius:16px;padding:16px;min-height:80px
    }

    /* ====== Responsive ====== */
    @media (max-width: 960px){
      .hero{grid-template-columns:1fr; padding:22px}
      .hero-media{order:-1}
    }
    @media (max-width: 540px){
      .cta-row .btn{flex:1 1 auto;text-align:center}
    }
    

/* ==== Related Fals v2 (scoped) ==== */
.related-fals.v2{
  margin-top: 28px;
  padding: 18px;
  background: #fff;
  border: 1px dashed rgba(80,161,177,.35);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.related-fals.v2 h3{
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--header-bg);
}

.related-fals.v2 .rf-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  overflow: hidden;
}

.related-fals.v2 .rf-card{
  display: flex;
  flex-direction: column;
  background: #fffdf7;
  border: 1px solid rgba(80,161,177,.22);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
  overflow: hidden;
}
.related-fals.v2 .rf-card:hover{
  transform: translateY(-3px);
  border-color: var(--header-bg);
  box-shadow: 0 8px 20px rgba(48,132,151,.15);
}

.related-fals.v2 .rf-media{
  position: relative;
  aspect-ratio: 16/10;
  background: #f3fbfd;
  overflow: hidden;
}
.related-fals.v2 .rf-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-fals.v2 .rf-body{
  padding: 10px 12px 12px;
}
.related-fals.v2 .rf-title{
  font-size: 15px;
  margin: 0 0 6px;
  color: #2b2b2b;
}
.related-fals.v2 .rf-desc{
  font-size: 13px;
  margin: 0 0 10px;
  color: #6a6a6a;
  line-height: 1.6;
}
.related-fals.v2 .rf-link.dotted-link{
  font-size: 13px;
  border-bottom: 1px dotted currentColor;
}

/* موبایل: اسکرول افقی کارت‌ها */
@media (max-width: 980px){
  .related-fals.v2 .rf-grid{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .related-fals.v2 .rf-grid::-webkit-scrollbar{ height: 6px; }
  .related-fals.v2 .rf-grid::-webkit-scrollbar-thumb{
    background: rgba(48,132,151,.35); border-radius: 999px;
  }
}
@media (max-width: 560px){
  .related-fals.v2 .rf-grid{ grid-auto-columns: 86%; }
}


/* ===== Breadcrumb (RTL, Responsive, Light/Dark) ===== */
.breadcrumb {
  direction: rtl;                    /* برای متن فارسی */
  font-size: 0.95rem;
  --bc-fg: #374151;                  /* متن لینک‌ها */
  --bc-fg-muted: #6b7280;            /* متن آیتم آخر */
  --bc-sep: #d1d5db;                 /* رنگ جداکننده */
  --bc-bg: transparent;
  --bc-link: #0ea5e9;                /* آبی لینک */
  --bc-link-hover: #0284c7;

  background: var(--bc-bg);
  margin: 0 0 1rem;
  padding: .5rem 0;
  overflow-x: auto;                  /* اسکرول افقی در موبایل‌های خیلی باریک */
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

.breadcrumb::-webkit-scrollbar { height: 6px; }
.breadcrumb::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }
.breadcrumb:hover::-webkit-scrollbar-thumb { background: #d1d5db; }

.breadcrumb ol {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* آیتم‌ها */
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  max-width: 22ch;                   /* جلوگیری از طول زیاد */
}

.breadcrumb li a,
.breadcrumb li[aria-current="page"] {
  display: inline-block;
  text-decoration: none;
  line-height: 1.9;
  padding: .125rem .25rem;
  border-radius: .375rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb li a {
  color: var(--bc-fg);
  border: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.breadcrumb li a:hover,
.breadcrumb li a:focus-visible {
  color: var(--bc-link-hover);
  border-color: #e5e7eb;
  background: #f8fafc;
  outline: none;
}

.breadcrumb li[aria-current="page"] {
  color: var(--bc-fg-muted);
  cursor: default;
}

/* جداکننده بین آیتم‌ها */
.breadcrumb li + li::before {
  content: "›";                      /* می‌تونی "—" یا "/" بذاری */
  display: inline-block;
  margin: 0 .25rem;
  color: var(--bc-sep);
  transform: translateY(-1px);
  font-weight: 600;
}

/* حالت تراکم کمتر در دسکتاپ */
@media (min-width: 768px) {
  .breadcrumb { font-size: 1rem; }
  .breadcrumb li { max-width: 28ch; }
}

/* دارک‌مود خودکار */
@media (prefers-color-scheme: dark) {
  .breadcrumb {
    --bc-fg: #e5e7eb;
    --bc-fg-muted: #9ca3af;
    --bc-sep: #4b5563;
    --bc-bg: transparent;
    --bc-link: #38bdf8;
    --bc-link-hover: #7dd3fc;
  }
  .breadcrumb li a:hover,
  .breadcrumb li a:focus-visible {
    background: #0b1220;
    border-color: #1f2937;
  }
}

/* اگر صفحه LTR بود ولی متن breadcrumb فارسی است */
html[dir="ltr"] .breadcrumb { direction: rtl; }


/* استایل مخصوص بخش مقاله فال */
.article-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
  color: var(--header-bg);
  line-height: 1.6;
}

.article-content h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 25px 0 12px;
  padding-right: 10px;
  border-right: 3px solid var(--header-bg);
  color: #444;
  line-height: 1.6;
}

.article-content p {
  margin-bottom: 18px;
  font-size: 17px;
  color: var(--text-body);
  line-height: 2;

}

.article-content ul {
  margin: 15px 0 20px;
  padding-right: 22px;
}

.article-content ul li {
  margin-bottom: 8px;
  line-height: 1.8;
  color: #555;
  position: relative;
}

.article-content ul li::before {
  content: "•";
  position: absolute;
  right: -18px;
  color: var(--header-bg);
}/* ==== Related Fals v2 (scoped) ==== */
.related-fals.v2{
  margin-top: 28px;
  padding: 18px;
  background: #fff;
  border: 1px dashed rgba(80,161,177,.35);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.related-fals.v2 h3{
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--header-bg);
}

.related-fals.v2 .rf-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  overflow: hidden;
}

.related-fals.v2 .rf-card{
  display: flex;
  flex-direction: column;
  background: #fffdf7;
  border: 1px solid rgba(80,161,177,.22);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
  overflow: hidden;
}
.related-fals.v2 .rf-card:hover{
  transform: translateY(-3px);
  border-color: var(--header-bg);
  box-shadow: 0 8px 20px rgba(48,132,151,.15);
}

.related-fals.v2 .rf-media{
  position: relative;
  aspect-ratio: 16/10;
  background: #f3fbfd;
  overflow: hidden;
}
.related-fals.v2 .rf-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-fals.v2 .rf-body{
  padding: 10px 12px 12px;
}
.related-fals.v2 .rf-title{
  font-size: 15px;
  margin: 0 0 6px;
  color: #2b2b2b;
}
.related-fals.v2 .rf-desc{
  font-size: 13px;
  margin: 0 0 10px;
  color: #6a6a6a;
  line-height: 1.6;
}
.related-fals.v2 .rf-link.dotted-link{
  font-size: 13px;
  border-bottom: 1px dotted currentColor;
}

/* موبایل: اسکرول افقی کارت‌ها */
@media (max-width: 980px){
  .related-fals.v2 .rf-grid{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .related-fals.v2 .rf-grid::-webkit-scrollbar{ height: 6px; }
  .related-fals.v2 .rf-grid::-webkit-scrollbar-thumb{
    background: rgba(48,132,151,.35); border-radius: 999px;
  }
}
@media (max-width: 560px){
  .related-fals.v2 .rf-grid{ grid-auto-columns: 86%; }
}


/* ===== Breadcrumb (RTL, Responsive, Light/Dark) ===== */
.breadcrumb {
  direction: rtl;                    /* برای متن فارسی */
  font-size: 0.95rem;
  --bc-fg: #374151;                  /* متن لینک‌ها */
  --bc-fg-muted: #6b7280;            /* متن آیتم آخر */
  --bc-sep: #d1d5db;                 /* رنگ جداکننده */
  --bc-bg: transparent;
  --bc-link: #0ea5e9;                /* آبی لینک */
  --bc-link-hover: #0284c7;

  background: var(--bc-bg);
  margin: 0 0 1rem;
  padding: .5rem 0;
  overflow-x: auto;                  /* اسکرول افقی در موبایل‌های خیلی باریک */
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

.breadcrumb::-webkit-scrollbar { height: 6px; }
.breadcrumb::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }
.breadcrumb:hover::-webkit-scrollbar-thumb { background: #d1d5db; }

.breadcrumb ol {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* آیتم‌ها */
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  max-width: 22ch;                   /* جلوگیری از طول زیاد */
}

.breadcrumb li a,
.breadcrumb li[aria-current="page"] {
  display: inline-block;
  text-decoration: none;
  line-height: 1.9;
  padding: .125rem .25rem;
  border-radius: .375rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb li a {
  color: var(--bc-fg);
  border: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.breadcrumb li a:hover,
.breadcrumb li a:focus-visible {
  color: var(--bc-link-hover);
  border-color: #e5e7eb;
  background: #f8fafc;
  outline: none;
}

.breadcrumb li[aria-current="page"] {
  color: var(--bc-fg-muted);
  cursor: default;
}

/* جداکننده بین آیتم‌ها */
.breadcrumb li + li::before {
  content: "›";                      /* می‌تونی "—" یا "/" بذاری */
  display: inline-block;
  margin: 0 .25rem;
  color: var(--bc-sep);
  transform: translateY(-1px);
  font-weight: 600;
}

/* حالت تراکم کمتر در دسکتاپ */
@media (min-width: 768px) {
  .breadcrumb { font-size: 1rem; }
  .breadcrumb li { max-width: 28ch; }
}

/* دارک‌مود خودکار */
@media (prefers-color-scheme: dark) {
  .breadcrumb {
    --bc-fg: #e5e7eb;
    --bc-fg-muted: #9ca3af;
    --bc-sep: #4b5563;
    --bc-bg: transparent;
    --bc-link: #38bdf8;
    --bc-link-hover: #7dd3fc;
  }
  .breadcrumb li a:hover,
  .breadcrumb li a:focus-visible {
    background: #0b1220;
    border-color: #1f2937;
  }
}

/* اگر صفحه LTR بود ولی متن breadcrumb فارسی است */
html[dir="ltr"] .breadcrumb { direction: rtl; }


/* استایل مخصوص بخش مقاله فال */
.article-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
  color: var(--header-bg);
  line-height: 1.6;
}

.article-content h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 25px 0 12px;
  padding-right: 10px;
  border-right: 3px solid var(--header-bg);
  color: #444;
  line-height: 1.6;
}

.article-content p {
  margin-bottom: 18px;
  font-size: 17px;
  color: var(--text-body);
  line-height: 2;

}

.article-content ul {
  margin: 15px 0 20px;
  padding-right: 22px;
}

.article-content ul li {
  margin-bottom: 8px;
  line-height: 1.8;
  color: #555;
  position: relative;
}

.article-content ul li::before {
  content: "•";
  position: absolute;
  right: -18px;
  color: var(--header-bg);
}
/* ==== Daily Fal Card (scoped) ==== */
.daily-fal-card{
  background:#fff;
  border:1px solid rgba(80,161,177,.25);
  border-radius:20px;
  padding:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
  margin-top:18px;
}

.daily-fal-card .fal-cover{
  margin:0 0 12px;
  border-radius:14px;
  overflow:hidden;
  background:#f7fafb;
  display: flex;
  justify-content: center;
}
.daily-fal-card .fal-cover img{
  width:auto;
  height:600px;
  display:block;
}

.daily-fal-card .fal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-bottom:10px;
  border-bottom:1px dashed rgba(80,161,177,.35);
}
.daily-fal-card h2{
  margin:0 0 6px;
  font-size:20px;
  color:var(--header-bg, #308497);
}
.daily-fal-card .fal-meta{
  font-size:13px;
  color:#6c757d;
}

.daily-fal-card .toolbar-group{
  display:flex;
  align-items:center;
  gap:10px;
}
.daily-fal-card .tb-btn{
  appearance:none;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  width:40px; height:40px;
  border-radius:10px;
  display:grid; place-items:center;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.daily-fal-card .tb-btn:hover{
  transform: translateY(-2px);
  border-color: var(--header-bg, #308497);
  box-shadow:0 6px 16px rgba(48,132,151,.18);
}
.daily-fal-card .tb-btn img, 
.daily-fal-card .tb-btn svg{ width:20px; height:20px; display:block; }

/* شعر: چینش ابیات */
.daily-fal-card .fal-poem{
  margin-top:16px;
  background:#fffdf7;
  border:1px solid rgba(80,161,177,.2);
  border-radius:14px;
  padding:12px;
}
.daily-fal-card .bayt{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  padding:10px 8px;
  border-bottom:1px dashed rgba(0,0,0,.08);
}
.daily-fal-card .bayt:last-child{ border-bottom:0; }
.daily-fal-card .mesra{
  font-size:19px;
  color:#2b2b2b;
  line-height:2.1;
  text-align:center;
}

/* تفسیر */
.daily-fal-card .fal-tafsir{
  margin-top:18px;
  background:#ffffff;
  border:1px dashed rgba(80,161,177,.28);
  border-radius:14px;
  padding:12px 14px;
}
.daily-fal-card .fal-tafsir h3{
  margin:0 0 8px;
  font-size:21px;
  color:#444;
}
.daily-fal-card .fal-tafsir p{
  margin:0;
  line-height:2.4;
  color:#4d4d4d;
  font-size:17px;
  padding : 25px
}

/* جمله یک‌خطی زیر تفسیر */
.daily-fal-card .fal-inline-note{
  margin-top:12px;
  font-size:14px;
  color:#6a6a6a;
}
.daily-fal-card .dotted-link{
  text-decoration:none;
  border-bottom:1px dotted currentColor;
}

/* موبایل: هر مصرع در یک ردیف + فاصله بین ابیات */
@media (max-width: 768px){
  .daily-fal-card .fal-header{ flex-direction:column; align-items:flex-start; }
  .daily-fal-card .bayt{
    grid-template-columns: 1fr;
    gap:6px;
    margin-bottom:6px;
  }
  .daily-fal-card .mesra{ line-height:2; }
}


  /* ============ Modal Overlay ============ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;              /* مخفی به صورت پیش‌فرض */
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  /* ============ Modal Content ============ */
  .modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 360px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  /* دکمهٔ بستن (×) */
  .modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    color: #666;
    cursor: pointer;
  }
  
  /* تیتر مودال */
  .modal-content h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    text-align: center;
    color: var(--heading-color);
  }
  
  /* بخش آیکون‌های اشتراک‌گذاری */
  .share-icons {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
  }
  
  /* هر کلیک‌خور آیکون */
  .share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 12px;
  }
  
  .icon-social {
    width: 36px;
    height: 36px;
    margin-bottom: 4px;
  }
  
  /* بخش نمایش و کپی لینک */
  .share-link {
    display: flex;
    gap: 8px;
  }
  
  .share-link input {
    flex: 1;
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #000;
    border-radius: 4px;
    direction : ltr;
  }
  
  .share-link button {
    background-color: var(--link-color);
    border: none;
    color: #fff;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .share-link button:hover {
    background-color: var(--link-hover);
  }
  
  /* وقتی مودال نمایش داده می‌شود */
  .modal-overlay.show {
    display: flex;
  }


