/* ==========================================================
   StudyInAustralia public site
   هویت بصری از لوگو گرفته شده: خورشید نارنجی، کانگوروی مشکی و زمینه کرم گرم
   ========================================================== */

@font-face { font-family: Estedad; src: url('../fonts/Estedad-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: Estedad; src: url('../fonts/Estedad-Medium.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: Estedad; src: url('../fonts/Estedad-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Estedad; src: url('../fonts/Estedad-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Estedad; src: url('../fonts/Estedad-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
    --ink: #16181d;
    --ink-2: #2b2f38;
    --sun: #f7a531;
    --sun-600: #d9820a;
    --sun-100: #ffe9c2;
    --sun-50: #fff5e3;
    --cream: #fffaf2;
    --sea: #0b6680;
    --sea-50: #e8f4f7;
    --muted: #646b78;
    --line: #ece5d8;
    --bg: #ffffff;
    --success: #127a4a;
    --danger: #c0342b;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 12px 34px rgba(60, 40, 5, .08);
    --shadow-lg: 0 28px 70px rgba(60, 40, 5, .16);
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
    margin: 0;
    font-family: Estedad, Tahoma, Arial, sans-serif;
    font-feature-settings: "ss02";
    font-size: 16px;
    line-height: 1.95;
    color: var(--ink-2);
    background: var(--bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--sea); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sun-600); }

h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .6em; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 880px; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2.2rem; }
.justify-center { justify-content: center; }

.sr-only, .hp-field {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link { position: absolute; top: -60px; right: 16px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { flex-shrink: 0; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.4;
    padding: .9rem 1.8rem; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.2rem; font-size: .92rem; white-space: nowrap; }
.btn-block { width: 100%; }
.btn-gold { background: var(--sun); color: var(--ink); box-shadow: 0 10px 24px rgba(247, 165, 49, .38); }
.btn-gold:hover { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(22, 24, 29, .25); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand img { height: 54px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.45; }
.brand-text strong { font-size: 1.08rem; font-weight: 800; white-space: nowrap; }
.brand-text small { color: var(--muted); font-size: .78rem; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; margin-right: auto; }
.site-nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
    position: relative; display: block; white-space: nowrap; padding: .5rem .85rem;
    border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .96rem;
}
.site-nav ul a:hover { color: var(--ink); background: var(--sun-50); }
.site-nav ul a.active { color: var(--ink); background: var(--sun-100); }
.nav-actions { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.header-phone .icon { color: var(--sun-600); }
.site-header .btn-gold { background: var(--ink); color: #fff; box-shadow: none; }
.site-header .btn-gold:hover { background: var(--sun); color: var(--ink); }

.nav-toggle { display: none; margin-right: auto; background: var(--sun-50); border: 0; border-radius: 12px; padding: .55rem; color: var(--ink); cursor: pointer; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: inline; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; background: var(--cream);
    padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
/* ستون لوگو در سمت چپ (در RTL ستون دوم) */
.hero-visual { order: 2; display: flex; justify-content: center; }
.hero-visual img { width: 100%; max-width: 600px; height: auto; filter: drop-shadow(0 24px 40px rgba(217, 130, 10, .22)); }
.hero-text { order: 1; }
.hero h1 { margin-bottom: .2em; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 600; color: var(--muted); margin-bottom: 1.6rem; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .84rem; font-weight: 700; color: var(--ink);
    background: var(--sun-100); padding: .28rem .95rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun-600); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-contacts { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; padding: 0; margin: 1.8rem 0 0; }
.hero-contacts a { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.hero-contacts .icon { color: var(--sun-600); }

.licence-badge {
    display: inline-flex; align-items: flex-start; gap: .8rem; margin-bottom: 1.9rem;
    padding: .9rem 1.2rem; border-radius: var(--radius-sm);
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.licence-badge .icon { color: var(--success); flex-shrink: 0; margin-top: .2rem; }
.licence-badge span { display: flex; flex-direction: column; line-height: 1.7; }
.licence-badge strong { color: var(--ink); }
.licence-badge a { font-size: .88rem; text-decoration: underline; text-underline-offset: 4px; }

.hero-card {
    position: relative; border-radius: 28px; padding: 2.2rem;
    background: rgba(255, 255, 255, .8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .7);
}
.hero-card h2 { font-size: 1.3rem; margin-bottom: .2em; }
.hero-call { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px dashed #e6d7bd; }
.hero-card-label { color: var(--muted); font-size: .92rem; margin: 0 0 .8rem; }
.hero-card-label strong { color: var(--ink); }
.hero-phones { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.hero-phones a {
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .5rem 1rem; border-radius: 999px; font-weight: 700; color: var(--ink);
    background: #fff; border: 1px solid var(--line);
}
.hero-phones a:hover { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.hero-phones .icon { color: var(--sun-600); }
.hero-phones a:hover .icon { color: var(--ink); }

.check-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list .icon { color: var(--ink); background: var(--sun); border-radius: 50%; padding: 3px; margin-top: .3rem; }

/* نوار آمار زیر هیرو */
.stats { background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 1.7rem 1rem; text-align: center; }
.stat + .stat { border-right: 1px solid rgba(255, 255, 255, .12); }
.stat strong { display: block; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.3; color: var(--sun); }
.stat span { color: rgba(255, 255, 255, .78); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.8rem) 0; }
.section-alt { background: var(--cream); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 2.8rem; }
.section-head h2 { margin-bottom: .2em; }
.section-head p { color: var(--muted); margin: .5rem 0 0; }

.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; counter-reset: service; }
.service-card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.9rem 1.6rem; transition: transform .25s, box-shadow .25s, border-color .25s;
    counter-increment: service; overflow: hidden;
}
.service-card::after {
    content: counter(service, persian); position: absolute; left: 1.2rem; top: .6rem;
    font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--sun-50);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card h3 { position: relative; }
.service-card { display: flex; flex-direction: column; }
.service-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.service-link { margin-top: auto; padding-top: 1rem; font-size: .92rem; color: var(--sea); }
.service-icon {
    position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; border-radius: 18px; margin-bottom: 1.1rem;
    background: var(--sun); color: var(--ink);
}

.intro-text { text-align: justify; color: var(--ink-2); font-size: 1.06rem; line-height: 2.2; margin: 0; }
.intro-box {
    margin-top: 2.5rem; padding: 1.8rem 2rem; border-radius: var(--radius);
    background: var(--sun-50); border-right: 5px solid var(--sun);
}
.intro-box p { margin: 0; text-align: justify; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.team-card {
    display: grid; grid-template-columns: auto 1fr; gap: .2rem 1.2rem; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
}
.team-card img, .team-avatar {
    grid-row: span 2; width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
    box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--sun);
}
.team-avatar { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: var(--cream); }
.team-card h3 { margin: 0; align-self: end; }
.team-card p { color: var(--muted); font-size: .92rem; line-height: 1.8; margin: 0; align-self: start; }

/* ---------- FAQ / accordions ---------- */
.faq-list { display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: box-shadow .2s, border-color .2s; }
.faq-item:hover { border-color: var(--sun); }
.faq-item[open] { box-shadow: var(--shadow); border-color: var(--sun); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.15rem 1.4rem; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { display: flex; align-items: center; gap: .8rem; }
.faq-q .icon { color: var(--sun-600); }
.faq-chevron {
    width: 30px; height: 30px; padding: 5px; border-radius: 50%;
    color: var(--ink); background: var(--sun-50); transition: transform .25s, background .2s;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); background: var(--sun); }
.faq-a { padding: 0 1.4rem 1.3rem 1.4rem; padding-right: 3.6rem; color: var(--muted); }
.read-more { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; padding: .45rem 0; }

.guide-body { color: var(--ink-2); }
.guide-body > :last-child { margin-bottom: 0; }
.guide-body ul, .guide-body ol { margin: 0 0 1em; padding-right: 1.3rem; }
.guide-body li { margin-bottom: .35rem; }
.guide-body li::marker { color: var(--sun-600); }
.guide-body strong { color: var(--ink); }

/* ---------- Request ---------- */
.request-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.request-info p { color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }
.card-title { font-size: 1.2rem; }

.request-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .4rem; color: var(--ink); }
.form-group label small { color: var(--muted); font-weight: 400; }
.req { color: var(--danger); }
.request-form input, .request-form textarea {
    width: 100%; font: inherit; color: var(--ink);
    padding: .8rem 1rem; border-radius: var(--radius-sm);
    border: 1.5px solid var(--line); background: var(--cream);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.request-form input:focus, .request-form textarea:focus { outline: none; background: #fff; border-color: var(--sun); box-shadow: 0 0 0 4px rgba(247, 165, 49, .2); }
.request-form input::placeholder, .request-form textarea::placeholder { color: #a39c8e; }
.request-form .is-invalid { border-color: var(--danger); background: #fff6f5; }
.field-error { display: block; color: var(--danger); font-size: .85rem; margin-top: .3rem; }
.checkbox { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem; font-size: .93rem; }

.alert { display: flex; align-items: center; gap: .5rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-weight: 600; }
.alert-success { background: #e8f6ef; color: var(--success); }
.alert-danger { background: #fdecea; color: var(--danger); }

.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.contact-list li > span:last-child { display: flex; flex-direction: column; line-height: 1.6; }
.contact-list a[dir="ltr"] { display: inline-block; padding: .3rem 0; }
.contact-list small { color: var(--muted); font-size: .8rem; }
.contact-list a[dir="ltr"] { font-weight: 700; font-size: 1.05rem; text-align: right; color: var(--ink); }
.contact-list a[dir="ltr"]:hover { color: var(--sun-600); }
.contact-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%; background: var(--sun-100); color: var(--ink);
}
.contact-number { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.contact-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.contact-links a {
    font-size: .82rem; font-weight: 700; padding: .4rem .95rem; border-radius: 999px;
    background: var(--sun-50); color: var(--ink); border: 1px solid var(--sun-100);
}
.contact-links a:hover { background: var(--sun); color: var(--ink); }
.map-link { font-size: .9rem; font-weight: 600; }
.social-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.social-links a { padding: .4rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; direction: ltr; }

/* ---------- Inner pages ---------- */
.page-hero, .post-hero {
    position: relative; overflow: hidden; background: var(--cream); color: var(--muted);
    padding: 3rem 0 3.4rem; border-bottom: 1px solid var(--line);
}
/* لوگوی کانگورو (همان تصویر بخش اول صفحه اصلی) کامل و بدون برش در سمت چپ سربرگ؛
   ستون لوگو برای متن رزرو می شود تا هیچ وقت روی تیتر و توضیحات نیفتد */
.page-hero::after, .post-hero::after { content: none; }
@media (min-width: 901px) {
    .page-hero::after, .post-hero::after {
        content: ""; position: absolute; top: 50%; transform: translateY(-50%);
        left: max(22px, calc(50% - var(--container) / 2 + 22px));
        width: 200px; aspect-ratio: 1100 / 862; pointer-events: none;
        background: url('../images/hero-kangaroo.webp') center / contain no-repeat;
    }
    .page-hero .container { padding-left: 262px; }
    /* سربرگ مقاله: ستون باریک و پایینش زیر کاور است؛ لوگو کنار عنوان می ماند */
    .post-hero::after { top: 3rem; transform: none; left: max(22px, calc(50% - 440px + 22px)); width: 170px; }
    .post-hero .container { padding-left: 222px; }
}
.page-hero .container, .post-hero .container { position: relative; z-index: 1; }
.page-hero-sm { padding: 2.4rem 0 2.6rem; }
.page-hero h1 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin-bottom: .2em; }
.page-hero p { margin: 0; font-size: 1.05rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .86rem; margin-bottom: .9rem; color: var(--muted); }
.breadcrumb a { color: var(--sea); font-weight: 600; }

.search-box {
    position: relative; z-index: 1; display: flex; align-items: center; gap: .6rem; max-width: 560px;
    margin-top: 1.6rem; background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
    padding: .35rem; padding-right: 1.1rem; color: var(--muted); box-shadow: var(--shadow);
}
.search-box:focus-within { border-color: var(--sun); }
.search-box input { flex: 1; min-width: 0; border: 0; font: inherit; padding: .5rem 0; background: transparent; color: var(--ink); }
.search-box input:focus { outline: none; }
.search-result { color: var(--muted); }
.empty-state { text-align: center; padding: 2rem; color: var(--muted); }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 2rem; align-items: start; }
.article-body { font-size: 1.05rem; line-height: 2.15; text-align: justify; }
.article-body h2, .article-body h3 { margin-top: 1.4em; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--ink); }
.article-body img { border-radius: var(--radius-sm); }
.article-body blockquote { margin: 1.2em 0; padding: .8em 1.2em; border-right: 4px solid var(--sun); background: var(--cream); border-radius: 10px; }
.article-aside { display: grid; gap: 1.5rem; position: sticky; top: 100px; }
.aside-cta { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .8); }
.aside-cta h2 { color: #fff; }
.aside-cta h2, .aside-title { font-size: 1.12rem; }
.aside-cta p { color: rgba(255, 255, 255, .7); font-size: .95rem; }
.aside-cta .contact-list { margin-bottom: 1.5rem; }
.aside-cta .contact-list:last-child { margin-bottom: 0; }
.aside-cta .contact-list small { color: rgba(255, 255, 255, .6); }
.aside-cta .contact-list a[dir="ltr"], .aside-cta .contact-number { color: #fff; }
.aside-cta .contact-list a[dir="ltr"]:hover { color: var(--sun); }
.aside-cta .contact-icon { background: rgba(255, 255, 255, .1); color: var(--sun); }
.aside-cta .btn-gold:hover { background: #fff; color: var(--ink); }
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li + li { border-top: 1px dashed var(--line); }
.related-list a { display: block; padding: .65rem 0; font-weight: 600; font-size: .95rem; color: var(--ink); line-height: 1.8; }
.related-list a:hover { color: var(--sun-600); }

.cta-band { background: var(--ink); padding: 2.8rem 0; color: rgba(255, 255, 255, .75); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .2em; font-size: 1.45rem; color: #fff; }
.cta-inner p { margin: 0; }
.cta-band .btn-gold:hover { background: #fff; color: var(--ink); }
.cta-band .btn-outline { border-color: rgba(255, 255, 255, .5); color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--ink); }

.error-page .error-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--sun); line-height: 1; }

.about-parent { padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: var(--cream); }
.about-parent a { font-weight: 700; }

/* ---------- Login ---------- */
.page-login { background: var(--cream); min-height: 100vh; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 420px; text-align: right; }
.login-logo { display: flex; justify-content: center; margin-bottom: 1rem; }
.login-logo img { height: 96px; width: auto; }
.login-card h1 { font-size: 1.3rem; text-align: center; margin-bottom: 1.4rem; }
.back-link { display: flex; align-items: center; justify-content: center; gap: .3rem; margin-top: 1rem; padding: .6rem; font-size: .92rem; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--sun-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-top: 4rem; padding-bottom: 3rem; }
.footer-brand { display: inline-block; margin-bottom: 1.1rem; padding: .7rem 1.1rem; background: var(--cream); border-radius: var(--radius-sm); }
.footer-brand img { display: block; height: 64px; width: auto; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.footer-title::after { content: ""; display: block; width: 30px; height: 4px; margin-top: .5rem; background: var(--sun); border-radius: 4px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: var(--sun); }
.footer-contact li { display: flex; gap: .6rem; align-items: center; }
.footer-contact .icon { color: var(--sun); }
.footer-badges { margin-top: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.3rem 0; font-size: .85rem; text-align: center; }
.footer-bottom p { margin: .2rem 0; }
.disclaimer { color: rgba(255, 255, 255, .5); font-size: .8rem; }
.footer-parent { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .9rem; }
.footer-parent .icon { color: var(--sun); }
.footer-parent a { color: var(--sun); font-weight: 700; }

/* ---------- Blog ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .42rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line);
    background: #fff; color: var(--ink-2); font-weight: 600; font-size: .9rem; transition: all .2s;
}
.chip small { color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--sun); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.active small { color: rgba(255, 255, 255, .7); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.post-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: var(--sun-50); }
.post-card-placeholder img { width: 64px !important; height: 64px !important; object-fit: contain; opacity: .7; }
.post-card-body { display: flex; flex-direction: column; gap: .65rem; padding: 1.4rem 1.5rem 1.5rem; flex: 1; }
.post-chip {
    align-self: flex-start; font-size: .8rem; font-weight: 700; color: var(--ink);
    background: var(--sun-100); padding: .45rem .95rem; line-height: 1.5; border-radius: 999px;
}
.post-chip:hover { background: var(--sun); color: var(--ink); }
.post-card-title { font-size: 1.1rem; line-height: 1.7; margin: 0; }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--sun-600); }
.post-card-text {
    color: var(--muted); font-size: .93rem; margin: 0; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; color: var(--muted); font-size: .84rem; }

.post-featured {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-bottom: 2.5rem;
    background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
}
.post-featured-media { display: block; min-height: 340px; background: var(--cream); }
.post-featured-media img { width: 100%; height: 100%; object-fit: cover; }
.post-featured-body { display: flex; flex-direction: column; justify-content: center; gap: .8rem; padding: 2.4rem; }
.post-featured-body h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.post-featured-body h2 a { color: var(--ink); }
.post-featured-body p { color: var(--muted); margin: 0; }
.post-featured-body .btn { align-self: flex-start; margin-top: .4rem; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 3rem; }
.page-link {
    min-width: 44px; height: 44px; padding: 0 .9rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 700;
}
.page-link:hover { border-color: var(--sun); color: var(--ink); }
.page-link.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-link.disabled { opacity: .45; pointer-events: none; }

.preview-bar { background: var(--sun); color: var(--ink); text-align: center; padding: .6rem 1rem; font-weight: 700; }
.preview-bar a { color: var(--ink); text-decoration: underline; margin-right: .6rem; }

.post-hero { padding: 3rem 0 6rem; border-bottom: 0; }
.post-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.55; max-width: 900px; }
.post-lead { font-size: 1.1rem; color: var(--muted); max-width: 760px; }
.post-meta-hero { gap: .5rem 1.4rem; font-size: .9rem; }
.post-meta-hero span { display: inline-flex; align-items: center; gap: .35rem; }
.post-meta-hero .icon { color: var(--sun-600); }
.post-cover-wrap { max-width: 1000px; margin-top: -4rem; position: relative; z-index: 2; }
.post-cover { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--cream); }
.post-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-section { padding-top: 2.5rem; }

.toc { margin-bottom: 1.5rem; padding: 1.3rem 1.6rem; background: var(--cream); box-shadow: none; }
.toc summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.toc summary small { color: var(--muted); font-weight: 500; }
.toc ol { margin: .8rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; counter-reset: toc; }
.toc li { font-size: .95rem; overflow-wrap: anywhere; }
.toc .toc-l2 { counter-increment: toc; display: flex; gap: .5rem; }
.toc .toc-l2::before { content: counter(toc, persian) "."; color: var(--sun-600); font-weight: 800; min-width: 1.4rem; }
.toc summary::marker { color: var(--sun-600); }
.toc .toc-l3 { margin-right: 1.9rem; font-size: .9rem; display: flex; gap: .5rem; }
.toc .toc-l3::before { content: ""; width: 6px; height: 6px; margin-top: .85em; border-radius: 50%; background: var(--sun); flex-shrink: 0; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--sun-600); }

.post-body { font-size: 1.08rem; line-height: 2.2; overflow-wrap: anywhere; }
.post-body h2 { font-size: 1.55rem; margin: 1.9em 0 .6em; padding-right: .9rem; border-right: 5px solid var(--sun); scroll-margin-top: 100px; }
.post-body h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; scroll-margin-top: 100px; }
.post-body h4 { font-size: 1.08rem; margin: 1.4em 0 .4em; color: var(--ink-2); }
.post-body h2:first-child, .post-body h3:first-child { margin-top: 0; }
.post-body a { color: var(--sea); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.post-body strong { color: var(--ink); }
.post-body ul, .post-body ol { padding-right: 1.4rem; }
.post-body li { margin-bottom: .4rem; }
.post-body li::marker { color: var(--sun-600); }
.post-body img { display: block; margin: 1.5rem auto; border-radius: var(--radius-sm); }
.post-body table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; line-height: 1.9; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: .65rem .9rem; text-align: right; }
.post-body th, .post-body thead td { background: var(--sun-50); color: var(--ink); font-weight: 700; }
.post-body tbody tr:nth-child(even) td { background: var(--cream); }
.post-body .ql-align-center { text-align: center; }
.post-body .ql-align-left { text-align: left; }
.post-body .ql-align-justify { text-align: justify; }

.post-footer { display: grid; gap: 1rem; margin-top: 1.5rem; }
.post-tags, .share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.post-tags strong, .share strong { color: var(--ink); font-size: .92rem; }
.share-btn {
    font: inherit; font-size: .85rem; font-weight: 600; padding: .38rem .95rem; border-radius: 999px; cursor: pointer;
    border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); transition: all .2s;
}
.share-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
    .header-phone { display: none; }
}

@media (max-width: 1100px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none; position: absolute; top: 100%; right: 0; left: 0;
        flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 22px 1.5rem;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .nav-open .site-nav { display: flex; }
    .site-nav ul { flex-direction: column; }
    .site-nav ul a { padding: .75rem 1rem; border-radius: var(--radius-sm); }
    .nav-actions { flex-direction: column; align-items: stretch; }
    .header-phone { display: inline-flex; justify-content: center; }
}

@media (max-width: 1080px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .hero-inner, .request-grid, .article-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-visual { order: 0; }
    .hero-visual img { max-width: 340px; }
    .hero-text { text-align: right; }
    .article-aside { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .post-featured { grid-template-columns: minmax(0, 1fr); }
    .post-featured-media { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
    body { font-size: 15px; }
    .brand-text small { display: none; }
    .cards-grid, .request-form .form-row, .footer-grid, .post-grid { grid-template-columns: minmax(0, 1fr); }
    .card { padding: 1.5rem; }
    .hero-card { padding: 1.6rem; border-radius: var(--radius); }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero { padding-top: 1.5rem; }
    .hero-visual img { max-width: 230px; }
    .hero-inner { gap: 1rem; }
    .hero-phones li { flex: 1 1 calc(50% - .55rem); }
    .hero-phones a { padding: .5rem .6rem; }
    .stat { padding: 1.2rem .4rem; }
    .stat span { font-size: .8rem; line-height: 1.6; display: block; }
    .faq-a { padding-right: 1.4rem; }
    .search-box .btn { padding: .5rem .9rem; }
    .team-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .team-card img, .team-avatar { grid-row: auto; margin-bottom: .8rem; }
    .post-featured-body { padding: 1.5rem; }
    .post-body { font-size: 1rem; }
    .post-cover-wrap { margin-top: -3rem; }
    .post-cover { border-radius: var(--radius); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
