/* =========================================
   صفحه معرفی نماد — چیدمان طرح معرفی
   ========================================= */

.about-page {
    --about-navy: #10366c;
    --about-navy-deep: #0e2f66;
    --about-gold: #f2b31e;
    --about-card-accent: var(--about-gold);
    --about-icon: #1b76d1;
    --about-muted: #4e6284;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 36px 0 64px;
    background: var(--page-bg,
        radial-gradient(820px 420px at 8% 0%, rgba(255, 255, 255, .72), transparent 62%),
        radial-gradient(680px 380px at 96% 12%, rgba(255, 255, 255, .55), transparent 58%),
        radial-gradient(540px 280px at 70% 42%, rgba(255, 255, 255, .35), transparent 60%),
        linear-gradient(180deg, #e7f4ff 0%, #e4eefc 42%, #e7f1ff 72%, #d7e7fb 100%));
}

.about-page-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.about-waves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.about-corner {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(320px, 30vw);
    height: 86px;
    display: block;
}

.about-page-inner {
    position: relative;
    z-index: 1;
}

/* هیرو: عنوان راست، تصویر چپ (چیدمان تصویر طرح در صفحهٔ راست‌به‌چپ) */
.about-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 42px;
    margin-bottom: 36px;
}

.about-hero-text,
.about-hero-image {
    position: relative;
    z-index: 1;
}

.about-hero-text {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 8px;
}

.about-hero-text h1 {
    margin: 0;
    color: var(--page-text, var(--about-navy-deep));
    font-size: clamp(30px, 3.15vw, 48px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.about-title-rule {
    display: block;
    width: 118px;
    height: 7px;
    margin-top: 16px;
    border-radius: 99px;
    background: var(--about-gold);
    box-shadow: 0 2px 0 rgba(242, 179, 30, .18);
}

.about-hero-text p {
    margin: 14px 0 0;
    max-width: 40em;
    color: var(--page-text, #3d5278);
    font-size: .98rem;
    line-height: 1.95;
    text-align: justify;
    text-justify: inter-word;
}

.about-hero-image {
    flex: 1.08 1 48%;
    max-width: 620px;
    padding: 10px;
    border-radius: 30px;
    background: #fff;
    box-shadow:
        0 18px 40px rgba(24, 64, 140, .14),
        0 2px 8px rgba(24, 64, 140, .06);
}

.about-hero-image img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center 42%;
    border-radius: 22px;
}

/* کارت‌های رویکرد / ارزش‌ها / نگرش / مأموریت */
.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 54px;
}

.about-feature-card {
    min-height: 248px;
    padding: 22px 20px 26px;
    border-radius: 22px;
    background: var(--page-card-bg, #fff);
    box-shadow:
        0 12px 28px rgba(36, 84, 168, .08),
        0 2px 6px rgba(36, 84, 168, .04);
}

.about-feature-head {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    background: radial-gradient(circle at 35% 30%, #4b9af0 0%, var(--about-icon) 42%, #1565c0 100%);
    box-shadow:
        0 6px 14px rgba(21, 101, 192, .28),
        inset 0 1px 0 rgba(255, 255, 255, .35);
}

.about-feature-icon svg,
.timeline-node svg {
    width: 24px;
    height: 24px;
    display: block;
}

.about-feature-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.about-feature-title h3 {
    margin: 0;
    color: var(--page-text, var(--about-navy));
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
}

.about-feature-rule {
    width: 72px;
    height: 5px;
    border-radius: 99px;
    background: var(--about-card-accent, var(--about-gold));
}

.about-feature-card p {
    margin: 18px 0 0;
    color: var(--page-text, var(--about-muted));
    font-size: .92rem;
    line-height: 1.9;
    text-align: right;
}

/* سیر تحول */
.about-timeline {
    padding: 8px 0 12px;
}

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

.about-timeline-rule {
    width: 52px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 99px;
    background: var(--about-gold);
}

.timeline-scroll {
    overflow: visible;
}

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

.timeline-item {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-node {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    background: radial-gradient(circle at 35% 30%, #4b9af0 0%, var(--about-icon) 46%, #1565c0 100%);
    border: 3px solid var(--about-gold);
    box-shadow: 0 6px 14px rgba(21, 90, 170, .18);
}

.timeline-box {
    direction: rtl;
    flex: 1 1 auto;
    width: 100%;
    min-height: 78px;
    margin-top: 16px;
    padding: 10px 8px 12px;
    border-radius: 16px;
    background: var(--page-card-bg, #fff);
    box-shadow: 0 8px 20px rgba(36, 84, 168, .08);
    text-align: center;
}

.timeline-box:empty {
    padding: 0;
}

.timeline-year {
    display: block;
    margin: 0 0 4px;
    color: var(--page-text, var(--about-navy));
    font-weight: 800;
    font-size: .95rem;
    line-height: 1.4;
    white-space: nowrap;
}

.timeline-desc {
    margin: 0;
    color: var(--page-text, var(--about-muted));
    font-size: .75rem;
    line-height: 1.7;
    text-align: center;
    text-wrap: balance;
}

/* خط نقطه‌چین طلایی بین آیکون‌ها — script.js عرض را می‌چیند */
.timeline-connector {
    position: absolute;
    top: 24px;
    height: 0;
    z-index: 0;
    pointer-events: none;
    width: 0 !important;
    border-top: 3px dotted var(--about-gold);
    background: none;
    overflow: visible;
    transition: width .7s ease;
    transition-delay: calc(var(--tl-i, 0) * .08s + .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;
    }
}

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

@media (max-width: 1100px) {
    .about-hero-text h1 {
        white-space: normal;
    }

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

    .about-feature-card {
        min-height: 200px;
    }
}

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

    .about-hero {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 22px;
        min-height: 0;
        margin-bottom: 28px;
    }

    .about-hero-image,
    .about-hero-text {
        width: 100%;
        max-width: none;
        flex: none;
    }

    .about-hero-image img {
        height: 220px;
    }

    .about-hero-text {
        padding-top: 12px;
        padding-bottom: 8px;
    }

    .about-hero-text h1 {
        white-space: normal;
    }

    .about-feature-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .about-feature-card {
        min-height: 0;
    }

    .timeline-scroll {
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .timeline-track {
        min-width: 920px;
        gap: 12px;
    }
}
