/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fafaf8;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===========================
   LAYOUT
=========================== */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.divider {
  border: none;
  border-top: 1px solid #e8e6df;
  margin: 2rem 0;
}

.section {
  margin-bottom: 0.5rem;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8e6df;
  padding: 0.85rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #185FA5;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 14px;
  color: #666;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #185FA5;
}

.nav-cta {
  background: #185FA5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: #0c447c;
}

/* ===========================
   HERO
=========================== */
.hero {
  background: #f0f4f9;
  border: 1px solid #d6e2f0;
  border-radius: 16px;
  padding: 3rem 2.5rem 2.5rem;
  margin: 2rem 0 1.5rem;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #dbeafe;
  color: #185FA5;
  border-radius: 8px;
  padding: 4px 12px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.12;
  color: #111;
  margin-bottom: 1rem;
}

.hero h1 .accent {
  color: #185FA5;
}

.hero-sub {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  background: #185FA5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: #0c447c;
}

.btn-secondary {
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.15s, background 0.15s;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: #185FA5;
  background: #f0f4f9;
}

/* ===========================
   STATS
=========================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 1.5rem 0;
}

.stat-card {
  background: #fff;
  border: 1px solid #e8e6df;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: #185FA5;
  display: block;
}

.stat-label {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
  display: block;
}

/* ===========================
   SECTION HEADERS
=========================== */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
}

.section-sub {
  font-size: 14px;
  color: #666;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* ===========================
   TOPICS GRID
=========================== */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 0.5rem;
}

.topic-card {
  background: #fff;
  border: 1px solid #e8e6df;
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  display: block;
}

.topic-card:hover {
  border-color: #185FA5;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(24, 95, 165, 0.1);
}

.topic-icon {
  font-size: 22px;
  margin-bottom: 10px;
  display: block;
  color: #185FA5;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.topic-name {
  font-size: 15px;
  font-weight: 500;
  color: #111;
  margin-bottom: 4px;
}

.topic-count {
  font-size: 12px;
  color: #999;
}

/* ===========================
   POSTS LIST
=========================== */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-card {
  background: #fff;
  border: 1px solid #e8e6df;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.post-card:hover {
  border-color: #185FA5;
  box-shadow: 0 2px 12px rgba(24, 95, 165, 0.08);
}

.post-badge {
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.post-badge.enem {
  background: #dbeafe;
  color: #185FA5;
}

.post-badge.exercicio {
  background: #dcfce7;
  color: #3B6D11;
}

.post-badge.teoria {
  background: #fef9c3;
  color: #854F0B;
}

.post-title {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  margin-bottom: 4px;
  line-height: 1.5;
}

.post-meta {
  font-size: 12px;
  color: #999;
}

/* ===========================
   NEWSLETTER
=========================== */
.newsletter-box {
  background: #f0f4f9;
  border: 1px solid #d6e2f0;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.newsletter-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
}

.newsletter-box p {
  font-size: 14px;
  color: #666;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.input-row {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.input-row input {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.15s;
}

.input-row input:focus {
  border-color: #185FA5;
}

.input-row button {
  background: #185FA5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  transition: background 0.15s;
}

.input-row button:hover {
  background: #0c447c;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  border-top: 1px solid #e8e6df;
  padding: 1.25rem 0;
  margin-top: 1rem;
  background: #fafaf8;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 12px;
  color: #999;
}

/* ===========================
   RESPONSIVO
=========================== */
@media (max-width: 600px) {
  .hero {
    padding: 2rem 1.25rem;
  }

  .hero h1 {
    font-size: 30px;
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat-num {
    font-size: 22px;
  }

  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .input-row {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
