/* ==========================================================================
   leoecia.com — Design System Unificado e Responsivo
   Unifica estilos/estilo.txt, txts/estilo_*.txt e ddlevelsmenu.css
   ========================================================================== */

:root {
    --bg-page: #e3e3e3;
    --bg-surface: #ffffff;
    --bg-muted: #f4f4f5;
    --text-main: #252525;
    --text-muted: #666666;
    --brand-red: #cc0000;
    --brand-red-dark: #990000;
    --brand-blue: #00248e;
    --nav-bg: #222222;
    --border-color: #d4d4d8;
    --border-dark: #424242;
    --radius: 6px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --container-max: 1140px;
}

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand-red);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
}

.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.text-muted { color: var(--text-muted); }

/* ==========================================================================
   CABEÇALHO E NAVEGAÇÃO PRINCIPAL (Substitui cab_principal.asp + ddlevelsmenu)
   ========================================================================== */
.site-header {
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-dark);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
}

.site-logo img {
    max-height: 82px;
    width: auto;
}

.logo-text-fallback {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
}
.logo-text-fallback span { color: var(--brand-red); }
.logo-text-fallback small {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
}

.header-search {
    display: flex;
    gap: 6px;
    max-width: 360px;
    width: 100%;
}

.header-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #b0b0b0;
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: #fff;
}

.header-search button {
    padding: 8px 14px;
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
}
.header-search button:hover {
    background: var(--brand-red-dark);
}

.main-nav {
    background: var(--nav-bg);
    background-image: linear-gradient(to bottom, #333333, #1b1b1b);
    color: #fff;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    padding: 11px 16px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.92rem;
    text-transform: lowercase;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-list > li > a:hover,
.nav-list > li:hover > a {
    background: var(--brand-red);
    color: #fff;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #ffffff;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-md);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 1000;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 14px;
    color: var(--text-main);
    font-size: 0.88rem;
    border-bottom: 1px dotted #e5e5e5;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
    color: var(--brand-red);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.mobile-menu-toggle {
    display: none;
    background: var(--nav-bg);
    border: none;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 4px 0;
}

/* ==========================================================================
   CORPO PRINCIPAL DO SITE (.bpagprinc modernizado)
   ========================================================================== */
.site-main {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-dark);
    padding: 20px;
    min-height: 75vh;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dotted #b0b0b0;
    padding-bottom: 5px;
    margin-bottom: 12px;
}

.section-title {
    margin: 0;
    font-size: 1.05rem;
    color: #666666;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.section-more {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-red);
}

/* ==========================================================================
   CAPA DO PORTAL (HOME GRID)
   ========================================================================== */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 24px;
}

.headline-row {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 20px;
}

/* Manchete Principal */
.main-feature-card {
    margin-bottom: 18px;
}

.main-feature-img-wrap {
    position: relative;
    border: 1px solid #c2c2c2;
    padding: 4px;
    background: #fff;
    overflow: hidden;
}

.main-feature-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.main-feature-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.76);
    color: #fff;
    padding: 10px 14px;
    border-radius: 4px;
}

