:root {
  --bg: #050810;
  --surface: #0c1324;
  --surface-raised: #121d34;
  --text: #f8f9ff;
  --muted: #9aabc8;
  --blue: #169eff;
  --yellow: #ff8614;
  --line: rgba(154, 171, 200, 0.17);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

:root[data-theme="light"] {
  --bg: #f4f6fa;
  --surface: #fafbfe;
  --surface-raised: #e9eff8;
  --text: #091426;
  --muted: #475569;
  --blue: #0284c7;
  --yellow: #d97706;
  --line: rgba(9, 20, 38, 0.12);
  --shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  transition: background 0.25s, color 0.25s;
  overflow-x: hidden;
  max-width: 100vw;
}

body.search-open {
  overflow: hidden;
}

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

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 15px;
  border-radius: 8px;
  color: #0B1020;
  background: #fff;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 14px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(15px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand strong {
  color: var(--blue);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--blue);
  box-shadow: inset -7px -7px 14px rgba(255, 134, 20, 0.22), 0 0 18px rgba(22, 158, 255, 0.14);
  color: var(--text);
  font-size: 0.71rem;
  border-radius: 50%;
  letter-spacing: -0.08em;
}

.brand-icon,
.brand-logo {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  object-fit: cover;
  clip-path: circle(50%);
  filter: saturate(1.08) contrast(1.04);
}

.main-nav {
  display: flex !important;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.main-nav a,
.footer-grid a {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.2s;
  position: relative;
}

.main-nav a:hover,
.footer-grid a:hover,
.text-link:hover {
  color: var(--blue);
}

.main-nav a.active {
  color: var(--text);
  font-weight: 700;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

/* Dropdown de Categorias */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color 0.2s;
}

.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.is-active .nav-dropdown-trigger {
  color: var(--blue);
}

.nav-dropdown-trigger svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown.is-active .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  padding: 8px;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text) !important;
  font-size: 0.84rem !important;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-item:hover {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue) !important;
}

.nav-dropdown-item .item-icon {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
}

/* Botão Surpreenda-me no Menu */
.nav-surprise-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
  border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.nav-surprise-btn:hover {
  background: var(--blue) !important;
  color: #030a16 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(82, 178, 255, 0.3);
}

.header-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.icon-button,
.menu-toggle,
.menu-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: transparent;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s;
}

.icon-button:hover {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 9%, transparent);
}

.icon-button svg,
.search-field svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.theme-icon-moon {
  display: none;
}

[data-theme="light"] .theme-icon-sun {
  display: none;
}

[data-theme="light"] .theme-icon-moon {
  display: block;
}

/* =========================================================
   SELETOR DE TEMA EM FORMATO DE PÍLULA (CLARO ☀️ / ESCURO 🌙)
   ========================================================= */
.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(12, 19, 36, 0.75);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
  user-select: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .theme-switch {
  background: #e9eff8;
  border-color: rgba(9, 20, 38, 0.14);
  box-shadow: inset 0 1px 3px rgba(9, 20, 38, 0.08);
}

/* Indicador deslizante com animação fluida */
.theme-switch-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 9999px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  pointer-events: none;
  z-index: 1;
}

/* Modo escuro padrão: indicador ativo em ESCURO (lado direito) */
.theme-switch-indicator {
  transform: translateX(100%);
  background: rgba(22, 158, 255, 0.18);
  border: 1px solid rgba(22, 158, 255, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 12px rgba(22, 158, 255, 0.2);
}

/* Modo claro: indicador deslocado para CLARO (lado esquerdo) */
[data-theme="light"] .theme-switch-indicator {
  transform: translateX(0);
  background: #ffffff;
  border: 1px solid rgba(9, 20, 38, 0.1);
  box-shadow: 0 2px 8px rgba(9, 20, 38, 0.12);
}

.theme-switch-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.theme-switch-btn:hover {
  color: var(--text);
}

.theme-switch-btn .theme-switch-icon {
  font-size: 0.8rem;
  line-height: 1;
  display: inline-block;
}

/* Destaque visual da opção ativa */
/* Modo escuro: ESCURO ativo */
.theme-switch-btn[data-theme-choice="dark"] {
  color: #ffffff;
}
.theme-switch-btn[data-theme-choice="light"] {
  color: var(--muted);
}

/* Modo claro: CLARO ativo */
[data-theme="light"] .theme-switch-btn[data-theme-choice="light"] {
  color: #091426;
  font-weight: 800;
}
[data-theme="light"] .theme-switch-btn[data-theme-choice="dark"] {
  color: var(--muted);
}

@media (max-width: 480px) {
  .theme-switch {
    padding: 2px;
    gap: 1px;
  }
  .theme-switch-indicator {
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: calc(50% - 2px);
  }
  .theme-switch-btn {
    padding: 3px 7px;
    font-size: 0.64rem;
    gap: 3px;
  }
  .theme-switch-btn .theme-switch-icon {
    font-size: 0.72rem;
  }
}

.instagram-button,
.instagram-link {
  padding: 10px 14px;
  border-radius: 7px;
  color: #071121;
  background: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.header-actions .instagram-button,
.header-actions .instagram-link {
  display: none !important;
}

/* =========================================================
   ELEMENTO DE EXPLORAÇÃO NA NAVBAR (ESTRELA & DROPDOWN - OPÇÃO 1)
   ========================================================= */
.nav-explore-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-explore-trigger {
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-explore-trigger:hover,
.nav-explore-trigger.is-active {
  border-color: var(--blue);
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, transparent);
}

.nav-explore-trigger svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-explore-trigger.is-active svg {
  transform: rotate(72deg) scale(1.08);
  fill: currentColor;
}

.nav-explore-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  background: var(--surface);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px color-mix(in srgb, var(--blue) 16%, transparent);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
}

[data-theme="light"] .nav-explore-menu {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.nav-explore-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-explore-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text) !important;
  transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
  border: 1px solid transparent;
}

.nav-explore-item:hover,
.nav-explore-item:focus-visible {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  border-color: color-mix(in srgb, var(--blue) 25%, transparent);
  transform: translateX(2px);
}

.explore-item-icon {
  font-size: 1.25rem;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  border-radius: 8px;
  flex-shrink: 0;
}

