﻿html {
    scroll-behavior: smooth;
}

.page-hero {
    padding-top: 100px;
    margin: 10px;
}

.page-hero-content {
    max-width: 900px;
    margin: auto;
}

.page-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(2rem,4vw,3rem);
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.page-hero p {
    margin: 0;
    line-height: 2.2;
    color: #555;
    font-size: 1.05rem;
}

/* ========================= */

.toc-nav {
    position: sticky;
    top: 62px;
    z-index: 999;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 12px;
    background: #0F172A;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    scrollbar-width: none;
}

    .toc-nav::-webkit-scrollbar {
        display: none;
    }

    .toc-nav a {
        flex-shrink: 0;
        text-decoration: none;
        color: #444;
        padding: 10px 18px;
        border-radius: 30px;
        background: #f5f5f5;
        transition: .3s;
        font-size: 15px;
    }

        .toc-nav a:hover {
            background: #0077b6;
            color: #fff;
        }

        .toc-nav a.active {
            background: #0077b6;
            color: #fff;
        }

.card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 32px;
    margin: 35px 0;
    box-shadow: 0 12px 35px rgba(0,0,0,.05);
    transition: .35s;
    scroll-margin-top: 150px;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 45px rgba(0,0,0,.08);
    }

.card-tag {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 16px;
    background: #eef8ff;
    color: #0077b6;
    border-radius: 30px;
    font-size: .9rem;
    font-weight: 600;
}

.card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #222;
}

.card h3 {
    margin-bottom: 18px;
    color: #222;
}

.card p {
    line-height: 2.1;
    margin-bottom: 18px;
    color: #555;
}

.card a {
    color: #0077b6;
    text-decoration: none;
    font-weight: 600;
}

    .card a:hover {
        text-decoration: underline;
    }

.info-box {
    margin-top: 30px;
    padding: 25px;
    background: #f8fbfd;
    border-right: 5px solid #0077b6;
    border-radius: 12px;
}

    .info-box h3 {
        margin-bottom: 18px;
    }

    .info-box ul {
        padding-right: 20px;
    }

    .info-box li {
        margin-bottom: 12px;
        line-height: 1.9;
    }

/* ---------- Responsive ---------- */

@media(max-width:768px) {

    .card {
        padding: 22px;
    }

        .card h2 {
            font-size: 1.55rem;
        }

        .card p {
            font-size: 15px;
            line-height: 2;
        }

    .info-box {
        padding: 18px;
    }
}



.comparison-table {
    margin-top: 40px;
}

    .comparison-table h3 {
        margin-bottom: 15px;
        font-size: 28px;
    }

.table-description {
    margin-bottom: 30px;
    line-height: 2;
}

.compare-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

    .compare-grid > div {
        padding: 18px;
        border-bottom: 1px solid #eee;
        border-left: 1px solid #eee;
        display: flex;
        align-items: center;
    }

    .compare-grid .head {
        background: #0d6efd;
        color: white;
        font-weight: bold;
    }

    .compare-grid > div:nth-child(3n+1) {
        font-weight: 600;
        background: #fafafa;
    }

.excellent {
    color: #1b8f3c;
    font-weight: bold;
}

.good {
    color: #0d6efd;
    font-weight: bold;
}

.medium {
    color: #ff9800;
    font-weight: bold;
}

@media(max-width:768px) {

    .compare-grid {
        grid-template-columns: 1fr;
    }

        .compare-grid .head {
            display: none;
        }

        .compare-grid > div {
            border-left: none;
        }
}

.compare-mobile {
    display: none;
}

