/* =====================================================
   RADAR CASA BRANCA — Portal de fiscalização política
   Paleta institucional: azul-marinho, vermelho-alerta, dourado
   ===================================================== */

:root {
    --rcb-navy:    #0a2540;
    --rcb-navy-2:  #0d2e52;
    --rcb-red:     #c8102e;
    --rcb-red-2:   #9a0c23;
    --rcb-gold:    #c8a45c;
    --rcb-paper:   #f8f5f0;
    --rcb-text:    #1a2030;
    --rcb-mute:    #6b7280;
    --rcb-line:    #e5e1d8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--rcb-paper);
    color: var(--rcb-text);
    line-height: 1.6;
}

a { color: var(--rcb-red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* === TOP BAR === */
.topbar {
    background: var(--rcb-navy);
    color: #d8dde6;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--rcb-gold);
    font-family: Arial, sans-serif;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #fff; margin-left: 18px; }
.topbar .breaking {
    background: var(--rcb-red);
    color: #fff;
    padding: 2px 8px;
    margin-right: 10px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 11px;
    letter-spacing: 1px;
}

/* === CONTAINER === */
.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* === HEADER (logo) === */
.site-header {
    background: #fff;
    padding: 22px 0;
    border-bottom: 4px double var(--rcb-navy);
}
.site-header .header-row {
    display: flex; align-items: center; justify-content: space-between;
}
.site-header .logo-img { height: 64px; width: auto; }
.site-header .header-aside {
    text-align: right;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: var(--rcb-mute);
    line-height: 1.4;
}
.site-header .header-aside strong { color: var(--rcb-navy); display: block; font-size: 13px; }

/* === NAV === */
.main-nav {
    background: var(--rcb-navy);
    padding: 0;
    box-shadow: inset 0 -3px 0 var(--rcb-gold);
}
.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
.main-nav li a {
    display: block;
    color: #fff;
    padding: 14px 20px;
    font-family: Arial, sans-serif;
    font-size: 12.5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-right: 1px solid rgba(255,255,255,0.12);
    transition: background 0.15s;
}
.main-nav li a:hover {
    background: var(--rcb-red);
    text-decoration: none;
}

/* === HERO / DESTAQUE === */
.hero {
    background: #fff;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(10,37,64,0.10);
    overflow: hidden;
    border-top: 3px solid var(--rcb-red);
}
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
}
.hero-main {
    position: relative;
    background: var(--rcb-navy);
}
.hero-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    opacity: 0.78;
}
.hero-main .hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(transparent, rgba(10,37,64,0.95));
    color: #fff;
}
.hero-main .hero-text h2 {
    font-size: 32px;
    margin-bottom: 10px;
    line-height: 1.18;
}
.hero-main .hero-text h2 a { color: #fff; }
.hero-main .hero-text .meta { font-size: 12px; color: #d8dde6; font-family: Arial, sans-serif; }
.badge {
    background: var(--rcb-red);
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: bold;
}

.hero-side { display: flex; flex-direction: column; }
.hero-side-item {
    flex: 1;
    position: relative;
    border-bottom: 1px solid var(--rcb-line);
    background: var(--rcb-navy);
}
.hero-side-item:last-child { border-bottom: none; }
.hero-side-item img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    opacity: 0.78;
}
.hero-side-item .hero-text {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(10,37,64,0.95));
    color: #fff;
}
.hero-side-item h3 { font-size: 16px; line-height: 1.3; }
.hero-side-item h3 a { color: #fff; }

/* === LAYOUT PRINCIPAL === */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* === SECTION TITLE === */
.section-title {
    border-bottom: 2px solid var(--rcb-navy);
    margin-bottom: 20px;
    padding-bottom: 0;
}
.section-title h2 {
    display: inline-block;
    background: var(--rcb-navy);
    color: #fff;
    padding: 9px 18px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    font-size: 13.5px;
    letter-spacing: 1.2px;
    margin-bottom: -2px;
    border-bottom: 3px solid var(--rcb-gold);
}

/* === NEWS CARDS === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.news-card {
    background: #fff;
    box-shadow: 0 1px 3px rgba(10,37,64,0.10);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border-bottom: 3px solid transparent;
}
.news-card:hover {
    transform: translateY(-3px);
    border-bottom-color: var(--rcb-red);
    box-shadow: 0 6px 14px rgba(10,37,64,0.15);
}
.news-card .thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #ddd;
}
.news-card .body { padding: 16px; }
.news-card .cat {
    color: var(--rcb-red);
    text-transform: uppercase;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}
.news-card h3 {
    font-size: 18px;
    line-height: 1.3;
    margin: 8px 0;
}
.news-card h3 a { color: var(--rcb-navy); }
.news-card .meta {
    color: var(--rcb-mute);
    font-size: 12px;
    font-family: Arial, sans-serif;
    margin-bottom: 8px;
}
.news-card p {
    color: #555;
    font-size: 14px;
}

/* === SIDEBAR === */
.sidebar .widget {
    background: #fff;
    margin-bottom: 25px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(10,37,64,0.08);
    border-top: 3px solid var(--rcb-navy);
}
.sidebar .widget-title {
    border-bottom: 2px solid var(--rcb-line);
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--rcb-navy);
}
.sidebar ul { list-style: none; }
.sidebar li { padding: 10px 0; border-bottom: 1px dashed var(--rcb-line); }
.sidebar li:last-child { border-bottom: none; }
.sidebar li a { color: var(--rcb-text); }
.sidebar .popular-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--rcb-line);
}
.sidebar .popular-item:last-child { border-bottom: none; }
.sidebar .popular-item img {
    width: 70px; height: 55px; object-fit: cover;
}
.sidebar .popular-item h4 { font-size: 13px; line-height: 1.3; color: var(--rcb-navy); }
.sidebar .popular-item .date { font-size: 11px; color: var(--rcb-mute); font-family: Arial; }

