﻿/* ===== USER DASHBOARD ===== */

.dashboard-page {
    padding: 30px 0 60px;
    background: #f7f7f7;
    min-height: 80vh;
}

/* Sidebar nav */
.dashboard-sidebar {
    position: sticky;
    top: 20px;
}

.user-profile-card {
    background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent) 100%);
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 16px;
    color: #fff;
}

.user-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    margin: 0 auto 12px;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.user-name {
    font-size: 1.7rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.user-phone {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    direction: ltr;
    display: block;
}

.user-level-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.22);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Sidebar menu */
.dashboard-nav {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 1.45rem;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}

.dashboard-nav-item:last-child {
    border-bottom: none;
}

.dashboard-nav-item i {
    width: 22px;
    text-align: center;
    font-size: 1.6rem;
    color: #bbb;
    transition: color 0.2s;
}

.dashboard-nav-item:hover,
.dashboard-nav-item.active {
    background: var(--accent-50);
    color: var(--accent-600);
    padding-right: 26px;
}

.dashboard-nav-item:hover i,
.dashboard-nav-item.active i {
    color: var(--accent-600);
}

.dashboard-nav-item.logout-item {
    color: #e74c3c;
}

.dashboard-nav-item.logout-item i {
    color: #e74c3c;
}

.dashboard-nav-item.logout-item:hover {
    background: #fff5f5;
    color: #c0392b;
}

/* Main content area */
.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Stat cards */
.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    .dashboard-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* یک ستون یعنی چهار کارتِ تقریباً خالی و چهار صفحه اسکرول؛ محتوای هر کارت
   (یک آیکن و دو خط) روی ۳۶۰ پیکسل هم دو ستونه جا می‌شود. */
@media (max-width: 576px) {
    .dashboard-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 14px 12px;
        gap: 10px;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 1.7rem;
        border-radius: 12px;
    }

    .stat-info .stat-value {
        font-size: 1.8rem;
    }
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.stat-icon.red {
    background: var(--accent-50);
    color: var(--accent-600);
}

.stat-icon.green {
    background: #f0fdf4;
    color: #27ae60;
}

.stat-icon.blue {
    background: #eff6ff;
    color: #3b82f6;
}

.stat-icon.orange {
    background: #fff7ed;
    color: #f97316;
}

.stat-info .stat-value {
    font-size: 2.2rem;
    color: #222;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-info .stat-label {
    font-size: 1.3rem;
    color: #aaa;
}

/* Content panels */
.dashboard-panel {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.dashboard-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.dashboard-panel-title {
    font-size: 1.7rem;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-panel-title i {
    color: var(--accent-600);
}

.dashboard-panel-link {
    font-size: 1.3rem;
    color: var(--accent-600);
    text-decoration: none;
}

.dashboard-panel-link:hover {
    text-decoration: underline;
}

.dashboard-panel-body {
    padding: 22px 24px;
}

/* ── جدول‌های پنل روی موبایل ──────────────────────────────────────────
   «سفارش‌ها»، «کیف پول»، «تیکت‌ها» و «جزئیات سفارش» همه .orders-table اند و
   ۵ تا ۷ ستون دارند. روی ۳۶۰ پیکسل فقط سه ستونِ اول دیده می‌شد و بقیه —
   مبلغ، وضعیت، دکمهٔ «جزئیات» — بیرونِ کادر می‌ماندند، بدونِ هیچ نشانه‌ای
   که باید افقی اسکرول کرد. هر ردیف یک کارت می‌شود و نامِ هر مقدار از
   data-label می‌آید، چون thead پنهان است. */
@media (max-width: 768px) {
    .table-responsive:has(.orders-table) {
        overflow-x: visible;
    }

    .orders-table thead {
        display: none;
    }

    .orders-table,
    .orders-table tbody,
    .orders-table tr,
    .orders-table td {
        display: block;
        width: 100%;
    }

    .orders-table tbody tr {
        border: 1px solid #ececec;
        border-radius: 14px;
        padding: 12px 14px;
        margin-bottom: 12px;
    }

    .orders-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .orders-table tbody tr:hover {
        background: transparent;
    }

    .orders-table tbody td {
        border: none;
        padding: 5px 0;
        text-align: start;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .orders-table tbody td[data-label]::before {
        content: attr(data-label);
        color: #999;
        font-size: 1.25rem;
        white-space: nowrap;
    }

    /* ستونِ آخرِ بی‌عنوان (دکمه‌ها) تیتر ندارد و باید تمامِ عرض را بگیرد. */
    .orders-table tbody td:not([data-label]) {
        justify-content: flex-start;
        padding-top: 10px;
    }
}

/* Orders table */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
}

.orders-table th {
    padding: 12px 16px;
    background: #fafafa;
    color: #777;
    text-align: right;
    font-weight: normal;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.orders-table td {
    padding: 14px 16px;
    color: #555;
    border-bottom: 1px solid #f7f7f7;
    vertical-align: middle;
}

.orders-table tbody tr:hover {
    background: #fdfafa;
}

.order-status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 1.2rem;
    white-space: nowrap;
}

.status-pending {
    background: #fff7ed;
    color: #f97316;
}

.status-processing {
    background: #eff6ff;
    color: #3b82f6;
}

.status-shipped {
    background: #f0fdf4;
    color: #27ae60;
}

.status-delivered {
    background: #e8f5e9;
    color: #1b8c3a;
}

.status-cancelled {
    background: #fff5f5;
    color: #e74c3c;
}

.order-detail-btn {
    padding: 6px 16px;
    background: var(--accent-50);
    color: var(--accent-600);
    border: 1.5px solid var(--accent-200);
    border-radius: 8px;
    font-family: "IRANYekanMedium";
    font-size: 1.3rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.order-detail-btn:hover {
    background: var(--accent-600);
    color: #fff;
    border-color: var(--accent-600);
}

/* Favorites grid */
.fav-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 768px) {
    .fav-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Addresses list */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 768px) {
    .addresses-grid {
        grid-template-columns: 1fr;
    }
}

.address-item-card {
    border: 1.5px solid #e0e0e0;
    border-radius: 14px;
    padding: 18px;
    position: relative;
    transition: all 0.2s;
}

.address-item-card.default-address {
    border-color: var(--accent-600);
}

.address-default-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--accent-600);
    color: #fff;
    font-size: 1.2rem;
    padding: 3px 12px;
    border-radius: 20px;
}

