*,
::before,
::after {
    box-sizing: border-box;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif, Apple Color Emoji, "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    overflow-x: clip;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    gap: 2rem; /* Fixo ao invés de 3vw */
    grid-template-rows: auto 1fr auto;
    background-color: #f5f5f5; 
    color: #111;
}

a {
    color: currentColor;
}
/* ===== CONTAINERS GLOBAIS ===== */
.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 15px;
}
/* ===== BUSCA NAVE ===== */
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #262533;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px 0;
    transition: box-shadow 0.3s ease;
}

.nav-content.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #262533;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px;
    
}

.nav-links {
    flex: 1;
    margin-left: -60px;
    margin-right: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 4px 8px; 
    max-height: 80px;
}

.nav-logo-container {
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links a {
    flex: 0 1 auto;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Tipo Brasil Rounded', 'Inter', sans-serif;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover{
    background-color: rgba(255, 255, 255, 0.15);
    color: #94bd00;
    transform: translateY(-2px);
}

.nav-links a:active{
    transform: translateY(0);
}

.nav-content.fixed .nav-logo-container{
    opacity: 1;
}

.nav-logo-container img{
    height: 40px;
    width: auto;
}

.current-date {
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    background:rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 2px;
    transition: background-color 0.3s ease;
}

.search-form:hover, .search-form:focus-within {
    background: rgba(255, 255, 255, 0.15);
}

.search-input {
    background: transparent;
    border: none;
    padding: 8px 15px;
    color: #fff;
    outline: none;
    width: 200px;
    font-size: 14px;
    transition: width 0.3s ease;
}

.search-input::placeholder{
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus{
    width: 250px;
}

.search-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.3s ease;
}

.search-button:hover{
    background: rgba(255, 255, 255, 0.3);
}

.search-button svg{
    width: 16px;
    height: 16px;
}
/* ===== HEADER ===== */
.header-images {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
    max-width: 100%;
    min-width: 0;
}

.header-logo {
    max-width: min(300px, 100%);
    height: auto;
    flex-shrink: 0;
}

.site-header,
.site-footer {
    background-color: #262533;
    color: #fff;
    text-align: center;
}

.site-header .container,
.site-footer .container {
    margin: 0 auto;
    padding: 5px;
}

.social-icons i {
    font-size: 24px;
    margin: 0 10px;
}

.social-icons i:hover {
    color: #94bd00; 
}

.banner-header {
    flex: 1;
    min-width: 0;
    height: auto;
    margin-left: 12px;
    max-width: 100%;
}

.banner-header iframe,
.header-banner {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}


/* ===== NAVEGAÇÃO ===== */
.skip-link {
    position: absolute;
    top: -30px;
}

.skip-link:focus-visible {
    top: 5px;
}

/* ===== HOMEPAGE ===== */
.template-homepage main {
    text-align: center;
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.homepage-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    gap: 24px;
    margin-bottom: 10px;
    align-items: start;
}

.main-content {
    min-width: 0;
}


.hero-section {
    margin-bottom: 40px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hero-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.news-carousel {
    --carousel-interval: 7s;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    min-height: 420px;
    height: 100%;
    background: #d9dde6;
    isolation: isolate;
}

.carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.carousel-item.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.carousel-link {
    position: absolute;
    inset: 0;
    display: block;
    color: inherit;
    text-decoration: none;
}

.carousel-item picture,
.carousel-fallback,
.carousel-item .featured-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-item .featured-image {
    object-fit: cover;
    object-position: center center;
}

.carousel-blur {
    position: absolute;
    inset: -24px;
    width: calc(100% + 48px);
    height: calc(100% + 48px);
    object-fit: cover;
    filter: blur(28px) saturate(1.08);
    transform: scale(1.06);
    pointer-events: none;
}

.carousel-item.is-fit picture {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.carousel-item.is-fit .featured-image {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-fallback {
    background: linear-gradient(135deg, #3a456c 0%, #262533 100%);
}

.carousel-progress {
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    gap: 6px;
}

.progress-segment {
    flex: 1;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.progress-segment::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.38);
    border-radius: inherit;
}

.progress-segment .progress-bar {
    position: absolute;
    left: 0;
    top: 50%;
    height: 3px;
    width: 0;
    transform: translateY(-50%);
    background: #fff;
    border-radius: inherit;
    z-index: 1;
}

.progress-segment.is-complete .progress-bar {
    width: 100%;
}

.progress-segment.is-active .progress-bar {
    animation: carousel-fill var(--carousel-interval) linear forwards;
}

.news-carousel.is-paused .progress-segment.is-active .progress-bar {
    animation-play-state: paused;
}

@keyframes carousel-fill {
    to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-item {
        transition: none;
    }

    .progress-segment.is-active .progress-bar {
        animation: none;
        width: 100%;
    }
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    transition: background 0.2s ease, opacity 0.25s ease;
}

/* com mouse, as setas só aparecem ao passar sobre o carrossel */
@media (hover: hover) {
    .carousel-arrow {
        opacity: 0;
    }

    .news-carousel:hover .carousel-arrow,
    .carousel-arrow:focus-visible {
        opacity: 1;
    }
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
}

.carousel-arrow.prev {
    left: 14px;
}

.carousel-arrow.next {
    right: 14px;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 120px 32px 28px;
    color: #fff;
    text-align: left;
    background: linear-gradient(
        to top,
        rgba(10, 12, 20, 0.92) 0%,
        rgba(10, 12, 20, 0.66) 45%,
        rgba(10, 12, 20, 0) 100%
    );
}

.featured-overlay .category {
    display: inline-block;
    background: #94bd00;
    color: #10200a;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-transform: uppercase;
    text-shadow: none;
}
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.featured-overlay h2{
    max-width: 24em;
    font-size: 1.9rem;
    line-height: 1.16;
    margin: 0 0 10px 0;
    font-weight: 800;
    letter-spacing: -0.015em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 10px 24px rgba(0,0,0,0.35);
}

.featured-overlay .meta{
    max-width: 46em;
    font-size: 0.9rem;
    opacity: 0.88;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.carousel-link:hover .featured-overlay h2 {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.secondary-news{
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.secondary-item {
    background: white;
    padding: 15px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.secondary-item:hover,
.secondary-item.is-current {
    border-left-color: #007bff;
}

.secondary-item:hover {
    transform: translateX(5px);
}

.secondary-item.is-current {
    background: #f4f7ff;
}

.secondary-item h2 {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.secondary-item a {
    color: #333;
    text-decoration: none;
}

.secondary-item a:hover {
    color: #007bff;
}

.secondary-item .meta {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

/* ===== BANNER HORIZONTAL e RODAPÉ ===== */
.template-homepage .banner-section {
    grid-column: 1 / -1;
    margin: 20px 0;
    text-align: center;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    max-width: 100%;
    overflow: hidden;
}

.banner-section {
    text-align: center;
    margin: 20px 0;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    max-width: 100%;
    overflow: hidden;
}

.banner-section iframe {
    max-width: 100%;
    width: auto;
    border: none;
    border-radius: 8px;
}

.banner-container {
    width: 100%;
    max-width: 970px;
    margin: auto;
}

.banner-images {
    position: relative;
    width: 100%;
    height: 110px;
    overflow: hidden;
}

.banner-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 970px;
    height: auto;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s ease-in-out;
}

.banner-wrapper.active {
    opacity: 1;
    z-index: 10;
}

.banner-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.banner-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-container iframe {
    border: none;
    border-radius: 8px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}
/* ===== SEÇÕES DE CATEGORIAS ===== */
.news-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e3ea;
}

.section-header::before {
    content: "";
    flex: 0 0 5px;
    height: 24px;
    border-radius: 3px;
    background: #94bd00;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #001c3a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.section-more {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding-left: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: #0056b3;
}

.section-more::after {
    content: "›";
    margin-left: 5px;
    font-size: 1.15em;
    line-height: 1;
    transition: transform 0.2s ease;
}

.section-more:hover {
    text-decoration: underline;
}

.section-more:hover::after {
    transform: translateX(3px);
}

/* GRID ESPECÍFICA PARA CATEGORIAS */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-left: 4px solid #94bd00;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 28, 58, 0.06), 0 6px 18px rgba(0, 28, 58, 0.07);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 28, 58, 0.08), 0 12px 26px rgba(0, 28, 58, 0.13);
}

.category-name {
    min-width: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #14151c;
    transition: color 0.2s ease;
}

.category-row:hover .category-name {
    color: #0056b3;
}

.category-count {
    flex-shrink: 0;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    background: #e9effc;
    color: #0056b3;
}

/* páginas de listagem (categorias / tag): respiro acima do título */
main .container > .news-section:first-child {
    margin-top: 32px;
}

/* ===== NEWS GRID (listing pages) ===== */
.news-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    display: grid !important;
    gap: 25px;
}

.news-card {
    max-width: 100%;
    position: relative;
    background: #fff;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 28, 58, 0.06), 0 6px 18px rgba(0, 28, 58, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgba(0, 28, 58, 0.08), 0 14px 32px rgba(0, 28, 58, 0.14);
}

.news-card .meta {
    margin: 0;
    font-size: 0.78rem;
    color: #6b7080;
}

.news-card h2,
.news-card h2 a {
    color: #222;
    text-decoration: none;
    font-size: 1rem;
}

.news-card h2 a:hover {
    text-decoration: underline;
}

.news-card p {
    color: #333;
}

.news-card picture {
    display: block;
    line-height: 0;
}

.news-card-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.news-card-content{
    padding: 18px 20px 20px;
}

.news-card h3{
    font-size: 1.08rem;
    line-height: 1.28;
    margin: 0 0 8px 0;
    font-weight: 700;
    letter-spacing: -0.005em;
}

.news-card h3 a {
    color: #14151c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card:hover h3 a {
    color: #0056b3;
}

.news-card h3 a::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.news-card .intro {
    color: #4a4f5c;
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0 0 10px 0;
}

.news-card .tags{
    position: relative;
    z-index: 2;
}

.news-card .tags a{
    position: relative;
    z-index: 2;
}

/* ===== SIDEBAR ===== */
.sidebar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: fit-content;
    position: sticky;
    top: 20px;
    box-sizing: border-box;
}

.sidebar h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-news {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.sidebar-news-item {
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
}

.sidebar-news-item:last-child {
    border-bottom: none;
}

.sidebar-news-item h4 {
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.sidebar-news-item a {
    color: #333;
    text-decoration: none;
}

.sidebar-news-item a:hover {
    color: #007bff;
}

.sidebar-news-item .meta {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
}

.sidebar-banner {
    text-align: center;
    margin-top: 0;
    margin-bottom: 16px;
    width: 100%;
    overflow: hidden;
}

.sidebar-banner iframe {
    width: 300px;
    max-width: 100%;
    border: none;
    border-radius: 8px;
}

.template-homepage .sidebar-banner-img,
.template-homepage .sidebar-grid-img,
.template-newspage .sidebar-banner-img,
.template-newspage .sidebar-grid-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.template-homepage .sidebar-images-grid,
.template-newspage .sidebar-images-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== TAGS ===== */
.tags {
    margin-top: 20px;
}

.tags .tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    background: #e9effc;
    color: #3351b6;
    padding: 5px 12px;
    margin: 0 4px 6px 0;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.tags .tag:hover {
    background: #3351b6;
    color: #fff;
}

.news-card .tags {
    margin-top: 12px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px !important;
    border: 1.5px solid #0056b3;
    border-radius: 999px;
    font-size: 0.92rem !important;
    font-weight: 600;
    text-decoration: none;
    color: #0056b3;
    background: #fff;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-back:hover {
    background: #0056b3;
    color: #fff;
}

/* ===== COMPARTILHAR ===== */
.share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 20px;
}

.share-label {
    font-size: 0.9rem;
    color: #555;
    margin-right: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}

.share-btn:hover,
.share-btn:focus-visible {
    transform: scale(1.08);
    opacity: 0.9;
}

.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

.share-feedback {
    font-size: 0.85rem;
    color: #2e7d32;
}

/* ===== NEWS PAGE (artigo individual) ===== */

.template-newspage .article-container {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    max-width: none;
    margin: 0;
    padding: 24px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.template-newspage .content-wrapper {
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 16px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    box-sizing: border-box;
}

.template-newspage .article-container picture,
.template-newspage .article-container img {
    width: 100%;
    height: auto;
    display: block;
}

.template-newspage .article-container .main-image {
    margin-bottom: 24px;
}

.template-newspage .article-container .responsive-image {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: cover;
    object-position: center;
}

.template-newspage .article-container .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.template-newspage .article-container .gallery-responsive {
    border-radius: 6px;
    object-fit: cover;
}

.template-newspage .article-container h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

.template-newspage .article-container .meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1em;
}

.template-newspage .article-container .intro {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5em;
    color: #555;
}

.template-newspage .article-container .rich-text {
    line-height: 1.6;
    margin-bottom: 2em;
}

.template-newspage .article-container .caption {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5em;
}

.template-newspage .sidebar{
    width: min(300px, 100%);
    flex: 0 1 300px;
    min-width: 0;
    margin: 0;
    padding: 16px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 20px;
}

.template-newspage .sidebar-banner {
    margin-bottom: 20px;
}

.template-newspage .sidebar-section h3{
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.template-newspage .sidebar-news {
    list-style: none;
    padding: 0;
}

.template-newspage .sidebar-news-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.template-newspage .sidebar-news-item:last-child {
    border-bottom: none;
}

/* Banner horizontal - dentro do article */
.template-newspage .banner-section {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    text-align: center;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}


/* ===== AUTHORS SECTION ===== */
.template-newspage .article-container .authors-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    border-left: 4px solid #007bff;
}

.template-newspage .article-container .authors-section h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.template-newspage .article-container .authors-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.template-newspage .article-container .author-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.template-newspage .article-container .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    object-fit: cover;
}

.template-newspage .article-container .author-name {
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
}


/* ===== BUSCA ===== */
.template-searchresults main,
.template-newsindexpage main {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 16px 0;
}

.template-searchresults h1 {
    margin: 0 0 16px;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #001c3a;
}

.template-searchresults main > form {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.template-searchresults main > form input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #d5d9e2;
    border-radius: 12px;
    font-size: 16px;
    background: #fff;
    color: #14151c;
}

.template-searchresults main > form input[type="text"]:focus {
    outline: 2px solid #0056b3;
    outline-offset: 1px;
    border-color: transparent;
}

.template-searchresults main > form input[type="submit"] {
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #262533;
    color: #fff;
    cursor: pointer;
}

.template-searchresults main > form input[type="submit"]:hover {
    background: #0056b3;
}

.template-searchresults main > ul {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.template-searchresults main > ul li {
    position: relative;
    margin-bottom: 10px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 28, 58, 0.06), 0 6px 18px rgba(0, 28, 58, 0.07);
    font-size: 0.9rem;
    line-height: 1.45;
    color: #4a4f5c;
}

.template-searchresults main > ul h4 {
    margin: 0 0 4px;
    font-size: 1.02rem;
    line-height: 1.3;
}

.template-searchresults main > ul a {
    color: #14151c;
    text-decoration: none;
}

.template-searchresults main > ul a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.template-searchresults main > ul li:hover a {
    color: #0056b3;
}

.template-searchresults main > a {
    display: inline-block;
    margin-right: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #0056b3;
}

.template-searchresults main > a:hover {
    text-decoration: underline;
}

/* ===== RODAPÉ ===== */
.site-footer .container {
    padding: 30px 16px 26px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.social-icons i {
    margin: 0;
    font-size: 20px;
}

/* TABLET */
@media (min-width: 641px) and (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body {
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .template-newspage .article-container .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .homepage-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 250px);
        gap: 16px;
    }


    
    .hero-section {
        grid-template-columns: 1fr;
    }
    
    .secondary-news {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding: 10px 0;
    }
    
    .secondary-item {
        min-width: 250px;
        flex-shrink: 0;
    }
}
/* Elementos que só existem no layout mobile */
.search-close {
    display: none;
}

/* ===== MATÉRIA — leitura em telas grandes ===== */
@media (min-width: 769px) {
    .template-newspage .article-container {
        padding: 36px 40px 24px;
        border-radius: 14px;
    }

    /* texto numa coluna confortável; a foto e a galeria seguem na largura toda */
    .template-newspage .article-container > :not(.main-image):not(.gallery):not(.banner-section) {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    .template-newspage .article-container h1 {
        margin-top: 0;
        font-size: 2.3rem;
        line-height: 1.14;
        font-weight: 800;
        letter-spacing: -0.02em;
        color: #10111a;
    }

    .template-newspage .article-container .meta {
        color: #6b7080;
    }

    .template-newspage .article-container .main-image {
        margin: 8px 0 28px;
    }

    .template-newspage .article-container .responsive-image {
        border-radius: 12px;
    }

    .template-newspage .article-container .intro {
        padding-left: 18px;
        border-left: 4px solid #94bd00;
        font-size: 1.22rem;
        line-height: 1.5;
        color: #2c3040;
    }

    .template-newspage .article-container .rich-text {
        font-size: 1.12rem;
        line-height: 1.75;
        color: #1f2230;
    }

    .template-newspage .article-container .rich-text a {
        color: #0056b3;
    }

    .template-newspage .article-container .rich-text img {
        height: auto;
        border-radius: 10px;
    }

    .template-newspage .article-container .tags h3 {
        margin: 0 0 10px;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #6b7080;
    }
}

.nav-logo-link {
    display: block;
    line-height: 0;
}

/* ============================================================
   MOBILE — redesenho (até 768px)
   Paleta: #262533 marinho · #001c3a azul-noite · #0056b3 azul
           #3351b6 índigo · #94bd00 verde · #f5f5f5 fundo
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --m-bar: 56px;
        --m-tabs: 44px;
        --m-gutter: 16px;
        --m-ink: #14151c;
        --m-muted: #6b7080;
        --m-line: #e6e8ee;
        --m-card-shadow: 0 1px 2px rgba(0, 28, 58, 0.06), 0 6px 18px rgba(0, 28, 58, 0.06);
    }

    html {
        scroll-padding-top: calc(var(--m-bar) + var(--m-tabs) + 12px);
        -webkit-text-size-adjust: 100%;
    }

    body {
        gap: 16px;
        color: var(--m-ink);
        -webkit-tap-highlight-color: rgba(0, 86, 179, 0.12);
    }

    .container {
        padding: 0 var(--m-gutter);
    }

    /* ---------- Barra superior fixa ---------- */
    .site-header {
        padding-top: calc(var(--m-bar) + var(--m-tabs));
    }

    .site-header .container {
        padding: 0;
    }

    .nav-content,
    .nav-content.fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        height: var(--m-bar);
        padding: 0 8px 0 var(--m-gutter);
        gap: 8px;
        flex-direction: row;
        box-shadow: none;
        transition: box-shadow 0.25s ease;
    }

    .site-header.is-scrolled .nav-content {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    }

    .current-date {
        display: none;
    }

    .nav-logo-container {
        opacity: 1;
    }

    .nav-logo-container img {
        height: 36px;
        width: auto;
    }

    /* Faixa de seções: rola na horizontal e some ao descer a página */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: var(--m-tabs);
        max-height: none;
        margin: 0;
        padding: 0 8px;
        flex: none;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        background: #262533;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
        transition: transform 0.28s ease, opacity 0.2s ease, visibility 0.28s;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .site-header.nav-condensed .nav-links {
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        position: relative;
        padding: 0 12px;
        border-radius: 0;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        white-space: nowrap;
        color: rgba(255, 255, 255, 0.72);
    }

    .nav-links a:last-child {
        margin-right: 20px;
    }

    .nav-links a:hover {
        background: none;
        color: #fff;
        transform: none;
    }

    .nav-links a[aria-current="page"] {
        color: #fff;
    }

    .nav-links a[aria-current="page"]::after {
        content: "";
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 0;
        height: 3px;
        border-radius: 3px 3px 0 0;
        background: #94bd00;
    }

    /* Busca: o ícone abre o campo por cima da barra */
    .search-container {
        margin-left: auto;
    }

    .search-form {
        background: transparent;
        padding: 0;
    }

    .search-form:hover {
        background: transparent;
    }

    .search-input {
        display: none;
    }

    .search-button,
    .search-button:hover,
    .search-close {
        width: 44px;
        height: 44px;
        background: transparent;
        flex-shrink: 0;
    }

    .search-button svg,
    .search-close svg {
        width: 20px;
        height: 20px;
    }

    .nav-content.search-open .nav-logo-container {
        display: none;
    }

    .nav-content.search-open .search-container {
        flex: 1;
        margin: 0;
        min-width: 0;
    }

    .nav-content.search-open .search-form {
        flex: 1;
        min-width: 0;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 999px;
    }

    .nav-content.search-open .search-input,
    .nav-content.search-open .search-input:focus {
        display: block;
        flex: 1;
        min-width: 0;
        width: auto;
        order: 2;
        padding: 8px 4px;
        font-size: 16px; /* evita o zoom automático do iOS */
    }

    .nav-content.search-open .search-button {
        order: 1;
    }

    .nav-content.search-open .search-close {
        order: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        color: #fff;
        cursor: pointer;
    }

    /* Faixa do logo grande + anúncio do topo */
    .header-images {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 var(--m-gutter);
        overflow: hidden;
    }

    .header-images > * {
        margin: 12px 0 14px;
    }

    .header-logo {
        max-width: 190px;
        align-self: center;
        margin: 12px auto 0;
    }

    .site-header.has-nav-logo .header-logo {
        display: none;
    }

    .banner-header {
        width: 100%;
    }

    .header-banner {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    /* ---------- Banners ---------- */
    .banner-section,
    .template-homepage .banner-section,
    .template-newspage .banner-section {
        margin: 0 var(--m-gutter) 16px;
        width: auto;
        border-radius: 12px;
    }

    .template-homepage main main .banner-section {
        margin: 24px 0 8px;
    }

    .banner-section img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .banner-section iframe,
    .banner-container iframe {
        border: 0;
    }

    .banner-container {
        padding: 0 var(--m-gutter);
    }

    .banner-wrapper {
        left: 0;
        transform: none;
    }

    .banner-img {
        object-fit: contain;
    }

    /* ---------- Home ---------- */
    .template-homepage main {
        padding: 0;
        text-align: left;
    }

    .template-homepage main main {
        padding: 0 var(--m-gutter);
    }

    .template-homepage main main > .container {
        padding: 0;
    }

    .homepage-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        margin-bottom: 0;
    }

    .hero-section {
        background: none;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
        margin-bottom: 32px;
    }

    .hero-layout {
        display: block;
    }

    /* Altura pelo padding-top (e não aspect-ratio): o item de grid com
       aspect-ratio e filhos absolutos ficava com altura 0 no iOS. */
    .news-carousel {
        min-height: 0;
        height: auto;
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(0, 28, 58, 0.2);
        touch-action: pan-y;
    }

    .news-carousel::before {
        content: "";
        display: block;
        padding-top: 118%;
    }

    .carousel-arrow {
        display: none;
    }

    .carousel-progress {
        top: 8px;
        left: 14px;
        right: 14px;
        gap: 5px;
    }

    .featured-overlay {
        padding: 96px 18px 20px;
        text-align: left;
        background: linear-gradient(
            to top,
            rgba(10, 12, 20, 0.94) 0%,
            rgba(10, 12, 20, 0.72) 42%,
            rgba(10, 12, 20, 0) 100%
        );
    }

    .featured-overlay .category {
        background: #94bd00;
        color: #10200a;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        margin-bottom: 10px;
    }

    .featured-overlay h2 {
        font-size: 1.5rem;
        line-height: 1.16;
        font-weight: 800;
        letter-spacing: -0.015em;
        margin: 0 0 10px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
        overflow: hidden;
    }

    .featured-overlay .meta {
        font-size: 0.78rem;
        font-weight: 500;
        opacity: 0.8;
    }

    .featured-overlay .meta-intro {
        display: none;
    }

    .carousel-link:hover .featured-overlay h2 {
        color: #fff;
    }

    /* Destaques numerados logo abaixo do carrossel */
    .secondary-news {
        counter-reset: destaque;
        flex-direction: column;
        gap: 0;
        margin-top: 14px;
        padding: 2px 16px;
        overflow: visible;
        background: #fff;
        border-radius: 16px;
        box-shadow: var(--m-card-shadow);
    }

    .secondary-item,
    .secondary-item.is-current {
        counter-increment: destaque;
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        column-gap: 10px;
        min-width: 0;
        padding: 14px 0;
        background: none;
        border-left: 0;
        border-bottom: 1px solid var(--m-line);
    }

    .secondary-item:last-child {
        border-bottom: 0;
    }

    .secondary-item:hover {
        transform: none;
    }

    .secondary-item::before {
        content: counter(destaque, decimal-leading-zero);
        grid-row: 1 / span 2;
        font-size: 1.35rem;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -0.02em;
        color: #c5d2ee;
        transition: color 0.3s ease;
    }

    .secondary-item.is-current::before {
        color: #0056b3;
    }

    .secondary-item h2 {
        font-size: 0.98rem;
        line-height: 1.3;
        font-weight: 700;
        margin: 0 0 4px;
    }

    .secondary-item a,
    .secondary-item a:hover {
        color: var(--m-ink);
    }

    .secondary-item .meta {
        font-size: 0.74rem;
        color: var(--m-muted);
    }

    /* ---------- Cabeçalho de seção ---------- */
    .news-section {
        margin-bottom: 32px;
    }

    .section-header {
        gap: 10px;
        margin: 0 0 14px;
        padding: 0;
        border-bottom: 0;
    }

    .section-header::before {
        content: "";
        flex: 0 0 4px;
        height: 20px;
        border-radius: 2px;
        background: #94bd00;
    }

    .section-header h2 {
        font-size: 1.02rem;
        font-weight: 800;
        letter-spacing: 0.07em;
        color: #001c3a;
        text-align: left;
    }

    .section-more {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
        margin-left: auto;
        padding-left: 12px;
        font-size: 0.8rem;
        font-weight: 600;
        white-space: nowrap;
        text-decoration: none;
        color: #0056b3;
    }

    .section-more::after {
        content: "›";
        margin-left: 4px;
        font-size: 1.1em;
        line-height: 1;
    }

    .template-homepage main main > .container > .news-section:first-child,
    .template-newscategorypage .news-section:first-child {
        margin-top: 8px;
    }

    /* ---------- Cards de notícia ---------- */
    .news-grid,
    .template-homepage .news-grid,
    .news-section .news-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px;
    }

    /* padrão: linha compacta (texto + miniatura) */
    .news-card,
    .news-card:hover {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        border: 0;
        border-radius: 16px;
        background: #fff;
        box-shadow: var(--m-card-shadow);
        transform: none;
        transition: transform 0.15s ease;
    }

    .news-card:active {
        transform: scale(0.985);
    }

    .news-card picture {
        order: 2;
        padding: 12px 12px 12px 0;
        line-height: 0;
    }

    .news-card-image {
        width: 112px;
        height: 84px;
        border-radius: 10px;
    }

    .news-card-content {
        min-width: 0;
        padding: 14px;
    }

    .news-card h3 {
        font-size: 0.95rem;
        line-height: 1.3;
        font-weight: 700;
        margin: 0 0 6px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    .news-card h3 a,
    .news-card:hover h3 a {
        color: var(--m-ink);
    }

    .news-card .intro,
    .news-card .tags {
        display: none;
    }

    .news-card .meta {
        margin: 0;
        font-size: 0.74rem;
        color: var(--m-muted);
    }

    /* primeira de cada seção: card grande com a foto no topo */
    .news-grid > .news-card:first-child {
        display: block;
    }

    .news-grid > .news-card:first-child picture {
        display: block;
        padding: 0;
    }

    .news-grid > .news-card:first-child .news-card-image {
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 1;
        border-radius: 0;
    }

    .news-grid > .news-card:first-child .news-card-content {
        padding: 16px;
    }

    .news-grid > .news-card:first-child h3 {
        font-size: 1.2rem;
        line-height: 1.22;
        font-weight: 800;
        letter-spacing: -0.01em;
        margin-bottom: 8px;
        -webkit-line-clamp: 4;
    }

    .news-grid > .news-card:first-child .intro {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        margin: 0 0 10px;
        font-size: 0.92rem;
        line-height: 1.45;
        color: #4a4f5c;
    }

    .news-grid > .news-card:first-child .tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 12px;
    }

    /* ---------- Tags ---------- */
    .tags .tag,
    .tags .tag:hover {
        margin: 0;
        padding: 5px 11px;
        border-radius: 999px;
        font-size: 0.72rem;
        font-weight: 600;
        background: #e9effc;
        color: #3351b6;
    }

    .btn-back:hover {
        background: #fff;
        color: #0056b3;
    }

    /* ---------- Página de categorias ---------- */
    .categories-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .category-row,
    .category-row:hover {
        padding: 16px;
        transform: none;
    }

    .category-name {
        font-size: 0.95rem;
    }

    /* ---------- "Assuntos em alta" + anúncios laterais ---------- */
    .sidebar,
    .template-newspage .sidebar {
        display: block;
        position: static;
        width: 100%;
        flex: none;
        padding: 0;
        background: none;
        border-radius: 0;
        box-shadow: none;
        text-align: left;
    }

    .template-newspage .sidebar {
        padding: 0 var(--m-gutter);
    }

    .sidebar-banner,
    .sidebar-image-banner,
    .sidebar-images-grid {
        margin: 0 0 24px;
        text-align: center;
    }

    .sidebar-banner-img,
    .sidebar-grid-img {
        width: 100%;
        max-width: 420px;
        height: auto;
        border-radius: 12px;
    }

    .sidebar h3,
    .template-newspage .sidebar-section h3 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 14px;
        font-size: 1.02rem;
        font-weight: 800;
        letter-spacing: 0.07em;
        color: #001c3a;
    }

    .sidebar h3::before {
        content: "";
        flex: 0 0 4px;
        height: 20px;
        border-radius: 2px;
        background: #94bd00;
    }

    .sidebar-news,
    .template-newspage .sidebar-news {
        counter-reset: alta;
        margin: 0;
        padding: 2px 16px;
        background: #fff;
        border-radius: 16px;
        box-shadow: var(--m-card-shadow);
    }

    .sidebar-news-item,
    .template-newspage .sidebar-news-item {
        counter-increment: alta;
        display: grid;
        grid-template-columns: 26px minmax(0, 1fr);
        column-gap: 10px;
        padding: 14px 0;
        border-bottom: 1px solid var(--m-line);
    }

    .sidebar-news-item:last-child {
        border-bottom: 0;
    }

    .sidebar-news-item::before {
        content: counter(alta);
        grid-row: 1 / span 2;
        font-size: 1.15rem;
        font-weight: 800;
        line-height: 1.15;
        color: #94bd00;
    }

    .sidebar-news-item h4 {
        font-size: 0.95rem;
        line-height: 1.3;
        font-weight: 700;
        margin: 0 0 4px;
    }

    .sidebar-news-item a,
    .sidebar-news-item a:hover {
        color: var(--m-ink);
    }

    .sidebar-news-item .meta {
        font-size: 0.74rem;
        color: var(--m-muted);
    }

    /* ---------- Matéria ---------- */
    .template-newspage .content-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
        padding: 0;
    }

    .template-newspage .article-container {
        width: 100%;
        margin: 0;
        padding: 22px 18px 8px;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid var(--m-line);
        border-bottom: 1px solid var(--m-line);
    }

    .template-newspage .article-container h1 {
        margin: 0 0 10px;
        font-size: 1.65rem;
        line-height: 1.18;
        font-weight: 800;
        letter-spacing: -0.02em;
        color: #10111a;
    }

    .template-newspage .article-container .meta {
        margin: 0 0 14px;
        font-size: 0.8rem;
        color: var(--m-muted);
    }

    .share-buttons {
        margin: 0 0 18px;
    }

    .share-btn {
        width: 44px;
        height: 44px;
    }

    /* foto principal de ponta a ponta */
    .template-newspage .article-container .main-image {
        margin: 0 -18px 20px;
    }

    .template-newspage .article-container .responsive-image {
        border-radius: 0;
        box-shadow: none;
    }

    .template-newspage .article-container .caption {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .template-newspage .article-container .main-image .caption {
        margin: 8px 18px 0;
    }

    .template-newspage .article-container .intro {
        margin-bottom: 1.4em;
        padding-left: 14px;
        border-left: 3px solid #94bd00;
        font-size: 1.08rem;
        line-height: 1.5;
        font-weight: 500;
        color: #2c3040;
    }

    .template-newspage .article-container .rich-text {
        font-size: 1.06rem;
        line-height: 1.72;
        color: #1f2230;
        overflow-wrap: break-word;
    }

    .template-newspage .article-container .rich-text a {
        color: #0056b3;
    }

    .template-newspage .article-container .rich-text img {
        height: auto;
        border-radius: 10px;
    }

    .template-newspage .article-container iframe {
        max-width: 100%;
    }

    .template-newspage .article-container .gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .template-newspage .article-container .gallery-responsive {
        border-radius: 10px;
    }

    .template-newspage .article-container .tags h3 {
        margin: 0 0 10px;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--m-muted);
    }

    .template-newspage .tags-container {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .template-newspage .tags-container .tag {
        padding: 7px 13px;
        font-size: 0.8rem;
    }

    .template-newspage .article-container .authors-section {
        margin: 24px 0;
        padding: 14px 16px;
        border-left: 0;
        border-radius: 14px;
        background: #f3f5f9;
    }

    .template-newspage .article-container .authors-section h3 {
        margin-bottom: 6px;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--m-muted);
    }

    .template-newspage .article-container .author-avatar {
        width: 40px;
        height: 40px;
    }

    /* ---------- Busca ---------- */
    .template-searchresults main,
    .template-newsindexpage main {
        padding-top: 8px;
    }

    .template-searchresults h1 {
        font-size: 1.4rem;
    }

    .template-searchresults main > form input[type="submit"] {
        padding: 0 18px;
    }

    .social-icons a:hover {
        transform: none;
    }

    @media (prefers-reduced-motion: reduce) {
        .nav-links,
        .news-card {
            transition: none;
        }
    }
}

/* Telas bem estreitas */
@media (max-width: 360px) {
    .featured-overlay h2 {
        font-size: 1.3rem;
    }

    .news-card-image {
        width: 96px;
        height: 72px;
    }

    .template-newspage .article-container h1 {
        font-size: 1.45rem;
    }
}
