/* =========================================
   صفحه معرفی نماد — عین تصویر مرجع
   مجسمه چپ + متن راست + کارت شیشه‌ای + تایم‌لاین
   ========================================= */

.about-page {
    --about-navy: #102c53;
    --about-navy-deep: #0b1c44;
    --about-gold: #e8b42a;
    --about-gold-soft: #f2c94a;
    --about-card-accent: var(--about-gold);
    --about-icon: #122a5c;
    --about-icon-deep: #091634;
    --about-muted: #243957;
    --about-header-h: var(--header-height, 70px);
    position: relative;
    isolation: isolate;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0;
    min-height: calc(100vh - var(--about-header-h));
    min-height: calc(100dvh - var(--about-header-h));
    font-family: "Vazirmatn", "YekanBakh", Tahoma, sans-serif;
    background: #cfdceb;
}

.about-page::before {
    content: none;
    display: none;
}

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

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

.hero-city-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(1.06) contrast(1.03) brightness(1.03);
    transform: none;
}

.about-bg-wash {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            105deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.03) 28%,
            rgba(236, 244, 255, 0.35) 58%,
            rgba(240, 246, 255, 0.58) 100%
        ),
        linear-gradient(
            180deg,
            rgba(230, 240, 252, 0.12) 0%,
            rgba(220, 234, 250, 0.04) 45%,
            rgba(210, 226, 245, 0.08) 78%,
            rgba(205, 222, 242, 0.18) 100%
        );
}

/* فوتر دقیقاً بعد از معرفی */
.about-page + .footer-new,
.about-page ~ .footer-new {
    position: relative;
    z-index: 5;
    margin-top: 0;
    clear: both;
}

.about-page-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding: clamp(28px, 4vw, 48px) 16px 28px;
    box-sizing: border-box;
    min-height: calc(100dvh - var(--about-header-h));
}

/* —— هیرو: متن راست بالا —— */
.about-hero {
    min-height: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: right;
    margin-bottom: 0;
    padding-top: 0;
    background: transparent !important;
    background-image: none !important;
    height: auto !important;
    box-shadow: none !important;
    border: none !important;
    color: inherit;
}

.about-hero-text {
    width: min(520px, 52%);
    padding: 4px 4px 8px 12px;
    /* متن معرفی ۱ اینچ پایین + کمی چپ‌تر */
    margin-top: 1in;
    margin-right: clamp(12px, 3vw, 48px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-hero-text h1 {
    margin: 0;
    color: var(--page-text, var(--about-navy-deep));
    font-size: clamp(30px, 2.9vw, 42px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

.about-title-rule {
    display: block;
    width: 58px;
    height: 4px;
    margin: 10px 0 14px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--about-gold-soft), var(--about-gold));
    box-shadow: 0 0 12px rgba(232, 180, 42, .5);
    align-self: flex-start;
}

.about-hero-text p {
    margin: 0;
    font-size: clamp(16px, 1.35vw, 19px);
    font-weight: 700;
    line-height: 2;
    color: var(--page-text, #102c53);
    max-width: 36em;
    text-align: justify;
    text-justify: inter-word;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
}

.about-hero-text p[hidden],
.about-hero-image[hidden] {
    display: none !important;
}

/* —— کارت‌ها: ۲×۲ سمت راست، عریض‌تر تا به سمت برج برسند —— */
.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 22px;
    width: min(640px, 58%);
    max-width: 640px;
    margin-top: clamp(18px, 3vw, 36px);
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: clamp(8px, 2vw, 28px);
    padding-top: 22px;
    overflow: visible;
}

.about-feature-card {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    height: 186px;
    min-height: 186px;
    max-height: 186px;
    padding: 34px 16px 16px;
    text-align: right;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px) saturate(1.08);
    -webkit-backdrop-filter: blur(6px) saturate(1.08);
    box-shadow:
        0 8px 22px rgba(8, 29, 65, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

/* درخشندگی بالا و پایین لبه کارت */
.about-feature-card::before,
.about-feature-card::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    height: 2px;
    border-radius: 99px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 207, 85, 0.15) 18%,
        #ffcf55 48%,
        #f2b31e 52%,
        rgba(255, 207, 85, 0.15) 82%,
        transparent 100%
    );
    box-shadow:
        0 0 10px rgba(242, 179, 30, 0.75),
        0 0 18px rgba(255, 207, 85, 0.45);
}

