/* ESTRUTURA INSPIRADA NO G1 */
:root {
    --g1-red: #c4170c; /* Vermelho padrão de notícias */
    --g1-gray-text: #444;
    --g1-light-gray: #f1f1f1;
    --g1-border: #e2e2e2;
}

body {
    background-color: #fff; /* G1 é predominantemente branco */
    font-family: "Open Sans", Arial, sans-serif;
    color: #333;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 15px; }

/* --- MANCHETE PRINCIPAL (HERO) --- */
.tm-hero-section { margin-top: 20px; border-bottom: 1px solid var(--g1-border); padding-bottom: 30px; }

.tm-hero-card { text-decoration: none; color: inherit; }

.tm-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--g1-red); /* Título principal em vermelho */
    line-height: 1;
    margin: 15px 0;
    letter-spacing: -1px;
}

.tm-hero-img-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 4px;
}

.tm-hero-img { width: 100%; height: 100%; object-fit: cover; }

.tm-badge-cat {
    color: var(--g1-red);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.tm-hero-excerpt {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.4;
}

/* --- GRID E FEED --- */
.tm-main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding-top: 30px;
}

.tm-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    border-bottom: 3px solid var(--g1-red);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.tm-feed-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--g1-border);
}

.tm-feed-link {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.tm-feed-thumb { height: 120px; border-radius: 4px; overflow: hidden; }
.tm-feed-thumb img { width: 100%; height: 100%; object-fit: cover; }

.tm-feed-cat { color: var(--g1-red); font-weight: 800; font-size: 0.75rem; text-transform: uppercase; }

.tm-feed-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 5px 0;
    line-height: 1.2;
}

.tm-feed-info h4:hover { color: var(--g1-red); }

/* --- SIDEBAR (MAIS LIDAS) --- */
.tm-widget-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #777;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.tm-rank-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    margin-bottom: 15px;
    align-items: flex-start;
}

.tm-rank-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #bbb;
}

.tm-rank-txt {
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.2;
}

/* --- CTA SIDEBAR --- */
.tm-cta-card {
    background: var(--g1-light-gray);
    padding: 20px;
    border-radius: 4px;
    border-top: 4px solid var(--g1-red);
}

.btn-cta {
    background: var(--g1-red);
    color: #fff;
    text-align: center;
    padding: 10px;
    display: block;
    text-decoration: none;
    font-weight: 800;
    margin-top: 15px;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .tm-main-grid { grid-template-columns: 1fr; }
    .tm-feed-link { grid-template-columns: 120px 1fr; }
    .tm-hero-title { font-size: 2rem; }
}
/* --- CONTAINER DE ANÚNCIOS --- */
.ad-container-horizontal {
    border-top: 1px solid var(--g1-border);
    border-bottom: 1px solid var(--g1-border);
    padding: 15px 0;
    background-color: #f9f9f9;
    margin-bottom: 30px !important;
}

/* --- ESTRUTURA DO GRID --- */
.tm-main-grid {
    display: grid;
    grid-template-columns: 1fr 300px; /* Coluna principal e Sidebar */
    gap: 40px;
    align-items: start;
}

/* --- FEED DE NOTÍCIAS (ESQUERDA) --- */
.tm-section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--g1-red);
    display: inline-block;
    padding-bottom: 5px;
}

.tm-feed-item {
    border-bottom: 1px solid var(--g1-border);
    padding: 20px 0;
    transition: background 0.2s;
}

.tm-feed-item:last-child { border-bottom: none; }

.tm-feed-item a {
    display: flex;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.tm-feed-thumb {
    width: 200px;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    flex-shrink: 0; /* Impede a imagem de esmagar */
    background-color: #eee;
}

.tm-feed-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tm-feed-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 8px 0;
    color: #333;
}

/* Hover no título imitando G1 (muda para azul e sublinha) */
.tm-feed-item:hover h4 {
    color: #0645ad;
    text-decoration: underline;
}

.tm-feed-meta {
    font-size: 0.8rem;
    color: #666;
}

/* --- ESTADO VAZIO (EMPTY STATE) --- */
.tm-empty {
    text-align: center;
    padding: 50px 0;
    color: #999;
}

.tm-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* --- SIDEBAR (DIREITA) --- */
.tm-widget {
    margin-bottom: 40px;
}

.tm-widget-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #666;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.tm-rank-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    text-decoration: none;
    align-items: flex-start;
}

.tm-rank-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ccc; /* Números em cinza claro */
    line-height: 1;
}

.tm-rank-content p {
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.tm-rank-views {
    font-size: 0.75rem;
    color: #999;
}

.tm-rank-item:hover .tm-rank-txt {
    color: #0645ad;
}

/* --- WIDGET CTA (TREINE SEU CONHECIMENTO) --- */
.tm-cta-widget {
    background-color: var(--g1-light-gray);
    padding: 25px;
    border-radius: 4px;
    border-top: 4px solid var(--g1-red);
    text-align: center;
}

.tm-cta-widget h4 { font-weight: 800; margin-bottom: 10px; }
.tm-cta-widget p { font-size: 0.9rem; color: #555; margin-bottom: 20px; }

.btn-cta-sidebar {
    background-color: var(--g1-red);
    color: #fff;
    padding: 12px;
    display: block;
    text-decoration: none;
    font-weight: 800;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-cta-sidebar:hover { background-color: #a3130a; }

/* --- RESPONSIVIDADE --- */
@media (max-width: 850px) {
    .tm-main-grid { grid-template-columns: 1fr; }
    .tm-feed-item a { flex-direction: column; }
    .tm-feed-thumb { width: 100%; height: 180px; }
}