body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  margin: 0;
  padding: 0;
  background: #f2f4f7;
  direction: rtl;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* نوار بالای صفحه (قرمز) */
.main-header {
  background: #0077cc; /* آبی برای هدر بالا */
  padding: 20px 0;
  color: white;
  text-align: center;
}

.news-section {
  background-color: #70c7e7; /* قرمز برای نوار اطلاعیه */
  padding: 20px 0;
  color: white;
  text-align: center;
  margin-bottom: 20px; /* فاصله از بخش بعدی */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* سایه برای جدا کردن */
}

/* بخش اخبار */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.news-item {
  background: #ffffff; /* سفید برای هر کارت خبر */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-item h2 {
  margin-top: 0;
  color: #0077cc;
}

.news-item p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}

/* پس‌زمینه کلی سایت */
body {
  background-color: #f9f9f9; /* پس‌زمینه خاکی ملایم یا هر رنگ دیگری */
  color: #333;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  background: white;
  display: flex;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.nav-item {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  color: #888;
  text-decoration: none;
  font-weight: bold;
}

.nav-item.active {
  color: #0077cc;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
  margin-top: 50px;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.notice-slider {
  overflow: hidden;
  background: none;
  position: relative;
  padding: 4px 0;
}

.notice-inner {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-notice 10s linear infinite;
}

.notice-item {
  display: inline-block;
  margin: 0 50px;
  font-size: 18px;
  font-weight: bold;
  line-height: 28px;
  direction: rtl; /* خیلی مهم برای متن فارسی */
}

@keyframes scroll-notice {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* توقف انیمیشن وقتی موس روی اطلاعیه هاست */
.notice-slider:hover .notice-inner {
  animation-play-state: paused;
}
.full-news {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.full-news h2 {
  color: #0077cc;
  margin-bottom: 15px;
}
.full-news p {
  font-size: 16px;
  line-height: 1.8;
}

