:root {
    --primary-color: #FFC700;
    --primary-dark: #E0B200;
    --ink: #14161A;
    --text-color: #333;
    --muted: #6B7280;
    --line: #ECECEC;
    --light-bg: #f8f8f8;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-sm: 0 2px 10px rgba(20, 22, 26, 0.06);
    --shadow-md: 0 10px 30px rgba(20, 22, 26, 0.10);
    --font-display: 'Sora', Arial, sans-serif;
    --font-body: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }

/* =====================================================
   NAVBAR (igual ao restante do site)
===================================================== */
.site-header { position: sticky; top: 0; z-index: 1000; background-color: #fff; }

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img { height: 40px; width: auto; display: block; }

.nav-center { list-style: none; display: flex; gap: 32px; }

.nav-center a { text-decoration: none; font-weight: 600; color: #333; position: relative; }

.nav-center a::after {
    content: ''; width: 0; height: 2px;
    background-color: var(--primary-color);
    position: absolute; bottom: -6px; left: 0;
    transition: width 0.3s ease;
}

.nav-center a:hover::after { width: 100%; }

.btn-anuncie {
    padding: 5px 22px;
    background-color: #000;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-anuncie:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 196, 0, 0.4);
}

.menu-toggle {
    display: none;
    margin-left: 14px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu {
    position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh;
    background-color: #fff;
    z-index: 2000; padding: 30px;
    transition: right 0.3s ease;
}

.mobile-menu.open { right: 0; }
.mobile-menu ul { list-style: none; margin-top: 40px; }
.mobile-menu li { margin-bottom: 20px; }
.mobile-menu a { text-decoration: none; font-size: 18px; font-weight: 600; color: #111; }
.mobile-anuncie { display: inline-block; margin-top: 10px; padding: 12px 20px; background-color: #000; color: #fff; border-radius: 30px; }
.close-menu { background: none; border: none; font-size: 22px; cursor: pointer; }

.overlay {
    position: fixed; inset: 0;
    background-color: rgba(0,0,0,0.4);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.overlay.show { opacity: 1; pointer-events: all; }

/* Barra de progresso de leitura */
.progress-bar {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0%;
    background: var(--primary-color);
    z-index: 1500;
    transition: width 0.1s linear;
}

/* =====================================================
   ESTRUTURA
===================================================== */
.news-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 22px;
    text-transform: capitalize;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

.category-tag {
    background-color: var(--primary-color);
    color: var(--ink);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 16px;
}

.category-tag.small { font-size: 10px; padding: 3px 9px; margin-bottom: 8px; }

/* HEADER */
.news-header { margin-bottom: 30px; max-width: 820px; }

.news-title {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.news-lead {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 22px;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.author { display: flex; align-items: center; gap: 12px; }

.author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }

.author-name { font-weight: 700; display: block; font-size: 14px; }

.news-date { font-size: 0.85rem; color: var(--muted); }

.share-buttons { display: flex; gap: 10px; }

.share-buttons a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--light-bg);
    color: #555;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.share-buttons a:hover {
    background: var(--primary-color);
    color: #111;
    transform: translateY(-2px);
}

/* IMAGEM PRINCIPAL */
.news-cover { margin: 32px 0 44px; }

.news-cover img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}

/* CONTEÚDO */
.news-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 44px;
    align-items: start;
}

/* TEXTO */
.news-text { font-size: 1.05rem; }

.news-text p {
    line-height: 1.85;
    margin-bottom: 20px;
    text-align: justify;
    color: #292929;
}

.news-text h2, .news-text h3 { margin: 30px 0 14px; }

.news-text img { max-width: 100%; border-radius: var(--radius-md); margin: 10px 0; }

.news-text p:first-of-type::first-letter {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
    float: left;
    margin-right: 10px;
    margin-top: 6px;
    color: var(--ink);
    font-family: var(--font-display);
}

.news-references {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
    font-size: 0.85rem;
    color: var(--muted);
    text-align: left !important;
}

/* GALERIA */
.news-gallery {
    position: sticky;
    top: 100px;
}

.news-gallery h3 {
    font-size: 1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.news-gallery-grid {
    column-count: 2;
    column-gap: 12px;
}

.news-gallery-grid img {
    width: 100%;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    break-inside: avoid;
    cursor: pointer;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.news-gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* MODAL GALERIA */
.gallery-modal { position: fixed; inset: 0; display: none; z-index: 9999; }
.gallery-modal.active { display: block; }

.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
}

.gallery-content {
    position: relative;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}

.gallery-modal-img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.gallery-prev, .gallery-next {
    position: absolute;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.gallery-prev:hover, .gallery-next:hover { background: rgba(255,255,255,0.3); }
.gallery-prev { left: 40px; }
.gallery-next { right: 40px; }

.gallery-close {
    position: absolute;
    top: 30px; right: 40px;
    background: none; border: none;
    font-size: 2rem; color: #fff;
    cursor: pointer;
}

/* =====================================================
   VEJA TAMBÉM
===================================================== */
.see-more {
    max-width: 1100px;
    margin: 70px auto 0;
    padding: 40px 20px 0;
    border-top: 1px solid var(--line);
}

.see-more-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
}

.see-more-header h2 { font-size: 1.5rem; font-weight: 800; }
.see-more-header .icon { color: var(--primary-dark); font-size: 1.1rem; }

.see-more-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.see-more-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--light-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.see-more-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.see-more-image { height: 140px; overflow: hidden; }

.see-more-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }

.see-more-item:hover .see-more-image img { transform: scale(1.08); }

.see-more-content { padding: 14px; }

.see-more-content p {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--ink);
}

/* =====================================================
   FOOTER
===================================================== */
.footer-serrana { background-color: #ffffff; border-top: 1px solid #eee; padding: 40px 20px 24px; margin-top: 70px; }

.footer-container { max-width: 1200px; margin: 0 auto; text-align: center; }

.footer-logo img { max-width: 160px; margin-bottom: 24px; }

.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }

.footer-links a { font-size: 14px; color: #666; text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--primary-dark); }

.footer-copy p { font-size: 13px; color: #888; margin: 4px 0; }

.footer-dev a { color: #666; text-decoration: none; font-weight: 500; }
.footer-dev a:hover { color: var(--primary-dark); }

/* Voltar ao topo */
#backToTop {
    position: fixed; bottom: 20px; right: 20px;
    width: 40px; height: 40px; border-radius: 50%;
    border: none; background-color: var(--primary-color);
    color: #000; font-size: 13px; font-weight: bold;
    cursor: pointer; display: none;
    align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

#backToTop:hover { transform: translateY(-4px); }

/* =====================================================
   RESPONSIVIDADE
===================================================== */
@media (max-width: 992px) {
    .news-content { grid-template-columns: 1fr; }
    .news-gallery { position: static; }
    .news-gallery-grid { column-count: 3; }
    .see-more-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-center { display: none; }
    .menu-toggle { display: block; }
    .btn-anuncie { display: none; }

    .news-title { font-size: 1.8rem; }
    .news-cover img { max-height: 320px; }

    .gallery-prev { left: 10px; }
    .gallery-next { right: 10px; }
    .gallery-modal-img { max-width: 92%; max-height: 80%; }
}

@media (max-width: 600px) {
    .logo img { height: 34px; }
    .news-gallery-grid { column-count: 2; }
    .see-more-grid { grid-template-columns: 1fr 1fr; }
    .news-meta { align-items: flex-start; }
}