/* ==========================================
   hero
   ========================================== */

/* ==========================================
   Hero — Base
   ========================================== */
[dir="ltr"] .tab-nav-btn svg, [dir="ltr"] .cards-nav-btn,
html[dir="ltr"] .tab-nav-btn svg {
  transform: scaleX(-1) !important;
}
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  overflow: hidden;
}

/* ==========================================
   Hero Background
   ========================================== */

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.hero-image-background {
  background-repeat: no-repeat;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-zoom {
  animation: heroZoom 14s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    color-mix(in srgb, #031930 94%, transparent),
    color-mix(in srgb, #031930 65%, transparent) 52%,
    color-mix(in srgb, #031930 35%, transparent)
  );
}

/* در صورت نیاز برای مرورگرهای قدیمی‌تر:
.hero-overlay {
  background: linear-gradient(
    to top,
    rgba(3, 25, 48, 0.94),
    rgba(3, 25, 48, 0.65) 52%,
    rgba(16, 147, 147, 0.35)
  );
}
*/

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* ==========================================
   Orbs / Visual Effects
   ========================================== */

.hero-orb {
  position: absolute;
  z-index: 2;
  width: 24rem;
  height: 24rem;
  pointer-events: none;
  background: var(--accent-color);
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.12;
}

.hero-orb-1 {
  top: -11rem;
  left: -7rem;
}

.hero-orb-2 {
  bottom: -15rem;
  right: -7rem;
  background: var(--secondary-color);
  opacity: 0.16;
}

/* ==========================================
   Hero Text Content
   ========================================== */

.hero-content-container {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  height: 100%;
  padding: 6rem 1.5rem 8rem;
  margin: 0 auto;
}

.hero-content {
  max-width: 42rem;
  color: #ffffff;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--card-glass);
  border: 1px solid var(--accent-color);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-badge-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.38);
}

.hero-title-gradient {
  color: var(--accent-color);
  background: linear-gradient(
    90deg,
    var(--accent-color),
    #ffffff,
    var(--accent-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 39rem;
  margin: 1.5rem 0 0;
  color: rgba(226, 232, 240, 0.92);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 2;
}

/* ==========================================
   Floating Cards — General
   ========================================== */

.hero-float-card {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  z-index: 20;
  width: min(26rem, calc(100% - 3rem));
  padding: 1.5rem;
  color: var(--hero-card-title);
  background: var(--hero-card-bg);
  border: 1px solid var(--hero-card-border);
  border-radius: 1.75rem;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-float-card:hover {
  transform: scale(1.02);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.3);
}

.hero-event-card {
  width: min(24rem, calc(100% - 3rem));
  padding: 1.25rem;
}

.hero-poets-card {
  width: min(27.5rem, calc(100% - 3rem));
}

/* ==========================================
   Slide 1 — Event Card
   ========================================== */

.hero-event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--hero-card-border);
}

.hero-event-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-live-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent-color);
  border-radius: 50%;
  animation: livePing 1.2s ease-out infinite;
}

.hero-event-date {
  color: var(--hero-card-text);
  font-size: 0.6875rem;
}

.hero-event-body {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-event-image {
  flex: 0 0 auto;
  width: 4rem;
  height: 5rem;
  overflow: hidden;
  background: var(--hero-card-chip-bg);
  border: 1px solid var(--hero-card-border);
  border-radius: 0.75rem;
}

.hero-event-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-event-info {
  min-width: 0;
}

.hero-event-info h4 {
  margin: 0;
  color: var(--hero-card-title);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.7;
}

.hero-event-info p {
  display: -webkit-box;
  margin: 0.25rem 0 0;
  overflow: hidden;
  color: var(--hero-card-text);
  font-size: 0.75rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-float-link {
  display: inline-block;
  padding-top: 0.3rem;
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.hero-float-link:hover {
  text-decoration: underline;
}

/* ==========================================
   Slide 2 — Architecture Card
   ========================================== */

.hero-special-header,
.hero-poets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-float-label {
  margin: 0 0 0.25rem;
  color: var(--accent-color);
  font-size: 0.75rem;
}

.hero-float-title {
  margin: 0;
  color: var(--hero-card-title);
  font-size: 1.125rem;
  font-weight: 700;
}

.hero-special-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.5rem;
  background: var(--hero-card-chip-bg);
  border: 1px solid var(--hero-card-border);
  border-radius: 1rem;
}

.hero-special-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-stat-box {
  padding: 0.75rem 0.4rem;
  text-align: center;
  background: var(--hero-card-chip-bg);
  border: 1px solid var(--hero-card-border);
  border-radius: 1rem;
}

.hero-stat-box strong {
  display: block;
  color: var(--accent-color);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}

.hero-stat-box span {
  display: block;
  margin-top: 0.2rem;
  color: var(--hero-card-text);
  font-size: 0.6875rem;
}

.hero-scan-box {
  position: relative;
  padding: 1rem;
  overflow: hidden;
  background: var(--hero-card-chip-bg);
  border: 1px solid var(--accent-color);
  border-radius: 1rem;
}

.hero-scan-box p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--hero-card-text);
  font-size: 0.875rem;
  line-height: 1.9;
}

.scan-line {
  position: absolute;
  top: 0;
  left: -20%;
  width: 30%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent-color) 25%, transparent),
    transparent
  );
  transform: skewX(-18deg);
  animation: scanMove 3.5s linear infinite;
}

/* ==========================================
   Slide 3 — Poets Card
   ========================================== */

.hero-float-chip {
  padding: 0.25rem 0.75rem;
  color: var(--hero-card-chip-text);
  font-size: 0.75rem;
  background: var(--hero-card-chip-bg);
  border: 1px solid var(--hero-card-border);
  border-radius: 999px;
}

.hero-poets-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.poet-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--hero-card-chip-bg);
  border: 1px solid var(--hero-card-border);
  border-radius: 1rem;
}

.poet-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  color: var(--accent-color);
  font-weight: 700;
  background: var(--hero-card-bg);
  border: 1px solid var(--accent-color);
  border-radius: 0.75rem;
}

.poet-info {
  flex: 1;
}

.poet-info h5 {
  margin: 0;
  color: var(--hero-card-title);
  font-size: 0.875rem;
  font-weight: 700;
}

.poet-info p {
  margin: 0.2rem 0 0;
  color: var(--hero-card-text);
  font-size: 0.6875rem;
}

.hero-float-quote {
  padding: 1rem;
  margin: 0;
  color: var(--hero-card-text);
  font-size: 0.875rem;
  line-height: 1.9;
  background: var(--hero-card-chip-bg);
  border: 1px solid var(--hero-card-border);
  border-radius: 1rem;
}

/* ==========================================
   Swiper Controls
   ========================================== */

