.news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination a { padding: 8px 14px; border-radius: 6px; background: #f0f0f0; text-decoration: none; color: #333; font-weight: bold; transition: background 0.3s; }
.pagination a:hover { background: var(--blue); color: white; }
.pagination a.active { background: var(--yellow); color: var(--dark); }

body {
  padding-top: 80px; /* ajustează în funcție de header (ex. 100-130px) */
}

/* Eliminăm stilurile implicite pentru linkurile din carduri */
.card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card a:hover {
  text-decoration: none;
  color: inherit;
}

.card a:visited {
  color: inherit;
}

/* Titlul și textul din card */
.card h4 {
  margin: 10px 0 5px;
  font-size: 18px;
  color: #2c3e50;
}

.card p {
  margin: 5px 0;
  color: #555;
}

/* Tema întunecată */
body.dark-mode .card {
  background: #1e1e1e;
  color: #e5e5e5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

body.dark-mode .card h4 {
  color: #fff;
}

body.dark-mode .card p {
  color: #ccc;
}

/* Titlul mare "Noutăți & Anunțuri" */
#noutati h2 a {
  text-decoration: none;
  color: #2c3e50;
}

#noutati h2 a:hover {
  color: #1a5dbb;
}

body.dark-mode #noutati h2 a {
  color: #fff !important;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.news-card:hover {
  transform: translateY(-5px);
}

/* text adaptat */
.news-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 1rem;
  line-height: 1.5;
}
