/* ==========================================================================
   قرض‌الحسنه شهید مطهری اصفهان - استایل‌های اصلی وب‌سایت
   طراحی لوکس، مدرن و باوقار متناسب با نهادهای قرض‌الحسنه و مالی اسلامی
   ========================================================================== */

/* واردسازی فونت فارسی وزیرمتن (خواناترین و زیباترین وب‌فونت استاندارد فارسی) */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');

:root {
    /* پالت رنگی اختصاصی: سبز یشمی فاخر، زمردی و طلایی اصفهان */
    --primary-green: #0a4d3c;
    --primary-green-dark: #063529;
    --primary-green-light: #12634e;
    --primary-emerald: #059669;
    --primary-mint: #e8f5f1;
    
    --accent-gold: #c59b27;
    --accent-gold-light: #f4e3ab;
    --accent-gold-dark: #916f15;
    --accent-gold-gradient: linear-gradient(135deg, #e4be54 0%, #c59b27 50%, #916f15 100%);
    
    --bg-main: #f8faf9;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-subtle: #f1f5f3;
    
    --text-primary: #13241e;
    --text-secondary: #4b6358;
    --text-muted: #789085;
    --text-white: #ffffff;
    
    --border-light: #e2e8e5;
    --border-gold: rgba(197, 155, 39, 0.35);
    
    --shadow-sm: 0 2px 8px rgba(10, 77, 60, 0.05);
    --shadow-md: 0 8px 24px rgba(10, 77, 60, 0.08);
    --shadow-lg: 0 16px 40px rgba(10, 77, 60, 0.12);
    --shadow-gold: 0 10px 30px rgba(197, 155, 39, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
}

/* انتخاب متن */
::selection {
    background-color: var(--primary-green);
    color: var(--accent-gold-light);
}

/* اسکرول‌بار سفارشی */
::-webkit-scrollbar {
    width: 9px;
}
::-webkit-scrollbar-track {
    background: #eaf1ed;
}
::-webkit-scrollbar-thumb {
    background: #12634e;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0a4d3c;
}

/* اسلیمی و پترن پس‌زمینه لطیف */
.bg-islamic-pattern {
    background-color: var(--primary-green-dark);
    background-image: radial-gradient(rgba(197, 155, 39, 0.12) 1.5px, transparent 1.5px),
                      radial-gradient(rgba(255, 255, 255, 0.04) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

/* کانتینر استاندارد */
.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* نوار اعلانات و وضعیت بالا (Top Bar) */
.top-bar {
    background-color: var(--primary-green-dark);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(197, 155, 39, 0.25);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.top-bar-links, .top-bar-contact {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.top-bar a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--transition-fast);
}
.top-bar a:hover {
    color: var(--accent-gold-light);
}

/* هدر اصلی سایت */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: padding var(--transition-base), background-color var(--transition-base);
}
.main-header.scrolled {
    padding-block: 0.25rem;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 25px rgba(10, 77, 60, 0.1);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 0.75rem;
}

/* برند و لوگوی صندوق */
.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.brand-text {
    border-right: 3px solid var(--accent-gold);
    padding-right: 0.85rem;
}
.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1.2;
    margin: 0;
}
.brand-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* منوی ناوبری */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.75rem;
}
.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-block: 0.5rem;
    transition: color var(--transition-fast);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2.5px;
    background-color: var(--accent-gold);
    border-radius: 2px;
    transition: width var(--transition-base);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-green);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* دکمه‌های اقدام هدر */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-emerald));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(10, 77, 60, 0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 77, 60, 0.35);
    color: #ffffff;
}
.btn-gold {
    background: var(--accent-gold-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
    background: linear-gradient(135deg, #ffd768 0%, #d4af37 50%, #a27b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(197, 155, 39, 0.45);
    color: #ffffff;
}
.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}
.btn-outline:hover {
    background-color: var(--primary-green);
    color: #ffffff;
    transform: translateY(-2px);
}
.btn-portal {
    background: linear-gradient(135deg, #0f4c3a 0%, #166534 100%);
    color: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 15px rgba(15, 76, 58, 0.2);
    position: relative;
    overflow: hidden;
}
.btn-portal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.btn-portal:hover::before {
    opacity: 1;
}
.btn-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 155, 39, 0.4);
    color: #fff;
}

