/* PEFA Rapoarte Anuale – stiluri plugin */

.pefa-ra-hero.team-hero {
  /* folosește stilurile temei dacă există; fallback minimal */
}

.rapoarte-page {
  background: linear-gradient(180deg, #f7f9fc 0%, #fff 30%);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.rapoarte-page .container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

.rapoarte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.raport-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15, 39, 68, 0.08);
  box-shadow: 0 12px 36px rgba(15, 39, 68, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.raport-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(15, 39, 68, 0.1);
}

.raport-card-year {
  background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: 0.02em;
  text-align: center;
  padding: 1.25rem 1rem;
  line-height: 1;
}

.raport-card-body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.raport-card-media {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef2f7;
}

.raport-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.raport-card-title {
  font-size: 1.15rem;
  margin: 0;
  color: #1a365d;
  line-height: 1.3;
}

.raport-card-excerpt {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.raport-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.pefa-ra-btn,
.raport-card-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: #1a365d;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pefa-ra-btn:hover,
.raport-card-actions .btn-primary:hover {
  background: #2b6cb0;
  color: #fff !important;
  transform: translateY(-1px);
}

.pefa-ra-btn-alt,
.raport-card-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: #f0f4f8;
  color: #1a365d !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid rgba(15, 39, 68, 0.12);
}

.pefa-ra-btn-alt:hover {
  background: #e2e8f0;
}

.rapoarte-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed rgba(15, 39, 68, 0.15);
  color: #4a5568;
}

/* Fallback hero dacă tema nu are .team-hero */
.pefa-ra-hero:not(.team-hero),
header.pefa-ra-hero {
  background: linear-gradient(135deg, #0f2744 0%, #1a365d 50%, #2b6cb0 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.pefa-ra-hero .team-hero-badge,
.pefa-ra-hero .team-hero-title,
.pefa-ra-hero .team-hero-intro {
  color: #fff;
}

.pefa-ra-hero .team-hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.pefa-ra-hero .team-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.75rem;
}

.pefa-ra-hero .team-hero-intro {
  max-width: 40rem;
  opacity: 0.9;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 520px) {
  .rapoarte-grid {
    grid-template-columns: 1fr;
  }
}