.hero-slider-controls {
  position: absolute;
  bottom: 6.5rem;
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.6rem 1.2rem;
  background: rgba(1, 24, 50, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.hero-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  transition: all 0.25s ease;
}

.hero-nav:hover {
  color: var(--primary-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.hero-nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hero-pagination {
  position: static !important;
  display: flex;
  align-items: center;
  width: auto !important;
  gap: 0.5rem;
}

.hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.46);
  opacity: 0.95;
  transition: all 0.25s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 28px;
  background: var(--accent-color);
  border-radius: 999px;
}

/* ==========================================
   Scroll Down
   ========================================== */

.hero-scroll-down {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-decoration: none;
  transform: translateX(-50%);
  transition: color 0.25s ease;
}

.hero-scroll-down:hover {
  color: #ffffff;
}

.hero-scroll-mouse {
  display: flex;
  justify-content: center;
  width: 1.25rem;
  height: 2rem;
  padding-top: 0.25rem;
  border: 2px solid var(--accent-color);
  border-radius: 999px;
}

.hero-scroll-wheel {
  width: 0.25rem;
  height: 0.5rem;
  background: var(--accent-color);
  border-radius: 999px;
  animation: scrollBounce 1.2s ease-in-out infinite;
}
.hero-section {
  position: relative;
  width: 100vw;
  max-width: none;
  height: 100vh;
  min-height: 650px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide,
.hero-slide {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.hero-background,
.hero-overlay,
.hero-grid-pattern {
  inset: 0;
  width: 100%;
  height: 100%;
}
/* ==========================================
   رفع لرزش ویدیو در اسلایدر Hero
   ========================================== */

.hero-slide,
.hero-background,
.hero-video-background,
.hero-video,
.hero-image-background {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* جلوگیری از رندر ناپایدار ویدیو هنگام تغییر اسلاید */
.hero-video {
  position: absolute;
  inset: -2px;
  display: block;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  max-width: none;
  object-fit: cover;

  /* GPU rendering */
  transform: translate3d(0, 0, 0) scale(1.001);
  will-change: transform;
  outline: 1px solid transparent;
}

/*
  ویدیو را مستقیماً با heroZoom انیمیت نکن.
  چون scale شدن خود <video> در کنار Swiper Fade در برخی مرورگرها لرزش دارد.
*/
.hero-video.hero-zoom {
  animation: none !important;
}

/* حرکت نرم فقط برای بک‌گراندهای تصویری */
.hero-image-background.hero-zoom {
  transform: translate3d(0, 0, 0) scale(1.02);
  will-change: transform;
  animation: heroImageZoom 14s ease-in-out infinite alternate;
}

/* برای اسلاید فعال، ویدیو یک scale ثابت و پایدار دارد */
.swiper-slide-active .hero-video {
  transform: translate3d(0, 0, 0) scale(1.03);
}

/* هنگام fade شدن اسلایدها، از پرش/لرزش جلوگیری می‌کند */
.hero-swiper .swiper-slide {
  overflow: hidden;
  isolation: isolate;
}

.hero-swiper .swiper-slide,
.hero-swiper .swiper-slide * {
  -webkit-font-smoothing: antialiased;
}

/* انیمیشن فقط برای عکس‌ها، نه ویدیو */
@keyframes heroImageZoom {
  from {
    transform: translate3d(0, 0, 0) scale(1.02);
  }

  to {
    transform: translate3d(0, 0, 0) scale(1.09);
  }
}
/* ==========================================
   رفع هاله مربع / Artifact در اسلاید سوم
   ========================================== */

/* هر اسلاید فضای رندر مستقل داشته باشد */
.hero-slide {
  isolation: isolate;
}

/* بک‌گراند فقط در لایه زیرین باشد */
.hero-background {
  z-index: 0;
  overflow: hidden;
}

/* Overlay بدون blur و بدون mix-blend-mode */
.hero-overlay {
  z-index: 1;
  pointer-events: none;
  filter: none;
  mix-blend-mode: normal;
}

/* محتوای اصلی */
.hero-content-container {
  z-index: 10;
}

/* کارت‌ها در لایه جدا */
.hero-float-card {
  z-index: 20;
  isolation: isolate;
}

/*
  اگر هاله دقیقاً پشت کارت اسلاید سوم است،
  backdrop-filter را برای همان کارت حذف کن.
*/
.hero-poets-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--hero-card-bg);
}

/* در صورت وجود گرادینت/افکت قبلی روی اسلاید سوم، حذف شود */
.hero-slide:nth-child(3)::before,
.hero-slide:nth-child(3)::after {
  content: none !important;
  display: none !important;
}

/* ==========================================
   Responsive — Tablet
   ========================================== */

@media (max-width: 1023px) {
  .hero-float-card {
    bottom: 2.5rem;
    right: 1.5rem;
  }

  .hero-content-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==========================================
   Responsive — Mobile
   کارت‌ها در موبایل نمایش دارند
   ========================================== */

@media (max-width: 767px) {
  .hero-section {
    min-height: 760px;
  }

  .hero-content-container {
    align-items: flex-start;
    padding: 9rem 1.25rem 0;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-badge {
    margin-bottom: 1rem;
    font-size: 0.6875rem;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.4;
  }

  .hero-description {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.9;
  }

  /*
    کارت‌ها روی موبایل مخفی نمی‌شوند.
    در پایین اسلاید، تمام‌عرض و کوچک‌تر قرار می‌گیرند.
  */
  .hero-float-card,
  .hero-event-card,
  .hero-poets-card {
    left: 1rem;
    bottom: 10.5rem;
    width: auto;
    padding: 1rem;
    border-radius: 1.25rem;
  }

  .hero-event-card {
    padding: 0.9rem;
  }

  .hero-event-header {
    padding-bottom: 0.45rem;
    margin-bottom: 0.6rem;
  }

  .hero-event-info h4 {
    font-size: 0.75rem;
    line-height: 1.6;
  }

  .hero-event-info p {
    font-size: 0.6875rem;
  }

  .hero-event-image {
    width: 3.25rem;
    height: 4.25rem;
  }

  .hero-float-link {
    font-size: 0.6875rem;
  }

  .hero-special-header,
  .hero-poets-header {
    margin-bottom: 0.8rem;
  }

  .hero-float-title {
    font-size: 0.9375rem;
  }

  .hero-special-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
  }

  .hero-stat-grid {
    gap: 0.45rem;
    margin-bottom: 0.7rem;
  }

  .hero-stat-box {
    padding: 0.55rem 0.2rem;
    border-radius: 0.75rem;
  }

  .hero-stat-box strong {
    font-size: 1rem;
  }

  .hero-stat-box span {
    font-size: 0.56rem;
  }

  .hero-scan-box {
    padding: 0.7rem;
    border-radius: 0.75rem;
  }

  .hero-scan-box p {
    font-size: 0.75rem;
    line-height: 1.75;
  }

  .hero-poets-list {
    gap: 0.5rem;
    margin-bottom: 0.7rem;
  }

  .poet-chip {
    padding: 0.55rem;
    border-radius: 0.75rem;
  }

  .poet-letter {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.65rem;
  }

  .hero-float-quote {
    padding: 0.7rem;
    font-size: 0.75rem;
    border-radius: 0.75rem;
  }

  /* کنترل‌های اسلایدر */
  .hero-slider-controls {
    bottom: 4.7rem;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 999px;
  }

  .hero-nav {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
  }

  .hero-nav svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  .hero-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .hero-pagination .swiper-pagination-bullet-active {
    width: 22px;
  }

  .hero-scroll-down {
    bottom: 0.9rem;
  }

  .hero-orb {
    width: 15rem;
    height: 15rem;
  }
}

/* موبایل‌های خیلی کوچک */
@media (max-width: 390px) {
  .hero-section {
    min-height: 720px;
  }

  .hero-content-container {
    padding-top: 7.75rem;
  }

  .hero-description {
    font-size: 0.84rem;
  }

  .hero-float-card,
  .hero-event-card,
  .hero-poets-card {
    bottom: 9.75rem;
    padding: 0.75rem;
  }

  .hero-event-info h4 {
    font-size: 0.7rem;
  }

  .hero-event-info p {
    display: none;
  }

  .hero-poets-list {
    display: none;
  }

  .hero-float-quote {
    font-size: 0.7rem;
  }
}

/* ==========================================
   Animations
   ========================================== */

@keyframes heroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

@keyframes livePing {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-color) 75%, transparent);
  }

  70% {
    box-shadow: 0 0 0 8px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes scanMove {
  from {
    left: -35%;
  }

  to {
    left: 125%;
  }
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(0.45rem);
    opacity: 0.5;
  }
}


/* ==========================================
  glob
   ========================================== */

.world-network-section {
  position: relative;
  padding: 4rem 1rem;
  overflow: hidden;
  direction: ltr;
  background: var(--bg-secondary);
}

.world-network-container {
  position: relative;
  width: min(1600px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--bg-primary);
  background-image: url("./src/assets/images/map-bg.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  border-radius: 2.5rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.world-network-container::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(
      circle at 77% 38%,
      color-mix(in srgb, var(--accent-color) 12%, transparent),
      transparent 35%
    ),
    linear-gradient(
      110deg,
      color-mix(in srgb, var(--bg-primary) 88%, transparent) 0%,
      transparent 65%
    );
}

.world-network-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  min-height: 700px;
}

