@charset "UTF-8";
/* Reset */
@font-face {
  font-family: iranYekan;
  src: url(./assets/font/iranYekan/IRANYekanWeb-Medium.eot);
  src: url(./assets/font/iranYekan/IRANYekanWeb-Medium.ttf);
  src: url(./assets/font/iranYekan/IRANYekanWeb-Medium.woff2);
  src: url(./assets/font/iranYekan/iranyekanwebmedium.2d4f96e5.2d4f96e5.woff);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "iranYekan";
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px;
  background-color: #7a1a1a;
  color: rgb(255, 245, 245);
  width: 65%;
  border-radius: 50px;
  margin: 0px auto;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2em;
}

/* جهت نوشتار فارسی */
body {
  direction: rtl;
}

/* بخش کلی خبرها */
.news-section {
  padding: 60px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.section-title {
  font-size: 2em;
  color: #7a1a1a;
  margin-bottom: 30px;
}

/* چیدمان کارت‌ها */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-items: center;
}

/* کارت خبر */
.news-card {
  background: rgb(255, 245, 245);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* عکس بالای کارت */
.news-card img {
  width: 100%;
  height: 180px;
  -o-object-fit: cover;
     object-fit: cover;
}

/* متن و دکمه پایین کارت */
.news-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  text-align: right;
  position: relative;
  text-decoration: none;
}

.news-content p {
  font-size: 0.95em;
  color: #333;
  line-height: 1.6;
  margin-bottom: 40px;
}

.news-content > a {
  text-decoration: none;
}

/* دکمه بیشتر */
.more-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: #7a1a1a;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 15px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s;
}

.more-btn:hover {
  background-color: #0077ff;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.5em;
  }
  .news-card img {
    height: 150px;
  }
  .news-content p {
    margin-bottom: 30px;
  }
  .more-btn {
    font-size: 0.8em;
    padding: 5px 10px;
  }
}
/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #7a1a1a;
  color: white;
  margin-top: 40px;
}

div.card > div.news > div.news-item > a {
  color: black;
  text-decoration: none;
}

/* Mobile */
.menu-toggle {
  display: none;
  font-size: 2em;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    display: none;
    width: 100%;
  }
  nav ul.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
    color: white;
  }
  .news-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-item img {
    width: 100%;
    height: auto;
  }
  .hero h1 {
    font-size: 2em;
  }
  .hero p {
    font-size: 1em;
  }
}/*# sourceMappingURL=news.css.map */