/* ============================================================
   SICOMP — PAGES.CSS
   استایل کامپوننت‌های صفحات (در کنار style.css)
   نسخه: 2.0 — کامل (هیرو + همه بخش‌های صفحه اصلی)
   ============================================================ */

/* ==================== ۱) Hero Section (داینامیک) ==================== */
.hero-section {
    padding: 0;
}

.hero-section .hero {
    height: 450px;
    position: relative;
    overflow: hidden;
    background: #eaf3ff;
}

.hero-section .hero-visual {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
    opacity: 0.98;
    transition: background-image 0.6s ease;
}

.hero-section .hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, .06) 25%,
            rgba(255, 255, 255, .25) 45%,
            rgba(255, 255, 255, .69) 62%,
            rgba(255, 255, 255, .87) 80%,
            rgba(255, 255, 255, .93) 100%);
    pointer-events: none;
}

.hero-section .hero-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.hero-section .hero-copy {
    width: 58%;
    max-width: 720px;
    text-align: right;
}

.hero-section .hero-title {
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.45;
    margin: 0 0 10px;
    font-weight: 900;
    border-right: 4px solid var(--red);
    padding-right: 16px;
}

.hero-section .hero-title em {
    font-style: normal;
    color: var(--red);
}

.hero-section .hero-desc {
    font-size: 13px;
    color: #152642;
    margin: 0 0 14px;
    line-height: 1.9;
}

.hero-section .hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-section .hero-tags span {
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #b7ccef;
    background: rgba(255, 255, 255, .72);
    transition: background .2s, border-color .2s;
}

.hero-section .hero-tags span:hover {
    background: #fff;
    border-color: var(--blue);
}

.hero-section .hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-section .hero-btn {
    padding: 9px 20px;
}

.hero-section .hero-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    padding: 7px 12px;
    border-radius: 10px;
    transition: background .2s, color .2s;
}

.hero-section .hero-link span {
    color: var(--red);
    font-weight: 900;
}

.hero-section .hero-link:hover {
    background: #eaf3ff;
    color: var(--blue);
}

.hero-section .hero-controls {
    position: absolute;
    inset: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-section .hero-controls button {
    pointer-events: auto;
    border: 0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .79);
    color: var(--navy);
    font-size: 30px;
    line-height: 1;
    transition: background .2s, transform .2s;
}

.hero-section .hero-controls button:hover {
    background: #fff;
    transform: scale(1.05);
}

.hero-section .hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
}

.hero-section .hero-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #9aa6b9;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.hero-section .hero-dots .dot.selected {
    background: var(--red);
    transform: scale(1.25);
}

/* ==================== ۲) تیتر بخش‌ها ==================== */
.section {
    padding: 30px 0;
}

.section-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    text-align: center;
    margin-bottom: 24px;
}

.section-heading__text {
    max-width: 520px;
}

.section-heading__text h2 {
    font-size: 22px;
    margin: 0 0 4px;
}

.section-heading__text p {
    font-size: 12px;
    margin: 0;
    color: #273957;
}

.section-heading>span {
    flex: 0 0 95px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue));
}

.section-heading>span:last-child {
    transform: rotate(180deg);
}

/* ==================== ۳) خدمات ==================== */
.services-section {
    padding: 30px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 2px;
}

.service-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 120px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #fff, #f8fbff);
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #b9d4f7;
}

.service-icon {
    flex: 0 0 46px;
    height: 46px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    background: #e8f3ff;
    color: var(--blue);
    font-size: 28px;
    font-weight: 800;
}

.service-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.service-card__body h3 {
    font-size: 15px;
    margin: 0 0 4px;
    line-height: 1.5;
}

.service-card__body p {
    font-size: 11px;
    margin: 0 0 8px;
    color: #26354c;
    line-height: 1.7;
}

.service-card__body a {
    margin-top: auto;
    font-size: 11px;
    color: #0056b7;
    font-weight: 800;
    transition: color .2s;
}

.service-card__body a:hover {
    color: var(--blue);
}

/* ==================== ۴) نرم‌افزار و نمونه‌کار ==================== */
.feature-section {
    padding: 30px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: .9fr 1.3fr;
    gap: 18px;
}