.explore-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.explore-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.nav-explore-item:hover .explore-item-title {
  color: var(--blue);
}

.explore-item-sub {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.2;
}

@media (max-width: 600px) {
  .nav-explore-menu {
    right: -24px;
    min-width: 220px;
    top: calc(100% + 10px);
  }
}

.menu-toggle,
.menu-button {
  display: none;
  border-radius: 7px;
  gap: 4px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
}

.menu-toggle span,
.menu-button span {
  display: block;
  height: 1.5px;
  width: 18px;
  background: currentColor;
}

/* Search Panel */
.search-panel {
  position: fixed;
  inset: 77px 0 0;
  z-index: 15;
  display: grid;
  align-content: start;
  padding-top: 42px;
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
}

.search-panel.is-open {
  opacity: 1;
  visibility: visible;
}

.search-box {
  width: min(730px, calc(100% - 48px));
  margin-inline: auto;
}

.search-box label {
  display: block;
  margin-bottom: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--muted);
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.search-close {
  border: 0;
  border-radius: 6px;
  padding: 9px 12px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 0.78rem;
}

.search-message {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 14px;
}

/* Search Suggestions & Live Results */
.search-suggestions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.search-suggestions-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(22, 158, 255, 0.08);
  transform: translateY(-1px);
}

.search-live-results {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}

.search-result-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.search-result-card:hover {
  border-color: var(--blue);
  background: var(--surface-raised);
  transform: translateX(4px);
}

.search-result-card img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-category {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
}

.search-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.4;
}

.search-badge.news {
  background: rgba(22, 158, 255, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.search-badge.article {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.35);
}

[data-theme="light"] .search-badge.news {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}

[data-theme="light"] .search-badge.article {
  background: #f3e8ff;
  color: #7e22ce;
  border-color: #e9d5ff;
}

.search-result-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.search-result-arrow {
  color: var(--muted);
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.search-result-card:hover .search-result-arrow {
  color: var(--blue);
  transform: translateX(3px);
}

/* Modais de Rodapé (Contato e Privacidade) */
.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.footer-link-btn:hover {
  color: var(--blue);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 8, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
}

.modal-close-btn {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: #fff;
  border-color: var(--blue);
}

.modal-body {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.65;
}

.modal-body p {
  margin-bottom: 14px;
}

.contact-card-box {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-card-box > div {
  min-width: 0;
  flex: 1 1 180px;
}

#contact-email-text {
  word-break: break-all;
}

.copy-email-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.copy-email-btn:hover {
  filter: brightness(1.1);
}

/* Hero (Início) */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 310px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 38px 0 32px;
}

.hero-background {
  position: absolute;
  inset: -8px;
  z-index: -2;
  background:
    linear-gradient(90deg, var(--bg) 2%, color-mix(in srgb, var(--bg) 82%, transparent) 42%, color-mix(in srgb, var(--bg) 20%, transparent)),
    linear-gradient(0deg, var(--bg), transparent 52%),
    url("images/banner-curiosidades-incriveis.png") center/cover;
  filter: blur(2.6px) saturate(1.12);
  transform: scale(1.025);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 28%, rgba(22, 158, 255, 0.1), transparent 30%),
    linear-gradient(90deg, rgba(5, 8, 16, 0.22), transparent 60%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -45% 45%;
  z-index: -1;
  width: 68vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 158, 255, 0.24), transparent 63%);
  filter: blur(12px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 1180px;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px 0;
  padding: 0;
  color: var(--blue) !important;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  align-self: flex-start;
}

.eyebrow span {
  width: 22px;
  height: 2px;
  background: currentColor;
}

#color-blue,
#IDColorBlue {
  color: var(--blue) !important;
}

.eyebrow.accent {
  color: var(--yellow) !important;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  max-width: 640px;
  margin: 0 0 8px 0;
  padding: 0;
  font-size: clamp(1.6rem, 3.1vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
  text-align: left;
  align-self: flex-start;
}

.hero-copy {
  max-width: 480px;
  margin: 0 0 14px 0;
  padding: 0;
  color: #d6deed;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: left;
  align-self: flex-start;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  padding: 0;
}

.button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 11px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  width: auto;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(77, 141, 255, 0.22);
}

.button-primary {
  color: #071121;
  background: var(--yellow);
}

.button-light {
  color: #071121;
  background: #fff;
}

.hero-stat {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  gap: 13px;
  align-items: center;
  padding: 10px 18px 10px 16px;
  background: rgba(11, 23, 44, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--yellow);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  z-index: 10;
}

@media (max-width: 900px) {
  .hero-stat {
    position: static;
    margin-top: 18px;
    align-self: flex-start;
  }
}

.hero-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.1);
}

.hero-stat-info {
  display: flex;
  flex-direction: column;
}

.hero-stat-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-stat strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  display: inline-block;
}

.hero-stat-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 2px 7px;
  border-radius: 20px;
}

.hero-stat-live .live-dot {
  width: 6px;
  height: 6px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseLive 2s infinite ease-in-out;
}

@keyframes pulseLive {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.5;
  }
}

.hero-stat span.hero-stat-label {
  color: #cbd5e1;
  font-size: 0.72rem;
  line-height: 1.35;
  margin-top: 2px;
}

.hero-stat-arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  transition: transform 0.2s ease, color 0.2s ease;
  margin-left: 2px;
}

.hero-stat:hover .hero-stat-arrow {
  color: var(--yellow);
  transform: translateX(3px);
}

/* Sections */
.section {
  padding: 76px 0;
}

#em-alta.section {
  padding-top: 48px;
}

.recent-section {
  background: var(--surface);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.text-link {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.section-intro {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.centered-heading {
  justify-content: center;
  text-align: center;
}

.centered-heading .eyebrow {
  justify-content: center;
}

/* Featured Grid (Home) */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 355px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  isolation: isolate;
  transition: transform 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 158, 255, 0.4);
}

.feature-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 7, 17, 0.94), rgba(2, 7, 17, 0.04) 70%), var(--image) center/cover;
  transition: transform 0.4s;
}

.feature-card:hover::before {
  transform: scale(1.06);
}

