.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-right: auto;
  margin-left: auto;
  padding: var(--container-padding);
}
/* تمام سکشن‌ها به صورت پیش‌فرض */
section {
  width: 100%;
  overflow-x: hidden; /* جلوگیری از اسکرول افقی ناخواسته */
  display: flex;
  justify-content: center; /* تراز کردن کانتینر در وسط */
}



#Blog-title {
  color: #fff;
  margin-top: 2rem;
  direction: rtl;
  text-align: right;
  font-weight: 800;
  font-size: 2.2rem;
  background-image: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff 10%,
    #ffffff 15%,
    #ffffff 20%,
    #213b8f 25%,
    #213b8f 50%,
    #de880b 50%,
    #de880b 75%,
    #de880b 100%
  );
  background-size: 200% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: blogTitleGradientWave 10.5s ease-in-out infinite;
}

@keyframes blogTitleGradientWave {
  0% {
    background-position: 0% 0;
  }
  50% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.blog-image-block {
  margin-inline: 8px;
  margin-bottom: -130px;
  z-index: 1;
}

.blog-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 14px 30px #d5850c11;
  display: flex;
}

.blog-content {
  background-color: #1d2228;
  border-radius: 20px;
  padding: 150px 20px 20px;
  border: 1px solid #303233;
  box-shadow: inset 0 0 10px #3032330b;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-title {
  font-size: 1.05rem;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.blog-excerpt {
  font-size: 0.85rem;
  color: #a0a0a0;
  margin-bottom: 15px;
  line-height: 1.7;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #ff9400;
}

.meta-item img {
  width: 16px;
  height: 16px;
}

.blog-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #333;
  padding-top: 15px;
}

.blog-date {
  font-weight: bold;
  color: #ffffff;
  font-size: 0.9rem;
}

.readmore-btn {
  background: linear-gradient(135deg, #213b8f, #213b8f);
  color: #ffffff;
  border: none;
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease;
  font-family: "Vazirmat", sans-serif;
}

.readmore-btn:hover {
  transform: scale(1.01);
  box-shadow: 0 0 20px rgba(37, 100, 235, 0.01);
  transition: transform 0.35s ease;
}

@media (max-width: 600px) {
  .blog-image-block {
    margin-inline: 12px;
    margin-bottom: -25px;
  }

  .blog-img {
    height: 150px;
  }

  .blog-content {
    padding: 55px 16px 16px;
  }
}