/* منوی موبایل هامبورگری */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary-green);
    cursor: pointer;
}

/* ==========================================================================
   بخش بنر هیرو با موشن تعاملی قدمت (Hero Banner & 1359 Timeline Motion)
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 4rem;
    padding-bottom: 5.5rem;
    background: radial-gradient(circle at 10% 20%, rgba(18, 99, 78, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(197, 155, 39, 0.1) 0%, transparent 45%),
                linear-gradient(180deg, #f8faf9 0%, #eef5f2 100%);
    overflow: hidden;
}

/* نشان‌های تزیینی اسلیمی و هندسی در پس‌زمینه */
.hero-decor-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}
.decor-1 {
    width: 380px;
    height: 380px;
    background: rgba(197, 155, 39, 0.12);
    top: -100px;
    right: -100px;
}
.decor-2 {
    width: 450px;
    height: 450px;
    background: rgba(10, 77, 60, 0.12);
    bottom: -150px;
    left: -120px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* نشان سال ۱۳۵۹ و قدمت */
.hero-heritage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 1.15rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(197, 155, 39, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-green-dark);
    box-shadow: 0 4px 15px rgba(197, 155, 39, 0.15);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(6px);
}
.hero-heritage-badge i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* تایپوگرافی هیرو */
.hero-title {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--primary-green-dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}
.hero-title .highlight-gold {
    color: var(--accent-gold);
    position: relative;
    display: inline-block;
}
.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 2rem;
    text-align: justify;
}

/* ویجت زنده شمارنده قدمت از ۱۳۵۹ تا امروز */
.hero-years-counter-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(197, 155, 39, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.75rem;
    margin-bottom: 2.25rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.hero-years-counter-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-gold-gradient);
}
.counter-box {
    text-align: center;
}
.counter-number-flow {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-green);
    line-height: 1;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.counter-number-flow span.plus {
    color: var(--accent-gold);
    font-size: 2.2rem;
}
.counter-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.counter-divider {
    width: 1px;
    height: 50px;
    background: var(--border-light);
}
.counter-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.counter-details h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-green-dark);
}
.counter-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* دکمه‌های اقدام هیرو */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* سمت چپ هیرو: کارت تعاملی سه‌بعدی و بنر تصویری با افکت موشن ماوس */
.hero-visual-card {
    position: relative;
    border-radius: var(--radius-xl);
    perspective: 1000px;
    z-index: 5;
}
.hero-main-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #0a4d3c, #062f25);
    box-shadow: 0 25px 55px -10px rgba(10, 77, 60, 0.4);
    border: 3px solid rgba(197, 155, 39, 0.45);
    padding: 0.85rem;
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
    cursor: pointer;
}
.hero-img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: calc(var(--radius-xl) - 8px);
    display: block;
    background: #fdfaf0;
    transition: transform 0.4s ease;
}
.hero-main-frame:hover .hero-img {
    transform: scale(1.02);
}

/* کارت‌های شناور روی هیرو (Floating Badges) */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid rgba(197, 155, 39, 0.35);
    z-index: 10;
    transition: transform 0.3s ease;
}
.floating-badge:hover {
    transform: translateY(-4px) scale(1.02);
}
.badge-1359 {
    bottom: -22px;
    right: -10px;
}
.badge-loan-rate {
    top: -18px;
    left: -15px;
}
.badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-mint);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.badge-icon.gold-icon {
    background: #fdf5e2;
    color: var(--accent-gold-dark);
}
.badge-info h5 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}
.badge-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* نوار آمار و افتخارات سریع */
.stats-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-gold-light);
}
.stat-label {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ==========================================================================
   بخش تایم‌لاین اصالت و قدمت با موشن اسکرول (Scroll-Driven Interactive Timeline)
   ========================================================================== */
.timeline-section {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}
.section-header {
    text-align: center;
    max-width: 750px;
    margin-inline: auto;
    margin-bottom: 4rem;
}
.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--primary-mint);
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    border: 1px solid rgba(10, 77, 60, 0.15);
}
.section-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--primary-green-dark);
    line-height: 1.35;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* تایم‌لاین تعاملی مدرن */
