/* =========================================================
   ECOFEGH — MASTER STYLESHEET
   Main + Header + Home + Footer + Articles + Responsive
========================================================= */


/* =========================================================
   1. ROOT / VARIABLES
========================================================= */

:root {
    --green: #0d403a;
    --green-2: #17665c;
    --green-3: #0a332f;

    --gold: #d9a95d;
    --gold-light: #ead19f;

    --ink: #183c39;
    --text: #294844;

    --muted: #687c79;
    --muted-light: #9aaba7;

    --paper: #f8f7f2;
    --white: #ffffff;

    --line: #e4e8e3;
    --line-dark: #d6ddd8;

    --shadow: 0 12px 35px rgba(13, 64, 58, 0.07);

    --radius: 14px;
}


/* =========================================================
   2. RESET / GLOBAL
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--paper);
    color: var(--text);

    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.9;

    direction: rtl;
    text-align: right;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}


/* =========================================================
   3. HEADER
========================================================= */

.site-header {
    position: relative;
    z-index: 100;

    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 78px;

    display: flex;
    align-items: center;
    gap: 28px;
}


/* ---------- Brand ---------- */

.brand {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: var(--green);
}

.site-logo {
    width: 48px;
    height: 48px;

    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.35;
}

.brand-text strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--green);
}

.brand-text small {
    margin-top: 2px;

    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}


/* ---------- Main navigation ---------- */

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;

    margin-inline-start: auto;
}

.main-nav a {
    position: relative;

    padding: 25px 0 22px;

    color: var(--text);
    font-size: 13px;
    font-weight: 600;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.main-nav a::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 14px;

    width: 0;
    height: 2px;

    background: var(--gold);

    transition: width 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--green);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}


/* ---------- Search ---------- */

.header-search {
    position: relative;

    flex: 0 0 175px;
}

.header-search input {
    width: 100%;
    height: 38px;

    padding: 0 14px 0 38px;

    border: 1px solid var(--line);
    border-radius: 20px;

    background: #fbfcfa;
    color: var(--text);

    font-size: 12px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.header-search input:focus {
    border-color: var(--gold);
    background: var(--white);
}

.header-search input::placeholder {
    color: var(--muted-light);
}

.header-search button {
    position: absolute;
    top: 50%;
    left: 10px;

    width: 24px;
    height: 24px;

    padding: 0;

    display: grid;
    place-items: center;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    color: var(--green);
}

.header-search svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ---------- Mobile menu button ---------- */

.menu-toggle {
    width: 40px;
    height: 40px;

    padding: 8px;

    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    border: 1px solid var(--line);
    border-radius: 9px;

    background: var(--white);
}

.menu-toggle span {
    display: block;

    width: 20px;
    height: 2px;

    background: var(--green);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   4. HERO
========================================================= */

.hero {
    padding: 34px 0 54px;
}

.hero-inner {
    position: relative;

    min-height: 500px;

    overflow: hidden;

    border-radius: 18px;
    background: var(--green);

    box-shadow: var(--shadow);
}

/* تصویر اصلی بنر */
.hero-banner {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center center;

    z-index: 1;
}

/* لایه متن روی تصویر */
.hero-overlay {
    position: relative;
    z-index: 2;

    width: 58%;
    min-height: 500px;

    padding: 55px 58px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    color: var(--white);
    text-align: right;

    background:
        linear-gradient(
            to left,
            rgba(10, 51, 47, 0.96) 0%,
            rgba(10, 51, 47, 0.84) 58%,
            rgba(10, 51, 47, 0.28) 82%,
            rgba(10, 51, 47, 0) 100%
        );
}

/* متن‌های هیرو */
.hero-eyebrow {
    margin-bottom: 14px;

    color: var(--gold-light);

    font-size: 12px;
    font-weight: 600;
}

.hero-overlay h1 {
    max-width: 580px;

    margin: 0 0 18px;

    color: var(--white);

    font-size: 43px;
    font-weight: 800;
    line-height: 1.35;
}

.hero-overlay h1 span {
    display: block;

    color: var(--gold-light);
}

.hero-description {
    max-width: 610px;

    margin: 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 14px;
    line-height: 2.15;
}

.hero-actions {
    margin-top: 28px;

    display: flex;
    align-items: center;
    gap: 11px;
}

.button {
    min-height: 43px;

    padding: 8px 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 12px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--gold);
    color: var(--green-3);
}

.button-primary:hover {
    background: var(--gold-light);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.42);

    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
}

