@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
  --bg: #f2f3f5;
  --card: linear-gradient(135deg, #0ea5a4 0%, #6366f1 100%);
  --glass: rgba(7, 48, 14, 0.06);
  --accent: #f7b724;
  --text: #121213;
  --muted: #121213;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden; /* Evita rolagem horizontal */
  font-family: 'Poppins', sans-serif;
}

.news-section {
  margin: 0;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(247, 247, 247, 0.08), transparent),
              radial-gradient(900px 400px at 90% 90%, rgba(244, 247, 247, 0.05), transparent),
              var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 60px 24px;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.wrapper {
  max-width: 1100px;
  width: 100%;
}

.news-card {
  position: relative; /* Necessário para o ::before não vazar */
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}

.image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.25));
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 900ms cubic-bezier(.2,.9,.3,1);
}

.image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 70%);
  mix-blend-mode: multiply;
}

.meta-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.04);
}

.content {
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
}

h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

p.lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.details {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.04);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.read-more {
  margin-top: 10px;
  align-self: flex-start;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 260ms ease, box-shadow 260ms ease;
  color: var(--text);
  text-decoration: none;
}

.read-more:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(22px) scale(.995);
  filter: blur(4px);
  transition: all 700ms cubic-bezier(.2,.9,.3,1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.content .animate-on-scroll {
  transition-delay: 120ms;
}
.content .animate-on-scroll:nth-child(2) {
  transition-delay: 220ms;
}
.content .animate-on-scroll:nth-child(3) {
  transition-delay: 320ms;
}
.content .animate-on-scroll:nth-child(4) {
  transition-delay: 420ms;
}

.news-card:hover .image img {
  transform: scale(1.06);
}

@media (max-width: 880px) {
  .news-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .image {
    min-height: 200px;
  }
  h1 {
    font-size: 20px;
  }
}

.news-card::before {
  content: '';
  position: absolute;
  right: -140px;
  bottom: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(99,102,241,0.06), rgba(14,165,164,0.04));
  pointer-events: none;
  transform: translateZ(0);
}