.timeline-interactive-container {
    position: relative;
    max-width: 1000px;
    margin-inline: auto;
    padding: 2rem 0;
}
/* خط مرکزی تایم‌لاین */
.timeline-spine {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    width: 4px;
    transform: translateX(50%);
    background: #e2e8e5;
    border-radius: 4px;
}
.timeline-spine-progress {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 0%;
    background: var(--accent-gold-gradient);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(197, 155, 39, 0.6);
    transition: height 0.25s ease-out;
}

/* ردیف‌های تایم‌لاین */
.timeline-node {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    align-items: center;
}
.timeline-node:last-child {
    margin-bottom: 0;
}

.timeline-node:nth-child(even) .node-card {
    grid-column: 2;
    text-align: right;
}
.timeline-node:nth-child(even) .node-visual {
    grid-column: 1;
    grid-row: 1;
}

.timeline-node:nth-child(odd) .node-card {
    grid-column: 1;
    text-align: left;
}
.timeline-node:nth-child(odd) .node-card .node-card-inner {
    text-align: right;
}
.timeline-node:nth-child(odd) .node-visual {
    grid-column: 2;
}

/* نشانگر سال روی محور مرکزی */
.timeline-bullet {
    position: absolute;
    right: 50%;
    transform: translate(50%, -50%);
    top: 50%;
    width: 52px;
    height: 52px;
    background: #ffffff;
    border: 3px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary-green);
    box-shadow: 0 0 0 6px rgba(10, 77, 60, 0.08);
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-node.active .timeline-bullet {
    background: var(--accent-gold-gradient);
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 0 8px rgba(197, 155, 39, 0.25), 0 0 20px rgba(197, 155, 39, 0.5);
    transform: translate(50%, -50%) scale(1.15);
}

/* کارت توضیحات تایم‌لاین */
.node-card-inner {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    position: relative;
}
.timeline-node:hover .node-card-inner {
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 155, 39, 0.5);
    transform: translateY(-4px);
}
.node-year-badge {
    display: inline-block;
    background: var(--primary-mint);
    color: var(--primary-green);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}
.node-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-green-dark);
    margin-bottom: 0.75rem;
}
.node-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* بخش بصری یا عکس سند تایم‌لاین */
.node-visual-inner {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(197, 155, 39, 0.2);
    cursor: pointer;
    background: #ffffff;
}
.node-visual-inner img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.node-visual-inner:hover img {
    transform: scale(1.05);
}
.visual-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 0.5rem 1rem;
    background: rgba(10, 77, 60, 0.88);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   بخش ارکان و ساختار سازمانی (Founders, Board, Trustees & Staff)
   ========================================================================== */
.org-section {
    padding: 6rem 0;
    background: var(--bg-subtle);
}

/* ادای احترام به هیئت موسس و آیت‌الله مظاهری */
.founder-tribute-banner {
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
    border-radius: var(--radius-xl);
    padding: 2.5rem 3rem;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(197, 155, 39, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem;
}
.founder-tribute-banner::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(197, 155, 39, 0.25) 0%, transparent 70%);
}
.founder-tribute-content {
    position: relative;
    z-index: 2;
}
.founder-tribute-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-gold-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.founders-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.founder-tag {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(197, 155, 39, 0.4);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}
.founder-tag:hover {
    background: rgba(197, 155, 39, 0.25);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}
.founder-tag.prominent {
    background: rgba(197, 155, 39, 0.35);
    border-color: var(--accent-gold);
    color: #fff2b2;
}