/* Manchete tipo "callout" */
.callout {
    background: var(--rcb-navy);
    color: #fff;
    padding: 18px 22px;
    margin: 0 0 25px;
    border-left: 5px solid var(--rcb-gold);
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 15px;
    line-height: 1.55;
}
.callout strong { color: var(--rcb-gold); font-style: normal; }

/* === FOOTER === */
.site-footer {
    background: var(--rcb-navy);
    color: #b8c0d0;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 4px solid var(--rcb-gold);
}
.site-footer h4 {
    color: #fff;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.2px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--rcb-red);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.footer-grid a { color: #d8dde6; }
.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 12px;
    font-family: Arial, sans-serif;
}

/* === FORMS / AUTH === */
.auth-box {
    max-width: 440px;
    margin: 60px auto;
    background: #fff;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(10,37,64,0.12);
    border-top: 5px solid var(--rcb-navy);
}
.auth-box h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--rcb-navy);
}
.form-group { margin-bottom: 15px; }
.form-group label {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--rcb-text);
    font-weight: bold;
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9c5bd;
    background: #fff;
    font-size: 14px;
    font-family: Arial, sans-serif;
    border-radius: 2px;
}
.form-control:focus {
    outline: none;
    border-color: var(--rcb-navy);
    box-shadow: 0 0 0 2px rgba(10,37,64,0.12);
}
textarea.form-control { min-height: 160px; resize: vertical; line-height: 1.55; }
.btn {
    display: inline-block;
    padding: 11px 20px;
    background: var(--rcb-navy);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    transition: background 0.15s;
}
.btn:hover { background: var(--rcb-navy-2); text-decoration: none; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 11px; }
.btn-secondary { background: #555; }
.btn-secondary:hover { background: #333; }
.btn-danger { background: var(--rcb-red); }
.btn-danger:hover { background: var(--rcb-red-2); }

.alert {
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}
.alert-error { background: #fdecef; color: var(--rcb-red-2); border-left: 3px solid var(--rcb-red); }
.alert-success { background: #ecf5ee; color: #1e6e3a; border-left: 3px solid #1e6e3a; }

/* === ADMIN === */
.admin-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 80px);
}
.admin-sidebar {
    background: var(--rcb-navy);
    color: #fff;
    padding: 20px 0;
}
.admin-sidebar h3 {
    padding: 0 20px 15px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #93a4bf;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar ul { list-style: none; margin-top: 10px; }
.admin-sidebar li a {
    display: block;
    color: #d8dde6;
    padding: 12px 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border-left: 3px solid transparent;
}
.admin-sidebar li a:hover,
.admin-sidebar li a.active {
    background: rgba(255,255,255,0.05);
    border-left-color: var(--rcb-red);
    color: #fff;
    text-decoration: none;
}
.admin-content {
    padding: 30px;
    background: var(--rcb-paper);
}
.admin-content h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--rcb-navy);
    font-family: Arial, sans-serif;
}

.table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(10,37,64,0.08);
}
.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--rcb-line);
    font-family: Arial, sans-serif;
    font-size: 14px;
}
.table th {
    background: #f1eee7;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11.5px;
    letter-spacing: 0.8px;
    color: var(--rcb-navy);
}
.table img.thumb-sm { width: 60px; height: 40px; object-fit: cover; }

