/* =============================================
   MKFFA Theme - Main Stylesheet
   موسسه خیریه فرشتگان فجر آسمانی
   ============================================= */

/* --- Variables --- */
/* فونت Vazir FD از طریق functions.php بارگذاری می‌شود */

:root {
  --primary:       #1a5276;
  --primary-dark:  #154360;
  --primary-light: #2e86c1;
  --secondary:     #c0392b;
  --secondary-light: #e74c3c;
  --accent:        #f39c12;
  --accent-light:  #f8c471;
  --success:       #27ae60;
  --bg-light:      #f0f4f8;
  --bg-white:      #ffffff;
  --text-dark:     #1a2533;
  --text-body:     #3d4d5c;
  --text-muted:    #7f8c8d;
  --border:        #dce3ea;
  --shadow-sm:     0 2px 8px rgba(26,82,118,.08);
  --shadow-md:     0 6px 24px rgba(26,82,118,.13);
  --shadow-lg:     0 12px 48px rgba(26,82,118,.18);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --transition:    all .3s cubic-bezier(.4,0,.2,1);
  --font-primary:  'Vazir FD', Tahoma, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-white);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: .75rem;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem,  3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem,  2.5vw, 1.75rem); }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { top: 0; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

/* Top Bar */
.header-topbar {
  background: var(--primary);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: .45rem 0;
}

.header-topbar a { color: rgba(255,255,255,.85); }
.header-topbar a:hover { color: #fff; }

.topbar-phone { display: flex; align-items: center; gap: .4rem; }
.topbar-phone i { color: var(--accent-light); }

.topbar-social { display: flex; gap: .75rem; align-items: center; }
.topbar-social a {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  transition: var(--transition);
}
.topbar-social a:hover { background: var(--accent); color: #fff; }

/* Main Header */
.header-main { padding: .85rem 0; }

.site-branding { display: flex; align-items: center; gap: .9rem; }

.site-logo img {
  height: 64px;
  width: auto;
  border-radius: var(--radius-sm);
}

.site-title-wrap { display: flex; flex-direction: column; }
.site-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin: 0;
}
.site-tagline {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Donation Button */
.btn-donate {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: #fff !important;
  padding: .6rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  box-shadow: 0 4px 15px rgba(192,57,43,.3);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,57,43,.4);
  color: #fff !important;
}

/* Search Form */
.header-search-wrap { position: relative; }
.header-search-input {
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: .5rem 1.1rem .5rem 2.5rem;
  font-family: var(--font-primary);
  font-size: .88rem;
  width: 200px;
  transition: var(--transition);
  background: var(--bg-light);
  direction: rtl;
}
.header-search-input:focus {
  outline: none;
  border-color: var(--primary-light);
  width: 260px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46,134,193,.15);
}
.header-search-btn {
  position: absolute;
  left: .8rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .9rem;
  transition: var(--transition);
}
.header-search-btn:hover { color: var(--primary); }

/* =============================================
   NAVIGATION
   ============================================= */
.navbar-mkffa {
  background: var(--primary);
  padding: 0;
}

.navbar-mkffa .container { position: relative; }

.nav-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: block;
  padding: .9rem 1.15rem;
  color: rgba(255,255,255,.9);
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  transition: var(--transition);
}
.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; right: 50%;
  width: 0; height: 3px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  transition: var(--transition);
  transform: translateX(50%);
}
.nav-menu > li:hover > a,
.nav-menu > li.current-menu-item > a {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.nav-menu > li:hover > a::after,
.nav-menu > li.current-menu-item > a::after {
  width: 70%;
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  border-top: 3px solid var(--accent);
}
.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu .sub-menu li a {
  display: block;
  padding: .65rem 1.2rem;
  color: var(--text-dark);
  font-size: .88rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-menu .sub-menu li:last-child a { border-bottom: none; }
.nav-menu .sub-menu li a:hover {
  color: var(--primary);
  background: var(--bg-light);
  padding-right: 1.6rem;
}

/* Dropdown arrow */
.nav-menu > li.menu-item-has-children > a::before {
  content: '▾';
  font-size: .7rem;
  margin-right: .3rem;
  display: inline-block;
}

/* Mobile Toggle */
.navbar-toggler {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  padding: .55rem .8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: none;
  font-size: 1.2rem;
  transition: var(--transition);
}
.navbar-toggler:hover { background: rgba(255,255,255,.25); }

/* =============================================
   HERO / SLIDER
   ============================================= */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-slider { position: relative; }

.hero-slide {
  position: relative;
  height: clamp(420px, 55vw, 680px);
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}

.hero-slide:hover .hero-slide-bg { transform: scale(1.03); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,82,118,.75) 0%, rgba(26,82,118,.3) 60%, transparent 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 2rem;
}

.hero-text {
  max-width: 560px;
  color: #fff;
  animation: fadeInUp .8s ease;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--text-dark);
  padding: .3rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary-hero {
  background: var(--accent);
  color: var(--text-dark);
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(243,156,18,.4);
}
.btn-primary-hero:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  color: var(--text-dark);
  box-shadow: 0 6px 20px rgba(243,156,18,.5);
}

