/*
Theme Name: Saheli Counseling
Theme URI: https://drsaheli.runflare.run/
Author: Majid Sheilehsari Saheli
Author URI: https://drsaheli.runflare.run/
Description: قالب اختصاصی و حرفه‌ای برای سایت دکتر مجید شیله‌سری ساحلی، روانشناس و مشاور. طراحی آرام، مدرن و راست‌چین، متناسب با خدمات مشاوره و روان‌درمانی.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.0.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: saheli
Tags: rtl, custom-theme, counseling, psychology, responsive, custom-logo, custom-menu, featured-images
*/

/* ============================================================
   متغیرهای رنگ و پایه
   ============================================================ */
:root {
    --c-deep: #0E7490;        /* فیروزه‌ای عمیق — آبی-فیروزه‌ای */
    --c-deep-2: #0B5A6F;      /* فیروزه‌ای تیره‌تر */
    --c-sage: #5BA3A0;        /* سبز-فیروزه‌ای نرم */
    --c-sage-light: #9FCFCB;
    --c-terra: #C77B5C;       /* تراکوتا — دعوت‌کننده و انسانی */
    --c-terra-dark: #B5634A;
    --c-sand: #F2F7F8;        /* پس‌زمینهٔ فیروزه‌ای بسیار روشن */
    --c-sand-2: #E4EFF1;
    --c-ink: #1F3A45;         /* متن تیره */
    --c-ink-soft: #4D6B76;    /* متن ثانویه */
    --c-white: #FFFFFF;
    --c-line: #D9E6E9;
    --shadow-sm: 0 2px 8px rgba(14,116,144,0.08);
    --shadow-md: 0 10px 30px rgba(14,116,144,0.12);
    --shadow-lg: 0 20px 50px rgba(14,116,144,0.18);
    --radius: 18px;
    --radius-sm: 12px;
    --maxw: 1200px;
    --font: "Vazirmatn", "Tahoma", "Segoe UI", sans-serif;
}

