/* =========================================================
   صفحات آرشیو/فهرست مطالب (اخبار و مقالات دسته‌بندی‌شده)
   یک سیستم طراحی مشترک برای همه‌ی این صفحات، الهام‌گرفته از
   ریتم تحریریه‌ی archaeology.org و nationalgeographic.com:
   تصویر بزرگ، تایپوگرافی واضح، فضای سفید کافی، رنگ لهجه‌ی
   مخصوص هر موضوع.
   هر صفحه با یک کلاس modifier (.archive-hero--xxx) رنگ لهجه‌ی
   خودش را می‌گیرد؛ بقیه‌ی ساختار مشترک است.
   ========================================================= */

.archive-hero {
    --accent: #213074;
    --accent-soft: rgba(33, 48, 116, .1);
    background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #0b0e1a) 100%);
    color: #fff;
    border-radius: 0 0 28px 28px;
    padding: 2.4rem 0 2.6rem;
    margin-bottom: 2rem;
}

.archive-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.archive-hero-icon {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: #fff;
}

.archive-hero-text {
    flex: 1 1 320px;
    min-width: 0;
}

.archive-hero-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin: 0 0 .5rem;
    color: #fff;
    letter-spacing: -.5px;
}

.archive-hero-desc {
    font-size: 1.05rem;
    line-height: 1.9;
    opacity: .92;
    max-width: 680px;
    margin: 0;
}

.archive-hero-tags {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.archive-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    border-radius: 30px;
    padding: .35rem 1rem;
    font-size: .82rem;
}

/* ---------------------------------------------------------
   جعبه‌ی جستجو
   --------------------------------------------------------- */
.archive-search {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.6rem;
}

.archive-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.archive-search-field {
    flex: 1 1 220px;
    position: relative;
}

    .archive-search-field .fa-search {
        position: absolute;
        top: 50%;
        right: 1.1rem;
        transform: translateY(-50%);
        color: #94a3b8;
    }

.archive-search-input {
    width: 100%;
    border-radius: 30px;
    border: 1px solid #d1d5db;
    padding: .7rem 2.6rem .7rem 1.2rem;
    font-size: .95rem;
    background: #fff;
}

    .archive-search-input:focus {
        outline: none;
        border-color: var(--accent, #213074);
        box-shadow: 0 0 0 3px var(--accent-soft, rgba(33, 48, 116, .12));
    }

.archive-search-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.archive-btn {
    border-radius: 30px;
    padding: .65rem 1.6rem;
    font-weight: 600;
    font-size: .9rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    text-decoration: none;
    transition: background .2s ease, transform .15s ease;
}

.archive-btn--primary {
    background: var(--accent, #213074);
    color: #fff;
}

    .archive-btn--primary:hover {
        filter: brightness(1.08);
        color: #fff;
    }

.archive-btn--ghost {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #1e293b;
}

    .archive-btn--ghost:hover {
        background: #f1f5f9;
        color: #1e293b;
    }

/* ---------------------------------------------------------
   ردیف اطلاعات (شماره صفحه)
   --------------------------------------------------------- */
.archive-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.4rem;
    color: #64748b;
    font-size: .9rem;
}

    .archive-meta-row strong {
        color: var(--accent, #213074);
    }

/* ---------------------------------------------------------
   شبکه‌ی کارت‌ها
   --------------------------------------------------------- */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    margin-bottom: 2rem;
}

.archive-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .archive-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 28px rgba(15, 23, 42, .12);
    }

.archive-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
}

.archive-card-media--square {
    aspect-ratio: 1 / 1;
}

.archive-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.archive-card:hover .archive-card-media img {
    transform: scale(1.06);
}

.archive-card-body {
    padding: 1rem 1.1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.archive-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.55;
    color: #1a202c;
    margin: 0 0 .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    font-size: .78rem;
    color: #64748b;
    margin-bottom: .6rem;
}

    .archive-card-meta i {
        margin-left: 4px;
        color: var(--accent, #213074);
    }

.archive-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: auto;
}

