﻿/* ==========================================================================
   NCALab Home Page Styles - Cognitive & Neuroscience Theme (home.css)
   ========================================================================== */

:root {
    --home-primary: #0062eb;
    --home-primary-dark: #004dc0;
    --home-cyan: #00d2ff;
    --home-navy: #091322;
    --home-navy-card: #0d2346;
    --home-text-dark: #0f172a;
    --home-text-muted: #64748b;
    --home-border: #e2e8f0;
    --home-bg-light: #f8fafc;
    --home-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
    --home-shadow-hover: 0 20px 40px rgba(0, 98, 235, 0.12);
}

.nca-home-wrapper {
    direction: rtl;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: var(--home-text-dark);
    line-height: 1.8;
    background-color: #ffffff;
    overflow-x: hidden;
}

.nca-home-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   ۱. بخش قهرمان (Hero Section)
   ========================================================================== */
.nca-home-hero {
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    padding: 50px 0 60px 0;
    border-bottom: 1px solid var(--home-border);
}

.hero-inner-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text-side {
    flex: 1 1 52%;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 98, 235, 0.08);
    border: 1px solid rgba(0, 98, 235, 0.2);
    color: var(--home-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--home-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--home-cyan);
}

.hero-main-heading {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--home-navy);
    line-height: 1.4;
    margin: 0 0 16px 0;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #0052cc 0%, #00a8cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead-description {
    font-size: 1.05rem;
    color: #334155;
    line-height: 2;
    text-align: justify;
    margin: 0 0 28px 0;
}

.hero-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #0d8a43 0%, #086b33 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 26px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(13, 138, 67, 0.3);
    transition: all 0.25s ease;
    display: inline-block;
}

    .btn-hero-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(13, 138, 67, 0.4);
    }

.btn-hero-secondary {
    background: #0062eb;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.25s ease;
    display: inline-block;
}

    .btn-hero-secondary:hover {
        background: #004dc0;
        transform: translateY(-2px);
    }

.btn-hero-outline {
    background: #ffffff;
    color: #0284c7 !important;
    border: 1.5px solid #bae6fd;
    text-decoration: none !important;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    transition: all 0.25s ease;
    display: inline-block;
}

    .btn-hero-outline:hover {
        background: #f0f9ff;
        border-color: #38bdf8;
        transform: translateY(-2px);
    }

.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    padding: 14px 22px;
    border-radius: 16px;
    border: 1px solid var(--home-border);
    box-shadow: var(--home-shadow-card);
    width: max-content;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

    .stat-item strong {
        font-size: 1.25rem;
        font-weight: 900;
        color: var(--home-primary);
    }

    .stat-item small {
        font-size: 0.78rem;
        color: var(--home-text-muted);
        font-weight: 600;
    }

.stat-divider {
    width: 1px;
    height: 35px;
    background-color: var(--home-border);
}

/* اسلایدر رسپانسیو شیشه‌ای */
.hero-media-side {
    flex: 1 1 48%;
}

.slider-glass-wrapper {
    background: #ffffff;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--home-border);
}

.nca-slider-container {
    border-radius: 14px;
    overflow: hidden;
    height: 360px;
    background-color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nca-slide {
    width: 100%;
    height: 100%;
    display: none;
}

    .nca-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

/* ==========================================================================
   ۲. بخش عنوان‌ها و تیترهای استاندارد
   ========================================================================== */
.section-title-wrap {
    text-align: center;
    margin-bottom: 35px;
}

.title-sub {
    display: block;
    color: var(--home-primary);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.section-title-gradient {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--home-navy);
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

    .section-title-gradient::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, var(--home-primary) 0%, var(--home-cyan) 100%);
        border-radius: 4px;
    }

.section-title-simple {
    font-size: 1.5rem;
    font-weight: 850;
    color: var(--home-navy);
    margin: 0;
    border-right: 5px solid var(--home-primary);
    padding-right: 14px;
    text-align: right;
}

/* ==========================================================================
   ۳. ویژگی‌های تخصصی نرم‌افزار (Features Section)
   ========================================================================== */
.nca-features-section {
    padding: 60px 0;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--home-border);
}