.software-feature,
.portfolio-feature {
    display: flex;
    align-items: center;
    min-height: 160px;
    overflow: hidden;
    border: 1px solid #cbdffb;
    border-radius: var(--radius-md);
    background: linear-gradient(115deg, #e7f2ff, #fff);
}

.software-feature {
    padding: 16px 22px;
    gap: 14px;
}

.feature-text {
    flex: 1;
    min-width: 0;
}

.feature-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: #075db7;
    background: #e0efff;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.feature-text h2 {
    font-size: 18px;
    margin: 0 0 4px;
}

.feature-text p {
    font-size: 11px;
    margin: 0 0 14px;
    line-height: 1.8;
}

.software-feature__visual {
    flex: 0 0 38%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 70% 30%, #ffffff, #e7f2ff);
    border-radius: 10px;
    padding: 8px;
}

.software-feature__visual img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* ----- نمونه‌کار: ردیف‌های تفکیک‌شده ----- */
.portfolio-feature {
    display: grid;
    grid-template-columns: 30% 1fr;
    align-items: start;
    gap: 16px;
    padding: 14px;
    background: linear-gradient(120deg, #f6f9ff, #fff);
}

.portfolio-intro {
    text-align: center;
    padding: 4px;
    align-self: center;
}

.portfolio-intro h2 {
    font-size: 18px;
    margin: 0 0 4px;
}

.portfolio-intro p {
    font-size: 10px;
    margin: 0 0 12px;
    color: #273957;
}

.outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid #8aafe8;
    border-radius: 10px;
    color: var(--navy);
    font-size: 10px;
    font-weight: 800;
    transition: background .2s, color .2s;
}

.outline-btn:hover {
    background: var(--navy);
    color: #fff;
}

.portfolio-list {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.project-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 6px;
    border-bottom: 1px dashed #cbdffb;
    transition: background .2s;
    text-decoration: none;
    color: inherit;
}

.project-row:last-child {
    border-bottom: 0;
}

.project-row:hover {
    background: #eef6ff;
}

.project-row__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #e7f2ff;
    box-shadow: 0 2px 6px rgba(11, 60, 128, .08);
}

.project-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.project-row:hover .project-row__thumb img {
    transform: scale(1.06);
}

.project-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.project-row__body strong {
    font-size: 14px;
    line-height: 1.5;
    color: var(--navy);
}

.project-row__body span {
    font-size: 10px;
    color: var(--muted);
}

.project-row__arrow {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e0efff;
    color: var(--blue);
    font-size: 16px;
    font-weight: 900;
    transition: background .2s, color .2s, transform .2s;
}

.project-row:hover .project-row__arrow {
    background: var(--blue);
    color: #fff;
    transform: translateX(-3px);
}

/* ==================== ۵) مقالات ==================== */
.section--soft {
    background: #fbfdff;
}

.articles-section {
    padding: 30px 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.article-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 5px 18px rgba(9, 39, 92, .04);
    transition: transform .2s, box-shadow .2s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.article-card>img,
.article-card__image-link img {
    width: 100%;
    height: 172px;
    object-fit: cover;
    background: #edf3fa;
    display: block;
}

.article-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 17px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    color: #64748b;
    font-size: 10px;
}

.article-meta span:first-child {
    color: #0875c8;
    font-weight: 800;
}

.article-card h3 {
    font-size: 15px;
    line-height: 1.7;
    margin: 9px 0 5px;
}

.article-card h3 a {
    color: inherit;
}

.article-card h3 a:hover {
    color: var(--blue);
}

.article-card p {
    font-size: 11px;
    line-height: 2;
    color: var(--muted);
    margin: 0 0 13px;
}

.article-card>a,
.article-card__body>a {
    margin-top: auto;
    padding: 7px 11px;
    border-radius: 8px;
    background: #eef6ff;
    color: #075db7;
    font-size: 10px;
    font-weight: 800;
    transition: background .2s, color .2s;
}

.article-card>a:hover,
.article-card__body>a:hover {
    background: #dceeff;
    color: var(--blue);
}

