/* تنظیمات کلی */
@font-face {
  font-family: "myfont";
  src: url("fonts/iranyekanwebbold.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* مرورگرها برای button/input/select/textarea فونت پیش‌فرض سیستم را به‌جای فونت سایت اعمال می‌کنند؛ این را اصلاح می‌کنیم */
button,
input,
select,
textarea {
    font-family: inherit;
}

html {
    /* clip اسکرول‌کانتینر نمی‌سازد؛ hidden باعث بریده‌شدن دراپ‌داون هدر می‌شد */
    overflow-x: clip;
}
body {
    background-color: #f9f9f9;
    direction: rtl;
    color: #333;
    overflow-x: clip;
    font-family: var(--font-fa);
    font-size: var(--fs-body);
}

/* متن‌های بدنه — جاستیفای بدون آسیب به منو/عنوان/دکمه */
p,
.card-body p,
.about-hero-text p,
.about-feature-card p,
.footer-contact-desc,
.news-card-page p,
.news-body p,
.article-body,
.article-content,
.article-text,
.service-detail-intro,
.khadamat-v2-body p,
.intro-text p,
.contact-desc,
.page-content p,
.moarefi-content p,
.hamkari-page p,
.committee-bio,
.team-member-bio,
.person-resume {
    text-align: justify;
    text-justify: inter-word;
}

body.lang-en {
    direction: ltr;
}

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

ul {
    list-style: none;
}

.container {
    /* هم‌عرض صفحه خانه: بدون padding اضافه، حاشیه از width */
    width: min(1400px, calc(100% - 40px));
    max-width: none;
    margin-inline: auto;
    padding: 0;
}

/* ===== الگوی کاشی‌شونده ستاره برای استفاده در پس‌زمینه بخش‌های تیره ===== */
/* رنگ‌های اصلی */
:root {
    --primary-blue: #20409a;
    --dark-blue: #112b66;
    --light-blue: #1e4fa3;
    --accent-purple: #1e4fa3;
    --text-grey: #555;
    --white: #fff;
    --header-height: 70px;
    --btn-primary-bg: #1e4fa3;
    --site-radius: 5px;
    --font-fa: "YekanBakh", "Vazirmatn", Tahoma, sans-serif;
    --fs-h1: clamp(36px, 5vw, 64px);
    --fs-h2: clamp(22px, 3vw, 36px);
    --fs-subtitle: 28px;
    --fs-body: 18px;
    --fs-small: 14px;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

p {
    font-size: var(--fs-body);
}

small {
    font-size: var(--fs-small);
}

/* HEADER — UI refreshed (محتوا بدون تغییر) */

/* جلوگیری از فلش محتوای HTML ثابت قبل از رسیدن داده پنل ادمین */
html:not([data-cms-synced="true"]) #mainNav > ul {
  visibility: hidden;
}
html:not([data-cms-synced="true"]) header .logo img {
  opacity: 0;
}
html[data-cms-synced="true"] header .logo img {
  opacity: 1;
  transition: opacity 0.2s ease;
}
html:not([data-cms-home-synced="true"]) .hero > .hero-city-photo,
html:not([data-cms-home-synced="true"]) .hero .hero-city-photo {
  opacity: 0;
}
html[data-cms-home-synced="true"] .hero .hero-city-photo {
  opacity: 1;
  transition: opacity 0.35s ease;
}
.about-page:not(.cms-bg-ready) .hero-city-photo {
  opacity: 0;
}
.about-page.cms-bg-ready .hero-city-photo {
  opacity: 1;
  transition: opacity 0.35s ease;
}

header {
    --header-bg: #0b1c44;
    --header-accent: #5babff;
    --header-h: 72px;
    background: #0b1c44;
    background-image: linear-gradient(180deg, #122a5c 0%, #0b1c44 100%);
    height: var(--header-h);
    display: flex;
    align-items: center;
    color: #d4ddfa;
    position: sticky;
    top: 0;
    z-index: 5000;
    box-shadow: 0 8px 28px rgba(4, 12, 32, 0.22);
    border-bottom: 1px solid rgba(91, 171, 255, 0.16);
    overflow: visible;
    transition: height 0.22s ease, box-shadow 0.22s ease;
}

header.is-compact {
    --header-h: 60px;
    box-shadow: 0 6px 20px rgba(4, 12, 32, 0.3);
    background: #091634;
    background-image: linear-gradient(180deg, #0f2450 0%, #091634 100%);
}

header::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 0;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, rgba(91, 171, 255, 0.5), transparent);
    pointer-events: none;
}

header:has(.lang-switcher-slot) {
    position: sticky;
}

.header-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    position: relative;
    height: var(--header-h);
    overflow: visible;
    transition: height 0.22s ease;
    /* هم‌عرض سکشن «در یک نگاه» تا لوگو و دکمه‌ها با محتوا تراز شوند */
    width: min(1680px, calc(100% - 48px));
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
    box-sizing: border-box;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    /* در RTL: هل دادن به لبهٔ چپ کانتینر (هم‌تراز با محتوای صفحه) */
    margin-inline-start: auto;
    order: 3;
}

.header-cta-btn {
    --header-cta-glow: #5babff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(91, 171, 255, 0.45);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(91, 171, 255, 0.28), rgba(30, 79, 163, 0.35));
    box-shadow: 0 4px 14px rgba(30, 79, 163, 0.25);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    animation: none;
}

.header-cta-btn.is-pulse {
    animation: header-cta-pulse 2.4s ease-in-out infinite;
}

.header-cta-btn:hover {
    background: linear-gradient(135deg, rgba(91, 171, 255, 0.42), rgba(30, 79, 163, 0.5));
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 18px rgba(74, 158, 255, 0.28);
    transform: translateY(-1px);
    animation-play-state: paused;
}

@keyframes header-cta-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--header-cta-glow) 55%, transparent);
        border-color: rgba(255, 255, 255, 0.35);
    }
    50% {
        box-shadow: 0 0 0 7px color-mix(in srgb, var(--header-cta-glow) 0%, transparent);
        border-color: var(--header-cta-glow);
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-cta-btn {
        transition: none;
        animation: none !important;
    }
    header, .header-container {
        transition: none;
    }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    height: 48px !important;
    width: auto !important;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transition: height 0.22s ease;
}

header.is-compact .logo img {
    height: 42px !important;
}

.logo-home-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: 0;
    transition: opacity 0.2s ease;
}

.logo-home-link:hover {
    opacity: 0.92;
    transform: none;
}

.logo-home-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.lang-switcher-slot {
    display: flex;
    align-items: center;
    margin: 0;
}

@media (min-width: 1281px) {
    .header-actions {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        z-index: 1001;
        margin-inline-start: auto;
    }
    header .logo {
        flex-shrink: 0;
        margin-inline-end: 4px;
    }
}

.lang-switcher {
    display: inline-flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 3px;
}

.lang-switcher .lang-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    min-width: 2.4rem;
}

