/* ─────────────────────────────────────────────────────────────
   بخش‌های صفحه اصلی و متن صفحات (خدمات، مقاله، درباره، تماس)
   توکن‌های رنگ و «لبه‌ی تخته» در custom.css تعریف شده‌اند.
   ───────────────────────────────────────────────────────────── */

/* ── ریتم بخش‌ها ── */
.services-HomePage,
.why-HomePage,
.portfolio-HomePage,
.process-HomePage,
.mag-HomePage,
.faq-HomePage,
.contact-HomePage,
.brand-HomePage {
    padding: 76px 0;
}

.band-alt {
    background: var(--ground);
}

/* ── تیتر بخش — با نوار لبه‌ی تخته ── */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 38px;
}

.title-section {
    position: relative;
    margin: 0;
    padding-bottom: 20px;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.5;
    color: var(--ink);
}

.title-section::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56px;
    height: 9px;
    border-radius: 2px;
    background: var(--ply-layers);
}

.header .title-section::after {
    right: 50%;
    transform: translateX(50%);
}

.section-head .more {
    padding-bottom: 20px;
    font-size: 14px;
    font-weight: bold;
    color: var(--brand);
    white-space: nowrap;
}

.section-head .more::after {
    content: ' ←';
}

.section-head .more:hover {
    color: var(--brand-deep);
}

/* ── دکمه‌ها ── */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1.5px solid var(--brand);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--brand);
    font-size: 14.5px;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
}

.btn-cta:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.btn-cta.primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 18px rgba(117, 0, 171, .22);
}

.btn-cta.primary:hover {
    background: var(--brand-deep);
    border-color: var(--brand-deep);
    color: #fff;
}

/* ── معرفی صفحه اصلی ── */
.about-HomePage {
    padding: 64px 0 76px;
}

.about-HomePage h1 {
    margin: 0 0 12px;
    font-size: 40px;
    font-weight: 900;
    line-height: 1.55;
    color: var(--ink);
}

.about-HomePage .slogan {
    margin: 0 0 22px;
    font-size: 19px;
    font-weight: normal;
    color: var(--brand);
}

.about-HomePage .intro {
    max-width: 640px;
    margin: 0 0 30px;
    font-size: 16px;
    line-height: 2.15;
    color: var(--ink-2);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* کارت هماهنگی بازدید — لبه‌ی چندلایه سمت راست، مثل ورقی که از کنار دیده می‌شود */
.visit-card {
    position: relative;
    padding: 30px 46px 28px 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.visit-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 14px;
    background: var(--ply-layers-v);
}

.visit-card__label {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: bold;
    color: var(--ink-3);
}

.visit-card__phone {
    display: inline-block;
    margin-bottom: 18px;
    direction: ltr;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--brand);
}

.visit-card__phone:hover {
    color: var(--brand-deep);
}

.visit-card__facts {
    margin: 0;
    border-top: 1px dashed var(--line);
}

.visit-card__facts > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
    line-height: 1.9;
}

.visit-card__facts > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.visit-card__facts dt {
    font-weight: normal;
    color: var(--ink-3);
}

.visit-card__facts dd {
    margin: 0;
    font-weight: bold;
    text-align: left;
    color: var(--ink);
}

/* ── کارت خدمات ── */
.service-box {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 26px 26px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--ink);
}

/* نوار لبه‌ی چندلایه که با هاور از پایین کارت بیرون می‌آید */
.service-box::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 9px;
    background: var(--ply-layers);
    transform: translateY(100%);
    transition: transform .25s;
}

.service-box:hover {
    border-color: var(--brand-tint);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    color: var(--ink);
}

.service-box:hover::after {
    transform: none;
}

.service-box img {
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.service-box h3 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: bold;
}

.service-box p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 2.05;
    color: var(--ink-3);
}

.service-box .more-link {
    margin-top: auto;
    font-size: 14px;
    font-weight: bold;
    color: var(--brand);
}

.service-box .more-link::after {
    content: '←';
    display: inline-block;
    margin-right: 6px;
    transition: transform .25s;
}

.service-box:hover .more-link::after {
    transform: translateX(-4px);
}

/* ── چرا ما ── */
.why-box {
    height: 100%;
    padding: 26px 24px;
    background: var(--ground);
    border-radius: var(--radius);
}

.why-box h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: bold;
    color: var(--ink);
}

.why-box h3::before {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    margin-bottom: 16px;
    border-radius: 3px;
    background: var(--brand);
}

.why-box p {
    margin: 0;
    font-size: 14px;
    line-height: 2.05;
    color: var(--ink-2);
}

/* ── مسیر کار: ترتیب واقعی است، پس شماره و خط اتصال معنا دارد ── */
.process-steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.process-steps li {
    counter-increment: step;
    position: relative;
    padding-top: 62px;
}