@media(max-width:768px) {

    .compare-grid {
        display: none;
    }

    .compare-mobile {
        display: flex;
        flex-direction: column;
        gap: 18px;
        margin-top: 25px;
    }

    .compare-card {
        background: #fff;
        border: 1px solid #e8e8e8;
        border-radius: 18px;
        padding: 20px;
        box-shadow: 0 8px 25px rgba(0,0,0,.05);
    }

        .compare-card h4 {
            margin-bottom: 18px;
            font-size: 18px;
            color: #222;
        }

    .option {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-top: 1px solid #eee;
    }

        .option:first-of-type {
            border-top: none;
        }

        .option span {
            padding: 6px 14px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 600;
        }

    .film {
        background: #eaf5ff;
        color: #0d6efd;
    }

    .splash {
        background: #eefbf3;
        color: #198754;
    }

    .option strong {
        font-size: 16px;
        color: #444;
    }
}

.project-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.3fr 2fr;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    margin-top: 30px;
}



    .project-grid > div {
        padding: 18px 20px;
        border-bottom: 1px solid #ececec;
        border-left: 1px solid #ececec;
        display: flex;
        align-items: center;
    }

.project-mobile {
    display: none;
}



@media(max-width:768px) {

    .project-grid {
        display: none;
    }



    .project-mobile {
        display: flex;
        flex-direction: column;
        gap: 18px;
        margin-top: 25px;
    }



    .project-card {
        background: #fff;
        border: 1px solid #ececec;
        border-radius: 18px;
        padding: 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,.05);
    }



        .project-card h4 {
            margin-bottom: 18px;
            font-size: 18px;
            color: #222;
        }



    .project-item {
        padding: 14px 0;
        border-top: 1px solid #eee;
    }



        .project-item:first-of-type {
            border-top: none;
        }



        .project-item label {
            display: block;
            font-size: 13px;
            font-weight: 700;
            color: #777;
            margin-bottom: 8px;
        }



        .project-item a {
            color: #0f766e;
            font-weight: 700;
            text-decoration: none;
        }



        .project-item p {
            margin: 0;
            line-height: 1.9;
        }
}



    .project-grid .head {
        background: #0f766e;
        color: #fff;
        font-weight: 700;
        font-size: 15px;
    }



    .project-grid > div:nth-child(3n+1) {
        background: #fafafa;
        font-weight: 600;
    }



    .project-grid a {
        color: #0f766e;
        font-weight: 600;
        text-decoration: none;
    }



        .project-grid a:hover {
            text-decoration: underline;
        }


/*==========================
    Comparison Table
==========================*/

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
    scrollbar-width: thin;
    scrollbar-color: #cfcfcf transparent;
}

    .table-responsive::-webkit-scrollbar {
        height: 8px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: #d3d3d3;
        border-radius: 20px;
    }

    .table-responsive table {
        width: 100%;
        min-width: 760px;
        border-collapse: collapse;
        background: #fff;
    }

    .table-responsive thead {
        background: #1d4ed8;
        color: white;
    }

    .table-responsive th {
        padding: 18px;
        font-size: 15px;
        font-weight: 700;
        white-space: nowrap;
    }

    .table-responsive td {
        padding: 18px 16px;
        text-align: center;
        border-bottom: 1px solid #ececec;
        font-size: 14px;
        line-height: 1.9;
        transition: .25s;
    }

    .table-responsive tbody tr:nth-child(even) {
        background: #fafafa;
    }

    .table-responsive tbody tr:hover {
        background: #f2f7ff;
    }

    .table-responsive td:first-child {
        font-weight: 700;
        color: #222;
    }

    .table-responsive td a {
        color: #1d4ed8;
        font-weight: 600;
        text-decoration: none;
    }

        .table-responsive td a:hover {
            text-decoration: underline;
        }

/*==========================
    Mobile Comparison Cards
==========================*/

.comparison-mobile {
    display: none;
    gap: 22px;
    margin-top: 30px;
}

.comparison-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
    transition: .3s;
}

    .comparison-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0,0,0,.08);
    }

    .comparison-card h3 {
        margin-bottom: 18px;
        color: #1d4ed8;
        font-size: 20px;
        font-weight: 700;
    }

    .comparison-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .comparison-card li {
        padding: 12px 0;
        border-bottom: 1px dashed #e8e8e8;
        line-height: 1.9;
        font-size: 14px;
    }

        .comparison-card li:last-child {
            border: none;
        }