/* کارت‌های مدیران اصلی */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}
.leader-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}
.leader-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 155, 39, 0.4);
}
.leader-img-wrapper {
    height: 300px;
    position: relative;
    overflow: hidden;
    background: #f1f5f3;
}
.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}
.leader-img-ceo,
.leader-card img[src*="ceo.png"] {
    object-position: center 20%;
}
.leader-card:hover .leader-img {
    transform: scale(1.04);
}
.leader-info {
    padding: 1.75rem;
    text-align: center;
    flex-grow: 1;
}
.leader-role {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--primary-mint);
    color: var(--primary-green);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.leader-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-green-dark);
    margin-bottom: 0.5rem;
}
.leader-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* هیئت مدیره و هیئت امنا */
.board-group-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 3rem;
}
.board-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}
.board-group-header h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-green-dark);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* ساختار دو ستونه عکس و لیست اعضا */
.board-layout-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem;
    align-items: center;
}
@media (max-width: 900px) {
    .board-layout-grid {
        grid-template-columns: 1fr;
    }
}
.board-photo-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(197, 155, 39, 0.35);
    cursor: pointer;
    background: #f1f5f3;
}
.board-photo-img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    max-height: 440px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.board-photo-wrapper:hover .board-photo-img {
    transform: scale(1.04);
}
.board-photo-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 0.65rem 1rem;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 77, 60, 0.95) 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* تصاویر ساختمان و کادر همکاران */
.premises-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* راهنمای کروسل در دسکتاپ مخفی است */
.carousel-hint {
    display: none;
}

/* طرح‌بندی اختصاصی هیئت امنا: عکس در مرکز و اسامی در پیرامون آن */
.trustees-center-layout {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 430px) 1fr;
    gap: 1.5rem;
    align-items: center;
}
.trustees-side-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}
.trustees-center-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.trustees-center-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
    transition: transform 0.4s ease;
}
.trustees-center-caption {
    text-align: center;
    background: var(--bg-main);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}
.trustees-center-caption h5 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-green-dark);
    margin-bottom: 0.2rem;
}
.trustees-center-caption span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.board-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.board-member-item {
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
}
.board-member-item:hover {
    background: #ffffff;
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-sm);
    transform: translateX(-3px);
}
.board-member-item i {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

/* ==========================================================================
   بخش خدمات و تسهیلات وام ۴ درصد + ماشین حساب هوشمند
   ========================================================================== */
.services-section {
    padding: 6rem 0;
    background: #ffffff;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4.5rem;
}
.service-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    border-color: rgba(197, 155, 39, 0.4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 4px;
    background: var(--accent-gold-gradient);
    transition: width 0.35s ease;
}
.service-card:hover::after {
    width: 100%;
}
.service-icon-box {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--primary-mint);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.35s ease;
}
.service-card:hover .service-icon-box {
    background: var(--primary-green);
    color: #ffffff;
    transform: rotate(-6deg);
}
.service-card h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-green-dark);
    margin-bottom: 0.85rem;
}
.service-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ویجت محاسبه‌گر وام قرض‌الحسنه ۴٪ */
.calculator-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7faf8 100%);
    border: 1px solid rgba(197, 155, 39, 0.35);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}
.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.calc-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-green-dark);
}
.calc-value-badge {
    background: var(--primary-mint);
    color: var(--primary-green);
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 1rem;
}
/* اسلایدرها */
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #dbe7e2;
    outline: none;
    transition: background 0.2s;
}
.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-gold-gradient);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(197, 155, 39, 0.6);
    border: 2px solid #ffffff;
    transition: transform 0.15s ease;
}
.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* کارت نتایج ماشین حساب */
.calc-result-box {
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    color: #ffffff;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(197, 155, 39, 0.35);
    text-align: center;
}
.calc-result-box h4 {
    font-size: 1.15rem;
    color: var(--accent-gold-light);
    margin-bottom: 1.5rem;
}
.result-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.result-item span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.35rem;
}
.result-item strong {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 800;
}
.result-item.highlight-installment strong {
    color: var(--accent-gold-light);
    font-size: 2rem;
}

/* ==========================================================================
   بخش مجوزها و اصالت قانونی (Licenses & Official Documents)
   ========================================================================== */
.licenses-section {
    padding: 6rem 0;
    background: var(--bg-main);
}
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.25rem;
}
.license-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.35s ease;
}
.license-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 155, 39, 0.5);
}
.license-preview {
    height: 320px;
    background: #fafafa;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.license-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.4s ease;
}
.license-preview:hover img {
    transform: scale(1.04);
}
.license-zoom-hint {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(10, 77, 60, 0.85);
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    pointer-events: none;
}
.license-body {
    padding: 1.75rem;
}
.license-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-mint);
    color: var(--primary-green);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.license-body h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-green-dark);
    margin-bottom: 0.5rem;
}
.license-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   بخش گالری تصاویر محیط و ساختمان
   ========================================================================== */
