/* school.kalleh.com — design system reverse-engineered from kalleh.com
   Brand red #ee3439, Shabnam body type, IRANSans (FaNum) for numerals,
   white ground, light #f8f9fa bands, bordered cards, red accents. */

/* NOTE: url() is relative to this CSS file (site/assets/), not the page */
@font-face{font-family:"Shabnam";font-weight:300;font-display:swap;
  src:url(fonts/shabnam/Shabnam-Light.woff2) format("woff2")}
@font-face{font-family:"Shabnam";font-weight:400;font-display:swap;
  src:url(fonts/shabnam/Shabnam.woff2) format("woff2")}
@font-face{font-family:"Shabnam";font-weight:700;font-display:swap;
  src:url(fonts/shabnam/Shabnam-Bold.woff2) format("woff2")}
@font-face{font-family:"IRANSans";font-weight:400;font-display:swap;
  src:url(fonts/iransans/iransans-fanum.woff2) format("woff2")}
@font-face{font-family:"IRANSans";font-weight:700;font-display:swap;
  src:url(fonts/iransans/iransans-fanum-bold.woff2) format("woff2")}

:root{
  --red:#ee3439;
  --red-dark:#c9262b;
  --red-tint:#fdebe9;
  --ink:#3a3a3a;
  --ink-strong:#212529;
  --muted:#6c757d;
  --line:#eaeaea;
  --band:#f8f9fa;
  --radius:10px;
  --radius-btn:5px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
/* kalleh.com computed styles: body/nav/paragraphs = IRANSans, headings = Shabnam */
body{
  font-family:"IRANSans",Tahoma,sans-serif;
  color:var(--ink);background:#fff;line-height:2;font-size:16px;
  direction:rtl;text-align:right;
}
h1,h2,h3,h4,h5,.section-title,.brand-name{font-family:"Shabnam","IRANSans",Tahoma,sans-serif}
img{max-width:100%}
a{color:var(--red);text-decoration:none}
a:hover{color:var(--red-dark)}

.container{max-width:1140px;margin:0 auto;padding:0 20px}

/* ── header ── */
.site-header{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:50}
.header-inner{display:flex;align-items:center;gap:28px;padding:10px 0;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:14px}
.brand img{height:56px;width:auto}
.brand .brand-name{font-weight:700;color:var(--ink-strong);font-size:24px;line-height:1.6}
.main-nav{display:flex;gap:4px;flex-wrap:wrap;margin-inline-start:auto}
.main-nav a{
  color:var(--ink);padding:8px 12px;font-size:14.5px;border-radius:var(--radius-btn);
  border-bottom:2px solid transparent;
}
.main-nav a:hover{color:var(--red)}
.main-nav a.active{color:var(--red);font-weight:700;border-bottom-color:var(--red)}

/* hamburger (mobile) */
.nav-toggle{display:none}
.nav-burger{display:none;flex-direction:column;justify-content:space-between;
  width:32px;height:24px;cursor:pointer;margin-inline-start:auto;flex-shrink:0}
.nav-burger span{display:block;height:3px;background:var(--red);border-radius:2px;transition:all .2s}
.nav-toggle:checked~.nav-burger span:nth-child(1){transform:translateY(10.5px) rotate(45deg)}
.nav-toggle:checked~.nav-burger span:nth-child(2){opacity:0}
.nav-toggle:checked~.nav-burger span:nth-child(3){transform:translateY(-10.5px) rotate(-45deg)}

/* ── hero ── */
.hero{position:relative;overflow:hidden;padding:72px 0 64px;background:#fff}
/* decorative blobs: kept faint and off the text column so they never fight the copy */
.hero-blob{position:absolute;inset-inline-start:-200px;top:-140px;width:460px;opacity:.25;z-index:0;pointer-events:none}
.hero-blob.small{width:180px;inset-inline-start:auto;inset-inline-end:-90px;top:auto;bottom:-70px;opacity:.15}
.hero-inner{position:relative;z-index:1;max-width:760px}
.hero h1{font-size:38px;font-weight:700;color:var(--ink-strong);line-height:1.7;margin-bottom:18px}
.hero h1 .accent{color:var(--red)}
.hero p.lead{font-size:18px;color:var(--ink);margin-bottom:14px}
.hero .byline{font-size:14.5px;color:var(--muted);margin-bottom:28px}

/* hero with founder photo */
.hero-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:44px;align-items:center;position:relative;z-index:1}
.hero-photo{margin:0;position:relative}
.hero-photo img{width:100%;border-radius:var(--radius);box-shadow:0 16px 40px rgba(0,0,0,.13);
  border:1px solid var(--line)}
.hero-photo figcaption{text-align:center;font-size:13.5px;color:var(--muted);margin-top:10px}

/* ── buttons (kalleh outlined style) ── */
.btn{display:inline-block;padding:9px 26px;border-radius:var(--radius-btn);
  font-size:15px;font-family:inherit;cursor:pointer;transition:all .15s;line-height:1.9}
.btn-outline{border:1px solid var(--red);color:var(--red);background:#fff}
.btn-outline:hover{background:var(--red);color:#fff}
.btn-solid{border:1px solid var(--red);background:var(--red);color:#fff}
.btn-solid:hover{background:var(--red-dark);color:#fff}
.btn+.btn{margin-inline-start:10px}

/* ── section titles (right-aligned with red underline, as on kalleh.com) ── */
.section{padding:56px 0}
.section.band{background:var(--band)}
.section-title{font-size:24px;font-weight:700;color:var(--ink-strong);
  display:inline-block;position:relative;margin-bottom:34px;padding-bottom:10px}
.section-title::after{content:"";position:absolute;inset-inline-start:0;bottom:0;
  width:56px;height:3px;background:var(--red);border-radius:2px}
.section-sub{color:var(--muted);font-size:15px;margin-top:-24px;margin-bottom:30px}

/* ── cards ── */
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:26px 22px;transition:box-shadow .2s,transform .2s}
.card:hover{box-shadow:0 10px 28px rgba(0,0,0,.07);transform:translateY(-2px)}
.card .card-step{display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:50%;background:var(--red-tint);color:var(--red);
  font-family:"IRANSans";font-weight:700;font-size:19px;margin-bottom:14px}
.card h3{font-size:17px;font-weight:700;color:var(--ink-strong);margin-bottom:8px}
.card p{font-size:14.5px;color:var(--muted);line-height:2}
.card a.more{font-size:14px;display:inline-block;margin-top:10px}

/* ── question band (sample civic questions) ── */
.q-band{background:var(--red-tint);border-radius:var(--radius);padding:34px 30px;position:relative;overflow:hidden}
.q-band h3{color:var(--red-dark);font-size:19px;margin-bottom:16px}
.q-band ul{list-style:none}
.q-band li{padding:8px 0;border-bottom:1px dashed rgba(238,52,57,.25);font-size:15.5px}
.q-band li:last-child{border-bottom:none}
.q-band li::before{content:"؟";color:var(--red);font-weight:700;margin-inline-end:10px}

/* ── article / prose pages ── */
.prose{max-width:780px;margin:0 auto}
.prose h1{font-size:30px;font-weight:700;color:var(--ink-strong);line-height:1.8;margin-bottom:10px}
.prose .dek{color:var(--muted);font-size:16px;margin-bottom:34px;line-height:2}
.prose h2{font-size:21px;font-weight:700;color:var(--ink-strong);margin:38px 0 14px;
  display:inline-block;position:relative;padding-bottom:8px}
.prose h2::after{content:"";position:absolute;inset-inline-start:0;bottom:0;
  width:44px;height:3px;background:var(--red);border-radius:2px}
.prose p{margin-bottom:18px;font-size:16px}
.prose ul,.prose ol{margin:0 22px 18px 0;padding-inline-start:8px}
.prose li{margin-bottom:8px}
.prose strong,.prose b{color:var(--ink-strong)}
.prose .qa-q{font-weight:700;color:var(--ink-strong);margin-top:30px;padding-inline-start:14px;
  border-inline-start:3px solid var(--red)}
.prose .sig{margin-top:36px;font-weight:700;color:var(--ink-strong);line-height:2.2}
.num{font-family:"IRANSans",inherit}

/* ── lesson blocks ── */
.lesson-idea{background:var(--red-tint);border-radius:var(--radius);padding:18px 22px;margin:0 0 22px;font-size:15.5px}
.lesson-idea b{color:var(--red-dark)}
.lesson-takeaway{background:var(--band);border:1px solid var(--line);border-inline-start:4px solid var(--red);
  border-radius:var(--radius-btn);padding:16px 20px;margin:26px 0;font-size:15.5px}
.lesson-takeaway b{color:var(--red-dark)}
.flow{border:1px solid var(--line);border-radius:var(--radius);padding:20px 24px;margin:22px 0}
.flow ol{list-style:none;display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0;padding:0}
.flow ol li{background:#fff;border:1px solid var(--red);color:var(--ink-strong);border-radius:25px;
  padding:5px 16px;font-size:14px}
.flow ol li:not(:last-child)::after{content:"←";color:var(--red);margin-inline-start:8px}
.flow-cap{color:var(--muted);font-size:13.5px;margin-top:12px}
.statcards{display:flex;gap:16px;flex-wrap:wrap;margin:22px 0}
.statcard{flex:1;min-width:180px;border:1px solid var(--line);border-radius:var(--radius);
  padding:20px 22px;text-align:center}
.stat-value{font-family:"IRANSans";font-weight:700;font-size:34px;color:var(--red)}
.stat-label{font-size:13.5px;color:var(--muted);line-height:1.9;margin-top:6px}
.ethics{border:1px solid var(--line);border-radius:var(--radius);padding:20px 24px;margin:26px 0;background:var(--band)}
.ethics h3{font-size:16.5px;color:var(--ink-strong);margin-bottom:10px}
.ethics ul{margin:10px 22px 0 0;font-size:14px;color:var(--muted)}
.ethics-madhab{font-size:14px;color:var(--muted);margin-top:10px;border-top:1px dashed var(--line);padding-top:10px}
.lesson-nav{display:flex;justify-content:space-between;gap:12px;margin-top:40px;flex-wrap:wrap}
.prose figure.viz{margin:22px 0;overflow-x:auto}

/* practice self-test */
.practice-opts label{cursor:pointer;display:block;border-radius:var(--radius-btn);padding:2px 8px}
.practice-opts label:hover{background:var(--band)}
.practice-opts li.opt-right>label{background:#e8f5ec;border:1px solid #198754}
.practice-opts li.opt-wrong>label{background:var(--red-tint);border:1px solid var(--red)}
.exam-q .explain{margin-top:12px;padding-top:10px;border-top:1px dashed var(--line);
  color:var(--muted);font-size:14.5px}

/* ── exam ── */
.exam-q{border:1px solid var(--line);border-radius:var(--radius);padding:22px 24px;margin-bottom:18px;background:#fff}
.exam-q .qnum{display:inline-flex;align-items:center;justify-content:center;
  min-width:34px;height:34px;border-radius:50%;background:var(--red);color:#fff;
  font-family:"IRANSans";font-weight:700;font-size:15px;margin-inline-end:10px}
.exam-q .qtext{font-weight:700;color:var(--ink-strong);display:inline}
.exam-q ol{list-style:none;margin:14px 6px 0 0;counter-reset:opt}
.exam-q ol li{counter-increment:opt;padding:6px 0;font-size:15px}
.exam-q ol li::before{content:counter(opt,persian) ") ";color:var(--red);font-weight:700;font-family:"IRANSans"}
.part-h{font-size:19px;font-weight:700;color:var(--red-dark);margin:30px 0 16px;
  padding-bottom:8px;border-bottom:2px solid var(--red);display:inline-block}
.key-row{border-bottom:1px solid var(--line);padding:14px 0}
.key-row .key-ans{font-weight:700;color:var(--red-dark)}
.key-row .key-why{color:var(--muted);font-size:14.5px}
.notice{border:1px solid var(--line);border-inline-start:4px solid var(--red);
  border-radius:var(--radius-btn);background:var(--band);padding:16px 20px;margin:22px 0;font-size:15px}

/* ── certificate ── */
.certificate{
  width:1050px;max-width:100%;margin:30px auto;background:#fff;
  border:3px solid var(--red);border-radius:6px;padding:14px;
}
.cert-inner{border:1px solid var(--line);border-radius:4px;padding:44px 56px;position:relative;overflow:hidden;text-align:center}
.cert-inner .cert-blob{position:absolute;width:190px;opacity:.12;pointer-events:none}
.cert-inner .cert-blob.tl{top:-40px;inset-inline-start:-40px}
.cert-inner .cert-blob.br{bottom:-50px;inset-inline-end:-40px;transform:rotate(180deg)}
.cert-inner img.cert-logo{height:64px;margin-bottom:10px}
.cert-inner h1{font-size:26px;color:var(--red);font-weight:700;margin-bottom:4px}
.cert-inner .cert-sub{color:var(--muted);font-size:14px;margin-bottom:26px}
.cert-body{font-size:16.5px;line-height:2.6;text-align:right;max-width:840px;margin:0 auto}
.cert-line{display:inline-block;min-width:170px;border-bottom:1px dotted var(--ink);text-align:center;padding:0 8px;color:var(--ink-strong)}
.cert-line.wide{min-width:260px}
.cert-contact{border-top:1px dashed var(--line);margin-top:18px;padding-top:16px;font-size:15px}
.cert-foot{display:flex;justify-content:space-between;gap:30px;margin-top:34px;text-align:center;font-size:14.5px}
.cert-foot .slot{flex:1}
.cert-foot .slot .slot-line{border-top:1px solid var(--ink);margin-top:56px;padding-top:8px;color:var(--muted)}
.cert-serial{position:absolute;top:18px;inset-inline-end:22px;font-size:12.5px;color:var(--muted);font-family:"IRANSans"}

/* ── footer ── */
.site-footer{border-top:1px solid var(--line);background:#fff;margin-top:60px;padding:36px 0 18px}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:26px;margin-bottom:26px}
.footer-grid h4{font-size:15.5px;font-weight:700;color:var(--ink-strong);margin-bottom:12px;
  display:inline-block;position:relative;padding-bottom:8px}
.footer-grid h4::after{content:"";position:absolute;inset-inline-start:0;bottom:0;width:36px;height:2px;background:var(--red)}
.footer-grid ul{list-style:none}
.footer-grid li{padding:4px 0;font-size:14.5px}
.footer-grid a{color:var(--ink)}
.footer-grid a:hover{color:var(--red)}
.copyright{border-top:1px solid var(--line);padding-top:16px;text-align:center;
  font-size:13px;color:var(--muted)}
.copyright .solico{color:var(--red)}

/* ── print ── */
@media print{
  .site-header,.site-footer,.no-print{display:none!important}
  body{font-size:13px;line-height:1.9}
  .section{padding:10px 0}
  .exam-q{break-inside:avoid;margin-bottom:10px;padding:12px 16px}
  .page-break{break-before:page}
  .certificate{border-width:4px;width:100%;margin:0}
  @page{size:A4;margin:12mm}
  .cert-page @page{size:A4 landscape}
}

/* ── mobile ── */
@media(max-width:992px){
  /* collapse nav into hamburger */
  .nav-burger{display:flex}
  .header-inner{justify-content:space-between;gap:12px}
  .main-nav{display:none;flex-basis:100%;flex-direction:column;gap:0;margin:6px 0 4px}
  .nav-toggle:checked~.main-nav{display:flex}
  .main-nav a{padding:13px 8px;border-bottom:1px solid var(--line);border-radius:0;font-size:15.5px}
  .main-nav a:last-child{border-bottom:none}
  .main-nav a.active{border-bottom:1px solid var(--line);background:var(--band)}
}
@media(max-width:768px){
  body{font-size:15px}
  .section{padding:36px 0}
  .hero{padding:40px 0 36px}
  .hero h1{font-size:25px}
  .hero p.lead{font-size:16px}
  /* stack order on mobile: title → photo → message → byline → buttons */
  .hero-grid{grid-template-columns:1fr;gap:0}
  .hero-inner{display:contents}
  .hero-inner h1{order:1;margin-bottom:20px}
  .hero-photo{order:2;max-width:420px;margin:0 auto 22px;width:100%}
  .hero-inner p.lead{order:3}
  .hero-inner .byline{order:4}
  .hero-inner .btn{order:5}
  .hero-blob,.hero-blob.small{display:none}
  .brand img{height:44px}
  .brand .brand-name{font-size:19px}
  .section-title{font-size:20px;margin-bottom:24px}
  .prose h1{font-size:24px}
  .prose h2{font-size:18.5px}
  .btn{display:block;text-align:center;margin:0 0 10px}
  .btn+.btn{margin-inline-start:0}
  .q-band{padding:24px 18px}
  .exam-q{padding:16px 14px}
  .statcards{flex-direction:column}
  .lesson-nav{flex-direction:column}
  .lesson-nav .btn{width:100%}
  .cert-inner{padding:26px 14px}
  .cert-body{font-size:14px;line-height:2.4}
  .cert-foot{flex-wrap:wrap;gap:18px}
  .cert-foot .slot{flex-basis:45%}
  .cert-foot .slot .slot-line{margin-top:34px}
  .flow ol li{font-size:13px;padding:4px 12px}
  .notice{padding:13px 14px}
}
