@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');

/* =========================================================================
   متغیرهای سراسری سیستم و پالت رسمی آبی آسمانی سنگین وزارتی
   ========================================================================= */
:root {
    --bg-light: #f8fafc;
    --card-surface: #ffffff;
    --gold-bright: #ffd700;
    --gold-warm: #f59e0b;
    --gold-gradient: linear-gradient(135deg, #fff3a8 0%, #ffd700 40%, #d4af37 70%, #aa771c 100%);
    --emerald-bright: #10b981;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --card-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(212, 175, 55, 0.25);
    --card-hover-shadow: 0 30px 60px -12px rgba(180, 135, 40, 0.25), 0 0 0 2px rgba(212, 175, 55, 0.85);

    /* پالت تخصصی آبی آسمانی سنگین وزارتی (Regal Diplomatic Azure) */
    --gov-blue-950: #0a192f;
    --gov-blue-900: #0f2b48;
    --gov-blue-850: #133960;
    --gov-blue-800: #1b4b7a;
    --gov-blue-700: #25639a;
    --gov-blue-600: #3882c4;
    --gov-blue-light: #60a5fa;
    --gov-sky-subtle: #dbeafe;
    --gov-gold-100: #fbf3d5;
    --gov-gold-200: #ebd39b;
    --gov-gold-400: #cda85d;
    --gov-gold-600: #9e7935;
    --gov-white: #ffffff;
    --gov-muted: #cbd5e1;
    --gov-border: rgba(229, 200, 139, 0.35);
    --gov-shadow: 0 20px 45px rgba(10, 25, 47, 0.55);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(at 100% 0%, rgba(212, 175, 55, 0.09) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(56, 130, 196, 0.08) 0px, transparent 40%),
        linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================
   هدر مجلل آبی آسمانی سنگین وزارتی (Ultra-Luxury Azure Header)
   ========================================================= */
.ultra-header {
    background: radial-gradient(circle at 50% -20%, #1e4976 0%, #102d4c 45%, #091729 100%) !important;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #aa771c 0%, #ffd700 50%, #aa771c 100%) 1;
    box-shadow: 0 25px 50px -10px rgba(9, 23, 41, 0.7) !important;
    position: relative;
    z-index: 100;
}

/* نوار دیپلماتیک بالایی */
.ultra-top-bar {
    background: rgba(7, 18, 34, 0.72) !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    padding: 12px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 700;
}

.official-tag {
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.official-badge {
    background: linear-gradient(135deg, #ffd700, #d4af37);
    color: #080c16;
    padding: 3px 12px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.official-code {
    color: #fde047;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* بدنه اصلی هدر */
.ultra-main-bar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 22px;
}

.royal-emblem {
    width: 78px;
    height: 78px;
    background: linear-gradient(145deg, #1b4b7a, #0b1e36);
    border: 2.5px solid #ffd700;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.45), inset 0 0 15px rgba(255, 215, 0, 0.3);
}

.brand-titles h1 {
    font-size: 2.3rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    line-height: 1.25;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

.brand-titles p {
    color: #e2e8f0;
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 6px;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.portal-motto-box {
    text-align: left;
    border-right: 3px solid #ffd700;
    padding-right: 30px;
    max-width: 580px;
}

.motto-main-headline {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.motto-sub-headline {
    color: #fde047;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.6;
}

/* نوار آیه شریفه و شعار راهبردی */
.ultra-verse-bar {
    background: rgba(9, 23, 41, 0.94) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 20px;
    text-align: center;
}

.verse-text {
    font-size: 1.18rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.verse-text span.gold-highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* =========================================================
   نوار ناوبری افقی و سراسری
   ========================================================= */
.ultra-nav,
nav {
    background: #091729 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 2px solid rgba(205, 168, 93, 0.35);
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ultra-nav ul,
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ultra-nav li,
nav li {
    margin: 0;
}

.ultra-nav a,
nav a {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
    border-radius: 6px;
}

.ultra-nav a:hover,
nav a:hover {
    color: #ffd700;
    background: rgba(205, 168, 93, 0.15);
}

/* =========================================================
   سکشن هیرو و بدنه صفحه (زمینه روشن)
   ========================================================= */
.hero-light {
    text-align: center;
    padding: 65px 20px 35px;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-pill-luxury {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 28px;
    background: #ffffff;
    border: 1.5px solid rgba(212, 175, 55, 0.6);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    color: #92400e;
    font-size: 0.98rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-title-refined {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-desc-refined {
    font-size: 1.18rem;
    color: #334155;
    max-width: 880px;
    margin: 0 auto 35px;
    line-height: 2.1;
    font-weight: 500;
}

/* نوار آمار سازمانی */
.stats-strip-light {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1280px;
    margin: 0 auto 60px;
    padding: 0 25px;
    width: 100%;
}

.stat-item {
    background: #ffffff;
    border: 1.5px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: #b45309;
}

.stat-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #475569;
    margin-top: 4px;
}

/* شبکه ۶ دوره تخصصی */
.courses-grid-refined {
    max-width: 1320px;
    margin: 0 auto 90px;
    padding: 0 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}

.card-white-gold {
    background: var(--card-surface);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 24px;
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.card-white-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gold-gradient);
}

.card-white-gold:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    border-color: #ffd700;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.card-ico-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #fdfbf7;
    border: 1.5px solid #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.15);
}

.card-badge-pill {
    font-size: 0.82rem;
    font-weight: 800;
    color: #92400e;
    background: #fef3c7;
    padding: 5px 14px;
    border-radius: 30px;
    border: 1px solid #fde68a;
}

.card-heading-main {
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.45;
}

.card-body-text {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.9;
    margin-bottom: 28px;
    flex-grow: 1;
}

.card-details-bar {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px dashed rgba(212, 175, 55, 0.4);
    border-bottom: 1px dashed rgba(212, 175, 55, 0.4);
    margin-bottom: 24px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
}

.gold-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #111827 0%, #030712 100%);
    color: #fef08a;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: 1.5px solid #d4af37;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.gold-action-btn:hover {
    background: var(--gold-gradient);
    color: #080c16;
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    border-color: #ffffff;
}

/* =========================================================
   فوتر سازمانی و رسمی
   ========================================================= */
.footer-monumental {
    background: #091729 !important;
    border-top: 3px solid #ffd700;
    color: #e2e8f0;
    padding: 70px 50px 35px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 45px;
}

.footer-inner h3 {
    color: #fde047;
    font-size: 1.25rem;
    margin-bottom: 22px;
    font-weight: 900;
}

.footer-inner p {
    font-size: 0.98rem;
    line-height: 2.1;
    color: #94a3b8;
}

.footer-inner ul {
    list-style: none;
}

.footer-inner ul li {
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 500;
}

.footer-rights-bar {
    max-width: 1320px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 1100px) {
    .courses-grid-refined { grid-template-columns: repeat(2, 1fr); }
    .ultra-main-bar { flex-direction: column; text-align: center; gap: 25px; }
    .portal-motto-box { border-right: none; padding-right: 0; text-align: center; }
}

@media (max-width: 768px) {
    .courses-grid-refined { grid-template-columns: 1fr; }
    .stats-strip-light { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .brand-wrapper { flex-direction: column; text-align: center; }
    .brand-titles h1 { font-size: 1.8rem; }
    .hero-title-refined { font-size: 2.2rem; }
}

/* ============================================
   استایل اختصاصی بنر ورودی دانشنامه تمدنی
   ============================================ */
.encyclopedia-portal-entry {
    padding: 20px 40px;
    max-width: 1200px;
    margin: 30px auto 10px;
}

.encyclopedia-portal-card {
    background: linear-gradient(135deg, #0a192f 0%, #153a60 50%, #1e4d7d 100%) !important;
    border: 1px solid rgba(246, 211, 101, 0.35);
    border-radius: 20px;
    padding: 35px 30px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(10, 25, 47, 0.35) !important;
    position: relative;
    overflow: hidden;
}

.encyclopedia-portal-card::before {
    content: "🏛️";
    position: absolute;
    left: 20px;
    bottom: -10px;
    font-size: 110px;
    opacity: 0.08;
    pointer-events: none;
}

.encyclopedia-portal-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #0a0a1a;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 15px;
}

.encyclopedia-portal-title {
    font-size: 24px;
    margin: 0 0 12px;
    background: linear-gradient(135deg, #ffffff, #f6d365);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.encyclopedia-portal-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 2;
    max-width: 850px;
    margin: 0 0 20px;
}

.encyclopedia-meta-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.encyclopedia-meta-tags span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #f6d365;
}

.encyclopedia-portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #0a0a1a;
    padding: 12px 26px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(253, 160, 133, 0.3);
}

.encyclopedia-portal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(253, 160, 133, 0.45);
}

@media (max-width: 768px) {
    .encyclopedia-portal-entry {
        padding: 15px 20px;
    }
    .encyclopedia-portal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== منوی موبایل (سایدبار) ===== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(16, 45, 76, 0.9) !important;
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: 10px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1003;
    gap: 5px;
    padding: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.75);
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #FFD700;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 86vw;
    height: 100vh;
    background: linear-gradient(180deg, #091729 0%, #102d4c 50%, #091729 100%) !important;
    border-left: 1px solid rgba(255, 215, 0, 0.22);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 19px 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    background: rgba(255, 215, 0, 0.03);
}

.menu-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.menu-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    color: #FFD700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-close:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: rotate(90deg);
}

.menu-list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.menu-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.menu-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.menu-list li a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #FFD700;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.menu-list li a:hover {
    background: rgba(255, 215, 0, 0.06);
    color: #FFD700;
    padding-right: 30px;
}

.menu-list li a:hover::before {
    transform: scaleY(1);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }
    .mobile-menu-overlay {
        display: block;
    }
}

/* =========================================================
   GOV_OFFICIAL_HEADER_CSS (پالت رسمی آبی آسمانی سنگین وزارتی)
   ========================================================= */

.gov-official-header {
    direction: rtl;
    width: 100%;
    position: relative;
    z-index: 9999;
    background: radial-gradient(circle at 50% -10%, #1e4b7a 0%, #102d4c 60%, #0a192f 100%) !important;
    color: var(--gov-white);
    font-family: inherit;
    box-shadow: var(--gov-shadow) !important;
    border-bottom: 2px solid var(--gov-gold-400) !important;
    overflow: visible;
}

.gov-top-strip {
    height: 4px;
    background:
        linear-gradient(90deg, transparent 0%, var(--gov-gold-200) 18%, var(--gov-gold-400) 50%, var(--gov-gold-200) 82%, transparent 100%),
        linear-gradient(90deg, var(--gov-blue-950), var(--gov-blue-700), var(--gov-blue-950));
}

.gov-top-bar {
    min-height: 34px;
    padding: 6px 28px;
    background:
        radial-gradient(circle at 15% 50%, rgba(229, 200, 139, 0.15), transparent 30%),
        linear-gradient(90deg, #091729 0%, #133960 50%, #091729 100%) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--gov-border);
    font-size: 13px;
}

.gov-top-right,
.gov-top-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gov-bismillah {
    color: var(--gov-gold-200);
    font-size: 22px;
    line-height: 1;
    text-shadow: 0 0 14px rgba(229, 200, 139, 0.5);
}

.gov-separator {
    width: 1px;
    height: 18px;
    background: rgba(229, 200, 139, 0.42);
}

.gov-small-text,
.gov-date-label {
    color: #cbd5e1;
}

#gov-live-date {
    color: var(--gov-gold-100);
    font-weight: 800;
}

.gov-main-bar {
    position: relative;
    padding: 22px 32px;
    background:
        radial-gradient(circle at top right, rgba(205, 168, 93, 0.16), transparent 40%),
        radial-gradient(circle at bottom left, rgba(37, 99, 154, 0.35), transparent 40%),
        linear-gradient(135deg, #0a192f 0%, #102d4c 50%, #1a4269 100%) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.gov-main-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.04) 25%, transparent 25%);
    background-size: 22px 22px;
}

.gov-main-bar::after {
    content: "";
    position: absolute;
    right: 28px;
    left: 28px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gov-gold-200), transparent);
}

.gov-brand-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.gov-emblem-box {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(246, 231, 188, 0.2), rgba(197, 160, 89, 0.08)),
        rgba(10, 25, 47, 0.5) !important;
    border: 1.5px solid var(--gov-gold-400);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 10px 24px rgba(0,0,0,0.4);
    text-decoration: none;
}

.gov-emblem {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.38));
}

.gov-title-wrap {
    min-width: 0;
}

.gov-ministry-line {
    color: var(--gov-gold-200);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: 5px;
}

.gov-title {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.35;
    font-weight: 950;
    text-shadow: 0 3px 12px rgba(0,0,0,0.6);
}

.gov-subtitle {
    margin-top: 5px;
    color: var(--gov-muted);
    font-size: 13px;
    font-weight: 600;
}

.gov-action-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gov-service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 12px;
    color: #081628 !important;
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
    background:
        linear-gradient(135deg, var(--gov-gold-100) 0%, var(--gov-gold-400) 52%, var(--gov-gold-600) 100%);
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow:
        0 10px 24px rgba(205,168,93,0.3),
        inset 0 1px 0 rgba(255,255,255,0.55);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
    white-space: nowrap;
}

.gov-service-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 14px 28px rgba(205,168,93,0.42);
    color: #000000 !important;
}

.gov-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(16, 45, 76, 0.25);
    border: 1px solid rgba(16, 45, 76, 0.35);
    font-size: 12px;
    font-weight: 950;
}

/* نوار ناوبری دسکتاپ وزارتی */
.gov-nav {
    min-height: 48px;
    padding: 0 26px;
    background: linear-gradient(180deg, #102d4c 0%, #091729 100%) !important;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(205, 168, 93, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gov-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gov-menu li {
    margin: 0;
    padding: 0;
}

.gov-menu a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
    transition: color .22s ease, background .22s ease;
}

.gov-menu a::after {
    content: "";
    position: absolute;
    right: 18px;
    left: 18px;
    bottom: 0;
    height: 2px;
    background: var(--gov-gold-400);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
}

.gov-menu a:hover {
    color: var(--gov-gold-100);
    background: rgba(205, 168, 93, 0.12);
}

.gov-menu a:hover::after {
    transform: scaleX(1);
}

.gov-mobile-toggle {
    display: none;
}

/* =========================================================
   اصلاح نسخه موبایل و ریسپانسیو ردیف منو (حل مشکل بیرون‌زدگی ۵ گزینه)
   ========================================================= */
@media (max-width: 920px) {
    .gov-top-bar {
        padding: 8px 14px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 6px;
    }

    .gov-main-bar {
        padding: 20px 16px;
        flex-direction: column;
        text-align: center;
    }

    .gov-brand-wrap {
        flex-direction: column;
    }

    .gov-action-wrap {
        width: 100%;
        justify-content: center;
    }

    .gov-service-btn {
        width: min(100%, 360px);
    }

    /* ردیف منو در موبایل: ساختار عمودی، منظم و خوانا */
    .ultra-nav,
    .gov-nav,
    nav {
        padding: 10px 14px !important;
        height: auto !important;
        justify-content: center;
        background: #091729 !important;
    }

    .gov-mobile-toggle {
        display: none !important;
    }

    .ultra-nav ul,
    .gov-menu,
    nav ul {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 4px 0;
        gap: 8px !important;
    }

    .ultra-nav li,
    .gov-menu li,
    nav li {
        width: 100% !important;
    }

    .ultra-nav a,
    .gov-menu a,
    nav a {
        display: flex !important;
        min-height: 42px !important;
        width: 100% !important;
        justify-content: center !important;
        background: rgba(205, 168, 93, 0.09) !important;
        border: 1px solid rgba(205, 168, 93, 0.25) !important;
        border-radius: 10px !important;
        font-size: 13.5px !important;
        color: #fbf3d5 !important;
    }

    .gov-menu a::after {
        display: none;
    }
}

@media (max-width: 520px) {
    .gov-title {
        font-size: 23px;
    }

    .gov-subtitle,
    .gov-ministry-line,
    .gov-small-text,
    .gov-top-left {
        font-size: 12px;
    }

    .gov-emblem-box {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
    }

    .gov-emblem {
        width: 50px;
        height: 50px;
    }
}


/* GOV_OFFICIAL_HEADER_CSS_END */