.btn-outline-hero {
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  padding: .7rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: var(--transition);
}
.btn-outline-hero:hover {
  background: rgba(255,255,255,.2);
  border-color: #fff;
  color: #fff;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 10;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.slider-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

/* Slider Arrows */
.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.4);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  font-size: 1rem;
}
.slider-prev:hover, .slider-next:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.slider-prev { right: 1.5rem; }
.slider-next { left: 1.5rem; }

/* =============================================
   QUICK STATS BAR
   ============================================= */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 1.5rem 0;
}

.stat-item {
  text-align: center;
  padding: 0 1rem;
  border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.8);
  margin-top: .3rem;
}

/* =============================================
   SECTIONS GENERAL
   ============================================= */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.section-header { margin-bottom: 3rem; }
.section-header.text-center { text-align: center; }

.section-badge {
  display: inline-block;
  background: rgba(26,82,118,.1);
  color: var(--primary);
  padding: .3rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: .75rem;
  border: 1px solid rgba(26,82,118,.2);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: .75rem;
}
.section-title span { color: var(--primary); }

.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: .75rem auto;
}
.section-divider.right { margin: .75rem 0; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section { background: var(--bg-white); }

.about-content { padding-left: 3rem; }

.about-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  position: relative;
}
.about-title::after {
  content: '';
  display: block;
  width: 50px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin-top: .75rem;
}

.about-lead {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  border-right: 4px solid var(--primary);
  padding-right: 1rem;
  background: var(--bg-light);
  padding: 1rem 1rem 1rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-bottom: 1.5rem;
}

.service-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .92rem;
  color: var(--text-body);
  padding: .5rem .75rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.service-item:hover {
  background: rgba(26,82,118,.08);
  color: var(--primary);
}
.service-item i {
  color: var(--success);
  font-size: .95rem;
  flex-shrink: 0;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform .5s ease;
}
.about-image-wrap:hover img { transform: scale(1.03); }

.about-badge-floating {
  position: absolute;
  bottom: -1rem;
  right: 2rem;
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.about-badge-floating .num {
  font-size: 2rem;
  font-weight: 900;
  display: block;
  color: var(--accent);
  line-height: 1;
}
.about-badge-floating .lbl {
  font-size: .8rem;
  color: rgba(255,255,255,.85);
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.services-section { background: var(--bg-light); }

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 0;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { height: 100%; }

.service-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, rgba(26,82,118,.1), rgba(26,82,118,.05));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  color: var(--primary);
  transition: var(--transition);
  border: 2px solid rgba(26,82,118,.15);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-color: var(--primary);
  transform: rotate(10deg) scale(1.1);
}

.service-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .6rem;
}

.service-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* =============================================
   CONSULTATION CTA
   ============================================= */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 50%;
  height: 200%;
  background: rgba(255,255,255,.04);
  transform: rotate(-15deg);
  border-radius: 50%;
}

