.artigos-page {
  --news-page-bg: #000000;
  --news-surface: #0d0d0d;
  --news-surface-strong: #121212;
  --news-card-border: rgba(255, 255, 255, 0.08);
  --news-copy: rgba(255, 255, 255, 0.86);
  --news-muted: rgba(255, 255, 255, 0.64);
  --news-panel-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

html.theme-light .artigos-page,
body.theme-light.artigos-page {
  --news-page-bg: #f6f7fb;
  --news-surface: #ffffff;
  --news-surface-strong: #ffffff;
  --news-card-border: rgba(15, 23, 42, 0.08);
  --news-copy: #334155;
  --news-muted: #64748b;
  --news-panel-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

html.theme-dark .artigos-page,
body.theme-dark.artigos-page {
  --news-page-bg: #000000;
  --news-surface: #0d0d0d;
  --news-surface-strong: #121212;
  --news-card-border: rgba(255, 255, 255, 0.08);
  --news-copy: rgba(255, 255, 255, 0.86);
  --news-muted: rgba(255, 255, 255, 0.64);
  --news-panel-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

html body.artigos-page,
html body.artigos-page main {
  background: var(--news-page-bg) !important;
}

html body.artigos-page main {
  padding: 38px clamp(18px, 3vw, 34px) 0;
}

.news-magazine-shell,
.artigos-row {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.news-magazine-shell {
  margin-top: 6px;
}

.news-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.78fr);
  gap: 26px;
  align-items: stretch;
}

.news-featured-main,
.news-latest-panel {
  background: var(--news-surface-strong);
  border: 1px solid var(--news-card-border);
  border-radius: 30px;
  box-shadow: var(--news-panel-shadow);
}

.news-featured-main {
  height: 560px;
  overflow: hidden;
}

.news-featured-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: #ffffff;
  text-decoration: none;
}

.news-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-featured-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 30px 30px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 6%, rgba(0, 0, 0, 0.56) 46%, rgba(0, 0, 0, 0.86) 100%);
}

.news-featured-title {
  margin: 14px 0 12px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-family: 'Montserrat', sans-serif;
}

.news-featured-meta,
.news-latest-copy p,
.news-card-meta {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

.news-featured-loading {
  margin: 0;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--news-muted);
  font-size: 1rem;
}

.news-latest-panel {
  padding: 28px 24px;
}

.news-latest-head {
  margin-bottom: 18px;
}

.news-latest-head h2 {
  margin: 0;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  letter-spacing: -0.03em;
}

.news-latest-list {
  display: grid;
  gap: 16px;
}

.news-latest-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
  transition: background 0.22s ease, transform 0.22s ease;
}

.news-latest-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

.news-latest-thumb {
  width: 112px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
}

.news-latest-copy h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.24;
  font-weight: 700;
}

.artigos-row {
  padding: 34px 0 0;
}

.news-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.news-section-kicker {
  margin: 0 0 10px;
  color: #E30613;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
}

.news-section-head h2 {
  margin: 0;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
  letter-spacing: -0.04em;
}

.news-results-meta {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.news-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 24px;
  padding: 0;
}

.news-status-banner {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(227, 6, 19, 0.24);
  background: rgba(227, 6, 19, 0.08);
  color: #ffffff;
  font-size: 0.94rem;
  line-height: 1.5;
}

.news-status-banner strong {
  color: #ffffff;
}

.news-status-banner.is-warning {
  border-color: rgba(255, 196, 0, 0.28);
  background: rgba(255, 196, 0, 0.08);
}

.news-status-banner.is-ok {
  border-color: var(--news-card-border);
  background: rgba(255, 255, 255, 0.04);
}

.news-filter {
  border: 1px solid var(--news-card-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  padding: 10px 16px;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.news-filter:hover,
.news-filter.active {
  background: #E30613;
  color: #ffffff;
  border-color: #E30613;
  transform: translateY(-1px);
}

.news-filter.is-disabled,
.news-filter:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 0 0 8px;
}

.news-grid .episode {
  background: var(--news-surface);
  border: 1px solid var(--news-card-border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--news-panel-shadow);
  transform: none;
}

.news-grid .episode:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(227, 6, 19, 0.18);
}

.news-card-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.news-cover {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  background: #111111;
}

.news-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.news-card-no-image {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card-no-image .news-card-body {
  padding-top: 24px;
}

.news-card-no-image::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #E30613, rgba(227, 6, 19, 0.24));
}

.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.news-badge-angola {
  background: rgba(227, 6, 19, 0.16);
  color: #ff8b94;
}