.archive-card-tag {
    background: var(--accent-soft, #e2e8f0);
    color: var(--accent, #1e293b);
    border-radius: 20px;
    padding: .2rem .75rem;
    font-size: .7rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: background .2s ease;
}

    .archive-card-tag:hover {
        background: var(--accent, #213074);
        color: #fff;
    }

/* ---------------------------------------------------------
   حالت خالی (بدون نتیجه)
   --------------------------------------------------------- */
.archive-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
    margin-bottom: 2rem;
}

    .archive-empty i {
        font-size: 2.4rem;
        color: var(--accent, #213074);
        margin-bottom: .8rem;
        display: block;
    }

    .archive-empty p {
        font-size: 1.05rem;
        margin: 0 0 1rem;
    }

/* ---------------------------------------------------------
   صفحه‌بندی
   --------------------------------------------------------- */
.archive-pagination.pagination {
    margin-top: 1rem;
}

.archive-pagination .pagination-previous,
.archive-pagination .pagination-next {
    border-radius: 30px;
    background: #fff;
    border: 1px solid #d1d5db;
    padding: .45rem 1.2rem;
}

    .archive-pagination .pagination-previous[disabled],
    .archive-pagination .pagination-next[disabled] {
        opacity: .5;
    }

.archive-pagination .pagination-link {
    border-radius: 50%;
    min-width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #d1d5db;
    color: #1e293b;
}

    .archive-pagination .pagination-link.is-current {
        background: var(--accent, #213074);
        color: #fff;
        border-color: var(--accent, #213074);
    }

/* ---------------------------------------------------------
   آخرین مطالب (۵ مطلب نخست): فهرست متنی + یک تصویر شاخص بزرگ
   --------------------------------------------------------- */
.archive-latest {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.6rem;
    direction: rtl;
}

.archive-latest-feature {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    min-height: 320px;
}

    .archive-latest-feature img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

    .archive-latest-feature:hover img {
        transform: scale(1.04);
    }

.archive-latest-feature-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.6rem 1.8rem;
    background: linear-gradient(to top, rgba(10, 14, 30, .92) 0%, rgba(10, 14, 30, .35) 55%, rgba(10, 14, 30, 0) 100%);
}

    .archive-latest-feature-overlay h3 {
        color: #fff;
        font-size: 1.5rem;
        font-weight: 800;
        margin: 0;
        line-height: 1.6;
    }

.archive-latest-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.archive-latest-item {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #edf2f7;
}

    .archive-latest-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.archive-latest-thumb {
    flex: 0 0 110px;
    width: 110px;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
}

    .archive-latest-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

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

    .archive-latest-text h3 {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.6;
        color: #1a202c;
        margin: 0 0 .4rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .archive-latest-text p {
        font-size: .85rem;
        line-height: 1.75;
        color: #64748b;
        margin: 0 0 .5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.archive-latest-date {
    font-size: .76rem;
    color: #94a3b8;
}

    .archive-latest-date i {
        margin-left: 4px;
    }

/* ---------------------------------------------------------
   ردیف تبلیغات: دو باکس مساوی
   --------------------------------------------------------- */
.archive-ads-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.archive-ad-box {
    min-height: 90px;
    background: #f8fafc;
    border: 1px dashed #d8dee8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .archive-latest {
        grid-template-columns: 1fr;
    }

    .archive-latest-feature {
        min-height: 220px;
    }

    .archive-ads-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .archive-latest-thumb {
        flex-basis: 84px;
        width: 84px;
    }
}

/* ---------------------------------------------------------
   لهجه‌های رنگی هر دسته
   --------------------------------------------------------- */
.archive-hero--arcology {
    --accent: #8a6d3b;
    --accent-soft: rgba(138, 109, 59, .12);
}

.archive-hero--history {
    --accent: #213074;
    --accent-soft: rgba(33, 48, 116, .1);
}

.archive-hero--economy {
    --accent: #1c5d99;
    --accent-soft: rgba(28, 93, 153, .1);
}

.archive-hero--science {
    --accent: #0f9d78;
    --accent-soft: rgba(15, 157, 120, .1);
}

.archive-hero--culture {
    --accent: #6a3f9e;
    --accent-soft: rgba(106, 63, 158, .1);
}

.archive-hero--nature-ir {
    --accent: #2f6f4f;
    --accent-soft: rgba(47, 111, 79, .1);
}

.archive-hero--nature-wd {
    --accent: #1b6e8c;
    --accent-soft: rgba(27, 110, 140, .1);
}

.archive-hero--place {
    --accent: #a15c38;
    --accent-soft: rgba(161, 92, 56, .12);
}

.archive-hero--people {
    --accent: #c9a227;
    --accent-soft: rgba(201, 162, 39, .12);
}

.archive-hero--story {
    --accent: #7a3b4a;
    --accent-soft: rgba(122, 59, 74, .12);
}

/* هماهنگ‌سازی رنگ لهجه با کارت‌ها و جستجو، مستقل از محل هرو */
.archive-page--arcology {
    --accent: #8a6d3b;
    --accent-soft: rgba(138, 109, 59, .1);
}

.archive-page--history {
    --accent: #213074;
    --accent-soft: rgba(33, 48, 116, .08);
}

.archive-page--economy {
    --accent: #1c5d99;
    --accent-soft: rgba(28, 93, 153, .08);
}

.archive-page--science {
    --accent: #0f9d78;
    --accent-soft: rgba(15, 157, 120, .08);
}

.archive-page--culture {
    --accent: #6a3f9e;
    --accent-soft: rgba(106, 63, 158, .08);
}

.archive-page--nature-ir {
    --accent: #2f6f4f;
    --accent-soft: rgba(47, 111, 79, .08);
}

.archive-page--nature-wd {
    --accent: #1b6e8c;
    --accent-soft: rgba(27, 110, 140, .08);
}

.archive-page--place {
    --accent: #a15c38;
    --accent-soft: rgba(161, 92, 56, .1);
}

.archive-page--people {
    --accent: #c9a227;
    --accent-soft: rgba(201, 162, 39, .1);
}

.archive-page--story {
    --accent: #7a3b4a;
    --accent-soft: rgba(122, 59, 74, .1);
}

/* ---------------------------------------------------------
   واکنش‌گرایی
   --------------------------------------------------------- */
@media (max-width: 1200px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-hero-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 600px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .archive-hero {
        border-radius: 0 0 20px 20px;
        padding: 1.8rem 0 2rem;
    }

    .archive-hero-inner {
        text-align: center;
        justify-content: center;
    }

    .archive-hero-desc {
        margin: 0 auto;
    }

    .archive-search-form {
        flex-direction: column;
    }

    .archive-search-actions {
        justify-content: stretch;
    }

        .archive-search-actions .archive-btn {
            flex: 1;
            justify-content: center;
        }
}
/* =========================================================
   تبلیغ مرکز تحلیل سرمایه‌گذاری بازار مسکن
   ========================================================= */

.archive-ad-box--investment {
    position: relative;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: none;
    background: transparent;
}

.investment-ad {
    --ad-navy: #071a2f;
    --ad-blue: #1268b3;
    --ad-light-blue: #45b9f5;
    --ad-orange: #ff7a00;
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    border-radius: 18px;
    background: radial-gradient( circle at 85% 20%, rgba(69, 185, 245, .24), transparent 32% ), linear-gradient( 135deg, #071a2f 0%, #0a2948 55%, #06213a 100% );
    border: 1px solid rgba(69, 185, 245, .28);
    box-shadow: 0 12px 30px rgba(7, 26, 47, .16);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .investment-ad:hover {
        color: #fff;
        text-decoration: none;
        transform: translateY(-3px);
        border-color: rgba(255, 122, 0, .65);
        box-shadow: 0 18px 38px rgba(7, 26, 47, .25);
    }


/* نور پس‌زمینه */

.investment-ad-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    top: -120px;
    left: -80px;
    border-radius: 50%;
    background: rgba(255, 122, 0, .12);
    filter: blur(8px);
    pointer-events: none;
}


/* برند */

.investment-ad-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem 1rem .55rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.investment-ad-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 11px;
    background: #071a2f;
    border: 1px solid rgba(255,255,255,.18);
}

    .investment-ad-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.investment-ad-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

    .investment-ad-brand-text strong {
        font-size: .72rem;
        font-weight: 600;
        color: rgba(255,255,255,.82);
    }

    .investment-ad-brand-text span {
        font-size: 1.05rem;
        font-weight: 900;
        color: #fff;
    }


/* محتوای اصلی */

.investment-ad-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: .8rem;
    padding: .85rem 1rem .75rem;
}

.investment-ad-copy {
    min-width: 0;
}

.investment-ad-label {
    display: inline-block;
    margin-bottom: .3rem;
    font-size: .65rem;
    font-weight: 700;
    color: #45b9f5;
}

.investment-ad h3 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.35;
    color: #fff;
}

    .investment-ad h3 strong {
        color: #ff7a00;
    }

.investment-ad-question {
    margin: .25rem 0 .6rem;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.5;
    color: rgba(255,255,255,.92);
}


/* ویژگی‌ها */

.investment-ad-features {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .45rem;
}

    .investment-ad-features span {
        display: inline-flex;
        align-items: center;
        gap: .25rem;
        padding: .24rem .48rem;
        border-radius: 20px;
        background: rgba(255,255,255,.075);
        border: 1px solid rgba(255,255,255,.08);
        font-size: .62rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .investment-ad-features i {
        color: #ff7a00;
    }


/* نمودار */

.investment-ad-visual {
    position: relative;
    min-height: 112px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient( 180deg, rgba(18,104,179,.32), rgba(7,26,47,.15) );
    border: 1px solid rgba(69,185,245,.16);
}


    /* خطوط شبکه نمودار */

    .investment-ad-visual::before {
        content: "";
        position: absolute;
        inset: 15px;
        background-image: linear-gradient( rgba(255,255,255,.07) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255,255,255,.07) 1px, transparent 1px );
        background-size: 25px 25px;
        opacity: .7;
    }


/* ستون‌های نمودار */

.investment-ad-chart {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 28px;
    height: 65px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    z-index: 2;
}

    .investment-ad-chart span {
        flex: 1;
        min-width: 5px;
        border-radius: 4px 4px 0 0;
        background: linear-gradient( 180deg, #45b9f5, #1268b3 );
        box-shadow: 0 0 10px rgba(69,185,245,.2);
    }


/* آیکون رشد */

.investment-ad-arrow {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 3;
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ff7a00;
    color: #fff;
    font-size: .72rem;
    box-shadow: 0 4px 12px rgba(255,122,0,.35);
}


/* دارایی‌ها */

.investment-ad-assets {
    position: absolute;
    bottom: 7px;
    left: 9px;
    right: 9px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    font-size: .52rem;
    font-weight: 700;
    color: rgba(255,255,255,.75);
}


/* CTA */

.investment-ad-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin: 0 1rem .65rem;
    padding: .55rem .7rem;
    border-radius: 10px;
    background: rgba(255,255,255,.065);
    border: 1px solid rgba(255,255,255,.08);
}

    .investment-ad-bottom > span:first-child {
        display: flex;
        align-items: center;
        gap: .4rem;
        font-size: .68rem;
        font-weight: 600;
    }

        .investment-ad-bottom > span:first-child i {
            color: #45b9f5;
        }

.investment-ad-cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem;
    border-radius: 20px;
    background: #ff7a00;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    white-space: nowrap;
    transition: transform .2s ease;
}

.investment-ad:hover .investment-ad-cta {
    transform: translateX(-4px);
}


/* پایین تبلیغ */

.investment-ad-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .55rem 1rem;
    background: rgba(0,0,0,.22);
    border-top: 1px solid rgba(255,255,255,.07);
}

    .investment-ad-footer strong {
        font-size: .68rem;
        font-weight: 800;
        color: #fff;
    }

    .investment-ad-footer span {
        font-size: .68rem;
        font-weight: 800;
        color: #ff7a00;
        direction: ltr;
    }


/* موبایل */

@media (max-width: 600px) {

    .investment-ad-content {
        grid-template-columns: 1fr;
    }

    .investment-ad-visual {
        display: none;
    }

    .investment-ad h3 {
        font-size: 1.3rem;
    }

    .investment-ad-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   KHERADA ARCHIVE HERO
   Unified Professional Icon Animation System
   Font Awesome 7.0 Compatible
   ========================================================= */

/* ---------------------------------------------------------
   Shared Hero Icon Foundation
   --------------------------------------------------------- */
.archive-hero .archive-hero-icon {
    position: relative;
    isolation: isolate;
    overflow: visible;
    transition: transform .35s ease, background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
}

    .archive-hero .archive-hero-icon::before {
        content: "";
        position: absolute;
        inset: -5px;
        border-radius: 25px;
        opacity: 0;
        z-index: -1;
        pointer-events: none;
    }

    .archive-hero .archive-hero-icon > i {
        display: inline-block;
        will-change: transform;
    }

    /* Hover مشترک کادر اصلی */
    .archive-hero .archive-hero-icon:hover {
        transform: translateY(-3px);
        background-color: rgba(255, 255, 255, .17);
        box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
    }

/* Hover مشترک آیکون‌های Tag */
.archive-hero .archive-hero-tag i {
    display: inline-block;
    transition: transform .25s ease, opacity .25s ease;
}

.archive-hero .archive-hero-tag:hover i {
    transform: translateY(-1px) scale(1.07);
}


/* =========================================================
   01. ARCHAEOLOGY NEWS
   archive-hero--arcology
   Trowel + Clock / Discovery Glow
   ========================================================= */

.archive-hero--arcology .archive-hero-icon {
    animation: kh-arcology-icon-glow 5s ease-in-out infinite;
}

    .archive-hero--arcology .archive-hero-icon::before {
        background: rgba(255, 215, 150, .08);
        box-shadow: 0 0 0 rgba(255, 215, 150, 0);
        animation: kh-arcology-discovery-glow 5s ease-in-out infinite;
    }

    .archive-hero--arcology .archive-hero-icon i.fa-trowel {
        transform-origin: 50% 80%;
        animation: kh-arcology-trowel 4s ease-in-out infinite;
    }

.archive-hero--arcology .archive-hero-tag i.fa-clock {
    transform-origin: 50% 50%;
    animation: kh-arcology-clock 5s ease-in-out infinite;
}

@keyframes kh-arcology-trowel {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    20% {
        transform: translateY(-2px) rotate(-4deg);
    }

    40% {
        transform: translateY(0) rotate(2deg);
    }

    60% {
        transform: translateY(-3px) rotate(-3deg);
    }

    80% {
        transform: translateY(0) rotate(1deg);
    }
}

@keyframes kh-arcology-clock {
    0%, 85%, 100% {
        transform: rotate(0deg);
    }

    88% {
        transform: rotate(-8deg);
    }

    91% {
        transform: rotate(7deg);
    }

    94% {
        transform: rotate(-4deg);
    }

    97% {
        transform: rotate(2deg);
    }
}

@keyframes kh-arcology-icon-glow {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    }

    50% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, .12), 0 0 18px rgba(255, 215, 150, .10);
    }
}

