:root {
    --primary: #e63946;
    --dark: #1d3557;
    --light: #f1faee;
    --text: #333;
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --pitch-green: #2ecc71;
}

body {
    background-color: #f8f9fa;
    color: var(--text);
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SPORT HEADER */
.top-header {
    background: var(--dark);
    color: #fff;
    padding: 10px 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 4px solid var(--primary);
}

.breaking-news {
    background: #000;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 8px 0;
    font-weight: bold;
    font-size: 0.9rem;
}

.breaking-content {
    display: inline-block;
    animation: ticker 30s linear infinite;
    padding-left: 100%;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.main-nav {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 700;
    font-style: italic;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    margin-left: 30px;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s;
}

.menu a:hover::after {
    width: 100%;
}

/* NEWSPAPER LAYOUT */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.main-story {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.story-img {
    height: 450px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8)), url('../../assets/img/hero-stadium.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.story-overlay {
    padding: 30px;
    width: 100%;
    color: #fff;
}

.tag-badge {
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.story-overlay h1 {
    font-family: var(--font-head);
    font-size: 3rem;
    margin: 0 0 10px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.read-btn {
    display: inline-block;
    background: #fff;
    color: var(--dark);
    padding: 10px 25px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 15px;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.read-btn:hover {
    background: var(--primary);
    color: #fff;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget-box {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary);
}

.section-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin: 0 0 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LIVE SCORE WIDGET */
.match-score {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-family: var(--font-body);
}

.team-name {
    width: 40%;
}

.score-badge {
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-head);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* TABLE STYLING */
.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.mini-table th {
    text-align: left;
    color: #888;
    font-size: 0.8rem;
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}

.mini-table td {
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
    font-weight: bold;
}

.mini-table td:last-child {
    text-align: right;
}

.pos-num {
    width: 20px;
    display: inline-block;
    color: #888;
    font-weight: normal;
}

/* NEWS GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.news-card {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-thumb {
    height: 180px;
    background: #eee;
}

.news-body {
    padding: 15px;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced Table */
.mini-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    font-weight: normal;
}

.mini-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.9rem;
}

.mini-table .pts {
    color: var(--dark);
    font-weight: 900;
}


.news-title {
    font-weight: bold;
    display: block;
    margin-top: 5px;
    text-decoration: none;
    color: inherit;
    font-family: var(--font-head);
    font-size: 1.1rem;
}

/* Responsive Patch Re-Inclusion */
@media (max-width: 768px) {
    .nav-flex {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .menu {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .hero-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .story-overlay h1 {
        font-size: 2rem;
    }
}

/* SEARCH & HAMBURGER */
.search-container {
    display: none;
    position: absolute;
    top: 100%;
    right: 20px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 20;
    border-top: 3px solid var(--primary);
}

.search-container.active {
    display: block;
}

.search-container input {
    padding: 8px;
    border: 1px solid #ddd;
    width: 200px;
}

.search-container button {
    padding: 8px 15px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
}

/* Hamburger styling */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    /* Hide menu by default on mobile */
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background: #fff;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .menu.active {
        display: flex;
    }

    .nav-flex {
        flex-wrap: wrap;
    }

    /* Adjust logo placement */
    .logo {
        flex-grow: 1;
        text-align: left;
    }
}