/* ==========================================================================
   قالب عمومی سایت مدارس همیار — Mobile-first، RTL، مبتنی بر متغیرهای CSS.
   رنگ‌های برند (--site-*) در layout از تنظیمات مدرسه تزریق می‌شوند؛ مقادیر زیر فقط fallback هستند.
   ========================================================================== */
@font-face { font-family: "Hamyar"; src: url("/assets/fonts/ravi/Ravi-Regular.woff2") format("woff2"); font-weight: 100 599; font-display: swap; }
@font-face { font-family: "Hamyar"; src: url("/assets/fonts/ravi/Ravi-Bold.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "HamyarFallback"; src: url("/assets/fonts/vazir-400.woff2") format("woff2"); font-weight: 100 599; font-display: swap; }
@font-face { font-family: "HamyarFallback"; src: url("/assets/fonts/vazir-700.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }

:root {
    --site-primary: #2446A8; --site-on-primary: #FFFFFF; --site-ink: #2446A8;
    --site-secondary: #0E7C66; --site-on-secondary: #FFFFFF;
    --site-deep: #1A2029; --site-soft: #EDEEF0; --site-soft-2: #DADDE1;

    --s-text: #1B2130; --s-text-2: #545C6E; --s-text-3: #5F6778;
    --s-line: #E4E7EC; --s-bg: #FFFFFF; --s-bg-2: #F6F7F9; --s-bg-3: #EEF0F3; --s-surface: #FFFFFF;
    --s-radius: 16px; --s-radius-sm: 10px; --s-radius-lg: 24px;
    --s-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
    --s-shadow-lg: 0 12px 40px rgba(16, 24, 40, .12);
    --s-gutter: 16px; --s-max: 1200px; --s-header-h: 64px;
    --s-font: "Hamyar", "HamyarFallback", Tahoma, sans-serif;
    --s-focus: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--site-ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--s-header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body.s-body { margin: 0; font-family: var(--s-font); font-size: 16px; line-height: 1.85; color: var(--s-text); background: var(--s-bg); overflow-x: hidden; text-rendering: optimizeLegibility; }
.s-body h1, .s-body h2, .s-body h3, .s-body h4, .s-body h5, .s-body h6 { font-family: var(--s-font); color: var(--s-text); line-height: 1.5; margin: 0 0 .5em; font-weight: 700; }
.s-body p { margin: 0 0 1em; }
.s-body img { max-width: 100%; height: auto; }
.s-body a { color: var(--site-ink); text-underline-offset: 3px; }
.s-body button, .s-body input, .s-body select, .s-body textarea { font: inherit; color: inherit; }
.s-body :focus { outline: none; }
.s-body :focus-visible { box-shadow: var(--s-focus); border-radius: 6px; }
.s-body ul, .s-body ol { padding: 0; margin: 0; }
.si { flex: none; display: inline-block; vertical-align: middle; }
.s-wrap { width: 100%; max-width: var(--s-max); margin-inline: auto; padding-inline: var(--s-gutter); }
.s-main { display: block; min-height: 50vh; }
.s-main:focus { box-shadow: none; }
.s-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--site-primary); color: var(--site-on-primary) !important; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.s-skip:focus { top: 12px; }
.s-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- دکمه‌ها ---------- */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none !important; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.s-btn--primary { background: var(--site-primary); color: var(--site-on-primary) !important; }
.s-btn--primary:hover { background: var(--site-deep); color: #FFFFFF !important; }
.s-btn--ghost { background: transparent; color: var(--site-ink) !important; border-color: currentColor; }
.s-btn--ghost:hover { background: var(--site-soft); }
.s-btn--light { background: #FFFFFF; color: var(--site-deep) !important; }
.s-btn--light:hover { background: var(--site-soft); }
.s-btn--outline-light { background: transparent; color: #FFFFFF !important; border-color: rgba(255, 255, 255, .7); }
.s-btn--outline-light:hover { background: rgba(255, 255, 255, .12); }
.s-btn--block { width: 100%; }
.s-btn--lg { min-height: 52px; padding: 12px 26px; font-size: 16px; }
.s-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--site-ink); text-decoration: none; }
.s-more .si { width: 16px; height: 16px; transition: transform .15s; }
.s-more:hover .si, .s-card:hover .s-more .si { transform: translateX(-3px); }

/* ---------- نوار بالا ---------- */
.s-topbar { background: var(--site-deep); color: rgba(255, 255, 255, .92); font-size: 13px; }
.s-topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.s-topbar-list { list-style: none; display: flex; gap: 20px; }
.s-topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.s-topbar a:hover { color: #FFFFFF; text-decoration: underline; }
.s-topbar .si { width: 15px; height: 15px; opacity: .85; }
.s-topbar-hours { margin: 0 !important; display: inline-flex; align-items: center; gap: 6px; }
.s-hide-sm { display: none !important; }
@media (min-width: 768px) { .s-hide-sm { display: inline-flex !important; } }

/* ---------- هدر ---------- */
.s-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--s-line); transition: box-shadow .2s; }
.s-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 24, 40, .08); }
.s-header-in { display: flex; align-items: center; gap: 12px; min-height: var(--s-header-h); }
.s-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; text-decoration: none !important; color: var(--s-text) !important; }
.s-brand-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; flex: none; }
.s-brand-mark { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--site-primary); color: var(--site-on-primary); font-weight: 800; font-size: 20px; line-height: 1; }
.s-brand-name { font-weight: 800; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.s-login { padding-inline: 14px; min-height: 44px; font-size: 14px; }
.s-login .si { width: 18px; height: 18px; }
.s-login-short { display: none; }
@media (max-width: 429px) { .s-login-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .s-login-short { display: inline; } .s-login { padding-inline: 12px; } }
.s-menu-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--s-line); border-radius: 12px; background: #FFFFFF; color: var(--s-text); cursor: pointer; }
.s-menu-btn .si { width: 22px; height: 22px; }
.s-menu-close { display: none; }
.s-menu-on .s-menu-open { display: none; }
.s-menu-on .s-menu-close { display: inline; }