/* ============================================================
   ریست و پایه
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-weight: 400;
    color: var(--c-ink);
    background: var(--c-sand);
    line-height: 1.85;
    font-size: 16px;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-terra); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-terra-dark); }
h1, h2, h3, h4 { color: var(--c-deep); line-height: 1.4; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.eyebrow {
    display: inline-block;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--c-terra);
    background: rgba(199,123,92,.10);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 18px;
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head p { color: var(--c-ink-soft); font-size: 1.05rem; margin-bottom: 0; }

/* ============================================================
   دکمه‌ها
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 30px;
    border-radius: 100px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--c-terra);
    color: #fff;
    box-shadow: 0 8px 20px rgba(199,123,92,.30);
}
.btn-primary:hover { background: var(--c-terra-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(199,123,92,.40); }
.btn-ghost {
    background: transparent;
    color: var(--c-deep);
    border-color: rgba(27,77,92,.25);
}
.btn-ghost:hover { background: var(--c-deep); color: #fff; border-color: var(--c-deep); }
.btn-light {
    background: #fff;
    color: var(--c-deep);
    box-shadow: var(--shadow-sm);
}
.btn-light:hover { color: var(--c-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 17px 38px; font-size: 1.08rem; }

/* ============================================================
   هدر و ناوبری
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-line);
    transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    padding: 12px 0;
}
.brand { display: flex; flex-direction: row; align-items: center; gap: 14px; line-height: 1.3; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; }
.brand .brand-name { font-size: 1.2rem; font-weight: 800; color: var(--c-deep); }
.brand .brand-role { font-size: .76rem; color: var(--c-sage); font-weight: 600; }
.brand-logo { height: 56px; width: auto; max-width: none; display: block; flex-shrink: 0; }
.brand-tagline {
    font-size: .82rem;
    color: var(--c-ink-soft);
    font-weight: 600;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    flex-wrap: wrap;
}
.brand-license {
    color: #fff;
    background: var(--c-terra);
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: .76rem;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(199,123,92,.30);
}
/* فوتر: نسخهٔ تیرهٔ همان برند */
.site-footer .brand-name { color: #fff; }
.site-footer .brand-role { color: var(--c-sage); font-size: .82rem; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* فقط منوی سطح اول — flex افقی */
.main-nav > ul {
    display: flex !important;
    flex-direction: row;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.main-nav a {
    display: block;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--c-ink);
    font-size: .98rem;
    transition: all .2s ease;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a {
    color: var(--c-terra);
    background: rgba(199,123,92,.08);
}

/* ============================================================
   منوی آبشاری (زیرمنوها) — دسکتاپ
   ============================================================ */
.main-nav li { position: relative; }

/* زیرمنوها: مخفی پیش‌فرض با display:none (قوی و قابل‌اعتماد) */
.main-nav .sub-menu,
.main-nav .children {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    list-style: none;
    margin: 0;
    padding: 8px !important;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    z-index: 9999;
}

/* باز شدن با hover یا focus (دسکتاپ) */
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu,
.main-nav .page_item_has_children:hover > .children,
.main-nav .page_item_has_children:focus-within > .children {
    display: block !important;
}

/* استایل لینک‌های زیرمنو */
.main-nav .sub-menu li,
.main-nav .children li {
    display: block;
}
.main-nav .sub-menu a,
.main-nav .children a {
    display: block;
    padding: 11px 16px;
    border-radius: 10px;
    white-space: nowrap;
    font-size: .92rem;
}

/* زیرمنوی تو در تو — به سمت چپ باز شود (RTL) */
.main-nav .sub-menu .sub-menu,
.main-nav .children .children {
    top: 0;
    right: 100%;
    margin-right: 4px;
}

/* فلش کوچک ▾ برای آیتم‌هایی که زیرآیتم دارند */
.main-nav .menu-item-has-children > a,
.main-nav .page_item_has_children > a {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}
.main-nav .menu-item-has-children > a::after,
.main-nav .page_item_has_children > a::after {
    content: "";
    display: inline-block;
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    opacity: .5;
    transition: transform .22s ease;
}
.main-nav .menu-item-has-children:hover > a::after,
.main-nav .page_item_has_children:hover > a::after {
    transform: rotate(180deg);
    opacity: 1;
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.btn-login {
    font-weight: 700;
    color: var(--c-deep);
    padding: 9px 18px;
    border-radius: 100px;
    border: 2px solid var(--c-line);
    background: #fff;
    font-size: .92rem;
    transition: all .2s ease;
    cursor: pointer;
}
.btn-login:hover { border-color: var(--c-deep); color: var(--c-deep); }
.btn-login-disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 26px; height: 3px;
    background: var(--c-deep);
    border-radius: 3px;
    transition: .3s ease;
}

/* ============================================================
   هیرو (صفحه اصلی)
   ============================================================ */
.hero {
    position: relative;
    padding: 110px 0 100px;
    background:
        linear-gradient(160deg, rgba(27,77,92,.94), rgba(20,82,99,.88)),
        url('assets/hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: -1px; right: 0; left: 0;
    height: 90px;
    background: var(--c-sand);
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 55%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .hero-sub {
    font-size: 1.2rem;
    color: var(--c-sage-light);
    margin-bottom: 18px;
    font-weight: 600;
}
.hero .hero-desc {
    font-size: 1.06rem;
    color: rgba(255,255,255,.85);
    max-width: 620px;
    margin-bottom: 34px;
    line-height: 1.9;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .eyebrow {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
}

/* نوار آمار */
.stats {
    position: relative;
    z-index: 5;
    margin-top: -40px;
    margin-bottom: 0;
    padding: 0 0 20px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 40px;
    box-shadow: var(--shadow-lg);
}
.stat { text-align: center; }
.stat .stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--c-deep);
    display: block;
    line-height: 1.2;
}
.stat .stat-label { color: var(--c-ink-soft); font-size: .95rem; font-weight: 600; }

/* ============================================================
   خدمات
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 38px 30px;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--c-sage), var(--c-terra));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(123,160,152,.18), rgba(27,77,92,.12));
    color: var(--c-deep);
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--c-ink-soft); margin-bottom: 0; font-size: .98rem; }

/* ============================================================
   درباره
   ============================================================ */
.about { background: #fff; }
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}
.about-text h2 { margin-bottom: 22px; }
.about-text p { color: var(--c-ink-soft); font-size: 1.06rem; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.tag {
    font-size: .9rem;
    font-weight: 700;
    color: var(--c-deep);
    background: var(--c-sand);
    border: 1px solid var(--c-line);
    padding: 9px 18px;
    border-radius: 100px;
}
.about-visual {
    position: relative;
}
.about-portrait {
    background: linear-gradient(160deg, var(--c-sage-light), var(--c-deep));
    border-radius: var(--radius);
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: flex-end; justify-content: center;
    overflow: hidden;
}
.about-portrait .ph-name {
    background: rgba(255,255,255,.92);
    margin: 22px;
    padding: 14px 26px;
    border-radius: 14px;
    text-align: center;
}
.about-portrait .ph-name strong { color: var(--c-deep); display: block; font-size: 1.1rem; }
.about-portrait .ph-name span { color: var(--c-ink-soft); font-size: .85rem; }
.about-badge {
    position: absolute;
    bottom: -26px;
    right: -26px;
    background: var(--c-terra);
    color: #fff;
    border-radius: 16px;
    padding: 20px 26px;
    box-shadow: 0 14px 30px rgba(199,123,92,.35);
    text-align: center;
}
.about-badge strong { display: block; font-size: 1.7rem; line-height: 1; }
.about-badge span { font-size: .8rem; }

/* ============================================================
   دوره‌ها
   ============================================================ */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.course-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--c-line);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.course-cover {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--c-deep), var(--c-sage));
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.course-cover .course-emoji { font-size: 2.6rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.2)); }
.course-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(255,255,255,.9);
    color: var(--c-terra);
    font-size: .78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
}
.course-body { padding: 26px 24px 30px; flex: 1; display: flex; flex-direction: column; }
.course-body h3 { margin-bottom: 10px; }
.course-body p { color: var(--c-ink-soft); font-size: .96rem; margin-bottom: 18px; }
.course-link { margin-top: auto; font-weight: 700; color: var(--c-terra); display: inline-flex; align-items: center; gap: 6px; }
.course-link:hover { gap: 12px; }

