/* 
Theme Name: Evte News
Layout: Horizon (Clean & Professional)
Description: Layout full-width minimalista com foco em tipografia e cor primária.
*/

:root {
    --hor-bg: #ffffff;
    --hor-text: #1a1a1a;
    --hor-gray: #f4f5f7;
    --hor-meta: #718096;
    /* A cor primária será injetada via PHP/Inline, mas definimos um fallback */
    --hor-primary: #0056b3;
}

.horizon-wrapper {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--hor-text);
}

.horizon-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =========================================
   1. HERO SPLIT (50/50)
   ========================================= */
.horizon-hero-split {
    display: flex;
    min-height: 600px;
    /* Altura mínima elegante */
    height: 85vh;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.horizon-hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: #fff;
}

.horizon-hero-inner {
    max-width: 500px;
}

.horizon-hero-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.horizon-hero-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.horizon-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.horizon-hero-image:hover img {
    transform: scale(1.03);
}

/* Tipografia Hero */
.horizon-cat-tag {
    display: inline-block;
    color: var(--hor-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.horizon-cat-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--hor-primary);
    border-radius: 50%;
}

.horizon-hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 25px;
    letter-spacing: -1px;
}

.horizon-hero-title a {
    color: var(--hor-text);
    text-decoration: none;
    transition: color 0.2s;
}

.horizon-hero-title a:hover {
    color: var(--hor-primary);
}

.horizon-hero-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--hor-meta);
    margin-bottom: 35px;
}

/* Botões */
.horizon-btn {
    display: inline-block;
    background: var(--hor-primary);
    color: #fff;
    padding: 15px 30px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.horizon-btn:hover {
    background: #000;
    /* Darken effect */
    transform: translateY(-2px);
}

/* =========================================
   2. SECTIONS & HEADERS
   ========================================= */
.horizon-section {
    padding: 80px 0;
}

.horizon-section-header {
    margin-bottom: 50px;
    position: relative;
}

.horizon-section-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 15px;
}

.horizon-separator {
    width: 60px;
    height: 4px;
    background: var(--hor-primary);
}

/* =========================================
   3. CLEAN STRIP
   ========================================= */
.horizon-clean-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.horizon-card {
    display: flex;
    flex-direction: column;
}

.horizon-card-thumb {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16/10;
}

.horizon-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.horizon-card:hover .horizon-card-thumb img {
    transform: scale(1.05);
}

.horizon-card-cat {
    display: block;
    color: var(--hor-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.horizon-card-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 10px;
    font-weight: 700;
}

.horizon-card-title a {
    color: var(--hor-text);
    text-decoration: none;
    transition: color 0.2s;
}

.horizon-card-title a:hover {
    color: var(--hor-primary);
}

.horizon-card-date {
    font-size: 0.8rem;
    color: var(--hor-meta);
}

/* =========================================
   4. IMMERSIVE SECTION
   ========================================= */
.horizon-immersive {
    width: 100%;
    height: 500px;
    position: relative;
    margin: 40px 0;
}

.horizon-immersive-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax suave */
    position: relative;
}

.horizon-immersive-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
}

.horizon-immersive-content {
    max-width: 600px;
    color: #fff;
}

.horizon-immersive-label {
    display: inline-block;
    background: var(--hor-primary);
    color: #fff;
    padding: 5px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.horizon-immersive-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 30px;
}

.horizon-immersive-title a {
    color: #fff;
    text-decoration: none;
}

