/* ============================================================
   styleindex.css - استایل اصلی صفحه index.php
   خیریه محبان ثارالله
   نسخه نهایی با منوی شیشه‌ای حرفه‌ای
   ============================================================ */

/* ============================================
   فونت‌های فارسی موجود در css/webfonts/
   ============================================ */
@font-face {
    font-family: 'Vazir';
    src: url('webfonts/Vazir.woff2') format('woff2'),
         url('webfonts/Vazir.woff') format('woff'),
         url('webfonts/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekan';
    src: url('webfonts/IRANYekan.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan';
    src: url('webfonts/Yekan.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Samim';
    src: url('webfonts/Samim-FD-WOL.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sahel';
    src: url('webfonts/Sahel-FD.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Parastoo';
    src: url('webfonts/Parastoo-FD.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   متغیرهای اصلی
   ============================================ */
:root {
    --primary: #1a2a4f;
    --secondary: #c27a0e;
    --accent: #b86b0a;
    --white: #ffffff;
    --light: #fefaf5;
    --gray: #e9ecef;
    --dark: #2c3e50;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --border-radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'IRANYekan', 'Yekan', 'Samim', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(145deg, #fefaf5 0%, #fdf5ed 100%);
    min-height: 100vh;
    font-feature-settings: "ss02";
}

html, body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6, p, a, span, div, li, label {
    font-family: 'Vazir', 'IRANYekan', 'Yekan', 'Samim', sans-serif;
}

/* ============================================
   اسکرول‌بار زیبا
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #fefaf5;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--secondary), var(--accent));
    border-radius: 10px;
    border: 2px solid #fefaf5;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent), var(--secondary));
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) #fefaf5;
}

::selection {
    background: rgba(194, 122, 14, 0.25);
    color: var(--primary);
}

/* ============================================
   انیمیشن‌های اسکرول (AOS)
   ============================================ */
.aos-item {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.aos-right { transform: translateX(80px); }
.aos-left { transform: translateX(-80px); }
.aos-bottom { transform: translateY(80px); }
.aos-top { transform: translateY(-80px); }
.aos-zoom { transform: scale(0.7); }
.aos-rotate { transform: rotateY(90deg); }
.aos-bounce { transform: scale(0.3); }

.aos-item.aos-visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1) rotateY(0);
}

/* ============================================
   منوی شیشه‌ای حرفه‌ای - نسخه نهایی
   ============================================ */
.navbar {
    position: fixed;
    top: 15px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 15px;
    direction: rtl;
    transition: top 0.4s ease, padding 0.4s ease;
}

.nav-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    min-height: 72px;
    margin: 0 auto;
    padding: 6px 18px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.68), rgba(255,255,255,0.32));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50px;
    box-shadow: 
        0 8px 30px rgba(26, 42, 79, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: background 0.4s ease, box-shadow 0.4s ease, min-height 0.4s ease, border-color 0.4s ease;
}

.nav-container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255,255,255,0.18), transparent 45%, rgba(255,255,255,0.15));
    pointer-events: none;
}

.navbar.scrolled .nav-container {
    min-height: 66px;
    background: rgba(26, 42, 79, 0.94);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-color: rgba(194, 122, 14, 0.32);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
}

.nav-flex {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    direction: rtl;
    gap: 16px;
}

/* ========== لوگو ========== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    direction: rtl;
    text-decoration: none;
    flex-shrink: 0;
    margin: 0;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-1px);
    opacity: 1;
}

.logo-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.55));
    border: 1px solid rgba(194, 122, 14, 0.55);
    box-shadow: 
        0 4px 14px rgba(26, 42, 79, 0.15),
        inset 0 1px 3px rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.06) rotate(-3deg);
    box-shadow: 0 6px 20px rgba(194, 122, 14, 0.3);
}

.logo-text {
    display: block;
    max-width: 350px;
    color: #1a2a4f;
    font-family: 'Vazir', 'IRANYekan', 'Yekan', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65);
    transition: color 0.3s ease;
}

.navbar.scrolled .logo-text {
    color: #ffffff;
}

/* ========== دکمه همبرگری ========== */
.menu-toggle {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,255,255,0.50));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 
        0 5px 15px rgba(26, 42, 79, 0.12),
        inset 0 1px 3px rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    color: #1a2a4f;
    font-size: 22px;
}

.menu-toggle:hover {
    transform: scale(1.05);
    background: #c27a0e;
    color: #ffffff;
    box-shadow: 0 7px 20px rgba(26, 42, 79, 0.18);
}

/* ========== منوی ناوبری - دسکتاپ ========== */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    direction: rtl;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 30px;
    color: #1a2a4f;
    font-family: 'Vazir', 'IRANYekan', 'Yekan', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-menu li a:hover {
    color: #b8790e;
    background: rgba(194, 122, 14, 0.10);
    transform: translateY(-1px);
}

.nav-menu li a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #c27a0e, #b86b0a);
    box-shadow: 0 4px 15px rgba(194, 122, 14, 0.30);
}

.navbar.scrolled .nav-menu li a {
    color: #ffffff;
}

.navbar.scrolled .nav-menu li a:hover {
    color: #ffffff;
    background: rgba(194, 122, 14, 0.25);
}