.center-cta { text-align: center; margin-top: 50px; }

/* ============================================================
   قوانین و حریم خصوصی
   ============================================================ */
.rules { background: var(--c-deep); color: #fff; position: relative; }
.rules h2 { color: #fff; }
.rules .section-head p { color: rgba(255,255,255,.75); }
.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.rule-item {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-sm);
    padding: 24px 26px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.rule-item .rule-ico {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: rgba(199,123,92,.25);
    color: var(--c-terra);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.rule-item p { margin: 0; color: rgba(255,255,255,.85); font-size: .98rem; }

/* ============================================================
   بخش نهایی CTA
   ============================================================ */
.cta-final {
    text-align: center;
    background: linear-gradient(160deg, var(--c-sand), #fff);
}
.cta-card {
    background: linear-gradient(135deg, var(--c-deep), var(--c-deep-2));
    border-radius: 26px;
    padding: 60px 40px;
    color: #fff;
    box-shadow: var(--shadow-lg);
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: "";
    position: absolute;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(199,123,92,.35), transparent 70%);
    top: -120px; left: -100px;
    border-radius: 50%;
}
.cta-card h2 { color: #fff; margin-bottom: 16px; position: relative; }
.cta-card p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 28px; position: relative; }
.cta-card .btn { position: relative; }

/* ============================================================
   فوتر
   ============================================================ */
.site-footer {
    background: #073D4A;
    color: rgba(255,255,255,.75);
    padding: 64px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 44px;
}
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.footer-col p { font-size: .95rem; color: rgba(255,255,255,.65); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: rgba(255,255,255,.7); font-size: .95rem; }
.footer-col ul a:hover { color: var(--c-terra); }
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; font-weight: 800; }
.footer-brand .brand-role { color: var(--c-sage); font-size: .82rem; }
.footer-contact li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.7); font-size: .95rem; margin-bottom: 14px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
    text-align: center;
    font-size: .88rem;
    color: rgba(255,255,255,.5);
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-bottom-inner p { margin: 0; }
.enamad-seal img {
    height: 90px;
    width: auto;
    border-radius: 10px;
    opacity: .95;
    transition: opacity .2s ease;
}
.enamad-seal:hover img { opacity: 1; }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: all .2s ease;
}
.social a:hover { background: var(--c-terra); color: #fff; }
.social svg { width: 18px; height: 18px; }

/* ============================================================
   صفحات داخلی
   ============================================================ */
.page-hero {
    background: linear-gradient(160deg, var(--c-deep), var(--c-deep-2));
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero .crumb { color: rgba(255,255,255,.7); font-size: .95rem; }
.page-hero .crumb a { color: var(--c-sage-light); }
.content-wrap { padding: 70px 0; }
.content-wrap .container { max-width: 820px; }
.content-wrap h2 { margin-top: 1.8em; }
.content-wrap .aligncenter { margin: 1.5em auto; }
.content-wrap img { border-radius: var(--radius-sm); margin: 1.2em 0; }

/* ============================================================
   بلاگ / نوشته‌ها
   ============================================================ */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .3s ease;
    display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--c-sage), var(--c-deep)); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post-meta { font-size: .82rem; color: var(--c-sage); font-weight: 600; margin-bottom: 10px; }
