/* =====================================================
   هوم‌پیج عمومی + صفحه بلاگ
   این فایل روی assets/css/style.css سوار می‌شود (فونت‌ها و متغیرهای رنگی از همان‌جا می‌آیند)
   ===================================================== */

body.home-page {
    min-height: 100dvh;
    display: block;
    padding: 0;
}

.home-shell {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px 10px;
}

/* ===================== هدر هوم‌پیج ===================== */
.home-header {
    text-align: center;
    padding: 38px 10px 26px;
}

.home-header .brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--c-primary);
    background: color-mix(in srgb, var(--c-primary) 12%, transparent);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.home-header h1 {
    margin: 0 0 10px;
    font-size: clamp(24px, 4.6vw, 38px);
    font-weight: 800;
    line-height: 1.35;
    color: var(--text);
}

.home-header p {
    margin: 0 auto;
    max-width: 560px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.9;
}

/* ===================== بج‌های وضعیت (مشترک بین هیرو و کارت‌ها) ===================== */
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.status-chip.is-live {
    background: rgba(22, 163, 74, .14);
    color: #16a34a;
}
[data-mode="dark"] .status-chip.is-live,
html:not([data-mode="light"]) .status-chip.is-live { color: #4ade80; }

.status-chip.is-live .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,.6);
    animation: pulse-dot 1.6s infinite;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
    70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.status-chip.is-upcoming { background: rgba(217, 119, 6, .15); color: #b45309; }
.status-chip.is-ended    { background: rgba(107, 114, 128, .16); color: #6b7280; }
[data-mode="dark"] .status-chip.is-upcoming,
html:not([data-mode="light"]) .status-chip.is-upcoming { color: #fbbf24; }
[data-mode="dark"] .status-chip.is-ended,
html:not([data-mode="light"]) .status-chip.is-ended { color: #9ca3af; }

@media (prefers-color-scheme: light) {
    html[data-mode="auto"] .status-chip.is-live { color: #16a34a; }
    html[data-mode="auto"] .status-chip.is-upcoming { color: #b45309; }
    html[data-mode="auto"] .status-chip.is-ended { color: #6b7280; }
}

/* ===================== بخش هیرو (رویداد در حال برگزاری) ===================== */
.hero-event {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 16px 42px rgba(15, 23, 42, .14);
    margin-bottom: 40px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.hero-event:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 52px rgba(15, 23, 42, .18);
}

.hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3;
    background: linear-gradient(135deg, var(--c-grad-1), var(--c-grad-2));
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 45%);
}

.hero-badges {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.hero-badges .status-chip {
    background: rgba(255,255,255,.92);
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.hero-badges .status-chip.is-live { background: rgba(255,255,255,.92); color: #15803d; }

.hero-body {
    padding: 24px 26px 28px;
    text-align: center;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 8px;
    letter-spacing: .3px;
}

.hero-title {
    font-size: clamp(22px, 3.6vw, 32px);
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.4;
    color: var(--text);
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 20px;
    line-height: 1.9;
    white-space: pre-line;
}

.hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 34px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--c-grad-1), var(--c-grad-2));
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    align-self: flex-start;
    justify-content: center;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--c-primary) 35%, transparent);
}

/* اگر چند رویداد هم‌زمان در حال برگزاری باشند */
.hero-secondary-note {
    text-align: center;
    font-size: 12.5px;
    color: var(--text-muted);
    margin: -22px 0 32px;
}

@media (min-width: 760px) {
    .hero-event { display: flex; }
    .hero-banner { width: 46%; aspect-ratio: auto; }
    .hero-body { width: 54%; text-align: start; padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
    .hero-subtitle { margin: 0 0 20px; }
    .hero-meta { justify-content: flex-start; }
    .hero-cta { align-self: flex-start; }
    .hero-badges { inset-inline-start: auto; inset-inline-end: 16px; }
}

/* ===================== عنوان بخش‌ها ===================== */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 18px;
}

.section-head h2 {
    font-size: 19px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-head .section-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 4px 0 0;
}

section.home-section { margin-bottom: 44px; }

/* ===================== گرید رویدادها ===================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.event-card-mini {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.event-card-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, .16);
}

.event-card-mini .thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3;
    background: linear-gradient(135deg, var(--c-grad-1), var(--c-grad-2));
    overflow: hidden;
}

.event-card-mini .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.event-card-mini .thumb .status-chip {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    background: rgba(255,255,255,.92);
    color: inherit;
}
.event-card-mini .thumb .status-chip.is-live { color: #15803d; }
.event-card-mini .thumb .status-chip.is-upcoming { color: #b45309; }
.event-card-mini .thumb .status-chip.is-ended { color: #4b5563; }

.event-card-mini .body {
    padding: 15px 16px 17px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-mini .title {
    font-size: 15.5px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.6;
    color: var(--text);
}

.event-card-mini .excerpt {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0 0 12px;
    flex: 1;
}

.event-card-mini .date-row {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

/* ===================== بخش بلاگ ===================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(15, 23, 42, .16); }

.blog-card .thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--c-grad-1), var(--c-grad-2));
    overflow: hidden;
}
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.blog-card .body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }

.blog-card .date { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }

.blog-card .title { font-size: 15.5px; font-weight: 700; margin: 0 0 8px; line-height: 1.6; }

.blog-card .excerpt { font-size: 12.5px; color: var(--text-muted); line-height: 1.85; margin: 0 0 12px; flex: 1; }

.blog-card .related-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    color: var(--c-primary);
    background: color-mix(in srgb, var(--c-primary) 10%, transparent);
    padding: 5px 11px;
    border-radius: 999px;
}

/* ===================== حالت خالی ===================== */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    background: var(--surface);
    border: 1.5px dashed var(--border);
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.9;
}

.empty-state .emoji { font-size: 34px; margin-bottom: 10px; display: block; }

/* ===================== فوتر ===================== */
footer.home-footer {
    text-align: center;
    font-size: 11.5px;
    color: var(--text-muted);
    padding: 26px 16px 34px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}

/* ===================== صفحه تک‌پست بلاگ ===================== */
.blog-post-shell {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 16px 50px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 18px;
}
.back-link:hover { color: var(--c-primary); }

.blog-post-cover {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c-grad-1), var(--c-grad-2));
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}
.blog-post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.blog-post-date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