/* منوی موبایل: پنل تمام‌عرض زیر هدر */
.s-nav { display: none; }
.s-menu-on .s-nav { display: block; position: fixed; inset: calc(var(--s-header-h) + 1px) 0 0 0; z-index: 99; background: #FFFFFF; overflow-y: auto; padding: 12px var(--s-gutter) 32px; border-top: 1px solid var(--s-line); }
.s-menu-on body { overflow: hidden; }
.s-nav-list { list-style: none; display: flex; flex-direction: column; }
.s-nav-item { border-bottom: 1px solid var(--s-line); }
.s-nav-link { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 52px; padding: 6px 4px; color: var(--s-text) !important; text-decoration: none !important; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.s-nav-link::-webkit-details-marker { display: none; }
.s-nav-link.is-active { color: var(--site-ink) !important; }
.s-nav-link .si { width: 18px; height: 18px; transition: transform .15s; }
.s-dd[open] > summary .si { transform: rotate(180deg); }
.s-dd-menu { list-style: none; padding: 0 12px 10px; }
.s-dd-menu a { display: flex; align-items: center; min-height: 44px; padding: 4px 8px; border-radius: 8px; color: var(--s-text-2) !important; text-decoration: none; font-size: 15px; }
.s-dd-menu a:hover { background: var(--s-bg-2); color: var(--site-ink) !important; }
.s-nav-extra { display: grid; gap: 12px; margin-top: 20px; }
.s-nav-tel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--s-text-2) !important; text-decoration: none; }

