/* Espaçamento Geral da Main */
.home-main {
    padding-top: 32px;
}

/* Container Global de Alinhamento */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Headers de Seções */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}
.justify-between {
    justify-content: space-between;
}
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}
@media (min-width: 768px) {
    .section-title { font-size: 24px; }
}

/* ==========================================
   CSS: HERO GRID (ESTILO DESTAQUES)
   ========================================== */
.hero-section {
    padding-bottom: 16px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cards Base do Hero */
.hero-main-card, .hero-small-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    background-color: var(--border);
}

.hero-main-card {
    aspect-ratio: 16 / 10;
}
@media (min-width: 1024px) {
    .hero-main-card {
        grid-column: span 2; /* lg:col-span-2 */
        height: 520px;
        aspect-ratio: auto;
    }
}

.hero-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hero-small-card {
    height: 248px;
    flex: 1;
}

/* Imagens e Efeito Zoom */
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.group:hover .hero-img {
    transform: scale(1.05);
}

/* Degradê Preto Inferior (Garante leitura do texto branco) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--background) 0%, rgba(11, 15, 25, 0.4) 60%, transparent 100%);
}

/* Conteúdos internos das caixas */
.hero-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 24px;
    max-width: 576px; /* max-w-xl */
    z-index: 2;
}
@media (min-width: 768px) {
    .hero-main-content { padding: 32px; }
}

.hero-small-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 16px;
    z-index: 2;
}

/* Tipografias do Hero */
.hero-main-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 12px 0 0 0;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .hero-main-title { font-size: 36px; }
}

.hero-small-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 8px 0 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-main-excerpt {
    color: var(--muted-foreground);
    margin: 12px 0 0 0;
    font-size: 15px;
    display: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 768px) {
    .hero-main-excerpt { display: -webkit-box; }
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted-foreground);
}
.hero-author {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   CSS: GRID DE CATEGORIAS
   ========================================== */
.category-section {
    padding-top: 56px;
    padding-bottom: 56px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.category-card {
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: #131722;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100px;
    transition: border-color 0.2s ease;
}
.category-card:hover {
    border-color: rgba(60, 131, 246, 0.5);
}

.category-color-pill {
    width: 32px;
    height: 4px;
    border-radius: 9999px;
    margin-bottom: 16px;
}
.category-card-info {
    margin-top: auto;
}
.category-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--foreground);
}
.category-card-description {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: var(--muted-foreground);
    line-height: 1.4;
}

/* ==========================================
   CSS: MAIN LAYOUT GRID (RECENTES + SIDEBAR)
   ========================================== */
.main-layout-grid {
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 1024px) {
    .main-layout-grid {
        grid-template-columns: 1fr 320px;
    }
}

.home-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 640px) {
    .home-articles-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.view-all-indicator {
    font-size: 14px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.view-all-indicator:hover {
    opacity: 0.8; /* Dá um feedback visual discreto ao passar o mouse */
}
.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}