/* ==========================================
   Content column
   ========================================== */

.world-network-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem;
  color: var(--text-primary);
}

.world-network-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary, #6b7280);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.world-network-eyebrow-icon {
  display: block;
  width: min(70px, 12vw);
  height: auto;
  object-fit: contain;
}

.world-network-title {
  margin: 0;
  color: var(--accent-color);
  font-size: clamp(1.3rem, 1.8vw, 2rem);
  font-weight: 900;
  line-height: 1.55;
  text-align: center;
  font-size: 1.2rem;
}

.world-network-title span {
  color: var(--accent-color);
}

.world-network-description {
  max-width: 32rem;
  margin: 1.25rem auto 1.25rem;
  color: var(--text-secondary, #6b7280);
  font-size: 0.9rem;
  line-height: 2;
  text-align: center;
}

/* تصویر شاخص رایزنی */
.office-featured-image {
  position: relative;
  width: 100%;
  height: 185px;
  margin: 1.25rem 0;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.office-featured-image::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 24, 54, 0.03) 25%,
    rgba(8, 24, 54, 0.68) 100%
  );
}

.office-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.office-featured-image:hover img {
  transform: scale(1.04);
}



.office-contact-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text-sec, #b9c4d5);
  font-size: 0.78rem;
}

.office-contact-card .world-stat-details strong {
  display: block;
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.9;
}

.office-contact-value {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.78rem !important;
}

.office-contact-value a {
  color: inherit;
  text-decoration: none;
}

/* جلوگیری از سرریز ایمیل و شماره در موبایل */
.world-network-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .office-featured-image {
    height: 160px;
    margin: 1rem 0;
    border-radius: 14px;
  }

  .world-network-stats {
    grid-template-columns: 1fr;
  }

  .office-contact-card {
    min-height: auto;
  }

  .office-contact-card .world-stat-details strong {
    font-size: 0.82rem;
  }
}

/* ==========================================
   Statistic cards
   ========================================== */

.world-network-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem;
}

/* کارت اول تمام‌عرض می‌شود */
.world-network-stats .office-contact-card:first-child {
  grid-column: 1 / -1; /* یا: grid-column: span 2; */
}
@media (max-width: 576px) {
  .world-network-stats {
    grid-template-columns: 1fr;
  }
}

.world-stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem;
  background: color-mix(in srgb, var(--bg-secondary) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
  border-radius: 1.25rem;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.world-stat-card:hover {
  border-color: color-mix(in srgb, var(--accent-color) 45%, transparent);
  transform: translateY(-4px);
}

.world-stat-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.world-stat-details strong {
  color: var(--accent-color);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 900;
  line-height: 1;
}

.world-stat-details span {
  color: var(--text-secondary, #6b7280);
  font-size: 0.85rem;
  font-weight: 700;
}

.world-stat-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color) 14%, transparent);
  border-radius: 50%;
  place-items: center;
}

.world-stat-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

/* ==========================================
   CTA Button
   ========================================== */

.world-network-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  padding: 1rem 1.5rem;
  color: var(--bg-primary);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  background: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: 0.85rem;
  box-shadow: 0 12px 25px
    color-mix(in srgb, var(--accent-color) 25%, transparent);
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    box-shadow 0.25s ease;
}

.world-network-button:hover {
  filter: brightness(1.08);
  box-shadow: 0 16px 30px
    color-mix(in srgb, var(--accent-color) 36%, transparent);
  transform: translateY(-3px);
}

.world-network-button i {
  transition: transform 0.25s ease;
}

.world-network-button:hover i {
  transform: translateX(0.35rem);
}

/* ==========================================
   Globe area
   ========================================== */

.world-globe-area {
  position: relative;
  min-width: 0;
  min-height: 700px;
  overflow: hidden;
}

.native-globe {
  position: absolute;
  inset: 0;
  z-index: 2;
  min-height: 500px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  isolation: isolate;
  background: #f7f8fb;
}

.native-globe:active {
  cursor: grabbing;
}