.button-secondary:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
}

/* =========================================================
   5. TOPICS
========================================================= */

.topics {
    padding: 0 0 62px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
}

.section-kicker {
    margin-bottom: 5px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 700;
}

.section-heading h2,
.section-heading h3 {
    margin: 0;

    color: var(--green);

    font-weight: 800;
    line-height: 1.5;
}

.section-heading h2 {
    font-size: 25px;
}

.section-heading h3 {
    font-size: 23px;
}


/* ---------- Topic grid ---------- */

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

.topic-card {
    min-height: 150px;

    padding: 22px;

    display: flex;
    align-items: flex-start;
    gap: 17px;

    border: 1px solid var(--line);
    border-radius: var(--radius);

    background: var(--white);

    box-shadow: 0 7px 25px rgba(13, 64, 58, 0.035);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.topic-card:hover {
    transform: translateY(-4px);

    border-color: var(--gold-light);

    box-shadow: var(--shadow);
}

.topic-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: #f2f5f1;
    color: var(--green);
}

.topic-icon svg {
    width: 30px;
    height: 30px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topic-content {
    position: relative;

    min-width: 0;

    flex: 1;
}

.topic-content h3 {
    margin: 0 0 5px;

    color: var(--green);

    font-size: 17px;
    font-weight: 800;
}

.topic-content p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.9;
}

.topic-arrow {
    display: inline-block;

    margin-top: 12px;

    color: var(--gold);

    font-size: 16px;
    font-weight: 700;

    transition: transform 0.2s ease;
}

.topic-card:hover .topic-arrow {
    transform: translateX(-4px);
}


/* =========================================================
   6. LATEST ARTICLES
========================================================= */

.latest {
    padding: 0 0 78px;
}

.latest-heading {
    margin-bottom: 24px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--green);

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.section-link span {
    color: var(--gold);

    transition: transform 0.2s ease;
}

.section-link:hover span {
    transform: translateX(-4px);
}


/* ---------- Article grid ---------- */

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

.article-card {
    min-width: 0;
    height: 100%;

    border: 1px solid var(--line);
    border-radius: var(--radius);

    background: var(--white);

    overflow: hidden;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-3px);

    border-color: var(--gold-light);

    box-shadow: var(--shadow);
}

.article-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;

    padding: 23px 24px 25px;
}

.article-meta {
    margin-bottom: 9px;

    color: var(--gold);

    font-size: 10px;
    font-weight: 700;
}

.article-card h3 {
    margin: 0 0 10px;

    color: var(--green);

    font-size: 17px;
    font-weight: 800;
    line-height: 1.75;
}

.article-card h3 a {
    transition: color 0.2s ease;
}

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

.article-card p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 2;
}

.read-more {
    margin-top: auto;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--green);

    font-size: 11px;
    font-weight: 700;
}

.read-more span {
    color: var(--gold);

    transition: transform 0.2s ease;
}

.read-more:hover span {
    transform: translateX(-4px);
}

/* =========================================================
   7. FOOTER
========================================================= */

.site-footer {
    padding: 29px 0;

    background: var(--green);
    color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 35px;
}


/* ---------- Footer brand ---------- */

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 42px;
    height: 42px;

    object-fit: contain;
}

.footer-brand strong {
    display: block;

    color: var(--white);

    font-size: 16px;
    font-weight: 800;
}

.footer-brand p {
    margin: 2px 0 0;

    color: rgba(255, 255, 255, 0.6);

    font-size: 9px;
}


/* ---------- Footer nav ---------- */

.footer-nav {
    display: flex;
    align-items: center;
    gap: 19px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.72);

    font-size: 10px;
    font-weight: 500;

    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--gold-light);
}


/* ---------- Copyright ---------- */

.copyright {
    color: rgba(255, 255, 255, 0.52);

    font-size: 9px;
    white-space: nowrap;
}


/* =========================================================
   8. ARTICLE PAGES
========================================================= */

.article-page {
    padding: 55px 0 90px;
}

.article-page .article-container {
    width: min(850px, calc(100% - 40px));
    margin-inline: auto;
}

.article-page h1 {
    margin: 0 0 16px;

    color: var(--green);

    font-size: 34px;
    font-weight: 800;
    line-height: 1.7;
}

.article-byline {
    margin-bottom: 32px;

    color: var(--muted);

    font-size: 12px;
}

