/* Koorax Classic Magazine Theme (Pro Light) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Oswald:wght@500;700&display=swap');

:root {
    --primary-color: #2c3e50;
    /* Dark Blue/Gray for Headers */
    --accent-color: #e74c3c;
    /* Sports Red */
    --bg-body: #f4f6f9;
    /* Very light gray background */
    --bg-card: #ffffff;
    /* White cards */
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border-color: #e2e8f0;
    --header-height: 70px;
    --border-radius: 4px;
    /* Sharper corners for magazine look */
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    /* High readability */
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

a:hover {
    color: var(--accent-color);
}

/* --- HEADER --- */
.top-bar {
    background-color: #000;
    color: #fff;
    font-size: 0.8rem;
    padding: 8px 0;
}

.main-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 2px solid var(--accent-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.brand-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.brand-logo span {
    color: var(--accent-color);
}

.nav-scroller {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    color: #333 !important;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 15px !important;
    font-size: 0.9rem;
    font-family: 'Oswald', sans-serif;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
    border-bottom: 3px solid var(--accent-color);
}

/* --- COMPONENTS --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.section-title {
    background: #000;
    color: #fff;
    padding: 5px 15px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    display: inline-block;
    margin: 0;
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background: var(--bg-card);
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-color);
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 3px 8px;
    text-transform: uppercase;
}

/* --- HERO SECTION --- */
.hero-wrapper {
    display: grid;
    gap: 20px;
}

.featured-card-lg {
    position: relative;
    height: 400px;
}

.featured-card-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    padding: 20px;
}

.featured-title {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
    line-height: 1.2;
}

/* --- GRID ITEMS --- */
.news-item-sm {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.news-item-sm img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
}

.news-item-sm h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

/* --- SIDEBAR --- */
.sidebar-box {
    background: #fff;
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.social-counter-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* --- FOOTER --- */
footer {
    background: #111;
    color: #ccc;
    padding: 40px 0 20px;
    font-size: 0.9rem;
}

footer h5 {
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 20px;
}

footer a {
    color: #999;
    display: block;
    margin-bottom: 8px;
}

footer a:hover {
    color: #fff;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .featured-card-lg {
        height: 250px;
    }

    .featured-title {
        font-size: 1.4rem;
    }
}

/* --- RESPONSIVE MEDIA FORCED --- */
img,
iframe,
video,
embed,
object {
    max-width: 100%;
    /* removed height: auto !important as it breaks object-fit */
    height: auto;
}

/* Fix for Hero Image Overflow (CRITICAL) */
.featured-card-lg {
    overflow: hidden;
    /* Cut anything that sticks out */
    width: 100%;
}

.featured-card-lg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* Force crop */
    max-width: none !important;
    /* Allow image to be wider than container if covering */
}

/* Fix for Sub-Featured */
.card img {
    object-fit: cover;
}

/* Specific fix for YouTube/Embeds in Article */
.article-body iframe {
    width: 100% !important;
    aspect-ratio: 16/9;
}

.article-body img {
    height: auto !important;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Fix for Sidebar Grid */
.news-item-sm img {
    height: 75px !important;
    width: 100px !important;
    object-fit: cover;
    flex-shrink: 0;
}