/* هاله نور پشت کره */
.native-globe::before {
  position: absolute;
  top: 50%;
  right: 50%;
  z-index: -2;
  width: min(80%, 640px);
  aspect-ratio: 1;
  content: "";
  pointer-events: none;
  background: var(--accent-color);
  border-radius: 50%;
  filter: blur(105px);
  opacity: 0.17;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  filter: blur(120px);
}

/* ذرات پس‌زمینه */
.native-globe::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.28;
  background-image:
    radial-gradient(circle, var(--accent-color) 1px, transparent 1.5px),
    radial-gradient(circle, var(--accent-color) 0.75px, transparent 1.3px);
  background-position:
    0 0,
    43px 31px;
  background-size:
    78px 78px,
    96px 96px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(
    circle at center,
    #000 0%,
    transparent 70%
  );
}

#globeCanvas {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}

/* مدارهای تزئینی */
.globe-orbit {
  position: absolute;
  top: 50%;
  right: 50%;
  z-index: 1;
  width: min(74%, 530px);
  aspect-ratio: 1.8;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--accent-color) 24%, transparent);
  border-radius: 50%;
  opacity: 0.8;
}

.globe-orbit-one {
  transform: translate(-50%, -50%) rotate(-22deg);
  animation: globeOrbitPulseOne 5s ease-in-out infinite;
}

.globe-orbit-two {
  width: min(61%, 445px);
  border-color: color-mix(in srgb, var(--accent-color) 16%, transparent);
  transform: translate(-50%, -50%) rotate(30deg);
  animation: globeOrbitPulseTwo 6s ease-in-out infinite;
}

/* برچسب بالا */
.native-globe-label {
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.95rem;
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--bg-primary) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-color) 24%, transparent);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.native-globe-label-dot {
  width: 0.52rem;
  height: 0.52rem;
  background: var(--accent-color);
  border-radius: 50%;
  animation: globeStatusPulse 1.8s infinite;
}

/* راهنمای رنگ‌ها */
.native-globe-legend {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  color: var(--text-secondary, #64748b);
  font-size: 0.67rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--bg-primary) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
  border-radius: 0.85rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.native-globe-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent-color);
  border: 1px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-color);
}

.legend-dot-iran {
  width: 0.7rem;
  height: 0.7rem;
  background: #ffffff;
  border-color: var(--accent-color);
}

/* ==========================================
   Country information card
   ========================================== */

.country-card {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: min(320px, calc(100% - 3rem));
  padding: 1.25rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  color: var(--hero-card-title, var(--text-primary));
  background: color-mix(
    in srgb,
    var(--hero-card-bg, var(--bg-primary)) 92%,
    transparent
  );
  border: 1px solid var(--hero-card-border, rgba(255, 255, 255, 0.18));
  border-radius: 1.25rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(1rem);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.28s ease;
}

.country-card.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.country-card .card-icon-wrapper {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 0.85rem;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color) 14%, transparent);
  border-radius: 0.8rem;
  place-items: center;
}

.country-card h3 {
  padding-right: 1.6rem;
  margin: 0 0 0.45rem;
  color: var(--hero-card-title, var(--text-primary));
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.65;
}

.country-card p {
  margin: 0;
  color: var(--hero-card-text, var(--text-secondary));
  font-size: 0.84rem;
  line-height: 1.9;
}

.country-card .card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.95rem;
  color: var(--accent-color);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.country-card-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  color: var(--hero-card-title, var(--text-primary));
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
  place-items: center;
  transition: background 0.2s ease;
}

.country-card-close:hover {
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
}

/* ==========================================
   Globe zoom controls
   ========================================== */

.globe-zoom-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.globe-zoom-controls button {
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  color: var(--text-primary);
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  background: var(--card-glass, rgba(255, 255, 255, 0.72));
  border: 1px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  place-items: center;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.globe-zoom-controls button:hover {
  color: var(--bg-primary);
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.06);
}

/* ==========================================
   Animations
   ========================================== */

@keyframes globeStatusPulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-color) 65%, transparent);
  }

  70% {
    box-shadow: 0 0 0 10px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes globeOrbitPulseOne {
  0%,
  100% {
    opacity: 0.28;
    transform: translate(-50%, -50%) rotate(-22deg) scale(0.97);
  }

  50% {
    opacity: 0.75;
    transform: translate(-50%, -50%) rotate(-22deg) scale(1.03);
  }
}

@keyframes globeOrbitPulseTwo {
  0%,
  100% {
    opacity: 0.18;
    transform: translate(-50%, -50%) rotate(30deg) scale(1.03);
  }

  50% {
    opacity: 0.62;
    transform: translate(-50%, -50%) rotate(30deg) scale(0.96);
  }
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 1100px) {
  .world-network-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }

  .world-network-content {
    padding: 3.5rem 2rem;
  }
}

@media (max-width: 900px) {
  .world-network-layout {
    display: flex;
    flex-direction: column;
  }

  .world-network-content {
    padding: 3rem 1.5rem 2rem;
  }

  .world-globe-area {
    min-height: 540px;
  }

  .native-globe {
    min-height: 540px;
  }
}

@media (max-width: 600px) {
  .world-network-section {
    padding: 2.5rem 0.75rem;
  }

  .world-network-container {
    border-radius: 1.6rem;
  }

  .world-network-content {
    padding: 2.5rem 1rem 1.5rem;
  }

  .world-network-eyebrow {
    gap: 0.45rem;
    font-size: 0.8rem;
  }

  .world-network-eyebrow-icon {
    width: 42px;
  }

  .world-network-title {
    font-size: 1rem;
  }

  .world-network-description {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
  }

  .world-network-stats {
    gap: 0.65rem;
  }

  .world-stat-card {
    padding: 0.9rem 0.75rem;
    border-radius: 1rem;
  }

  .world-stat-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .world-stat-icon svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  .world-stat-details span {
    font-size: 0.7rem;
  }

  .world-network-button {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }

  .world-globe-area,
  .native-globe {
    min-height: 455px;
  }

  .native-globe-label {
    top: 1rem;
    left: 1rem;
    font-size: 0.62rem;
  }

  .native-globe-legend {
    left: 1rem;
    bottom: auto;
    right: 1rem;
    justify-content: center;
    font-size: 0.6rem;
  }

  .country-card {
    left: 1rem;
    bottom: 1rem;
    right: 1rem;
    width: auto;
    padding: 1rem;
  }

  .globe-zoom-controls {
    top: 1rem;
    bottom: auto;
    right: 1rem;
  }

  .globe-zoom-controls button {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.85rem;
  }
}

/* احترام به تنظیمات کاهش حرکت مرورگر */
@media (prefers-reduced-motion: reduce) {
  .globe-orbit,
  .native-globe-label-dot {
    animation: none !important;
  }

  .world-network-button,
  .world-stat-card,
  .globe-zoom-controls button {
    transition: none;
  }
}