.process-steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--brand);
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    font-size: 17px;
    font-weight: 900;
}

.process-steps li::after {
    content: '';
    position: absolute;
    top: 21px;
    right: 54px;
    left: -14px;
    height: 2px;
    background: repeating-linear-gradient(to left, var(--brand-tint) 0 6px, transparent 6px 11px);
}

.process-steps li:last-child::after {
    display: none;
}

.process-steps li strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: var(--ink);
}

.process-steps li span {
    display: block;
    font-size: 13.5px;
    line-height: 1.95;
    color: var(--ink-3);
}

/* ── سوالات متداول (partials/faq-list) ── */
.faq-list {
    max-width: 880px;
    border-top: 1px solid var(--line);
}

.faq-HomePage .faq-list {
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary h3 {
    margin: 0;
    font-size: 16.5px;
    font-weight: bold;
    line-height: 1.9;
    color: var(--ink);
}

.faq-item summary:hover h3 {
    color: var(--brand);
}

.faq-item summary::after {
    content: '+';
    flex: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 20px;
    transition: transform .25s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin: 0 0 22px;
    padding-left: 48px;
    font-size: 15px;
    line-height: 2.15;
    color: var(--ink-2);
}

/* ── تماس صفحه اصلی ── */
.contact-list {
    height: 100%;
    margin: 0;
    padding: 6px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.contact-list li {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 15px;
    line-height: 2;
    color: var(--ink);
}

.contact-list li:last-child {
    border-bottom: 0;
}

.contact-list li > span {
    flex: none;
    width: 96px;
    font-size: 14px;
    color: var(--ink-3);
}

.contact-list a {
    color: var(--brand);
    font-weight: bold;
}

.contact-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    height: 100%;
    padding: 30px;
    background: var(--brand);
    border-radius: var(--radius);
    color: #fff;
}

.contact-cta p {
    margin: 0;
    font-size: 17px;
    font-weight: bold;
    line-height: 2;
    color: #fff;
}

.contact-cta .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-cta .btn-cta {
    border-color: rgba(255, 255, 255, .55);
    background: transparent;
    color: #fff;
}

.contact-cta .btn-cta:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.contact-cta .btn-cta.primary {
    border-color: #fff;
    background: #fff;
    color: var(--brand);
    box-shadow: none;
}

.contact-cta .btn-cta.primary:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

/* ─────────────────────────────────────────────────────────────
   متن صفحات (صفحات خدمت، مقاله، درباره، تماس)
   ───────────────────────────────────────────────────────────── */

.page-content {
    padding: 40px 0 88px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 0 0 22px;
    font-size: 13px;
    color: var(--ink-3);
}

.breadcrumbs li + li::before {
    content: '‹';
    margin: 0 9px;
    color: #BDB5C6;
}

.breadcrumbs a {
    color: var(--ink-3);
}

.breadcrumbs a:hover {
    color: var(--brand);
}

.page-content h1 {
    margin-bottom: 16px;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.6;
    color: var(--ink);
}

.page-content .lead {
    margin-bottom: 30px;
    font-size: 17px;
    font-weight: normal;
    line-height: 2.1;
    color: var(--ink-2);
}

.main-image {
    margin-bottom: 30px;
    border-radius: var(--radius);
}

.context,
.hub-body {
    font-size: 16px;
    line-height: 2.25;
    color: #2F2638;
}

.hub-body {
    margin-top: 56px;
}

.context h2,
.hub-body h2,
.related h2,
.page-content .faq h2 {
    position: relative;
    margin: 44px 0 16px;
    padding-right: 18px;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.7;
    color: var(--ink);
}

.context h2::before,
.hub-body h2::before,
.related h2::before,
.page-content .faq h2::before {
    content: '';
    position: absolute;
    top: .42em;
    right: 0;
    bottom: .42em;
    width: 5px;
    border-radius: 3px;
    background: var(--brand);
}

.hub-body h2:first-child {
    margin-top: 0;
}

.context h3,
.hub-body h3 {
    margin: 28px 0 10px;
    font-size: 18px;
    font-weight: bold;
    color: var(--ink);
}

.context p,
.hub-body p {
    margin-bottom: 16px;
}

.context ul,
.context ol,
.hub-body ul,
.hub-body ol {
    margin: 0 0 20px;
    padding-right: 20px;
}

.context ul,
.hub-body ul {
    list-style: none;
}

.context ul li,
.hub-body ul li {
    position: relative;
    margin-bottom: 9px;
    padding-right: 18px;
}

.context ul li::before,
.hub-body ul li::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 0;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--brand);
}

.context ol,
.hub-body ol {
    list-style: decimal;
}

.context ol li,
.hub-body ol li {
    margin-bottom: 9px;
    padding-right: 6px;
}

