/* ESPN Cricinfo Like Styles Fixes for Desktop (min-width: 769px) */

:root {
    --espn-blue: #03a9f4;
    --espn-dark: #2b2c2d;
    --espn-navy: #0e2238;
    --espn-bg: #f3f4f6;
    --espn-card-bg: #ffffff;
    --espn-border: #d3d5d8;
    --espn-text-dark: #121212;
    --espn-text-muted: #48494a;
    --espn-red: #d32f2f;
    --espn-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--espn-bg) !important;
    font-family: var(--espn-font-family) !important;
    color: var(--espn-text-dark);
}

/* Typography Upgrades */
h1, h2, h3, h4, h5, h6, .site-title, .entry-title {
    font-family: var(--espn-font-family) !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

/* 1. Header & Main Navigation Fixes */
.top-masthead, .masthead-banner {
    display: none !important;
}

.site-header {
    background: transparent !important;
}

.main-navigation {
    background: var(--espn-blue) !important;
    border: none !important;
    border-bottom: 3px solid #007bb2 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
}

.espn-nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100%;
}

.espn-site-branding {
    display: flex;
    align-items: center;
    margin-right: 24px;
}

.espn-site-branding img, .espn-site-branding .custom-logo {
    max-height: 40px;
    width: auto;
}

.espn-site-branding .site-title {
    margin: 0 0 0 10px;
    font-size: 1.25rem;
    line-height: 1;
}

.espn-site-branding .site-title a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
}

@media (min-width: 992px) {
    .main-navigation-container-items-wrapper {
        display: flex;
        align-items: center;
        flex: 1;
    }

    .main-navigation .menu {
        display: flex;
        margin: 0;
        padding: 0;
    }

    .main-navigation .menu > li > a {
        color: #fff !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        padding: 16px 16px !important;
    }

    .main-navigation .menu > li > a:hover {
        background: rgba(255, 255, 255, 0.2) !important;
    }

    .cart-search {
        margin-left: auto;
        display: flex;
        align-items: center;
    }

    .cart-search .search-icon {
        color: #fff !important;
        font-size: 16px;
    }

    .toggle-menu {
        display: none !important; /* Hide hamburger menu on desktop */
    }
}

@media (max-width: 991px) {
    .espn-nav-container {
        justify-content: space-between !important;
        padding: 10px 0;
    }
    
    .espn-site-branding {
        margin-right: auto;
    }

    .toggle-menu {
        display: block !important;
        margin-right: 15px;
        order: -1; /* Put hamburger on the left */
    }
    
    .cart-search {
        margin-left: 0;
    }
    
    .main-navigation-container-items-wrapper {
        display: none; /* Hide menu entirely, rely on theme's mobile menu trigger mechanics */
    }
}


/* 3. Main Content Grid Elements */
.widget, 
article.post, 
article.page, 
.latest-posts-full,
.tcs-home-shell__card,
.tcs-home-shell__brief {
    background: var(--espn-card-bg) !important;
    border-radius: 8px !important;
    border: 1px solid var(--espn-border) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03) !important;
    margin-bottom: 24px;
    padding: 24px;
    transition: box-shadow 0.2s;
}

.widget:hover, 
article.post:hover,
.tcs-home-shell__card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.08) !important;
}

/* Home Shell Redesign */
.tcs-home-shell {
    margin-top: 0 !important;
}

.tcs-home-shell__heading span {
    font-family: var(--espn-font-family);
    font-weight: 700;
    font-size: 18px;
    color: var(--espn-text-dark);
}

.container {
    max-width: 1280px !important;
}

@media (min-width: 1024px) {
    .site-content > .container > .row {
        display: flex;
        flex-wrap: nowrap;
        gap: 32px;
    }
    .secondary-sidebar {
        flex: 0 0 320px; /* Standard ESPN Sidebar */
    }
    #primary {
        flex: 1; 
    }
}