/* ==========================================
   iran
   ========================================== */

/* --- گرد کردن گوشه‌های کارت‌های اسلایدر --- */
.azadi-main-swiper {
  /* در افکت cards، بهتر است overflow کانتینر اصلی visible باشد تا کارت‌های زیری دیده شوند */
  overflow: visible;
}

.azadi-main-swiper .swiper-slide {
  border-radius: 24px; /* شعاع گردی گوشه‌های کارت - قابل تغییر */
  overflow: hidden; /* جلوگیری از بیرون زدن عکس از گوشه‌های گرد */
  /* اگر پس‌زمینه کارت‌ها شفاف است، یک رنگ پایه بدهید تا روی هم افتادنشان زیبا شود */
  background-color: #fff;
}

.azadi-main-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* پر کردن کل کارت بدون دفرمه شدن عکس */
  display: block;
}

/* --- استایل‌دهی به نقطه‌های Pagination (جایگزین کدهای Tailwind) --- */
.az-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 4px !important;
  border-radius: 50%;
  background-color: #ffffff; /* رنگ سفید */
  opacity: 0.5; /* شفافیت ۵۰ درصد برای نقطه‌های غیرفعال */
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.az-pagination .swiper-pagination-bullet-active {
  opacity: 1; /* شفافیت کامل برای نقطه فعال */
  transform: scale(
    1.2
  ); /* کمی بزرگ‌تر شدن نقطه فعال (اختیاری برای زیبایی بیشتر) */
}

.azadi-hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-secondary);
  padding: 3.5rem 0;
}
@media (min-width: 768px) {
  .azadi-hero-section {
    padding: 5rem 0;
  }
}

/* Ambient Glows */
.azadi-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.azadi-glow-top {
  left: -120px;
  top: -80px;
  width: 18rem;
  height: 18rem;
  background-color: color-mix(in srgb, var(--accent-color) 15%, transparent);
}
.azadi-glow-bottom {
  bottom: -120px;
  right: -100px;
  width: 20rem;
  height: 20rem;
  background-color: color-mix(in srgb, var(--text-primary) 5%, transparent);
}

.azadi-container {
  margin: 0 auto;
  max-width: 1600px;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .azadi-container {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .azadi-container {
    padding: 0 2rem;
  }
}

/* Main Card */
.azadi-main-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
}
@media (min-width: 768px) {
  .azadi-main-card {
    border-radius: 36px;
  }
}

.azadi-card-overlay {
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 8rem;
  z-index: 10;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--text-primary) 5%, transparent),
    transparent
  );
}

/* Grid Layout */
.azadi-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .azadi-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .azadi-image-side {
    grid-column: span 5 / span 5;
  }
  .azadi-content-side {
    grid-column: span 7 / span 7;
  }
}

/* Image Side & Slider */
.azadi-image-side {
  position: relative;
  min-width: 0;
}
.azadi-image-wrapper {
  position: relative;
  height: 360px;
  padding: 1rem;
}
@media (min-width: 640px) {
  .azadi-image-wrapper {
    height: 430px;
  }
}
@media (min-width: 768px) {
  .azadi-image-wrapper {
    padding: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .azadi-image-wrapper {
    min-height: 620px;
  }
}

.azadi-main-swiper {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Slides & Images: Ensure Full Width */
.azadi-slide-bg {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-primary);
  width: 100%;
  height: 100%;
}
.azadi-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.azadi-slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--bg-primary) 85%, transparent),
    color-mix(in srgb, var(--bg-primary) 35%, transparent),
    transparent
  );
}

/* Category Badge & Link */
.azadi-category-badge {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 20;
  width: 7rem;
}
@media (min-width: 640px) {
  .azadi-category-badge {
    right: 1.5rem;
    top: 1.5rem;
    width: 8rem;
  }
}
.azadi-category-badge img {
  display: block;
  width: 100%;
  height: auto;
}

/* استایل دهی به تگ a در دسته‌بندی */
.azadi-category-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.azadi-category-link:hover {
  transform: scale(1.05);
}
.azadi-category-link span {
  font-size: 0.75rem;
  font-weight: 800;
  color: #111827;
}
@media (min-width: 640px) {
  .azadi-category-link span {
    font-size: 0.875rem;
  }
}
@media (min-width: 768px) {
  .azadi-category-link span {
    font-size: 0.85rem;
  }
}

/* Info Box */
.azadi-slide-info {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--card-glass);
  padding: 0.5rem 1rem;
  text-align: left;
  backdrop-filter: blur(12px);
  z-index: 20;
}
.azadi-info-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
}
.azadi-info-title a{
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-color);
  margin: 0;
  text-decoration: none;
}
.azadi-info-title {
  color: var(--accent-color);
  margin: 0;
}

/* Swiper Controls */
.azadi-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .azadi-controls {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}
.azadi-nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--card-border);
  background: var(--card-glass);
  padding: 0.375rem;
  backdrop-filter: blur(12px);
}
.azadi-nav-buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.azadi-nav-buttons button svg {
  height: 1.25rem;
  width: 1.25rem;
}
.az-prev {
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
  color: var(--text-primary);
}
.az-prev:hover {
  background: var(--accent-color);
  color: #fff;
}
.az-next {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.az-next:hover {
  transform: scale(1.05);
}
.az-next svg {
  transform: rotate(180deg);
}

.az-pagination {
  position: static !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--card-border);
  background: var(--card-glass);
  padding: 0.5rem 0.75rem;
  backdrop-filter: blur(12px);
}
.az-pagination .swiper-pagination-bullet {
  background: var(--text-secondary) !important;
  margin: 0 !important;
}
.az-pagination .swiper-pagination-bullet-active {
  background: var(--accent-color) !important;
  opacity: 1 !important;
}

/* Content Side */
.azadi-content-side {
  min-width: 0;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.azadi-content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1rem 1.25rem;
}
@media (min-width: 640px) {
  .azadi-content-wrapper {
    padding: 1.5rem 1.5rem 1.25rem;
  }
}
@media (min-width: 768px) {
  .azadi-content-wrapper {
    padding: 2rem 2rem 2rem;
  }
}
@media (min-width: 1024px) {
  .azadi-content-wrapper {
    padding: 2.5rem 2.5rem;
  }
}

.azadi-top-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.azadi-badge-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--card-border);
  background: var(--card-glass);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-color);
  backdrop-filter: blur(4px);
}
.azadi-badge-dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: var(--accent-color);
  display: inline-block;
}
.azadi-badge-secondary {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}
@media (min-width: 640px) {
  .azadi-badge-secondary {
    font-size: 0.875rem;
  }
}

