/* === Container === */
.mifa-board-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  direction: rtl;
  font-family: "Vazirmatn", sans-serif;
  max-width: 1000px;
  margin: 30px auto;
}

/* === Sections === */
.mifa-section {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}
.mifa-section h3 {
  margin: 0;
  padding: 12px;
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
  text-align: center;
  font-weight: bold;
}

/* === Board === */
.mifa-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
}
.mifa-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  text-align: center;
  padding: 10px;
  transition: all 0.4s ease;
}
.mifa-item.up {
  color: #008000;
  animation: flashUp 1s ease;
}
.mifa-item.down {
  color: #c00000;
  animation: flashDown 1s ease;
}
.mifa-item .title {
  display: block;
  font-size: 14px;
  color: #333;
}
.mifa-item .value {
  display: block;
  font-size: 20px;
  font-weight: bold;
}
.mifa-item .icon {
  font-size: 18px;
  margin-left: 6px;
}
@keyframes flashUp {
  0% { background-color: #dfffdf; }
  50% { background-color: #eaffea; }
  100% { background-color: #fff; }
}
@keyframes flashDown {
  0% { background-color: #ffdcdc; }
  50% { background-color: #ffeaea; }
  100% { background-color: #fff; }
}

/* === Responsive === */
@media (max-width:768px){
  .mifa-board-container {
    grid-template-columns: 1fr;
  }
}