.blog-post-title { font-size: clamp(22px, 4vw, 30px); font-weight: 800; line-height: 1.5; margin: 0 0 14px; }

.blog-post-related {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--c-primary);
    background: color-mix(in srgb, var(--c-primary) 10%, transparent);
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.blog-post-content {
    font-size: 15px;
    line-height: 2.1;
    color: var(--text);
    white-space: pre-line;
    margin-bottom: 26px;
}

.blog-post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.blog-post-gallery a {
    display: block;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.blog-post-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.blog-post-gallery a:hover img { transform: scale(1.06); }

@media (min-width: 640px) {
    .home-shell { padding: 0 24px 10px; }
}

/* =====================================================================
   ظاهر هوم‌پیج (هدر چسبان، اسلایدر، فیلتر، کارت رویداد، مزیت‌ها، متن سئو، فوتر)
   ===================================================================== */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- هدر ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 22px rgba(15, 23, 42, .1); }
.site-header-in { max-width: 1240px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 18px; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 18px; flex-shrink: 0; }
.site-logo img { height: 40px; width: auto; max-width: 170px; object-fit: contain; display: block; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--c-grad-1), var(--c-grad-2)); color: #fff; font-size: 19px; font-weight: 800; box-shadow: 0 6px 14px color-mix(in srgb, var(--c-primary) 35%, transparent); }
.logo-text { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 8px; flex: 1; }
.site-nav a { text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 10px; transition: background .15s, color .15s; }
.site-nav a:hover { background: color-mix(in srgb, var(--c-primary) 10%, transparent); color: var(--c-primary); }
.site-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; cursor: pointer; text-decoration: none; font-family: inherit; }
.icon-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.nav-toggle { display: none; }
@media (max-width: 760px) {
    .site-header-in { height: 58px; gap: 10px; }
    .nav-toggle { display: inline-flex; }
    .site-nav { position: absolute; top: 58px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 2px; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 12px 12px; margin: 0; box-shadow: 0 16px 28px rgba(15, 23, 42, .12); display: none; }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 12px 14px; font-size: 15px; }
    .logo-text { max-width: 150px; font-size: 16px; }
}