.cta-content { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-text {
  color: rgba(255,255,255,.85);
  font-size: .98rem;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.btn-cta-call {
  background: var(--accent);
  color: var(--text-dark);
  padding: .85rem 2.5rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(243,156,18,.4);
}
.btn-cta-call:hover {
  background: var(--accent-light);
  transform: translateY(-2px) scale(1.02);
  color: var(--text-dark);
  box-shadow: 0 8px 25px rgba(243,156,18,.5);
}

/* =============================================
   GALLERY SECTION
   ============================================= */
.gallery-section { background: var(--bg-white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 3/2;
  cursor: pointer;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,82,118,.65);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-overlay i {
  font-size: 1.8rem;
  color: #fff;
}

.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  color: #fff; font-size: 1.75rem;
  background: none; border: none; cursor: pointer;
  transition: var(--transition);
}
.lightbox-close:hover { color: var(--accent); transform: rotate(90deg); }

/* =============================================
   NEWS / BLOG SECTION
   ============================================= */
.news-section { background: var(--bg-light); }

.post-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  height: 100%;
  display: flex; flex-direction: column;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.post-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.05); }

.post-card-cat {
  position: absolute;
  top: .75rem; right: .75rem;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 50px;
}

.post-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-meta {
  display: flex; gap: 1rem;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.post-card-meta i { color: var(--primary-light); }

.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .6rem;
  line-height: 1.45;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--primary); }

.post-card-excerpt {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--primary);
  font-size: .88rem;
  font-weight: 700;
  transition: var(--transition);
  margin-top: auto;
}
.btn-read-more::after {
  content: '←';
  transition: var(--transition);
}
.btn-read-more:hover { color: var(--secondary); }
.btn-read-more:hover::after { transform: translateX(-4px); }

/* =============================================
   DONATION SECTION
   ============================================= */
.donation-section {
  background: linear-gradient(135deg, #1a2533 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
.donation-section::after {
  content: '❤';
  position: absolute;
  bottom: -1rem;
  left: 5%;
  font-size: 15rem;
  opacity: .03;
  color: var(--accent);
}

.donation-title {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: .75rem;
}

.donation-subtitle {
  color: rgba(255,255,255,.75);
  margin-bottom: 1.75rem;
  font-size: 1rem;
}

.bank-info {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.bank-info-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  font-size: .92rem;
}
.bank-info-row:last-child { border-bottom: none; }

.bank-info-row i {
  width: 32px; height: 32px;
  background: rgba(243,156,18,.15);
  color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}
.bank-info-row .label {
  color: var(--accent-light);
  font-weight: 700;
  min-width: 90px;
}
/* اعداد شماره حساب/کارت/شبا به‌صورت لاتین نگه داشته می‌شوند (monospace) */
.bank-info-row .value {
  font-family: 'Courier New', 'Lucida Console', monospace;
  direction: ltr;
  color: #fff;
  letter-spacing: .05em;
}

.btn-online-donate {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: #fff;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(192,57,43,.4);
  border: none;
  cursor: pointer;
}
.btn-online-donate:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(192,57,43,.5);
  color: #fff;
}

/* =============================================
   SOCIAL SECTION
   ============================================= */
.social-section {
  background: var(--bg-white);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid var(--border);
  background: var(--bg-light);
}
.social-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.social-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}
.social-instagram .social-icon { background: linear-gradient(45deg, #405de6, #833ab4, #c13584, #e1306c, #fd1d1d); }
.social-aparat .social-icon { background: #e31f26; }
.social-whatsapp .social-icon { background: #25d366; }
.social-telegram .social-icon { background: #0088cc; }

.social-card h5 { margin: 0; font-size: 1rem; color: var(--text-dark); }
.social-card span { font-size: .82rem; color: var(--text-muted); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #1a2533;
  color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
}

.footer-widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: .75rem;
}
.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 2px;
}

.footer-about-text {
  font-size: .88rem;
  line-height: 1.8;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .75rem;
  font-size: .88rem;
  color: rgba(255,255,255,.75);
}
.footer-contact-item i {
  color: var(--accent);
  margin-top: .2rem;
  flex-shrink: 0;
  width: 16px;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li {
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: .4rem 0;
}
.footer-links li:last-child { border-bottom: none; }
.footer-links a {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: var(--transition);
}
.footer-links a::before {
  content: '‹';
  color: var(--accent);
  font-weight: 700;
}
.footer-links a:hover {
  color: var(--accent);
  padding-right: .4rem;
}

.footer-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.1);
}
.footer-map iframe {
  display: block;
  width: 100%; height: 200px;
  border: none;
  filter: grayscale(30%);
}

.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #fff; }

.footer-bottom {
  background: rgba(0,0,0,.3);
  margin-top: 3rem;
  padding: 1.25rem 0;
  text-align: center;
}
.footer-bottom p {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  margin: 0;
}
.footer-bottom a { color: var(--accent); }

/* =============================================
   BUTTONS (Global)
   ============================================= */
.btn-mkffa {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-mkffa-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-mkffa-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-mkffa-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-mkffa-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-mkffa-accent {
  background: var(--accent);
  color: var(--text-dark);
  border-color: var(--accent);
}
.btn-mkffa-accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243,156,18,.4);
}

/* =============================================
   PAGE LAYOUT
   ============================================= */
.page-header-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 4rem 0;
  color: #fff;
}
.page-header-section h1 { color: #fff; margin: 0; }
.breadcrumb-wrap { margin-top: .75rem; }
.breadcrumb-nav {
  display: flex; gap: .5rem;
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  align-items: center;
}
.breadcrumb-nav a { color: rgba(255,255,255,.75); }
.breadcrumb-nav a:hover { color: var(--accent); }
.breadcrumb-nav .sep { color: rgba(255,255,255,.4); }

/* Content Area */
.content-area { padding: 4rem 0; }
.entry-content { font-size: .98rem; line-height: 1.85; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 1rem 0;
}
.entry-content h2, .entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}
.entry-content blockquote {
  border-right: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  background: var(--bg-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-body);
}

