/* ==========================================================================
   1. VARIÁVEIS E REGRAS GERAIS
   ========================================================================== */
:root {
  --bg-dark: #072e1c;
  --bg-card-dark: #123d27;
  --green-primary: #10b981;
  --green-bright: #00e676;
  --green-accent: #34d399;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --border-dark: #1e4d34;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Fundo cinza-esverdeado das laterais da tela */
body {
  background-color: #dbe3dd; 
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* CONTAINER CENTRAL COMPACTO (SITE MAIS FINO COM SOBRAS LATERAIS) */
.app-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
  min-height: 100vh;
  overflow: hidden;
}

/* ==========================================================================
   2. CABEÇALHO / NAVBAR (USADO EM AMBAS AS PÁGINAS)
   ========================================================================== */
.header {
  display: table;
  width: 100%;
  padding: 1.25rem 6%;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.header-logo {
  display: table-cell;
  vertical-align: middle;
  text-align: left;
}

.brand-title {
  font-weight: 900;
  font-size: 1.35rem;
  color: #0d3822;
  letter-spacing: -0.5px;
  line-height: 1;
}

.brand-title span {
  color: var(--green-primary);
}

.brand-subtitle {
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 3px;
  display: block;
}

.header-nav {
  display: table-cell;
  vertical-align: middle;
  text-align: right;
}

.header-nav a {
  margin-left: 1.2rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--green-primary);
}

.btn-header {
  background: #0d3822;
  color: var(--white) !important;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 700 !important;
  display: inline-block;
  transition: background 0.2s ease;
}

.btn-header:hover {
  background: #145233 !important;
}

/* ==========================================================================
   3. SEÇÃO HERO / NEWSLETTER (INDEX)
   ========================================================================== */
.hero {
  text-align: left;
  padding: 3.5rem 7% 3.5rem;
  background: var(--white);
}

.badge-light-bg {
  display: inline-block;
  background: #e6f7f0;
  color: #0d3822;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  letter-spacing: 0.8px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: #0d3822;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1.25rem 0;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--green-primary);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.newsletter-form {
  margin: 0 0 1rem 0;
  display: table;
  width: 100%;
}

.form-group {
  display: table-cell;
  width: 68%;
  vertical-align: middle;
  padding-right: 10px;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-submit-cell {
  display: table-cell;
  width: 32%;
  vertical-align: middle;
}

.btn-submit {
  width: 100%;
  background: #00e676;
  color: #072e1c;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background: #00c853;
}

.form-feedback {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  min-height: 1.2rem;
}

.social-proof {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.social-proof strong {
  color: var(--text-main);
}

/* ==========================================================================
   4. SEÇÃO PLATAFORMA DE GESTÃO (INDEX)
   ========================================================================== */
.features-section {
  background-color: var(--bg-dark);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 6%;
}

.badge-dark-bg {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: var(--green-accent);
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  letter-spacing: 0.8px;
  margin-bottom: 1.25rem;
}

.features-section h2 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 auto 0.85rem;
  letter-spacing: -0.5px;
}

.features-subtitle {
  color: #9ca3af;
  font-size: 0.925rem;
  margin: 0 auto 2.5rem;
}

.cards-wrapper {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-spacing: 1rem 0;
  margin-left: -1rem;
  margin-right: -1rem;
}

.card-col {
  display: table-cell;
  vertical-align: top;
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  padding: 1.5rem 1.2rem;
  border-radius: 14px;
  text-align: left;
}

.card-icon {
  width: 40px;
  height: 40px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-col h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.3;
  color: var(--white);
}

.card-col p {
  color: #9ca3af;
  font-size: 0.825rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  min-height: 5em;
}

.pill-tag {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: var(--green-bright);
  font-size: 0.7rem;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-weight: 700;
}

/* ==========================================================================
   5. SEÇÃO DEPOIMENTOS (INDEX)
   ========================================================================== */
.testimonials-section {
  text-align: center;
  padding: 3.5rem 6%;
  background: var(--white);
}

.testimonials-section h2 {
  font-size: 1.85rem;
  color: #0d3822;
  font-weight: 800;
  margin: 0.85rem 0 2.5rem;
  letter-spacing: -0.5px;
}

.testimonials-wrapper {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-spacing: 1rem 0;
  margin-left: -1rem;
  margin-right: -1rem;
}

.testimonial-col {
  display: table-cell;
  vertical-align: top;
  border: 1px solid var(--border-color);
  padding: 1.5rem 1.2rem;
  border-radius: 14px;
  text-align: left;
  background: var(--white);
}

.testimonial-quote {
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  min-height: 5em;
}

.author-box {
  display: table;
  width: 100%;
}

.author-avatar-cell {
  display: table-cell;
  width: 38px;
  vertical-align: middle;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info-cell {
  display: table-cell;
  vertical-align: middle;
  padding-left: 8px;
}

.author-name {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: #0d3822;
}

.author-role {
  display: block;
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* ==========================================================================
   6. RODAPÉ (FOOTER - AMBAS AS PÁGINAS)
   ========================================================================== */
.footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: 3.5rem 6% 2rem;
  border-top: 1px solid var(--border-dark);
}

.footer-top {
  display: table;
  width: 100%;
  margin-bottom: 2.5rem;
}

.footer-brand-col {
  display: table-cell;
  width: 50%;
  vertical-align: top;
  padding-right: 1.5rem;
}

.footer-brand-title {
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand-title span {
  color: var(--green-bright);
}

.footer-brand-desc {
  color: #9ca3af;
  font-size: 0.825rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.social-pills a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.3rem;
  transition: background 0.2s ease;
}

.social-pills a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.footer-nav-col {
  display: table-cell;
  width: 50%;
  vertical-align: top;
}

.footer-links-wrapper {
  display: table;
  width: 100%;
}

.footer-link-group {
  display: table-cell;
  width: 50%;
  vertical-align: top;
}

.footer-link-group h4 {
  color: var(--green-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.footer-link-group a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.825rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer-link-group a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 1.5rem;
  display: table;
  width: 100%;
}

.footer-copy {
  display: table-cell;
  font-size: 0.775rem;
  color: #6b7280;
  text-align: left;
}

.footer-tag {
  display: table-cell;
  font-size: 0.775rem;
  color: #6b7280;
  text-align: right;
}

/* ==========================================================================
   7. PÁGINA DE ARQUIVOS DE EDICÕES (ESTILO CLEAN)
   ========================================================================== */
.archive-section {
  padding: 3rem 7% 4rem;
  background: var(--white);
  min-height: 60vh;
}

.archive-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.archive-header h1 {
  font-size: 2.2rem;
  color: #0d3822;
  font-weight: 800;
  line-height: 1.2;
  margin: 0.5rem 0;
  letter-spacing: -0.5px;
}

.archive-subtitle {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin: 0;
}

/* LISTA NUMERADA DO ARQUIVO */
.news-list {
  padding-left: 1.25rem;
  margin: 0;
}

.news-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.news-item::marker {
  font-weight: 700;
  color: #9ca3af;
  font-size: 0.875rem;
}

.news-content {
  display: block;
  padding-left: 0.35rem;
}

/* FORMATAÇÃO DOS TÍTULOS (REMOVE TOTALMENTE AZUL E SUBLINHADO) */
.news-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 0.35rem 0 !important;
}

.news-title a,
.news-title a:visited,
.news-title a:active {
  color: #1f2937 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.news-title a:hover {
  color: var(--green-primary) !important;
}

/* METADADOS DA PUBLICAÇÃO */
.news-meta {
  font-size: 0.775rem !important;
  color: var(--text-muted) !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.meta-dot {
  color: #d1d5db;
  font-size: 0.7rem;
}

/* ==========================================================================
   8. PAGINAÇÃO DA PÁGINA DE ARQUIVOS
   ========================================================================== */
.pagination-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 2.5rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid var(--border-color) !important;
}

.btn-pagination {
  background-color: #0d3822 !important;
  color: var(--white) !important;
  border: none !important;
  padding: 0.65rem 1.25rem !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  appearance: none;
  -webkit-appearance: none;
}

.btn-pagination:hover:not(:disabled) {
  background-color: #145233 !important;
  transform: translateY(-1px);
}

.btn-pagination:disabled {
  background-color: #e5e7eb !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.page-indicator {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
}

/* ==========================================================================
   9. RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    background-color: var(--white);
  }

  .app-container {
    box-shadow: none;
  }

  .header, .footer-top, .footer-bottom, .author-box, .newsletter-form {
    display: block;
    width: 100%;
  }

  .header-logo, .header-nav, .footer-brand-col, .footer-nav-col, .footer-copy, .footer-tag, .form-group, .form-submit-cell {
    display: block;
    width: 100%;
    text-align: center;
  }

  .hero {
    text-align: center;
  }

  .header-nav {
    margin-top: 1.25rem;
  }

  .header-nav a {
    display: block;
    margin: 0.75rem 0;
  }

  .form-group {
    padding-right: 0;
    margin-bottom: 0.75rem;
  }

  .cards-wrapper, .testimonials-wrapper {
    display: block;
    margin: 0;
  }

  .card-col, .testimonial-col {
    display: block;
    width: 100%;
    margin-bottom: 1.25rem;
  }

  .card-col p, .testimonial-quote {
    min-height: auto;
  }

  .footer-brand-col {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .footer-tag {
    text-align: center;
    margin-top: 0.5rem;
  }

  .archive-section {
    padding: 2.5rem 5% 3rem;
  }

  .archive-header h1 {
    font-size: 1.75rem;
  }
}