.articles-more {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.articles-more__btn {
    padding: 10px 24px;
    font-size: 12px;
    border-radius: 12px;
}

/* ==================== ۶) فرایند و چرا سیکامپ ==================== */
.process-section {
    padding: 30px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: .85fr 1.6fr;
    gap: 26px;
    align-items: center;
}

.why-us {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.why-us__text h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.why-us ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
}

.why-us li {
    position: relative;
    padding-right: 18px;
    line-height: 1.9;
}

.why-us li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #07994d;
    font-weight: 900;
}

.growth-icon {
    flex-shrink: 0;
    font-size: 54px;
    color: #0756a8;
    position: relative;
}

.growth-icon span {
    position: absolute;
    right: 12px;
    top: -24px;
    color: var(--red);
    font-size: 42px;
}

.process>p {
    font-size: 12px;
    margin: 0 0 12px;
    color: #273957;
}

.process h2 {
    font-size: 18px;
    margin: 0 0 6px;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    margin-top: 12px;
}

.steps::before {
    content: "";
    position: absolute;
    top: 17px;
    right: 7%;
    left: 7%;
    height: 3px;
    background: #d8e9ff;
    border-radius: 3px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    position: relative;
    font-size: 11px;
    text-align: center;
}

.step i {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e7f2ff;
    border: 4px solid #f5f9ff;
    color: #0862c5;
    font-size: 17px;
    font-style: normal;
    transition: background .2s, color .2s;
    position: relative;
    z-index: 1;
    
}

.step:hover i {
    background: var(--blue);
    color: #fff;
}

/* ==================== ۷) بنر تماس ==================== */
.contact-banner {
    padding: 20px 0;
}

.contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 90px;
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    color: #fff;
    background: linear-gradient(110deg, #052b67, #031a43);
}

.contact-inner__text {
    max-width: 640px;
}

.contact-inner h2 {
    font-size: 17px;
    margin: 0 0 4px;
}

.contact-inner p {
    font-size: 11px;
    margin: 0;
    color: #dbe6f5;
}

/* ==================== ۸) Stats Section ==================== */
.stats-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f7faff 0%, #eef5ff 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

/* ==================== ۹) Testimonials ==================== */
.testimonials-section {
    padding: 40px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.review-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
}

.review-rating i {
    color: #d8e1f0;
    font-size: 12px;
}

.review-rating i.active {
    color: #f5a623;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--navy);
}

.review-title {
    font-size: 12px;
    color: var(--red);
    font-weight: 700;
}

.review-text {
    font-size: 12px;
    line-height: 1.9;
    color: var(--muted);
    margin: 0;
    flex: 1;
}

.review-date {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 6px;
}

/* ==================== ۱۰) Empty State ==================== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    padding: 28px;
}

/* ============================================================
   ۱۱) ریسپانسیو
   ============================================================ */

