/* Latest News Section */
.latest-news-section {
  max-width: 1200px;
  margin: 0 auto; /* Center the section */
  padding: 40px 20px;
}
.latest-news-section h2 {
  font-size: 36px;
    font-weight: bold;
    color: #ff8800;
    margin-bottom: 20px; /* Reduced for consistency */
    position: relative;
    text-align: center;
}
.latest-news-section h2::after {
  content: "NEWS";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 100px;
  font-weight: bold;
  color: rgb(247, 237, 227);
  z-index: -1;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default: 3 cards per row */
  gap: 20px;
}

.news-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  margin-top: 1rem;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 15px;
}

.news-title {
  font-size: 16px;
  font-weight: bold;
  margin: 10px 0;
  color: #333;
}

.news-description {
  font-size: 14px;
  color: #666;
}

/* Media Queries for Responsive Design */

/* For screens max-width: 1050px */
@media screen and (max-width: 1050px) {
  .news-container {
      grid-template-columns: repeat(2, 1fr); /* Display 2 cards per row */
  }
}

/* For screens max-width: 635px */
@media screen and (max-width: 635px) {
  .news-container {
      grid-template-columns: repeat(1, 1fr); /* Display 1 card per row */
  }

  .latest-news-section h2 {
      font-size: 24px; /* Slightly smaller font size for the heading */
  }
}