.features-dual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.feature-detail-card {
    background: #ffffff;
    border: 1px solid var(--home-border);
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--home-shadow-card);
    transition: all 0.3s ease;
}

    .feature-detail-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--home-shadow-hover);
        border-color: #93c5fd;
    }

.card-header-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.feature-detail-card h3 {
    margin: 0 0 16px 0;
    font-size: 1.15rem;
    font-weight: 850;
    color: var(--home-navy);
}

.clean-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .clean-check-list li {
        position: relative;
        padding-right: 22px;
        margin-bottom: 12px;
        color: #475569;
        font-size: 0.95rem;
    }

        .clean-check-list li::before {
            content: "✓";
            position: absolute;
            right: 0;
            color: #16a34a;
            font-weight: 900;
        }

/* ==========================================================================
   ۴. حوزه‌های ارزیابی عصب-شناختی (Domains Section)
   ========================================================================== */
.nca-domains-section {
    padding: 60px 0;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.domain-card {
    background: #ffffff;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--home-shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

    .domain-card:hover {
        transform: translateY(-5px);
        border-color: var(--home-primary);
        box-shadow: var(--home-shadow-hover);
    }

.domain-icon-wrap {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.domain-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--home-navy);
}

.domain-card p {
    font-size: 0.92rem;
    color: var(--home-text-muted);
    line-height: 1.9;
    text-align: justify;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.domain-more-link {
    color: var(--home-primary) !important;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 700;
    transition: color 0.2s;
}

    .domain-more-link:hover {
        color: var(--home-primary-dark) !important;
    }

/* ==========================================================================
   ۵. بانک آزمون‌های تخصصی (DataListTaskList Modern Grid)
   ========================================================================== */
.nca-taskbank-section {
    padding: 60px 0;
    background-color: #f8fafc;
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
}

.task-grid-wrapper {
    margin-top: 25px;
}

.nca-datalist-modern {
    border-collapse: separate !important;
    border-spacing: 14px !important;
    width: 100% !important;
}

.task-item-cell {
    padding: 0 !important;
    vertical-align: top !important;
}

.modern-task-card {
    background: #ffffff;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

    .modern-task-card:hover {
        border-color: #3b82f6;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 98, 235, 0.08);
    }

.task-fa-name {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--home-navy);
}

.task-en-code {
    font-size: 0.8rem;
    color: var(--home-text-muted);
    font-family: Arial, sans-serif;
    direction: ltr;
    display: block;
}

.btn-view-details {
    background: #eff6ff;
    color: var(--home-primary) !important;
    border: 1px solid #bfdbfe;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
}

    .btn-view-details:hover {
        background: var(--home-primary);
        color: #ffffff !important;
        border-color: var(--home-primary);
    }

/* ==========================================================================
   ۶. بنر استناد آکادمیک (Citation Banner)
   ========================================================================== */
.nca-citation-banner {
    padding: 40px 0;
}

.citation-banner-card {
    background: linear-gradient(135deg, #091322 0%, #0d2346 50%, #0052cc 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 35px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    box-shadow: 0 15px 35px rgba(9, 19, 34, 0.15);
}

.citation-badge {
    background: rgba(0, 210, 255, 0.2);
    color: var(--home-cyan);
    border: 1px solid rgba(0, 210, 255, 0.35);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 10px;
}

.citation-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 850;
    color: #ffffff;
}

.citation-text p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.9;
    max-width: 720px;
}

.btn-citation-action {
    background: linear-gradient(135deg, #0d8a43 0%, #086b33 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(13, 138, 67, 0.3);
    transition: all 0.2s ease;
    display: inline-block;
}

    .btn-citation-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(13, 138, 67, 0.4);
    }

/* ==========================================================================
   ۷. جامعه مخاطبان (Audience Section)
   ========================================================================== */
.nca-audience-section {
    padding: 60px 0;
    background-color: #f8fafc;
    border-top: 1px solid var(--home-border);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 25px;
}

.audience-card {
    background: #ffffff;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.25s ease;
}

    .audience-card:hover {
        transform: translateY(-4px);
        border-color: var(--home-primary);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    }

.audience-emoji {
    font-size: 2rem;
    margin-bottom: 4px;
}

.audience-card h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--home-navy);
}