.navbar.scrolled .nav-menu li a.active {
    background: linear-gradient(135deg, #c27a0e, #b86b0a);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(194, 122, 14, 0.45);
}

/* ============================================
   اسلایدر فول‌ویدث
   ============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at bottom right, rgba(194, 122, 14, 0.15), transparent 60%),
        linear-gradient(135deg, rgba(26, 42, 79, 0.55) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    z-index: 2;
    color: white;
    padding: 30px 40px;
    border-radius: 20px;
    width: 80%;
    max-width: 650px;
}

.slide-pos-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.slide-pos-top-right {
    top: 20%;
    right: 5%;
    transform: translateY(-20%);
    text-align: right;
}

.slide-pos-top-left {
    top: 20%;
    left: 5%;
    transform: translateY(-20%);
    text-align: left;
}

.slide-pos-bottom-right {
    bottom: 20%;
    right: 5%;
    transform: translateY(20%);
    text-align: right;
}

.slide-pos-bottom-left {
    bottom: 20%;
    left: 5%;
    transform: translateY(20%);
    text-align: left;
}

.slide-content h1 {
    font-size: 52px;
    margin-bottom: 15px;
    font-family: 'IRANYekan', 'Yekan', sans-serif;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.slider-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--secondary);
    width: 30px;
    border-radius: 5px;
}

/* ============================================
   دکمه‌ها
   ============================================ */
.btn-primary {
    display: inline-block;
    padding: 14px 38px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 
        0 4px 12px rgba(194, 122, 14, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 25px rgba(194, 122, 14, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    font-size: 14px;
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
}

/* ============================================
   بخش‌ها
   ============================================ */
.section {
    padding: 80px 0;
    overflow-x: hidden;
    transition: all 0.4s ease;
}

#about {
    background: linear-gradient(135deg, #ffffff 0%, #fefaf5 100%);
    position: relative;
    text-align: justify;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary), var(--accent), transparent);
}

#services {
    background: 
        radial-gradient(circle at 20% 50%, rgba(194, 122, 14, 0.04), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 200, 66, 0.06), transparent 50%),
        linear-gradient(135deg, #fdf5ed 0%, #fef5e8 100%);
    position: relative;
    border-radius: 40px;
    margin: 20px 0;
    box-shadow: 
        inset 0 1px 20px rgba(0,0,0,0.02), 
        0 5px 15px rgba(0,0,0,0.03);
}

#news {
    background: #ffffff;
    position: relative;
    border-top: 1px solid rgba(194, 122, 14, 0.12);
    border-bottom: 1px solid rgba(194, 122, 14, 0.12);
    box-shadow: 0 8px 25px rgba(0,0,0,0.02);
}

#campaigns {
    background: 
        radial-gradient(circle at 80% 20%, rgba(194, 122, 14, 0.05), transparent 50%),
        linear-gradient(120deg, #fefaf5 0%, #fcf6ed 100%);
    position: relative;
    border-radius: 40px;
    margin: 20px 0;
}

#gallery {
    background: #ffffff;
    position: relative;
}

.section-title {
    font-size: 34px;
    text-align: center;
    margin-bottom: 55px;
    font-family: 'IRANYekan', 'Yekan', sans-serif;
    position: relative;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(194, 122, 14, 0.08);
}

.section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(194, 122, 14, 0.08), transparent 70%);
    z-index: -1;
    filter: blur(20px);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary), var(--accent), var(--secondary), transparent);
    margin: 15px auto 0;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(194, 122, 14, 0.3);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   کارت‌ها
   ============================================ */
.card {
    background: linear-gradient(145deg, #ffffff 0%, #fefbf6 100%);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 
        0 1px 2px rgba(26, 42, 79, 0.04),
        0 8px 24px rgba(194, 122, 14, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(194, 122, 14, 0.08);
    position: relative;
}


.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 4px 8px rgba(26, 42, 79, 0.06),
        0 20px 40px rgba(194, 122, 14, 0.12);
    border-color: rgba(194, 122, 14, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 18px;
}

.card-title {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 18px;
}

/* ============================================
   گریدها
   ============================================ */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

/* ============================================
   پروگرس بار
   ============================================ */
.progress-bar {
    background: var(--gray);
    border-radius: 10px;
    height: 8px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 10px;
    transition: width 1.5s ease;
}

/* ============================================
   بخش آمار
   ============================================ */
.stats-custom-section {
    background: linear-gradient(135deg, #1a2a4f, #0f1a33);
    color: white;
    padding: 70px 0;
    position: relative;
    overflow: visible !important;
    width: 100%;
}

.stats-custom-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    overflow: visible !important;
}

.stats-custom-section .section-title {
    color: white;
    margin-bottom: 45px;
}

.stats-custom-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    text-align: center;
    overflow: visible !important;
}

.stat-card-custom {
    overflow: visible !important;
    padding: 10px 5px;
    transition: all 0.4s ease;
}

.stat-card-custom:hover {
    transform: translateY(-5px);
}

.stat-circle-custom {
    width: 130px;
    height: 130px;
    margin: 0 auto 18px;
    position: relative;
    overflow: visible !important;
    filter: drop-shadow(0 8px 20px rgba(194, 122, 14, 0.2));
}

.stat-circle-custom svg {
    width: 130px;
    height: 130px;
    transform: rotate(-90deg);
    display: block;
    overflow: visible !important;
}

.stat-circle-custom circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 4;
}

