/* ----- Thematic Coverage page ----- */

.section-thematic {
  padding: 2rem 0;
}

.thematic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.thematic-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.thematic-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(76, 175, 80, 0.25);
}

/* Image/icon block above each card */
.thematic-card__img {
  height: 160px;
  overflow: hidden;
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 0 1rem;
}

.thematic-card__img--icon {
  position: relative;
  background: linear-gradient(135deg, #388E3C 0%, #4CAF50 100%);
}

.thematic-card__img--icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.thematic-card__img--icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

.thematic-card__img--icon .thematic-card__img-label,
.thematic-card__img--icon .thematic-card__slogan {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.thematic-card__img svg {
  width: 100%;
  height: 100%;
  display: block;
  vertical-align: top;
}

.thematic-card__img-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.thematic-card__slogan {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.95;
}

.thematic-card h3 {
  margin: 0 0 0.5rem;
  padding: 0 1.25rem;
  padding-top: 1rem;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}

.thematic-card p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .section-thematic {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  .thematic-grid {
    grid-template-columns: 1fr;
  }
}