@keyframes kh-arcology-discovery-glow {
    0%, 65%, 100% {
        opacity: 0;
        box-shadow: 0 0 0 rgba(255, 215, 150, 0);
    }

    72% {
        opacity: .45;
        box-shadow: 0 0 10px rgba(255, 215, 150, .10), 0 0 20px rgba(255, 215, 150, .06);
    }

    82% {
        opacity: .75;
        box-shadow: 0 0 14px rgba(255, 215, 150, .14), 0 0 26px rgba(255, 215, 150, .08);
    }

    92% {
        opacity: .25;
        box-shadow: 0 0 8px rgba(255, 215, 150, .06);
    }
}


/* =========================================================
   02. ECONOMY & HOUSING NEWS
   archive-hero--economy
   Chart + Coins
   ========================================================= */

.archive-hero--economy .archive-hero-icon {
    animation: kh-economy-icon-glow 5.5s ease-in-out infinite;
}

    .archive-hero--economy .archive-hero-icon::before {
        background: rgba(255, 255, 255, .04);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
        animation: kh-economy-pulse 5.5s ease-in-out infinite;
    }

    .archive-hero--economy .archive-hero-icon i.fa-chart-line {
        transform-origin: center bottom;
        animation: kh-economy-chart 4.5s ease-in-out infinite;
    }