.stat-circle-custom .stat-progress-custom {
    stroke: #c27a0e;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 1.5s ease;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(194, 122, 14, 0.5));
}

.stat-number-custom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
    font-weight: 900;
    color: #c27a0e;
    font-variant-numeric: persian;
    text-shadow: 0 2px 10px rgba(194, 122, 14, 0.3);
}

.stat-card-custom h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
    margin-top: 5px;
}

/* ============================================
   گالری
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    box-shadow: 
        0 4px 15px rgba(26, 42, 79, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover {
    box-shadow: 
        0 20px 40px rgba(194, 122, 14, 0.2),
        0 8px 16px rgba(194, 122, 14, 0.1);
    transform: translateY(-6px);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.12);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(26, 42, 79, 0.98) 0%, 
        rgba(194, 122, 14, 0.85) 50%, 
        transparent 100%);
    padding: 20px 18px;
    transition: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: white;
    backdrop-filter: blur(4px);
}

.gallery-overlay h4 {
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* ============================================
   بخش حامیان
   ============================================ */
.supporters-section {
    background: 
        radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(255, 200, 100, 0.2), transparent 50%),
        linear-gradient(135deg, #fdaf18 0%, #f39c12 50%, #fdaf18 100%);
    padding: 70px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 10px 30px rgba(255, 255, 255, 0.1), 
        inset 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.supporters-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.supporters-section .heart-bubble {
    position: absolute;
    pointer-events: none;
    animation: floatHeartUp linear infinite;
    z-index: 0;
}

.supporters-section .heart-bubble svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.supporters-section .heart-bubble svg path {
    fill: rgba(255, 255, 255, 0.35);
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 1.5;
}

@keyframes floatHeartUp {
    0% {
        transform: translateY(100vh) scale(0.6) rotate(0deg);
        opacity: 0;
    }
    15% { opacity: 0.8; }
    85% { opacity: 0.5; }
    100% {
        transform: translateY(-80px) scale(1.1) rotate(10deg);
        opacity: 0;
    }
}

.supporters-section .heart-bubble:nth-child(1) { width: 35px; height: 35px; left: 8%; animation-duration: 8s; animation-delay: 0s; }
.supporters-section .heart-bubble:nth-child(2) { width: 22px; height: 22px; left: 20%; animation-duration: 6.5s; animation-delay: 2s; }
.supporters-section .heart-bubble:nth-child(3) { width: 50px; height: 50px; left: 35%; animation-duration: 10s; animation-delay: 1.2s; }
.supporters-section .heart-bubble:nth-child(4) { width: 18px; height: 18px; left: 48%; animation-duration: 5.5s; animation-delay: 3s; }
.supporters-section .heart-bubble:nth-child(5) { width: 30px; height: 30px; left: 60%; animation-duration: 7.5s; animation-delay: 0.8s; }
.supporters-section .heart-bubble:nth-child(6) { width: 28px; height: 28px; left: 75%; animation-duration: 9s; animation-delay: 4.2s; }
.supporters-section .heart-bubble:nth-child(7) { width: 45px; height: 45px; left: 88%; animation-duration: 11s; animation-delay: 2.5s; }
.supporters-section .heart-bubble:nth-child(8) { width: 20px; height: 20px; left: 12%; animation-duration: 6s; animation-delay: 1.8s; }
.supporters-section .heart-bubble:nth-child(9) { width: 38px; height: 38px; left: 42%; animation-duration: 8.5s; animation-delay: 3.8s; }
.supporters-section .heart-bubble:nth-child(10) { width: 26px; height: 26px; left: 55%; animation-duration: 7s; animation-delay: 0.5s; }
.supporters-section .heart-bubble:nth-child(11) { width: 55px; height: 55px; left: 70%; animation-duration: 12s; animation-delay: 5s; }
.supporters-section .heart-bubble:nth-child(12) { width: 15px; height: 15px; left: 82%; animation-duration: 5s; animation-delay: 2.2s; }
.supporters-section .heart-bubble:nth-child(13) { width: 40px; height: 40px; left: 25%; animation-duration: 9.5s; animation-delay: 1.5s; }
.supporters-section .heart-bubble:nth-child(14) { width: 25px; height: 25px; left: 65%; animation-duration: 6.8s; animation-delay: 3.5s; }
.supporters-section .heart-bubble:nth-child(15) { width: 48px; height: 48px; left: 93%; animation-duration: 10.5s; animation-delay: 0.3s; }

.supporters-section h2 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 900;
    position: relative;
    z-index: 1;
    font-family: 'IRANYekan', 'Yekan', sans-serif;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 20px rgba(255, 255, 255, 0.3);
    letter-spacing: -0.5px;
}

.supporters-section p {
    font-size: 18px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.supporters-section .btn-primary {
    position: relative;
    z-index: 1;
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.supporters-section .btn-primary:hover {
    transform: scale(1.05);
    background: white;
    color: var(--primary);
}

/* ============================================
   فوتر
   ============================================ */
.footer {
    background: 
        radial-gradient(ellipse at top, rgba(194, 122, 14, 0.15), transparent 60%),
        linear-gradient(135deg, #1a2a4f 0%, #0f1a33 100%);
    color: #ccc;
    padding: 60px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary), var(--accent), var(--secondary), transparent);
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-col h4 {
    color: var(--secondary);
    margin-bottom: 22px;
    font-size: 19px;
    font-family: 'IRANYekan', 'Yekan', sans-serif;
    font-weight: 800;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), transparent);
    border-radius: 2px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--secondary);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 18px;
    border: 1px solid rgba(194, 122, 14, 0.15);
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(194, 122, 14, 0.4);
    border-color: transparent;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* ============================================
   اسلایدر تبلیغاتی
   ============================================ */