.address-item-title {
    font-size: 1.4rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.address-item-text {
    font-size: 1.3rem;
    color: #777;
    line-height: 1.8;
}

.address-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.address-edit-btn,
.address-delete-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-family: "IRANYekanMedium";
    font-size: 1.25rem;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.2s;
}

.address-edit-btn {
    background: none;
    border-color: var(--accent-600);
    color: var(--accent-600);
}

.address-edit-btn:hover {
    background: var(--accent-600);
    color: #fff;
}

.address-delete-btn {
    background: none;
    border-color: #e74c3c;
    color: #e74c3c;
}

.address-delete-btn:hover {
    background: #e74c3c;
    color: #fff;
}

/* Profile form */
.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

@media (max-width: 768px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.profile-form-group label {
    font-size: 1.35rem;
    color: #555;
}

.profile-form-group input,
.profile-form-group select,
.profile-form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: "IRANYekanMedium";
    font-size: 1.4rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s;
    direction: rtl;
    width: 100%;
}

.profile-form-group textarea {
    resize: vertical;
    min-height: 64px;
    line-height: 1.9;
}

.profile-form-group input:focus,
.profile-form-group select:focus,
.profile-form-group textarea:focus {
    border-color: var(--accent-600);
    background: #fff;
    outline: none;
}

