/*
Theme Name: Radar Agro
Theme URI: https://radaragroonline.com.br
Author: Radar Agro
Description: Tema personalizado estilo portal de notícias
Version: 1.0
*/

:root {
    --primary-color: #001015;
    --accent-color: #98CF00;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --bg-light: #F1F5F9;
    --bg-body: #F6F8F7;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Tipografia e Utilidades */
a { text-decoration: none; color: inherit; }
.text-uppercase { text-transform: uppercase; letter-spacing: 1px; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* Header & Ticker (Ajustes para o seu header.php) */
.ticker-bar {
    background: var(--primary-color);
    border-bottom: 1px solid rgba(26, 66, 49, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    padding: 6px 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 550px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 48px;
    display: flex;
    align-items: flex-end;
}
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 48px;
    max-width: 768px;
    color: white;
}
.hero-category {
    background: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}
.hero-title { font-size: 60px; line-height: 1; margin: 0 0 16px 0; font-weight: 900; }
.hero-excerpt { font-size: 20px; color: #E2E8F0; margin-bottom: 24px; font-weight: 500; }
.btn-primary {
    background: white; color: var(--primary-color);
    padding: 12px 32px; border-radius: 8px;
    font-weight: 700; font-size: 16px;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Grid Layout Principal */
.main-grid {
    display: grid;
    grid-template-columns: 635px 276px; /* Medidas aproximadas do design */
    gap: 150px; /* O design mostra um espaçamento bem largo entre as colunas */
    margin-bottom: 112px;
}

/* Seção: Últimas Notícias */
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px; margin-bottom: 32px;
}
.section-title { font-size: 20px; font-weight: 900; text-transform: uppercase; margin: 0; }
.view-all { font-size: 14px; font-weight: 700; }

.news-card { margin-bottom: 24px; }
.news-card-large img { width: 100%; height: 213px; object-fit: cover; border-radius: 12px; margin-bottom: 16px; }
.news-card-horizontal { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.news-card-horizontal img { width: 100%; height: 213px; object-fit: cover; border-radius: 8px; }
.news-meta { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 12px; display: flex; gap: 8px; align-items: center; }

/* Sidebar & Widgets */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.widget {
    background: white; border-radius: 12px; padding: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    outline: 1px solid var(--border-color);
}
.widget-title { font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 24px 0; }

/* Lista Mais Lidas */
.mais-lidas-list { list-style: none; padding: 0; margin: 0; }
.mais-lidas-list li {
    display: flex; gap: 16px; align-items: flex-start;
    padding-bottom: 16px; margin-bottom: 16px;
    border-bottom: 1px solid var(--bg-light);
}
.mais-lidas-list li:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }
.mais-lidas-number { font-size: 30px; font-weight: 900; color: rgba(26, 66, 49, 0.1); line-height: 1; }
.mais-lidas-title { font-size: 14px; font-weight: 700; line-height: 1.4; }

/* Widget Clima */
.widget-weather {
    background: rgba(26, 66, 49, 0.05);
    outline-color: rgba(26, 66, 49, 0.1);
}
.weather-temp { font-size: 36px; font-weight: 900; color: var(--accent-color); line-height: 1; margin-top: 16px; }
.weather-desc { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.weather-days { display: flex; gap: 8px; margin-top: 16px; }
.weather-day { flex: 1; background: rgba(255,255,255,0.5); padding: 8px; border-radius: 4px; text-align: center; }

/* Widget Newsletter */
.widget-newsletter { background: var(--accent-color); color: white; outline: none; border: none; }
.widget-newsletter .widget-title { color: white; font-size: 20px; letter-spacing: normal; text-transform: none; margin-bottom: 8px; }
.newsletter-input {
    width: 100%; padding: 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0, 16, 21, 0.3); color: white; margin-bottom: 12px; box-sizing: border-box;
}
.newsletter-btn {
    width: 100%; padding: 12px; background: var(--primary-color); color: white;
    border: none; border-radius: 8px; font-weight: 700; text-transform: uppercase; cursor: pointer;
}
/* ============================= */
/* ABAS MAIS LIDAS */
/* ============================= */

/* Fundo escuro atrás dos botões */
.mais-lidas-tabs {
    display: flex;
    background: #333333; 
}

/* Botões Padrão (Texto Branco, Fundo Transparente) */
.mais-lidas-tab {
    flex: 1;
    padding: 14px 0;
    border: none;
    background: transparent;
    color: #ffffff; 
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 13px;
    text-transform: uppercase;
}

/* Botão Selecionado (Fundo Verde) */
.mais-lidas-tab.active {
    background: #267a07; 
    color: #ffffff;
}

/* ============================= */
/* LISTA DE POSTS (Correção do texto espremido) */
/* ============================= */

.wpp-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wpp-list li {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    align-items: flex-start !important;
}

.wpp-thumbnail {
    flex: 0 0 110px !important; /* Trava o tamanho da imagem */
}

.wpp-thumbnail img {
    width: 110px !important;
    height: 75px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    display: block !important;
}

.wpp-text-container {
    flex: 1 !important; /* Ocupa o resto do espaço, alinhando o texto direito */
    min-width: 0 !important;
}

.wpp-post-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111 !important;
    line-height: 1.3 !important;
    display: block !important;
    margin-bottom: 6px !important;
    text-decoration: none !important;
}

.wpp-post-title:hover {
    color: #267a07 !important;
}

.wpp-post-date {
    font-size: 11px !important;
    color: #888 !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 500 !important;
}