.badge-ref {
    display: inline-block;
    background: var(--brand-red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 4px;
}

.main-feature-title {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.main-feature-noimg {
    padding: 16px;
    background: var(--bg-muted);
    border-left: 4px solid var(--brand-red);
}
.main-feature-noimg .main-feature-title {
    color: var(--brand-red);
}

.photo-credit {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}

/* Submanchetes (segunda, terceira, quarta, quinta) */
.secondary-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.secondary-news-item {
    border-bottom: 1px dotted #999;
    padding-bottom: 10px;
}

.secondary-news-item.with-thumb {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sec-thumb-link img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border: 1px solid #ccc;
    flex-shrink: 0;
}

.news-kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-red-dark);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.sec-title {
    margin: 0 0 4px 0;
    font-size: 1.08rem;
    line-height: 1.15;
    letter-spacing: -0.4px;
}

.sec-title a {
    color: #333333;
    font-weight: 700;
}

.sec-title a:hover {
    color: var(--brand-red);
}

.sec-lead {
    margin: 0;
    font-size: 0.82rem;
    color: #333;
}

.news-footer-bar {
    margin-top: 10px;
    text-align: right;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.link-all-news {
    font-weight: 700;
    color: var(--text-main);
}

/* Carrossel de Coberturas (Substitui fadeslideshow.js) */
.coverage-slider {
    border: 1px solid var(--border-color);
    background: #111;
    border-radius: var(--radius);
    overflow: hidden;
}

.slider-Stage {
    position: relative;
    aspect-ratio: 4 / 3;
    width: 100%;
}

.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
    display: block;
}

.slide-item.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
    color: #fff;
    padding: 20px 12px 10px;
    display: flex;
    flex-direction: column;
}

.slide-caption strong {
    font-size: 0.95rem;
}

.slide-caption span {
    font-size: 0.78rem;
    color: #ddd;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #1f1f1f;
}

.slider-btn {
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.slider-dots {
    display: flex;
    gap: 6px;
}

.slider-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: #555;
    cursor: pointer;
    padding: 0;
}

.slider-dots .dot.active {
    background: var(--brand-red);
}

/* Rápidas & Cards Compactos */
.rapidas-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rapida-card {
    background: var(--bg-muted);
    padding: 10px 12px;
    border-radius: var(--radius);
    border-left: 3px solid var(--brand-red);
}

.rapida-title {
    font-weight: 700;
    color: var(--brand-red);
    font-size: 0.92rem;
}

.rapida-meta {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.rapida-text {
    font-size: 0.82rem;
}

.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.news-card-compact {
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius);
    background: #fff;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.news-date {
    font-size: 0.75rem;
    color: var(--brand-blue);
    font-weight: 700;
}

.news-card-title {
    margin: 0 0 6px 0;
    font-size: 0.98rem;
    line-height: 1.25;
}

.news-card-lead {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ==========================================================================
   BARRA LATERAL (MAIS LIDAS, COLUNISTAS, AGENDA, CURIOSIDADES)
   ========================================================================== */
.sidebar-widget {
    margin-bottom: 22px;
}

.most-read-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.most-read-list li {
    font-size: 0.88rem;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 6px;
}

.most-read-list li a {
    color: var(--text-main);
    font-weight: 600;
    display: block;
}

.most-read-list li a:hover {
    color: var(--brand-red);
}

.most-read-list li small {
    color: var(--text-muted);
    font-size: 0.74rem;
}

.columnist-item,
.trivia-item {
    border-bottom: 1px dotted #999;
    padding: 7px 0;
    font-size: 0.85rem;
}

.columnist-author {
    display: block;
    font-size: 0.76rem;
    color: var(--brand-red-dark);
    font-weight: 700;
}

.columnist-title {
    color: var(--text-main);
    font-weight: 700;
}

.trivia-year {
    color: var(--brand-red-dark);
}

.agenda-card {
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    background: var(--bg-muted);
    font-size: 0.82rem;
}

.agenda-day {
    font-weight: 700;
    color: var(--text-main);
}

.agenda-event {
    font-weight: 700;
    color: var(--brand-red-dark);
}

/* ==========================================================================
   PÁGINAS INTERNAS (NOTÍCIAS, MORENO, COLUNISTAS, CONTATO)
   ========================================================================== */
.breadcrumb {
    font-size: 0.88rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.breadcrumb span {
    color: var(--brand-red-dark);
    margin: 0 4px;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 28px;
}

.page-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-dark);
    padding-bottom: 8px;
}

.page-title-bar h1 {
    margin: 0;
    font-size: 1.45rem;
    color: var(--brand-red);
}