@media (min-width: 640px) {
    :root { --s-gutter: 24px; --s-header-h: 72px; }
    .s-brand-name { font-size: 17px; }
    .s-brand-logo, .s-brand-mark { width: 48px; height: 48px; }
}
@media (min-width: 1024px) {
    :root { --s-header-h: 80px; }
    .s-menu-btn { display: none; }
    .s-brand { flex: 0 1 auto; max-width: 300px; }
    .s-nav, .s-menu-on .s-nav { display: block; position: static; padding: 0; overflow: visible; border: 0; background: none; flex: 1 1 auto; }
    .s-nav-list { flex-direction: row; justify-content: center; gap: 2px; }
    .s-nav-item { border: 0; position: relative; }
    .s-nav-link { min-height: 44px; padding: 8px 12px; border-radius: 10px; font-size: 15px; justify-content: center; }
    .s-nav-link:hover { background: var(--s-bg-2); }
    .s-nav-link.is-active { background: var(--site-soft); }
    .s-dd-menu { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 220px; padding: 8px; background: #FFFFFF; border: 1px solid var(--s-line); border-radius: 14px; box-shadow: var(--s-shadow-lg); z-index: 5; }
    .s-nav-extra { display: none; }
    .s-login { padding-inline: 18px; font-size: 15px; }
    .s-menu-on body { overflow: auto; }
}
@media (min-width: 1280px) { .s-nav-link { padding-inline: 14px; } }

/* ---------- بخش‌ها ---------- */
.s-section { padding: 56px 0; }
.s-section--alt { background: var(--s-bg-2); }
.s-section--tight { padding: 40px 0; }
.s-sechead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.s-sechead--center { flex-direction: column; align-items: center; text-align: center; }
.s-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--site-ink); letter-spacing: 0; margin-bottom: 6px; }
.s-sectitle { font-size: 24px; margin: 0 !important; }
.s-seclead { color: var(--s-text-2); max-width: 640px; margin: 8px 0 0 !important; }
@media (min-width: 768px) { .s-section { padding: 80px 0; } .s-sectitle { font-size: 30px; } }

/* ---------- هیرو ---------- */
.s-hero { padding: 24px 0 40px; background: linear-gradient(180deg, var(--s-bg-2) 0%, #FFFFFF 85%); }
.s-hero-grid { display: grid; gap: 20px; }
.s-hero-copy { order: 2; }
.s-hero-visual { order: 1; position: relative; border-radius: var(--s-radius-lg); overflow: hidden; background: var(--s-bg-3); aspect-ratio: 4 / 3; }
.s-hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-hero-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--site-ink); text-align: center; padding: 24px; }
.s-hero-ph .s-brand-logo, .s-hero-ph .s-brand-mark { width: 96px; height: 96px; border-radius: 24px; font-size: 44px; }
.s-hero-title { font-size: 30px; line-height: 1.45 !important; margin-bottom: 12px !important; }
.s-hero-text { color: var(--s-text-2); font-size: 16px; max-width: 560px; }
.s-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.s-hero-actions .s-btn { flex: 1 1 160px; }
.s-hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px !important; }
.s-hero-facts li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--s-line); font-size: 13px; color: var(--s-text-2); }
.s-hero-facts b { color: var(--s-text); }
@media (min-width: 768px) {
    .s-hero { padding: 48px 0 64px; }
    .s-hero-title { font-size: 38px; }
    .s-hero-actions .s-btn { flex: 0 0 auto; }
}
@media (min-width: 1024px) {
    .s-hero-grid { grid-template-columns: 5fr 6fr; align-items: center; gap: 48px; }
    .s-hero-copy { order: 1; }
    .s-hero-visual { order: 2; aspect-ratio: 5 / 4; }
    .s-hero-title { font-size: 44px; }
}