/*==========================
        Responsive
==========================*/

@media (max-width:992px) {

    .table-responsive table {
        min-width: 700px;
    }
}

@media (max-width:768px) {

    .table-responsive {
        display: none;
    }

    .comparison-mobile {
        display: grid;
        grid-template-columns: 1fr;
    }

    .comparison-card {
        padding: 20px;
        border-radius: 16px;
    }

        .comparison-card h3 {
            font-size: 18px;
        }
}

@media (max-width:480px) {

    .comparison-card {
        padding: 18px;
    }

        .comparison-card li {
            font-size: 13px;
        }
}

figure img {
    width: 100%;
    display: block;
    border-radius: 14px;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: .35s;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.card figure img:hover {
    transform: scale(1.03);
}

.card figcaption {
    margin-top: 12px;
    font-size: .95rem;
    color: #666;
    line-height: 1.9;
    text-align: center;
    font-style: italic;
}

/*==========================
     جداول
==========================*/

.specification-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-top: 30px;
}

.specification-table {
    border: 1px solid #e8edf2;
    border-radius: 14px;
    overflow: hidden;
}

.spec-row {
    display: grid;
    grid-template-columns: 220px 1fr;
}

    .spec-row:nth-child(even) {
        background: #fafbfc;
    }

.spec-title {
    padding: 18px;
    font-weight: 700;
    background: #f4f7f9;
    border-left: 1px solid #e8edf2;
}

.spec-value {
    padding: 18px;
}

.spec-row:not(:last-child) {
    border-bottom: 1px solid #e8edf2;
}

.technical-summary {
    padding: 24px;
    background: #f8fbfd;
    border: 1px solid #e8edf2;
    border-radius: 14px;
}

    .technical-summary h3 {
        margin-bottom: 18px;
    }

    .technical-summary ul {
        padding-right: 20px;
        margin: 0;
    }

    .technical-summary li {
        margin-bottom: 10px;
    }

@media(max-width:992px) {

    .specification-wrapper {
        grid-template-columns: 1fr;
    }

    .spec-row {
        grid-template-columns: 1fr;
    }

    .spec-title {
        border-left: none;
        border-bottom: 1px solid #e8edf2;
    }
}

/*==========================
     کارت های گالری
==========================*/

.gallery-slider {
    display: flex;
    gap: 24px;
    margin-top: 32px;
}

.gallery-card {
    flex: 1;
    min-width: 0;
    border: 1px solid black;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    transition: .25s;
}

    .gallery-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 35px rgba(0,0,0,.08);
    }

    .gallery-card img {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
        display: block;
    }

    .gallery-card h3 {
        font-size: 1.05rem;
        margin: 18px 18px 10px;
    }

    .gallery-card p {
        margin: 0 18px 20px;
        line-height: 1.9;
        color: #666;
        font-size: .95rem;
    }

@media(max-width:992px) {

    .gallery-slider {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        padding-bottom: 10px;
        gap: 18px;
    }

        .gallery-slider::-webkit-scrollbar {
            height: 6px;
        }

        .gallery-slider::-webkit-scrollbar-thumb {
            background: #d9d9d9;
            border-radius: 20px;
        }

    .gallery-card {
        flex: none;
        width: 280px;
    }
}

/*==========================
     جدول قابل اسکرول
==========================*/

.comparison-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

    .comparison-table th {
        background: #0f4c81;
        color: #fff;
        padding: 14px;
        white-space: nowrap;
        text-align: center;
    }

    .comparison-table td {
        padding: 14px;
        border-bottom: 1px solid #ececec;
        text-align: center;
    }

        .comparison-table td:first-child {
            font-weight: 700;
            text-align: right;
            white-space: nowrap;
        }

    .comparison-table tbody tr:nth-child(even) {
        background: #fafafa;
    }

    .comparison-table tbody tr:hover {
        background: #f3f8fc;
    }

@media(max-width:768px) {

    .comparison-table {
        min-width: 700px;
    }
}

/*==========================
        faq
==========================*/

/* FAQ */