.archive-hero--economy .archive-hero-tag i.fa-coins {
    transform-origin: center center;
    animation: kh-economy-coins 5s ease-in-out infinite;
}

.archive-hero--economy .archive-hero-tag i.fa-house {
    transform-origin: center bottom;
}

@keyframes kh-economy-chart {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    20% {
        transform: translateY(-2px) rotate(-1deg);
    }

    40% {
        transform: translateY(0) rotate(.5deg);
    }

    60% {
        transform: translateY(-3px) rotate(-.7deg);
    }

    80% {
        transform: translateY(0) rotate(.3deg);
    }
}

@keyframes kh-economy-coins {
    0%, 72%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    76% {
        transform: translateY(-1px) rotate(-4deg);
    }

    80% {
        transform: translateY(0) rotate(3deg);
    }

    84% {
        transform: translateY(-1px) rotate(-2deg);
    }

    88% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes kh-economy-icon-glow {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    }

    50% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, .13), 0 0 16px rgba(255, 255, 255, .07);
    }
}

@keyframes kh-economy-pulse {
    0%, 68%, 100% {
        opacity: 0;
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }

    75% {
        opacity: .30;
        box-shadow: 0 0 10px rgba(255, 255, 255, .06);
    }

    82% {
        opacity: .55;
        box-shadow: 0 0 16px rgba(255, 255, 255, .09), 0 0 25px rgba(255, 255, 255, .04);
    }

    90% {
        opacity: .15;
        box-shadow: 0 0 8px rgba(255, 255, 255, .04);
    }
}


