/* ============================================
   HOME CSS - static/home.css
   Estilos específicos da página inicial
   ============================================ */

/* ============================================
   HERO / DESTAQUE PRINCIPAL
   ============================================ */
.hero {
    background-color: #ffffff;
    padding: 30px 0;
    border-bottom: 3px solid #2d6a4f;
}

.hero-grid {
    display: flex;
    gap: 25px;
}

.hero-main {
    flex: 2;
}

.hero-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.hero-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    text-decoration: none;
}

.hero-card-img {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
}

.hero-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

.hero-card:hover .hero-card-img img {
    transform: scale(1.03);
}

.hero-card-body {
    padding: 18px 5px;
}

.hero-card-body h1 {
    font-size: 1.6rem;
    margin: 10px 0;
    color: #1b3a2d;
    line-height: 1.35;
}

.hero-card:hover .hero-card-body h1 {
    color: #2d6a4f;
}

.hero-excerpt {
    font-size: 0.95rem;
    color: #5a6b5a;
    margin-bottom: 10px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero Sidebar Cards */
.hero-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-side-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 18px;
    background: #f9fbf9;
    border: 1px solid #e0e8e0;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex: 1;
}

.hero-side-card:hover {
    border-color: #2d6a4f;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-decoration: none;
}

.hero-side-card h3 {
    font-size: 0.95rem;
    margin: 8px 0;
    color: #1b3a2d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-side-card:hover h3 {
    color: #2d6a4f;
}

/* ============================================
   SEÇÃO JULGAMENTOS STF / STJ
   ============================================ */
.julgamentos-section {
    padding: 35px 0 30px;
    background-color: #edf2ed;
    border-bottom: 3px solid #2d6a4f;
}

