/*
Theme Name: Drkhanlar
Theme URI: https://drkhanlar.ir
Author: Maryam Khanlarzadeh
Author URI: https://drkhanlar.ir
Description: قالب آکادمیک فارسی (راست‌چین) برای وب‌سایت شخصی دکتر مریم خانلرزاده — نسخه ۲ «جریان دانش»: صحنه سه‌بعدی گل دانش، نوار فلوچارت نورانی، بخش‌های شماره‌دار و نظام تایپوگرافی کوفی/امیری/وزیرمتن، همه فونت‌ها و دارایی‌ها محلی.
Version: 2.1.5
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drkhanlar
*/

/* ================= فونت‌های محلی (بدون هیچ CDN) ================= */
@font-face{
  font-family:'Kufi';
  src:url('assets/fonts/kufi-extrabold.woff2') format('woff2');
  font-weight:800;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Amiri';
  src:url('assets/fonts/amiri-bold.woff2') format('woff2');
  font-weight:700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Vazirmatn';
  src:url('assets/fonts/vazirmatn-regular.woff2') format('woff2');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Vazirmatn';
  src:url('assets/fonts/vazirmatn-light.woff2') format('woff2');
  font-weight:300;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Playfair';
  src:url('assets/fonts/playfair-semibold.woff2') format('woff2');
  font-weight:600;
  font-style:normal;
  font-display:swap;
}