/* =========================================================
   03. SOCIAL & CULTURAL
   archive-hero--social
   People Group
   ========================================================= */

.archive-hero--social .archive-hero-icon {
    animation: kh-social-icon-glow 6s ease-in-out infinite;
}

    .archive-hero--social .archive-hero-icon::before {
        background: rgba(255, 255, 255, .04);
        animation: kh-social-pulse 6s ease-in-out infinite;
    }

    .archive-hero--social .archive-hero-icon i.fa-people-group {
        animation: kh-social-people 5s ease-in-out infinite;
    }

@keyframes kh-social-people {
    0%, 100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-2px);
    }

    60% {
        transform: translateY(1px);
    }
}

@keyframes kh-social-icon-glow {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    }

    50% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, .12), 0 0 16px rgba(255, 255, 255, .07);
    }
}

@keyframes kh-social-pulse {
    0%, 70%, 100% {
        opacity: 0;
    }

    80% {
        opacity: .35;
        box-shadow: 0 0 14px rgba(255, 255, 255, .08);
    }

    88% {
        opacity: .55;
        box-shadow: 0 0 24px rgba(255, 255, 255, .10);
    }

    95% {
        opacity: 0;
    }
}


/* =========================================================
   04. WORLD NATURE
   archive-hero--nature-world
   Earth Americas
   ========================================================= */