/* ---------- درباره ---------- */
.s-split { display: grid; gap: 28px; align-items: center; }
.s-split-media { border-radius: var(--s-radius-lg); overflow: hidden; }
.s-split .s-media { border-radius: var(--s-radius-lg); }
.s-chips { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 !important; }
.s-chips li { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: var(--s-bg-2); font-weight: 700; font-size: 14px; line-height: 1.5; }
.s-chips .si { color: var(--site-ink); width: 18px; height: 18px; }
.s-quote { margin: 20px 0 0; padding: 16px 18px; border-inline-start: 4px solid var(--site-primary); background: var(--site-soft); border-radius: 12px; }
.s-quote p { margin: 0 0 8px !important; color: var(--s-text); }
@media (min-width: 1024px) { .s-split { grid-template-columns: 1fr 1fr; gap: 56px; } .s-split--rev .s-split-media { order: 2; } }

/* ---------- کارت‌ها ---------- */
.s-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.s-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .s-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .s-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .s-grid--4, .s-grid--2.s-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.s-card { position: relative; display: flex; flex-direction: column; background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--s-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; min-width: 0; }
.s-card:hover { box-shadow: var(--s-shadow-lg); transform: translateY(-2px); }
.s-card-link { display: block; }
.s-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.s-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 !important; font-size: 13px; color: var(--s-text-3); }
.s-card-title { font-size: 17px; margin: 0 !important; line-height: 1.6 !important; }
.s-card-title a { color: var(--s-text) !important; text-decoration: none; }
.s-card-title a:hover { color: var(--site-ink) !important; text-decoration: underline; }
.s-card-text { color: var(--s-text-2); font-size: 14.5px; margin: 0 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-card .s-more { margin-top: auto; padding-top: 6px; }
.s-tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--site-soft); color: var(--site-ink); font-weight: 700; font-size: 12px; }

.s-media { position: relative; overflow: hidden; background: var(--s-bg-3); aspect-ratio: 16 / 10; }
.s-media--square { aspect-ratio: 1 / 1; }
.s-media--tall { aspect-ratio: 4 / 5; }
.s-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-media-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--site-ink); opacity: .55; background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, .45) 12px 24px); }
.s-media-ph .si { width: 40px; height: 40px; }