:root{
  --navy:#081a34;
  --navy-2:#0a2145;
  --navy-deep:#050f1f;
  --ivory:#f5efe3;
  --paper:#faf6ec;
  --gold:#c9a24b;
  --gold-soft:#d8b66a;
  --gold-dark:#9a7b2d;
  --teal:#2dd4bf;
  --teal-soft:#7fd8c9;
  --ink:#1d2a3a;
  --muted:#5a718c;
  --ivory-dim:rgba(245,239,227,.74);
  --ivory-faint:rgba(245,239,227,.55);
  --line-navy:rgba(8,26,52,.1);
  --radius:18px;
  --shadow:0 18px 40px rgba(8,26,52,.12);
  --font-body:'Vazirmatn','Tahoma',sans-serif;
  --font-head:'Kufi','Vazirmatn',sans-serif;
  --font-delicate:'Amiri',serif;
  --font-latin:'Playfair',Georgia,serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{overflow-x:clip}
body{
  margin:0;
  direction:rtl;
  font-family:var(--font-body);
  font-weight:400;
  color:var(--ink);
  background:var(--paper);
  line-height:1.9;
  font-size:16.5px;
}
img{max-width:100%;height:auto}
a{color:#0f5aa8;text-decoration:none}
a:hover{color:var(--gold-dark)}
::selection{background:rgba(201,162,75,.35)}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.container{width:min(1180px,92%);margin-inline:auto}
h1,h2,h3{font-family:var(--font-head);font-weight:800;color:var(--navy-2);line-height:1.6;margin:0 0 .6em}

/* ---------- دکمه‌ها ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.78rem 1.9rem;border-radius:999px;
  font-family:var(--font-body);font-size:.98rem;line-height:1.4;
  transition:transform .35s ease,box-shadow .35s ease,background .35s ease,color .35s ease,border-color .35s ease;
}
.btn-gold{
  background:linear-gradient(135deg,var(--gold-soft),var(--gold));
  color:#241a05;
  box-shadow:0 12px 26px rgba(201,162,75,.35);
}
.btn-gold:hover{color:#241a05;transform:translateY(-2px);box-shadow:0 16px 32px rgba(201,162,75,.45)}
.btn-ghost{border:1px solid rgba(245,239,227,.45);color:var(--ivory)}
.btn-ghost:hover{border-color:var(--gold);color:var(--gold-soft);transform:translateY(-2px)}

/* ================= سربرگ ================= */
.site-header{
  position:sticky;top:0;z-index:60;
  background:rgba(245,239,227,.92);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(201,162,75,.35);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.55rem 0;flex-wrap:wrap}
.site-branding{display:flex;align-items:center;gap:.85rem}
.brand-logo{height:54px;width:auto;display:block;border-radius:10px}
.site-title{font-family:var(--font-head);font-weight:800;font-size:1.02rem;margin:0;line-height:1.4}
.site-title a{color:var(--navy-2)}
.site-title a:hover{color:var(--gold-dark)}
.site-tagline{margin:0;color:var(--muted);font-size:.8rem;line-height:1.5}
.main-nav ul{display:flex;gap:1.55rem;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.main-nav a{color:var(--navy-2);font-size:.95rem;padding:.3rem 0;border-bottom:2px solid transparent;transition:color .3s,border-color .3s}
.main-nav a:hover{color:var(--gold-dark);border-bottom-color:var(--gold)}
.menu-toggle{
  display:none;
  font-family:var(--font-body);font-size:.95rem;
  background:var(--navy-2);color:var(--ivory);
  border:0;border-radius:10px;padding:.5rem 1.1rem;cursor:pointer;
}
@media (max-width:860px){
  .menu-toggle{display:block}
  .main-nav{display:none;order:3;width:100%;padding:.4rem 0 .8rem}
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column;gap:.2rem}
  .main-nav a{display:block;padding:.55rem .2rem;border-bottom:1px solid var(--line-navy)}
}

/* ================= نوار جریان دانش ================= */
.flow-wrap{position:relative}
.flow-svg{
  position:absolute;inset:0;width:100%;height:100%;
  z-index:1;pointer-events:none;opacity:.55;
}
.flow-line{fill:none;stroke-linecap:round}
.flow-line-glow{stroke:rgba(45,212,191,.26);stroke-width:7px;vector-effect:non-scaling-stroke}
.flow-line-core{stroke:url(#flowGrad);stroke-width:2px;vector-effect:non-scaling-stroke}
.flow-node{
  position:absolute;left:50%;margin-left:-6px;z-index:1;
  width:12px;height:12px;border-radius:50%;
  background:var(--gold);
  border:2px solid rgba(255,255,255,.7);
  box-shadow:0 0 14px rgba(201,162,75,.85);
  pointer-events:none;
}
@media (max-width:860px){
  .flow-svg,.flow-node{display:none}
  .flow-wrap::before{
    content:"";position:absolute;top:0;bottom:0;inset-inline-start:13px;width:2px;z-index:1;
    background:linear-gradient(180deg,rgba(201,162,75,0),rgba(201,162,75,.45) 10%,rgba(45,212,191,.4) 90%,rgba(45,212,191,0));
  }
}

/* ================= هیرو ================= */
.hero{
  position:relative;overflow:hidden;
  background:
    radial-gradient(58% 42% at 50% 30%,rgba(45,212,191,.14),transparent 62%),
    linear-gradient(180deg,var(--navy-2) 0%,var(--navy) 58%,#071426 100%);
  color:var(--ivory);
  text-align:center;
  padding:clamp(64px,9vw,104px) 0 clamp(56px,7vw,84px);
}
/* پرده تیره پشت بلوک متن هیرو: متن همیشه روی زمینه سرمه‌ای خوانا می‌نشیند،
   حتی اگر در چیدمان موبایل روی بخش روشن صحنه (گل کرم) بیفتد.
   روی پس‌زمینه سرمه‌ای خود هیرو نامرئی است و فقط روی روشنایی عمل می‌کند. */
.hero .container{
  position:relative;z-index:3;
  background:linear-gradient(180deg,rgba(8,26,52,0) 0%,rgba(8,26,52,.38) 46%,rgba(8,26,52,.88) 82%,rgba(8,26,52,.88) 100%);
}
.hero-kicker{
  font-family:var(--font-latin);font-weight:600;
  letter-spacing:.42em;font-size:.78rem;
  color:var(--teal-soft);margin:0 0 1.4rem;text-indent:.42em;
}
.hero-name{
  font-size:clamp(2.7rem,7.2vw,4.7rem);
  color:var(--ivory);line-height:1.35;margin:0 0 .35em;
  text-shadow:0 10px 44px rgba(0,0,0,.45);
}
.hero-slogan{
  font-family:var(--font-delicate);font-weight:700;
  font-size:clamp(1.35rem,3.2vw,2rem);
  color:var(--gold-soft);margin:0 0 1.1rem;line-height:1.9;
}
.hero-lead{
  font-weight:300;font-size:clamp(1rem,1.6vw,1.13rem);
  color:var(--ivory-dim);
  max-width:660px;margin:0 auto 2.2rem;
}
.hero-cta{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}
.hero-scene{margin:clamp(40px,6vw,64px) auto 0;width:min(1240px,94%);position:relative;z-index:2}
.hero-scene img{
  display:block;width:100%;height:auto;
  border-radius:26px;
  border:1px solid rgba(201,162,75,.28);
  box-shadow:0 44px 90px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.03) inset;
}
.scroll-cue{
  position:relative;z-index:2;
  display:flex;align-items:center;justify-content:center;
  width:42px;height:42px;margin:34px auto 0;
  border:1px solid rgba(201,162,75,.55);border-radius:50%;
  animation:cueFloat 2.6s ease-in-out infinite;
}
.scroll-cue span{
  width:10px;height:10px;
  border-bottom:2px solid var(--gold-soft);border-left:2px solid var(--gold-soft);
  transform:rotate(-45deg) translate(1px,-1px);
}
@keyframes cueFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(8px)}}
@media (max-width:640px){
  /* در موبایل تیتر دولخطی می‌شود و بلوک متن بلندتر؛ پرده تیره قوی‌تر است تا
     خطوط پایینی متن (زیرعنوان و لید) حتماً روی سرمه‌ای تیره بنشینند، نه روی گل کرم صحنه. */
  .hero .container{
    background:linear-gradient(180deg,rgba(8,26,52,.22) 0%,rgba(8,26,52,.66) 48%,rgba(8,26,52,.94) 86%,rgba(8,26,52,.94) 100%);
  }
  .hero-lead{color:var(--ivory)}
}

/* ================= ایستگاه‌ها ================= */
.station{position:relative;overflow:hidden;padding:clamp(84px,11vw,128px) 0}
.station .container{position:relative;z-index:2}
.ghost-num{
  position:absolute;top:1.4rem;inset-inline-start:1rem;z-index:0;
  font-family:var(--font-head);font-weight:800;
  font-size:clamp(8rem,19vw,14.5rem);line-height:.85;
  color:rgba(201,162,75,.13);
  pointer-events:none;user-select:none;
}
.climate-library .ghost-num,.climate-teach .ghost-num,.climate-about .ghost-num{color:rgba(10,33,69,.06)}
.station-kicker{
  font-family:var(--font-latin);font-weight:600;
  letter-spacing:.34em;font-size:.72rem;
  color:var(--gold);margin:0 0 .9rem;
}
.climate-library .station-kicker,.climate-teach .station-kicker,.climate-about .station-kicker{color:var(--gold-dark)}
.station-title{font-size:clamp(1.9rem,4.4vw,2.7rem);margin-bottom:.5em}
.station-sub{max-width:620px;margin:0 auto}
.station-head{text-align:center;max-width:720px;margin:0 auto clamp(40px,5vw,56px)}
.station-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2.2rem,5vw,4.5rem);align-items:center}
.station-obj{text-align:center}
.station-obj img{
  width:min(430px,84%);margin-inline:auto;display:block;
  border-radius:32px;
  box-shadow:0 34px 60px rgba(0,0,0,.42);
}
.station-quote{
  font-family:var(--font-delicate);font-weight:700;
  font-size:1.18rem;color:var(--gold-soft);line-height:2.1;
  margin:1.4rem 0;
}
@media (max-width:860px){
  .station-grid{grid-template-columns:1fr}
  .station-grid-flip .station-obj{order:2}
}