.profile-save-btn {
    padding: 13px 36px;
    background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: "IRANYekanMedium";
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.profile-save-btn:hover {
    box-shadow: 0 8px 25px rgba(83, 125, 118, 0.38);
    transform: translateY(-1px);
}

/* === STATIC PAGES (About, Contact, FAQ) === */

/* =========================================================
   KSPORT | ABOUT PAGE — PREMIUM RESPONSIVE DESIGN
   HTML unchanged | RTL | Desktop / Tablet / Mobile
   Main color: #537d76
========================================================= */

/* ---------- 1. Design tokens & page foundation ---------- */

/* =====================================
   KSPORT — SLOGAN CARDS
===================================== */

.static-page .site-page-body>ul:first-of-type {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    direction: rtl;
}

.static-page .site-page-body>ul:first-of-type>li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 108px;
    padding: 20px 14px;

    background: #f4f8f6;
    border: 1px solid #e2ece7;
    border-radius: 15px;
    overflow: hidden;

    text-align: center;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* نوار ظریف پایین کارت */

.static-page .site-page-body>ul:first-of-type>li::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 20%;
    width: 60%;
    height: 3px;
    border-radius: 5px 5px 0 0;
    background: #537d76;
    transform: scaleX(0.35);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.static-page .site-page-body>ul:first-of-type>li:hover {
    background: #ffffff;
    border-color: #b9d0c8;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(50, 92, 85, 0.09);
}

.static-page .site-page-body>ul:first-of-type>li:hover::after {
    transform: scaleX(1);
}

.static-page .site-page-body>ul:first-of-type>li>p {
    margin: 0;
    color: #325c55;
    font-size: 14px;
    font-weight: 650;
    line-height: 2;
}


/* تبلت */

@media (max-width: 1024px) {
    .static-page .site-page-body>ul:first-of-type {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .static-page .site-page-body>ul:first-of-type>li {
        min-height: 95px;
        padding: 16px 12px;
    }
}


/* موبایل */

@media (max-width: 600px) {
    .static-page .site-page-body>ul:first-of-type {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 22px;
    }

    .static-page .site-page-body>ul:first-of-type>li {
        min-height: 88px;
        padding: 14px 10px;
        border-radius: 13px;
    }

    .static-page .site-page-body>ul:first-of-type>li:last-child {
        grid-column: 1 / -1;
        min-height: 68px;
    }

    .static-page .site-page-body>ul:first-of-type>li>p {
        font-size: 13px;
        line-height: 1.9;
    }
}

.static-page {
    --ks-primary: #537d76;
    --ks-primary-dark: #325c55;
    --ks-primary-deep: #244740;
    --ks-primary-soft: #eaf2ef;
    --ks-primary-pale: #f5f8f6;
    --ks-text: #25332f;
    --ks-muted: #71807b;
    --ks-border: #e5ebe7;
    --ks-white: #ffffff;
    --ks-radius: 22px;
    --ks-shadow: 0 12px 36px rgba(37, 65, 56, 0.07);
    --ks-shadow-hover: 0 20px 45px rgba(37, 65, 56, 0.13);

    color: var(--ks-text);
    direction: rtl;
    overflow-wrap: anywhere;
}

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

.static-page .container {
    width: 100%;
}

.static-page .site-page-body {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding: 24px 0 70px;
    font-family: inherit;
    font-size: 16px;
    line-height: 2;
    color: var(--ks-text);
    background: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 15px;
    border-radius: 30px;
}

.static-page .site-page-body img {
    max-width: 100%;
    height: auto;
}

.static-page .site-page-body p {
    margin-top: 0;
}

.static-page .site-page-body a {
    color: var(--ks-primary-dark);
    text-decoration: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.static-page .site-page-body a:focus-visible {
    outline: 3px solid rgba(83, 125, 118, 0.45);
    outline-offset: 4px;
}

.static-page .site-page-body>p:has(> a[href="https://ksportshop.ir/shop"]) {
    text-align: center;
    margin: 25px 0 30px;
}

.static-page .site-page-body>p>a[href="https://ksportshop.ir/shop"] {
    display: inline-block;
    padding: 12px 30px;
    background-color: #537d76;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.static-page .site-page-body>p>a[href="https://ksportshop.ir/shop"]:hover {
    background-color: #325c55;
    color: #fff;
}

@media (max-width: 600px) {
    .static-page .site-page-body>p>a[href="https://ksportshop.ir/shop"] {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* ---------- 2. Hero image ---------- */

/* Your first image is wrapped inside a paragraph. */

.static-page .site-page-body>p:first-child {
    margin: 0 0 30px !important;
    overflow: hidden;
    border-radius: 28px;
    background: #739792;
    line-height: 0;
    box-shadow: var(--ks-shadow);
    padding: 20px;
    width: 50%;
}

.static-page .site-page-body>p:first-child img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    object-position: center;
}


/* ---------- 3. Slogan list ---------- */

.static-page .site-page-body>ul:first-of-type {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px;
    margin: 0 0 28px !important;
    padding: 0;
    list-style: none;
}

.static-page .site-page-body>ul:first-of-type>li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 116px;
    padding: 20px 13px;
    border: 1px solid var(--ks-border);
    border-radius: 18px;
    background: var(--ks-white);
    text-align: center;
    box-shadow: 0 5px 18px rgba(37, 65, 56, 0.035);
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        background-color 0.28s ease,
        box-shadow 0.28s ease;
}

.static-page .site-page-body>ul:first-of-type>li:hover {
    transform: translateY(-5px);
    border-color: rgba(83, 125, 118, 0.4);
    background: var(--ks-primary-pale);
    box-shadow: var(--ks-shadow);
}

.static-page .site-page-body>ul:first-of-type>li>p {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.9;
    color: var(--ks-primary-deep);
}


/* ---------- 4. Main shop button ---------- */

/* The shop link is inside the third direct paragraph. */

.static-page .site-page-body>p:nth-of-type(3) {
    margin: 0 0 24px;
    text-align: center;
}

.static-page .site-page-body>p:nth-of-type(3)>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    min-height: 54px;
    padding: 13px 30px;
    border: 1px solid var(--ks-primary);
    border-radius: 14px;
    background: var(--ks-primary);
    color: var(--ks-white);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.7;
    box-shadow: 0 8px 20px rgba(83, 125, 118, 0.2);
}

.static-page .site-page-body>p:nth-of-type(3)>a:hover {
    transform: translateY(-3px);
    background: var(--ks-primary-dark);
    border-color: var(--ks-primary-dark);
    box-shadow: 0 12px 26px rgba(50, 92, 85, 0.25);
}


/* ---------- 5. Intro headings ---------- */

.static-page .site-page-body>h2,
.static-page .site-page-body>.nh2 {
    color: var(--ks-primary-deep);
    font-weight: 800;
    line-height: 1.7;
}

.static-page .site-page-body>h2:nth-of-type(1),
.static-page .site-page-body>.nh2:nth-of-type(1) {
    margin: 50px 0 5px;
    color: var(--ks-primary);
    direction: ltr;
    text-align: center;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: 0.5px;
}

.static-page .site-page-body>h2:nth-of-type(2),
.static-page .site-page-body>.nh2:nth-of-type(2) {
    position: relative;
    margin: 0 0 28px !important;
    padding-bottom: 20px;
    text-align: center;
    font-size: clamp(23px, 2.5vw, 31px);
}

.static-page .site-page-body>h2:nth-of-type(2)::after,
.static-page .site-page-body>.nh2:nth-of-type(2)::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 100%;
    height: 4px;
    border-radius: 10px;
    background: #b4d3cd9e;
    transform: translateX(50%);
}


/* ---------- 6. Intro paragraphs ---------- */

.static-page .site-page-body>p:nth-of-type(5),
.static-page .site-page-body>p:nth-of-type(6),
.static-page .site-page-body>p:nth-of-type(7) {
    max-width: 950px;
    margin: 0 auto 17px;
    padding: 0;
    color: #53625c;
    font-size: 16px;
    line-height: 2.25;
    text-align: justify;
}

.static-page .site-page-body>p:nth-of-type(5) strong,
.static-page .site-page-body>p:nth-of-type(6) strong,
.static-page .site-page-body>p:nth-of-type(7) strong {
    color: var(--ks-primary-dark);
}


/* ---------- 7. Gallery headings ---------- */

.static-page .site-page-body>h2:nth-of-type(3),
.static-page .site-page-body>h2:nth-of-type(5),
.static-page .site-page-body>.nh2:nth-of-type(3),
.static-page .site-page-body>.nh2:nth-of-type(5) {
    margin: 75px 0 0 !important;
    color: var(--ks-primary);
    direction: ltr;
    text-align: center;
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1.5;
}

.static-page .site-page-body>h2:nth-of-type(4),
.static-page .site-page-body>h2:nth-of-type(6),
.static-page .site-page-body>.nh2:nth-of-type(4),
.static-page .site-page-body>.nh2:nth-of-type(6) {
    margin: 0 0 28px !important;
    padding-bottom: 18px;
    position: relative;
    text-align: center;
    font-size: clamp(22px, 2.5vw, 29px);
}

.static-page .site-page-body>h2:nth-of-type(4)::after,
.static-page .site-page-body>h2:nth-of-type(6)::after,
.static-page .site-page-body>.nh2:nth-of-type(4)::after,
.static-page .site-page-body>.nh2:nth-of-type(6)::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 100%;
    height: 4px;
    border-radius: 10px;
    background: #d2e3e0;
    transform: translateX(50%);
}