.card-content {
  width: 100%;
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin-bottom: 13px;
  font-size: 1.24rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.card-meta {
  color: #d9e1ee;
  font-size: 0.72rem;
}

.card-meta span {
  color: var(--yellow);
  margin-right: 6px;
}

/* Recent List */
.recent-list {
  border-top: 1px solid var(--line);
}

.recent-card {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 27px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s;
}

.recent-card:hover {
  padding-inline: 10px;
}

.recent-card img {
  width: 170px;
  height: 110px;
  object-fit: cover;
  border-radius: 7px;
}

.recent-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  letter-spacing: -0.035em;
}

.recent-card p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.arrow-link {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  font-size: 1.1rem;
  transition: transform 0.2s, border-color 0.2s;
}

.recent-card:hover .arrow-link {
  transform: translateX(4px);
  border-color: var(--blue);
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 11px;
}

.category-card {
  min-height: 163px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card span {
  margin-bottom: auto;
  font-size: 1.65rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.category-card:hover span {
  transform: scale(1.15) translateY(-2px);
}

.category-card strong {
  margin-bottom: 5px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.category-card small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

/* 🐾 1. Animais: Gradiente Esmeralda Selvagem */
.category-card.animals {
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.16) 0%, rgba(5, 150, 105, 0.05) 55%, var(--surface) 100%);
  border-color: rgba(16, 185, 129, 0.26);
}
.category-card.animals:hover {
  border-color: #10b981;
  box-shadow: 0 12px 28px -6px rgba(16, 185, 129, 0.22), 0 0 15px rgba(16, 185, 129, 0.12);
}

/* 🔬 2. Ciência: Gradiente Violeta / Púrpura Cósmica */
.category-card.science {
  background: linear-gradient(155deg, rgba(139, 92, 246, 0.18) 0%, rgba(124, 58, 237, 0.06) 55%, var(--surface) 100%);
  border-color: rgba(139, 92, 246, 0.26);
}
.category-card.science:hover {
  border-color: #8b5cf6;
  box-shadow: 0 12px 28px -6px rgba(139, 92, 246, 0.22), 0 0 15px rgba(139, 92, 246, 0.12);
}

/* 💻 3. Tecnologia: Gradiente Ciano / Azul Elétrico */
.category-card.tech {
  background: linear-gradient(155deg, rgba(6, 182, 212, 0.18) 0%, rgba(14, 165, 233, 0.06) 55%, var(--surface) 100%);
  border-color: rgba(6, 182, 212, 0.26);
}
.category-card.tech:hover {
  border-color: #06b6d4;
  box-shadow: 0 12px 28px -6px rgba(6, 182, 212, 0.22), 0 0 15px rgba(6, 182, 212, 0.12);
}

/* 📜 4. História: Gradiente Âmbar / Ouro Antigo */
.category-card.history {
  background: linear-gradient(155deg, rgba(245, 158, 11, 0.18) 0%, rgba(217, 119, 6, 0.06) 55%, var(--surface) 100%);
  border-color: rgba(245, 158, 11, 0.26);
}
.category-card.history:hover {
  border-color: #f59e0b;
  box-shadow: 0 12px 28px -6px rgba(245, 158, 11, 0.22), 0 0 15px rgba(245, 158, 11, 0.12);
}

/* 🌍 5. Mundo: Gradiente Safira / Oceano Profundo */
.category-card.world {
  background: linear-gradient(155deg, rgba(59, 130, 246, 0.18) 0%, rgba(37, 99, 235, 0.06) 55%, var(--surface) 100%);
  border-color: rgba(59, 130, 246, 0.26);
}
.category-card.world:hover {
  border-color: #3b82f6;
  box-shadow: 0 12px 28px -6px rgba(59, 130, 246, 0.22), 0 0 15px rgba(59, 130, 246, 0.12);
}

/* Modo Claro (Light Mode) */
[data-theme="light"] .category-card.animals {
  background: linear-gradient(155deg, #ecfdf5 0%, #f0fdf4 65%, var(--surface) 100%);
  border-color: #a7f3d0;
}
[data-theme="light"] .category-card.animals:hover {
  border-color: #10b981;
  box-shadow: 0 10px 24px -5px rgba(16, 185, 129, 0.18);
}

[data-theme="light"] .category-card.science {
  background: linear-gradient(155deg, #f5f3ff 0%, #ede9fe 65%, var(--surface) 100%);
  border-color: #ddd6fe;
}
[data-theme="light"] .category-card.science:hover {
  border-color: #8b5cf6;
  box-shadow: 0 10px 24px -5px rgba(139, 92, 246, 0.18);
}

[data-theme="light"] .category-card.tech {
  background: linear-gradient(155deg, #ecfeff 0%, #e0f2fe 65%, var(--surface) 100%);
  border-color: #bae6fd;
}
[data-theme="light"] .category-card.tech:hover {
  border-color: #06b6d4;
  box-shadow: 0 10px 24px -5px rgba(6, 182, 212, 0.18);
}

[data-theme="light"] .category-card.history {
  background: linear-gradient(155deg, #fffbeb 0%, #fef3c7 65%, var(--surface) 100%);
  border-color: #fde68a;
}
[data-theme="light"] .category-card.history:hover {
  border-color: #f59e0b;
  box-shadow: 0 10px 24px -5px rgba(245, 158, 11, 0.18);
}

[data-theme="light"] .category-card.world {
  background: linear-gradient(155deg, #eff6ff 0%, #dbeafe 65%, var(--surface) 100%);
  border-color: #bfdbfe;
}
[data-theme="light"] .category-card.world:hover {
  border-color: #3b82f6;
  box-shadow: 0 10px 24px -5px rgba(59, 130, 246, 0.18);
}

/* Popular Grid */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.popular-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.2s, border-color 0.2s;
}

.popular-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
}

.popular-number {
  color: var(--blue);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.popular-card h3 {
  margin: 35px 0 0;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.popular-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Instagram CTA */
.instagram-cta {
  margin-top: 35px;
  padding: 72px 0;
  background: linear-gradient(105deg, #2769e2, #4D8DFF 52%, #ffbd37);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.cta-inner .eyebrow {
  color: #fff;
}

.cta-inner h2 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

/* Site Footer */
.site-footer {
  padding: 72px 0 23px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.1fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand p {
  max-width: 290px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.footer-grid h3 {
  margin: 0 0 15px;
  font-size: 0.85rem;
}

.footer-grid div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 62px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* =========================================================
   ARTIGOS — Curiosidades Incríveis
   ========================================================= */

.articles-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 76px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 35%, rgba(22, 158, 255, 0.13), transparent 28%),
    radial-gradient(circle at 68% 100%, rgba(255, 134, 20, 0.08), transparent 24%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 58px;
  color: var(--muted);
  font-size: 0.84rem;
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.articles-hero .hero-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  z-index: 99999;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

.articles-hero .hero-content h1 {
  max-width: 720px;
  margin: 12px 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.articles-hero .hero-content p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-decoration {
  display: grid;
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
  place-items: center;
  border: 1px solid rgba(22, 158, 255, 0.28);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(22, 158, 255, 0.12), rgba(255, 134, 20, 0.07)),
    var(--surface);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
  transform: rotate(7deg);
}

.hero-decoration span {
  color: var(--blue);
  font-family: "Space Grotesk", sans-serif;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-7deg);
}

.articles-content {
  padding: 80px 0 90px;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 32px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 600;
  transition: 0.2s ease;
}

.category-pill:hover {
  border-color: rgba(22, 158, 255, 0.4);
  color: var(--text);
  transform: translateY(-1px);
}

.category-pill.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.featured-article {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  margin-bottom: 50px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.featured-image {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  display: block;
}

.featured-image::after,
.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 16, 0.62), transparent 48%);
  pointer-events: none;
}

.featured-image img,
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.featured-article:hover .featured-image img,
.article-card:hover .card-image img {
  transform: scale(1.045);
}

.image-category,
.card-category {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 8, 16, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
}

.featured-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 4vw, 42px);
}

.article-category {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.featured-info h2 {
  margin: 10px 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.65rem, 2.5vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.featured-info h2 a,
.article-card h3 a {
  color: var(--text);
}

.featured-info h2 a:hover,
.article-card h3 a:hover {
  color: var(--blue);
}

.featured-info > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.article-meta,
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.76rem;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
}

.read-link span {
  color: var(--blue);
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.read-link:hover span {
  transform: translateX(4px);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  border-color: rgba(22, 158, 255, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.card-image {
  position: relative;
  display: block;
  height: 220px;
  overflow: hidden;
  background: var(--surface-raised);
}

.card-body {
  padding: 23px 23px 25px;
}

.article-card h3 {
  margin: 9px 0 11px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.load-more button {
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.load-more button:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* Instagram CTA (Artigos) */
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: clamp(30px, 5vw, 55px);
  overflow: hidden;
  border: 1px solid rgba(22, 158, 255, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 134, 20, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(22, 158, 255, 0.12), rgba(22, 158, 255, 0.03)),
    var(--surface);
}

.cta-box h2 {
  max-width: 680px;
  margin: 10px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.cta-box p {
  margin: 0;
  color: var(--muted);
}

.cta-box > a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  transition: 0.2s ease;
}

.cta-box > a:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* =========================================================
   PÁGINA DO ARTIGO INDIVIDUAL (artigos/*.html)
   ========================================================= */

.article-page {
  padding: 40px 0 90px;
}

.article-header {
  max-width: 820px;
  margin: 0 auto 36px;
}

.article-header h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 16px 0 20px;
}

.article-header-lead {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.article-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
}

.article-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--blue);
}

.article-meta-right {
  display: flex;
  align-items: center;
}

.article-publish-date {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .article-header-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.article-banner-hero {
  width: 100%;
  max-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid var(--line);
}

.article-banner-hero img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-body-container {
  max-width: 820px;
  margin: 0 auto;
}

.article-prose {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text);
}

.article-prose p {
  margin-bottom: 24px;
}

.article-prose h2 {
  font-size: 1.85rem;
  margin: 44px 0 16px;
  letter-spacing: -0.035em;
  color: var(--text);
}

.article-highlight-box {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--yellow);
  background: color-mix(in srgb, var(--yellow) 8%, var(--surface));
  border-radius: 0 14px 14px 0;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
}

.curiosity-card-callout {
  margin: 44px 0;
  padding: 28px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 95% 15%, rgba(22, 158, 255, 0.2), transparent 45%),
    var(--surface-raised);
  border: 1px solid rgba(22, 158, 255, 0.3);
}

.curiosity-card-callout strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 0.95rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.curiosity-card-callout p {
  margin: 0;
  color: #e2e8f0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.article-share-footer {
  margin-top: 50px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* =========================================================
   SEÇÃO "🧭 CONTINUE EXPLORANDO" (RODAPÉ DOS ARTIGOS)
   ========================================================= */
.continue-explorando-section {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.continue-explorando-header {
  margin-bottom: 24px;
}

.continue-explorando-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.continue-explorando-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  display: inline-block;
}

.continue-explorando-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 8px 0;
}

.continue-explorando-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 640px;
}

.continue-explorando-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.continue-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.continue-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 158, 255, 0.4);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45);
}

.continue-card-image {
  position: relative;
  display: block;
  height: 145px;
  overflow: hidden;
  background: var(--surface-raised);
}

.continue-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.continue-card:hover .continue-card-image img {
  transform: scale(1.05);
}

.continue-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(9, 20, 38, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-family: "Space Grotesk", sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.continue-card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.continue-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.continue-card-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
}

.continue-card-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.continue-card-title a:hover {
  color: var(--blue);
}

.continue-card-excerpt {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 14px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.continue-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.continue-card-link:hover {
  gap: 8px;
}

@media (max-width: 820px) {
  .continue-explorando-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 540px) {
  .continue-explorando-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .continue-card-image {
    height: 160px;
  }
}

[data-theme="light"] .continue-card {
  background: #ffffff;
  border-color: rgba(9, 20, 38, 0.08);
  box-shadow: 0 2px 10px rgba(9, 20, 38, 0.04);
}

[data-theme="light"] .continue-card:hover {
  border-color: rgba(22, 158, 255, 0.4);
  box-shadow: 0 8px 24px rgba(9, 20, 38, 0.08);
}

[data-theme="light"] .continue-card-title a {
  color: #091426;
}

[data-theme="light"] .continue-card-title a:hover {
  color: var(--blue);
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 950px) {
  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 380px;
  }

  .featured-info {
    padding: 35px;
  }

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

  .hero-decoration {
    flex-basis: 140px;
    width: 140px;
    height: 140px;
  }

  .hero-decoration span {
    font-size: 4.5rem;
  }

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

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-grid > :last-child {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 34px 0 24px;
    align-items: flex-start;
  }

  .hero-content {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .hero-content h1 {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    line-height: 1.1;
  }

  .hero-stat {
    position: static;
    margin-top: 18px;
    align-self: flex-start;
    display: inline-flex;
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }

  /* Em celulares, retira o seletor de tema da linha do cabeçalho */
  .header-actions .theme-switch {
    display: none !important;
  }

  /* Botão de menu no cabeçalho: 100% visível, acessível e sem corte */
  .menu-toggle,
  .menu-button {
    display: grid !important;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
  }

  .site-header {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .header-inner {
    min-height: 64px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header-actions {
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
  }

  .brand {
    min-width: 0;
    flex-shrink: 1;
    gap: 8px;
    font-size: 0.95rem;
  }

  .brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-logo,
  .brand-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 34px, 1180px);
  }

  .hero-content {
    width: min(100% - 34px, 1180px);
    margin-inline: auto;
  }

  .header-inner {
    min-height: 66px;
  }

  .hero-background {
    background-position: 58% center;
  }

  .hero-decoration {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

  #em-alta.section {
    padding-top: 36px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 28px;
  }

  .section-heading > p {
    margin-top: 12px;
    text-align: left;
  }

  .section-intro {
    max-width: 520px;
  }

  .category-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
  }

  .category-bar::-webkit-scrollbar {
    display: none;
  }

  .category-pill {
    flex-shrink: 0;
  }

  .featured-grid,
  .popular-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 265px;
  }

  .recent-card {
    grid-template-columns: 104px 1fr;
    gap: 15px;
  }

  .recent-card img {
    width: 104px;
    height: 90px;
  }

  .recent-card p,
  .arrow-link {
    display: none;
  }

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

  .category-card {
    min-height: 135px;
  }

  .cta-inner,
  .cta-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-box > a {
    margin-top: 25px;
  }

  .featured-article {
    border-radius: 21px;
  }

  .featured-image {
    min-height: 280px;
  }

  .featured-info {
    padding: 28px 24px 30px;
  }

  .featured-info h2 {
    font-size: 2rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card-image {
    height: 230px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 33px 20px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-grid > :last-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    margin-top: 43px;
  }

  .search-panel {
    inset: 67px 0 0;
    padding-top: 28px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: auto;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-buttons .button {
    width: auto;
    text-align: left;
  }

  .header-actions .instagram-button,
  .header-actions .instagram-link {
    display: none;
  }

  .featured-image {
    min-height: 235px;
  }

  .card-image {
    height: 210px;
  }

  .card-body {
    padding: 20px;
  }

  .instagram-cta {
    padding-bottom: 65px;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 0.88rem;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .header-actions {
    gap: 5px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }
}

/* =========================================================
   TICKER CÓSMICO "VOCÊ SABIA?"
   ========================================================= */
.ticker-bar {
  background: color-mix(in srgb, var(--surface) 90%, var(--blue) 10%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  position: relative;
  z-index: 10;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #030a16;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-content {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.ticker-content strong {
  color: var(--yellow);
}

.ticker-content:hover {
  color: var(--blue);
}

/* Tooltip flutuante de Desktop */
.ticker-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(90vw, 560px);
  background: var(--surface-raised);
  border: 1px solid var(--blue);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(22, 158, 255, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
}

.ticker-tooltip.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ticker-tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.ticker-tooltip-body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 12px;
}

.ticker-tooltip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--yellow);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.ticker-tooltip-link:hover {
  color: #fff;
  transform: translateX(3px);
}

/* Bottom Sheet no Celular (Folha de Rodapé Rápida) */
.ticker-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ticker-sheet-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.ticker-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--blue);
  border-radius: 24px 24px 0 0;
  padding: 16px 20px max(24px, env(safe-area-inset-bottom, 24px));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
  z-index: 1051;
  transform: translateY(105%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 82vh;
  overflow-y: auto;
}

.ticker-sheet-overlay.is-open .ticker-bottom-sheet {
  transform: translateY(0);
}

.ticker-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  margin: 0 auto 14px;
}

