/**
 * استایل‌های اختصاصی صفحه‌ی اصلی
 */

/* ═══════════ درباره‌ی نمایشگاه ═══════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
}
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-media {
    position: relative;
}

.about-media .media-frame {
    aspect-ratio: 4/5;
}

.about-media .float-card {
    bottom: -24px;
    left: -24px;
    animation-delay: 0.5s;
}
@media (max-width: 640px) {
    .about-media .float-card {
        left: 10px;
        bottom: -18px;
    }
}

.about-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3) var(--sp-6);
    margin-top: var(--sp-6);
}
@media (max-width: 520px) {
    .about-bullets {
        grid-template-columns: 1fr;
    }
}

.about-bullets .b {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: 14px;
    color: var(--ink-500);
    padding-block: var(--sp-2);
    border-bottom: 1px solid var(--line-1);
}

.about-bullets .b svg {
    width: 15px;
    height: 15px;
    stroke: var(--gold-500);
    flex-shrink: 0;
}

/* ═══════════ اهداف — لیست ادیتوریال به‌جای گرید (رفع باگ ردیف ناقص) ═══════════ */
.goal-list {
    display: flex;
    flex-direction: column;
}

.goal-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: var(--sp-6);
    padding-block: var(--sp-6);
    border-top: 1px solid var(--line-1);
    transition: padding-inline-start var(--dur-base) var(--ease-out);
}

.goal-row:last-child {
    border-bottom: 1px solid var(--line-1);
}

.goal-row:hover {
    padding-inline-start: var(--sp-3);
    background: linear-gradient(90deg, var(--gold-glow), transparent);
}

.goal-row .idx {
    font-size: 30px;
    font-weight: 800;
    color: var(--ink-900);
    font-variant-numeric: tabular-nums;
    transition: color var(--dur-base);
}

.goal-row:hover .idx {
    color: var(--gold-500);
}

.goal-row .body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink-100);
    margin-bottom: var(--sp-2);
}

.goal-row .body p {
    font-size: 14.5px;
    color: var(--ink-500);
    max-width: 640px;
}
@media (max-width: 600px) {
    .goal-row {
        grid-template-columns: 50px 1fr;
        gap: var(--sp-4);
    }
    .goal-row .idx {
        font-size: 22px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   حوزه‌های تخصصی
   Desktop: 3 کارت بالا + 2 کارت پایین
   ═══════════════════════════════════════════════════════════════ */

.scroller-shell {
    position: relative;
}

.scroller {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--sp-5);

    padding-block: var(--sp-2) var(--sp-6);
}

.scroller .s-card {
    min-width: 0;
    padding: var(--sp-6);

    display: flex;
    flex-direction: column;
}

/* ───────── ردیف اول: 3 کارت ───────── */

.scroller .s-card:nth-child(1),
.scroller .s-card:nth-child(2),
.scroller .s-card:nth-child(3) {
    grid-column: span 2;
}

/* ───────── ردیف دوم: 2 کارت ───────── */

.scroller .s-card:nth-child(4),
.scroller .s-card:nth-child(5) {
    grid-column: span 3;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive — Tablet
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 980px) {
    .scroller {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scroller .s-card:nth-child(1),
    .scroller .s-card:nth-child(2),
    .scroller .s-card:nth-child(3),
    .scroller .s-card:nth-child(4),
    .scroller .s-card:nth-child(5) {
        grid-column: span 1;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Responsive — Mobile
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .scroller {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--sp-4);
    }

    .scroller .s-card:nth-child(1),
    .scroller .s-card:nth-child(2),
    .scroller .s-card:nth-child(3),
    .scroller .s-card:nth-child(4),
    .scroller .s-card:nth-child(5) {
        grid-column: span 1;
    }
}

/* ═══════════ شبکه بین‌المللی — مدار ═══════════ */
.orbit-section {
    position: relative;
    overflow: hidden;
}

.orbit-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(30px, 5vw, 60px);
    align-items: center;
}
@media (max-width: 900px) {
    .orbit-grid {
        grid-template-columns: 1fr;
    }
}

.orbit-visual {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-media-frame {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 3.4;
}

.country-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: var(--sp-6);
}

/* ═══════════ مسیرهای مشارکت — تب‌ها ═══════════ */
.tabs-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    border: 1px solid var(--line-1);
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--bg-card);
}
@media (max-width: 820px) {
    .tabs-shell {
        grid-template-columns: 1fr;
    }
}

.tabs-side {
    background: var(--bg-raised);
    border-inline-start: 1px solid var(--line-1);
    display: flex;
    flex-direction: column;
}
@media (max-width: 820px) {
    .tabs-side {
        flex-direction: row;
        overflow-x: auto;
        border-inline-start: none;
        border-bottom: 1px solid var(--line-1);
    }
}

.tab-btn {
    padding: 20px 24px;
    text-align: start;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-500);
    border-bottom: 1px solid var(--line-1);
    position: relative;
    white-space: nowrap;
    transition: color var(--dur-fast), background var(--dur-fast);
}

.tab-btn:last-child {
    border-bottom: none;
}

.tab-btn::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold-500);
    transform: scaleY(0);
    transition: transform var(--dur-base) var(--ease-out);
}

.tab-btn.is-active {
    color: var(--gold-300);
    background: var(--gold-glow);
}

.tab-btn.is-active::before {
    transform: scaleY(1);
}

.tab-btn:hover:not(.is-active) {
    color: var(--ink-100);
}

.tab-panel {
    display: none;
    padding: clamp(28px, 4vw, 48px);
}