.promo-slider-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fc, #fff);
    position: relative;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05), 0 -5px 20px rgba(0,0,0,0.03);
    margin: 30px 0;
    overflow: hidden;
}

.promo-slider-section::before,
.promo-slider-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c27a0e, #f39c12, #c27a0e, transparent);
}

.promo-slider-section::before { top: -2px; }
.promo-slider-section::after { bottom: -2px; }

.promo-slider-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    align-items: stretch;
    min-height: 450px;
    overflow: hidden;
}

.promo-slider-main {
    flex: 0 0 75%;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 25px 60px rgba(0, 0, 0, 0.2);
    background: #1a1a2e;
    border: 1px solid rgba(194, 122, 14, 0.15);
}

.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-slide.active {
    opacity: 1;
    visibility: visible;
}

.promo-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.promo-slide.active .promo-slide-img {
    transform: scale(1.02);
}

.promo-caption-glass {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0 20px 30px 20px;
    pointer-events: none;
}

.promo-caption-glass .promo-caption-text {
    display: inline-block;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(19px);
    border-radius: 18px;
    padding: 14px 28px;
    margin: 0;
    color: white;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    max-width: 80%;
    word-wrap: break-word;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.promo-caption-glass::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.3) 70%, transparent 100%);
    border-radius: 0 0 28px 28px;
    pointer-events: none;
    z-index: 0;
}

.promo-slider-thumbs {
    flex: 0 0 22%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
}

.promo-thumb {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    aspect-ratio: 16 / 9;
    background: #2d3748;
    opacity: 0.7;
}

.promo-thumb:hover,
.promo-thumb.active {
    opacity: 1;
}

.promo-thumb.active {
    box-shadow: 
        0 0 0 3px #c27a0e,
        0 8px 25px rgba(194, 122, 14, 0.4);
    transform: scale(1.05);
}

.promo-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.promo-thumb:hover .promo-thumb-img {
    transform: scale(1.05);
}

/* ============================================
   اسلایدر خودکار خبر
   ============================================ */
.news-slider-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.news-slider-container {
    width: 100%;
    overflow-x: hidden;
    cursor: grab;
}

.news-slider-track {
    display: flex;
    gap: 25px;
    width: fit-content;
    will-change: transform;
    transition: transform 0.1s linear;
}

.news-slide {
    flex: 0 0 320px;
    user-select: none;
}

.news-slide .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-slide .card .card-img {
    height: 200px;
    object-fit: cover;
}

/* ============================================
   خبر ویژه
   ============================================ */
.featured-news-wrapper {
    position: relative;
    padding: 60px 0;
    background: 
        radial-gradient(ellipse at top, rgba(245, 200, 66, 0.12), transparent 60%),
        linear-gradient(180deg, #fef8f0 0%, #fcf3e6 100%);
    margin: 0;
}

.featured-news-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.3), transparent);
}

.featured-news-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.3), transparent);
}

.featured-divider-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.divider-pattern {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 22px;
    color: #1a1a1a;
    letter-spacing: 8px;
}

.pattern-item {
    display: inline-block;
    animation: patternFloat 3s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.pattern-item:nth-child(odd) { animation-delay: 0.5s; }
.pattern-item:nth-child(even) { animation-delay: 1.2s; }

@keyframes patternFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-5px) scale(1.1); opacity: 1; }
}

.divider-line-heavy {
    width: 80%;
    max-width: 500px;
    height: 8px;
    background: linear-gradient(90deg, 
        transparent, 
        #b8860b 15%, 
        #d4a017 30%, 
        #f5c842 50%, 
        #d4a017 70%, 
        #b8860b 85%, 
        transparent
    );
    border-radius: 10px;
    box-shadow: 
        0 0 25px rgba(184, 134, 11, 0.35),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    position: relative;
}

.divider-line-heavy::before,
.divider-line-heavy::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #1a1a1a;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.divider-line-heavy::before { left: -20px; }
.divider-line-heavy::after { right: -20px; }

.featured-divider-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.featured-divider-bottom .divider-pattern {
    margin-top: 10px;
    margin-bottom: 0;
}

.featured-news-box {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background: linear-gradient(145deg, #ffffff 0%, #fffaf0 100%);
    backdrop-filter: blur(10px);
    padding: 35px 40px;
    border-radius: 30px;
    box-shadow: 
        0 2px 4px rgba(184, 134, 11, 0.06),
        0 25px 60px rgba(184, 134, 11, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(184, 134, 11, 0.15);
    position: relative;
    z-index: 3;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.featured-news-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f5c842, transparent);
    border-radius: 3px;
    filter: blur(1px);
    opacity: 0.6;
}

.featured-news-box:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 4px 8px rgba(184, 134, 11, 0.08),
        0 35px 80px rgba(184, 134, 11, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(184, 134, 11, 0.35);
}

.featured-news-icon {
    font-size: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fef3e2, #fde8d0);
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.15);
    border: 2px solid rgba(184, 134, 11, 0.15);
}