.ticker-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ticker-sheet-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ticker-sheet-close {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ticker-sheet-close:hover {
  color: var(--text);
  border-color: var(--text);
}

.ticker-sheet-text {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 18px;
}

.ticker-sheet-action {
  display: flex;
  width: 100%;
}

.ticker-sheet-action .button {
  width: 100%;
  justify-content: center;
}

.ticker-next-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ticker-next-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 8%, transparent);
}

/* =========================================================
   CARD INTERATIVO: CURIOSIDADE ALEATÓRIA (SURPREENDA-ME)
   ========================================================= */
.surprise-box {
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 12%, transparent) 0%, color-mix(in srgb, var(--yellow) 10%, transparent) 100%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line));
  border-radius: 18px;
  padding: 34px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  margin-top: 15px;
  margin-bottom: 20px;
}

.surprise-box::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  opacity: 0.2;
  pointer-events: none;
}

.surprise-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.surprise-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.surprise-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  background: rgba(255, 134, 20, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 134, 20, 0.3);
}

.surprise-fact {
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 22px;
  min-height: 58px;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.surprise-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.surprise-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #030a16;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.surprise-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(82, 178, 255, 0.35);
}

.surprise-link {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.surprise-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* =========================================================
   FILTROS RÁPIDOS NA HOME
   ========================================================= */
.home-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.home-filters .filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.home-filters .filter-pill:hover {
  border-color: var(--blue);
  color: var(--text);
}

.home-filters .filter-pill.active {
  background: var(--blue);
  color: #030a16;
  border-color: var(--blue);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(82, 178, 255, 0.25);
}

/* =========================================================
   MOBILE DRAWER (GAVETA LATERAL PROFISSONAL)
   ========================================================= */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 22, 0.75);
  backdrop-filter: blur(5px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: min(85vw, 320px);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.55);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.is-open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.drawer-close {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.drawer-close:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 4px;
}