/* کارت پایه تحصیلی */
.s-grade { display: flex; flex-direction: column; border-radius: var(--s-radius); overflow: hidden; background: #FFFFFF; border: 1px solid var(--s-line); text-decoration: none !important; color: var(--s-text) !important; transition: box-shadow .2s, transform .2s; min-width: 0; }
.s-grade:hover { box-shadow: var(--s-shadow-lg); transform: translateY(-2px); }
.s-grade-top { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--s-bg-2); color: var(--site-ink); border-bottom: 1px solid var(--s-line); }
.s-grade-top .si { width: 36px; height: 36px; }
.s-grade-num { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; padding: 2px 10px; border-radius: 999px; background: #FFFFFF; font-size: 12px; font-weight: 700; color: var(--site-ink); }
.s-grade-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.s-grade-title { font-size: 16px; font-weight: 800; margin: 0 !important; }
.s-grade-sub { font-size: 13px; color: var(--s-text-2); margin: 0 !important; }
.s-grade-top.has-image { display: block; overflow: hidden; }
.s-grade-top.has-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.s-grade-desc { font-size: 14px; line-height: 1.7; color: var(--s-text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.s-grade .s-more { font-size: 13px; }
@media (min-width: 768px) { .s-grade-title { font-size: 18px; } }

/* نوار ویژگی‌ها / آمار (تیره) */
.s-band { background: var(--site-deep); color: #FFFFFF; padding: 48px 0; }
.s-band .s-sectitle, .s-band h2, .s-band h3 { color: #FFFFFF; }
.s-band .s-eyebrow { color: rgba(255, 255, 255, .85); }
.s-band .s-seclead { color: rgba(255, 255, 255, .85); }
.s-feats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.s-feat { padding: 18px 14px; border-radius: var(--s-radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); min-width: 0; }
.s-feat-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .14); margin-bottom: 10px; overflow: hidden; }
.s-feat-icon img { width: 100%; height: 100%; object-fit: cover; }
.s-feat h3 { font-size: 16px; margin: 0 0 4px !important; }
.s-feat p { color: rgba(255, 255, 255, .85); font-size: 14px; margin: 0 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-feat a { color: #FFFFFF !important; }
.s-stats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px !important; }
.s-stat { padding: 16px; border-radius: var(--s-radius); background: rgba(255, 255, 255, .08); text-align: center; }
.s-stat b { display: block; font-size: 28px; line-height: 1.3; }
.s-stat span { font-size: 13px; color: rgba(255, 255, 255, .85); }
@media (min-width: 1024px) { .s-band { padding: 72px 0; } .s-feats, .s-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .s-feat { padding: 24px; } }

/* گالری */
.s-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.s-gallery a { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--s-bg-3); }
.s-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.s-gallery a:hover img { transform: scale(1.04); }
.s-gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 24px 12px 10px; font-size: 13px; font-weight: 700; color: #FFFFFF; background: linear-gradient(0deg, rgba(0, 0, 0, .65), transparent); }
@media (min-width: 768px) { .s-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .s-gallery a { aspect-ratio: 4 / 3; } }

/* سه‌کارت پایانی */
.s-trio { display: grid; gap: 16px; }
.s-trio-card { padding: 24px; border-radius: var(--s-radius); background: #FFFFFF; border: 1px solid var(--s-line); display: flex; flex-direction: column; gap: 10px; }
.s-trio-card h3 { font-size: 18px; margin: 0 !important; }
.s-trio-card p { color: var(--s-text-2); margin: 0 !important; }
.s-trio-card .s-btn { margin-top: auto; align-self: flex-start; }
.s-trio-card--brand { background: var(--site-primary); border-color: var(--site-primary); color: var(--site-on-primary); }
.s-trio-card--brand h3, .s-trio-card--brand p { color: var(--site-on-primary) !important; }
.s-trio-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--site-soft); color: var(--site-ink); }
.s-trio-card--brand .s-trio-icon { background: rgba(255, 255, 255, .16); color: inherit; }
@media (min-width: 768px) { .s-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* ---------- صفحات داخلی ---------- */
.s-pagehead { padding: 24px 0 28px; background: var(--s-bg-2); border-bottom: 1px solid var(--s-line); }
.s-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--s-text-3); }
.s-crumbs li + li::before { content: "/"; margin-inline-end: 4px; color: var(--s-text-3); }
.s-crumbs a { color: var(--s-text-2); text-decoration: none; }
.s-crumbs a:hover { color: var(--site-ink); text-decoration: underline; }
.s-pagehead-title { font-size: 26px; margin: 8px 0 0 !important; }
.s-pagehead-lead { color: var(--s-text-2); margin: 6px 0 0 !important; max-width: 720px; }
@media (min-width: 768px) { .s-pagehead { padding: 36px 0 40px; } .s-pagehead-title { font-size: 34px; } }
.s-page { padding: 32px 0 64px; }
.s-layout { display: grid; gap: 28px; }
@media (min-width: 1024px) { .s-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; } .s-aside { position: sticky; top: calc(var(--s-header-h) + 20px); } }
.s-panel { background: #FFFFFF; border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 20px; }
.s-panel + .s-panel { margin-top: 16px; }
.s-panel-title { font-size: 16px; margin: 0 0 12px !important; }
.s-list { list-style: none; display: grid; gap: 2px; }
.s-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--s-text) !important; font-size: 14.5px; }
.s-list a:hover, .s-list a[aria-current] { background: var(--site-soft); color: var(--site-ink) !important; }
.s-list time { font-size: 12px; color: var(--s-text-3); flex: none; }
.s-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.s-tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: 999px; background: var(--s-bg-2); color: var(--s-text-2) !important; font-size: 13px; text-decoration: none; }
.s-tags a:hover { background: var(--site-soft); color: var(--site-ink) !important; }