/* شناور ملایم آبجکت‌ها و پارالاکس */
.obj-float{animation:floaty 8s ease-in-out infinite}
.obj-float-slow{animation-duration:10s}
@keyframes floaty{
  0%,100%{transform:translateY(calc(var(--parallax-y,0px) - 6px)) rotate(-.6deg)}
  50%{transform:translateY(calc(var(--parallax-y,0px) + 10px)) rotate(.8deg)}
}

/* پدیدارشدن با اسکرول (فقط وقتی JS فعال است) */
.js .reveal{opacity:0;transform:translateY(28px);transition:opacity .8s ease,transform .8s cubic-bezier(.22,.61,.36,1)}
.js .reveal.in{opacity:1;transform:none}

/* ---------- ۰۱ پژوهش ---------- */
.climate-research{
  background:
    radial-gradient(55% 46% at 80% 38%,rgba(45,212,191,.13),transparent 62%),
    linear-gradient(180deg,var(--navy) ,var(--navy-2));
  color:var(--ivory);
}
.climate-research .station-title{color:var(--ivory)}
.climate-research p{color:var(--ivory-dim)}
.article-list{list-style:none;margin:1.8rem 0 0;padding:0}
.article-list li{
  display:flex;gap:1.2rem;align-items:flex-start;
  padding:1.05rem 0;border-bottom:1px solid rgba(245,239,227,.13);
}
.article-list li:first-child{border-top:1px solid rgba(245,239,227,.13)}
.article-year{
  font-family:var(--font-head);font-weight:800;font-size:1.02rem;
  color:var(--gold-soft);min-width:3.4rem;line-height:2;
}
.article-list h3{
  font-family:var(--font-body);font-weight:400;font-size:1rem;
  color:var(--ivory);margin:0;line-height:2;
}
.article-note{color:var(--ivory-faint);font-size:.85rem;margin:.15rem 0 0}

