/* ===============================
   MOIT ECONOMIC STATS SECTION
================================= */

.moit-economic-section {
  padding: 30px 20px;
  background: #f4f9f8;
  direction: rtl;
  font-family: "Tajawal", sans-serif;
  overflow: hidden;
}

/* Header */
.moit-economic-header {
  text-align: center;
  margin-bottom: 60px;
}

.moit-economic-title {
  font-size: 36px;
  color: #0E7C66;
  margin-bottom: 12px;
  font-weight: 700;
}

.moit-economic-subtitle {
  color: #666;
  font-size: 16px;
}

/* KPI Cards */
.moit-economic-kpi-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.moit-economic-kpi-card {
  background: #ffffff;
  padding: 25px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border-top: 4px solid #17A2A0;
}

.moit-economic-kpi-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.moit-kpi-value {
  font-size: 32px;
  font-weight: bold;
  color: #0E7C66;
}

/* Charts */
.moit-economic-charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 60px;
}

.moit-chart-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  overflow: hidden; /* 🔥 يمنع القص */
}

.moit-chart-card h3 {
  margin-bottom: 15px;
  color: #0E7C66;
  font-size: 16px;
}

/* 🔥 ULTRA FIX CHART */
.moit-chart-container {
  position: relative;
  width: 100%;
  height: 320px;
}

.moit-chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Insights */
.moit-economic-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.moit-insight-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 16px;
  border-right: 4px solid #0E7C66;
  box-shadow: 0 5px 18px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.moit-insight-card:hover {
  transform: translateY(-6px);
}

/* CTA Button (🔥 IMPROVED) */
.moit-economic-footer {
  text-align: center;
}

.moit-economic-btn {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, #0E7C66, #17A2A0);
  color: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(14,124,102,0.25);
  transition: all 0.3s ease;
}

.moit-economic-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(14,124,102,0.35);
}

/* ===============================
   RESPONSIVE
================================= */

/* Tablet */
@media (max-width: 992px) {

  .moit-economic-kpi-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .moit-economic-charts {
    grid-template-columns: 1fr;
  }

  .moit-economic-insights {
    grid-template-columns: 1fr;
  }

}

/* 🔥 ULTRA MOBILE FIX */
@media (max-width: 600px) {

  /* KPI Slider */
  .moit-economic-kpi-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
  }

  .moit-economic-kpi-wrapper::-webkit-scrollbar {
    display: none;
  }

  .moit-economic-kpi-card {
    min-width: 100%;
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  /* Charts */
  .moit-chart-container {
    height: 260px;
  }

}

/* Scroll Animation */
.moit-economic-kpi-card,
.moit-chart-card,
.moit-insight-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.moit-visible {
  opacity: 1;
  transform: translateY(0);
}