.faq-list {
    margin-top: 32px;
}

    .faq-list details {
        background: #ffffff;
        border: 1px solid #e7edf3;
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 18px;
        transition: .3s;
    }

        .faq-list details:hover {
            border-color: #d5e3ef;
            box-shadow: 0 8px 20px rgba(0,0,0,.04);
        }

        .faq-list details[open] {
            border-color: var(--primary-color);
            box-shadow: 0 10px 28px rgba(0,0,0,.06);
        }

    /* Question */

    .faq-list summary {
        list-style: none;
        cursor: pointer;
        padding: 22px 28px;
        font-size: 1.08rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: .25s;
        background: #f8fbfd;
    }

        .faq-list summary:hover {
            background: #f1f8fc;
        }

        .faq-list summary::-webkit-details-marker {
            display: none;
        }

        /* Icon */

        .faq-list summary::after {
            content: "+";
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: #ffffff;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            font-weight: 400;
            transition: .3s;
            flex-shrink: 0;
            border: 1px solid #dfe8ef;
        }

    .faq-list details[open] summary::after {
        content: "−";
        transform: rotate(180deg);
        background: var(--primary-color);
        color: blue;
    }

/* Answer */

.faq-content {
    padding: 0 28px 24px;
    background: #fff;
    line-height: 2;
    color: #555;
    animation: faqOpen .28s ease;
}

    .faq-content p {
        margin: 0;
    }

    .faq-content a {
        font-weight: 600;
    }

/* Animation */

@keyframes faqOpen {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Mobile */

@media(max-width:768px) {

    .faq-list summary {
        padding: 18px 20px;
        font-size: 1rem;
    }

    .faq-content {
        padding: 0 20px 20px;
    }
}

/*==============================
            HERO
================================*/

.hero-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 55px 0;
    margin: 10px;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    margin-bottom: 20px;
    background: #0b63ce;
    color: #fff;
    border-radius: 30px;
    font-size: .9rem;
    font-weight: 600;
}

.hero-product h1 {
    margin-bottom: 20px;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.5;
    color: #1d3557;
}

.hero-description {
    font-size: 1.08rem;
    line-height: 2.2;
    color: #555;
    margin-bottom: 28px;
    text-align: justify;
}

    .hero-description a {
        color: #0b63ce;
        font-weight: 700;
        text-decoration: none;
    }

        .hero-description a:hover {
            text-decoration: underline;
        }

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 35px;
}

    .hero-features span {
        background: #f3f8ff;
        border: 1px solid #d8e8ff;
        color: #0b63ce;
        padding: 10px 18px;
        border-radius: 30px;
        font-size: .95rem;
        font-weight: 600;
    }

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: .3s;
}

.btn-primary {
    background: #0b63ce;
    color: #fff;
}

    .btn-primary:hover {
        background: #084298;
    }

.btn-secondary {
    border: 2px solid #0b63ce;
    color: #0b63ce;
}

    .btn-secondary:hover {
        background: #0b63ce;
        color: #fff;
    }

.hero-image {
    flex: 0 0 42%;
    text-align: center;
}

    .hero-image img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

/*==============================
        Breadcrumb
================================*/

.breadcrumb {
    margin-bottom: 18px;
    font-size: .9rem;
}

    .breadcrumb a {
        color: darkblue;
        text-decoration: none;
    }

        .breadcrumb a:hover {
            color: #0b63ce;
        }

    .breadcrumb span {
        color: #6c757d;
        margin: 0 5px;
    }

/*==============================
        Responsive
================================*/

@media (max-width:992px) {

    .hero-product {
        gap: 35px;
    }

        .hero-product h1 {
            font-size: 2rem;
        }
}

@media (max-width:768px) {

    .hero-product {
        flex-direction: column-reverse;
        text-align: center;
        padding: 35px 0;
    }

    .hero-content {
        width: 100%;
    }

    .hero-product h1 {
        font-size: 1.7rem;
    }

    .hero-description {
        text-align: right;
        font-size: 1rem;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
    }
}