.featured-news-content {
    flex: 1;
}

.featured-news-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a2a4f;
    margin-bottom: 10px;
    font-family: 'IRANYekan', 'Yekan', sans-serif;
    position: relative;
    padding-right: 20px;
}

.featured-news-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    background: linear-gradient(to bottom, #b8860b, #f5c842);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(184, 134, 11, 0.3);
}

.featured-news-text {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 14px;
}

.featured-news-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #b8860b, #d4a017);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.25);
}

.featured-news-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(184, 134, 11, 0.35);
    color: white;
}

/* ============================================
   استایل تصاویر داخل متن خبر
   ============================================ */
.news-content img,
.news-detail-content img,
article img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-content img:hover,
.news-detail-content img:hover,
article img:hover {
    box-shadow: 0 8px 25px rgba(194, 122, 14, 0.2);
}

.news-content img.image-align-left,
.news-detail-content img.image-align-left {
    float: left;
    margin: 10px 20px 10px 0;
    max-width: 50%;
}

.news-content img.image-align-right,
.news-detail-content img.image-align-right {
    float: right;
    margin: 10px 0 10px 20px;
    max-width: 50%;
}

.news-content img.image-align-center,
.news-detail-content img.image-align-center {
    margin: 20px auto;
    display: block;
}

.news-content::after,
.news-detail-content::after {
    content: '';
    display: table;
    clear: both;
}

.news-content figure,
.news-detail-content figure {
    margin: 25px 0;
    text-align: center;
}

.news-content figure img,
.news-detail-content figure img {
    margin: 0 auto 10px;
}

.news-content figcaption,
.news-detail-content figcaption {
    font-size: 13px;
    color: #777;
    text-align: center;
    font-style: italic;
    padding: 0 10px;
}

.news-content,
.news-detail-content {
    line-height: 1.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-content p,
.news-detail-content p {
    margin-bottom: 18px;
}

/* ============================================
   ریسپانسیو - تبلت
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-slider {
        height: 80vh;
        min-height: 550px;
    }
    
    .slide-content h1 { font-size: 38px; }
    .slide-content p { font-size: 16px; }
    
    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stats-custom-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .stat-circle-custom {
        width: 110px;
        height: 110px;
    }
    
    .stat-circle-custom svg {
        width: 110px;
        height: 110px;
    }
    
    .stat-number-custom {
        font-size: 22px;
    }
}

@media (max-width: 992px) {
    .promo-slider-section {
        padding: 40px 0;
    }
    
    .promo-slider-container {
        flex-direction: column;
        overflow: visible;
        gap: 15px;
        padding: 0 15px;
        min-height: auto;
    }
    
   .promo-slider-main {
        flex: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: unset;
        max-height: unset;
        border-radius: 24px;
    background: #1a1a2e;
    }
    
    .promo-slide-img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* ← کلید اصلی: تصویر کامل نمایش داده می‌شود */
        object-position: center;
    }
    
    .promo-slider-thumbs {
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        overflow-y: visible;
        flex: none;
        width: 100%;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .promo-slider-thumbs::-webkit-scrollbar {
        display: none;
    }
    
    .promo-thumb {
        flex: 0 0 100px;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }
    
    .promo-caption-glass { 
        padding: 0 15px 15px 15px; 
    }
    
    .promo-caption-glass .promo-caption-text {
        padding: 10px 18px;
        font-size: 13px;
        max-width: 95%;
        border-radius: 14px;
    }
    
    .promo-caption-glass::before { 
        height: 90px; 
        border-radius: 0 0 24px 24px;
    }
}