/* ---------- 8. Gallery images
   The nine images remain inside their existing paragraph.
   No HTML wrappers are added.
--------------------------------------------------------- */

.static-page .site-page-body>p:has(> img[alt^="__کی اسپورت"]) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 300px;
    gap: 16px;
    margin: 0;
    direction: rtl;
}

.static-page .site-page-body>p:has(> img[alt^="__کی اسپورت"])>img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(83, 125, 118, 0.12);
    background: var(--ks-primary-pale);
    box-shadow: 0 7px 22px rgba(37, 65, 56, 0.08);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        filter 0.35s ease;
}

/* A subtle editorial layout rather than nine identical tiles. */

.static-page .site-page-body>p:has(> img[alt^="__کی اسپورت"])>img:first-child {
    grid-column: span 2;
}

.static-page .site-page-body>p:has(> img[alt^="__کی اسپورت"])>img:nth-child(4),
.static-page .site-page-body>p:has(> img[alt^="__کی اسپورت"])>img:nth-child(8) {
    grid-row: span 1;
}



/* ---------- 9. Team list: reset default list styling ---------- */

/* The second ul is the team list. */

.static-page .site-page-body>ul:nth-of-type(2) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: stretch;
}

.static-page .site-page-body>ul:nth-of-type(2)>li {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 25px 17px 22px;
    overflow: hidden;
    border: 1px solid var(--ks-border);
    border-radius: 22px;
    background: var(--ks-white);
    text-align: center;
    box-shadow: 0 7px 24px rgba(37, 65, 56, 0.045);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.static-page .site-page-body>ul:nth-of-type(2)>li:hover {
    transform: translateY(-6px);
    border-color: rgba(83, 125, 118, 0.45);
    box-shadow: var(--ks-shadow-hover);
}

.static-page .site-page-body>ul:nth-of-type(2)>li>img {
    display: block;
    width: 132px;
    height: 132px;
    max-width: 100%;
    flex: 0 0 auto;
    margin: 0 auto 16px;
    object-fit: cover;
    object-position: center;
    border: 4px solid var(--ks-primary-soft);
    border-radius: 50%;
    background: var(--ks-primary-pale);
    box-shadow: 0 4px 15px rgba(37, 65, 56, 0.09);
    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}

.static-page .site-page-body>ul:nth-of-type(2)>li:hover>img {
    transform: scale(1.045);
    border-color: var(--ks-primary);
}

.static-page .site-page-body>ul:nth-of-type(2)>li>h4,
.static-page .site-page-body>ul:nth-of-type(2)>li>.nh4 {
    margin: 0 0 7px;
    color: var(--ks-primary-deep);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.9;
}

.static-page .site-page-body>ul:nth-of-type(2)>li>p {
    margin: 0;
    color: var(--ks-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.9;
}

/* Keep cards without a job title aligned consistently. */

.static-page .site-page-body>ul:nth-of-type(2)>li>h4+p,
.static-page .site-page-body>ul:nth-of-type(2)>li>.nh4+p {
    min-height: 0;
}


/* ---------- 10. Collaboration call-to-action ---------- */

/* Final h2 is the collaboration heading. */

.static-page .site-page-body>h2:last-of-type,
.static-page .site-page-body>.nh2:last-of-type {
    margin: 75px 0 12px;
    padding: 32px 20px 0;
    color: var(--ks-primary-deep);
    text-align: center;
    font-size: clamp(23px, 2.5vw, 30px);
}

.static-page .site-page-body>h2:last-of-type+p,
.static-page .site-page-body>.nh2:last-of-type+p {
    margin: 0 0 15px !important;
    color: var(--ks-muted);
    text-align: center;
    font-size: 15px;
    line-height: 2;
}

.static-page .site-page-body>p:last-child {
    margin: 0;
    text-align: center;
}

.static-page .site-page-body>p:last-child>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    min-height: 54px;
    padding: 13px 28px;
    border-radius: 14px;
    background: var(--ks-primary);
    color: var(--ks-white);
    font-size: 15px;
    font-weight: 750;
    box-shadow: 0 8px 22px rgba(83, 125, 118, 0.2);
}

.static-page .site-page-body>p:last-child>a:hover {
    transform: translateY(-3px);
    background: var(--ks-primary-dark);
    box-shadow: 0 13px 28px rgba(50, 92, 85, 0.24);
}


/* ---------- 11. Tablet ---------- */

@media (max-width: 1024px) {
    .static-page .site-page-body {
        padding: 20px 0 55px;
    }

    .static-page .site-page-body>ul:first-of-type {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .static-page .site-page-body>ul:first-of-type>li {
        min-height: 100px;
    }

    .static-page .site-page-body>ul:nth-of-type(2) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 17px;
    }

    .static-page .site-page-body>p:has(> img[alt^="__کی اسپورت"]) {
        grid-auto-rows: 200px;
        gap: 12px;
    }

    .static-page .site-page-body>p:nth-of-type(5),
    .static-page .site-page-body>p:nth-of-type(6),
    .static-page .site-page-body>p:nth-of-type(7) {
        padding-inline: 10px;
    }
}


/* ---------- 12. Mobile ---------- */

@media (max-width: 600px) {
    .static-page .site-page-body {
        padding: 12px 0 40px;
        font-size: 15px;
        line-height: 1.95;
    }

    .static-page .site-page-body>p:first-child {
        margin-bottom: 18px !important;
        border-radius: 17px;
        width: 100%;
    }

    .static-page .site-page-body>p:first-child img {
        max-height: none;
        object-fit: contain;
    }

    .static-page .site-page-body>ul:first-of-type {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 22px;
    }

    .static-page .site-page-body>ul:first-of-type>li {
        min-height: 92px;
        padding: 14px 10px;
        border-radius: 14px;
    }

    .static-page .site-page-body>ul:first-of-type>li:last-child {
        grid-column: 1 / -1;
        min-height: 70px;
    }

    .static-page .site-page-body>ul:first-of-type>li>p {
        font-size: 13px;
        line-height: 1.85;
    }

    .static-page .site-page-body>p:nth-of-type(3) {
        margin-bottom: 28px;
    }

    .static-page .site-page-body>p:nth-of-type(3)>a,
    .static-page .site-page-body>p:last-child>a {
        width: 100%;
        max-width: 330px;
        min-height: 50px;
        font-size: 14px;
    }

    .static-page .site-page-body>h2:nth-of-type(1),
.static-page .site-page-body>.nh2:nth-of-type(1) {
        margin-top: 38px;
        font-size: 25px;
    }

    .static-page .site-page-body>h2:nth-of-type(2),
.static-page .site-page-body>.nh2:nth-of-type(2) {
        margin-bottom: 20px;
        padding-inline: 5px;
        font-size: 22px;
    }

    .static-page .site-page-body>p:nth-of-type(5),
    .static-page .site-page-body>p:nth-of-type(6),
    .static-page .site-page-body>p:nth-of-type(7) {
        margin-bottom: 15px;
        padding-inline: 2px;
        font-size: 14px;
        line-height: 2.15;
    }

    .static-page .site-page-body>h2:nth-of-type(3),
    .static-page .site-page-body>h2:nth-of-type(5),
.static-page .site-page-body>.nh2:nth-of-type(3),
.static-page .site-page-body>.nh2:nth-of-type(5) {
        margin-top: 48px;
        font-size: 27px;
    }

    .static-page .site-page-body>h2:nth-of-type(4),
    .static-page .site-page-body>h2:nth-of-type(6),
.static-page .site-page-body>.nh2:nth-of-type(4),
.static-page .site-page-body>.nh2:nth-of-type(6) {
        margin-bottom: 22px;
        font-size: 21px;
    }

    .static-page .site-page-body>p:has(> img[alt^="__کی اسپورت"]) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 145px;
        gap: 9px;
    }

    .static-page .site-page-body>p:has(> img[alt^="__کی اسپورت"])>img {
        border-radius: 12px;
    }

    .static-page .site-page-body>p:has(> img[alt^="__کی اسپورت"])>img:first-child {
        grid-column: span 2;
    }

    .static-page .site-page-body>ul:nth-of-type(2) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .static-page .site-page-body>ul:nth-of-type(2)>li {
        padding: 17px 9px 16px;
        border-radius: 17px;
    }

    .static-page .site-page-body>ul:nth-of-type(2)>li>img {
        width: 100px;
        height: 100px;
        margin-bottom: 12px;
        border-width: 3px;
    }

    .static-page .site-page-body>ul:nth-of-type(2)>li>h4,
.static-page .site-page-body>ul:nth-of-type(2)>li>.nh4 {
        margin-bottom: 5px;
        font-size: 14px;
        line-height: 1.8;
    }

    .static-page .site-page-body>ul:nth-of-type(2)>li>p {
        font-size: 12px;
        line-height: 1.8;
    }

    .static-page .site-page-body>h2:last-of-type,
.static-page .site-page-body>.nh2:last-of-type {
        margin-top: 48px;
        padding: 22px 5px 0;
        font-size: 23px;
    }

    .static-page .site-page-body>h2:last-of-type+p,
.static-page .site-page-body>.nh2:last-of-type+p {
        padding-inline: 8px;
        font-size: 14px;
    }
}


