/* ============================================================
   استایل‌های مشترک صفحات محتوایی (درباره، خدمات، پروژه‌ها، قوانین، ...)
   رنگ‌ها از متغیرهای سراسری چیدمان خوانده می‌شوند تا با تنظیمات سایت هم‌خوان بمانند.
   ============================================================ */

:root {
    --brand: var(--primary-color, #6c5ce7);
    --brand-2: var(--secondary-color, #a29bfe);
    --ink: var(--text-color, #2d3436);
    --muted: #6b7280;
    --surface: #ffffff;
    --soft: rgba(108, 92, 231, 0.06);
    --line: rgba(17, 24, 39, 0.08);
}

.page-section {
    padding: 3.5rem 0;
}

.page-section--soft {
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.04), rgba(162, 155, 254, 0.02));
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.section-head .eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--brand);
    background: var(--soft);
    border-radius: 999px;
    padding: .35rem .9rem;
    margin-bottom: .9rem;
}

.section-head h2 {
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: .75rem;
}

.section-head p {
    color: var(--muted);
    line-height: 2;
    margin: 0;
}

/* ---------- کارت ویژگی ---------- */
.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: auto -30% -60% auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, .12), transparent 70%);
    transition: transform .4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(17, 24, 39, .08);
    border-color: rgba(108, 92, 231, .3);
}

.feature-card:hover::after {
    transform: scale(1.4);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 24px rgba(108, 92, 231, .25);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .6rem;
}

.feature-card p {
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.95;
    margin: 0;
}

/* ---------- پنل اطلاعات ---------- */
.info-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .05);
}

.info-panel h2,
.info-panel h3 {
    font-weight: 800;
}

.info-panel p {
    line-height: 2.1;
    color: #374151;
}

/* ---------- آمار ---------- */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1.2;
}

.stat-card .stat-label {
    color: var(--muted);
    font-size: .88rem;
    margin-top: .35rem;
}

/* ---------- فهرست تیک‌دار ---------- */
.list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-check li {
    position: relative;
    padding-right: 2rem;
    margin-bottom: .85rem;
    line-height: 1.9;
    color: #374151;
}

.list-check li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    position: absolute;
    right: 0;
    top: .15rem;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 50%;
}

/* ---------- تایم‌لاین ---------- */
.timeline {
    position: relative;
    padding-right: 2rem;
    margin: 0;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    top: .5rem;
    bottom: .5rem;
    right: .55rem;
    width: 2px;
    background: linear-gradient(180deg, var(--brand), rgba(162, 155, 254, .2));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding: 0 0 2rem 0;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    right: -2rem;
    top: .2rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--brand);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, .12);
}

.timeline-year {
    display: inline-block;
    font-weight: 800;
    color: var(--brand);
    font-size: .95rem;
    margin-bottom: .35rem;
}

.timeline-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.timeline-item p {
    color: var(--muted);
    line-height: 1.95;
    margin: 0;
}

/* ---------- نوار فراخوان ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    border-radius: 26px;
    padding: 2.75rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(108, 92, 231, .25);
}

.cta-band::before,
.cta-band::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.cta-band::before {
    width: 220px;
    height: 220px;
    top: -80px;
    left: -60px;
}

.cta-band::after {
    width: 160px;
    height: 160px;
    bottom: -70px;
    right: 12%;
}

.cta-band h2 {
    color: #fff !important;
    font-weight: 800;
    margin-bottom: .6rem;
}

.cta-band p {
    color: rgba(255, 255, 255, .9);
    margin-bottom: 1.4rem;
    line-height: 2;
}

.cta-band .btn-light {
    border-radius: 999px;
    padding: .65rem 1.6rem;
    font-weight: 700;
}

/* متن دکمه روشن روی نوار رنگی باید تیره باشد؛
   قاعده سراسری a{color:...!important} در لیوت نباید آن را سفید روی سفید کند. */
.cta-band .btn-light,
.cta-band a.btn-light,
.cta-band a.btn-light:focus,
.cta-band a.btn-light:visited {
    color: #1f2437 !important;
    background: #fff !important;
    border-color: #fff !important;
}

.cta-band .btn-light:hover,
.cta-band a.btn-light:hover {
    color: #4a3fc4 !important;
    background: #f1f2ff !important;
    border-color: #f1f2ff !important;
}

/* ---------- نقشه سایت ---------- */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
}

.sitemap-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: all .28s ease;
}

.sitemap-card i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--soft);
    color: var(--brand);
    font-size: 1rem;
    flex: 0 0 auto;
}

.sitemap-card span {
    font-weight: 600;
    font-size: .95rem;
}

.sitemap-card small {
    display: block;
    color: var(--muted);
    font-weight: 400;
    font-size: .78rem;
    margin-top: .15rem;
}

.sitemap-card:hover {
    border-color: rgba(108, 92, 231, .35);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(17, 24, 39, .07);
}

/* ---------- محتوای حقوقی ---------- */
.legal-body h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: .8rem;
}

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

.legal-body p,
.legal-body li {
    line-height: 2.1;
    color: #374151;
}

.legal-body ul {
    padding-right: 1.2rem;
}

/* ---------- دسترسی غیرمجاز ---------- */
.access-card {
    max-width: 560px;
    margin: 4rem auto;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 3rem 2rem;
    box-shadow: 0 18px 48px rgba(17, 24, 39, .07);
}

.access-card .access-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    color: #dc3545;
    background: rgba(220, 53, 69, .1);
}

@media (max-width: 768px) {
    .page-section {
        padding: 2.5rem 0;
    }

    .info-panel {
        padding: 1.4rem;
    }

    .cta-band {
        padding: 2rem 1.25rem;
        text-align: center;
    }
}