/* Sidebar */
.sidebar { padding-right: 2rem; }
.widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px; right: 0;
  width: 30px; height: 2px;
  background: var(--primary);
}

/* Single Post */
.single-header { margin-bottom: 2rem; }
.single-meta { display: flex; gap: 1.25rem; margin: .75rem 0 1.5rem; flex-wrap: wrap; }
.single-meta-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.single-meta-item i { color: var(--primary-light); }

.post-thumbnail {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}
.post-thumbnail img { width: 100%; max-height: 480px; object-fit: cover; }

/* Post Tags */
.post-tags { margin-top: 2rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.post-tags .label { font-weight: 700; color: var(--text-dark); }
.tag-item {
  background: var(--bg-light);
  color: var(--text-body);
  padding: .3rem .8rem;
  border-radius: 50px;
  font-size: .82rem;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.tag-item:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Post Nav */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 2.5rem;
}
.post-nav-item {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: block; color: var(--text-dark);
}
.post-nav-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); color: var(--primary); }
.post-nav-item .dir { font-size: .75rem; color: var(--text-muted); margin-bottom: .25rem; }
.post-nav-item .title { font-weight: 600; font-size: .9rem; }

/* =============================================
   SEARCH
   ============================================= */
.search-results-section { padding: 4rem 0; }
.search-form-large {
  display: flex;
  gap: 0;
  max-width: 600px;
  margin: 0 auto 3rem;
  box-shadow: var(--shadow-md);
  border-radius: 50px;
  overflow: hidden;
}
.search-input-large {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid var(--primary);
  border-right: none;
  border-radius: 50px 0 0 50px;
  font-family: var(--font-primary);
  font-size: 1rem;
  direction: rtl;
}
.search-input-large:focus { outline: none; }
.search-btn-large {
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.75rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0 50px 50px 0;
  font-family: var(--font-primary);
  transition: var(--transition);
  display: flex; align-items: center; gap: .5rem;
}
.search-btn-large:hover { background: var(--primary-dark); }

/* =============================================
   404 PAGE
   ============================================= */
.error-404-section {
  min-height: 70vh;
  display: flex; align-items: center;
  text-align: center;
  background: var(--bg-light);
}
.error-404-number {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  color: var(--primary);
  opacity: .12;
  line-height: 1;
  display: block;
  margin-bottom: -2rem;
}
.error-404-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
}
.error-404-text { color: var(--text-muted); margin: 1rem 0 2rem; }

/* =============================================
   ARCHIVE PAGE
   ============================================= */
.archive-header-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 3rem 0;
  color: #fff;
}

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.posts-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Pagination */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.page-link {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: .9rem;
  transition: var(--transition);
  text-decoration: none;
}
.page-link:hover, .page-link.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* =============================================
   COMMENTS
   ============================================= */
