/* Layout Variables */
:root {
    --card-bg: #1e293b; /* Slate 800 */
    --body-bg: #0f172a; /* Slate 900 */
    --accent: #3b82f6;
    --text-muted: #94a3b8;
}

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

.main-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* --- Left Column: Latest News --- */
.news-box-left {
    flex: 2; /* Takes up 2/3 space */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-header {
    font-family: 'Oswald', sans-serif;
    color: white;
    border-left: 5px solid var(--accent);
    padding-left: 15px;
    margin: 0 0 10px 0;
    font-size: 24px;
    text-transform: uppercase;
}

.news-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #334155;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.img-wrapper {
    width: 35%;
    min-width: 200px;
    overflow: hidden;
}

.news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers area without stretching */
    transition: transform 0.5s ease;
}

.news-item:hover img {
    transform: scale(1.1); /* Zoom effect */
}

.news-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 65%;
}

/* Tags styles */
.tags {
    margin-bottom: 8px;
}
.tag {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 5px;
    display: inline-block;
}

.news-details .title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #fff;
}

.news-details .description {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-details .time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Right Column: Sidebar --- */
.news-box-right {
    flex: 1; /* Takes up 1/3 space */
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 90px; /* Sticks when scrolling */
}

/* Search Bar */
.search-container {
    display: flex;
    background-color: var(--card-bg);
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #334155;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-bar {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 12px;
    font-size: 15px;
}
.search-bar:focus {
    outline: none;
}
.search-button {
    background: var(--accent);
    border: none;
    color: white;
    padding: 0 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.search-button:hover {
    background: #2563eb;
}

/* Popular Teams */
.popular-teams-box {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #334155;
}

.popular-teams-title {
    font-family: 'Oswald', sans-serif;
    margin: 0 0 15px 0;
    font-weight: 500;
    font-size: 18px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.popular-teams {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #334155;
    transition: background 0.2s;
    cursor: pointer;
    border-radius: 6px;
}

.popular-teams:last-child {
    border-bottom: none;
}

.popular-teams:hover {
    background-color: rgba(255,255,255,0.05);
}

.popular-teams img {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    object-fit: contain;
}

.popular-teams .team-name {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 850px) {
    .main-layout {
        flex-direction: column;
    }
    
    .news-box-left, .news-box-right {
        width: 100%;
        flex: none;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .img-wrapper {
        width: 100%;
        height: 180px;
    }
    
    .news-details {
        width: 100%;
        box-sizing: border-box; /* Fix padding issues */
    }
}