.news-badge-mundo {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.news-badge-podcast {
  background: rgba(227, 6, 19, 0.16);
  color: #ffffff;
}

.news-card-title {
  margin: 0 0 10px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.28rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.news-card-meta {
  margin: 0 0 12px;
}

.news-card-snippet {
  margin: 0 0 18px;
  color: var(--news-copy);
  font-size: 0.97rem;
  line-height: 1.62;
  flex: 1;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(227, 6, 19, 0.42);
  background:
    linear-gradient(135deg, rgba(227, 6, 19, 0.95), rgba(139, 0, 8, 0.95));
  color: #ffffff;
  text-decoration: none;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 14px 30px rgba(227, 6, 19, 0.24);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card-link:hover .news-read-more {
  border-color: #ff4d57;
  box-shadow: 0 18px 34px rgba(227, 6, 19, 0.34);
  transform: translateY(-1px);
}

.artigos-page .load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 240px;
  min-height: 58px;
  margin: 34px auto 0;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(227, 6, 19, 0.38);
  background:
    radial-gradient(circle at top, rgba(255, 80, 92, 0.28), transparent 55%),
    linear-gradient(135deg, #e30613 0%, #8a0008 100%);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: none;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.artigos-page .load-more::after {
  content: "\f078";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  font-size: 0.8rem;
}

.artigos-page .load-more:hover {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.08);
}

body[data-page="artigos.html"] .footer {
  margin-top: 0 !important;
}

body[data-page="artigos.html"] #site-footer {
  margin-top: 0;
  background: transparent;
}

html body.artigos-page main {
  padding-bottom: 0;
}

.artigos-row {
  padding-bottom: 24px;
}

body.theme-light .news-featured-main,
body.theme-light .news-latest-panel,
body.theme-light .news-grid .episode {
  background: #ffffff;
}

body.theme-light .news-latest-head h2,
body.theme-light .news-latest-copy h3,
body.theme-light .news-section-head h2,
body.theme-light .news-card-title {
  color: #111827;
}

body.theme-light .news-featured-meta {
  color: rgba(255, 255, 255, 0.9);
}

body.theme-light .news-latest-copy p,
body.theme-light .news-card-meta {
  color: #64748b;
}

body.theme-light .news-latest-item:hover {
  background: rgba(15, 23, 42, 0.04);
}

body.theme-light .news-filter {
  background: rgba(15, 23, 42, 0.03);
  color: #111827;
}

body.theme-light .news-results-meta {
  color: #475569;
}

body.theme-light .news-badge-angola {
  background: rgba(227, 6, 19, 0.1);
  color: #E30613;
}

body.theme-light .news-badge-mundo {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

body.theme-light .news-badge-podcast {
  background: rgba(227, 6, 19, 0.1);
  color: #E30613;
}

body.theme-light .news-read-more {
  color: #ffffff;
  background: linear-gradient(135deg, #e30613 0%, #8a0008 100%);
}

body.theme-light .news-card-link:hover .news-read-more {
  color: #ffffff;
}

body.theme-light .artigos-page .load-more {
  color: #ffffff;
}

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

  .news-featured-main {
    height: 500px;
  }

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

@media (max-width: 820px) {
  html body.artigos-page main {
    padding-top: 24px;
  }

  .news-featured-main {
    height: 430px;
  }

  .news-featured-overlay {
    padding: 22px 22px 24px;
  }

  .news-latest-panel {
    padding: 20px 18px;
  }

  .news-latest-item {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
  }

  .news-latest-thumb {
    width: 94px;
    height: 74px;
  }
}

@media (max-width: 640px) {
  html body.artigos-page main {
    padding-inline: 14px;
  }

  .news-featured-main {
    height: 360px;
    border-radius: 24px;
  }

  .news-latest-panel {
    border-radius: 24px;
  }

  .news-section-head {
    margin-bottom: 18px;
  }

  .news-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-cover {
    height: 218px;
  }

  .news-card-title {
    font-size: 1.16rem;
  }
}

@media (max-width: 480px) {
  html body.artigos-page main {
    padding-inline: 10px;
    padding-top: 18px;
  }

  .news-magazine-shell,
  .artigos-row {
    width: 100%;
  }

  .news-hero-grid {
    gap: 16px;
  }

  .news-featured-main {
    height: 250px;
    border-radius: 22px;
  }

  .news-featured-overlay {
    padding: 16px 16px 18px;
  }

  .news-featured-title {
    font-size: 1.28rem;
    line-height: 1.12;
  }

  .news-latest-panel {
    padding: 16px 12px;
    border-radius: 22px;
  }

  .news-latest-head h2,
  .news-section-head h2 {
    font-size: 1.05rem;
    line-height: 1.08;
  }

  .news-latest-item {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 6px;
    gap: 12px;
    border-radius: 16px;
  }

  .news-latest-thumb {
    width: 88px;
    height: 68px;
    border-radius: 12px;
  }

  .news-latest-copy h3 {
    font-size: 0.92rem;
    line-height: 1.18;
  }

  .news-filter {
    width: 100%;
    padding: 10px 10px;
    font-size: 0.82rem;
    text-align: center;
  }

  .news-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
    margin-bottom: 18px;
  }

  .news-grid {
    gap: 16px;
  }

  .news-grid .episode {
    display: block;
    border-radius: 22px;
    overflow: hidden;
  }

  .news-grid .episode.news-card-no-image {
    display: block;
  }

  .news-grid .episode.news-card-no-image::before {
    height: 4px;
  }

  .news-cover {
    width: 100%;
    height: 220px;
    border-radius: 0;
    object-fit: cover;
    object-position: center center;
  }

  .news-card-body {
    padding: 16px 14px 16px;
  }

  .news-badge {
    min-height: 24px;
    padding: 0 9px;
    margin-bottom: 8px;
    font-size: 0.63rem;
  }

  .news-card-title {
    font-size: 0.98rem;
    margin-bottom: 8px;
    line-height: 1.14;
  }

  .news-card-meta {
    font-size: 0.78rem;
    margin-bottom: 8px;
  }

  .news-card-snippet {
    font-size: 0.88rem;
    line-height: 1.46;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-read-more {
    align-self: flex-start;
    padding: 8px 12px;
    font-size: 0.84rem;
  }
}

.news-featured-no-image {
  background:
    radial-gradient(circle at top left, rgba(227, 6, 19, 0.22), transparent 42%),
    linear-gradient(135deg, #141414 0%, #232323 100%);
}

body.theme-light .news-featured-no-image {
  background:
    radial-gradient(circle at top left, rgba(227, 6, 19, 0.18), transparent 42%),
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.news-latest-item.news-card-no-image,
.news-grid .episode.news-card-no-image {
  background:
    linear-gradient(180deg, rgba(227, 6, 19, 0.06), rgba(255, 255, 255, 0));
}


/* Compact article listing cards */
body[data-page="artigos.html"] .news-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

body[data-page="artigos.html"] .news-grid .episode {
  border-radius: 20px;
}

body[data-page="artigos.html"] .news-grid .episode:hover {
  transform: translateY(-3px);
}

body[data-page="artigos.html"] .news-cover {
  height: 160px;
}

body[data-page="artigos.html"] .news-card-body {
  min-height: 214px;
  padding: 14px 14px 16px;
}

body[data-page="artigos.html"] .news-card-title {
  font-size: 1.04rem;
  line-height: 1.22;
  margin-bottom: 8px;
}

body[data-page="artigos.html"] .news-card-meta {
  margin-bottom: 8px;
  font-size: 0.78rem;
}

body[data-page="artigos.html"] .news-card-snippet {
  margin-bottom: 12px;
  font-size: 0.88rem;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-page="artigos.html"] .news-read-more {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.84rem;
}

@media (max-width: 700px) {
  body[data-page="artigos.html"] .news-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="artigos.html"] .news-cover {
    height: 190px;
  }
}

/* Smaller featured article area */
body[data-page="artigos.html"] .news-hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 18px;
}

body[data-page="artigos.html"] .news-featured-main {
  height: 460px;
  border-radius: 24px;
}

body[data-page="artigos.html"] .news-featured-overlay {
  padding: 22px 24px 24px;
}

body[data-page="artigos.html"] .news-featured-title {
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  margin: 10px 0 8px;
}

body[data-page="artigos.html"] .news-featured-loading {
  min-height: 220px;
}

@media (max-width: 980px) {
  body[data-page="artigos.html"] .news-hero-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="artigos.html"] .news-featured-main {
    height: 360px;
  }
}

@media (max-width: 560px) {
  body[data-page="artigos.html"] .news-featured-main {
    height: 280px;
  }
}

/* Default article logo covers adapt to the active theme */
.news-featured-image[data-default-article-cover="true"],
.news-latest-thumb[data-default-article-cover="true"],
.news-cover[data-default-article-cover="true"] {
  object-fit: contain;
  object-position: center;
  padding: clamp(20px, 4vw, 46px);
  background: #050505;
}

.news-latest-thumb[data-default-article-cover="true"] {
  padding: 16px;
}

body.theme-light .news-featured-image[data-default-article-cover="true"],
body.theme-light .news-latest-thumb[data-default-article-cover="true"],
body.theme-light .news-cover[data-default-article-cover="true"],
html.theme-light body .news-featured-image[data-default-article-cover="true"],
html.theme-light body .news-latest-thumb[data-default-article-cover="true"],
html.theme-light body .news-cover[data-default-article-cover="true"] {
  background: linear-gradient(145deg, #ffffff 0%, #f3f6fb 100%);
}

body.theme-dark .news-featured-image[data-default-article-cover="true"],
body.theme-dark .news-latest-thumb[data-default-article-cover="true"],
body.theme-dark .news-cover[data-default-article-cover="true"],
html.theme-dark body .news-featured-image[data-default-article-cover="true"],
html.theme-dark body .news-latest-thumb[data-default-article-cover="true"],
html.theme-dark body .news-cover[data-default-article-cover="true"] {
  background: radial-gradient(circle at center, #1a1a1a 0%, #050505 72%);
}

body[data-page="artigos.html"] .news-cover[data-default-article-cover="true"] {
  padding: 24px 34px;
}