.comments-section {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
  margin-top: 2.5rem;
}
.comments-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.comment {
  padding: 1.25rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  border-right: 4px solid var(--border);
}
.comment.bypostauthor { border-right-color: var(--primary); }

.comment-author { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.comment-avatar img { border-radius: 50%; width: 44px; height: 44px; object-fit: cover; }
.comment-author-name { font-weight: 700; color: var(--text-dark); font-size: .95rem; }
.comment-date { font-size: .78rem; color: var(--text-muted); }

.comment-body { font-size: .9rem; line-height: 1.7; }

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  color: var(--primary);
  margin-top: .5rem;
  font-weight: 600;
}

.comment-form-wrap { margin-top: 2.5rem; }
.comment-form-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; color: var(--text-dark); }
.form-control {
  width: 100%;
  padding: .7rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: .92rem;
  direction: rtl;
  transition: var(--transition);
  background: var(--bg-light);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46,134,193,.12);
}
textarea.form-control { min-height: 140px; resize: vertical; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Delay classes */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* =============================================
   UTILITIES
   ============================================= */
.text-primary-theme { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-secondary-theme { color: var(--secondary) !important; }
.bg-primary-theme { background: var(--primary) !important; }
.bg-light-theme { background: var(--bg-light) !important; }

.divider { height: 1px; background: var(--border); margin: 2rem 0; }
.divider-accent { background: linear-gradient(90deg, var(--primary), var(--accent), transparent); height: 2px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1199px) {
  .about-content { padding-left: 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .section { padding: 3.5rem 0; }
  .about-content { padding-left: 0; margin-top: 2rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-bar .stat-item { border-right: none; padding: .5rem; }
  .sidebar { padding-right: 0; margin-top: 2rem; }

  /* Mobile Nav */
  .navbar-toggler { display: block; }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0; left: 0;
    background: var(--primary-dark);
    z-index: 200;
    padding: .5rem 0;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: .75rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0,0,0,.2);
    border-radius: 0;
    border-top: none;
    display: none;
  }
  .nav-menu .sub-menu.open { display: block; }
  .nav-menu .sub-menu li a { padding-right: 2rem; color: rgba(255,255,255,.8); }
}

@media (max-width: 767px) {
  .section { padding: 3rem 0; }
  .hero-slide { height: 380px; }
  .hero-title { font-size: 1.5rem; }
  .hero-desc { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .bank-info-row { flex-wrap: wrap; }
  .stat-number { font-size: 1.6rem; }
  .header-topbar .topbar-phone { display: none; }
}

@media (max-width: 575px) {
  .hero-slide { height: 300px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .social-card { padding: 1rem; }
}

/* =============================================
   VAZIR FD — اعداد و تایپوگرافی
   ============================================= */

/*
 * Vazir FD به‌صورت خودکار تمام اعداد لاتین (0-9) را به فارسی (۰-۹) تبدیل می‌کند.
 * برای نمایش اعداد لاتین در مکان‌های خاص (مثل شماره حساب) از کلاس .latin-num استفاده کنید.
 */

/* اجبار به فونت لاتین برای اعداد حساس */
.latin-num {
  font-family: 'Courier New', 'Lucida Console', monospace !important;
  direction: ltr !important;
  unicode-bidi: plaintext;
}

/* تاکید بر اعداد فارسی در صورت نیاز — inherits from Vazir FD body */
.persian-num {
  font-family: 'Vazir FD', sans-serif !important;
}

/* شماره تلفن لاتین + فارسی */
.phone-number {
  font-family: 'Vazir FD', Tahoma, sans-serif;
  direction: ltr;
  display: inline-block;
  unicode-bidi: plaintext;
  letter-spacing: .03em;
}

/* عدد بزرگ نمایشی (آمار) */
.display-number {
  font-family: 'Vazir FD', sans-serif;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

/* =============================================
   PRINT
   ============================================= */
@media print {
  .site-header, .site-footer, .sidebar, .comments-section { display: none; }
  body { font-size: 12pt; color: #000; font-family: 'Vazir FD', Tahoma, sans-serif; }
  a { color: #000; text-decoration: underline; }
  .section { padding: 1rem 0; }
}