/* ============================================
   ریسپانسیو - موبایل
   ============================================ */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* ========== منو ========== */
    .navbar {
        top: 10px;
        width: 100%;
        padding: 0 10px;
    }

    .nav-container {
        width: 100%;
        min-height: 64px;
        padding: 5px 12px;
        border-radius: 38px;
    }

    .nav-flex {
        min-height: 54px;
        gap: 8px;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .logo {
        min-width: 0;
        flex: 1;
        gap: 8px;
        margin: 0;
    }

    .logo-img {
        width: 44px;
        height: 44px;
    }

    .logo-text {
        min-width: 0;
        max-width: none;
        flex: 1;
        font-size: 12px;
        line-height: 1.6;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        order: 3;
        flex-shrink: 0;
        font-size: 20px;
    }

    /* منوی کشویی موبایل */
    .nav-menu {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        width: 100%;
        max-width: 320px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 12px;
        border-radius: 24px;
        background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.9);
        box-shadow: 0 15px 40px rgba(26, 42, 79, 0.2);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px) scale(0.97);
        transform-origin: top right;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        z-index: 1001;
        list-style: none;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        width: 100%;
        padding: 12px 16px;
        border-radius: 14px;
        color: #1a2a4f;
        font-size: 13px;
        font-weight: 600;
        text-align: right;
        background: rgba(26, 42, 79, 0.06);
        margin: 0;
        transform: none !important;
    }

    .nav-menu li a:hover {
        background: rgba(194, 122, 14, 0.15);
        color: #b8790e;
        transform: none !important;
    }

    .nav-menu li a.active {
        background: linear-gradient(135deg, #c27a0e, #b86b0a);
        color: #ffffff;
    }

    .navbar.scrolled .nav-menu {
        background: rgba(26, 42, 79, 0.98);
        border-color: rgba(194, 122, 14, 0.3);
    }

    .navbar.scrolled .nav-menu li a {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.06);
    }

    .navbar.scrolled .nav-menu li a:hover {
        background: rgba(194, 122, 14, 0.3);
        color: #ffffff;
    }

    .navbar.scrolled .nav-menu li a.active {
        background: linear-gradient(135deg, #c27a0e, #b86b0a);
        color: #ffffff;
    }

    /* ========== اسلایدر ========== */
    .hero-slider {
        height: 350px;
        min-height: 350px;
        overflow: hidden;
    }

    .slide-content {
        width: 85%;
        padding: 10px 12px;
    }

    .slide-content h1 {
        font-size: 16px !important;
        margin-bottom: 5px;
    }

    .slide-content p {
        font-size: 10px !important;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .slide-content .btn-primary {
        padding: 5px 12px !important;
        font-size: 10px !important;
    }

    .slider-nav {
        bottom: 15px;
        z-index: 5;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    .slider-dot.active { width: 20px; }

    .container { padding: 0 16px; }

    .section {
        padding: 50px 0;
    overflow-x: hidden;   /* ← تغییر از auto به hidden */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }


    #gallery .gallery-grid .gallery-item {
        flex: 0 0 260px;
        scroll-snap-align: start;
        margin-bottom: 5px;
    }


    #services .grid-4::-webkit-scrollbar-track,
    #news .grid-3::-webkit-scrollbar-track,
    #campaigns .grid-3::-webkit-scrollbar-track,
    #gallery .gallery-grid::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.05);
        border-radius: 10px;
    }

    #services .grid-4::-webkit-scrollbar-thumb,
    #news .grid-3::-webkit-scrollbar-thumb,
    #campaigns .grid-3::-webkit-scrollbar-thumb,
    #gallery .gallery-grid::-webkit-scrollbar-thumb {
        background: var(--secondary);
        border-radius: 10px;
    }

    .grid-2 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .grid-2 .aos-left { text-align: center; }
    .grid-2 .aos-left svg,
    .grid-2 .aos-left img {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .section-title::after {
        width: 50px;
        height: 3px;
    }

    .card-img { height: 160px; }
    .card-content { padding: 14px; }
    .card-title { font-size: 16px; }

    .supporters-section { padding: 40px 0; }
    .supporters-section h2 { font-size: 24px; }
    .supporters-section p { font-size: 14px; }
    .supporters-section .heart-bubble { transform: scale(0.7); }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
        gap: 20px 15px;
    }

    .footer-col ul {
        padding: 0;
        list-style: none;
    }

    .footer-col li { margin-bottom: 8px; }

    .footer-col h4::after {
        right: 50%;
        transform: translateX(50%);
    }

    .social-icons { justify-content: center; }

    .btn-primary {
        padding: 10px 25px;
        font-size: 14px;
    }

    .btn-outline {
        padding: 8px 20px;
        font-size: 12px;
    }

    .news-slide { flex: 0 0 260px; }
    .news-slide .card .card-img { height: 150px; }

    /* خبر ویژه */
    .featured-news-wrapper { padding: 30px 0; }
    .featured-news-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    .featured-news-title {
        font-size: 18px;
        padding-right: 0;
    }
    .featured-news-title::before { display: none; }
    .featured-news-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }
    .featured-news-text { font-size: 14px; }
    .divider-line-heavy {
        width: 90%;
        height: 6px;
    }
    .divider-pattern {
        font-size: 18px;
        gap: 8px;
    }
    .divider-line-heavy::before,
    .divider-line-heavy::after { font-size: 14px; }
    .divider-line-heavy::before { left: -14px; }
    .divider-line-heavy::after { right: -14px; }

    /* بخش آمار - موبایل */
    .stats-custom-section {
        padding: 50px 0;
        overflow: visible !important;
    }

    .stats-custom-container {
        padding: 0 15px;
        overflow: visible !important;
    }

    .stats-custom-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        overflow: visible !important;
        padding: 10px 0 !important;
    }

    .stat-card-custom {
        overflow: visible !important;
        padding: 5px 2px !important;
        min-width: 0 !important;
    }

    .stat-circle-custom {
        width: 110px !important;
        height: 110px !important;
        margin: 0 auto 12px !important;
        overflow: visible !important;
    }

    .stat-circle-custom svg {
        width: 110px !important;
        height: 110px !important;
        overflow: visible !important;
    }

    .stat-number-custom {
        font-size: 22px !important;
    }

    .stat-card-custom h4 {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    /* تصاویر داخل متن خبر - موبایل */
    .news-content img,
    .news-detail-content img,
    article img {
        width: 100% !important;
        max-width: 100%;
        height: auto;
        float: none !important;
        margin: 15px auto;
        border-radius: 10px;
    }

    .news-content img.image-align-left,
    .news-content img.image-align-right,
    .news-detail-content img.image-align-left,
    .news-detail-content img.image-align-right {
        float: none;
        margin: 15px auto;
        max-width: 100%;
    }
}

/* ============================================
   ریسپانسیو - موبایل کوچک
   ============================================ */