.azadi-text-swiper {
  width: 100%;
  flex: 1;
  overflow: hidden;
}
.azadi-text-content {
  max-width: 48rem;
  padding: 0.5rem 0;
}
.azadi-text-content h2 {
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 1rem;
}
.azadi-text-content h2 span {
  color: var(--accent-color);
}
@media (min-width: 640px) {
  .azadi-text-content h2 {
    font-size: 2.25rem;
  }
}
@media (min-width: 1024px) {
  .azadi-text-content h2 {
    font-size: 3rem;
  }
}

.azadi-text-content p {
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 2;
  color: var(--text-secondary);
  margin: 0 0 2rem;
}
@media (min-width: 640px) {
  .azadi-text-content p {
    font-size: 0.9375rem;
  }
}
@media (min-width: 768px) {
  .azadi-text-content p {
    font-size: 1rem;
  }
}

.azadi-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .azadi-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
.azadi-actions button {
  width: 100%;
  border-radius: 0.75rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.3s;
  cursor: pointer;
  outline: none;
  border: none;
  font-family: inherit;
}
@media (min-width: 640px) {
  .azadi-actions button {
    width: auto;
  }
}
.btn-primary {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 10px 15px -3px
    color-mix(in srgb, var(--accent-color) 25%, transparent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}
.btn-secondary {
  background: color-mix(in srgb, var(--bg-primary) 80%, transparent);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: color-mix(in srgb, var(--text-primary) 5%, transparent);
}

/* Bottom Area (Thumbnails) */
.azadi-bottom-area {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-top: 1px solid var(--card-border);
  padding-top: 1.25rem;
  width: 100%;
}
@media (min-width: 768px) {
  .azadi-bottom-area {
    margin-top: 2.5rem;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.azadi-thumbs-container {
  min-width: 0;
  width: 100%;
}
.azadi-thumbs-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.azadi-thumbs-title p {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* تنظیم عرض آزاد برای اسلایدر مطالب مشابه تا به‌خوبی اسکرول شود */
.azadi-thumbs-swiper {
  margin: 0;
  width: 100%;
  padding: 0.25rem 0;
  overflow: hidden;
}
.azadi-thumb-slide {
  width: 74px !important;
  cursor: pointer;
}
@media (min-width: 640px) {
  .azadi-thumb-slide {
    width: 86px !important;
  }
}

.azadi-thumb-box {
  position: relative;
  height: 74px;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid transparent;
  transition: all 0.3s;
}
@media (min-width: 640px) {
  .azadi-thumb-box {
    height: 86px;
  }
}
.azadi-thumb-box:hover {
  border-color: var(--card-border);
}
.azadi-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.azadi-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: all 0.3s;
}
.swiper-slide-thumb-active .azadi-thumb-overlay {
  background: color-mix(in srgb, var(--accent-color) 85%, transparent);
}
.azadi-thumb-overlay span {
  font-size: 1.5rem;
  font-weight: 300;
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s;
}
.swiper-slide-thumb-active .azadi-thumb-overlay span {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   category
 ========================================== */


/* بسیار مهم: اسلایدهای تب نباید ۱۰۰٪ باشند بلکه باید اندازه محتوای خود باشند */
.cat-tabs-swiper .swiper-slide {
  width:160px;
  display: flex;
  align-items: center;
}

/* استایل و تنظیمات دکمه هر تب */
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: var(--card-glass, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
  color: var(--text-secondary, #a0aec0);
  cursor: pointer;
  white-space: nowrap; /* جلوگیری از شکستن خط داخل تب */
  transition: all 0.3s ease;
  user-select: none;
}

/* حالت هاور و اکتیو تب‌ها */
.cat-tab:hover,
.cat-tab.active {
  background: var(--accent-color, #c5a059);
  color: #ffffff;
  border-color: var(--accent-color, #c5a059);
}

.cat-tab .cat-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-tab .cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cat-tab .cat-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.cat-tab .cat-name {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.cat-tab .cat-count {
  font-size: 0.7rem;
  opacity: 0.75;
}



/* ==========================================
   Cultural Categories Section (Pure CSS)
   ========================================== */

.cultural-section {
  background-color: var(--bg-secondary);
  padding: 3rem 1rem;
  font-family: inherit;
}
@media (min-width: 768px) {
  .cultural-section {
    padding: 4rem 2rem;
  }
}

/* Header Elements */
.cultural-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.main-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0.5rem;
}
@media (min-width: 768px) {
  .main-title {
    font-size: 1.875rem;
  }
}
.sub-title {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  margin: 0;
}
.title-wrapper span {
  text-align: center;
}

.ornament-line {
  width: 3rem;
  height: 1px;
  background-color: #9ca3af;
}
@media (min-width: 768px) {
  .ornament-line {
    width: 4rem;
  }
}
.ornament-diamonds {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.diamond {
  width: 0.6rem;
  height: 0.6rem;
  transform: rotate(45deg);
}
.diamond.large {
  width: 0.75rem;
  height: 0.75rem;
}
.bg-text-sec {
  background-color: var(--text-secondary);
}
.bg-accent {
  background-color: var(--accent-color);
}

/* Tabs Slider Container */
.tabs-slider-container {
  position: relative;
  max-width: 1600px;
  margin: 0 auto 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2.5rem;
}
.tab-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}
.tab-nav-btn:hover {
  background: var(--bg-secondary);
  color: var(--accent-color);
}
.tab-next {
  left: 0;
}
.tab-prev {
  right: 0;
}

.cat-tabs-swiper {
  width: 100%;
  padding: 0.5rem !important;
}
.tab-slide {
  width: 160px !important;
}

/* Tabs Styles */
.cat-tab {
  position: relative;
  width: 100%;
  height: 70px;
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
  outline: none;
}
.cat-tab:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.cat-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  flex-shrink: 0;
  overflow: hidden;
}
.cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-info {
  display: flex;
  flex-direction: column;
}
.cat-info a{
  text-decoration: none;
}
.cat-name {
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--text-primary);
}
.cat-count {
  font-size: 0.7rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

/* Active Tab Styles */
.cat-tab.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 10px 15px -3px
    color-mix(in srgb, var(--accent-color) 30%, transparent);
}
.cat-tab.active .cat-icon {
  background: rgba(255, 255, 255, 0.2);
}
.cat-tab.active .cat-name {
  color: #fff;
}
.cat-tab.active .cat-count {
  color: rgba(255, 255, 255, 0.8);
}
.cat-tab.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 50%;
  transform: translateX(-50%);
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  border-top: 10px solid var(--accent-color);
}

/* Content Box */
.content-box-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  background: var(--card-glass);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  position: relative;
}
@media (min-width: 768px) {
  .content-box-wrapper {
    padding: 2rem;
  }
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.header-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-title-group h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
@media (min-width: 768px) {
  .header-title-group h3 {
    font-size: 1.25rem;
  }
}
.ornament-diamonds.small .diamond {
  width: 0.4rem;
  height: 0.4rem;
}
.ornament-diamonds.small .diamond.large {
  width: 0.5rem;
  height: 0.5rem;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-view-all:hover {
  background: var(--accent-color);
  color: #fff;
}
.btn-view-all svg {
  width: 1rem;
  height: 1rem;
}

/* Panes and Cards */
.panes-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.tab-pane {
  display: none;
  width: 100%;
  animation: fadeIn 0.4s ease forwards;
}
.tab-pane.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cards-swiper {
  width: 100%;
  padding-bottom: 1rem;
}
.post-card {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
}
.post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.post-card:hover img {
  transform: scale(1.1);
}
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #0a1a24 0%,
    rgba(10, 26, 36, 0.8) 40%,
    transparent 100%
  );
}
.card-content {
  position: absolute; 
  bottom: 0;
  padding: 1.25rem;
  color: #fff;
  z-index: 2;
}
.card-content a{
  text-decoration: none !important;
  font-size: 1.25rem !important;
}
.card-content a h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}
.card-content p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  justify-content: flex-start;
}

/* Cards Navigation inside Content Box */
.cards-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border: none;
  cursor: pointer;
  z-index: 20;
  transition: color 0.3s;
}
.cards-nav-btn:hover {
  color: var(--accent-color);
}
.cards-next {
  left: -1rem;
}
.cards-prev {
  right: -1rem;
}
@media (max-width: 768px) {
  .cards-next {
    left: 0.5rem;
  }
  .cards-prev {
    right: 0.5rem;
  }
    .content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  margin-bottom: 1.5rem;
}
  .content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}
}