.horizon-btn-outline {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.horizon-btn-outline:hover {
    background: #fff;
    color: #000;
}

/* =========================================
   5. CLEAN GRID (List)
   ========================================= */
.horizon-clean-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.horizon-list-item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.horizon-list-thumb {
    flex: 0 0 200px;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
}

.horizon-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.horizon-list-item:hover .horizon-list-thumb img {
    transform: scale(1.05);
}

.horizon-list-content {
    flex: 1;
}

.horizon-list-cat {
    display: block;
    color: var(--hor-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.horizon-list-title {
    font-size: 1.3rem;
    line-height: 1.3;
    margin: 0 0 10px;
    font-weight: 700;
}

.horizon-list-title a {
    color: var(--hor-text);
    text-decoration: none;
    transition: color 0.2s;
}

.horizon-list-title a:hover {
    color: var(--hor-primary);
}

.horizon-list-excerpt {
    font-size: 0.95rem;
    color: var(--hor-meta);
    line-height: 1.5;
    margin: 0;
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */
@media (max-width: 1024px) {
    .horizon-hero-split {
        flex-direction: column-reverse;
        height: auto;
    }

    .horizon-hero-content {
        padding: 40px 20px;
    }

    .horizon-hero-image {
        height: 400px;
        flex: none;
    }

    .horizon-clean-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .horizon-clean-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .horizon-container {
        padding: 0 20px;
    }

    .horizon-hero-title {
        font-size: 2.5rem;
    }

    .horizon-clean-strip {
        grid-template-columns: 1fr;
    }

    .horizon-list-item {
        flex-direction: column;
    }

    .horizon-list-thumb {
        width: 100%;
        height: 200px;
        flex: none;
    }

    .horizon-immersive-title {
        font-size: 2rem;
    }
}

/* =========================================
   6. NEWS BLOCKS (Ticker & Headlines)
   ========================================= */

/* Ticker */
.horizon-ticker {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.horizon-ticker-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.horizon-ticker-label {
    color: var(--hor-primary);
    text-transform: uppercase;
    font-weight: 800;
    padding-right: 15px;
    border-right: 2px solid #ddd;
    white-space: nowrap;
    z-index: 2;
    flex-shrink: 0;
}

.horizon-ticker-mask {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.horizon-ticker-content {
    display: flex;
    gap: 30px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.horizon-ticker-item a {
    color: var(--hor-text);
    text-decoration: none;
}

.horizon-ticker-item a:hover {
    color: var(--hor-primary);
    text-decoration: underline;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Headlines Grid */
.horizon-headlines {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.horizon-headlines-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.horizon-col-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--hor-meta);
    border-bottom: 2px solid var(--hor-primary);
    padding-bottom: 8px;
    margin: 0 0 10px;
    /* FIXED: 10px */
    letter-spacing: 0.5px;
}

/* Main Story (Col 1) */
.horizon-head-card-lg {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.horizon-head-thumb-lg {
    display: block;
    width: 100%;
    height: 350px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.horizon-head-thumb-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.horizon-head-card-lg:hover .horizon-head-thumb-lg img {
    transform: scale(1.03);
}

.horizon-cat-text {
    color: var(--hor-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 10px;
    display: block;
}

.horizon-head-title-lg {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 15px;
    letter-spacing: -0.5px;
}

.horizon-head-title-lg a {
    color: var(--hor-text);
    text-decoration: none;
    transition: color 0.2s;
}

.horizon-head-title-lg a:hover {
    color: var(--hor-primary);
}

.horizon-head-excerpt {
    font-size: 1.05rem;
    color: var(--hor-meta);
    line-height: 1.6;
}

/* Top Stories List (Col 2) */
.horizon-head-list-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.horizon-head-item-sm {
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.horizon-head-item-sm:last-child {
    border-bottom: none;
}

.horizon-head-title-sm {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 5px;
}

.horizon-head-title-sm a {
    color: var(--hor-text);
    text-decoration: none;
}

.horizon-head-title-sm a:hover {
    color: var(--hor-primary);
}

.horizon-head-meta {
    font-size: 0.75rem;
    color: #999;
}

/* Featured Vertical (Col 3) */
.horizon-head-feat {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.horizon-head-card-vert {
    display: flex;
    flex-direction: column;
}

.horizon-head-thumb-vert {
    display: block;
    height: 120px;
    /* FIXED: 120px */
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.horizon-head-thumb-vert img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.horizon-head-title-md {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.horizon-head-title-md a {
    color: var(--hor-text);
    text-decoration: none;
}

.horizon-head-title-md a:hover {
    color: var(--hor-primary);
}

/* Responsividade News Blocks */
@media (max-width: 1024px) {
    .horizon-headlines-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .horizon-head-thumb-lg {
        height: auto;
        aspect-ratio: 16/9;
    }
}