/* ---------- 13. Small phones ---------- */

@media (max-width: 360px) {
    .static-page .site-page-body>ul:first-of-type>li {
        padding-inline: 8px;
    }

    .static-page .site-page-body>p:has(> img[alt^="__کی اسپورت"]) {
        grid-auto-rows: 120px;
        gap: 7px;
    }

    .static-page .site-page-body>ul:nth-of-type(2) {
        gap: 9px;
    }

    .static-page .site-page-body>ul:nth-of-type(2)>li {
        padding-inline: 7px;
    }

    .static-page .site-page-body>ul:nth-of-type(2)>li>img {
        width: 82px;
        height: 82px;
    }

    .static-page .site-page-body>ul:nth-of-type(2)>li>h4,
.static-page .site-page-body>ul:nth-of-type(2)>li>.nh4 {
        font-size: 13px;
    }
}


/* ---------- 14. Reduced motion accessibility ---------- */

@media (prefers-reduced-motion: reduce) {

    .static-page *,
    .static-page *::before,
    .static-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Page hero */
.page-hero {
    background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent) 100%);
    padding: 50px 0;
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.page-hero-title {
    font-size: 3rem;
    margin-bottom: 12px;
}

.page-hero-desc {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.85);
}

/* About page */
.about-intro-section {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 28px;
}