/* Custom Pagination */
.cards-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 24rem;
  margin: 1.5rem auto 0;
}
.cards-pagination-wrap .line {
  height: 1px;
  background: var(--card-border);
  flex: 1;
}
.cards-pagination {
  position: static !important;
  width: auto !important;
  display: flex;
  gap: 0.5rem;
}
.cards-pagination .swiper-pagination-bullet {
  background: var(--text-secondary);
  opacity: 0.5;
  margin: 0 !important;
}
.cards-pagination .swiper-pagination-bullet-active {
  background: var(--accent-color);
  opacity: 1;
}

/* تنظیمات کانتینر اصلی متا */
.card-meta {
  display: flex;
  align-items: center;
  gap: 16px; /* فاصله بین آیتم تاریخ و آیتم زمان مطالعه */
  margin-top: 12px;
}

/* تنظیمات داخل هر آیتم (آیکن + متن) */
.card-meta span {
  display: flex;
  align-items: center;
  gap: 6px; /* فاصله بین آیکن و متن */
  font-family: "Vazir", sans-serif; /* اعمال فونت وزیر برای span ها */
  font-size: 13px; /* اندازه مناسب برای متادیتا */
  color: #e0e0e0; /* رنگ ملایم برای دیده شدن روی پس‌زمینه تیره یا گلس */
  line-height: 1;
}

/* اطمینان از اینکه آیکن‌ها دفورمه نمی‌شوند */
.card-meta span svg {
  flex-shrink: 0;
}

/* ==========================================
   events
   ========================================== */

/* ================= کانتینر اصلی و کپسولی شکل ================= */
.events-section {
  padding: 2rem 1rem;
}

.events-container {
  display: flex;
  flex-direction: row; /* در دسکتاپ: در یک خط */
  align-items: center;
  background: var(--bg-primary);
  border-radius: 2rem; /* شکل کپسولی دقیقاً مشابه عکس */
  padding: 1rem 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--card-border);
  position: relative;
}

/* در موبایل و تبلت به حالت ستونی در می‌آید */
@media (max-width: 1024px) {
  .events-container {
    flex-direction: column;
    border-radius: 2rem;
    padding: 1.5rem;
    gap: 1.5rem;
  }
}

/* ================= هدر (عنوان سمت راست) ================= */
.events-header {
  padding-right: 2rem;
  min-width: max-content;
  text-align: left;
}

@media (max-width: 1024px) {
  .events-header {
    padding-right: 0;
    text-align: center;
  }
}

.events-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.events-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ================= تایم‌لاین و Swiper ================= */
.events-timeline-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  width: 100%;
  min-width: 0; /* ✨ کلید حل مشکل: جلوگیری از بی‌نهایت شدن عرض فلکس‌باکس */
  max-width: 1300px;
}

.events-swiper {
  width: 100%;
  height: 100px;
  margin: 0 1rem;
  position: relative;
  min-width: 0; /* ✨ کمک به Swiper برای محاسبه درست عرض کانتینر در دسکتاپ */

  /* مهم: اجازه خروج پاپ‌آپ به بالا، ولی برش از بغل‌ها برای تمیزی اسلایدر */
  overflow-y: visible !important;
  overflow-x: clip !important;
}
/* خط سراسری پشت نقاط */
.events-track-bg {
  position: absolute;
  top: 50%;
  right: 2rem; /* تغییر از 0 به 2rem برای جلوگیری از بیرون‌زدگی خط */
  left: 2rem; /* تغییر از 0 به 2rem */
  height: 2px;
  background: var(--card-border);
  transform: translateY(-50%);
  z-index: 0;
}

/* خط پیشرفت رنگی (اختیاری اگر در HTML استفاده کرده‌اید) */
.events-track-progress {
  position: absolute;
  top: 50%;
  left: 2rem;
  height: 2px;
  background: var(--accent-color);
  transform: translateY(-50%);
  z-index: 1;
}

/* ================= گره‌ها (Nodes) ================= */
.event-node {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  outline: none;
  z-index: 2;
}

.event-label-top {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: color 0.3s;
}

.event-point {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-secondary);
  box-shadow: 0 0 0 6px var(--bg-primary); /* ایجاد فضای خالی دور نقطه برای قطع کردن خط */
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.event-label-bottom {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 12px;
  transition: color 0.3s;
}

/* ----- حالت فعال ----- */
.event-node.active .event-label-top {
  color: var(--accent-color);
}

.event-node.active .event-point {
  background: var(--accent-color);
  width: 14px;
  height: 14px;
  /* هاله کمرنگ دور نقطه فعال مشابه عکس */
  box-shadow:
    0 0 0 4px var(--bg-primary),
    0 0 0 8px rgba(194, 155, 98, 0.15);
}

.event-node.active .event-label-bottom {
  color: var(--text-primary);
  font-weight: 800;
}

/* ----- هاور شدن روی گره‌ها ----- */
.event-node:hover .event-point,
.event-node:focus-visible .event-point {
  transform: scale(1.3);
  background: var(--accent-color);
}