.archive-hero--nature-world .archive-hero-icon {
    animation: kh-world-icon-glow 7s ease-in-out infinite;
}

    .archive-hero--nature-world .archive-hero-icon::before {
        background: rgba(255, 255, 255, .04);
        animation: kh-world-pulse 7s ease-in-out infinite;
    }

    .archive-hero--nature-world .archive-hero-icon i.fa-earth-americas {
        transform-origin: center center;
        animation: kh-world-earth 8s ease-in-out infinite;
    }

@keyframes kh-world-earth {
    0%, 100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(4deg);
    }
}

@keyframes kh-world-icon-glow {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    }

    50% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, .11), 0 0 18px rgba(255, 255, 255, .07);
    }
}

@keyframes kh-world-pulse {
    0%, 72%, 100% {
        opacity: 0;
    }

    82% {
        opacity: .35;
        box-shadow: 0 0 16px rgba(255, 255, 255, .08);
    }

    90% {
        opacity: .55;
        box-shadow: 0 0 26px rgba(255, 255, 255, .10);
    }

    96% {
        opacity: 0;
    }
}


/* =========================================================
   05. IRAN NATURE
   archive-hero--nature-iran
   Mountain Sun
   ========================================================= */

.archive-hero--nature-iran .archive-hero-icon {
    animation: kh-iran-icon-glow 6s ease-in-out infinite;
}

    .archive-hero--nature-iran .archive-hero-icon::before {
        background: rgba(255, 255, 255, .04);
        animation: kh-iran-pulse 6s ease-in-out infinite;
    }

    .archive-hero--nature-iran .archive-hero-icon i.fa-mountain-sun {
        transform-origin: center bottom;
        animation: kh-iran-mountain 5s ease-in-out infinite;
    }

@keyframes kh-iran-mountain {
    0%, 100% {
        transform: translateY(1px);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes kh-iran-icon-glow {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    }

    50% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, .11), 0 0 18px rgba(255, 255, 255, .07);
    }
}

@keyframes kh-iran-pulse {
    0%, 70%, 100% {
        opacity: 0;
    }

    80% {
        opacity: .30;
        box-shadow: 0 0 15px rgba(255, 255, 255, .07);
    }

    88% {
        opacity: .50;
        box-shadow: 0 0 24px rgba(255, 255, 255, .10);
    }

    95% {
        opacity: 0;
    }
}


/* =========================================================
   05. SCIENCE & CULTURE ARTICLES (NewsScience)
   archive-hero--science
   Atom + Rotation
   ========================================================= */

.archive-hero--science .archive-hero-icon {
    animation: kh-science-icon-glow 6s ease-in-out infinite;
}

    .archive-hero--science .archive-hero-icon::before {
        background: rgba(255, 255, 255, .04);
        animation: kh-science-pulse 6s ease-in-out infinite;
    }

    .archive-hero--science .archive-hero-icon i.fa-atom {
        transform-origin: center center;
        animation: kh-science-atom 8s linear infinite; /* چرخش ۳۶۰ درجه */
    }

/* انیمیشن چرخش اتم */
@keyframes kh-science-atom {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes kh-science-icon-glow {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    }

    50% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, .11), 0 0 18px rgba(255, 255, 255, .07);
    }
}

@keyframes kh-science-pulse {
    0%, 70%, 100% {
        opacity: 0;
    }

    80% {
        opacity: .30;
        box-shadow: 0 0 15px rgba(255, 255, 255, .07);
    }

    88% {
        opacity: .50;
        box-shadow: 0 0 24px rgba(255, 255, 255, .09);
    }

    95% {
        opacity: 0;
    }
}

/* =========================================================
   06. PLACE HISTORY (اماکن تاریخی)
   archive-hero--place
   City + Archway Tags
   ========================================================= */