.tab-panel.is-active {
    display: block;
    animation: panelIn 0.45s var(--ease-out);
}
@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.tab-panel h3 {
    font-size: 22px;
    margin-bottom: var(--sp-3);
}

.tab-panel > p {
    color: var(--ink-500);
    margin-bottom: var(--sp-6);
    font-size: 15px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2) var(--sp-6);
    margin-bottom: var(--sp-6);
}
@media (max-width: 560px) {
    .benefit-grid {
        grid-template-columns: 1fr;
    }
}

.benefit-grid li {
    display: flex;
    gap: var(--sp-2);
    font-size: 14px;
    color: var(--ink-500);
    padding-block: var(--sp-1);
}

.benefit-grid li svg {
    width: 15px;
    height: 15px;
    stroke: var(--gold-500);
    flex-shrink: 0;
    margin-top: 3px;
}

/* ═══════════ تفاوت با نمایشگاه معمولی ═══════════ */
.diff-wrap {
    text-align: center;
}

.diff-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--sp-8);
    align-items: center;
    margin-block: var(--sp-10);
}
@media (max-width: 760px) {
    .diff-compare {
        grid-template-columns: 1fr;
        gap: var(--sp-4);
    }
}

.diff-no p {
    font-size: 19px;
    color: var(--ink-900);
    text-decoration: line-through;
    text-decoration-color: var(--accent-ruby);
}

.diff-yes p {
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 700;
    color: var(--gold-300);
    line-height: 1.7;
}

.diff-sep {
    font-size: 13px;
    color: var(--ink-700);
    letter-spacing: 0.08em;
}

.diff-questions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-1);
    border: 1px solid var(--line-1);
    border-radius: var(--r-lg);
    overflow: hidden;
}
@media (max-width: 760px) {
    .diff-questions {
        grid-template-columns: 1fr;
    }
}

.diff-questions div {
    background: var(--bg-base);
    padding: var(--sp-6);
    font-size: 14px;
    color: var(--ink-500);
}

/* ═══════════ گالری رسانه (تصویر/ویدیو) ═══════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 160px);
    gap: var(--sp-4);
}

.gallery-grid .g-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-grid .g-item:nth-child(4) {
    grid-column: span 2;
}
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 160px);
    }
    .gallery-grid .g-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }
    .gallery-grid .g-item:nth-child(4) {
        grid-column: span 1;
    }
}

.gallery-grid .media-frame {
    width: 100%;
    height: 100%;
    cursor: none;
}

/* ═══════════ دیاسپورا / نقل‌قول ═══════════ */
.quote-block {
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 700;
    line-height: 1.8;
    color: var(--gold-300);
    border-inline-start: 2px solid var(--gold-500);
    padding-inline-start: var(--sp-6);
}

/* ═══════════ خروجی مورد انتظار ═══════════ */
.outcome-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
}
@media (max-width: 900px) {
    .outcome-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 520px) {
    .outcome-grid {
        grid-template-columns: 1fr;
    }
}

.outcome-card {
    padding: var(--sp-6);
}

.outcome-card .tag {
    display: inline-block;
    font-size: 11px;
    color: var(--gold-500);
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    padding: 3px 12px;
    margin-bottom: var(--sp-4);
}

/* ═══════════ CTA نهایی + فرم مشارکت ═══════════ */
.cta-band {
    border-radius: var(--r-xl);
    padding: clamp(40px, 6vw, 70px);
    background: linear-gradient(
        135deg,
        rgba(200, 169, 81, 0.1),
        rgba(47, 143, 91, 0.04)
    );
    border: 1px solid var(--line-2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band h2 {
    font-size: clamp(24px, 3.2vw, 36px);
    margin-bottom: var(--sp-4);
}

.cta-band p {
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: var(--sp-8);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 60px);
    align-items: flex-start;
    margin-top: var(--sp-10);
}
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.purpose-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-bottom: var(--sp-6);
}

.purpose-pill {
    padding: 9px 18px;
    border-radius: var(--r-pill);
    font-size: 13px;
    border: 1px solid var(--line-2);
    color: var(--ink-500);
    transition: all var(--dur-fast);
}

.purpose-pill.is-active {
    background: var(--gold-500);
    color: var(--ink-on-gold);
    border-color: var(--gold-500);
    font-weight: 700;
}

.info-card-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

/* ═══════════ میهمانان ویژه ═══════════ */
.guest-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-6);
}

.guest-card {
    flex: 1 1 200px;
    max-width: 230px;
    text-align: center;
    padding: var(--sp-6) var(--sp-4);
    background: var(--bg-card);
    border: 1px solid var(--line-1);
    border-radius: var(--r-lg);
    transition: transform var(--dur-base) var(--ease-out),
        border-color var(--dur-base);
}

.guest-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-3);
}

.guest-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin-inline: auto;
    margin-bottom: var(--sp-4);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--line-2);
}

.guest-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guest-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(200, 169, 81, 0.16),
        rgba(200, 169, 81, 0.04)
    );
    color: var(--gold-300);
    font-size: 30px;
    font-weight: 800;
}

.guest-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-100);
    margin-bottom: 4px;
}

.guest-title {
    font-size: 12.5px;
    color: var(--ink-500);
}

.guest-card-placeholder {
    flex-basis: 100%;
    max-width: 640px;
    text-align: center;
    padding: var(--sp-8);
    border: 1px dashed var(--line-2);
    background: transparent;
}

.guest-card-placeholder p {
    font-size: 13.5px;
    color: var(--ink-700);
    line-height: 2;
}

.guest-card-placeholder code {
    color: var(--gold-300);
    font-family: monospace;
    direction: ltr;
    display: inline-block;
}