.toolbar {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === NEWS DETAIL === */
.article {
    background: #fff;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(10,37,64,0.08);
    border-top: 3px solid var(--rcb-red);
}
.article h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--rcb-navy);
}
.article .meta {
    color: var(--rcb-mute);
    font-family: Arial, sans-serif;
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--rcb-line);
}
.article .featured-wrap {
    margin: 0 0 25px;
}
.article .featured {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}
.article .featured-credito {
    background: #f1eee7;
    color: var(--rcb-mute);
    font-family: Arial, sans-serif;
    font-size: 11.5px;
    padding: 8px 12px;
    border-left: 3px solid var(--rcb-gold);
    line-height: 1.4;
}
.article .content {
    font-size: 16.5px;
    line-height: 1.85;
    color: #2a2a35;
}
.article .content p:first-of-type::first-letter {
    font-size: 48px; float: left; line-height: 1; padding: 4px 8px 0 0;
    color: var(--rcb-red); font-weight: bold;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes pulseGold {
    0%, 100% { border-bottom-color: var(--rcb-gold); }
    50%      { border-bottom-color: var(--rcb-red); }
}

/* Topbar slide-in */
.topbar { animation: fadeIn 0.5s ease-out; }

/* Header logo + aside */
.site-header .logo-img { animation: slideInLeft 0.6s ease-out; }
.site-header .header-aside { animation: slideInRight 0.6s ease-out; }

/* Nav links stagger */
.main-nav li { animation: fadeInUp 0.4s ease-out both; }
.main-nav li:nth-child(1) { animation-delay: 0.05s; }
.main-nav li:nth-child(2) { animation-delay: 0.10s; }
.main-nav li:nth-child(3) { animation-delay: 0.15s; }
.main-nav li:nth-child(4) { animation-delay: 0.20s; }
.main-nav li:nth-child(5) { animation-delay: 0.25s; }
.main-nav li:nth-child(6) { animation-delay: 0.30s; }
.main-nav li:nth-child(7) { animation-delay: 0.35s; }
.main-nav li:nth-child(8) { animation-delay: 0.40s; }

/* Hero entrance */
.hero { animation: scaleIn 0.7s ease-out; }
.hero-main .hero-text { animation: fadeInUp 0.6s 0.3s ease-out both; }
.hero-side-item .hero-text { animation: fadeInUp 0.5s 0.5s ease-out both; }

/* Callout */
.callout { animation: slideInLeft 0.6s ease-out; }

/* Section titles */
.section-title { animation: fadeInUp 0.5s ease-out; }

/* News cards stagger */
.news-card { animation: fadeInUp 0.5s ease-out both; }
.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }
.news-card:nth-child(7) { animation-delay: 0.7s; }
.news-card:nth-child(8) { animation-delay: 0.8s; }

/* News card image zoom on hover */
.news-card .thumb { transition: transform 0.4s ease; }
.news-card:hover .thumb { transform: scale(1.05); }
.news-card { overflow: hidden; }

/* Sidebar widgets */
.sidebar .widget { animation: slideInRight 0.5s ease-out both; }
.sidebar .widget:nth-child(1) { animation-delay: 0.2s; }
.sidebar .widget:nth-child(2) { animation-delay: 0.4s; }

/* Sidebar popular items stagger */
.sidebar .popular-item { animation: fadeIn 0.4s ease-out both; }
.sidebar .popular-item:nth-child(1) { animation-delay: 0.3s; }
.sidebar .popular-item:nth-child(2) { animation-delay: 0.4s; }
.sidebar .popular-item:nth-child(3) { animation-delay: 0.5s; }
.sidebar .popular-item:nth-child(4) { animation-delay: 0.6s; }
.sidebar .popular-item:nth-child(5) { animation-delay: 0.7s; }

/* Badge pulse */
.badge { transition: transform 0.2s, background 0.2s; }
.badge:hover { transform: scale(1.08); background: var(--rcb-navy); }

/* Hero image subtle zoom */
.hero-main img, .hero-side-item img {
    transition: transform 0.6s ease, opacity 0.4s ease;
}
.hero-main:hover img, .hero-side-item:hover img {
    transform: scale(1.04);
    opacity: 0.9;
}

/* Article detail */
.article { animation: fadeInUp 0.6s ease-out; }
.article .featured-wrap { animation: scaleIn 0.5s 0.2s ease-out both; }

/* Footer slide-in */
.site-footer { animation: fadeIn 0.6s 0.3s ease-out both; }
.footer-grid > div { animation: fadeInUp 0.5s ease-out both; }
.footer-grid > div:nth-child(1) { animation-delay: 0.2s; }
.footer-grid > div:nth-child(2) { animation-delay: 0.35s; }
.footer-grid > div:nth-child(3) { animation-delay: 0.5s; }

/* Auth box */
.auth-box { animation: scaleIn 0.5s ease-out; }

/* Buttons */
.btn { transition: background 0.15s, transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(10,37,64,0.2); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* Admin dashboard cards */
.admin-content > div > div { animation: fadeInUp 0.4s ease-out both; }

/* Table rows */
.table tbody tr { transition: background 0.2s; }
.table tbody tr:hover { background: rgba(10,37,64,0.03); }

/* Smooth focus transitions */
.form-control { transition: border-color 0.2s, box-shadow 0.2s; }

/* Gold underline pulse on nav bar */
.main-nav { animation: pulseGold 3s ease-in-out infinite; }

/* Nav links underline slide */
.main-nav li a { position: relative; }
.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 3px;
    background: var(--rcb-gold);
    transition: left 0.3s, right 0.3s;
}
.main-nav li a:hover::after { left: 0; right: 0; }

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-grid, .main-content, .footer-grid, .news-grid, .admin-wrap {
        grid-template-columns: 1fr;
    }
    .site-header .logo-img { height: 50px; }
    .site-header .header-aside { display: none; }
    .main-nav ul { flex-direction: column; }
    .admin-sidebar { padding: 10px 0; }
    .article h1 { font-size: 24px; }
}