/* ----- ۱۱۰۰px ----- */
@media (max-width: 1100px) {
    .hero-section .hero-copy {
        width: 60%;
    }

    .hero-section .hero-title {
        font-size: clamp(25px, 2.6vw, 32px);
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        gap: 10px;
        padding: 14px;
    }

    .service-card__body h3 {
        font-size: 14px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .software-feature {
        min-height: 140px;
    }

    .portfolio-feature {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .portfolio-intro {
        text-align: right;
        padding: 0 0 8px;
        align-self: auto;
    }

    .software-feature__visual {
        flex-basis: 42%;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .why-us {
        border-left: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 14px;
    }

    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----- ۹۰۰px ----- */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----- ۷۶۰px (موبایل) ----- */
@media (max-width: 760px) {

    /* هیرو */
    .hero-section .hero {
        height: auto;
        min-height: 460px;
    }

    .hero-section .hero-visual {
        inset: 0 0 auto;
        height: 205px;
        background-position: center top;
    }

    .hero-section .hero-shade {
        background: linear-gradient(180deg,
                rgba(255, 255, 255, 0) 0,
                rgba(255, 255, 255, .06) 150px,
                #fff 205px,
                #fff 100%);
    }

    .hero-section .hero-inner {
        align-items: flex-end;
        padding-top: 195px;
        padding-bottom: 56px;
    }

    .hero-section .hero-copy {
        width: 100%;
        text-align: center;
    }

    .hero-section .hero-title {
        font-size: 26px;
        border-right: 0;
        border-bottom: 3px solid var(--red);
        padding: 0 0 8px;
    }

    .hero-section .hero-desc {
        font-size: 12px;
    }

    .hero-section .hero-tags {
        justify-content: center;
    }

    .hero-section .hero-actions {
        justify-content: center;
    }

    .hero-section .hero-controls {
        inset: 0 8px auto;
        height: 185px;
    }

    .hero-section .hero-controls button {
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .hero-section .hero-dots {
        bottom: 16px;
        left: auto;
        right: 50%;
        transform: translateX(50%);
    }

    /* تیترها */
    .section-heading {
        gap: 10px;
        margin-bottom: 16px;
    }

    .section-heading>span {
        flex-basis: 42px;
    }

    .section-heading__text h2 {
        font-size: 19px;
    }

    .section-heading__text p {
        font-size: 11px;
    }

    /* خدمات */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .service-card {
        min-height: auto;
        align-items: center;
        padding: 12px 15px;
    }

    .service-card__body h3 {
        font-size: 14px;
    }

    .service-card__body p {
        font-size: 11px;
        margin-bottom: 6px;
    }

    /* نرم‌افزار و نمونه‌کار */
    .feature-grid {
        gap: 12px;
    }

    .software-feature {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 14px;
        min-height: auto;
    }

    .software-feature__visual {
        flex-basis: auto;
        margin-top: 8px;
    }

    .software-feature__visual img {
        height: 120px;
    }

    .feature-text h2 {
        font-size: 15px;
    }

    .feature-text p {
        font-size: 10px;
    }

    .portfolio-feature {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .portfolio-intro {
        padding: 0 0 6px;
        text-align: center;
    }

    .project-row {
        padding: 10px 4px;
        gap: 10px;
    }

    .project-row__thumb {
        flex-basis: 60px;
        width: 60px;
        height: 48px;
    }

    .project-row__body strong {
        font-size: 13px;
    }

    .project-row__body span {
        font-size: 9px;
    }

    .project-row__arrow {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }

    /* فرایند */
    .process-grid {
        gap: 18px;
    }

    .why-us {
        justify-content: space-around;
        padding: 0 0 14px;
    }

    .why-us ul {
        font-size: 11px;
    }

    .growth-icon {
        font-size: 45px;
    }

    .process {
        text-align: center;
    }

    .steps {
        gap: 3px;
    }

    .step {
        font-size: 9px;
    }

    .step i {
        width: 31px;
        height: 31px;
        font-size: 14px;
    }

    .steps::before {
        top: 15px;
    }

    /* مقالات */
    .article-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .articles-more {
        margin-top: 16px;
    }

    .articles-more__btn {
        font-size: 11px;
        padding: 9px 18px;
    }

    /* بنر تماس */
    .contact-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 14px;
    }

    .contact-inner h2 {
        font-size: 14px;
    }

    .contact-inner p {
        font-size: 9px;
    }

    .contact-inner .btn {
        width: 100%;
        max-width: 260px;
        font-size: 10px;
        padding: 8px 12px;
    }

    /* آمار */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 26px;
    }

    .stat-label {
        font-size: 11px;
    }

    /* نظرات */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .review-card {
        padding: 14px;
    }
}

/* ----- ۶۰۰px (کارت مقاله افقی) ----- */
@media (max-width: 600px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .article-card>img,
    .article-card__image-link img {
        height: 100%;
        min-height: 170px;
    }

    .article-card__body {
        padding: 11px;
    }

    .article-card h3 {
        font-size: 12px;
        margin: 5px 0;
    }

    .article-card p {
        font-size: 9px;
        line-height: 1.8;
        margin-bottom: 8px;
    }

    .article-meta {
        font-size: 8px;
        flex-wrap: wrap;
    }

    .article-card>a,
    .article-card__body>a {
        font-size: 9px;
        padding: 6px 8px;
    }
}

/* ----- ۳۹۰px (گوشی کوچک) ----- */
@media (max-width: 390px) {
    .hero-section .hero-title {
        font-size: 23px;
    }

    .hero-section .hero-tags span {
        font-size: 9px;
        padding: 2px 8px;
    }

    .step {
        font-size: 8px;
    }

    .portfolio-feature {
        gap: 8px;
    }

    .project-row {
        gap: 8px;
    }

    .project-row__thumb {
        flex-basis: 52px;
        width: 52px;
        height: 42px;
    }

    .project-row__body strong {
        font-size: 12px;
    }

    .articles-more__btn {
        font-size: 10px;
        padding: 8px 14px;
    }
}

/* ============================================================
   Services (لیست + تک)
   ============================================================ */

/* Subhero */
.subhero--services .subhero__art {
    background-image: url('../images/software-illustration.jpg');
}

.subhero--service .subhero__art {
    background-image: url('../images/siteseo.png');
}

/* لیست خدمات */
.services-catalog {
    padding-top: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.service-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #b9d4f7;
}

.service-box__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e8f3ff, #d0e7ff);
    color: var(--blue);
    font-size: 28px;
    border-radius: 50%;
}

.service-box h3 {
    font-size: 15px;
    margin: 0 0 8px;
    font-weight: 800;
    line-height: 1.5;
}

.service-box h3 a {
    color: var(--navy);
}

.service-box h3 a:hover {
    color: var(--blue);
}

.service-box p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.9;
    margin: 0 0 14px;
    min-height: 42px;
}

.service-box .read-more {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    background: #eef6ff;
    color: #075db7;
    font-size: 11px;
    font-weight: 800;
    transition: background .2s;
}

.service-box .read-more:hover {
    background: #dceeff;
}

/* CTA */
.services-cta {
    margin: 30px auto;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(100deg, #eaf3ff, #fff);
    border: 1px solid #d4e4fa;
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.services-cta h2 {
    font-size: 18px;
    margin: 0 0 4px;
    color: var(--navy);
}

.services-cta p {
    font-size: 12px;
    margin: 0;
    color: var(--muted);
}

/* صفحه تک خدمت */
.service-detail {
    padding: 40px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.service-detail__hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.service-detail__icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e8f3ff, #d0e7ff);
    color: var(--blue);
    font-size: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.service-detail__hero h2 {
    font-size: 22px;
    margin: 0;
    color: var(--navy);
}

.service-detail__image {
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.service-detail__image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.service-detail__body {
    font-size: 13px;
    line-height: 2.2;
    color: #293e5d;
}

.service-detail__body h2,
.service-detail__body h3 {
    color: var(--navy);
    margin: 22px 0 8px;
    font-size: 19px;
}

.service-detail__body p {
    margin: 0 0 14px;
}

.service-detail__body ul,
.service-detail__body ol {
    padding-right: 22px;
    margin: 0 0 14px;
}

.service-detail__body li {
    margin: 0 0 6px;
}

.service-detail__body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 10px 0;
}

.service-detail__body blockquote {
    margin: 20px 0;
    padding: 14px 18px;
    border-right: 3px solid var(--blue);
    border-radius: 8px;
    background: #f0f6ff;
    color: #244c7c;
    font-size: 13px;
    font-weight: 700;
    line-height: 2;
}

.service-detail__sidebar {
    position: sticky;
    top: 100px;
}

.service-contact-box {
    background: linear-gradient(135deg, #eaf3ff, #fff);
    border: 1px solid #d4e4fa;
    border-radius: var(--radius-lg);
    padding: 22px;
    text-align: center;
}

.service-contact-box h3 {
    font-size: 16px;
    margin: 0 0 6px;
    color: var(--navy);
}

.service-contact-box p {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 14px;
    line-height: 1.9;
}

.related-services {
    padding: 30px 0;
}

/* ریسپانسیو */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .service-detail__sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-box {
        padding: 18px 16px;
    }

    .services-cta {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .services-cta h2 {
        font-size: 15px;
    }

    .service-detail {
        padding: 24px 0;
    }

    .service-detail__hero h2 {
        font-size: 19px;
    }

    .service-detail__icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}
/* ==================== Team ==================== */
.team-section { padding: 40px 0; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.team-grid--page {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.team-card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .3s, box-shadow .3s;
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-card__image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f3ff, #d0e7ff);
}
.team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.team-card:hover .team-card__image img { transform: scale(1.06); }

.team-card__avatar {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 60px;
    font-weight: 900;
    color: var(--navy);
}

.team-card__body {
    padding: 16px;
    text-align: center;
}
.team-card__body h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 4px;
}
.team-card__body p {
    font-size: 12px;
    color: var(--blue);
    margin: 0;
    font-weight: 600;
}
.team-card__email {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--muted);
    margin-top: 8px;
    direction: ltr;
}

/* Subhero Team */
.subhero--team .subhero__art { background-image: url('../images/soft.png'); }
.subhero--team-single .subhero__art { background-image: url('../images/siteseo.png'); }

/* Team Single */
.team-single { padding: 40px 0; }
.team-single__grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.team-single__avatar {
    position: sticky;
    top: 100px;
}
.team-single__avatar img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}
.team-single__avatar-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #e8f3ff, #d0e7ff);
    display: grid;
    place-items: center;
    font-size: 100px;
    font-weight: 900;
    color: var(--navy);
    box-shadow: var(--shadow-lg);
}

.team-single__content h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--navy);
    margin: 0 0 8px;
}
.team-single__position {
    display: inline-block;
    background: #eaf3ff;
    color: var(--blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}
.team-single__bio {
    font-size: 14px;
    line-height: 2.1;
    color: #3d4b63;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.team-single__contact {
    margin-bottom: 24px;
}
.team-single__contact h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 12px;
}
.team-single__contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--pale);
    border-radius: 10px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    margin-left: 8px;
    margin-bottom: 8px;
    transition: background .2s;
}
.team-single__contact a:hover {
    background: #e8f3ff;
    color: var(--blue);
}
.team-single__contact i { color: var(--blue); }

