/* ========== Main layout ========== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========== Ad banner ========== */
.ad-banner {
  background: var(--green-700);
  color: #fff;
  border-radius: 8px;
  padding: 26px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}
.ad-banner:hover { background: var(--green-600); }
.ad-banner .title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.ad-banner .sub { font-size: 13.5px; opacity: 0.92; max-width: 380px; }
.ad-banner.tall { padding: 44px 28px; }
.ad-banner.side {
  align-items: flex-start;
  text-align: left;
  border-radius: 0;
  height: 100%;
  padding: 28px 24px;
}
.ad-banner.side .title { font-size: 18px; }
.ad-banner.side .sub { max-width: 220px; opacity: 0.88; }

.ad-banner.with-cta {
  align-items: flex-start;
  text-align: left;
  padding: 22px 22px;
  gap: 10px;
}
.ad-banner.with-cta .title { font-size: 22px; font-weight: 800; }
.ad-banner.with-cta .sub { max-width: 100%; font-size: 13.5px; line-height: 1.45; }
.ad-banner.with-cta .cta {
  margin-top: 8px;
  background: rgba(255,255,255,0.0);
  border: 1px solid rgba(255,255,255,0.95);
  color: #fff;
  padding: 9px 0;
  width: 100%;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: center;
}
.ad-banner.with-cta .cta:hover { background: #fff; color: var(--green-700); }

/* Banner real (com imagem): SEM fundo verde — o verde é só do placeholder
   "Anuncie Aqui". A imagem preenche o container (sem padding/flex herdados). */
.ad-banner.ad-banner--filled { background: none; padding: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; }
.ad-banner.ad-banner--filled:hover { background: none; }
/* Banner cabe no placeholder: encolhe se maior (W ou H), mantém original se menor,
   centralizado; nunca estica/recorta. Regra global de ajuste de banner. */
.ad-banner--filled img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: scale-down; border-radius: 8px; }
.ad-banner--filled.side { height: 100%; }