@media (max-width: 480px) {
    .logo-img {
        width: 40px;
        height: 40px;
    }
    .logo-text {
        font-size: 11px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .hero-slider {
        height: 300px;
        min-height: 300px;
    }

    .slide { min-height: 300px; }

    .slide-content {
        width: 90%;
        padding: 8px 10px;
    }

    .slide-content h1 { font-size: 14px !important; }
    .slide-content p { font-size: 9px !important; }
    .slide-content .btn-primary {
        padding: 4px 10px !important;
        font-size: 9px !important;
    }

    .section-title { font-size: 20px; }



    .card-img { height: 150px; }

    .promo-slider-section {
        padding: 30px 0;
    }
    
    .promo-slider-container {
        padding: 0 12px;
        gap: 12px;
    }
    
    .promo-slider-main {
        aspect-ratio: 16 / 9;
        height: auto;
        border-radius: 20px;
    }
    
    .promo-thumb { 
        flex: 0 0 80px; 
        aspect-ratio: 16 / 9; 
        border-radius: 10px;
    }
    
    .promo-caption-glass {
        padding: 0 12px 12px 12px;
    }
    
    .promo-caption-glass .promo-caption-text {
        padding: 8px 14px;
        font-size: 11px;
        border-radius: 12px;
    }
    
    .promo-caption-glass::before {
        height: 70px;
        border-radius: 0 0 20px 20px;
    }

    .featured-news-wrapper { padding: 20px 0; }
    .featured-news-box {
        padding: 15px;
        border-radius: 20px;
    }
    .featured-news-title { font-size: 16px; }
    .featured-news-text {
        font-size: 13px;
        line-height: 1.7;
    }
    .featured-news-link {
        padding: 8px 18px;
        font-size: 12px;
    }

    /* بخش آمار - موبایل کوچک */
    .stat-circle-custom {
        width: 100px !important;
        height: 100px !important;
    }

    .stat-circle-custom svg {
        width: 100px !important;
        height: 100px !important;
    }

    .stat-number-custom {
        font-size: 20px !important;
    }

    .stat-card-custom h4 {
        font-size: 11px !important;
    }

    .stats-custom-grid {
        gap: 15px !important;
    }
}

/* ============================================
   کاهش انیمیشن
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .navbar,
    .nav-container,
    .logo,
    .menu-toggle,
    .nav-menu,
    .nav-menu li a,
    .card,
    .btn-primary,
    .aos-item {
        transition: none !important;
        animation: none !important;
    }
}
/* ============================================
   اسلایدر خودکار خدمات و پویش‌ها - فقط موبایل
   ============================================ */
@media (max-width: 768px) {
    #servicesGrid.auto-slider-mobile,
    #campaignsGrid.auto-slider-mobile {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 16px !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        padding-bottom: 15px !important;
        scroll-snap-type: none !important;
        width: max-content !important;
        position: relative;
        will-change: transform;
    }

    #servicesGrid.auto-slider-mobile > .card,
    #campaignsGrid.auto-slider-mobile > .card {
        flex: 0 0 260px !important;
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        margin-bottom: 5px;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        position: relative;
        z-index: 1;
    }

    #servicesGrid.auto-slider-mobile > .card .card-img,
    #campaignsGrid.auto-slider-mobile > .card .card-img {
        width: 100% !important;
        height: 160px !important;
        object-fit: cover !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    #servicesGrid.auto-slider-mobile > .card .card-content,
    #campaignsGrid.auto-slider-mobile > .card .card-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 14px !important;
    }

    #servicesGrid.auto-slider-mobile::-webkit-scrollbar,
    #campaignsGrid.auto-slider-mobile::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 480px) {
    #servicesGrid.auto-slider-mobile > .card,
    #campaignsGrid.auto-slider-mobile > .card {
        flex: 0 0 230px !important;
        width: 230px !important;
        min-width: 230px !important;
        max-width: 230px !important;
    }

    #servicesGrid.auto-slider-mobile > .card .card-img,
    #campaignsGrid.auto-slider-mobile > .card .card-img {
        height: 140px !important;
    }
}
/* ============================================
   اسلایدر خودکار عمومی (خدمات و پویش‌ها)
   ============================================ */
.auto-slider-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.auto-slider-container {
    width: 100%;
    overflow-x: hidden;
    cursor: grab;
}

.auto-slider-track {
    display: flex;
    gap: 25px;
    width: fit-content;
    will-change: transform;
    transition: transform 0.1s linear;
}

.auto-slide {
    flex: 0 0 300px;
    user-select: none;
}

.auto-slide .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.auto-slide .card .card-img {
    height: 200px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .auto-slide {
        flex: 0 0 250px;
    }
    .auto-slide .card .card-img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .auto-slide {
        flex: 0 0 220px;
    }
    .auto-slide .card .card-img {
        height: 140px;
    }
}
/* ============================================
   یکسان‌سازی ارتفاع کارت‌های پویش - دسکتاپ
   ============================================ */
#campaignsGrid {
    align-items: stretch;
}

#campaignsGrid > .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#campaignsGrid > .card .card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* دکمه و پروگرس‌بار در پایین کارت */
#campaignsGrid > .card .card-content .progress-bar {
    margin-top: auto;
}

#campaignsGrid > .card .card-content .btn-outline {
    margin-top: 15px;
    align-self: flex-start;
}

/* ============================================
   یکسان‌سازی ارتفاع کارت‌های پویش - موبایل
   ============================================ */
