header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #3a3a3a;
  text-align: center;
}

.news-container {
  max-height: 500px;
  overflow-y: auto;
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-item {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.news-item img {
  max-width: 100px;
  max-height: 80px;
  margin-right: 15px;
  object-fit: cover;
  border-radius: 4px;
}

.news-content {
  flex: 1;
}

.news-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
}

.news-date {
  font-size: 0.85rem;
  color: #888;
  margin: 4px 0;
}

.news-summary {
  font-size: 0.95rem;
  line-height: 1.4;
}

.news-link {
  color: #ba0c2f;
  text-decoration: none;
  font-weight: bold;
}

.news-link:hover {
  text-decoration: underline;
}

#banner {
  display: flex;
  align-items: center;
  justify-content: center;
}
#banner p {
  margin: auto;
  margin-top: 1.5em;
  font-size: 1.3rem;
  line-height: 1.6;
  text-align: justify;
}
.tweet {
  text-align: center;
  line-height: 1.5;
}

.sponsors {
  background-color: #f9f9f9;
  padding: 1rem 1rem;
  text-align: center;
}

.sponsors-title {
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
}

/* link color: #ba0c2f;
hover color: #8a0923 
title : #2c3e50*/

.sponsor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.sponsor-item img {
  max-height: 160px;
  max-width: 160px;
  object-fit: contain;
  /* filter: grayscale(100%); */
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

.sponsor-item img:hover {
  filter: none;
  transform: scale(1.05);
}

.latest-news {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol";
  /* Removed background color as requested */
  padding: 3rem 1rem;
  margin: 2rem auto;
  max-width: 1200px; /* Increased max-width for a grid layout */
}

.latest-news h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #3a3a3a;
  text-align: center;
  margin: 0 0 2.5rem 0;
}

/* Grid container for the news cards */
.news-card-grid {
  display: grid;
  /* Creates a responsive grid that fits as many 300px cards as possible */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Individual news card styling */
.news-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  margin-bottom: 0 !important;
  min-height: 350px; /* Ensures uniform height for cards */
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-card-image-link {
  display: block;
  height: 200px;
}

.news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the area without distortion */
}

.news-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Allows content to fill the card height */
}

.news-card-date {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.news-card-title a {
  text-decoration: none;
  color: #3a3a3a;
  transition: color 0.2s ease;
}

.news-card-title a:hover {
  color: #ba0c2f;
}

.news-card-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #3a3a3a;
  margin: 0;
  flex-grow: 1; /* Pushes the 'Read More' link (if any) to the bottom */
  text-align: left;
}

.news-homepage-archive-link {
  text-align: center;
  margin-top: 3rem;
}

.news-homepage-archive-link a {
  font-weight: 600;
  color: #ba0c2f;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid #8a0923;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.news-homepage-archive-link a:hover {
  background-color: #ba0c2f;
  color: #ffffff;
}