/* متن غنی (خروجی ویرایشگر) */
.s-prose { font-size: 16px; line-height: 2; color: var(--s-text); overflow-wrap: anywhere; }
.s-prose img, .s-prose video, .s-prose iframe { max-width: 100% !important; height: auto; border-radius: 12px; }
.s-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.s-prose td, .s-prose th { border: 1px solid var(--s-line); padding: 6px 10px; }
.s-prose h2, .s-prose h3 { margin-top: 1.4em; }
.s-prose ul, .s-prose ol { padding-inline-start: 1.4em; margin-bottom: 1em; }
.s-prose blockquote { margin: 1em 0; padding: 12px 16px; border-inline-start: 4px solid var(--site-primary); background: var(--s-bg-2); border-radius: 10px; }
.s-article-media { margin-bottom: 20px; }
.s-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.s-thumbs a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; }
.s-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.s-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--s-text-3); font-size: 13px; margin-bottom: 16px; }
.s-meta span { display: inline-flex; align-items: center; gap: 6px; }
.s-meta .si { width: 16px; height: 16px; }

/* حالت خالی */
.s-empty { text-align: center; padding: 40px 20px; border: 1.5px dashed var(--s-line); border-radius: var(--s-radius); background: #FFFFFF; }
.s-empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--site-soft); color: var(--site-ink); margin-bottom: 12px; }
.s-empty-icon .si { width: 28px; height: 28px; }
.s-empty-title { font-size: 18px !important; margin-bottom: 6px !important; }
.s-empty p { color: var(--s-text-2); max-width: 460px; margin: 0 auto 16px !important; }

/* فرم‌ها */
.s-form { display: grid; gap: 16px; }
.s-form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .s-form-row { grid-template-columns: 1fr 1fr; } }
.s-field { display: grid; gap: 6px; min-width: 0; }
.s-field label { font-weight: 700; font-size: 14px; }
.s-field .s-req { color: #B42318; }
.s-input, .s-body .s-field input[type=text], .s-body .s-field input[type=email], .s-body .s-field input[type=tel], .s-body .s-field input[type=file], .s-body .s-field select, .s-body .s-field textarea {
    width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #CDD2DC; border-radius: 12px; background: #FFFFFF; font-size: 16px; line-height: 1.6; color: var(--s-text); }
.s-body .s-field textarea { min-height: 140px; }
.s-body .s-field input:focus, .s-body .s-field select:focus, .s-body .s-field textarea:focus { border-color: var(--site-ink); box-shadow: 0 0 0 3px var(--site-soft-2); }
.s-hint { font-size: 13px; color: var(--s-text-3); margin: 0 !important; }
.s-formcard { background: #FFFFFF; border: 1px solid var(--s-line); border-radius: var(--s-radius-lg); padding: 20px; box-shadow: var(--s-shadow); }
@media (min-width: 768px) { .s-formcard { padding: 32px; } }
.s-errors, .s-body .alert { padding: 12px 16px; border-radius: 12px; background: #FEF3F2; color: #912018; border: 1px solid #FECDCA; font-size: 14px; }
.s-body .alert ul { padding-inline-start: 1.2em; margin: 0; }
.s-body .alert-success { background: #ECFDF3; color: #05603A; border-color: #ABEFC6; }

/* اطلاعات تماس */
.s-contact { list-style: none; display: grid; gap: 12px; }
.s-contact li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--s-bg-2); }
.s-contact .si { color: var(--site-ink); margin-top: 3px; }
.s-contact b { display: block; font-size: 13px; color: var(--s-text-3); font-weight: 700; }
.s-contact a { color: var(--s-text) !important; text-decoration: none; font-weight: 700; }
.s-contact a:hover { color: var(--site-ink) !important; text-decoration: underline; }

/* صفحه‌بندی (خروجی Laravel) */
.s-body .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 32px 0 0; padding: 0; }
.s-body .page-link { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--s-line); background: #FFFFFF; color: var(--s-text) !important; text-decoration: none; }
.s-body .page-item.active .page-link { background: var(--site-primary); border-color: var(--site-primary); color: var(--site-on-primary) !important; }
.s-body .page-item.disabled .page-link { color: var(--s-text-3) !important; background: var(--s-bg-2); }

/* دیدگاه‌ها */
.s-comments { margin-top: 32px; }
.s-comment { padding: 16px; border: 1px solid var(--s-line); border-radius: 14px; background: #FFFFFF; }
.s-comment + .s-comment { margin-top: 12px; }
.s-comment-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.s-comment-head b { font-size: 15px; }
.s-comment-head time { color: var(--s-text-3); font-size: 12px; }
.s-comment p { margin: 0 !important; color: var(--s-text-2); }
.s-replies { margin: 12px 0 0; padding-inline-start: 16px; border-inline-start: 2px solid var(--site-soft-2); }
.s-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--s-text-2); }
.s-switch input { width: 18px; height: 18px; accent-color: var(--site-primary); }

/* CTA */
.s-cta { border-radius: var(--s-radius-lg); padding: 28px 20px; background: var(--site-primary); color: var(--site-on-primary); display: grid; gap: 16px; }
.s-cta h2 { color: var(--site-on-primary) !important; font-size: 22px; margin: 0 !important; }
.s-cta p { margin: 0 !important; opacity: .92; }
.s-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 768px) { .s-cta { grid-template-columns: 1fr auto; align-items: center; padding: 40px; } .s-cta h2 { font-size: 26px; } }