.drawer-nav a,
.drawer-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.drawer-nav a:hover,
.drawer-nav a.active,
.drawer-nav button:hover,
.drawer-nav button.active {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
}

.drawer-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 14px 0 6px 12px;
}

.drawer-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-categories a,
.drawer-categories button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.drawer-categories a:hover,
.drawer-categories button:hover {
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  color: var(--blue);
}

/* =========================================================
   SEÇÃO DE TEMA NO MENU MOBILE (DRAWER)
   ========================================================= */
.drawer-theme-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.drawer-theme-section .drawer-section-title {
  margin: 0 0 4px 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.drawer-theme-switch {
  width: 100% !important;
  display: flex !important;
  padding: 4px;
  box-sizing: border-box;
  border-radius: 9999px;
  background: rgba(12, 19, 36, 0.75);
}

[data-theme="light"] .drawer-theme-switch {
  background: #e9eff8;
  border-color: rgba(9, 20, 38, 0.14);
}

.drawer-theme-switch .theme-switch-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  justify-content: center;
  min-height: 42px; /* Área de toque confortável para celular */
  border-radius: 9999px;
}

.drawer-theme-switch .theme-switch-indicator {
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 9999px;
}

.drawer-footer {
  margin-top: 14px;
  padding-top: 14px;
  padding-bottom: 6px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.drawer-footer .instagram-button {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  font-size: 0.88rem;
}

body.drawer-open {
  overflow: hidden;
}

/* =========================================================
   BOTÃO VOLTAR AO TOPO (SCROLL TO TOP SUAVE - LADO ESQUERDO)
   ========================================================= */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 19, 36, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s, background 0.2s, border-color 0.2s;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .scroll-top-btn {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.scroll-top-btn.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

.scroll-top-btn:hover {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 14px 32px rgba(22, 158, 255, 0.4);
}

.scroll-top-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   CÁPSULA LATERAL FLUTUANTE DE REDES SOCIAIS (STICKY PILL)
   ========================================================= */
.floating-social-pill {
  position: fixed;
  right: 20px;
  bottom: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(11, 19, 36, 0.62);
  backdrop-filter: blur(42px) saturate(160%);
  -webkit-backdrop-filter: blur(42px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 12px 10px 16px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.6), 0 0 24px rgba(22, 158, 255, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateX(80px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

[data-theme="light"] .floating-social-pill {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.floating-social-pill.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) !important;
}

.floating-social-badge {
  background: #000000;
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 10px 6px;
  border-radius: 999px;
  margin-bottom: 12px;
  user-select: none;
}

[data-theme="light"] .floating-social-badge {
  background: #050810;
  color: #ffffff;
}

.floating-social-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.floating-social-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: transparent;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.floating-social-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.floating-social-btn:hover {
  transform: scale(1.18);
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 16%, transparent);
}

/* Tooltip lateral ao passar o mouse (apenas Desktop) */
.floating-social-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 10000;
}

.floating-social-item:hover .floating-social-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* =========================================================
   RESPONSIVIDADE: TABLET (max-width: 950px)
   ========================================================= */
@media (max-width: 950px) {
  .scroll-top-btn {
    bottom: 20px;
    left: 16px;
    width: 40px;
    height: 40px;
  }

  .floating-social-pill {
    right: 14px;
    bottom: 22px;
    padding: 10px 8px 14px;
    transform: translateX(80px);
  }

  .floating-social-pill.is-visible {
    transform: translateX(0) !important;
  }

  .floating-social-badge {
    font-size: 0.65rem;
    padding: 9px 5px;
    margin-bottom: 12px;
  }

  .floating-social-links {
    gap: 12px;
  }

  .floating-social-btn {
    width: 42px;
    height: 42px;
  }

  .floating-social-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* =========================================================
   RESPONSIVIDADE: MOBILE (max-width: 600px)
   ========================================================= */
/* =========================================================
   AJUSTES E CORREÇÕES DO MODO CLARO (CONTRASTE E LEGIBILIDADE)
   ========================================================= */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] .hero h1,
[data-theme="light"] .articles-hero .hero-content h1,
[data-theme="light"] .articles-hero h1,
[data-theme="light"] .article-header h1,
[data-theme="light"] .article-prose h2,
[data-theme="light"] .article-prose h3 {
  color: #091426 !important;
}

[data-theme="light"] .hero-copy,
[data-theme="light"] .articles-hero .hero-content p,
[data-theme="light"] .article-header-lead {
  color: #334155;
}

[data-theme="light"] .eyebrow,
[data-theme="light"] #IDColorBlue,
[data-theme="light"] #color-blue,
[data-theme="light"] .section-kicker {
  color: #0284c7 !important;
}

[data-theme="light"] .eyebrow.accent {
  color: #b45309 !important;
}

/* Hero Stat no Modo Claro */
[data-theme="light"] .hero-stat {
  background: rgba(250, 251, 254, 0.94);
  border-color: rgba(9, 20, 38, 0.12);
  border-left: 3px solid #d97706;
  box-shadow: 0 8px 24px rgba(9, 20, 38, 0.08);
}

[data-theme="light"] .hero-stat strong {
  color: #091426;
}

[data-theme="light"] .hero-stat span.hero-stat-label {
  color: #475569;
}

[data-theme="light"] .hero-stat-arrow {
  color: #64748b;
}

/* Botões no Modo Claro */
[data-theme="light"] .button-light {
  background: #ffffff;
  color: #091426;
  border: 1px solid rgba(9, 20, 38, 0.16);
  box-shadow: 0 2px 8px rgba(9, 20, 38, 0.06);
}

[data-theme="light"] .button-light:hover {
  background: #f1f5f9;
  border-color: rgba(9, 20, 38, 0.25);
}

/* Gradientes suaves do Hero no Modo Claro */
[data-theme="light"] .hero::before {
  background:
    radial-gradient(circle at 75% 30%, rgba(2, 132, 199, 0.08), transparent 35%),
    linear-gradient(90deg, rgba(244, 246, 250, 0.88) 0%, rgba(244, 246, 250, 0.45) 60%, transparent 100%);
}

[data-theme="light"] .hero::after {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.1), transparent 65%);
}