.about-intro-img {
    border-radius: 16px;
    overflow: hidden;
}

.about-intro-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.about-intro-text h2,
.about-intro-text .nh2 {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 16px;
}

.about-intro-text p {
    font-size: 1.5rem;
    color: #666;
    line-height: 2.2;
}

.about-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .about-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.about-stat-num {
    font-size: 3.5rem;
    color: var(--accent-600);
    font-weight: bold;
    line-height: 1;
    margin-bottom: 8px;
}

.about-stat-label {
    font-size: 1.4rem;
    color: #888;
}

.team-section {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 28px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.team-member-card {
    text-align: center;
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 14px;
    overflow: hidden;
    border: 3px solid #f0f0f0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent-600);
}

.team-name {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 4px;
}

.team-role {
    font-size: 1.3rem;
    color: var(--accent-600);
}

/* Contact page */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
}

.contact-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--accent-600);
    margin: 0 auto 16px;
}

.contact-info-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 8px;
}

.contact-info-value {
    font-size: 1.4rem;
    color: #777;
    direction: ltr;
}

.contact-form-section {
    background: #fff;
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 28px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

@media (max-width: 768px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.contact-form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form-group label {
    font-size: 1.35rem;
    color: #555;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: "IRANYekanMedium";
    font-size: 1.4rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s;
    direction: rtl;
    resize: vertical;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
    border-color: var(--accent-600);
    background: #fff;
    outline: none;
}

.contact-submit-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: "IRANYekanMedium";
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-submit-btn:hover {
    box-shadow: 0 8px 25px rgba(83, 125, 118, 0.38);
    transform: translateY(-1px);
}

/* FAQ page */
.faq-section {
    background: #fff;
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.faq-search-bar {
    position: relative;
    max-width: 500px;
    margin: 0 auto 36px;
}

.faq-search-bar input {
    width: 100%;

    padding: 14px 20px 14px 55px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    font-family: "IRANYekanMedium";
    font-size: 1.5rem;
    direction: rtl;
}

.faq-search-bar input:focus {
    border-color: var(--accent-600);
    outline: none;
}

.faq-search-bar i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--accent-600);
}

.faq-category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    justify-content: center;
}