.julgamentos-grid {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.julgamentos-col {
    flex: 1;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e8e0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Headers STF / STJ / TCU */
.julgamentos-header {
    padding: 14px 20px;
    color: white;
}

.julgamentos-header h3 {
    color: white;
    margin: 0;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.julgamentos-stf {
    background: linear-gradient(135deg, #1b3a2d 0%, #2d5a3f 100%);
}

.julgamentos-stj {
    background: linear-gradient(135deg, #2d6a4f 0%, #3d8b60 100%);
}

.julgamentos-tcu {
    background: linear-gradient(135deg, #4a7a3d 0%, #6a9b57 100%);
}


/* Lista de Julgamentos */
.julgamentos-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.julgamentos-lista li {
    display: flex;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid #eef2ee;
    align-items: flex-start;
}

.julgamentos-lista li:last-child {
    border-bottom: none;
}

.julgamentos-lista li:hover {
    background-color: #f8fbf8;
}

.julgamento-data {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 32px;
    background-color: #e8f0e8;
    color: #2d6a4f;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
}

.julgamento-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.julgamento-info a {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1b3a2d;
    line-height: 1.4;
    text-decoration: none;
}

.julgamento-info a:hover {
    color: #2d6a4f;
    text-decoration: underline;
}

.julgamento-info .text-muted {
    font-size: 0.75rem;
    font-style: italic;
}

/* ============================================
   SEÇÃO PRINCIPAL (ARTIGOS + SIDEBAR)
   ============================================ */
.conteudo-principal {
    padding: 35px 0;
    background-color: #ffffff;
}

.conteudo-grid {
    display: flex;
    gap: 35px;
}

.artigos-col {
    flex: 2;
}

.sidebar-col {
    flex: 1;
    min-width: 280px;
}

/* Título de Seção */
.secao-titulo {
    margin-bottom: 20px;
}

.secao-titulo h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.secao-linha {
    width: 60px;
    height: 3px;
    background-color: #3d7b40;
    border-radius: 2px;
}

/* ============================================
   CARDS DE ARTIGO
   ============================================ */
.artigo-card {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e8e0;
}

.artigo-card:first-of-type {
    padding-top: 0;
}

.artigo-card-img {
    width: 180px;
    min-width: 180px;
    height: 130px;
    border-radius: 6px;
    overflow: hidden;
}

.artigo-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

.artigo-card:hover .artigo-card-img img {
    transform: scale(1.05);
}

.artigo-card-body {
    flex: 1;
}

.artigo-card-body h3 {
    font-size: 1.05rem;
    margin: 6px 0 8px;
    line-height: 1.4;
}

.artigo-card-body h3 a {
    color: #1b3a2d;
    text-decoration: none;
}

.artigo-card-body h3 a:hover {
    color: #2d6a4f;
    text-decoration: underline;
}

.artigo-card-body p {
    font-size: 0.88rem;
    color: #5a6b5a;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar-box {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e0e8e0;
    margin-bottom: 25px;
}

/* Mais Lidas */
.mais-lidas {
    list-style: none;
    padding: 0;
}

.mais-lidas li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2ee;
}

.mais-lidas li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mais-lidas li:first-child {
    padding-top: 0;
}

.mais-lidas-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background-color: #1b3a2d;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50%;
}

.mais-lidas li a {
    font-size: 0.88rem;
    color: #2c3e2c;
    line-height: 1.4;
    text-decoration: none;
    font-weight: 600;
}

.mais-lidas li a:hover {
    color: #2d6a4f;
    text-decoration: underline;
}

/* ============================================
   SEÇÃO PREMIUM — SISTEMA DE ANÁLISE
   ============================================ */
.premium-section {
    padding: 50px 0;
    background: linear-gradient(180deg, #1b3a2d 0%, #244a38 100%);
    color: white;
    border-top: 3px solid #7a8b3a;
}

.premium-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.premium-badge {
    display: inline-block;
    padding: 5px 16px;
    background-color: #7a8b3a;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.premium-header h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.premium-header p {
    color: #b8d4b4;
    font-size: 1rem;
    line-height: 1.7;
}

/* Cards de Funcionalidades */
.premium-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.premium-card {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    transition: background 0.3s, transform 0.2s;
}

.premium-card:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-4px);
}

.premium-card-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.premium-card h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

.premium-card p {
    color: #b8d4b4;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* CTA Principal */
.premium-cta {
    text-align: center;
}

.btn-cta {
    background-color: #7a8b3a;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 36px;
    letter-spacing: 0.5px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-cta:hover {
    background-color: #8fa043;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    text-decoration: none;
}

.btn-lg {
    font-size: 1.1rem;
    padding: 16px 40px;
}

.premium-cta-sub {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #8aaa84;
}

/* Categorias */
.categorias-lista {
    list-style: none;
    padding: 0;
}

.categorias-lista li {
    border-bottom: 1px solid #eef2ee;
}

.categorias-lista li:last-child {
    border-bottom: none;
}

.categorias-lista li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.88rem;
    color: #2c3e2c;
    text-decoration: none;
    transition: color 0.2s;
}

.categorias-lista li a:hover {
    color: #2d6a4f;
    text-decoration: none;
}

.cat-count {
    background: #e8f0e8;
    color: #2d6a4f;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    padding: 0 0 40px;
}

.newsletter-box {
    background: linear-gradient(135deg, #1b3a2d 0%, #2d5a3f 100%);
    border-radius: 8px;
    padding: 35px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.newsletter-texto {
    flex: 1;
}

.newsletter-texto h2 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.newsletter-texto p {
    color: #c8d8c4;
    font-size: 0.92rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.newsletter-form input[type="email"] {
    padding: 12px 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.9rem;
    width: 280px;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-form input[type="email"]::placeholder {
    color: #a8c8a4;
}

.newsletter-form input[type="email"]:focus {
    border-color: #a8d5a2;
    background: rgba(255,255,255,0.15);
}

.newsletter-form .btn {
    white-space: nowrap;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 992px) {
    .hero-grid {
        flex-direction: column;
    }

    .hero-side {
        flex-direction: row;
    }

    .hero-side-card h3 {
        font-size: 0.88rem;
    }

    .julgamentos-grid {
        flex-direction: column;
    }

    .premium-cards {
        flex-wrap: wrap;
    }

    .premium-card {
        flex: 1 1 calc(50% - 10px);
    }

    .conteudo-grid {
        flex-direction: column;
    }

    .sidebar-col {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .hero-card-img {
        height: 220px;
    }

    .hero-card-body h1 {
        font-size: 1.3rem;
    }

    .hero-side {
        flex-direction: column;
    }

    .artigo-card {
        flex-direction: column;
        gap: 12px;
    }

    .artigo-card-img {
        width: 100%;
        min-width: auto;
        height: 180px;
    }

    .newsletter-box {
        flex-direction: column;
        padding: 25px 20px;
        gap: 20px;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
    }

    .premium-cards {
        flex-direction: column;
    }

    .premium-card {
        flex: auto;
    }

    .premium-header h2 {
        font-size: 1.4rem;
    }
}