/* Ticker Cósmico no Modo Claro */
[data-theme="light"] .ticker-bar {
  background: #eef3f9;
  border-color: rgba(9, 20, 38, 0.1);
}

[data-theme="light"] .ticker-badge {
  background: #0284c7;
  color: #ffffff;
}

[data-theme="light"] .ticker-content strong {
  color: #b45309;
}

[data-theme="light"] .ticker-next-btn {
  border-color: rgba(9, 20, 38, 0.15);
  color: #475569;
}

[data-theme="light"] .ticker-next-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
}

[data-theme="light"] .ticker-tooltip {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 0 15px rgba(2, 132, 199, 0.08);
}

/* Seção de Artigos no Modo Claro */
[data-theme="light"] .articles-hero {
  background:
    radial-gradient(circle at 82% 35%, rgba(2, 132, 199, 0.08), transparent 30%),
    radial-gradient(circle at 68% 100%, rgba(217, 119, 6, 0.06), transparent 26%);
}

[data-theme="light"] .hero-decoration {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .hero-decoration span {
  color: #0284c7;
}

[data-theme="light"] .section-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0284c7;
  margin-bottom: 6px;
}

[data-theme="light"] .category-pill {
  background: #ffffff;
  border-color: rgba(9, 20, 38, 0.12);
  color: #475569;
}