/* ---------- فوتر ---------- */
.s-footer { border-top: 4px solid var(--site-primary); background: var(--site-deep); color: rgba(255, 255, 255, .86); font-size: 14.5px; }
.s-footer a { color: rgba(255, 255, 255, .92) !important; text-decoration: none; }
.s-footer a:hover { color: #FFFFFF !important; text-decoration: underline; }
.s-footer-grid { display: grid; gap: 32px; padding-block: 48px 32px; }
.s-footer-about p { margin: 14px 0 0 !important; max-width: 360px; }
.s-brand--footer { color: #FFFFFF !important; }
.s-brand--footer .s-brand-mark { background: #FFFFFF; color: var(--site-deep); }
.s-brand--footer .s-brand-logo { background: #FFFFFF; padding: 4px; }
.s-footer-title { color: #FFFFFF !important; font-size: 16px; margin: 0 0 12px !important; }
.s-footer-list { list-style: none; display: grid; gap: 2px; }
.s-footer-list a { display: inline-flex; align-items: center; min-height: 36px; }
.s-footer-contact { list-style: none; display: grid; gap: 10px; }
.s-footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.s-footer-contact .si { width: 18px; height: 18px; margin-top: 4px; opacity: .85; }
.s-footer-cta { display: inline-flex !important; align-items: center; min-height: 44px; margin-top: 14px; padding: 8px 16px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 12px; font-weight: 700; }
.s-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px !important; }
.s-social a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; }
.s-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); }
.s-footer-bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-block: 16px; font-size: 13px; }
.s-footer-bottom p { margin: 0 !important; }
.s-powered { opacity: .8; }
@media (min-width: 768px) { .s-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .s-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 40px; } }

/* SweetAlert با فونت سامانه */
.swal-modal, .swal-title, .swal-text, .swal-button { font-family: var(--s-font) !important; }
.swal-button { background-color: var(--site-primary) !important; }

/* datepicker: فقط وقتی صفحه آن را بارگذاری می‌کند */
.ui-datepicker { font-family: var(--s-font) !important; z-index: 120 !important; }

@media print { .s-topbar, .s-header, .s-footer, .s-skip { display: none !important; } }
@media (max-width: 1023px) { .s-hero--noimg .s-hero-copy { order: 1; } .s-hero--noimg .s-hero-visual { order: 2; aspect-ratio: 16 / 7; } .s-hero--noimg .s-hero-ph .s-brand-logo, .s-hero--noimg .s-hero-ph .s-brand-mark { width: 64px; height: 64px; font-size: 30px; } }