/* ---------- ۰۲ کتابخانه ---------- */
.climate-library{background:linear-gradient(180deg,var(--ivory),#efe6d2);color:var(--ink)}
.climate-library .station-sub{color:var(--muted)}
.library-accent{
  position:absolute;top:2.6rem;inset-inline-end:2rem;z-index:0;
  width:208px;height:208px;object-fit:cover;border-radius:50%;
  border:1px solid rgba(201,162,75,.5);
  box-shadow:0 24px 48px rgba(8,26,52,.22);
  animation:floaty 10s ease-in-out infinite;
}
@media (max-width:1023px){.library-accent{display:none}}
.book-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,285px));
  justify-content:center;gap:3rem 2.4rem;
}
.book-card{text-align:center}
.book-card p{color:#43536a;font-size:.94rem;margin:.35rem 0}
.book3d{perspective:1100px;width:198px;margin:0 auto}
.book3d-inner{
  position:relative;aspect-ratio:3/4;
  border-radius:5px 12px 12px 5px;
  transform:rotateY(-16deg) rotateX(2deg);
  transform-style:preserve-3d;
  transition:transform .55s cubic-bezier(.22,.61,.36,1);
  box-shadow:18px 24px 38px rgba(8,26,52,.28);
}
.book3d-inner::before{
  content:"";position:absolute;inset:0;border-radius:inherit;
  background:#12283f;transform:translateZ(-16px) translateX(-7px);
}
.book3d-inner::after{
  content:"";position:absolute;top:0;bottom:0;inset-inline-start:0;width:12px;border-radius:inherit;
  background:linear-gradient(to left,rgba(0,0,0,.26),transparent);
  pointer-events:none;
}
.book3d-inner img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;border-radius:inherit;display:block;
}
.book-card:hover .book3d-inner{transform:rotateY(-6deg) rotateX(1deg) translateY(-6px)}
.book-nothumb{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  padding:1.2rem;border-radius:inherit;
  background:linear-gradient(160deg,var(--navy-2),var(--navy));
  color:var(--ivory);font-family:var(--font-delicate);font-weight:700;font-size:1.15rem;line-height:2;
}
.book-shadow{
  display:block;width:68%;height:18px;margin:16px auto 0;
  background:radial-gradient(50% 50% at 50% 50%,rgba(8,26,52,.35),transparent 70%);
  filter:blur(2px);
}
.book-title{
  font-family:var(--font-delicate);font-weight:700;
  font-size:1.28rem;color:var(--navy-2);line-height:2;margin:1.15rem 0 .2rem;
}
.book-title a{color:inherit}
.book-title a:hover{color:var(--gold-dark)}
.book-meta{color:var(--gold-dark);font-size:.85rem;letter-spacing:.02em}
.book-soon-cover{
  background:linear-gradient(160deg,#0d2a52,var(--navy));
  border:1px solid rgba(201,162,75,.55);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;
}
.book-soon-title{
  font-family:var(--font-delicate);font-weight:700;
  color:var(--ivory);font-size:1.45rem;line-height:2;padding:0 1rem;
}
.book-soon-badge{
  font-size:.72rem;color:var(--gold-soft);
  border:1px solid rgba(201,162,75,.65);border-radius:999px;padding:.18rem .8rem;
}

/* ---------- ۰۳ هوش مصنوعی ---------- */
.climate-ai{
  background:
    radial-gradient(52% 44% at 22% 42%,rgba(45,212,191,.15),transparent 62%),
    linear-gradient(180deg,var(--navy-deep),var(--navy));
  color:var(--ivory);
}
.climate-ai .station-title{color:var(--ivory)}
.climate-ai p{color:var(--ivory-dim)}
.chip-list{display:flex;gap:.6rem;flex-wrap:wrap;list-style:none;margin:1.6rem 0 0;padding:0}
.chip-list li{
  font-size:.88rem;color:#c9f2ea;
  border:1px solid rgba(127,216,201,.42);border-radius:999px;
  padding:.32rem 1rem;background:rgba(255,255,255,.04);
}

/* ---------- ۰۴ تدریس ---------- */
.climate-teach{background:linear-gradient(180deg,#efe6d2,var(--ivory));color:var(--ink)}
.climate-teach .station-sub{color:var(--muted)}
.lesson-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:1.15rem}
.lesson-card{
  background:#fffdf7;border:1px solid rgba(10,33,69,.09);border-radius:var(--radius);
  padding:1.35rem 1.4rem 1.2rem;box-shadow:0 10px 26px rgba(8,26,52,.06);
  display:flex;flex-direction:column;gap:.35rem;
  transition:transform .4s ease,box-shadow .4s ease;
}
.lesson-card:hover{transform:translateY(-5px);box-shadow:0 18px 34px rgba(8,26,52,.12)}
.lesson-num{font-family:var(--font-head);font-weight:800;font-size:1.25rem;color:var(--gold);line-height:1.2}
.lesson-card h3{font-size:1rem;line-height:2;margin:0}
.lesson-card h3 a{color:inherit}
.lesson-card h3 a:hover{color:var(--gold-dark)}
.lesson-card p{margin:0;color:var(--muted);font-size:.9rem}

/* ---------- ۰۵ درباره من ---------- */
.climate-about{background:linear-gradient(180deg,#f7ead9,var(--ivory));color:var(--ink)}
.about-grid{display:grid;grid-template-columns:minmax(270px,400px) 1fr;gap:clamp(2.4rem,5vw,4.5rem);align-items:start}
@media (max-width:860px){.about-grid{grid-template-columns:1fr}}
.about-photo{
  margin:0;border-radius:24px;overflow:hidden;aspect-ratio:4/5;
  box-shadow:0 34px 64px rgba(96,64,20,.28);
  border:1px solid rgba(201,162,75,.4);
}
.about-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 38%;display:block}
.about-name{font-family:var(--font-delicate);font-weight:700;font-size:1.55rem;color:var(--navy-2);margin:.2rem 0 .6rem}
.about-title{
  color:#44536a;font-size:.97rem;margin:.3rem 0;
  padding-inline-start:.85rem;border-inline-start:3px solid var(--gold);
}
.path-flow{list-style:none;margin:2.1rem 0 0;padding:0 1.7rem 0 0;position:relative}
.path-flow::before{
  content:"";position:absolute;top:10px;bottom:10px;inset-inline-start:8px;width:2px;
  background:linear-gradient(180deg,var(--gold),var(--teal));
  opacity:.65;
}
.path-flow li{position:relative;padding-bottom:1.15rem}
.path-flow li:last-child{padding-bottom:0}
.path-flow li::before{
  content:"";position:absolute;top:.5em;inset-inline-start:-1.7rem;
  width:14px;height:14px;border-radius:50%;
  background:var(--ivory);border:2px solid var(--gold);
  box-shadow:0 0 0 4px rgba(201,162,75,.16);
}
.path-flow strong{font-family:var(--font-head);font-weight:800;font-size:.95rem;color:var(--navy-2);display:block;line-height:1.7}
.path-flow span{color:#54657c;font-size:.93rem}

/* ---------- ۰۶ بینش‌ها و خبرهای فناوری و کارآفرینی ---------- */
.climate-insights{
  background:
    radial-gradient(52% 44% at 78% 30%,rgba(45,212,191,.12),transparent 62%),
    linear-gradient(180deg,var(--navy),var(--navy-deep));
  color:var(--ivory);
}
.climate-insights .station-title{color:var(--ivory)}
.climate-insights .station-sub{color:var(--ivory-dim)}
.insights-empty{
  text-align:center;margin:0;
  font-family:var(--font-delicate);font-weight:700;
  font-size:1.25rem;color:var(--gold-soft);line-height:2.1;
}

/* ---------- ۰۷ جزوه‌ها و منابع ---------- */
.climate-pamphlets{background:linear-gradient(180deg,var(--ivory),#efe6d2);color:var(--ink)}
.climate-pamphlets .ghost-num{color:rgba(10,33,69,.06)}
.climate-pamphlets .station-kicker{color:var(--gold-dark)}
.climate-pamphlets .station-sub{color:var(--muted)}
.pamphlet-group{margin-top:3.2rem}
.station-head + .pamphlet-group{margin-top:0}
.pamphlet-group-title{
  font-size:1.28rem;text-align:center;color:var(--navy-2);
  margin:0 0 1.7rem;line-height:1.9;
}
.pamphlet-group-title::after{
  content:"";display:block;width:56px;height:2px;border-radius:2px;
  background:var(--gold);margin:.45rem auto 0;
}
.pamphlet-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,285px));
  justify-content:center;gap:2rem 2.4rem;
}
.pamphlet-card{
  background:#fffdf7;border:1px solid rgba(10,33,69,.09);border-radius:var(--radius);
  padding:1.5rem 1.4rem 1.4rem;box-shadow:0 10px 26px rgba(8,26,52,.06);
  text-align:center;display:flex;flex-direction:column;align-items:center;
  transition:transform .4s ease,box-shadow .4s ease;
}
.pamphlet-card:hover{transform:translateY(-5px);box-shadow:0 18px 34px rgba(8,26,52,.12)}
.pamphlet-cover{
  width:148px;aspect-ratio:3/4;flex:none;
  border-radius:6px;overflow:hidden;
  box-shadow:10px 14px 26px rgba(8,26,52,.22);
  margin-bottom:1.1rem;
}
.pamphlet-cover img{width:100%;height:100%;object-fit:cover;display:block}
.pamphlet-nocover{
  background:linear-gradient(160deg,var(--navy-2),var(--navy));
  border:1px solid rgba(201,162,75,.5);
  display:flex;align-items:center;justify-content:center;
  padding:.9rem;text-align:center;
}
.pamphlet-nocover span{
  font-family:var(--font-delicate);font-weight:700;
  color:var(--ivory);font-size:1.02rem;line-height:2;
}
/* کتاب‌های ایستادهٔ جزوه‌های دانشگاهی: جلد تایپوگرافیک مینیمال (متن واقعی، بدون تصویر)،
   نردبان رنگی از سرمه‌ای عمیق تا فیروزه‌ای روشن؛ هم‌زبان با کتاب‌های کتابخانه */
.pamphlet-card .book3d{width:min(168px,74%);margin-bottom:.1rem}
.note-book{animation:floaty 9s ease-in-out infinite}
.nb2{animation-delay:-1.5s}
.nb3{animation-delay:-3s}
.nb4{animation-delay:-4.5s}
.nb5{animation-delay:-6s}
.nb6{animation-delay:-7.5s}
.nb7{animation-delay:-2.4s}
.pb-cover{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:.85rem;padding:1.15rem 1rem;text-align:center;
}
.pb-rule{width:42px;height:2px;border-radius:2px;background:var(--gold);flex:none}
.pb-title{
  font-family:var(--font-delicate);font-weight:700;position:relative;z-index:1;
  color:var(--ivory);font-size:1.08rem;line-height:2;
}
.nb1 .pb-cover{background:linear-gradient(160deg,#0a2145,#081a34)}
.nb2 .pb-cover{background:linear-gradient(160deg,#0d2c55,#0a2145)}
.nb3 .pb-cover{background:linear-gradient(160deg,#103a5e,#0d2c55)}
.nb4 .pb-cover{background:linear-gradient(160deg,#14506b,#103a5e)}
.nb5 .pb-cover{background:linear-gradient(160deg,#176b74,#14506b)}
.nb6 .pb-cover{background:linear-gradient(160deg,#1d8272,#176b74)}
.nb7 .pb-cover{background:linear-gradient(160deg,#359c7f,#217a63)}
.pamphlet-card .book-shadow{margin-top:10px}
.pamphlet-title{font-size:1.05rem;line-height:2;margin:0 0 .3rem}
.pamphlet-meta{color:var(--muted);font-size:.9rem;margin:0 0 1rem}
.pamphlet-soon{
  color:var(--gold-dark);font-size:.78rem;
  border:1px solid rgba(154,123,45,.5);border-radius:999px;padding:.15rem .8rem;
}
.pamphlet-actions{display:flex;gap:.6rem;justify-content:center;flex-wrap:wrap;margin-top:auto}
.btn-sm{padding:.5rem 1.25rem;font-size:.88rem}
.btn-outline{border:1px solid rgba(10,33,69,.35);color:var(--navy-2)}
.btn-outline:hover{border-color:var(--gold);color:var(--gold-dark);transform:translateY(-2px)}

/* ================= قالب‌های عمومی ================= */
.page-hero{
  background:
    radial-gradient(55% 60% at 50% 0%,rgba(45,212,191,.12),transparent 60%),
    linear-gradient(180deg,var(--navy-2),var(--navy));
  color:var(--ivory);text-align:center;
  padding:clamp(52px,7vw,72px) 0 clamp(44px,6vw,60px);
}
.page-hero h1{color:var(--ivory);font-size:clamp(1.8rem,4.6vw,2.6rem);margin:0}
.page-hero p{color:var(--ivory-dim);margin:.6rem auto 0;max-width:640px}
.section{padding:72px 0}
.post-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:1.4rem}
.post-card{
  background:#fffdf7;border:1px solid rgba(10,33,69,.07);border-radius:var(--radius);
  overflow:hidden;box-shadow:0 12px 28px rgba(8,26,52,.06);
  transition:transform .4s ease,box-shadow .4s ease;
}
.post-card:hover{transform:translateY(-5px);box-shadow:0 20px 38px rgba(8,26,52,.12)}
.post-card .thumb img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}
.post-type-archive-book .post-card .thumb img,.post-type-archive-pamphlet .post-card .thumb img,.post-type-archive-course .post-card .thumb img,.tax-pamphlet_group .post-card .thumb img{aspect-ratio:3/4}
.post-body{padding:1.15rem 1.3rem 1.3rem}
.post-meta{color:var(--gold-dark);font-size:.8rem;margin:0 0 .3rem}
.post-body h3{font-size:1.02rem;line-height:1.9;margin:0 0 .35rem}
.post-body h3 a{color:inherit}
.post-body h3 a:hover{color:var(--gold-dark)}
.post-body p{margin:0;color:var(--muted);font-size:.92rem}
.entry-content{max-width:790px;margin-inline:auto;line-height:2.05}
.entry-content img{border-radius:14px}
.entry-content h2,.entry-content h3{margin-top:1.6em}
.entry-content .wp-post-image{margin-bottom:1.4rem}
.pagination{display:flex;gap:.45rem;justify-content:center;flex-wrap:wrap;margin-top:2.6rem}
.pagination .page-numbers{
  padding:.35rem .85rem;border:1px solid rgba(10,33,69,.16);border-radius:10px;color:var(--navy-2);
}
.pagination .page-numbers.current{background:var(--navy-2);color:var(--ivory);border-color:var(--navy-2)}
.no-results{text-align:center;color:var(--muted)}
#comments{max-width:790px;margin:2.5rem auto 0}
.comment-list{list-style:none;padding:0}
.comment-list li{border-bottom:1px solid var(--line-navy);padding:1rem 0}

/* ================= پانویس ================= */
.site-footer{
  background:linear-gradient(180deg,var(--navy),var(--navy-deep));
  color:var(--ivory-dim);
  padding:64px 0 0;position:relative;z-index:2;
}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:2.5rem}
@media (max-width:860px){.footer-grid{grid-template-columns:1fr}}
.site-footer h3{color:var(--ivory);font-size:1rem;margin-bottom:.8rem}
.site-footer p{margin:.4rem 0;font-size:.94rem;font-weight:300}
.site-footer a{color:var(--gold-soft)}
.site-footer a:hover{color:var(--teal-soft)}
.footer-links{list-style:none;margin:0;padding:0}
.footer-links li{margin:.3rem 0}
.footer-links a{color:var(--ivory-dim)}
.footer-links a:hover{color:var(--gold-soft)}
.footer-bottom{
  border-top:1px solid rgba(245,239,227,.1);
  margin-top:2.8rem;padding:1.3rem 0 1.5rem;
  text-align:center;font-size:.88rem;color:var(--ivory-faint);
}

/* ---------- احترام به کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}