[data-theme="light"] .category-pill:hover {
  border-color: #0284c7;
  color: #091426;
}

[data-theme="light"] .category-pill.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .featured-article {
  background: #ffffff;
  border-color: rgba(9, 20, 38, 0.1);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
}

[data-theme="light"] .article-category {
  color: #0284c7;
}

[data-theme="light"] .featured-info h2 a,
[data-theme="light"] .article-card h3 a {
  color: #091426;
}

[data-theme="light"] .featured-info h2 a:hover,
[data-theme="light"] .article-card h3 a:hover {
  color: #0284c7;
}

[data-theme="light"] .featured-info > p,
[data-theme="light"] .article-card p {
  color: #475569;
}

[data-theme="light"] .article-meta,
[data-theme="light"] .card-meta {
  color: #64748b;
}

[data-theme="light"] .read-link {
  color: #091426;
}

[data-theme="light"] .read-link span {
  color: #0284c7;
}

[data-theme="light"] .article-card {
  background: #ffffff;
  border-color: rgba(9, 20, 38, 0.1);
}

[data-theme="light"] .article-card:hover {
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .card-image {
  background: #e9eff8;
}

/* Callouts e Artigos Individuais no Modo Claro */
[data-theme="light"] .article-prose {
  color: #1e293b;
}

[data-theme="light"] .article-highlight-box {
  background: #fffbeb;
  border-left-color: #d97706;
  color: #0f172a;
}

[data-theme="light"] .curiosity-card-callout {
  background: #f1f5f9;
  border-color: rgba(2, 132, 199, 0.28);
}

[data-theme="light"] .curiosity-card-callout strong {
  color: #0284c7;
}

[data-theme="light"] .curiosity-card-callout p {
  color: #1e293b;
}

/* Caixa de Curiosidade Aleatória no Modo Claro */
[data-theme="light"] .surprise-box {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.06) 0%, rgba(217, 119, 6, 0.06) 100%), #ffffff;
  border-color: rgba(2, 132, 199, 0.22);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .surprise-badge {
  color: #b45309;
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.25);
}

[data-theme="light"] .surprise-btn {
  background: #0284c7;
  color: #ffffff;
}

[data-theme="light"] .surprise-link {
  color: #0284c7;
}

/* Filtros rápidos na Home no Modo Claro */
[data-theme="light"] .home-filters .filter-pill {
  background: #ffffff;
  border-color: rgba(9, 20, 38, 0.12);
  color: #475569;
}

[data-theme="light"] .home-filters .filter-pill:hover {
  border-color: #0284c7;
  color: #091426;
}

[data-theme="light"] .home-filters .filter-pill.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Modais e Contato no Modo Claro */
[data-theme="light"] .modal-box {
  background: #ffffff;
  border-color: rgba(9, 20, 38, 0.14);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .contact-card-box {
  background: #f1f5f9;
  border-color: rgba(9, 20, 38, 0.1);
}

[data-theme="light"] .copy-email-btn {
  background: #0284c7;
  color: #ffffff;
}

/* =========================================================
   ÁREA DE NOTÍCIAS — ESTILOS OFICIAIS & RESPONSIVIDADE
   ========================================================= */

/* Destaque temporário da nova área de Notícias na Home */
.news-teaser-section {
  padding: 24px 0 36px;
}

.news-teaser-inner {
  border: 1px solid rgba(22, 158, 255, 0.28);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(22, 158, 255, 0.08) 0%, rgba(255, 134, 20, 0.05) 100%), var(--surface);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.news-teaser-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.teaser-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  animation: pulseNews 2s infinite ease-in-out;
}

@keyframes pulseNews {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.news-teaser-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.news-teaser-text h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  margin: 0 0 8px;
  line-height: 1.25;
}

.news-teaser-text h2 strong {
  color: var(--blue);
}

.news-teaser-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 680px;
}

.news-teaser-action {
  flex-shrink: 0;
}

[data-theme="light"] .news-teaser-inner {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.07) 0%, rgba(217, 119, 6, 0.05) 100%), #ffffff;
  border-color: rgba(2, 132, 199, 0.24);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .news-teaser-text h2 {
  color: #091426;
}

[data-theme="light"] .news-teaser-text p {
  color: #475569;
}

/* =========================================================
   PÁGINA DEDICADA DE NOTÍCIAS (noticias.html)
   ========================================================= */

.news-page {
  padding: 40px 0 80px;
}

.news-header {
  margin-bottom: 28px;
}

.news-header h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 8px 0 12px;
  color: var(--text);
}

.news-header-desc {
  max-width: 660px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
}

/* Aviso discreto de demonstração */
.news-demo-alert {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(22, 158, 255, 0.08);
  border: 1px solid rgba(22, 158, 255, 0.2);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 6px;
}

.news-demo-alert strong {
  color: var(--blue);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[data-theme="light"] .news-demo-alert {
  background: rgba(2, 132, 199, 0.06);
  border-color: rgba(2, 132, 199, 0.2);
  color: #475569;
}

/* Barra de Navegação por Categorias da área de Notícias */
.news-category-bar-wrapper {
  margin-bottom: 32px;
  position: relative;
}

.news-category-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}

.news-category-bar::-webkit-scrollbar {
  display: none;
}