.context ol li::marker,
.hub-body ol li::marker {
    color: var(--brand);
    font-weight: bold;
}

.context a,
.hub-body a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-color: var(--brand-tint);
    text-underline-offset: 4px;
}

.context a:hover,
.hub-body a:hover {
    text-decoration-color: var(--brand);
}

.context code {
    display: inline-block;
    padding: 2px 6px;
    background: var(--ground);
    border-radius: 4px;
    font-size: 13px;
    direction: ltr;
}

/* جدول‌های داخل متن */
.table-wrap {
    overflow-x: auto;
    margin: 0 0 22px;
}

.content-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 14px;
}

.content-table th,
.content-table td {
    padding: 11px 13px;
    border: 1px solid var(--line);
    text-align: right;
    line-height: 1.9;
}

.content-table th {
    background: var(--ground);
    font-weight: bold;
}

.content-table tbody tr:nth-child(even) {
    background: #FBFAFC;
}

/* ── جاگذاری‌هایی که مدیر سایت باید پر کند ──
   این دو کلاس موقت‌اند. بعد از پر کردن همه‌ی 【...】 حذفشان کنید. */
.fill-note {
    margin: 0 0 20px;
    padding: 14px 16px;
    background: #fff8e6;
    border-right: 4px solid #e0a800;
    border-radius: 5px;
    font-size: 14px;
    line-height: 2.1;
    color: #6b5300;
}

.fill-in {
    background: #ffe9a8;
    color: #6b5300;
    padding: 1px 5px;
    border-radius: 3px;
}

/* ── صفحه‌ی برند ── */
.brand-group-title {
    margin: 10px 0 18px;
    font-size: 20px;
}

.brand-gallery h2 {
    margin-bottom: 18px;
}

.brand-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.brand-gallery figure {
    margin: 0;
}

.brand-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.brand-gallery figcaption {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.9;
}

/* ── صفحه‌ی نمونه‌کار ── */
/* فقط مدیر می‌بیند: محتوای تأییدنشده */
.preview-note {
    margin: 0 0 22px;
    padding: 12px 16px;
    background: #fff8e6;
    border-right: 4px solid #e0a800;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 2;
    color: #6b5300;
}

.preview-note a {
    color: inherit;
    font-weight: bold;
    text-decoration: underline;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: -14px 0 24px;
    font-size: 13px;
    color: var(--ink-3);
}

.project-meta a {
    color: var(--brand);
}

.project-video {
    margin: 0 0 22px;
}

.project-video video {
    display: block;
    width: 100%;
    max-height: 80vh;
    background: #000;
    border-radius: var(--radius);
}

.project-video figcaption,
.project-gallery figcaption {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--ink-3);
}

.project-hero {
    margin: 0 0 12px;
}

.project-hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* minmax(0, …): بدون آن عرض ذاتی عکس (مثلاً ۷۲۰) ستون را باز می‌کند و صفحه در موبایل سرریز می‌شود */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.project-gallery figure {
    min-width: 0;
    margin: 0;
}

.project-gallery a {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--ground);
}

.project-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform .35s;
}

.project-gallery a:hover img {
    transform: scale(1.03);
}

.context .project-specs {
    width: 100%;
    margin: 8px 0 28px;
    border: 1px solid var(--line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: 14px;
}

.context .project-specs th,
.context .project-specs td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    text-align: right;
    vertical-align: top;
    line-height: 1.9;
}

.context .project-specs tr:last-child th,
.context .project-specs tr:last-child td {
    border-bottom: 0;
}

.context .project-specs th {
    width: 30%;
    background: var(--ground);
    font-weight: bold;
    color: var(--ink);
}

.related-projects {
    display: grid;
    gap: 14px;
    margin: 14px 0 20px;
}

.related-project {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink);
}

.related-project img {
    flex: 0 0 96px;
    width: 96px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.related-project:hover {
    color: var(--brand);
}

.lightbox {
    width: min(1100px, 100vw);
    max-width: 100vw;
    max-height: 100vh;
    padding: 52px 60px 20px;
    border: 0;
    background: transparent;
    overflow: hidden;
}

.lightbox::backdrop {
    background: rgba(15, 8, 22, .92);
}

.lightbox figure {
    margin: 0;
    text-align: center;
}

.lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    border-radius: var(--radius-sm);
}

.lightbox figcaption {
    margin-top: 12px;
    font-size: 14px;
    line-height: 2;
    color: #fff;
}

.lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    font-size: 28px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
}

.lightbox button:hover {
    background: rgba(255, 255, 255, .28);
}

.lightbox__close {
    top: 4px;
    left: 8px;
}

.lightbox__nav {
    top: 50%;
    margin-top: -22px;
}

.lightbox__prev {
    right: 6px;
}