.faq-tab {
    padding: 9px 22px;
    border: 1.5px solid #e0e0e0;
    border-radius: 22px;
    font-family: "IRANYekanMedium";
    font-size: 1.35rem;
    color: #666;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-tab.active,
.faq-tab:hover {
    background: var(--accent-600);
    border-color: var(--accent-600);
    color: #fff;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1.5px solid #f0f0f0;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: #e0e0e0;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background: none;
    border: none;
    font-family: "IRANYekanMedium";
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    text-align: right;
    transition: color 0.2s;
}

.faq-question.open {
    color: var(--accent-600);
}

.faq-question i {
    flex-shrink: 0;
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.faq-question.open i {
    transform: rotate(180deg);
    color: var(--accent-600);
}

.faq-answer {
    display: none;
    padding: 0 20px 18px;
    font-size: 1.45rem;
    color: #666;
    line-height: 2;
    border-top: 1px solid #f5f5f5;
}

.faq-answer.open {
    display: block;
}

.profile-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-600);
    margin: 38px 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section-title:first-of-type {
    margin-top: 6px;
}

.profile-section-title i {
    font-size: 1.05rem;
}

.profile-shaba-wrap {
    display: flex;
    align-items: stretch;
    direction: ltr;
}

.profile-shaba-wrap .profile-shaba-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    color: #555;
}

.profile-shaba-wrap .form-control {
    border-radius: 8px 0 0 8px;
    flex: 1 1 auto;
}

.wallet-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .wallet-top {
        grid-template-columns: 1fr;
    }
}

.wallet-balance-card {
    background: linear-gradient(135deg, var(--accent-600), var(--accent-800));
    color: #fff;
    border-radius: 16px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(83, 125, 118, .25);
}