.news-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  user-select: none;
}

.news-cat-btn:hover {
  border-color: rgba(22, 158, 255, 0.45);
  color: var(--text);
  transform: translateY(-1px);
}

.news-cat-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 158, 255, 0.28);
}

[data-theme="light"] .news-cat-btn {
  background: #ffffff;
  border-color: rgba(9, 20, 38, 0.12);
  color: #475569;
}

[data-theme="light"] .news-cat-btn:hover {
  border-color: #0284c7;
  color: #091426;
}

[data-theme="light"] .news-cat-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.22);
}

/* Categorias: cores sutis com alto contraste */
.cat-tag {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.cat-tag[data-cat="ciencia"] { color: #38bdf8; }
.cat-tag[data-cat="tecnologia"] { color: #60a5fa; }
.cat-tag[data-cat="games"] { color: #c084fc; }
.cat-tag[data-cat="animais"] { color: #34d399; }
.cat-tag[data-cat="politica"] { color: #fbbf24; }
.cat-tag[data-cat="mundo"] { color: #fb923c; }
.cat-tag[data-cat="entretenimento"] { color: #f472b6; }

[data-theme="light"] .cat-tag[data-cat="ciencia"] { color: #0284c7; }
[data-theme="light"] .cat-tag[data-cat="tecnologia"] { color: #1d4ed8; }
[data-theme="light"] .cat-tag[data-cat="games"] { color: #7e22ce; }
[data-theme="light"] .cat-tag[data-cat="animais"] { color: #047857; }
[data-theme="light"] .cat-tag[data-cat="politica"] { color: #b45309; }
[data-theme="light"] .cat-tag[data-cat="mundo"] { color: #c2410c; }
[data-theme="light"] .cat-tag[data-cat="entretenimento"] { color: #be185d; }

/* Grid do Destaque Principal + Últimas Notícias */
.news-hero-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 54px;
}

/* Coluna 1: Destaque Principal (~65%) */
.news-featured-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.news-featured-card:hover {
  border-color: rgba(22, 158, 255, 0.35);
}

.news-featured-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  overflow: hidden;
  background: #0b1020;
}

.news-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-featured-card:hover .news-featured-media img {
  transform: scale(1.03);
}

.news-credit-tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(5, 8, 16, 0.72);
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.news-featured-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.news-meta-sep {
  opacity: 0.5;
  user-select: none;
}

.news-featured-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2.3vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--text);
}

.news-featured-title a {
  color: inherit;
  transition: color 0.2s ease;
}

.news-featured-title a:hover {
  color: var(--blue);
}

.news-featured-summary {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
  flex-grow: 1;
}

.news-read-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  transition: gap 0.2s ease;
}

.news-read-action:hover {
  gap: 10px;
}

/* Coluna 2: Últimas Notícias (~35%) */
.news-latest-column {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.news-latest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.news-latest-header h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  margin: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-latest-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--yellow);
  text-transform: uppercase;
}

.news-compact-list {
  display: flex;
  flex-direction: column;
}

.news-compact-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.news-compact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-compact-item:hover {
  transform: translateX(2px);
}

.news-compact-thumb {
  width: 96px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #0b1020;
  flex-shrink: 0;
  position: relative;
}

.news-compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-compact-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-compact-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 3px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.news-compact-item:hover .news-compact-title {
  color: var(--blue);
}

.news-compact-meta {
  font-size: 0.74rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Listagem geral de notícias */
.news-feed-section {
  margin-top: 10px;
}

.news-feed-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.news-feed-header h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  margin: 0;
  color: var(--text);
}

.news-feed-count {
  font-size: 0.85rem;
  color: var(--muted);
}

.news-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.news-feed-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.news-feed-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 158, 255, 0.4);
}

.news-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1020;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-feed-card:hover .news-card-media img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 6px 0 10px;
  transition: color 0.2s ease;
}

.news-feed-card:hover .news-card-title {
  color: var(--blue);
}

.news-card-summary {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
  flex-grow: 1;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--muted);
}

/* Estado vazio na filtragem */
.news-empty-state {
  text-align: center;
  padding: 48px 20px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: var(--surface);
  color: var(--muted);
}

.news-empty-state p {
  margin: 8px 0 16px;
  font-size: 0.95rem;
}

/* Adaptações do Modo Claro para a área de Notícias */
[data-theme="light"] .news-featured-card,
[data-theme="light"] .news-latest-column,
[data-theme="light"] .news-feed-card,
[data-theme="light"] .news-empty-state {
  background: #ffffff;
  border-color: rgba(9, 20, 38, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .news-header h1,
[data-theme="light"] .news-featured-title,
[data-theme="light"] .news-latest-header h3,
[data-theme="light"] .news-compact-title,
[data-theme="light"] .news-feed-header h3,
[data-theme="light"] .news-card-title {
  color: #091426;
}

[data-theme="light"] .news-header-desc,
[data-theme="light"] .news-featured-summary,
[data-theme="light"] .news-card-summary,
[data-theme="light"] .news-meta-row,
[data-theme="light"] .news-compact-meta,
[data-theme="light"] .news-card-footer {
  color: #475569;
}

/* =========================================================
   RESPONSIVIDADE: TABLETS E CELULARES NA ÁREA DE NOTÍCIAS
   ========================================================= */

@media (max-width: 991px) {
  .news-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .news-featured-media {
    aspect-ratio: 16 / 10;
  }

  .news-teaser-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-teaser-action {
    width: 100%;
  }

  .news-teaser-action .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .news-page {
    padding: 24px 0 60px;
  }

  .news-header h1 {
    font-size: 2.2rem;
  }

  .news-header-desc {
    font-size: 0.98rem;
  }

  .news-featured-body {
    padding: 18px 18px 22px;
  }

  .news-featured-title {
    font-size: 1.35rem;
  }

  .news-latest-column {
    padding: 18px;
  }

  .news-compact-item {
    grid-template-columns: 84px 1fr;
    gap: 12px;
  }

  .news-compact-thumb {
    width: 84px;
    height: 64px;
  }

  .news-feed-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* =========================================================
   ANIMAÇÃO REVEAL SUAVE NOS CARDS (300ms, fade-in + 14px)
   ========================================================= */
.card-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.card-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .card-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}





