/* =========================================================
   VARIÁVEIS GLOBAIS - FOLHA AGORA
========================================================= */
:root {
  --cor-fundo-header: #ffffff;
  --cor-borda-header: #e0e0e0;

  --cor-faixa: #2200ff;
  --cor-busca: #1a00cc;

  --cor-rodape: #2200ff;
  --cor-rodape-texto: #ffffff;

  --cor-subrodape: #1a00cc;
  --cor-subrodape-texto: #eaf2ff;

  --cor-folha: #ffffff;
  --cor-destaque: #2200ff;

  --layout-max: 1200px;
}

/* =========================================================
   TEMA PERSONALIZADO
========================================================= */
body.tema-personalizado {
  --cor-faixa: var(--tema-base);
  --cor-rodape: var(--tema-base);
  --cor-subrodape: var(--tema-20var);
  --cor-busca: var(--tema-20var);
}

/* =========================================================
   BASE
========================================================= */
* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #111;
  background: #fff;
}

/* =========================================================
   HEADER FOLHA AGORA
========================================================= */
.fa-header {
  width: 100%;
  background: var(--cor-faixa);
  color: #fff;
}

.fa-topbar {
  background: #fff;
  color: #2200ff;
  border-bottom: 1px solid #e8e8e8;
}

.fa-topbar-wrap {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 8px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.fa-topbar a {
  text-decoration: none;
  color: #2200ff;
  font-size: 14px;
  font-weight: 600;
}

.fa-topbar-brand {
  font-weight: 900 !important;
  letter-spacing: .02em;
}

.fa-topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.fa-login {
  text-transform: lowercase;
}

.fa-mainbar {
  background: var(--cor-faixa);
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.fa-mainbar-wrap {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 22px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.fa-main-left,
.fa-main-right {
  display: flex;
  align-items: center;
}

.fa-main-left {
  justify-content: flex-start;
  gap: 18px;
}

.fa-main-right {
  justify-content: flex-end;
}

.fa-menu-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fa-menu-btn svg {
  width: 30px;
  height: 22px;
  display: block;
}

.fa-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fa-search button {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: #fff;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fa-search button svg {
  width: 27px;
  height: 27px;
  display: block;
}

.fa-search input {
  width: 170px;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.fa-search input::placeholder {
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  font-weight: 700;
}

.fa-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.fa-logo img {
  display: block;
  max-width: 340px;
  width: 100%;
  height: auto;
  max-height: 78px;
  object-fit: contain;
}

.fa-cats {
  background: var(--cor-faixa);
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.fa-cats-wrap {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.fa-cats-wrap::-webkit-scrollbar {
  display: none;
}

.fa-cats a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
  text-transform: uppercase;
}

.fa-cats a:hover {
  color: rgba(255,255,255,.82);
}

/* compatibilidade com scripts antigos */
.hambox { cursor: pointer; }

/* =========================================================
   CONTEÚDO
========================================================= */
.content {
  max-width: 680px;
  margin: 28px auto 56px;
  padding: 0 16px;
}

.breadcrumb {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.article-title {
  font-size: 34px;
  line-height: 1.12;
  margin: 0 0 8px;
  font-weight: 800;
}

.subtitle {
  font-size: 18px;
  color: #444;
  margin: 0 0 12px;
}

.meta {
  font-size: 13px;
  color: #666;
  margin: 0 0 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================================
   SHARE
========================================================= */
.share {
  display: flex;
  gap: 14px;
  margin: 18px 0 22px;
  align-items: center;
}

.share a {
  flex: 1;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f2f2f2;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, color .2s ease;
  box-shadow: none;
}

.share a svg {
  width: 26px;
  height: 26px;
}

#share-whatsapp { color: #25D366; }
#share-facebook { color: #1877F2; }
#copy-link { color: #606770; }

#share-whatsapp:hover { background: #25D366; color: #fff; }
#share-facebook:hover { background: #1877F2; color: #fff; }
#copy-link:hover { background: #4b5563; color: #fff; }

.share a:hover { transform: translateY(-1px); }
.share a:active { transform: translateY(0); }

/* =========================================================
   FIGURA / TEXTO
========================================================= */
.figure {
  margin: 18px 0;
  width: 100%;
}

.figure .media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f4f4f4;
  border-radius: 8px;
  overflow: hidden;
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.caption {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  text-align: center;
}

.article-body p {
  font-size: 18px;
  line-height: 1.68;
  margin: 0 0 16px;
  color: #222;
}

.article-body h3 {
  font-size: 22px;
  margin: 22px 0 8px;
}

.article-body blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--cor-faixa);
  background: #f0f4ff;
}

.hr {
  height: 1px;
  background: #ececec;
  margin: 18px 0;
}

/* =========================================================
   RELACIONADOS
========================================================= */
.related-articles {
  margin: 40px 0;
  padding: 30px 0;
  border-top: 2px solid #e0e0e0;
}

.related-articles h3 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin: 0 0 24px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 16px;
}

.related-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all .3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  border-color: #2200ff;
}

.related-card-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #2200ff 0%, #1a00cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 42px;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card-content { padding: 16px; }

.related-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-date {
  font-size: 12px;
  color: #888;
  font-weight: 600;
}

/* =========================================================
   ALERTA DE CÓPIA
========================================================= */
.copy-alert {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #06aa48;
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  transition: all .3s ease;
  box-shadow: 0 4px 16px rgba(6,170,72,.4);
}

.copy-alert.show {
  display: block;
  opacity: 1;
  animation: slideUp .3s ease;
}

@keyframes slideUp {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* =========================================================
   MENU LATERAL
========================================================= */
.side-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.side-menu--open {
  pointer-events: auto;
  opacity: 1;
}

.side-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.side-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 270px;
  max-width: 84vw;
  height: 100dvh;
  max-height: 100dvh;
  background: #fff;
  box-shadow: 2px 0 18px rgba(0,0,0,.25);
  transform: translateX(-100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.side-menu--open .side-menu-panel {
  transform: translateX(0);
}

.side-menu-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  padding: 10px 14px;
  cursor: pointer;
  align-self: flex-end;
  flex: 0 0 auto;
}

.side-menu-header {
  padding: 0 16px 12px;
  border-bottom: 1px solid #f0f0f0;
  flex: 0 0 auto;
}

.side-menu-logo {
  display: block;
  margin: 0 0 10px;
  text-decoration: none;
}

.side-menu-logo img {
  max-width: 170px;
  height: auto;
  display: block;
}

.side-menu-title {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #999;
}

.side-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0 14px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.side-menu-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.side-menu-nav a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  text-transform: lowercase;
  line-height: 1.2;
}

.side-menu-nav a:hover {
  background: #f5f5f5;
}

.side-menu-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 10px 16px;
  flex: 0 0 auto;
}

.side-menu-section-title {
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999;
  flex: 0 0 auto;
}

.side-menu-submenu {
  padding-left: 26px !important;
  font-size: 14px !important;
  color: #555 !important;
}

.side-menu-submenu:hover {
  background: #f5f5f5;
  color: #111 !important;
}

/* =========================================================
   FOOTER
========================================================= */
footer { margin-top: 24px; }

.footer-hero {
  background: var(--cor-rodape);
  color: var(--cor-rodape-texto);
}

.footer-wrap {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 28px 16px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.footer-brand h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.footer-brand p {
  margin: 0;
  opacity: .95;
  line-height: 1.5;
}

.fcol h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.fcol ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fcol li { margin: 8px 0; }

.fcol a {
  color: #eaf2ff;
  text-decoration: none;
  font-size: 14px;
}

.fcol a:hover { text-decoration: underline; }

.subfooter {
  background: var(--cor-subrodape);
  color: var(--cor-subrodape-texto);
}

.sub-wrap {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
  width: 100%;
}

.sub-links a {
  color: var(--cor-subrodape-texto);
  text-decoration: none;
  margin-left: 12px;
}

.sub-links a:hover { text-decoration: underline; }

.social-icons{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.social-icons a{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:#fff;
  text-decoration:none;
  transition:transform .2s ease, background .2s ease, opacity .2s ease;
}

.social-icons a:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.18);
  opacity:1;
}

.social-icons svg{
  display:block;
}

/* =========================================================
   LOADING/ERROR
========================================================= */
.skeleton-loader {
  background: linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  height: 60px;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.error-load {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* =========================================================
   RESPONSIVO
========================================================= */
@media (max-width: 900px) {
  .fa-topbar-center {
    display: none;
  }

  .fa-topbar-wrap {
    grid-template-columns: 1fr auto;
  }

  .fa-mainbar-wrap {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .fa-logo img {
    max-width: 260px;
    max-height: 64px;
  }

  .fa-search input {
    display: none;
  }

  .fa-cats-wrap {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .related-grid { gap: 16px; }
  .related-card-image { height: 140px; font-size: 32px; }
  .related-card-content { padding: 12px; }
  .related-card-title { font-size: 14px; }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-image { height: 180px; }
  .card-title { font-size: 18px; }
}

@media (max-width: 560px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .fa-topbar {
    display: none;
  }

  .fa-mainbar-wrap {
    padding: 14px 12px;
    grid-template-columns: auto 1fr auto;
  }

  .fa-menu-btn {
    width: 36px;
    height: 36px;
  }

  .fa-menu-btn svg {
    width: 26px;
  }

  .fa-search button {
    width: 34px;
    height: 34px;
  }

  .fa-search button svg {
    width: 24px;
    height: 24px;
  }

  .fa-logo img {
    max-width: 190px;
    max-height: 52px;
  }

  .fa-cats-wrap {
    padding: 12px;
    gap: 18px;
  }

  .fa-cats a {
    font-size: 13px;
  }

  .footer-wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .footer-brand { display: none; }

  .side-menu-panel {
    width: 250px;
    max-width: 86vw;
  }

  .side-menu-close {
    font-size: 22px;
    padding: 10px 12px;
  }

  .side-menu-header {
    padding: 0 14px 10px;
  }

  .side-menu-logo img {
    max-width: 150px;
  }

  .side-menu-nav a {
    font-size: 15px;
    padding: 10px 14px;
  }

  .side-menu-submenu {
    font-size: 13px !important;
    padding-left: 22px !important;
  }

  .side-menu-divider {
    margin: 10px 14px;
  }

  .side-menu-section-title {
    padding: 6px 14px;
  }

  .social-icons{
    width:100%;
    justify-content:center;
    margin-top:10px;
  }
}

@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
  .related-card-image { height: 160px; font-size: 36px; }

  .fa-logo img {
    max-width: 168px;
  }

  .fa-cats a {
    font-size: 12px;
  }
}

/* =========================================================
   AJUSTES EXTRAS
========================================================= */
mark.search-hit {
  background: #07ff03;
  padding: 0 1px;
  border-radius: 2px;
}

/* =========================================================
   HOME / GRID DE ARTIGOS
========================================================= */
.home-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--cor-faixa);
  margin-bottom: 30px;
  text-align: center;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
}

.article-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,.1);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 52px;
}

.card-excerpt {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #888;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.card-date { font-weight: 600; }
.card-author { font-weight: 400; }

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.btn-load-more {
  background: var(--cor-faixa);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.btn-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  opacity: .9;
}

.btn-load-more:active { transform: translateY(0); }

.fa-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.fa-socials a {
  color: #2200ff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.fa-socials a:hover {
  color: #1a00cc;
}

.fa-ebc-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.fa-ebc-logo img {
  display: block;
  height: 28px;
  width: auto;
  object-fit: contain;
}

.fa-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.fa-socials a {
  color: #2200ff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.fa-socials a:hover {
  color: #1a00cc;
}

/* =========================================================
   CORES POR EDITORIA
========================================================= */
.tema-home {
  --tema-base: #2200ff;
  --tema-20var: #1a00cc;
}

.tema-ultimas-noticias {
  --tema-base: #FF0000;
  --tema-20var: #cc0000;
}

.tema-politica {
  --tema-base: #191970;
  --tema-20var: #14145a;
}

.tema-economia {
  --tema-base: #0000FF;
  --tema-20var: #0000cc;
}

.tema-mundo {
  --tema-base: #800000;
  --tema-20var: #660000;
}

.tema-esportes {
  --tema-base: #06aa48;
  --tema-20var: #058a3a;
}

.tema-entretenimento {
  --tema-base: #FF8C00;
  --tema-20var: #cc7000;
}

.tema-opiniao {
  --tema-base: #2F4F4F;
  --tema-20var: #253f3f;
}

.tema-geral {
  --tema-base: #D20A2E;
  --tema-20var: #a30824;
}