.gallery-section {
    padding: 6rem 0;
    background: #ffffff;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 240px;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 77, 60, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    color: #ffffff;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

/* ==========================================================================
   بخش تماس با ما، اطلاعات شعبه، ساعات کاری و نقشه تعاملی
   ========================================================================== */
.contact-section {
    padding: 6rem 0;
    background: var(--bg-subtle);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-info-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 2.75rem 2.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}
.contact-info-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-green-dark);
    margin-bottom: 1.5rem;
}
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}
.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: var(--primary-mint);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.contact-text h5 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-green-dark);
    margin-bottom: 0.35rem;
}
.contact-text p, .contact-text a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-text a:hover {
    color: var(--primary-green);
}
.phones-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}
.phone-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-green-dark);
    text-decoration: none;
    direction: ltr;
    transition: all 0.2s ease;
}
.phone-chip:hover {
    background: var(--primary-green);
    color: #ffffff;
    border-color: var(--primary-green);
}

/* وضعیت زنده شعبه */
.branch-status-box {
    background: var(--bg-main);
    border: 1px solid rgba(10, 77, 60, 0.15);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 0.95rem;
}

/* نقشه تعاملی */
.map-wrapper {
    background: #ffffff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    height: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}
#map-container {
    width: 100%;
    flex-grow: 1;
    min-height: 400px;
}
.map-footer-actions {
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ==========================================================================
   بخش ورود به سامانه آنلاین (Customer Portal CTA Section)
   ========================================================================== */
.portal-cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, #0d4637 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.portal-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(197, 155, 39, 0.15) 0%, transparent 60%);
}
.portal-cta-box {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-inline: auto;
}
.portal-cta-box h3 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    color: #ffffff;
}
.portal-cta-box p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.9;
    margin-bottom: 2rem;
}

/* ==========================================================================
   فوتر کامل وب‌سایت
   ========================================================================== */