.article-placeholder {
    padding: 30px;

    border: 1px solid var(--line);
    border-radius: var(--radius);

    background: var(--white);
    box-shadow: var(--shadow);
}

.article-placeholder p {
    margin: 0 0 20px;

    color: var(--text);

    font-size: 15px;
    line-height: 2.15;
}

.article-placeholder p:last-child {
    margin-bottom: 0;
}

.article-placeholder h2 {
    margin: 34px 0 14px;

    color: var(--green);

    font-size: 23px;
    font-weight: 800;
    line-height: 1.6;
}

.article-placeholder h3 {
    margin: 27px 0 11px;

    color: var(--green-2);

    font-size: 18px;
    font-weight: 800;
    line-height: 1.6;
}


/* =========================================================
   9. RESPONSIVE — 1050px
========================================================= */

@media (max-width: 1050px) {

    .header-inner {
        gap: 20px;
    }

    .main-nav {
        gap: 18px;
    }

    .header-search {
        flex-basis: 155px;
    }

    .hero-overlay {
        width: 62%;
        padding: 45px 40px;
    }

    .hero-overlay h1 {
        font-size: 39px;
    }

    .hero-description {
        font-size: 13px;
    }

    .topic-card {
        padding: 19px;
    }

    .topic-content h3 {
        font-size: 16px;
    }
}


/* =========================================================
   10. RESPONSIVE — 900px
========================================================= */

@media (max-width: 900px) {

    .header-inner {
        min-height: 72px;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        right: 20px;
        left: 20px;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 8px;

        border: 1px solid var(--line);
        border-radius: 12px;

        background: var(--white);

        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 11px 13px;

        border-radius: 8px;

        font-size: 13px;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background: #f4f6f3;
    }

    .header-search {
        margin-inline-start: auto;
    }

    .menu-toggle {
        display: flex;
    }


    /* Hero */

    .hero-inner {
        min-height: 470px;
    }

    .hero-overlay {
        width: 72%;
        min-height: 470px;

        padding: 42px 38px;

        background:
            linear-gradient(
                90deg,
                rgba(10, 51, 47, 0.96) 0%,
                rgba(10, 51, 47, 0.86) 70%,
                rgba(10, 51, 47, 0.2) 100%
            );
    }


    /* Topics */

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

    .topic-card:last-child {
        grid-column: 1 / -1;
    }


    /* Footer */

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .copyright {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   11. RESPONSIVE — 650px
========================================================= */

@media (max-width: 650px) {

    .container {
        width: calc(100% - 28px);
    }


    /* Header */

    .header-inner {
        min-height: 68px;
        gap: 10px;
    }

    .site-logo {
        width: 42px;
        height: 42px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        font-size: 9px;
    }

    .header-search {
        flex: 1 1 auto;
        max-width: 180px;
    }

    .header-search input {
        height: 36px;
    }

    .menu-toggle {
        flex: 0 0 38px;

        width: 38px;
        height: 38px;
    }

    .main-nav {
        top: 68px;
        right: 14px;
        left: 14px;
    }


    /* Hero */

    .hero {
        padding: 20px 0 40px;
    }

    .hero-inner {
        min-height: 520px;
    }

    .hero-overlay {
        width: 100%;
        min-height: 520px;

        padding: 30px 24px;

        justify-content: flex-end;

        background:
            linear-gradient(
                0deg,
                rgba(10, 51, 47, 0.98) 0%,
                rgba(10, 51, 47, 0.88) 48%,
                rgba(10, 51, 47, 0.1) 100%
            );
    }

    .hero-eyebrow {
        margin-bottom: 10px;

        font-size: 10px;
    }

    .hero-overlay h1 {
        margin-bottom: 13px;

        font-size: 32px;
        line-height: 1.4;
    }

    .hero-description {
        font-size: 12px;
        line-height: 2;
    }

    .hero-actions {
        margin-top: 20px;
    }

    .button {
        min-height: 40px;

        padding: 7px 15px;

        font-size: 11px;
    }


    /* Topics */

    .topics {
        padding-bottom: 48px;
    }

    .topic-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .topic-card:last-child {
        grid-column: auto;
    }

    .topic-card {
        min-height: 125px;
    }


    /* Latest */

    .latest {
        padding-bottom: 55px;
    }

    .latest-heading {
        align-items: center;
    }

    .section-heading h3 {
        font-size: 20px;
    }

    .section-link {
        font-size: 10px;
    }

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

    .article-card-body {
        padding: 20px;
    }


    /* Footer */

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;

        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 17px;
    }

    .copyright {
        grid-column: auto;

        white-space: normal;
    }
}


/* =========================================================
   12. RESPONSIVE — 420px
========================================================= */

@media (max-width: 420px) {

    .header-search {
        max-width: none;
        flex: 1;
    }

    .brand-text small {
        display: none;
    }

    .hero-inner {
        min-height: 500px;
    }

    .hero-overlay {
        min-height: 500px;

        padding: 25px 21px;
    }

    .hero-overlay h1 {
        font-size: 28px;
    }

    .hero-description {
        font-size: 11px;
    }

    .hero-actions {
        gap: 8px;
    }

    .button {
        padding-inline: 13px;
    }
}

/* =========================================================
   ARTICLES INDEX
========================================================= */

.articles-page {
    background: var(--paper);
}


/* =========================
   ARTICLES HERO
========================= */

.articles-hero {
    padding: 34px 0 20px;
}

.articles-hero-inner {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 18px;
    background:
        linear-gradient(
            110deg,
            var(--green-3) 0%,
            var(--green) 62%,
            var(--green-2) 100%
        );
    box-shadow: var(--shadow);
}

.articles-hero-inner::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(234, 209, 159, 0.16);
    border-radius: 50%;
    left: -120px;
    top: -145px;
}