/* ---------- اسلایدر ---------- */
.hero-slider-wrap { max-width: 1240px; margin: 0 auto; padding: 18px 16px 0; }
.hero-slider { position: relative; border-radius: 22px; overflow: hidden; height: 300px; background: linear-gradient(135deg, var(--c-grad-1), var(--c-grad-2)); box-shadow: 0 16px 42px rgba(15, 23, 42, .18); isolation: isolate; }
.slide { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 12, 24, .82) 0%, rgba(8, 12, 24, .35) 55%, rgba(8, 12, 24, .05) 100%); }
.slide-body { position: absolute; inset-inline: 0; bottom: 0; padding: 0 22px 46px; display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.slide-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.slide .status-chip { background: rgba(255, 255, 255, .92); }
.slide .status-chip.is-live { color: #15803d; }
.slide .status-chip.is-upcoming { color: #b45309; }
.tag-ticket { font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(4px); }
.slide-eyebrow { font-size: 12px; font-weight: 700; opacity: .85; }
.slide-title { margin: 0; font-size: clamp(21px, 3.4vw, 34px); font-weight: 800; line-height: 1.45; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.slide-sub { margin: 0; font-size: 13.5px; opacity: .9; line-height: 1.8; display: none; }
.slide-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.slide-cta { background: #fff; color: #111827; font-weight: 800; font-size: 13.5px; padding: 10px 22px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.slide-meta { font-size: 12.5px; opacity: .92; }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); color: #111827; font-size: 24px; line-height: 1; cursor: pointer; display: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); font-family: inherit; }
.slide-arrow.prev { inset-inline-start: 14px; }
.slide-arrow.next { inset-inline-end: 14px; }
.slide-dots { position: absolute; z-index: 3; bottom: 14px; inset-inline: 0; display: flex; justify-content: center; gap: 7px; }
.slide-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .25s, background .25s; }
.slide-dots button.on { width: 26px; background: #fff; }
@media (min-width: 760px) {
    .hero-slider { height: 420px; }
    .slide-body { padding: 0 84px 54px; gap: 10px; }
    .slide-sub { display: block; }
    .slide-arrow { display: inline-flex; align-items: center; justify-content: center; }
    .slide-dots { bottom: 20px; }
}

/* ---------- معرفی / هیرو ساده ---------- */
.intro-strip { text-align: center; padding: 30px 8px 6px; }
.intro-strip h1 { margin: 0 0 8px; font-size: clamp(20px, 3.4vw, 28px); font-weight: 800; line-height: 1.5; }
.intro-strip p { margin: 0 auto; max-width: 620px; color: var(--text-muted); font-size: 14px; line-height: 1.9; }
.hero-plain { background: linear-gradient(135deg, var(--c-grad-1), var(--c-grad-2)); color: #fff; }
.hero-plain-in { max-width: 820px; margin: 0 auto; padding: 56px 18px 62px; text-align: center; }
.hero-plain .brand-badge { display: inline-block; background: rgba(255, 255, 255, .18); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.hero-plain h1 { margin: 0 0 12px; font-size: clamp(24px, 4.6vw, 40px); font-weight: 800; line-height: 1.4; }
.hero-plain p { margin: 0 auto; max-width: 560px; font-size: 14.5px; line-height: 1.95; opacity: .92; }
.home-shell { max-width: 1240px; padding-top: 6px; }
section.home-section { margin-top: 34px; margin-bottom: 0; }
section.home-section:last-child { margin-bottom: 40px; }

/* ---------- فیلتر و جستجو ---------- */
.events-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.filter-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs button { flex-shrink: 0; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: inherit; font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.filter-tabs button small { opacity: .6; font-weight: 600; margin-inline-start: 3px; }
.filter-tabs button:hover { border-color: var(--c-primary); }
.filter-tabs button.on { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.ev-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 14px; height: 44px; cursor: text; }
.ev-search:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 18%, transparent); }
.ev-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--text); width: 100%; min-width: 0; padding: 0; box-shadow: none; }
@media (min-width: 760px) {
    .events-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
    .ev-search { width: 280px; }
}
.ev-empty { text-align: center; padding: 36px 16px; color: var(--text-muted); font-size: 14px; background: var(--surface); border: 1.5px dashed var(--border); border-radius: 16px; }

/* ---------- کارت رویداد ---------- */
.events-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.event-card-mini { border-radius: 18px; }
.event-card-mini .thumb { aspect-ratio: 16 / 11; }
.event-card-mini .thumb .status-chip { z-index: 2; }
.date-badge { position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 2; min-width: 52px; text-align: center; background: rgba(255, 255, 255, .95); color: #111827; border-radius: 12px; padding: 6px 8px; line-height: 1.2; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.date-badge b { display: block; font-size: 19px; font-weight: 800; }
.date-badge i { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: var(--c-primary-dark); }
.event-card-mini .date-row { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 12px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--border); padding-top: 12px; margin-top: auto; }
.card-foot .price { font-size: 12px; color: var(--text-muted); }
.card-foot .price b { color: var(--text); font-size: 14px; font-weight: 800; }
.card-foot .price.muted { opacity: .8; }
.buy-btn { background: linear-gradient(135deg, var(--c-grad-1), var(--c-grad-2)); color: #fff; font-size: 12.5px; font-weight: 800; padding: 9px 16px; border-radius: 11px; white-space: nowrap; }
.buy-btn.ghost { background: color-mix(in srgb, var(--c-primary) 10%, transparent); color: var(--c-primary); }

/* ---------- مزیت‌ها ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 14px; text-align: center; }
.f-ico { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 25px; background: color-mix(in srgb, var(--c-primary) 11%, transparent); margin-bottom: 10px; }
.feature h3 { margin: 0 0 6px; font-size: 14px; font-weight: 800; }
.feature p { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.85; }
@media (min-width: 760px) {
    .features { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .feature { padding: 26px 18px; }
    .feature h3 { font-size: 15px; }
    .feature p { font-size: 12.5px; }
}

/* ---------- متن سئو (سه خط اول + بازشونده) ---------- */
.hp-seo { margin: 44px 0 36px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px 24px 14px; }
.hp-seo > h2 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.hp-seo-body { position: relative; font-size: 13.5px; line-height: 2.1; color: var(--text-muted); max-height: 7.4em; overflow: hidden; transition: max-height .35s ease; }
.hp-seo-body::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2.6em; background: linear-gradient(to top, var(--surface), transparent); pointer-events: none; }
.hp-seo-body.open { max-height: 4000px; }
.hp-seo-body.open::after { display: none; }
.hp-seo-body h2, .hp-seo-body h3, .hp-seo-body h4 { color: var(--text); margin: 14px 0 4px; font-size: 14.5px; font-weight: 800; }
.hp-seo-body p { margin: 0 0 8px; }
.hp-seo-body ul, .hp-seo-body ol { margin: 0 0 8px; padding-inline-start: 22px; }
.hp-seo-body a { color: var(--c-primary); }
.hp-seo-more { display: flex; align-items: center; gap: 6px; margin: 6px auto 0; background: none; border: 0; color: var(--c-primary); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; padding: 8px 14px; }
.hp-seo-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.hp-seo-more.open svg { transform: rotate(180deg); }

/* ---------- فوتر ---------- */
.hp-footer { background: #0f172a; color: #cbd5e1; margin-top: 10px; }
.hp-footer-in { max-width: 1240px; margin: 0 auto; padding: 38px 18px 26px; display: grid; grid-template-columns: 1fr; gap: 28px; }
.hp-footer .site-logo { color: #fff; }
.hp-footer .ft-about p { font-size: 13px; line-height: 2; margin: 14px 0 0; color: #94a3b8; max-width: 420px; }
.hp-footer h4 { margin: 0 0 14px; font-size: 14.5px; color: #fff; font-weight: 800; }
.hp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.hp-footer a { color: #cbd5e1; text-decoration: none; }
.hp-footer a:hover { color: #fff; }
.ft-social { display: flex; gap: 10px; margin-top: 16px; }
.ft-social a { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); font-size: 11.5px; font-weight: 800; color: #fff; transition: background .15s; }
.ft-social a:hover { background: var(--c-primary); }
.hp-footer-bar { border-top: 1px solid rgba(255, 255, 255, .09); text-align: center; font-size: 12px; color: #94a3b8; padding: 16px 16px 22px; }
.hp-footer-bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 820px) { .hp-footer-in { grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding: 48px 18px 34px; } }