.archive-hero--place .archive-hero-icon {
    animation: kh-place-icon-glow 6s ease-in-out infinite;
}

    .archive-hero--place .archive-hero-icon::before {
        background: rgba(255, 255, 255, .04);
        animation: kh-place-pulse 6s ease-in-out infinite;
    }

    .archive-hero--place .archive-hero-icon i.fa-city {
        transform-origin: center bottom;
        animation: kh-place-city 5s ease-in-out infinite;
    }

/* انیمیشن آیکون شهر (بالا و پایین + چرخش ملایم) */
@keyframes kh-place-city {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    30% {
        transform: translateY(-4px) rotate(-3deg);
    }

    60% {
        transform: translateY(0) rotate(2deg);
    }

    80% {
        transform: translateY(-2px) rotate(-1deg);
    }
}

/* انیمیشن آیکون‌های تگ‌ها */
.archive-hero--place .archive-hero-tag i.fa-map-location-dot {
    animation: kh-place-map 4s ease-in-out infinite;
}

.archive-hero--place .archive-hero-tag i.fa-archway {
    animation: kh-place-archway 4.5s ease-in-out infinite;
}

@keyframes kh-place-map {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-2px) rotate(-5deg);
    }

    50% {
        transform: translateY(0) rotate(3deg);
    }

    75% {
        transform: translateY(-1px) rotate(-2deg);
    }
}

@keyframes kh-place-archway {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    30% {
        transform: translateY(-3px) scale(1.05);
    }

    60% {
        transform: translateY(0) scale(1);
    }

    80% {
        transform: translateY(-1px) scale(1.02);
    }
}

@keyframes kh-place-icon-glow {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    }

    50% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, .11), 0 0 18px rgba(255, 255, 255, .07);
    }
}

@keyframes kh-place-pulse {
    0%, 70%, 100% {
        opacity: 0;
    }

    80% {
        opacity: .30;
        box-shadow: 0 0 15px rgba(255, 255, 255, .07);
    }

    88% {
        opacity: .50;
        box-shadow: 0 0 24px rgba(255, 255, 255, .09);
    }

    95% {
        opacity: 0;
    }
}

/* =========================================================
   07. HISTORY
   archive-hero--history
   Monument
   ========================================================= */

.archive-hero--history .archive-hero-icon {
    animation: kh-history-icon-glow 7s ease-in-out infinite;
}

    .archive-hero--history .archive-hero-icon::before {
        background: rgba(255, 255, 255, .035);
        animation: kh-history-pulse 7s ease-in-out infinite;
    }

    .archive-hero--history .archive-hero-icon i.fa-monument {
        transform-origin: center bottom;
        animation: kh-history-monument 6s ease-in-out infinite;
    }

@keyframes kh-history-monument {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1px);
    }
}

@keyframes kh-history-icon-glow {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    }

    50% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, .12), 0 0 16px rgba(255, 255, 255, .06);
    }
}

@keyframes kh-history-pulse {
    0%, 72%, 100% {
        opacity: 0;
    }

    82% {
        opacity: .25;
        box-shadow: 0 0 14px rgba(255, 255, 255, .06);
    }

    90% {
        opacity: .45;
        box-shadow: 0 0 22px rgba(255, 255, 255, .08);
    }

    96% {
        opacity: 0;
    }
}


/* =========================================================
   08. ECONOMICS ARTICLES
   archive-hero--articles-economy
   Sack Dollar
   ========================================================= */

.archive-hero--articles-economy .archive-hero-icon {
    animation: kh-articles-economy-glow 6s ease-in-out infinite;
}

    .archive-hero--articles-economy .archive-hero-icon::before {
        background: rgba(255, 255, 255, .04);
        animation: kh-articles-economy-pulse 6s ease-in-out infinite;
    }

    .archive-hero--articles-economy .archive-hero-icon i.fa-sack-dollar {
        transform-origin: center bottom;
        animation: kh-sack-dollar 5s ease-in-out infinite;
    }

@keyframes kh-sack-dollar {
    0%, 100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-2px) rotate(-1deg);
    }

    60% {
        transform: translateY(0) rotate(1deg);
    }
}

@keyframes kh-articles-economy-glow {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    }

    50% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, .12), 0 0 18px rgba(255, 255, 255, .07);
    }
}

@keyframes kh-articles-economy-pulse {
    0%, 70%, 100% {
        opacity: 0;
    }

    80% {
        opacity: .30;
        box-shadow: 0 0 15px rgba(255, 255, 255, .07);
    }

    88% {
        opacity: .50;
        box-shadow: 0 0 24px rgba(255, 255, 255, .09);
    }

    95% {
        opacity: 0;
    }
}