.articles-hero-inner::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(234, 209, 159, 0.10);
    border-radius: 50%;
    left: 90px;
    bottom: -175px;
}

.articles-hero-content {
    position: relative;
    z-index: 2;
    width: min(680px, 100%);
    padding: 48px 58px;
    color: var(--white);
}

.articles-eyebrow {
    margin-bottom: 10px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.articles-hero h1 {
    margin: 0 0 10px;
    color: var(--white);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.35;
}

.articles-hero p {
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 2;
}


/* =========================
   ARTICLES SECTION
========================= */

.articles-section {
    padding: 34px 0 90px;
}

.articles-heading {
    margin-bottom: 25px;
}

.articles-heading h2 {
    margin-top: 5px;
}


/* =========================
   AUTHOR
========================= */

.article-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.article-author span {
    color: var(--muted);
    font-weight: 400;
}

.article-author span::before {
    content: "—";
    margin-inline: 3px 7px;
    color: var(--muted-light);
}


/* =========================
   ARTICLE INDEX RESPONSIVE
========================= */

@media (max-width: 900px) {

    .articles-hero-content {
        padding: 42px 40px;
    }

    .articles-hero h1 {
        font-size: 38px;
    }

}


@media (max-width: 650px) {

    .articles-hero {
        padding-top: 22px;
    }

    .articles-hero-inner {
        min-height: 230px;
    }

    .articles-hero-content {
        padding: 34px 25px;
    }

    .articles-hero h1 {
        font-size: 32px;
    }

    .articles-hero p {
        font-size: 13px;
    }

    .articles-section {
        padding-top: 28px;
        padding-bottom: 65px;
    }

    .article-author {
        display: block;
        line-height: 2;
    }

    .article-author span {
        display: block;
    }

    .article-author span::before {
        display: none;
    }

}


@media (max-width: 420px) {

    .articles-hero-inner {
        min-height: 210px;
    }

    .articles-hero-content {
        padding: 28px 21px;
    }

    .articles-hero h1 {
        font-size: 29px;
    }

    .articles-hero p {
        font-size: 12px;
    }

}

/* =========================================================
   DIALOGUES INDEX
========================================================= */

.dialogues-empty {
    min-height: 360px;
    padding-top: 25px;
}

.dialogues-empty-box {
    min-height: 270px;
    padding: 45px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dialogues-empty-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--green);
    background: rgba(13, 64, 58, 0.06);
    border-radius: 50%;
}

.dialogues-empty-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dialogues-empty-box h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 700;
}

.dialogues-empty-box p {
    max-width: 500px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
}


@media (max-width: 650px) {

    .dialogues-empty {
        min-height: 330px;
        padding-top: 10px;
    }

    .dialogues-empty-box {
        min-height: 250px;
        padding: 35px 20px;
    }

    .dialogues-empty-box h2 {
        font-size: 17px;
    }

    .dialogues-empty-box p {
        font-size: 12px;
    }

}

/* =========================================================
   REPORTS INDEX
========================================================= */

.reports-empty {
    min-height: 360px;
    padding-top: 25px;
}