@media (max-width: 768px) {
    #campaignsGrid.auto-slider-mobile > .card,
    #campaignsGrid > .card {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    #campaignsGrid.auto-slider-mobile > .card .card-img,
    #campaignsGrid > .card .card-img {
        height: 160px !important;
        min-height: 160px !important;
        max-height: 160px !important;
        flex-shrink: 0;
    }

    #campaignsGrid.auto-slider-mobile > .card .card-content,
    #campaignsGrid > .card .card-content {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        padding: 14px !important;
        gap: 0 !important;
    }

    /* عنوان - محدود به ۲ خط */
    #campaignsGrid.auto-slider-mobile > .card .card-title,
    #campaignsGrid > .card .card-title {
        font-size: 15px !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 0 8px 0 !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    /* توضیحات - محدود به ۲ خط */
    #campaignsGrid.auto-slider-mobile > .card .card-content > p:not(.card-title):not(.progress-text),
    #campaignsGrid > .card .card-content > p:not(.card-title):not(.progress-text) {
        font-size: 12px !important;
        line-height: 1.5 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 0 10px 0 !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    /* پروگرس‌بار - بدون فاصله اضافی */
    #campaignsGrid.auto-slider-mobile > .card .progress-bar,
    #campaignsGrid > .card .progress-bar {
        margin: 0 0 10px 0 !important;
        flex-shrink: 0;
    }

    /* متن مبلغ - بدون فاصله اضافی */
    #campaignsGrid.auto-slider-mobile > .card .progress-text,
    #campaignsGrid > .card .progress-text {
        font-size: 11px !important;
        line-height: 1.4 !important;
        margin: 0 0 10px 0 !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
        flex-shrink: 0;
    }

    /* دکمه - در پایین کارت */
    #campaignsGrid.auto-slider-mobile > .card .btn-outline,
    #campaignsGrid > .card .btn-outline {
        margin: auto 0 0 0 !important;
        align-self: flex-start !important;
        font-size: 12px !important;
        padding: 8px 18px !important;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    #campaignsGrid.auto-slider-mobile > .card .card-img,
    #campaignsGrid > .card .card-img {
        height: 140px !important;
        min-height: 140px !important;
        max-height: 140px !important;
    }

    #campaignsGrid.auto-slider-mobile > .card .card-title,
    #campaignsGrid > .card .card-title {
        font-size: 14px !important;
    }

    #campaignsGrid.auto-slider-mobile > .card .card-content > p:not(.card-title):not(.progress-text),
    #campaignsGrid > .card .card-content > p:not(.card-title):not(.progress-text) {
        font-size: 11px !important;
    }
}
/* ============================================
   یکسان‌سازی ارتفاع کارت‌های اخبار - دسکتاپ
   ============================================ */
#news .grid-3,
.news-slider-track {
    align-items: stretch;
}

#news .grid-3 > .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#news .grid-3 > .card .card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* دکمه ادامه مطلب در پایین کارت */
#news .grid-3 > .card .card-content .btn-outline {
    margin-top: auto;
    align-self: flex-start;
}

/* ============================================
   اسلایدر اخبار (news-slide)
   ============================================ */
.news-slide {
    display: flex;
}

.news-slide .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.news-slide .card .card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-slide .card .card-content .btn-outline {
    margin-top: auto;
    align-self: flex-start;
}

/* ============================================
   یکسان‌سازی ارتفاع کارت‌های اخبار - موبایل
   ============================================ */
@media (max-width: 768px) {
    #news .grid-3 > .card {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    .back-to-top {
        display: none !important;
    }
    #news .grid-3 > .card .card-img {
        height: 160px !important;
        min-height: 160px !important;
        max-height: 160px !important;
        flex-shrink: 0;
    }

    #news .grid-3 > .card .card-content {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        padding: 14px !important;
    }

    /* عنوان خبر - محدود به ۲ خط */
    #news .grid-3 > .card .card-title {
        font-size: 15px !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 0 8px 0 !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    /* خلاصه خبر - محدود به ۲ خط */
    #news .grid-3 > .card .card-content > p:not(.card-title) {
        font-size: 12px !important;
        line-height: 1.5 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 0 10px 0 !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    /* دکمه ادامه مطلب - در پایین کارت */
    #news .grid-3 > .card .card-content .btn-outline {
        margin: auto 0 0 0 !important;
        align-self: flex-start !important;
        font-size: 12px !important;
        padding: 8px 18px !important;
        flex-shrink: 0;
    }

    /* کارت‌های داخل اسلایدر اخبار - موبایل */
    .news-slide .card {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .news-slide .card .card-content {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
    }

    .news-slide .card .card-content .btn-outline {
        margin: auto 0 0 0 !important;
        align-self: flex-start !important;
    }
}

@media (max-width: 480px) {
    #news .grid-3 > .card .card-img {
        height: 140px !important;
        min-height: 140px !important;
        max-height: 140px !important;
    }

    #news .grid-3 > .card .card-title {
        font-size: 14px !important;
    }

    #news .grid-3 > .card .card-content > p:not(.card-title) {
        font-size: 11px !important;
    }
}

@media screen and (max-width: 768px) {
    .back-to-top,
    #backToTop,
    #back-to-top,
    .back-to-top-btn,
    .scroll-to-top,
    .scroll-top,
    .btn-back-to-top,
    button[aria-label*="بالا"],
    a[aria-label*="بالا"] {
        display: none !important;
    }
}