/* =========================================================
   09. ARCHAEOLOGY ARTICLES
   archive-hero--archaeology
   Monument + Trowel
   ========================================================= */

.archive-hero--archaeology .archive-hero-icon {
    animation: kh-archaeology-glow 5s ease-in-out infinite;
}

    .archive-hero--archaeology .archive-hero-icon::before {
        background: rgba(255, 215, 150, .08);
        animation: kh-archaeology-pulse 5s ease-in-out infinite;
    }

    .archive-hero--archaeology .archive-hero-icon i.fa-monument {
        transform-origin: center bottom;
        animation: kh-archaeology-monument 6s ease-in-out infinite;
    }

.archive-hero--archaeology .archive-hero-tag i.fa-trowel {
    transform-origin: 50% 80%;
    animation: kh-archaeology-trowel 4.5s ease-in-out infinite;
}

@keyframes kh-archaeology-monument {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes kh-archaeology-trowel {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(2deg);
    }

    75% {
        transform: rotate(-2deg);
    }
}

@keyframes kh-archaeology-glow {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    }

    50% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, .12), 0 0 18px rgba(255, 215, 150, .10);
    }
}

@keyframes kh-archaeology-pulse {
    0%, 65%, 100% {
        opacity: 0;
    }

    72% {
        opacity: .40;
        box-shadow: 0 0 14px rgba(255, 215, 150, .09);
    }

    82% {
        opacity: .70;
        box-shadow: 0 0 18px rgba(255, 215, 150, .13), 0 0 28px rgba(255, 215, 150, .07);
    }

    92% {
        opacity: .20;
    }
}


/* =========================================================
   10. FAMOUS PEOPLE
   archive-hero--famous
   Award
   ========================================================= */

.archive-hero--famous .archive-hero-icon {
    animation: kh-famous-glow 6s ease-in-out infinite;
}

    .archive-hero--famous .archive-hero-icon::before {
        background: rgba(255, 255, 255, .04);
        animation: kh-famous-pulse 6s ease-in-out infinite;
    }

    .archive-hero--famous .archive-hero-icon i.fa-award {
        transform-origin: center center;
        animation: kh-award-motion 5s ease-in-out infinite;
    }

@keyframes kh-award-motion {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    40% {
        transform: translateY(-2px) rotate(-2deg);
    }

    70% {
        transform: translateY(0) rotate(1deg);
    }
}

@keyframes kh-famous-glow {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    }

    50% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, .11), 0 0 18px rgba(255, 255, 255, .08);
    }
}

@keyframes kh-famous-pulse {
    0%, 70%, 100% {
        opacity: 0;
    }

    80% {
        opacity: .35;
        box-shadow: 0 0 16px rgba(255, 255, 255, .08);
    }

    88% {
        opacity: .60;
        box-shadow: 0 0 26px rgba(255, 255, 255, .11);
    }

    95% {
        opacity: 0;
    }
}


/* =========================================================
   11. STORY
   archive-hero--story
   Feather Pointed
   ========================================================= */

.archive-hero--story .archive-hero-icon {
    animation: kh-story-glow 6s ease-in-out infinite;
}

    .archive-hero--story .archive-hero-icon::before {
        background: rgba(255, 255, 255, .04);
        animation: kh-story-pulse 6s ease-in-out infinite;
    }

    .archive-hero--story .archive-hero-icon i.fa-feather-pointed {
        transform-origin: 20% 90%;
        animation: kh-feather-motion 5s ease-in-out infinite;
    }

@keyframes kh-feather-motion {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    35% {
        transform: translateY(-3px) rotate(-4deg);
    }

    65% {
        transform: translateY(0) rotate(2deg);
    }
}

@keyframes kh-story-glow {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    }

    50% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, .11), 0 0 17px rgba(255, 255, 255, .07);
    }
}

@keyframes kh-story-pulse {
    0%, 70%, 100% {
        opacity: 0;
    }

    80% {
        opacity: .30;
        box-shadow: 0 0 15px rgba(255, 255, 255, .07);
    }

    88% {
        opacity: .50;
        box-shadow: 0 0 24px rgba(255, 255, 255, .09);
    }

    95% {
        opacity: 0;
    }
}


/* =========================================================
   Accessibility / Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .archive-hero .archive-hero-icon,
    .archive-hero .archive-hero-icon::before,
    .archive-hero .archive-hero-icon > i,
    .archive-hero .archive-hero-tag i {
        animation: none !important;
    }

    .archive-hero .archive-hero-icon,
    .archive-hero .archive-hero-tag i {
        transition: none !important;
    }
}