.event-node:hover .event-label-top,
.event-node:hover .event-label-bottom {
  color: var(--text-primary);
}

/* ================= دکمه‌های ناوبری اسلایدر ================= */
.ev-prev,
.ev-next {
  display: flex !important; /* جلوگیری از مخفی شدن توسط استایل‌های دیگر */
  align-items: center;
  justify-content: center;

  width: 44px;
  min-width: 44px; /* جلوگیری از فشرده شدن دکمه در دسکتاپ */
  height: 44px;
  flex-shrink: 0; /* ✨ بسیار مهم: اجازه نمی‌دهد فلکس‌باکس دکمه را کوچک کند */

  background: #ffffff; /* رنگ پس‌زمینه دکمه */
  border: 1px solid #e2e8f0;
  border-radius: 50%; /* گرد کردن دکمه */
  color: #64748b; /* رنگ فلش/آیکون */

  position: relative;
  z-index: 999; /* ✨ آوردن دکمه‌ها به بالاترین لایه تا زیر هاله و گلس نمانند */

  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* افکت هاور برای دکمه‌ها */
.ev-prev:hover,
.ev-next:hover {
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* مدیریت دکمه‌های غیرفعال (وقتی اسلایدر به اول یا آخر می‌رسد) */
.ev-prev.swiper-button-disabled,
.ev-next.swiper-button-disabled {
  opacity: 0.4 !important; /* به جای غیب شدن، فقط کمرنگ شوند */
  cursor: not-allowed !important;
  pointer-events: none; /* غیرفعال کردن کلیک */
}

/* ================= کارت پاپ‌آپ (نمایش با Hover) ================= */
.event-popup-card {
  position: absolute;
  bottom: calc(50% + 24px); 
  right: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .event-popup-card {
    width: 300px;
  }
}

.event-node:hover .event-popup-card,
.event-node:focus-visible .event-popup-card {
  opacity: 1;
  visibility: visible;
  transform: translateX(55%) translateY(15);
  pointer-events: auto;
}

/* فلش پایین کارت پاپ‌آپ */
.event-popup-card::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--bg-primary);
  border-left: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

/* تنظیم جایگاه پاپ‌آپ برای ابتدا و انتهای اسلایدر برای بیرون نزدن از کادر مانیتور */
.swiper-slide:first-child .event-popup-card {
  left: 0;
  right: auto;
  transform: translateX(0) translateY(15px);
}
.swiper-slide:first-child .event-node:hover .event-popup-card {
  transform: translateX(0) translateY(0);
}
.swiper-slide:first-child .event-popup-card::after {
  right: auto;
  left: 24px;
}

.swiper-slide:last-child .event-popup-card {
  right: 0;
  left: auto;
  transform: translateX(0) translateY(15px);
}
.swiper-slide:last-child .event-node:hover .event-popup-card {
  transform: translateX(0) translateY(0);
}
.swiper-slide:last-child .event-popup-card::after {
  right: 24px;
  left: auto;
}

/* محتوای داخلی پاپ‌آپ */
.event-popup-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}
.event-popup-info {
  padding: 1rem;
  text-align: left;
}
.event-popup-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}
.event-popup-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================
   news
   ========================================== */

/* ==================== News Section CSS (Theme Support) ==================== */
.news-section {
  background-color: var(--bg-secondary);
  padding: 3rem 0;
}

.news-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
  min-width: 0;
}

/* Header */
.news-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.news-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.news-line {
  width: 4rem;
  height: 1px;
  background-color: var(--border-color);
}

.news-diamonds {
  display: flex;
  gap: 0.25rem;
}

.diamond {
  transform: rotate(45deg);
  display: inline-block;
}

.diamond.small {
  width: 0.625rem;
  height: 0.625rem;
  background-color: var(--secondary-color);
  opacity: 0.7;
}

.diamond.large {
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--accent-color);
}

.news-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0.5rem;
  color: var(--text-primary);
}

.news-subtitle {
  font-weight: 500;
  color: var(--text-secondary);
}

/* Slider Wrapper & Navigation Buttons */
.news-slider-wrapper {
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
}

/* دکمه‌های ناوبری - فعال در موبایل و دسکتاپ */
.news-btn-prev,
.news-btn-next {
  position: absolute;
  top: 50%; /* وسط‌چین دقیق */
  transform: translateY(-50%);
  z-index: 50;
  width: 3rem;
  height: 3rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color); /* خط نازک دور دکمه */
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex; /* نمایش در همه دستگاه‌ها */
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* جایگاه دکمه‌ها */
.news-btn-next {
  right: -0.5rem;
}
.news-btn-prev {
  left: -0.5rem;
}

.news-btn-prev svg,
.news-btn-next svg {
  width: 1.5rem;
  height: 1.5rem;
}

.news-btn-prev:hover,
.news-btn-next:hover {
  background-color: var(--bg-primary);
}

/* Swiper Container */
.news-swiper {
  width: 100%;
  padding: 1rem 0; /* حذف پدینگ اضافی برای تراز بهتر دکمه‌ها */
}

.swiper-slide {
  height: auto;
}

/* Card Styling */
.news-card {
  position: relative;
  background-color: var(--card-glass);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card-image {
  position: relative;
  width: 100%;
  height: 14rem;
  border-radius: 1.5rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background-color: var(--bg-secondary);
  backdrop-filter: blur(4px);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.news-card-title {
  font-size: 1.125rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding: 0.5rem 0.5rem 0 0.5rem;
}

.news-read-more {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  transition: background-color 0.3s ease;
}

.news-read-more svg {
  width: 0.75rem;
  height: 0.75rem;
   transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.news-read-more:hover {
  background-color: var(--bg-primary);
}

.news-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Pagination Decor */
.news-pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.5rem;
  width: 100%;
  max-width: 28rem;
  margin-right: auto;
  margin-left: auto;
}

.news-pagination-line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--border-color);
}

.news-pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0 1rem;
  justify-content: center;
}

.news-pagination .swiper-pagination-bullet {
  background-color: var(--border-color);
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  opacity: 1;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0 !important;
}

.news-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
  width: 1.5rem;
  border-radius: 9999px;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .news-title {
    font-size: 1.875rem;
  }
  .news-btn-next {
    right: -1.5rem;
  }
  .news-btn-prev {
    left: -1.5rem;
  }
}

/* ==========================================
   English LTR layout
   ========================================== */

html,
body {
  direction: ltr !important;
}

body {
  text-align: left;
}

.world-network-section,
.azadi-hero-section,
.cultural-section,
.events-section,
.news-section,
.site-footer {
  direction: ltr;
}

.theme-option,
.world-menu-accordion-trigger,
.footer-logo-wrap,
.footer-stat-item {
  text-align: left;
}