.wallet-balance-label {
    font-size: 1.4rem;
    opacity: .9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-balance-value {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
}

.wallet-balance-unit {
    font-size: 1.3rem;
    font-weight: 500;
    opacity: .85;
}

.wallet-balance-stats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 1.2rem;
    opacity: .92;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    padding-top: 12px;
}

.wallet-charge-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 22px;
}

.wallet-charge-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #333;
}

.wallet-quick-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.wallet-quick-btn {
    border: 1.5px solid #e0e0e0;
    background: #fafafa;
    border-radius: 10px;
    padding: 10px;
    font-family: "IRANYekanMedium";
    font-size: 1.3rem;
    cursor: pointer;
    transition: all .15s;
}

.wallet-quick-btn span {
    font-size: .8em;
    color: #999;
}

.wallet-quick-btn:hover {
    border-color: var(--accent-600);
    color: var(--accent-600);
}

.wallet-quick-btn.active {
    border-color: var(--accent-600);
    background: #fdeef0;
    color: var(--accent-600);
}

.wallet-amount-row {
    margin-bottom: 14px;
}

.wallet-amount-row input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: "IRANYekanMedium";
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 1px;
}

.wallet-amount-row input:focus {
    border-color: var(--accent-600);
    outline: none;
}

.wallet-charge-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-600);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: "IRANYekanMedium";
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s;
}

.wallet-charge-btn:hover {
    background: var(--accent-700);
}

.wallet-charge-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.wallet-charge-hint {
    font-size: 1.1rem;
    color: #999;
    text-align: center;
    margin-top: 10px;
}

.wallet-gift-card {
    grid-column: 1 / -1;
}

.wallet-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.wallet-type.is-deposit {
    color: #2e9e5b;
}

.wallet-type.is-withdraw {
    color: var(--accent-600);
}

.wallet-row-pending {
    background: #fffdf3;
}

.wallet-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 1.1rem;
    white-space: nowrap;
}

.wallet-badge-success {
    background: #e7f6ee;
    color: #2e9e5b;
}

.wallet-badge-pending {
    background: #fff5e0;
    color: #d08700;
}

.wallet-badge-failed {
    background: #fdecee;
    color: #d63b47;
}

.order-pay-btn {
    padding: 6px 16px;
    background: var(--accent-600);
    color: #fff;
    border: 1.5px solid var(--accent-600);
    border-radius: 8px;
    font-family: "IRANYekanMedium";
    font-size: 1.3rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.order-pay-btn:hover {
    filter: brightness(1.1);
}

.order-pay-btn:disabled {
    opacity: .6;
    cursor: default;
}

.order-unavailable {
    display: inline-block;
    padding: .5rem 1rem;
    border-radius: 8px;
    background: #fbeaea;
    color: var(--accent-600);
    font-size: 1.2rem;
    white-space: nowrap;
}

/* ══════════ تماس با ما — نقشه، شبکه‌های اجتماعی، پیامِ فرم ══════════
   کلاس شد و از style درجا در آمد: همان قاعدهٔ «یک تغییر برای ۶۰ سایت».
   مقدارها از تنظیمات می‌آیند، پس هر بلوک می‌تواند غایب باشد. */
.contact-form-msg {
    margin: 0 0 18px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #eef7ee;
    color: #2e6b32;
    font-size: 1.35rem;
}

.contact-map-box {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, .06);
}

/* داخلِ این کادر، حاشیهٔ بالا/پایینِ نقشهٔ صفحه‌های ثابت اضافی است. */
.contact-map-box .site-page-map {
    margin: 0;
}

.contact-social-box {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, .06);
}

.contact-social-title {
    font-size: 1.6rem;
    color: #333;
    margin: 0 0 18px;
}

.contact-social-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-social-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 1.5px solid #f0f0f0;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: border-color var(--dur, .2s) ease, background var(--dur, .2s) ease;
}

.contact-social-row:hover {
    border-color: var(--navy);
    background: #fafafa;
    color: inherit;
}

.contact-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #fff;
    font-size: 1.8rem;
}

.contact-social-name {
    font-size: 1.4rem;
    color: #333;
}

/* آکاردئونِ FAQ دو پیاده‌سازی دارد: کالا/صفحهٔ سوالات با جاوااسکریپت
   کلاسِ .open می‌گیرند، ولی مقاله از <details> بومی استفاده می‌کند و
   هیچ‌وقت .open نمی‌گیرد — یعنی display:none بالا پاسخ را برای همیشه
   پنهان می‌کرد: باکس باز می‌شد و زیرش خالی بود. */
details[open]>.faq-answer {
    display: block;
}