﻿
@font-face {
    font-family: 'VazirMatn';
    src: url('../lib/fonts/Vazirmatn/fonts/ttf/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --c-bg: #07111f;
    --c-surface: rgba(255, 255, 255, 0.045);
    --c-surface-2: rgba(255, 255, 255, 0.07);
    --c-border: rgba(255, 255, 255, 0.09);
    --c-brand: #d4a017;
    --c-brand-soft: rgba(212, 160, 23, 0.14);
    --c-white: #ffffff;
    --c-text-soft: rgba(255, 255, 255, 0.88);
    --c-text-muted: rgba(255, 255, 255, 0.72);
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.32);
    --transition: 220ms ease;
    --font-base: 'VazirMatn', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    font-family: var(--font-base) !important;
}

html, body,
h1, h2, h3, h4, h5, h6,
p, span, a, small, strong, b,
button, input, textarea, select, label,
li, ul, ol,
div, section, article, header, footer, nav,
.btn, .form-control, .accordion-button, .accordion-body,
.card, .card-title, .card-text {
    font-family: var(--font-base) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #06101d 0%, #08172a 45%, #07111f 100%);
    color: var(--c-white);
    line-height: 1.6;
}

/* اجبار المان‌های فرم و دکمه‌های بوت‌استرپ به استفاده از فونت اصلی */
button, input, textarea, select, .btn, .form-control, .accordion-button {
    font-family: var(--font-base) !important;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* 3. کامپوننت Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 100px;
    background: radial-gradient(circle at top right, rgba(212, 160, 23, 0.16), transparent 28%), radial-gradient(circle at left bottom, rgba(24, 88, 164, 0.18), transparent 32%), linear-gradient(135deg, #0a1930 0%, #102847 42%, #07111f 100%);
    text-align: center;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1.4'%3E%3Cpath d='M40 16v16M32 24h16M40 48v16M32 56h16M16 40h16M24 32v16M48 40h16M56 32v16'/%3E%3C/g%3E%3C/svg%3E");
        background-size: 80px 80px;
        z-index: 1;
    }

    .hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(3, 8, 18, 0.12), rgba(3, 8, 18, 0.48));
        z-index: 1;
    }

    .hero .container {
        position: relative;
        z-index: 2;
    }

.hero-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    margin-bottom: 14px;
}

.hero-subtitle {
    max-width: 860px;
    margin: 0 auto 22px;
    color: var(--c-text-soft);
    line-height: 2;
    font-size: 1rem;
}

.hero-btn {
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 800;
}

/* 4. بخش‌های محتوایی */
.page-section {
    padding: 42px 0 70px;
}

.guide-intro-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.035));
    border: 1px solid var(--c-border);
    border-radius: 22px;
    padding: 24px;
    color: var(--c-text-soft);
    line-height: 2.1;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.mobile-readmore-text {
    max-height: 220px;
    overflow: hidden;
    transition: max-height var(--transition);
}

.mobile-readmore-box.expanded .mobile-readmore-text {
    max-height: 2000px;
}

.mobile-readmore-btn {
    margin-top: 14px;
    border: 1px solid rgba(212, 160, 23, 0.35);
    background: rgba(212, 160, 23, 0.10);
    color: #f4c84a;
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
}

/* 5. فهرست مطالب (TOC) */
.guide-toc-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--c-border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    padding: 24px;
    backdrop-filter: blur(10px);
}

.guide-toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.guide-toc-link {
    display: block;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 160, 23, 0.14);
    color: var(--c-text-soft);
    font-weight: 800;
    text-align: center;
}

    .guide-toc-link:hover {
        color: var(--c-brand);
        border-color: rgba(212, 160, 23, 0.38);
        transform: translateY(-3px);
        background: rgba(212, 160, 23, 0.08);
    }

/* 6. کارت مقالات */
.guide-article {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
    border: 1px solid var(--c-border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.guide-article-head {
    padding: 28px 24px 18px;
    border-bottom: 1px solid var(--c-border);
    background: radial-gradient(circle at top right, rgba(212, 160, 23, 0.12), transparent 26%), linear-gradient(180deg, rgba(19, 39, 71, 0.55), rgba(10, 20, 36, 0.25));
}

.guide-article-subtitle {
    color: var(--c-text-muted);
    line-height: 2;
    margin-top: 10px;
}

.guide-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.guide-badge {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--c-brand-soft);
    color: #f4c84a;
    font-size: .85rem;
    border: 1px solid rgba(212, 160, 23, 0.18);
}

.guide-article-body {
    padding: 24px;
}

.guide-section-title {
    color: var(--c-white);
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.guide-list {
    margin: 0;
    padding-right: 18px;
    color: var(--c-text-soft);
    line-height: 2.1;
}

    .guide-list li {
        margin-bottom: 8px;
    }

.guide-note {
    background: rgba(212, 160, 23, 0.08);
    border: 1px solid rgba(212, 160, 23, 0.18);
    color: var(--c-text-soft);
    border-radius: 18px;
    padding: 16px 18px;
    line-height: 2;
    margin-top: 18px;
}

.guide-buy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--c-brand);
    color: #101010;
    font-weight: 900;
}

    .guide-buy-link:hover {
        background: #e7b52a;
        color: #111;
    }

/* 7. آکاردئون پرسش و پاسخ (FAQ) */
.faq-accordion {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.faq-acc-item {
    border-radius: 18px;
    border: 1px solid var(--c-border);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.faq-acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: transparent;
    color: var(--c-white);
    border: 0;
    font-weight: 900;
    text-align: right;
    cursor: pointer;
}

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 160, 23, 0.12);
    border: 1px solid rgba(212, 160, 23, 0.18);
    color: #f4c84a;
    transition: var(--transition);
}

.faq-acc-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-acc-content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 240ms ease;
}

    .faq-acc-content p {
        color: var(--c-text-soft);
        line-height: 2.05;
        padding: 0 0 16px;
        margin: 0;
    }

/* 8. ریسپانسیو */
@media (max-width: 767px) {
    .hero {
        padding: 70px 0 78px;
    }

    .guide-article-head,
    .guide-article-body,
    .guide-toc-card,
    .guide-intro-box {
        padding: 18px;
    }

    .mobile-readmore-text {
        max-height: 150px;
    }
}
.guide-text {
    color: var(--c-text-soft);
    line-height: 2.1;
    margin-bottom: 18px;
}