.audience-card small {
    color: var(--home-text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.audience-card.highlight-card {
    text-decoration: none !important;
    border-right: 4px solid var(--home-primary);
    background: #eff6ff;
}

.text-primary-link {
    color: var(--home-primary) !important;
    font-weight: 700;
}

/* ==========================================================================
   ۸. مزایای رقابتی پلتفرم (Advantages Section)
   ========================================================================== */
.nca-advantages-section {
    padding: 60px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.adv-card {
    background: #ffffff;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--home-shadow-card);
    transition: all 0.3s ease;
}

    .adv-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    }

.adv-icon {
    font-size: 2.6rem;
    margin-bottom: 14px;
}

.adv-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.15rem;
    font-weight: 850;
    color: var(--home-navy);
}

.adv-card p {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.9;
    text-align: justify;
    margin: 0;
}

/* ==========================================================================
   ۹. سوالات متداول (FAQ Accordion)
   ========================================================================== */
.nca-faq-section {
    padding: 60px 0 80px 0;
    background-color: #f8fafc;
    border-top: 1px solid var(--home-border);
}

.faq-accordion-wrapper {
    max-width: 900px;
    margin: 25px auto 0 auto;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--home-border);
    overflow: hidden;
    box-shadow: var(--home-shadow-card);
}

.faq-row-item {
    border-bottom: 1px solid var(--home-border);
}

    .faq-row-item:last-child {
        border-bottom: none;
    }

.faq-header-bar {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

    .faq-header-bar:hover {
        background-color: #f0f7ff;
    }

    .faq-header-bar h3 {
        margin: 0;
        font-size: 1rem;
        font-weight: 750;
        color: var(--home-navy);
        flex-grow: 1;
        transition: color 0.2s ease;
    }

    .faq-header-bar:hover h3 {
        color: var(--home-primary);
    }

.faq-symbol {
    width: 18px;
    height: 18px;
    position: relative;
    flex-shrink: 0;
}

    .faq-symbol::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 2px;
        top: 8px;
        left: 0;
        background-color: var(--home-primary);
    }

    .faq-symbol::after {
        content: "";
        position: absolute;
        width: 2px;
        height: 100%;
        left: 8px;
        top: 0;
        background-color: var(--home-primary);
        transition: transform 0.25s ease;
    }

.faq-row-item.active .faq-symbol::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-body-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fcfdfe;
}

    .faq-body-content p {
        padding: 20px 24px;
        margin: 0;
        font-size: 0.95rem;
        color: #475569;
        line-height: 2;
        text-align: justify;
        border-top: 1px solid #f1f5f9;
    }

/* ==========================================================================
   ۱۰. رسپانسیو و بهینه‌سازی اندازه‌ها (Responsive Breakpoints)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-inner-flex {
        flex-direction: column;
        gap: 30px;
    }

    .hero-text-side, .hero-media-side {
        flex: 1 1 100%;
        width: 100%;
    }

    .nca-slider-container {
        height: 280px;
    }

    .citation-banner-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
    }

    .btn-citation-action {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-main-heading {
        font-size: 1.6rem;
    }

    .hero-action-buttons {
        flex-direction: column;
    }

    .btn-hero-primary, .btn-hero-secondary, .btn-hero-outline {
        width: 100%;
        text-align: center;
    }

    .hero-stats-row {
        width: 100%;
        justify-content: space-around;
        gap: 10px;
    }

    .nca-slider-container {
        height: 210px;
    }

    /* تبدیل DataList دوتایی به تک‌ستونی شیک در موبایل */
    .nca-datalist-modern,
    .nca-datalist-modern tbody,
    .nca-datalist-modern tr,
    .nca-datalist-modern td {
        display: block !important;
        width: 100% !important;
    }

    .modern-task-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .btn-view-details {
        width: 100%;
        text-align: center;
    }

    .section-title-gradient {
        font-size: 1.35rem;
    }

    .section-title-simple {
        font-size: 1.25rem;
    }
}