.lang-switcher .lang-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.lang-switcher .lang-btn.active {
    background: #fff;
    color: var(--primary-blue, #12306e);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.lang-en {
    font-family: 'Vazirmatn', system-ui, sans-serif;
}

/* دکمه منوی همبرگر */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 11px;
    transition: background 0.25s, border-color 0.25s;
}

.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.22);
}

/* === NAVIGATION === */
nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

nav {
    min-width: 0;
    flex: 1 1 auto;
}
nav ul li a {
    color: rgba(232, 239, 255, 0.88);
    font-size: clamp(0.76rem, 0.55vw + 0.62rem, 0.9rem);
    font-weight: 600;
    padding: 7px clamp(6px, 0.55vw, 14px);
    text-decoration: none;
    transition: color 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s;
    white-space: nowrap;
    border-radius: 999px;
    border: 1px solid transparent;
    box-shadow: none;
    position: relative;
}

nav ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.08);
}

nav ul li a.active {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(180deg, rgba(91, 171, 255, 0.3) 0%, rgba(30, 79, 163, 0.22) 100%);
    border-color: rgba(126, 182, 255, 0.45);
    box-shadow:
        0 0 0 1px rgba(91, 171, 255, 0.12),
        0 6px 16px rgba(10, 40, 100, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

nav ul li a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 42%;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 99px;
    background: #9ec9ff;
    box-shadow: 0 0 10px rgba(158, 201, 255, 0.75);
    pointer-events: none;
}

.dropdown-content a.active,
.sub-dropdown-content a.active {
    background: rgba(91, 171, 255, 0.2) !important;
    border: 1px solid rgba(126, 182, 255, 0.28) !important;
    box-shadow: inset 0 0 0 1px rgba(91, 171, 255, 0.12) !important;
}

.dropdown-content a.active::after,
.sub-dropdown-content a.active::after {
    display: none;
}

/* منوی کشویی دسکتاپ */
nav ul li.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 8px;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 0;
    width: max-content;
    max-width: min(720px, calc(100vw - 24px));
    padding: 14px 16px;
    margin: 0;
    border: 1px solid rgba(91, 171, 255, 0.35);
    background: linear-gradient(165deg, #12244e 0%, #08122a 100%);
    box-shadow:
        0 18px 40px rgba(2, 8, 23, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    z-index: 5001;
    border-radius: 16px;
    text-align: right;
    opacity: 0;
    visibility: hidden;
    overflow: visible;
    box-sizing: border-box;
    transform: translateY(6px) translateX(var(--menu-shift-x, 0px));
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dropdown-content::before {
    /* پل هاور نامرئی تا منو با فاصله قطع نشود */
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    z-index: 0;
    pointer-events: auto;
}

.dropdown-content a {
    color: rgba(255, 255, 255, 0.88);
    padding: 10px 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 600;
    transition: background 0.18s, color 0.18s;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: visible;
}

.dropdown-content a:hover {
    background-color: rgba(91, 171, 255, 0.14);
    color: #fff;
}

nav ul li.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(var(--menu-shift-x, 0px));
}

.menu-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(91, 171, 255, 0.14);
    border: 1px solid rgba(91, 171, 255, 0.18);
    color: #7eb6ff;
    display: inline-grid !important;
    place-items: center !important;
    line-height: 0 !important;
    box-sizing: border-box;
    font-size: 0.92rem;
    transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.menu-item-icon i,
.menu-item-icon .fas,
.menu-item-icon .fa {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 1em !important;
    height: 1em !important;
    font-size: 0.92rem !important;
    line-height: 1 !important;
    text-align: center !important;
    transform: none !important;
    position: static !important;
}

.dropdown-content a:hover .menu-item-icon,
.sub-dropdown-content a:hover .menu-item-icon {
    background: linear-gradient(135deg, #5babff, #1e4fa3);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 79, 163, 0.35);
}

.menu-item-label {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
    overflow: visible;
    line-height: 1.45;
}

.menu-item-arrow {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.68rem;
    margin: 0;
    margin-inline-start: 4px;
    position: relative;
    z-index: 2;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.sub-dropdown > a:hover .menu-item-arrow {
    background: rgba(91, 171, 255, 0.22);
    border-color: rgba(91, 171, 255, 0.35);
    color: #fff;
}

/* زیرمنوها در دسکتاپ */
.sub-dropdown {
    position: relative;
    width: max-content;
    max-width: 100%;
}

.sub-dropdown > a {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    width: max-content;
    max-width: 100%;
    gap: 10px;
    overflow: visible;
}

.sub-dropdown > a .menu-item-label {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
    overflow: visible;
}

.sub-dropdown-content {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 8px;
    justify-content: start;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    left: auto;
    margin-top: 0;
    min-width: 0;
    width: max-content;
    max-width: min(560px, calc(100vw - 24px));
    padding: 14px 18px;
    border: 1px solid rgba(91, 171, 255, 0.35);
    background: linear-gradient(165deg, #12244e 0%, #08122a 100%);
    box-shadow:
        0 18px 40px rgba(2, 8, 23, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    overflow: visible;
    box-sizing: border-box;
    transform: translateY(6px) translateX(var(--menu-shift-x, 0px));
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 5002;
}

.sub-dropdown-content::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    width: auto;
    height: 14px;
    bottom: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    z-index: 0;
    pointer-events: auto;
}

.sub-dropdown-content a {
    color: rgba(255, 255, 255, 0.88);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 600;
    border-bottom: none;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    white-space: nowrap;
    box-sizing: border-box;
    transition: background 0.18s, color 0.18s;
    position: relative;
    z-index: 1;
}

.sub-dropdown-content a:hover {
    background-color: rgba(91, 171, 255, 0.14);
    color: #fff;
}

.sub-dropdown:hover .sub-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(var(--menu-shift-x, 0px));
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, #050d1a 0%, #0d1f4e 50%, #091428 100%);
    color: #fff;
    min-height: 100vh;
    padding: 80px 0 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* پس‌زمینه ستاره‌ای (خالصا CSS، با box-shadow) */
.hero-stars,
.hero-stars::before,
.hero-stars::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background: transparent;
    border-radius: 50%;
}

.hero-stars {
    box-shadow: 1451px 1224px #fff, 1077px 957px #fff, 129px 1055px #fff, 424px 1461px #fff, 489px 115px #fff, 1060px 1153px #fff, 826px 514px #fff, 940px 863px #fff, 763px 1379px #fff, 60px 936px #fff, 765px 319px #fff, 1558px 1548px #fff, 820px 1279px #fff, 1048px 16px #fff, 1152px 1036px #fff, 1517px 48px #fff, 837px 1231px #fff, 1215px 490px #fff, 119px 904px #fff, 818px 41px #fff, 706px 1579px #fff, 668px 1005px #fff, 665px 1485px #fff, 304px 296px #fff, 1175px 486px #fff, 1348px 1026px #fff, 809px 1170px #fff, 1538px 346px #fff, 1181px 448px #fff, 1139px 388px #fff, 1447px 570px #fff, 1276px 330px #fff, 30px 108px #fff, 393px 544px #fff, 142px 966px #fff, 13px 1401px #fff, 92px 1337px #fff, 316px 1538px #fff, 936px 920px #fff, 1526px 1111px #fff, 1209px 651px #fff, 566px 101px #fff, 388px 731px #fff, 1546px 956px #fff, 112px 529px #fff, 1051px 1558px #fff, 918px 881px #fff, 1393px 993px #fff, 143px 1348px #fff, 1455px 609px #fff, 1370px 1597px #fff, 639px 224px #fff, 1143px 759px #fff, 254px 458px #fff, 834px 2px #fff, 1472px 131px #fff, 1217px 1490px #fff, 23px 1005px #fff, 1025px 1276px #fff, 1445px 1330px #fff, 431px 759px #fff, 341px 103px #fff, 552px 1378px #fff, 126px 462px #fff, 273px 972px #fff, 168px 1018px #fff, 538px 85px #fff, 438px 1242px #fff, 1277px 924px #fff, 1464px 519px #fff, 771px 1452px #fff, 268px 333px #fff, 323px 901px #fff, 149px 998px #fff, 1166px 832px #fff, 192px 1555px #fff, 1035px 598px #fff, 1548px 1277px #fff, 873px 969px #fff, 744px 970px #fff, 523px 807px #fff, 745px 1002px #fff, 795px 731px #fff, 1417px 859px #fff, 573px 8px #fff, 403px 256px #fff, 1130px 430px #fff, 456px 1199px #fff, 370px 821px #fff, 292px 1202px #fff, 196px 1092px #fff, 907px 1107px #fff, 1532px 164px #fff, 1141px 704px #fff, 1146px 458px #fff, 696px 613px #fff, 1101px 1189px #fff, 271px 802px #fff, 524px 1295px #fff, 353px 1090px #fff, 578px 612px #fff, 1540px 466px #fff, 305px 1002px #fff, 109px 1045px #fff, 965px 221px #fff, 1024px 1074px #fff, 391px 338px #fff, 1467px 1595px #fff, 453px 863px #fff, 859px 1529px #fff, 574px 812px #fff, 1176px 907px #fff, 604px 1056px #fff, 574px 536px #fff, 35px 795px #fff, 166px 1301px #fff, 1578px 806px #fff, 1417px 306px #fff, 26px 1446px #fff, 1407px 828px #fff, 1041px 417px #fff, 624px 461px #fff, 509px 1464px #fff, 638px 618px #fff, 1002px 280px #fff, 395px 889px #fff, 638px 590px #fff, 1557px 111px #fff, 30px 1187px #fff, 736px 647px #fff, 1003px 670px #fff, 633px 892px #fff, 912px 406px #fff, 414px 759px #fff, 445px 1463px #fff, 898px 1442px #fff, 105px 1234px #fff, 1143px 1466px #fff, 575px 1068px #fff, 459px 1189px #fff;
    animation: hero-stars-twinkle 4s ease-in-out infinite alternate;
}

.hero-stars::before {
    box-shadow: 495px 568px #fff, 680px 1044px #fff, 873px 425px #fff, 395px 1598px #fff, 150px 792px #fff, 558px 348px #fff, 1150px 57px #fff, 1540px 1509px #fff, 685px 1553px #fff, 513px 1449px #fff, 436px 1350px #fff, 1089px 1060px #fff, 1071px 1599px #fff, 514px 424px #fff, 1218px 1482px #fff, 1386px 113px #fff, 194px 474px #fff, 1454px 1288px #fff, 1309px 366px #fff, 630px 1512px #fff, 1080px 883px #fff, 1189px 252px #fff, 10px 701px #fff, 894px 987px #fff, 699px 493px #fff, 853px 1313px #fff, 1091px 1283px #fff, 569px 772px #fff, 682px 383px #fff, 540px 1271px #fff, 1365px 896px #fff, 1452px 1433px #fff, 330px 658px #fff, 404px 1112px #fff, 457px 247px #fff, 1460px 189px #fff, 464px 1545px #fff, 489px 125px #fff, 496px 383px #fff, 399px 1335px #fff, 722px 1302px #fff, 746px 1198px #fff, 1416px 1482px #fff, 826px 1250px #fff, 1598px 836px #fff, 670px 55px #fff, 1306px 1304px #fff, 1109px 97px #fff, 144px 222px #fff, 1132px 807px #fff, 1490px 1229px #fff, 947px 1427px #fff, 301px 1502px #fff, 1399px 860px #fff, 300px 1313px #fff, 1163px 1465px #fff, 99px 1314px #fff, 458px 838px #fff, 1073px 669px #fff, 1571px 1333px #fff, 237px 263px #fff, 1562px 565px #fff, 39px 1506px #fff, 950px 133px #fff, 869px 764px #fff, 397px 1552px #fff, 107px 317px #fff, 1341px 955px #fff, 9px 1517px #fff, 244px 64px #fff;
    width: 3px;
    height: 3px;
    animation: hero-stars-twinkle 6s ease-in-out infinite alternate-reverse;
}

.hero-stars::after {
    box-shadow: 609px 764px #fff, 415px 1028px #fff, 87px 409px #fff, 810px 1169px #fff, 1550px 1447px #fff, 406px 785px #fff, 1488px 81px #fff, 311px 64px #fff, 1387px 1385px #fff, 1573px 79px #fff, 300px 78px #fff, 561px 894px #fff, 1271px 974px #fff, 991px 950px #fff, 923px 1566px #fff, 1109px 271px #fff, 1006px 1388px #fff, 381px 384px #fff, 960px 1277px #fff, 1227px 88px #fff, 1499px 1543px #fff, 767px 613px #fff, 1209px 615px #fff, 1286px 1228px #fff, 1359px 148px #fff, 282px 1126px #fff, 1053px 1044px #fff, 463px 443px #fff, 134px 6px #fff, 568px 539px #fff, 851px 257px #fff, 1573px 1137px #fff, 1522px 420px #fff, 768px 1346px #fff, 1496px 1100px #fff;
    width: 4px;
    height: 4px;
    animation: hero-stars-twinkle 8s ease-in-out infinite alternate;
}

@keyframes hero-stars-twinkle {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* ستاره دنباله‌دار */
.hero-shooting-star {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    filter: drop-shadow(0 0 6px #fff);
    opacity: 0;
    z-index: 1;
    animation: hero-shooting-star-fly 6s linear infinite;
}

.hero-shooting-star::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 120px;
    height: 1px;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    transform: translateY(-50%);
}

.hero-shooting-star.delay-2 {
    animation-delay: 2.5s;
    top: -10%;
    left: -10%;
}

.hero-shooting-star.delay-3 {
    animation-delay: 4.5s;
    top: -15%;
    left: 20%;
}

@keyframes hero-shooting-star-fly {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(35deg);
    }
    3% {
        opacity: 1;
    }
    15% {
        opacity: 0;
        transform: translate(420px, 300px) rotate(35deg);
    }
    100% {
        opacity: 0;
        transform: translate(420px, 300px) rotate(35deg);
    }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: nowrap;
    position: relative;
    z-index: 2;
}

.hero-text-col {
    flex: 1 1 50%;
    min-width: 0;
    max-width: 50%;
    text-align: right;
}

.hero-orbital-col {
    flex: 1 1 50%;
    min-width: 0;
    max-width: 50%;
    display: flex;
    justify-content: center;
}

.english-title {
    display: inline-block;
    color: #4a9eff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* در حالت انگلیسی، عنوان اصلی هم به انگلیسی برمی‌گردد؛ این برچسب کوچک برای جلوگیری از تکرار حذف می‌شود */
body.lang-en .english-title {
    display: none;
}

.main-title {
    font-size: 64px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 35%, #6fa8ff 75%, #3d7dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 10px;
}

.main-title-line-1 {
    font-size: 0.6em;
    font-weight: 700;
}

.main-title-line-2 {
    display: inline-block;
    margin-top: 4px;
}

.hero-title-secondary {
    font-size: 18px !important;
    font-weight: 400;
    opacity: 0.7;
    margin-bottom: 15px;
}

.sub-title {
    font-size: 28px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.btn-primary {
    background-color: var(--btn-primary-bg, var(--light-blue));
    color: var(--btn-primary-text, #fff);
    border: none;
    padding: 12px 28px;
    border-radius: var(--site-radius, 5px);
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    display: inline-block;
    font-family: var(--font-fa);
}

.btn-primary:hover {
    background-color: #4a5ed6;
    transform: translateY(-2px);
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    background-color: #1e3c8c;
    border-radius: 8px;
    padding: 14px 32px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-btn-primary:hover {
    background-color: #2a52b8;
    transform: none;
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    transition: border-color 0.3s;
}

.btn-secondary:hover {
    border-color: #fff;
}

/* اندیکاتور اسکرول */
.hero-scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    z-index: 2;
    animation: hero-scroll-bounce 2s ease-in-out infinite;
}

@keyframes hero-scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* === انیمیشن اوربیتال === */
.hero-orbital {
    position: relative;
    width: 480px;
    height: 480px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(74, 158, 255, 0.15);
    border-radius: 50%;
    transform-origin: center;
}

.orbit-ring-inner {
    width: 53.33%;
    height: 53.33%;
    margin: -26.67% 0 0 -26.67%;
    animation: orbit-spin 16s linear infinite;
}

.orbit-ring-middle {
    width: 76.67%;
    height: 76.67%;
    margin: -38.33% 0 0 -38.33%;
    animation: orbit-spin 22s linear infinite;
}

.orbit-ring-outer {
    width: 100%;
    height: 100%;
    margin: -50% 0 0 -50%;
    animation: orbit-spin 30s linear infinite;
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-node {
    position: absolute;
    left: 50%;
    transform-origin: center;
    transform: translateX(-50%);
}

.orbit-ring-inner .orbit-node { animation: orbit-counter-spin 16s linear infinite; }
.orbit-ring-middle .orbit-node { animation: orbit-counter-spin 22s linear infinite; }
.orbit-ring-outer .orbit-node { animation: orbit-counter-spin 30s linear infinite; }

@keyframes orbit-counter-spin {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(-360deg); }
}

.node-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.node-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(14, 30, 80, 0.9);
    border: 1px solid rgba(74, 158, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.node-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.orbit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orbit-line {
    stroke: rgba(74, 158, 255, 0.3);
    stroke-width: 1;
    stroke-dasharray: 6 8;
    animation: orbit-line-flow 3s linear infinite;
}

@keyframes orbit-line-flow {
    to { stroke-dashoffset: -28; }
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(74, 158, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.orbit-center img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* جایگزین موبایل برای انیمیشن اوربیتال */
.hero-services-grid {
    display: none;
}

/* Subsidiaries */
.subsidiaries {
    text-align: center;
    padding: 80px 0 90px;
    background: linear-gradient(135deg, #0a1733 0%, #07122b 100%);
}

.subsidiaries-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    margin-bottom: 30px;
}

.subsidiaries-header .section-title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 0;
}

.subsidiaries-view-all {
    color: #9fb4ff;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.subsidiaries-view-all:hover {
    color: #fff;
    gap: 12px;
}

.logo-slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.logo-slider-wrapper::before,
.logo-slider-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.logo-slider-wrapper::before {
    right: 0;
    background: linear-gradient(to left, #07122b, transparent);
}

.logo-slider-wrapper::after {
    left: 0;
    background: linear-gradient(to right, #07122b, transparent);
}

.logo-track {
    display: flex;
    gap: 32px;
    align-items: center;
    animation: scroll 30s linear infinite;
    width: fit-content;
    padding: 10px 20px;
    direction: ltr;
}

.logo-slider-wrapper:hover .logo-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.logo-item {
    height: 150px;
    width: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    text-align: center;
    background: linear-gradient(160deg, #ffffff 0%, #f3f6fc 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(2, 8, 23, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    flex-shrink: 0;
}

.logo-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 18px 40px rgba(2, 8, 23, 0.45);
}

.logo-item.active h4 {
    color: var(--primary-blue);
}

.logo-item img {
    max-height: 78px;
    max-width: 170px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.logo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.logo-item h4 {
    font-size: 0.8rem;
    margin-top: 10px;
    color: #555;
    transition: color 0.3s;
}

.section-title {
    color: var(--light-blue);
    margin-bottom: 30px;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}

/* INTRO SECTION */
.intro-section {
    padding: 80px 0 90px;
    background: linear-gradient(135deg, #0a1733 0%, #07122b 100%);
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -140px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.18), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.intro-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 24px;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.intro-text {
    flex: 1;
    min-width: 260px;
}

.purple-title {
    color: #4a9eff;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 10px;
}

.title-line {
    width: 50px;
    height: 3px;
    background: #4a9eff;
    margin-bottom: 20px;
}

.intro-text p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.9;
    margin-bottom: 30px;
}

.intro-image {
    flex: 1;
    min-width: 220px;
    display: flex;
    justify-content: center;
    position: relative;
}

.intro-image::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.22), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.4));
}

/* === STATS SECTION === */
.stats-section {
    background: #07122b;
    padding: 60px 0;
}

.stats-container {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px 20px;
    gap: 20px;
    position: relative;
}

.stat-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.stat-item::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.12);
}

.stat-item:last-child::after {
    display: none;
}

.stat-icon {
    font-size: 28px;
    color: rgba(74, 158, 255, 0.6);
    display: block;
    margin-bottom: 12px;
}

.stat-num {
    font-size: 48px;
    font-weight: 700;
    color: #4a9eff;
    display: block;
}

.stat-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-top: 6px;
}

.stat-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    display: block;
    margin-top: 4px;
}

.blue-title {
    color: var(--light-blue);
    text-align: center;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    text-align: center;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.icon-box {
    margin-bottom: 15px;
    font-size: 2.5rem;
    color: var(--light-blue);
}

.service-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-card p {
    color: #777;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* === NEWS SECTION === */
.news-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #0a1733 0%, #07122b 100%);
}

.news-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-section-header .section-title {
    margin-bottom: 0;
    color: #fff;
}

.news-view-all {
    background: none;
    color: #9fb4ff;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.news-view-all:hover {
    background: none;
    color: #fff;
    gap: 12px;
    transform: none;
}

.news-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-arrow {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.news-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.news-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    flex: 1 1 auto;
    padding: 4px;
    scrollbar-width: none;
}

.news-grid::-webkit-scrollbar {
    display: none;
}

.news-card {
    background: #122a5c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 0 0 calc(25% - 18px);
    min-width: 220px;
    scroll-snap-align: start;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.news-card-image {
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.news-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
}

.news-badge-event { background: rgba(30, 79, 163, 0.92); }
.news-badge-product { background: rgba(34, 160, 107, 0.85); }
.news-badge-performance { background: rgba(214, 158, 46, 0.85); }
.news-badge-deal { background: rgba(214, 76, 76, 0.85); }

.news-body {
    padding: 14px 16px 16px;
}

.news-body h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8fa3c4;
    margin-bottom: 0;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1e4fa3;
    transition: gap 0.2s ease, color 0.2s ease;
}

.news-read-more:hover {
    gap: 10px;
    color: #122a5c;
}

.news-body p {
    font-size: 12px;
    color: #b7c4da;
    margin-bottom: 8px;
}

/* لینک مطالعه کامل مقاله — نسخه ساده مخصوص کارت‌های صفحه اصلی */
.news-section .news-btn-read {
    background: none;
    box-shadow: none;
    color: #1e4fa3;
    font-size: 13px;
    font-weight: 600;
    width: auto;
    margin-top: 0;
    padding: 0;
    justify-content: flex-start;
}

.news-section .news-btn-read:hover {
    background: none;
    box-shadow: none;
    filter: none;
    color: #122a5c;
    transform: none;
}

/* Read article button — modern CTA (header brand blue, not purple) */
.news-btn-read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--border-radius, 8px);
    background: linear-gradient(135deg, #122a5c 0%, #1e4fa3 100%);
    color: var(--button-text-color, #fff);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(18, 42, 92, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.news-btn-read::after {
    content: '←';
    font-size: 1rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

body.lang-en .news-btn-read::after {
    content: '→';
}

.news-btn-read:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(18, 42, 92, 0.38);
    filter: brightness(1.05);
    color: #fff;
}

.news-btn-read:hover::after {
    transform: translateX(-3px);
}

body.lang-en .news-btn-read:hover::after {
    transform: translateX(3px);
}

.news-btn-read:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(18, 42, 92, 0.22);
}

/* Financial report cards */
.report-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius, 8px);
    background: var(--primary-blue, #1e3c8c);
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    transition: background 0.2s, transform 0.2s;
}

.report-download-btn:hover {
    background: var(--light-blue, #1e4fa3);
    transform: translateY(-1px);
    color: #fff;
}

.report-year {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-grey, #555);
}

/* CONTACT SECTION */
.contact-section {
    padding: 60px 0;
    background: #fff;
}

.contact-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contact-image {
    flex: 1;
    display: flex;
    padding-top: 150px;
    justify-content: center;
}

.contact-image img {
    max-width: 100%;
    height: auto;
}

.contact-form-box {
    flex: 1.5;
    background: #fff;
}

.contact-desc {
    margin-bottom: 20px;
    color: #555;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--light-blue);
}

.full-width {
    width: 100%;
}

/* FOOTER NEW — هم‌رنگ و هم‌ساختار با فوتر صفحه اصلی */
.footer-new {
    background: linear-gradient(180deg, #122a5c 0%, #0b1c44 55%, #091634 100%);
    padding: 70px 0 30px;
    position: relative;
    box-shadow: 0 100vh 0 100vh #091634;
}

.footer-contact-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-contact-card {
    background: #152f75;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 24px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}

.footer-contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 0.9fr;
    gap: 36px;
    align-items: stretch;
}

.footer-contact-image {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    min-height: 280px;
    background: #152f75;
    border: 1px solid rgba(255,255,255,.2);
    display: grid;
    place-items: center;
}

.footer-contact-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 280px;
    -webkit-mask-image: linear-gradient(to right, black 45%, transparent 95%);
    mask-image: linear-gradient(to right, black 45%, transparent 95%);
}

.footer-contact-info h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-contact-tagline {
    color: #4a9eff;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-contact-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.9;
    margin-bottom: 24px;
}

.footer-contact-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-meta span {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-email-img {
    height: 1.16em;
    width: auto;
    display: block;
    border: 0;
    margin: 0;
    flex: none;
    align-self: center;
    pointer-events: none;
    user-select: none;
}

.footer-contact-meta i {
    color: #4a9eff;
    width: 18px;
    text-align: center;
    margin-top: 4px;
}

.footer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-form-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.footer-form-group:focus-within {
    border-color: rgba(74, 158, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
}

.footer-form-group i {
    color: #4a9eff;
    width: 18px;
    text-align: center;
}

.footer-form-group-textarea {
    align-items: flex-start;
}

.footer-form-group-textarea i {
    margin-top: 4px;
}

.footer-form-group input,
.footer-form-group textarea {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    resize: vertical;
}

.footer-form-group input::placeholder,
.footer-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.contact-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.contact-turnstile {
    margin: 4px 0 8px;
    min-height: 0;
}
.contact-turnstile:empty {
    display: none;
}
.contact-local-captcha {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0 6px;
}
.contact-captcha-visual {
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-captcha-img {
    display: block;
    width: 180px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid rgba(74, 158, 255, 0.35);
    background: #0b1c44;
}
.contact-captcha-refresh {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #9ec5ff;
    cursor: pointer;
}
.contact-captcha-refresh:hover {
    background: rgba(74, 158, 255, 0.18);
}
.footer-form-submit {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #1e4fa3, #4a9eff);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: "Vazirmatn", sans-serif;
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-form-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .65);
    font-size: .85rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

.back-to-top-btn {
    background: transparent;
    color: #9fb4ff;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
    transition: color 0.2s;
}

.back-to-top-btn:hover {
    background: transparent;
    color: #fff;
    transform: none;
}

html {
    scroll-behavior: smooth;
}

/* ============================================ */
/* موبایل (تمام استایل‌های موبایل در یک جا) */
/* ============================================ */
@media (max-width: 768px) {
    .container {
        width: min(1400px, calc(100% - 28px));
        padding: 0;
    }
    
    header {
        --header-h: 72px;
        height: var(--header-h);
        min-height: var(--header-h);
        overflow: visible;
    }

    header.is-compact {
        --header-h: 72px;
        height: var(--header-h);
    }

    .header-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px;
        height: var(--header-h) !important;
        width: min(1680px, calc(100% - 28px));
        position: relative;
        padding-inline: 0;
    }

    .logo {
        position: absolute !important;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        order: 0;
        flex: none !important;
        justify-content: center !important;
        z-index: 1;
        pointer-events: none;
    }

    .logo .logo-home-link,
    .logo a {
        pointer-events: auto;
    }

    .logo img {
        height: 42px !important;
        width: auto !important;
        display: block;
    }

    .mobile-menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        order: 1;
        position: relative;
        width: 40px;
        height: 40px;
        padding: 0;
        margin: 0;
        border-radius: 11px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.16);
        color: #fff;
        font-size: 17px;
        z-index: 5002;
        flex-shrink: 0;
    }

    .header-actions {
        display: flex !important;
        align-items: center !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        order: 2;
        margin: 0 !important;
        margin-inline-start: auto !important;
        z-index: 5002;
        gap: 6px;
        flex-shrink: 0;
        height: 36px;
    }

    .lang-switcher {
        height: 36px;
        padding: 2px;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.1);
    }

    .lang-switcher .lang-btn {
        height: 32px;
        padding: 0 10px;
        min-width: 34px;
        font-size: 0.68rem;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-cta-btn,
    .header-cta {
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 0 12px !important;
        font-size: 0.7rem !important;
        line-height: 1 !important;
        max-width: 7.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        box-sizing: border-box;
        align-items: center;
        justify-content: center;
    }

    header nav {
        order: 4;
    }

    body:has(header nav.active)::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(4, 10, 28, 0.55);
        backdrop-filter: blur(3px);
        z-index: 5000;
    }
    
    header nav {
        position: fixed;
        top: 0;
        right: -105%;
        width: min(92vw, 360px);
        max-width: 360px;
        height: 100dvh;
        height: 100vh;
        background: linear-gradient(180deg, #153066 0%, #0a1838 42%, #07122b 100%);
        transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 5001;
        overflow-y: auto;
        border-radius: 0;
        box-shadow: -16px 0 48px rgba(0,0,0,0.4);
        border: none;
        border-left: 1px solid rgba(91, 171, 255, 0.18);
        padding: calc(var(--header-h, 72px) + 12px) 0 env(safe-area-inset-bottom, 16px);
    }
    
    header nav.active {
        right: 0;
    }

    header nav::before {
        content: "منوی سایت";
        display: block;
        margin: 0 18px 14px;
        padding: 0 4px 12px;
        color: rgba(255, 255, 255, 0.55);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    header nav ul {
        flex-direction: column;
        gap: 6px;
        padding: 4px 14px 28px;
    }
    
    header nav ul li {
        border-bottom: none;
        width: 100%;
    }
    
    header nav ul li a {
        display: flex;
        align-items: center;
        padding: 14px 16px;
        color: #fff;
        border-radius: 14px;
        font-size: 0.98rem;
        font-weight: 600;
        position: relative;
        min-height: 48px;
        border: 1px solid transparent;
    }

    header nav ul li a:hover {
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
        border-color: transparent;
    }

    header nav ul li a.active {
        background: linear-gradient(90deg, rgba(91, 171, 255, 0.24), rgba(91, 171, 255, 0.08));
        border-color: rgba(126, 182, 255, 0.28);
        box-shadow: none;
    }

    header nav ul li a.active::after {
        display: none;
    }

    header nav ul li a.active::before {
        content: "";
        position: absolute;
        right: 8px;
        top: 22%;
        bottom: 22%;
        width: 3px;
        border-radius: 99px;
        background: #9ec9ff;
        box-shadow: 0 0 8px rgba(158, 201, 255, 0.7);
    }

    .dropdown-content {
        position: static !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: rgba(0, 0, 0, 0.18) !important;
        box-shadow: none !important;
        padding: 6px 8px 8px !important;
        width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: 1fr !important;
        margin: 0 0 6px !important;
        border-radius: 12px !important;
        border: none !important;
        top: auto !important;
    }

    .dropdown-content a {
        width: 100% !important;
        max-width: none !important;
        white-space: normal !important;
    }

    .menu-item-label {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    header nav .menu-item-icon {
        display: inline-grid !important;
        place-items: center !important;
        line-height: 0 !important;
    }

    header nav .menu-item-icon i,
    header nav .menu-item-icon .fas,
    header nav .menu-item-icon .fa {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 1em !important;
        height: 1em !important;
        line-height: 1 !important;
        text-align: center !important;
        transform: none !important;
        position: static !important;
    }

    .dropdown-content.show {
        display: grid !important;
    }

    .dropdown-content a {
        width: auto !important;
        color: #ffffff !important;
        border-bottom: none !important;
        padding: 11px 12px !important;
        transform: none !important;
        background-color: transparent !important;
    }
    
    .sub-dropdown {
        position: relative;
    }
    
    .sub-dropdown > a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        color: #ffffff !important;
        padding: 12px 14px !important;
        border-bottom: none !important;
        border-radius: 12px !important;
    }
    
    .sub-dropdown > a i.fa-angle-left {
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }
    
    .sub-dropdown.open > a i.fa-angle-left {
        transform: rotate(90deg);
    }
    
    .sub-dropdown-content {
        position: static !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: rgba(0, 0, 0, 0.2) !important;
        box-shadow: none !important;
        padding: 6px 8px 8px !important;
        width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: 1fr !important;
        margin: 4px 0 8px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(91, 171, 255, 0.12) !important;
    }

    .sub-dropdown-content.show {
        display: grid !important;
    }

    .sub-dropdown-content a {
        width: auto !important;
        color: rgba(255, 255, 255, 0.92) !important;
        background-color: transparent !important;
        border-bottom: none !important;
        font-size: 0.88rem !important;
        padding: 11px 12px !important;
        border-radius: 10px !important;
    }

    .sub-dropdown-content a:hover {
        background: rgba(91, 171, 255, 0.14) !important;
    }
    
    .sub-dropdown-content a:last-child {
        border-bottom: none !important;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text-col,
    .hero-orbital-col {
        max-width: 100%;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-group .hero-btn-primary,
    .hero-cta-group .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .english-title {
        font-size: 11px;
    }

    .main-title {
        font-size: 2.6rem;
    }

    .hero-title-secondary {
        font-size: 14px !important;
    }

    .sub-title {
        font-size: 1.05rem;
        margin-bottom: 14px;
    }

    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 24px;
    }

    .hero-orbital {
        display: none;
    }

    .hero-services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .service-grid-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 16px 8px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(74, 158, 255, 0.2);
        border-radius: 12px;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.85);
        text-align: center;
    }

    .service-grid-item i {
        font-size: 22px;
    }

    .stats-container {
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1 1 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }

    .stat-item::after {
        display: none;
    }

    .news-section-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .subsidiaries-header {
        flex-wrap: wrap;
        gap: 12px;
        text-align: center;
        justify-content: center;
    }

    .subsidiaries-header .section-title {
        width: 100%;
        font-size: 28px;
    }

    .news-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        margin: 0 -20px;
        padding: 0 20px 8px;
        -webkit-overflow-scrolling: touch;
    }

    .news-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }

    .intro-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .title-line {
        margin: 0 auto 20px auto;
    }

    .contact-container {
        flex-direction: column;
    }

    .footer-contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-contact-image {
        min-height: 160px;
    }

    .footer-contact-photo {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .footer-contact-card {
        padding: 24px;
    }

    .footer-bottom-bar {
        flex-direction: column-reverse;
        text-align: center;
    }
}

/* تبلت */
@media (max-width: 992px) and (min-width: 769px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text-col,
    .hero-orbital-col {
        max-width: 100%;
        text-align: center;
    }

    .hero-orbital {
        transform: scale(0.7);
    }

    .main-title {
        font-size: 3rem;
    }

    .sub-title {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-left: auto;
        margin-right: auto;
    }

    .intro-card {
        flex-direction: column;
        text-align: center;
    }

    .title-line {
        margin: 0 auto 20px auto;
    }

    .contact-container {
        flex-direction: column;
    }
}
.news-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--light-blue);
    text-decoration: none;
    font-weight: bold;
}

.news-link:hover {
    text-decoration: underline;
}

/* ===== English Mode (text direction only) ==== */

body.lang-en .hero-text-col,
body.lang-en .main-title,
body.lang-en .sub-title,
body.lang-en .hero-description,
body.lang-en .hero-cta-group {
    text-align: left;
}

body.lang-en .about-highlight,
body.lang-en .about-info h2,
body.lang-en .about-info p {
    text-align: left;
}

body.lang-en .intro-section,
body.lang-en .intro-content,
body.lang-en .intro-text {
    text-align: left;
}

body.lang-en .services-grid .service-card {
    text-align: left;
}

body.lang-en .news-card,
body.lang-en .news-card .news-body {
    text-align: left;
}

body.lang-en .section-title,
body.lang-en .section-subtitle {
    text-align: left;
}

body.lang-en .footer-content,
body.lang-en .footer-bottom {
    text-align: left;
}

body.lang-en .contact-form,
body.lang-en .contact-form input,
body.lang-en .contact-form textarea,
body.lang-en .contact-info {
    text-align: left;
}

body.lang-en .committee-page,
body.lang-en .team-page,
body.lang-en .hamkari-page,
body.lang-en .khadamat-page,
body.lang-en .khadamat-hero,
body.lang-en .service-detail-content,
body.lang-en .moarefi-page,
body.lang-en .moarefi-content,
body.lang-en .negaresh-page,
body.lang-en .fanavari-page {
    text-align: center;
}

body.lang-en .hero-btn-primary i,
body.lang-en .news-btn-read i,
body.lang-en .news-read-more i,
body.lang-en .subsidiaries-view-all i,
body.lang-en .btn-primary i {
    display: inline-block;
}

body.lang-en .stat-item,
body.lang-en .stat-label {
    text-align: center;
}

body.lang-en .footer-social {
    justify-content: flex-start;
}

body.lang-en .mobile-menu-btn {
    margin-left: 0;
    margin-right: auto;
}

body.lang-en nav ul li a {
    text-align: left;
}

body.lang-en .sub-dropdown > a {
    justify-content: flex-start;
}

body.lang-en .menu-item-arrow {
    margin-right: 0;
    margin-left: 4px;
}

@media (max-width: 768px) {
    body.lang-en nav ul {
        text-align: left;
    }
    body.lang-en .dropdown-content {
        text-align: left;
    }
}





body.lang-en .footer-contact-info h2,
body.lang-en .footer-contact-tagline,
body.lang-en .footer-contact-desc,
body.lang-en .footer-contact-meta span,
body.lang-en .footer-copyright {
    text-align: left;
}

body.lang-en .footer-contact-grid {
    direction: ltr;
}

body.lang-en .footer-form-group {
    flex-direction: row;
}



body.lang-en .fund-chip span {
    text-align: center;
}

body.lang-en .contact-page,
body.lang-en .page-title-box,
body.lang-en .page-title-box h1,
body.lang-en .info-card p,
body.lang-en .info-card h3 {
    text-align: left;
}

body.lang-en .form-header h2,
body.lang-en .form-header p {
    text-align: center;
}

body.lang-en .khadamat-hero-content {
    text-align: left;
}

body.lang-en .content-with-sidebar {
    text-align: left;
}

/* ریسپانسیو از پنل ادمین */
@media (max-width: 980px) {
  body.resp-compact-header header {
    height: 58px;
  }
  body.resp-compact-header .header-container {
    height: 58px;
  }
  body.resp-compact-header .logo img {
    height: 40px !important;
  }
  body.resp-hide-extras .sidebar-extra,
  body.resp-hide-extras .aside-extra {
    display: none !important;
  }
}

@media (max-width: 1280px) {
  .header-container {
    gap: 10px;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    z-index: 5002;
    flex-shrink: 0;
  }

  .header-actions {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin-inline-start: auto;
    gap: 8px;
    z-index: 5002;
  }

  .header-cta-btn,
  .header-cta {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  header nav {
    position: fixed;
    top: 0;
    right: -105%;
    width: min(92vw, 360px);
    max-width: 360px;
    height: 100dvh;
    height: 100vh;
    background: linear-gradient(180deg, #153066 0%, #0a1838 42%, #07122b 100%);
    transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 5001;
    overflow-y: auto;
    box-shadow: -16px 0 48px rgba(0,0,0,0.4);
    border-left: 1px solid rgba(91, 171, 255, 0.18);
    padding: calc(var(--header-h, 72px) + 12px) 0 env(safe-area-inset-bottom, 16px);
  }

  body:has(header nav.active)::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 28, 0.55);
    backdrop-filter: blur(3px);
    z-index: 5000;
  }

  header nav.active {
    right: 0;
  }

  header nav::before {
    content: "منوی سایت";
    display: block;
    margin: 0 18px 14px;
    padding: 0 4px 12px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  header nav ul {
    flex-direction: column;
    gap: 6px;
    padding: 4px 14px 28px;
  }

  header nav ul li {
    width: 100%;
  }

  header nav ul li a {
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .dropdown-content {
    position: static !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: rgba(0, 0, 0, 0.18) !important;
    box-shadow: none !important;
    padding: 6px 8px 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 1fr !important;
    margin: 0 0 6px !important;
    border-radius: 12px !important;
    border: none !important;
    top: auto !important;
  }

  .dropdown-content.show {
    display: grid !important;
  }

  .dropdown-content a,
  .sub-dropdown > a,
  .sub-dropdown-content a {
    width: 100% !important;
    max-width: none !important;
    white-space: normal !important;
  }
}


/* فوتر یکسان با صفحه اصلی */
.footer-iconic {
  background: linear-gradient(180deg, #122a5c 0%, #0b1c44 55%, #091634 100%);
  padding: 28px 0 18px;
  color: #fff;
  /* فضای زیر فوتر (پایین ویوپورت) هم‌رنگ خود فوتر */
  box-shadow: 0 100vh 0 100vh #091634;
}
.footer-iconic .footer-iconic-wrap {
  width: min(1100px, calc(100% - 32px));
  margin-inline: auto;
}
.footer-iconic .footer-contact-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.footer-iconic:not(.footer-has-form) .footer-message-panel,
.footer-iconic:not(.footer-has-form) .footer-contact-info,
.footer-iconic:not(.footer-has-form) .footer-contact-desc,
.footer-iconic:not(.footer-has-form) .footer-contact-image,
.footer-iconic:not(.footer-has-form) .footer-contact-form,
.footer-iconic:not(.footer-has-form) .footer-contact-grid {
  display: none !important;
}
.footer-iconic.footer-has-form .footer-message-panel {
  display: block !important;
  width: 100%;
  margin-bottom: 18px;
}
.footer-iconic.footer-has-form .footer-contact-info,
.footer-iconic.footer-has-form .footer-contact-desc,
.footer-iconic.footer-has-form .footer-contact-image {
  display: block !important;
}
.footer-iconic.footer-has-form .footer-contact-form {
  display: flex !important;
}
.footer-iconic.footer-has-form .footer-contact-grid {
  display: grid !important;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}
.footer-iconic.footer-has-form .footer-contact-info {
  color: #e8eef8;
}
.footer-iconic.footer-has-form .footer-contact-info h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  color: #fff;
}
.footer-iconic.footer-has-form .footer-contact-image {
  min-height: 220px;
  border-radius: 14px;
  overflow: hidden;
}
.footer-iconic.footer-has-form .footer-contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 980px) {
  .footer-iconic.footer-has-form .footer-contact-grid {
    grid-template-columns: 1fr;
  }
}
.footer-iconic .footer-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.footer-iconic .footer-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 12px 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-iconic .footer-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1e4fa3, #4a9eff);
  color: #fff;
}
.footer-iconic .footer-icon-label {
  font-size: 0.78rem;
  color: #9fb4ff;
}
.footer-iconic .footer-icon-value {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #fff;
}
.footer-iconic .footer-email-img {
  height: 18px;
  width: auto;
  display: block;
}
.footer-iconic .footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: rgba(255,255,255,.75);
  font-size: 0.78rem;
}
.footer-iconic .back-to-top-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #9fb4ff;
  text-decoration: none;
}
@media (max-width: 800px) {
  .footer-iconic .footer-icon-grid { grid-template-columns: 1fr 1fr; }
  .footer-iconic .footer-icon-value { font-size: 0.78rem; overflow-wrap: anywhere; }
  .footer-iconic .footer-bottom-bar { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .footer-iconic .footer-icon-grid { grid-template-columns: 1fr; }
  img, video, iframe { max-width: 100%; }
  .page-title-box h1, .about-hero-text h1, .team-title, .committee-title { font-size: 1.45rem; line-height: 1.35; }
  .members-table, .table-wrapper, table { max-width: 100%; }
  .contact-form input, .contact-form textarea, .form-group input, .form-group textarea { width: 100%; max-width: 100%; }
}


/* ===== Header CTA gold (all pages) ===== */
.header-cta-btn,
.header-cta {
  --header-cta-glow: var(--header-cta-glow, #e1b964);
  color: var(--header-cta-text, #0b1c44);
  background: var(--header-cta-bg, linear-gradient(180deg, #f0d9a0, #e1b964));
  border: 1px solid var(--header-cta-border, rgba(255, 236, 190, 0.95));
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(225, 185, 100, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
@media (max-width: 1280px) {
  .header-cta-btn,
  .header-cta {
    max-width: none;
    overflow: visible;
  }
}

/* نوار موبایل داخل nav — پیش‌فرض مخفی (جلوگیری از نشت به دسکتاپ) */
header nav .mobile-nav-toolbar,
header nav .mobile-nav-title {
  display: none !important;
}

/* موبایل: زبان فقط داخل کشو، قرینهٔ ضربدر */
@media (max-width: 1280px) {
  header .header-actions .lang-switcher-slot {
    display: none !important;
  }
  header nav .mobile-nav-toolbar {
    display: none !important;
  }
  header nav.active .mobile-nav-toolbar {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 14px 8px;
    padding: 12px 2px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 3;
    background: linear-gradient(180deg, #153066 0%, rgba(21, 48, 102, 0.98) 100%);
    direction: rtl;
  }
  header nav.active .mobile-nav-title {
    display: block !important;
    margin: 0 18px 12px;
    padding: 0 4px 12px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  header nav:has(.mobile-nav-toolbar)::before {
    display: none !important;
    content: none !important;
  }
  header nav .mobile-nav-close {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0 !important;
    margin: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-grid !important;
    place-items: center !important;
    line-height: 0 !important;
    cursor: pointer;
    flex-shrink: 0;
    box-sizing: border-box;
  }
  header nav .mobile-nav-close i,
  header nav .mobile-nav-close .fas,
  header nav .mobile-nav-close .fa {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 1em !important;
    height: 1em !important;
    font-size: 1.05rem !important;
    line-height: 1 !important;
    text-align: center !important;
    transform: none !important;
    position: static !important;
  }
  header nav .mobile-nav-toolbar .mobile-nav-lang,
  header nav .mobile-nav-toolbar .lang-switcher-slot {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 42px;
    height: 42px;
  }
  header nav .mobile-nav-toolbar .lang-switcher {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    display: inline-grid !important;
    place-items: center !important;
    box-sizing: border-box !important;
    gap: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  header nav .mobile-nav-toolbar .lang-switcher .lang-btn {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    display: inline-grid !important;
    place-items: center !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }
  header nav.active {
    padding-top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
  }
  /* همبرگر هدر روی ضربدر کشو ننشیند */
  header:has(nav.active) .mobile-menu-btn,
  body:has(header nav.active) .mobile-menu-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  header .mobile-menu-btn i,
  header .mobile-menu-btn .fas,
  header .mobile-menu-btn .fa {
    display: block !important;
    margin: 0 auto !important;
    line-height: 1 !important;
    width: 1em;
    text-align: center;
  }
}
/* وقتی منو باز است فقط CTA هدر مخفی شود؛ زبان داخل کشو بماند */
header:has(nav.active) .header-actions .header-cta-btn,
header:has(nav.active) .header-actions .header-cta,
body:has(header nav.active) .header-actions .header-cta-btn,
body:has(header nav.active) .header-actions .header-cta {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
@media (min-width: 1281px) {
  header nav .mobile-nav-toolbar,
  header nav .mobile-nav-title {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
}
/* آیتم فعال منو: متن وسط‌چین عمودی */
@media (max-width: 1280px) {
  header nav ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    line-height: 1.35 !important;
    min-height: 48px;
    padding: 12px 18px 12px 16px !important;
  }
  header nav ul li a.active {
    padding-block: 12px !important;
  }
  header nav ul li a .fa,
  header nav ul li a i.fa {
    margin-inline-start: auto;
    line-height: 1;
  }
}

