.news-section {
  padding: 60px 0;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--header-color);
  text-align: center;
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.news-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.light-theme .news-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

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

.news-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-image {
  transform: scale(1.05);
}

.news-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card-date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 10px;
  font-weight: 500;
}

.news-card-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  margin: 0 0 15px 0;
  color: var(--header-color);
}

.news-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.news-card-link {
  font-weight: 600;
  color: var(--spe-blue);
  align-self: flex-start;
}

.news-card-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
    .theme-toggle-btn {
        right: 50px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .news-card-image {
        height: 200px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}


