/*
Theme Name: 234sport News
Theme URI: https://234sport.com
Description: A high-octane sports news child theme for Blocksy. Optimized for Google News.
Author: 234sport Desk
Template: blocksy
Version: 1.0.0
*/

/* ==========================================================================
   SPORTS NEWS: COLOR PALETTE & TYPOGRAPHY
   ========================================================================== */
:root {
    --sport-red: #d62828;
    --sport-navy: #0b1325;
    --sport-gray: #f4f5f7;
    --sport-dark: #1a1a1a;
}

body {
    background-color: var(--sport-gray);
}

/* ==========================================================================
   BREAKING NEWS TICKER
   ========================================================================== */
.sport-ticker-wrap {
    background: var(--sport-navy);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    border-bottom: 3px solid var(--sport-red);
}

.ticker-label {
    background: var(--sport-red);
    padding: 10px 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    z-index: 2;
}

.ticker-news {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    padding-left: 20px;
}

.ticker-news ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    animation: ticker-scroll 25s linear infinite;
}

.ticker-news li {
    white-space: nowrap;
    padding-right: 50px;
}

.ticker-news a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.ticker-news a:hover {
    color: var(--sport-red);
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ==========================================================================
   HERO GRID (MAGAZINE LAYOUT)
   ========================================================================== */
.sport-hero-section {
    max-width: 1290px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-main-post {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 500px;
}

.hero-side-posts {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.hero-post-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--sport-dark);
}

.hero-post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    opacity: 0.85;
}

.hero-post-card:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.hero-content h2 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.hero-side-posts .hero-content h2 {
    font-size: 1.3rem;
}

.hero-content a {
    color: #fff;
    text-decoration: none;
}

.hero-content a:hover {
    text-decoration: underline;
    text-decoration-color: var(--sport-red);
    text-decoration-thickness: 3px;
}

.sport-category-badge {
    display: inline-block;
    background: var(--sport-red);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .sport-hero-section {
        grid-template-columns: 1fr;
    }
    .hero-main-post {
        height: 400px;
    }
    .hero-side-posts {
        height: 500px; /* split between the two */
    }
}