.reports-empty-box {
    min-height: 270px;
    padding: 45px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.reports-empty-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--green);
    background: rgba(13, 64, 58, 0.06);
    border-radius: 50%;
}

.reports-empty-icon svg {
    width: 30px;
    height: 30px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reports-empty-box h2 {
    margin: 0 0 8px;

    color: var(--ink);
    font-size: 19px;
    font-weight: 700;
}

.reports-empty-box p {
    max-width: 500px;
    margin: 0;

    color: var(--muted);
    font-size: 13px;
    line-height: 2;
}


@media (max-width: 650px) {

    .reports-empty {
        min-height: 330px;
        padding-top: 10px;
    }

    .reports-empty-box {
        min-height: 250px;
        padding: 35px 20px;
    }

    .reports-empty-box h2 {
        font-size: 17px;
    }

    .reports-empty-box p {
        font-size: 12px;
    }

}


/* تراز کامل متن محتوای صفحات و مقالات */
.article-page,
.article-page p,
.article-page li {
  text-align: justify;
}

/* =========================================================
   CONTACT MODAL
========================================================= */

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.contact-modal.open {
    opacity: 1;
    visibility: visible;
}

.contact-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(10, 51, 47, 0.58);

    backdrop-filter: blur(4px);
}

.contact-modal-box {
    position: relative;
    z-index: 2;

    width: min(430px, 100%);

    padding: 32px 28px 28px;

    border: 1px solid var(--line);

    border-radius: 18px;

    background: var(--white);

    box-shadow: 0 24px 70px rgba(13, 64, 58, 0.18);

    text-align: center;

    transform: translateY(12px) scale(0.98);

    transition: transform 0.25s ease;
}

.contact-modal.open .contact-modal-box {
    transform: translateY(0) scale(1);
}

.contact-modal-close {
    position: absolute;
    top: 12px;
    left: 14px;

    width: 32px;
    height: 32px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: var(--muted);

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.contact-modal-close:hover {
    background: var(--paper);
    color: var(--green);
}

.contact-modal-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(217, 169, 93, 0.15);

    color: var(--green);

    font-size: 23px;
}

.contact-modal-box h2 {
    margin: 0 0 10px;

    color: var(--ink);

    font-size: 20px;
    font-weight: 800;
}

.contact-modal-box p {
    margin: 0 auto 22px;

    max-width: 340px;

    color: var(--muted);

    font-size: 13px;
    line-height: 2;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-channel {
    min-height: 54px;

    padding: 10px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid var(--line);

    border-radius: 11px;

    background: var(--paper);

    color: var(--ink);

    font-size: 13px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.contact-channel:hover {
    transform: translateY(-2px);

    border-color: var(--gold);

    background: var(--white);

    color: var(--green);
}

.contact-channel-arrow {
    color: var(--gold);

    font-size: 18px;

    transition: transform 0.2s ease;
}

.contact-channel:hover .contact-channel-arrow {
    transform: translateX(-3px);
}

@media (max-width: 650px) {
    .contact-modal {
        padding: 16px;
    }

    .contact-modal-box {
        padding: 30px 20px 22px;
    }
}


/* Article links */
.article-placeholder a {
    color: #176b87;
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px solid rgba(23, 107, 135, 0.25);
}

.article-placeholder a:hover {
    color: #0d4f63;
    border-bottom-color: currentColor;
}



/* فریز شدن سربرگ اکوفقه */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}



/* مثال‌های تاریخی و نکته‌های فرعی مقاله */
.historical-example {
    margin: 1.6rem 0;
    padding: 1.1rem 1.25rem;
    background: #f7f8fa;
    border-right: 3px solid #9a8060;
    border-radius: 5px;
    color: #333;
    font-size: 0.94em;
    line-height: 2;
}

.historical-example p {
    margin: 0.5rem 0;
}

.historical-example__label {
    margin-bottom: 0.65rem;
    color: #776348;
    font-size: 0.82em;
    font-weight: 700;
}

.historical-example__note {
    margin-top: 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px solid #e3e5e8;
    color: #555;
    font-size: 0.92em;
}

.historical-example__note strong {
    color: #333;
}

.historical-example--insight {
    background: #f1f4f7;
    border-right-color: #64748b;
}

.historical-example--insight .historical-example__label {
    color: #475569;
}

@media (max-width: 600px) {
    .historical-example {
        padding: 0.85rem;
        margin: 1.2rem 0;
    }
}