.team-single__socials {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.team-single__socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pale);
    display: grid;
    place-items: center;
    color: var(--navy);
    font-size: 16px;
    transition: all .2s;
}
.team-single__socials a:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-2px);
}

.team-single__cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 1100px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .team-grid--page { grid-template-columns: repeat(2, 1fr); }
    .team-single__grid { grid-template-columns: 1fr; gap: 24px; }
    .team-single__avatar { position: static; max-width: 300px; }
}
@media (max-width: 760px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .team-grid--page { grid-template-columns: 1fr; }
    .team-card__image { height: 150px; }
    .team-card__body { padding: 12px; }
    .team-card__body h3 { font-size: 13px; }
    .team-card__body p { font-size: 11px; }
    .team-single__content h1 { font-size: 22px; }
    .team-single__cta { flex-direction: column; }
    .team-single__cta .btn { width: 100%; }
}
/* ==================== نظرات مشتریان — ۴ ستون ==================== */
.testimonials-section { padding-top: 30px; padding-bottom: 30px; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 5px 18px rgba(9, 39, 92, .04);
    transition: transform .2s, box-shadow .2s;
}
.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
    font-size: 16px;
}
.testimonial-rating .star-filled { color: #f5a623; }
.testimonial-rating .star-empty  { color: #d4d4d4; }

.testimonial-title {
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--navy);
}

.testimonial-comment {
    font-size: 11px;
    line-height: 2;
    color: var(--muted);
    margin: 0 0 14px;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-top: 12px;
    border-top: 1px solid #edf2fa;
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0878dc, #06275f);
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 11px;
    color: var(--ink);
    font-weight: 800;
}

.testimonial-author span {
    display: block;
    font-size: 10px;
    color: var(--muted);
}

/* دکمه مشاهده همه نظرات */
.testimonials-more {
    text-align: center;
    margin-top: 25px;
}

/* دکمه نمایش همه اعضای تیم */
.team-more {
    text-align: center;
    margin-top: 25px;
}

/* ریسپانسیو */
@media (max-width: 1100px) {
    .testimonials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .testimonial-card { padding: 14px; }
    .testimonial-comment { font-size: 10px; }
}
@media (max-width: 430px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}