.badge-count {
    background: var(--bg-muted);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.archive-news-item {
    border-bottom: 1px dotted #bdbdbd;
    padding: 12px 0;
}

.archive-news-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 3px;
}

.archive-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-blue);
}

.archive-news-title {
    margin: 0 0 4px 0;
    font-size: 1.15rem;
}

.archive-news-lead {
    margin: 0;
    font-size: 0.88rem;
    color: #333;
}

/* Exibição de Artigo / Notícia */
.article-title {
    margin: 4px 0 8px 0;
    font-size: 1.75rem;
    line-height: 1.2;
    color: var(--brand-red);
    letter-spacing: -0.6px;
}

.article-subtitle {
    margin: 0 0 12px 0;
    font-size: 1.02rem;
    color: var(--text-muted);
}

.article-byline {
    font-size: 0.85rem;
    color: #444;
    padding: 8px 0;
    border-top: 1px dotted #999;
    border-bottom: 1px dotted #999;
    margin-bottom: 12px;
}

.article-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-tool {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.82rem;
    border: 1px solid var(--border-color);
    background: var(--bg-muted);
    color: var(--text-main);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.article-main-figure {
    margin: 0 0 18px 0;
    border: 1px solid #ccc;
    padding: 6px;
    background: #fafafa;
}

.article-main-figure figcaption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: right;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1a1a1a;
    overflow-wrap: break-word;
}

.article-body img {
    margin: 12px auto;
    border: 1px solid #ccc;
    padding: 4px;
}

/* ==========================================================================
   GALERIA DE COBERTURAS FOTOGRÁFICAS (/coberturas) & LIGHTBOX
   ========================================================================== */
.coverage-stats-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    padding-right: 18px;
    border-right: 1px solid var(--border-color);
}

.stat-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #059cd7;
}

.stat-value {
    font-size: 1.35rem;
    color: var(--text-main);
}

.coverage-search-form {
    flex: 1;
    display: flex;
    gap: 8px;
    min-width: 260px;
}

.coverage-search-form input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #bbb;
    border-radius: var(--radius);
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

.album-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.album-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.album-card-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #222;
    overflow: hidden;
}

.album-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-photo-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.album-card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.album-card-title {
    margin: 0 0 6px 0;
    font-size: 1rem;
}

.album-card-title a {
    color: var(--text-main);
}
.album-card-title a:hover {
    color: var(--brand-red);
}

.album-card-desc {
    margin: 0 0 10px 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex: 1;
}

.album-card-meta {
    font-size: 0.76rem;
    color: #555;
    border-top: 1px dotted #ddd;
    padding-top: 6px;
}

/* Álbum Individual */
.album-header-box {
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.album-header-box h1 {
    margin: 0 0 6px 0;
    font-size: 1.45rem;
    color: var(--brand-red);
}

.album-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    margin-top: 8px;
}

.album-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.album-photo-item {
    margin: 0;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
    background: #fff;
}

.album-photo-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: zoom-in;
}

.photo-caption-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-top: 5px;
    text-align: center;
}

.albums-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.album-compact-card {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 4px;
    color: var(--text-main);
}

.album-compact-card img {
    width: 68px;
    height: 52px;
    object-fit: cover;
    flex-shrink: 0;
}

.album-compact-card small {
    display: block;
    color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox-modal.open {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 88vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    margin: 0 auto;
    border: 2px solid #fff;
}

.lightbox-caption {
    color: #fff;
    margin-top: 10px;
    font-size: 0.95rem;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 2.2rem;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 4px;
}
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

/* ==========================================================================
   MORENO (PREFEITOS, ELEIÇÕES, SEÇÕES, TELEFONES, HINO HTML5)
   ========================================================================== */
.moreno-nav-pills,
.election-year-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    align-items: center;
}

.pill-link {
    padding: 5px 11px;
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-main);
    font-weight: 600;
}

.pill-link.active,
.pill-link:hover {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red);
    text-decoration: none;
}