.about-feature-card::before {
    top: -1px;
}

.about-feature-card::after {
    bottom: -1px;
    opacity: 0.85;
    left: 24%;
    right: 24%;
}

.about-feature-card:hover {
    z-index: 2;
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.68);
    box-shadow:
        0 14px 28px rgba(10, 31, 65, 0.12),
        0 0 22px rgba(242, 179, 30, 0.12);
}

.about-feature-icon {
    position: absolute;
    top: -22px;
    right: 16px;
    left: auto;
    transform: none;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.05rem;
    background: radial-gradient(circle at 35% 28%, #1a3f78 0%, var(--about-icon) 48%, var(--about-icon-deep) 100%);
    border: 2px solid #0b1c44;
    box-shadow:
        0 0 0 2px rgba(242, 179, 30, 0.95),
        0 0 10px rgba(242, 179, 30, 0.85),
        0 0 18px rgba(255, 207, 85, 0.55),
        0 6px 14px rgba(9, 22, 52, 0.35);
}

.about-feature-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.about-feature-card h3 {
    margin: 4px 0 10px;
    color: var(--page-text, var(--about-navy));
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.35;
    text-align: right;
}

.about-feature-card p {
    margin: 0;
    flex: 1 1 auto;
    color: var(--page-text, var(--about-muted));
    font-size: 0.84rem;
    line-height: 1.75;
    font-weight: 700;
    text-align: right;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* —— تایم‌لاین —— */
.about-timeline {
    padding: 4px 0 8px;
}

.about-timeline-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 28px 0 30px;
    color: var(--page-text, var(--about-navy));
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 900;
    text-align: center;
}

.about-timeline-rule {
    width: min(100px, 12vw);
    height: 3px;
    flex: 0 0 auto;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, var(--about-gold), transparent);
    box-shadow: 0 0 10px rgba(232, 180, 42, 0.45);
}

.timeline-mobile-wrap {
    position: relative;
}

.timeline-nav,
.timeline-swipe-hint {
    display: none;
}

.timeline-scroll {
    overflow: visible;
}

.timeline-track {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
}

.timeline-item {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    align-self: stretch;
    min-width: 0;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.timeline-node {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0;
    background: radial-gradient(circle at 40% 30%, #ffe9a0 0%, var(--about-gold) 55%, #c99612 100%);
    border: 2px solid var(--about-navy-deep);
    box-shadow:
        0 0 0 3px rgba(11, 28, 68, 0.35),
        0 0 14px rgba(232, 180, 42, 0.65);
    z-index: 3;
}

.timeline-node i,
.timeline-node svg {
    display: none !important;
}

.timeline-box {
    direction: rtl;
    width: 100%;
    flex: 1 1 auto;
    min-height: 108px;
    height: 100%;
    padding: 12px 8px 14px;
    border-radius: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px) saturate(1.05);
    -webkit-backdrop-filter: blur(4px) saturate(1.05);
    box-shadow: 0 8px 20px rgba(10, 32, 68, 0.08);
    transition: transform 0.28s ease, background 0.28s ease;
}

.timeline-box:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.68);
}