.lightbox__next {
    left: 6px;
}

@media (max-width: 575px) {
    .project-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .context .project-specs th {
        width: 38%;
    }

    .lightbox {
        padding: 52px 8px 16px;
    }

    .lightbox__nav {
        top: auto;
        bottom: 8px;
        margin-top: 0;
    }
}

/* ── صفحات مرتبط و فراخوان ── */
.related h2,
.page-content .faq h2 {
    margin-top: 0;
    margin-bottom: 18px;
}

.related ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.related ul li a {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
}

.related ul li a:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
}

.cta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 26px 28px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-tint);
    border-radius: var(--radius);
}

.cta-box p {
    flex: 1 1 100%;
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 2;
    color: var(--ink);
}

/* ── ستون کناری صفحات ── */
.page-sidebar {
    position: sticky;
    top: 100px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.page-sidebar h2 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 900;
    color: var(--ink);
}

.page-sidebar ul {
    padding: 0;
    margin: 0 0 22px;
}

.page-sidebar ul li {
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.page-sidebar ul li:last-child {
    border-bottom: 0;
}

.page-sidebar ul li a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    color: var(--ink-2);
}

.page-sidebar ul li a::after {
    content: '‹';
    color: #BDB5C6;
}

.page-sidebar ul li a:hover {
    color: var(--brand);
}

.page-sidebar .contact-cta {
    padding: 22px;
    height: auto;
}

.page-sidebar .contact-cta p {
    font-size: 15px;
}

.page-sidebar .terms-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
}

.page-sidebar .terms-list span {
    color: var(--ink-3);
    font-size: 13px;
}

/* ── صفحه ۴۰۴ ── */
.error-page {
    padding: 80px 0;
    text-align: center;
}

.error-page .code {
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    color: var(--brand);
}

.error-page h1 {
    margin: 18px 0 12px;
    font-size: 26px;
    font-weight: 900;
}

.error-page p {
    max-width: 520px;
    margin: 0 auto 26px;
    font-size: 15px;
    line-height: 2.1;
    color: var(--ink-2);
}

.error-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 30px 0 0;
}

.error-links li a {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
}

.error-links li a:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
}

/* ── حالت خالی (وقتی هنوز محتوایی ثبت نشده) ── */
.empty-state {
    padding: 50px 20px;
    border: 1px dashed #D5CEDC;
    border-radius: var(--radius);
    background: var(--ground);
    text-align: center;
    font-size: 15px;
    line-height: 2;
    color: var(--ink-3);
}

.empty-state a {
    color: var(--brand);
}

/* ── درباره ما و تماس با ما ── */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.info-table th {
    width: 150px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    background: var(--ground);
    text-align: right;
    font-weight: bold;
}

.info-table td {
    padding: 12px 13px;
    border: 1px solid var(--line);
    line-height: 2;
}

.map-embed iframe {
    border-radius: var(--radius);
}

/* ── زیرمنوی خدمات در نوار بالا ── */
.menu li.has-sub {
    position: relative;
}

.menu li.has-sub > a::after {
    content: '⌄';
    margin-right: 5px;
    font-size: 13px;
    position: relative;
    top: -2px;
}

.menu li.has-sub .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 60;
    min-width: 230px;
    padding: 8px;
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.menu li.has-sub:hover .sub-menu,
.menu li.has-sub:focus-within .sub-menu {
    display: block;
}

.menu li.has-sub .sub-menu li {
    display: block;
    margin: 0;
    padding: 0;
}

.menu li.has-sub .sub-menu li a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink);
    white-space: nowrap;
}

.menu li.has-sub .sub-menu li a:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.menu li.has-sub .sub-menu li.sub-child a {
    padding-right: 28px;
    font-size: 13px;
    color: var(--ink-3);
}

/* ── متن معرفی صفحات فهرست ── */
.hub-intro {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    font-size: 15px;
    line-height: 2.15;
    color: var(--ink-2);
}

/* ── لینک‌ها ──
   در متن مقاله (خروجی اسکریپت انتشار): جعبه با strong و ul
   در صفحات فهرست (partials/service-links): ردیف برچسب‌ها */
.context .inline-links {
    margin: 26px 0;
    padding: 16px 18px;
    background: var(--ground);
    border-right: 3px solid var(--brand);
    border-radius: var(--radius-sm);
}

.context .inline-links strong {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--ink-2);
}

.context .inline-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
}

.context .inline-links ul li {
    margin: 0;
    padding-right: 14px;
}

.context .inline-links ul li::before {
    top: 12px;
}

.context .inline-links a {
    font-size: 14px;
}

.hub-body .inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.hub-body .inline-links a {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    line-height: 1.9;
    color: var(--ink-2);
    text-decoration: none;
}

.hub-body .inline-links a:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
}