.site-footer {
    background-color: #06231b;
    color: rgba(255, 255, 255, 0.75);
    padding-top: 5rem;
    padding-bottom: 2rem;
    border-top: 2px solid rgba(197, 155, 39, 0.3);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer-col h5 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.65rem;
}
.footer-col h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 2.5px;
    background: var(--accent-gold);
    border-radius: 2px;
}
.footer-about p {
    font-size: 0.92rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-links a:hover {
    color: var(--accent-gold-light);
    transform: translateX(-4px);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
    font-size: 0.88rem;
}
.footer-bottom a {
    color: var(--accent-gold-light);
    text-decoration: none;
}

/* ==========================================================================
   لایت‌باکس بزرگ‌نمایی تصویر (Image Lightbox Modal)
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.lightbox-modal.active {
    display: flex;
}
.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}
.lightbox-caption {
    color: #ffffff;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}
.lightbox-close {
    position: absolute;
    top: -45px;
    left: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.lightbox-close:hover {
    transform: scale(1.2);
    color: var(--accent-gold);
}

/* ==========================================================================
   ریسپانسیو دیزاین (Responsive Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-visual-card {
        max-width: 540px;
        margin-inline: auto;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .calculator-card {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

/* بخش‌های ویژه موبایل در دسکتاپ کاملاً مخفی هستند */
.mobile-only,
.trustees-mobile-layout,
.contact-mobile-carousel {
    display: none !important;
}
.nav-portal-item {
    display: none;
}
.premises-intro-text {
    display: block;
}

@media (max-width: 768px) {
    /* ۱. حذف کامل نوار بالای هدر در موبایل */
    .top-bar {
        display: none !important;
    }

    .mobile-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 75px);
        background: #ffffff;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.25rem;
        transition: right 0.35s ease;
        z-index: 999;
    }
    .nav-menu.open {
        right: 0;
    }

    /* ۲. حذف متن‌های کنار بنر در موبایل */
    .hero-content {
        display: none !important;
    }
    .hero-section {
        padding: 2rem 0 2.5rem 0 !important;
    }
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .hero-visual-card {
        max-width: 100% !important;
        margin-inline: auto !important;
    }
    .floating-badge {
        padding: 0.45rem 0.75rem;
        gap: 0.5rem;
    }
    .floating-badge .badge-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
    .floating-badge .badge-info h5 {
        font-size: 0.8rem;
    }
    .floating-badge .badge-info p {
        font-size: 0.68rem;
    }
    .badge-1359 {
        bottom: -12px;
        right: 8px;
    }
    .badge-loan-rate {
        top: -12px;
        left: 8px;
    }

    /* ۳. کروسل ۴ بخش آمار در موبایل */
    .stats-strip-grid {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1.5rem;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 0.5rem 1.5rem 1.25rem 1.5rem;
        margin-inline: -1.5rem;
        scrollbar-width: thin;
        scrollbar-color: var(--accent-gold) rgba(255, 255, 255, 0.1);
    }
    .stats-strip-grid::-webkit-scrollbar {
        height: 5px;
    }
    .stats-strip-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 10px;
    }
    .stats-strip-grid::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
        border-radius: 10px;
    }
    .stats-strip-grid > .stat-item {
        flex: 0 0 65% !important;
        max-width: 65% !important;
        min-width: 200px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(197, 155, 39, 0.3);
        border-radius: var(--radius-md);
        padding: 1.25rem 1rem;
        text-align: center;
    }

    /* ۴. کروسل تاریخچه در موبایل */
    .timeline-spine {
        display: none !important;
    }
    .timeline-interactive-container {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1.5rem;
        -webkit-overflow-scrolling: touch;
        gap: 1.25rem;
        padding: 0.75rem 1.5rem 1.75rem 1.5rem;
        margin-inline: -1.5rem;
        scrollbar-width: thin;
        scrollbar-color: var(--accent-gold) rgba(0, 0, 0, 0.06);
    }
    .timeline-interactive-container::-webkit-scrollbar {
        height: 6px;
    }
    .timeline-interactive-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
    .timeline-interactive-container::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
        border-radius: 10px;
    }
    .timeline-node {
        display: flex !important;
        flex-direction: column;
        flex: 0 0 85% !important;
        max-width: 85% !important;
        min-width: 280px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin-bottom: 0 !important;
        padding: 1.5rem 1.25rem 1.25rem 1.25rem !important;
        gap: 0.75rem;
        position: relative;
        background: #ffffff;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
    }
    .timeline-bullet {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        padding: 0.35rem 1rem !important;
        border-radius: var(--radius-full) !important;
        background: var(--primary-green) !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 4px 10px rgba(10, 77, 60, 0.2) !important;
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        align-self: flex-start !important;
        margin-bottom: 0.25rem !important;
    }
    .timeline-node:nth-child(even) .node-card,
    .timeline-node:nth-child(odd) .node-card {
        grid-column: auto;
        text-align: right !important;
        width: 100%;
    }
    .node-card-inner {
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }
    .node-card h3 {
        font-size: 1.15rem;
        margin-bottom: 0.6rem;
    }
    .node-card p {
        font-size: 0.88rem;
        line-height: 1.7;
        margin-bottom: 0;
    }
    .timeline-node:nth-child(even) .node-visual,
    .timeline-node:nth-child(odd) .node-visual {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        margin-top: 0.5rem;
    }
    .node-visual-inner {
        height: 200px;
        border-radius: var(--radius-md);
        overflow: hidden;
    }
    .node-visual-inner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

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

    /* ۵. فوتر موبایل: فقط کپی‌رایت نمایش داده شود و بقیه بخش‌ها حذف شوند */
    .footer-grid {
        display: none !important;
    }
    .site-footer {
        padding: 1.5rem 0 !important;
    }
    .footer-bottom {
        border-top: none !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        text-align: center !important;
    }

    /* ==========================================================================
       کروسل افقی برای باکس‌ها در حالت موبایل (Mobile Horizontal Carousel)
       ========================================================================== */
    .services-grid,
    .licenses-grid,
    .leaders-grid,
    .premises-photos-grid {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1.5rem;
        -webkit-overflow-scrolling: touch;
        gap: 1.25rem;
        padding: 0.75rem 1.5rem 1.75rem 1.5rem;
        margin-inline: -1.5rem;
        scrollbar-width: thin;
        scrollbar-color: var(--accent-gold) rgba(0, 0, 0, 0.06);
    }

    .services-grid::-webkit-scrollbar,
    .licenses-grid::-webkit-scrollbar,
    .leaders-grid::-webkit-scrollbar,
    .premises-photos-grid::-webkit-scrollbar {
        height: 6px;
    }

    .services-grid::-webkit-scrollbar-track,
    .licenses-grid::-webkit-scrollbar-track,
    .leaders-grid::-webkit-scrollbar-track,
    .premises-photos-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    .services-grid::-webkit-scrollbar-thumb,
    .licenses-grid::-webkit-scrollbar-thumb,
    .leaders-grid::-webkit-scrollbar-thumb,
    .premises-photos-grid::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
        border-radius: 10px;
    }

    /* ابعاد و تراز کارت‌ها درون کروسل موبایل */
    .services-grid > .service-card,
    .licenses-grid > .license-card,
    .leaders-grid > .leader-card,
    .premises-photos-grid > .board-photo-wrapper {
        flex: 0 0 82% !important;
        max-width: 82% !important;
        min-width: 270px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin-bottom: 0 !important;
        height: auto;
    }

    .service-card {
        padding: 1.75rem 1.35rem;
    }

    .leader-card .leader-img-wrapper {
        height: 260px;
    }

    /* پنهان‌سازی بخش‌های دسکتاپ هیئت امنا و تماس در موبایل */
    .desktop-only,
    .trustees-center-layout,
    .contact-grid {
        display: none !important;
    }
    .mobile-only,
    .trustees-mobile-layout {
        display: block !important;
    }
    .contact-mobile-carousel {
        display: flex !important;
    }

    /* انتقال دکمه ورود به سامانه به داخل منوی همبرگری موبایل */
    .header-actions .btn-portal {
        display: none !important;
    }
    .nav-portal-item {
        display: block !important;
        width: 100%;
        margin-top: 1.25rem;
        padding-top: 1rem;
        border-top: 1px dashed var(--border-light);
    }
    .nav-portal-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    /* حذف متن قسمت همکاران در موبایل */
    .premises-intro-text {
        display: none !important;
    }

    /* حذف پیام ورق‌بزنید در موبایل طبق درخواست */
    .carousel-hint,
    .carousel-hint-container {
        display: none !important;
    }

    /* کروسل اسامی هیئت امنا ۴ تا ۴ تا در موبایل */
    .trustees-slides-carousel {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1.5rem;
        -webkit-overflow-scrolling: touch;
        gap: 1.25rem;
        padding: 0.5rem 1.5rem 1.75rem 1.5rem;
        margin-inline: -1.5rem;
        scrollbar-width: thin;
        scrollbar-color: var(--accent-gold) rgba(0, 0, 0, 0.06);
    }
    .trustees-slides-carousel::-webkit-scrollbar {
        height: 6px;
    }
    .trustees-slides-carousel::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
    .trustees-slides-carousel::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
        border-radius: 10px;
    }
    .trustees-slide {
        flex: 0 0 85% !important;
        max-width: 85% !important;
        min-width: 270px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        background: var(--bg-main);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        padding: 1.15rem 1rem;
        box-shadow: var(--shadow-sm);
    }
    .trustees-slide-badge {
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--primary-green-dark);
        background: rgba(10, 77, 60, 0.08);
        padding: 0.25rem 0.65rem;
        border-radius: var(--radius-full);
        width: fit-content;
        margin-bottom: 0.25rem;
    }

    /* کروسل چند قسمتی اطلاعات تماس و نقشه در موبایل */
    .contact-mobile-carousel {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1.5rem;
        -webkit-overflow-scrolling: touch;
        gap: 1.25rem;
        padding: 0.5rem 1.5rem 1.75rem 1.5rem;
        margin-inline: -1.5rem;
        scrollbar-width: thin;
        scrollbar-color: var(--accent-gold) rgba(0, 0, 0, 0.06);
    }
    .contact-mobile-carousel::-webkit-scrollbar {
        height: 6px;
    }
    .contact-mobile-carousel::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
    .contact-mobile-carousel::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
        border-radius: 10px;
    }
    .contact-mobile-card {
        flex: 0 0 85% !important;
        max-width: 85% !important;
        min-width: 280px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        background: #ffffff;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-lg);
        padding: 1.5rem 1.25rem;
        box-shadow: var(--shadow-md);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 380px;
    }
    .contact-mobile-card h4 {
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--primary-green-dark);
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}
