/* ==============================
   صفحه فناوری نماد — لبه هدر تا زیر تبلت / فوتر
   ============================== */

body.fanavari-body {
    background: #dce6f2;
}

.fanavari-page + .footer-new,
.fanavari-page ~ .footer-new,
.technology-section + .footer-new,
.technology-section ~ .footer-new {
    position: relative;
    z-index: 5;
    margin-top: 0;
    clear: both;
}

.fanavari-page.technology-section,
.technology-section {
    --fan-navy: #092c50;
    --fan-navy-deep: #0b1c44;
    --fan-gold: #f5b400;
    --fan-muted: #152d43;
    --fan-header-h: var(--header-height, 70px);
    position: relative;
    width: 100%;
    /* حداقل کل ارتفاع اسکرین زیر هدر؛ با محتوا بلندتر هم می‌شود */
    min-height: calc(100vh - var(--fan-header-h));
    min-height: calc(100dvh - var(--fan-header-h));
    height: auto;
    direction: rtl;
    overflow: hidden;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    display: block;
    font-family: "Vazirmatn", "YekanBakh", Tahoma, sans-serif;
    background: #d7e3f2;
    isolation: isolate;
}

.fanavari-page.technology-section::before,
.technology-section::before {
    content: none;
    display: none;
}

.fanavari-page-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.fanavari-city-photo,
.hero-city-photo {
    position: absolute;
    inset: 0;
}

.fanavari-city-photo img,
.hero-city-photo img {
    display: block;
    width: 100%;
    height: 100%;
    /* همیشه کل قاب را پر می‌کند؛ برش یکنواخت و ریسپانسیو */
    object-fit: cover;
    object-position: center center;
    filter: saturate(1.05) contrast(1.02);
    transform: none;
}

.fanavari-bg-wash {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 28%,
        rgba(240, 247, 255, 0.28) 52%,
        rgba(242, 248, 255, 0.55) 100%
    );
}

.fanavari-hero-image[hidden] {
    display: none !important;
}

/* specificity بالاتر از .container { padding:0 } در style.css */
.fanavari-page .container.fanavari-inner,
.technology-section .container.fanavari-inner,
.fanavari-inner.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding: 0 clamp(12px, 2vw, 20px) clamp(28px, 3vw, 40px) !important;
    box-sizing: border-box;
    min-height: calc(100dvh - var(--fan-header-h));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.technology-content {
    position: relative;
    z-index: 2;
    width: min(860px, 64%);
    max-width: 860px;
    margin-left: auto;
    /* کمی چسبیده‌تر به لبه راست */
    margin-right: 0;
    text-align: right;
    /* فاصله ۱ اینچ از هدر + کمی جابه‌جایی به راست */
    margin-top: 1in !important;
    padding-top: 0;
    transform: translateX(clamp(16px, 3vw, 48px));
}

.fanavari-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: rgba(9, 44, 80, 0.5);
}

.fanavari-breadcrumb a {
    color: rgba(9, 44, 80, 0.55);
    transition: color 0.2s ease;
}

.fanavari-breadcrumb a:hover {
    color: var(--fan-navy);
}

.fanavari-breadcrumb i {
    font-size: 0.7rem;
    color: rgba(9, 44, 80, 0.3);
}

.fanavari-breadcrumb span:last-child {
    color: var(--fan-navy);
    font-weight: 700;
}

.technology-title {
    font-size: clamp(32px, 3.4vw, 40px);
    font-weight: 900;
    color: var(--fan-navy);
    margin: 0 0 10px;
    line-height: 1.4;
}

.technology-title-rule {
    display: block;
    width: 56px;
    height: 4px;
    margin: 0 0 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, #ffcf55, var(--fan-gold));
    box-shadow: 0 0 10px rgba(245, 180, 0, 0.45);
}

.technology-description {
    font-size: clamp(14.5px, 1.15vw, 16px);
    font-weight: 500;
    line-height: 1.95;
    color: var(--fan-muted);
    margin: 0 0 20px;
    text-align: justify;
    text-justify: inter-word;
}

.technology-description[hidden],
p[data-cms-field="paragraph"][hidden] {
    display: none !important;
}

.technology-box {
    width: 100%;
    padding: 18px 16px 16px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(30, 60, 90, 0.08);
}

.technology-box-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--fan-navy);
    font-size: clamp(17px, 1.4vw, 20px);
    font-weight: 900;
    margin: 0 0 16px;
}

.technology-box-title::before,
.technology-box-title::after {
    content: "";
    width: 44px;
    height: 3px;
    background: var(--fan-gold);
    border-radius: 10px;
}

.technology-cards {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
}

.technology-card {
    flex: 1;
    min-width: 0;
    padding: 16px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.technology-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 25px rgba(15, 50, 85, 0.15);
}

.technology-card-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.technology-card-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #122a5c, #0b1c44);
    color: #fff;
    font-size: 17px;
    box-shadow: 0 4px 10px rgba(11, 28, 68, 0.28);
}

.technology-card h3 {
    font-size: clamp(14px, 1.15vw, 16px);
    font-weight: 900;
    color: #103b62;
    margin: 0;
    line-height: 1.35;
}

.technology-card p {
    font-size: clamp(12.5px, 0.95vw, 13.5px);
    font-weight: 500;
    line-height: 1.85;
    color: #26333d;
    text-align: justify;
    text-justify: inter-word;
    margin: 0;
}

body.lang-en .technology-content {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    transform: translateX(calc(-1 * clamp(16px, 3vw, 48px)));
}

body.lang-en .technology-description,
body.lang-en .technology-card p {
    text-align: left;
}

@media (max-width: 992px) {
    .technology-content {
        width: 72%;
        max-width: 780px;
        margin-right: 0;
        transform: translateX(clamp(8px, 2vw, 28px));
    }

    .technology-title {
        font-size: 32px;
    }

    .technology-cards {
        gap: 10px;
    }

    .technology-card {
        padding: 12px 10px;
    }

    .technology-card h3 {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .fanavari-page.technology-section,
    .technology-section {
        min-height: calc(100dvh - var(--fan-header-h));
        height: auto;
    }

    .fanavari-page .container.fanavari-inner,
    .technology-section .container.fanavari-inner,
    .fanavari-inner.container {
        padding: 0 16px 28px !important;
        min-height: calc(100dvh - var(--fan-header-h));
    }

    .technology-content {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0.75in !important;
        transform: none;
    }

    .fanavari-city-photo img,
    .hero-city-photo img {
        object-fit: cover;
        object-position: center center;
    }

    .fanavari-bg-wash {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.22) 0%,
            rgba(255, 255, 255, 0.12) 55%,
            rgba(220, 232, 245, 0.2) 100%
        );
    }

    .fanavari-breadcrumb {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 16px;
    }

    .technology-title {
        font-size: 28px;
        text-align: center;
    }

    .technology-title-rule {
        margin: 0 auto 14px;
    }

    .technology-description {
        font-size: 13px;
        text-align: center;
    }

    .technology-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .technology-card {
        min-height: 130px;
    }

    .technology-card-header {
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .technology-card h3,
    .technology-card p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .technology-cards {
        grid-template-columns: 1fr;
    }

    .technology-title {
        font-size: 24px;
    }

    .technology-box {
        padding: 10px;
        border-radius: 22px;
    }

    .technology-box-title {
        font-size: 16px;
        gap: 10px;
    }

    .technology-box-title::before,
    .technology-box-title::after {
        width: 25px;
    }
}