.audio-player-box {
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: var(--radius);
    margin: 14px 0;
}

.html5-audio {
    width: 100%;
    margin-top: 8px;
}

.mayors-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mayor-card {
    display: flex;
    gap: 16px;
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: var(--radius);
    background: #fff;
}

.mayor-photo img {
    width: 110px;
    height: 135px;
    object-fit: cover;
    border: 1px solid #ccc;
}

.mayor-info h2 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.mayor-year {
    color: var(--brand-red);
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 10px;
}

.candidate-card {
    background: #f5f3f2;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.candidate-card.elected {
    border-color: #16a34a;
    background: #f0fdf4;
}

.candidate-name {
    font-weight: 700;
    color: var(--text-main);
}

.candidate-party {
    color: var(--brand-red-dark);
    font-size: 0.8rem;
}

.badge-elected {
    display: inline-block;
    margin-top: 4px;
    background: #16a34a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
}

.secao-card,
.phone-card {
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.phones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.phone-card h3 {
    margin: 0 0 4px 0;
    font-size: 0.98rem;
}

.phone-number {
    font-weight: 700;
    color: var(--brand-red-dark);
}

/* ==========================================================================
   VÍDEOS, COMENTÁRIOS, FORMULÁRIOS E PAGINAÇÃO
   ========================================================================== */
.video-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 760px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}

.video-player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.video-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text-main);
    background: #fff;
}

.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
}

.video-info {
    padding: 10px;
}
.video-info h3 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
}
.video-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Paginação */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
    justify-content: center;
}

.page-link {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.86rem;
    background: #fff;
}

.page-link.active {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red);
}

/* Formulários e Comentários */
.comment-card {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    background: var(--bg-muted);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #bbb;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
}

.btn-primary {
    display: inline-block;
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary:hover {
    background: var(--brand-red-dark);
    color: #fff;
    text-decoration: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.btn-danger-sm {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 0.78rem;
    cursor: pointer;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #16a34a;
    color: #14532d;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #dc2626;
    color: #7f1d1d;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

/* Tabelas e Painel Administrativo */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table th,
.data-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.data-table th {
    background: var(--bg-muted);
    font-weight: 700;
}

.admin-header {
    background: #18181b;
    color: #fff;
    padding: 12px 0;
}

.admin-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-brand a {
    color: #fff;
    font-size: 1.15rem;
    text-decoration: none;
}
.admin-brand span {
    color: #a1a1aa;
    font-size: 0.88rem;
    margin-left: 6px;
}

.admin-nav {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-nav a {
    color: #e4e4e7;
    font-size: 0.88rem;
    font-weight: 600;
}

.admin-main {
    background: #fff;
    padding: 24px;
    min-height: 80vh;
}

.admin-login-box {
    max-width: 420px;
    margin: 40px auto;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius);
    background: var(--bg-muted);
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.stat-card {
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius);
    background: var(--bg-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card strong {
    font-size: 1.6rem;
    color: var(--brand-red);
}

.admin-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-panel-box {
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius);
    background: #fff;
}

/* Rodapé */
.site-footer {
    padding: 18px 0 30px;
    font-size: 0.82rem;
    color: #333;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.footer-links a {
    color: var(--text-main);
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLET — Substitui a pasta /movel/)
   ========================================================================== */
@media (max-width: 960px) {
    .home-grid,
    .content-with-sidebar,
    .admin-two-cols {
        grid-template-columns: 1fr;
    }

    .headline-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-top {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        max-width: 100%;
    }

    .main-nav {
        display: none;
    }

    .main-nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .dropdown-menu {
        position: static;
        display: none;
        background: #2b2b2b;
        border: none;
    }

    .dropdown-menu li a {
        color: #ddd;
        border-bottom-color: #3d3d3d;
        padding-left: 28px;
    }

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

    .mayor-card {
        flex-direction: column;
    }
}