.timeline-box:empty,
.timeline-box[aria-hidden="true"] {
    visibility: hidden;
    padding: 0;
    min-height: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.timeline-year {
    display: block;
    margin: 0 0 8px;
    color: var(--page-text, var(--about-navy));
    font-weight: 900;
    font-size: 1.12rem;
    line-height: 1.35;
    white-space: nowrap;
}

.timeline-desc {
    margin: 0;
    color: var(--page-text, #3d5278);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
    direction: rtl;
    text-wrap: balance;
}

.timeline-connector {
    position: absolute;
    top: 6px;
    height: 3px !important;
    z-index: 0;
    pointer-events: none;
    width: 0 !important;
    border: none;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, #f2c94a, #e8b42a, #f2c94a, transparent);
    box-shadow: 0 0 12px rgba(232, 180, 42, 0.55);
    transition: width 0.7s ease;
    transition-delay: calc(var(--tl-i, 0) * 0.08s + 0.15s);
}

.timeline-track.in-view .timeline-connector {
    width: var(--tl-w, 0) !important;
}

.timeline-connector::after,
.timeline-connector i {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .timeline-connector {
        transition: none !important;
        width: var(--tl-w, 0) !important;
    }

    .about-feature-card,
    .timeline-box {
        transition: none;
    }
}

body.lang-en .about-hero,
body.lang-en .about-hero-text {
    text-align: left;
    align-items: flex-start;
}

body.lang-en .about-title-rule {
    align-self: flex-start;
}

body.lang-en .about-feature-card,
body.lang-en .about-feature-card h3,
body.lang-en .about-feature-card p {
    text-align: left;
}

body.lang-en .about-feature-icon {
    right: auto;
    left: 16px;
}

body.lang-en .timeline-box,
body.lang-en .timeline-desc {
    direction: ltr;
}

@media (max-width: 1100px) {
    .about-hero-text {
        width: min(480px, 58%);
        margin-right: 12px;
    }

    .about-hero-text h1 {
        white-space: normal;
        font-size: clamp(26px, 3.2vw, 34px);
    }

    .about-feature-grid {
        width: min(560px, 62%);
        max-width: 560px;
        gap: 24px 18px;
        margin-right: 8px;
    }
}

body.lang-en .about-hero-text {
    margin-right: 0;
    margin-left: clamp(12px, 3vw, 48px);
}

body.lang-en .about-feature-grid {
    margin-left: clamp(8px, 2vw, 28px);
    margin-right: auto;
}

@media (max-width: 768px) {
    .about-page {
        padding: 0;
        min-height: 0;
    }

    .about-page-inner {
        padding: 24px 14px 24px;
    }

    .about-feature-grid {
        margin-top: 22px;
        padding-top: 22px;
        grid-template-columns: 1fr 1fr;
        gap: 28px 12px;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* موبایل: پوشش کامل بدون برش نامتوازن */
    .hero-city-photo img {
        object-fit: cover;
        object-position: center center;
        width: 100%;
        height: 100%;
        transform: none;
        filter: saturate(1.08) contrast(1.02) brightness(1.05);
    }

    .about-page-bg {
        overflow: hidden;
    }

    .about-bg-wash {
        background:
            linear-gradient(
                180deg,
                rgba(236, 244, 255, 0.28) 0%,
                rgba(232, 242, 255, 0.14) 42%,
                rgba(220, 234, 250, 0.2) 100%
            );
    }

    .about-hero {
        min-height: 0;
        margin-bottom: 36px;
        justify-content: center;
    }

    .about-hero-text {
        width: 100%;
        max-width: none;
        align-items: center;
        text-align: center;
        padding: 0;
        margin-top: 0.55in;
    }

    .about-hero-text {
        margin-right: 0;
    }

    .about-hero-text h1 {
        font-size: clamp(26px, 6.5vw, 32px);
        text-align: center;
        white-space: normal;
    }

    .about-hero-text p {
        font-size: 16px;
        text-align: center;
        text-justify: auto;
    }

    .about-title-rule {
        align-self: center;
        margin: 10px auto 14px;
    }

    .about-feature-card {
        height: 178px;
        min-height: 178px;
        max-height: 178px;
        padding: 32px 14px 16px;
        text-align: center;
        overflow: visible;
    }

    .about-feature-icon {
        right: 50%;
        transform: translateX(50%);
    }

    body.lang-en .about-feature-icon {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

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

    .about-timeline-title {
        flex-wrap: wrap;
        gap: 10px;
        margin: 32px 0 18px;
        font-size: 1rem;
    }

    .about-timeline-rule {
        width: 36px;
    }

    /* تایم‌لاین موبایل: اسکرول افقی واضح */
    .timeline-mobile-wrap {
        position: relative;
        margin: 0 -6px;
        padding: 0 6px 6px;
    }

    .timeline-nav {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 42%;
        z-index: 4;
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 50%;
        color: #102c53;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 4px 14px rgba(16, 44, 83, 0.18);
        cursor: pointer;
    }

    .timeline-nav-prev {
        right: 2px;
    }

    .timeline-nav-next {
        left: 2px;
    }

    .timeline-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px 28px 14px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 28px;
        scrollbar-width: thin;
        scrollbar-color: #e8b42a transparent;
    }

    .timeline-scroll::-webkit-scrollbar {
        height: 4px;
    }

    .timeline-scroll::-webkit-scrollbar-thumb {
        background: #e8b42a;
        border-radius: 99px;
    }

    .timeline-track {
        min-width: 0;
        width: max-content;
        gap: 12px;
        padding-inline: 4px;
    }

    .timeline-item {
        flex: 0 0 min(78vw, 280px);
        width: min(78vw, 280px);
        min-width: min(78vw, 280px);
        scroll-snap-align: center;
    }

    .timeline-box {
        min-height: 110px;
    }
}

@media (max-width: 480px) {
    .about-feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px 10px;
    }
}

/* —— عریض: باید آخر فایل باشد تا قوانین پایه override نشوند —— */
@media (min-width: 1440px) {
    .about-page .about-page-inner {
        max-width: min(1480px, 94vw);
        padding-inline: 24px;
    }

    .about-page .about-feature-grid {
        width: min(820px, 68%);
        max-width: 820px;
        gap: 28px 28px;
        margin-right: clamp(4px, 1.2vw, 20px);
    }

    .about-page .about-timeline {
        margin-top: 48px;
        padding-top: 20px;
    }

    .about-page .about-timeline-title {
        font-size: 24px !important;
        font-weight: 900 !important;
        margin: 32px 0 34px;
        letter-spacing: -0.01em;
    }

    .about-page .about-timeline-rule {
        width: min(130px, 12vw);
        height: 4px;
    }

    .about-page .timeline-year {
        font-size: 20px !important;
        font-weight: 900 !important;
        margin-bottom: 8px !important;
    }

    .about-page .timeline-desc,
    .about-page p.timeline-desc {
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.8 !important;
    }

    .about-page .timeline-box {
        min-height: 120px !important;
        padding: 14px 10px 16px !important;
    }

    .about-page .timeline-node {
        width: 18px;
        height: 18px;
    }

    .about-page .timeline-track {
        gap: 14px;
    }
}

@media (min-width: 2560px) {
    .about-page .about-page-inner {
        max-width: min(2100px, 90vw);
        padding-inline: 36px;
    }

    .about-page .about-hero-text {
        width: min(640px, 42%);
    }

    .about-page .about-hero-text h1 {
        font-size: clamp(48px, 2.3vw, 64px);
        font-weight: 900;
    }

    .about-page .about-hero-text p {
        font-size: clamp(22px, 1.1vw, 26px);
        font-weight: 800;
    }

    .about-page .about-feature-grid {
        width: min(1120px, 72%);
        max-width: 1120px;
        gap: 36px 36px;
        margin-right: clamp(8px, 1.5vw, 32px);
    }

    .about-page .about-feature-card {
        height: 250px;
        min-height: 250px;
        max-height: 250px;
        padding: 44px 26px 22px;
        border-radius: 20px;
    }

    .about-page .about-feature-card h3 {
        font-size: 1.55rem;
        font-weight: 900;
        margin-bottom: 14px;
    }

    .about-page .about-feature-card p {
        font-size: 1.2rem;
        font-weight: 800;
        line-height: 1.9;
        -webkit-line-clamp: 5;
    }

    .about-page .about-feature-icon {
        width: 56px;
        height: 56px;
        top: -28px;
        font-size: 1.28rem;
    }

    .about-page .about-feature-icon svg {
        width: 22px;
        height: 22px;
    }

    .about-page .about-timeline {
        margin-top: 72px;
        padding-top: 28px;
    }

    .about-page .about-timeline-title {
        font-size: 30px !important;
        font-weight: 900 !important;
        margin: 40px 0 42px;
        gap: 22px;
    }

    .about-page .about-timeline-rule {
        width: min(160px, 12vw);
        height: 4px;
    }

    .about-page .timeline-year {
        font-size: 26px !important;
        font-weight: 900 !important;
        margin-bottom: 10px !important;
    }

    .about-page .timeline-desc,
    .about-page p.timeline-desc {
        font-size: 18px !important;
        font-weight: 800 !important;
        line-height: 1.85 !important;
    }

    .about-page .timeline-box {
        min-height: 145px !important;
        padding: 16px 12px 18px !important;
        border-radius: 16px;
    }

    .about-page .timeline-node {
        width: 24px;
        height: 24px;
        border-width: 3px;
    }

    .about-page .timeline-connector {
        top: 9px;
        height: 4px !important;
    }

    .about-page .timeline-track {
        gap: 18px;
    }
}