.post-body h3 { margin-bottom: 10px; font-size: 1.15rem; }
.post-body p { color: var(--c-ink-soft); font-size: .95rem; margin-bottom: 16px; }
.post-body .more { margin-top: auto; font-weight: 700; color: var(--c-terra); }

/* ============================================================
   واکنش‌گرا (موبایل)
   ============================================================ */
@media (max-width: 980px) {
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-visual { max-width: 420px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 820px) {
    .main-nav { display: none; position: fixed; top: 84px; right: 0; left: 0; background: #fff; padding: 16px 24px; box-shadow: var(--shadow-md); border-top: 1px solid var(--c-line); max-height: calc(100vh - 84px); overflow-y: auto; z-index: 9999; }
    .main-nav.open { display: block !important; }
    .main-nav > ul { flex-direction: column !important; gap: 4px; }
    .main-nav a { padding: 14px 16px; }
    .nav-toggle { display: flex; }
    .header-actions .btn-login { display: none; }
    /* موبایل: زیرمنوها به‌صورت کشویی عمودی باز شوند */
    .main-nav .sub-menu,
    .main-nav .children {
        position: static !important;
        min-width: 0;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 18px 0 0 !important;
        margin-top: 2px;
        background: var(--c-sand);
        display: none !important;
    }
    .main-nav .menu-item-has-children.open > .sub-menu,
    .main-nav .page_item_has_children.open > .children {
        display: block !important;
    }
    .main-nav .menu-item-has-children > a::after,
    .main-nav .page_item_has_children > a::after {
        border-top-color: var(--c-terra);
        opacity: 1;
    }
    .main-nav .menu-item-has-children.open > a::after,
    .main-nav .page_item_has_children.open > a::after {
        transform: rotate(180deg);
    }
    .services-grid, .courses-grid, .stats-grid { grid-template-columns: 1fr; }
    .stats-grid { padding: 28px 24px; }
    .rules-grid { grid-template-columns: 1fr; }
    section { padding: 56px 0; }
    .hero { padding: 80px 0 70px; }
    .hero::after { height: 50px; }
}
@media (max-width: 560px) {
    .container { padding: 0 18px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .cta-card { padding: 40px 24px; }
    .about-badge { right: 0; }
    .brand-logo { height: 42px; }
    .brand { gap: 10px; }
    .brand .brand-name { font-size: 1rem; }
    .brand-tagline { font-size: .72rem; }
    .brand-license { font-size: .68rem; padding: 2px 9px; }
}

/* ============================================================
   قالب برگهٔ خالی (فقط هدر و فوتر)
   محتوای ویرایشگر بدون قاب و بدون عنوان بصری نمایش داده می‌شود.
   ============================================================ */
.blank-content {
    width: 100%;
    min-height: 70vh;
    /* بدون padding پیش‌فرض — شما خودتان چیدمان را مدیریت می‌کنید. */
}
.blank-content > *:first-child { margin-top: 0; }
.blank-content > *:last-child  { margin-bottom: 0; }

/* اگه بخواهید کل محتوا در عرض استاندارد پوسته محدود بشه،
   توی ویرایشگر کدتون رو داخل <div class="container">…</div> بذارید. */

/* وردپرس — وودسته‌ها و پیش‌فرض‌ها */
.alignleft { float: right; margin-left: 1.5em; }
.alignright { float: left; margin-right: 1.5em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--c-ink-soft); text-align: center; }
.sticky { }
.bypostauthor { }
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.gallery-caption { }
