:root {
    --eo-text: #111827;
    --eo-muted: #6b7280;
    --eo-line: #e5e7eb;
    --eo-soft: #f5f6f7;
    --eo-accent: #159447;
    --eo-accent-dark: #0f7136;
    --eo-radius: 8px;
}

body {
    background: #fff;
    color: var(--eo-text);
}

.eo-site-main {
    padding: 24px 0 48px;
}

.eo-container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.eo-top-ad,
.eo-footer-ad {
    margin-bottom: 24px;
}

.eo-section {
    margin-bottom: 38px;
}

.eo-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 2px solid var(--eo-text);
    margin-bottom: 18px;
}

.eo-section-heading h2 {
    position: relative;
    margin: 0;
    padding: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

.eo-section-heading h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 58px;
    height: 4px;
    background: var(--eo-accent);
}

.eo-section-heading a {
    color: var(--eo-accent-dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.eo-featured {
    margin-bottom: 32px;
}

.eo-featured-heading {
    margin-bottom: 14px;
}

.eo-featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
    gap: 12px;
    height: 500px;
}

.eo-feature-main,
.eo-feature-side,
.eo-feature-small {
    min-width: 0;
}

.eo-feature-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}

.eo-feature-image {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--eo-radius);
    background: #1f2937;
}

.eo-feature-image img,
.eo-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eo-feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.82) 0%,
        rgba(0,0,0,.28) 55%,
        rgba(0,0,0,.05) 100%
    );
}

.eo-feature-copy {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 22px;
    color: #fff;
}

.eo-feature-copy h1,
.eo-feature-copy h2 {
    margin: 8px 0 0;
    color: #fff;
    font-weight: 800;
    line-height: 1.08;
}

.eo-feature-copy h1 {
    font-size: clamp(28px, 3vw, 42px);
}

.eo-feature-copy h2 {
    font-size: 21px;
}

.eo-category {
    display: inline-block;
    color: var(--eo-accent-dark);
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.eo-feature-copy .eo-category {
    color: #fff;
    background: var(--eo-accent);
    padding: 6px 8px;
    border-radius: 3px;
}

.eo-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.25fr) minmax(280px, .85fr);
    gap: 38px;
    align-items: start;
}

.eo-latest-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding: 0 0 22px;
    margin: 0 0 22px;
    border-bottom: 1px solid var(--eo-line);
}

.eo-latest-thumb {
    display: block;
    height: 138px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--eo-soft);
}

.eo-latest-thumb img,
.eo-latest-thumb .eo-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eo-latest-copy h2 {
    margin: 6px 0 7px;
    font-size: 21px;
    line-height: 1.18;
}

.eo-latest-copy h2 a,
.eo-category-card h3 a,
.eo-ranking h3 a {
    color: var(--eo-text);
    text-decoration: none;
}

.eo-latest-copy p {
    margin: 0 0 7px;
    color: var(--eo-muted);
    font-size: 14px;
    line-height: 1.5;
}

.eo-latest-copy time {
    color: #9ca3af;
    font-size: 12px;
}

.eo-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
}

.eo-category-card .eo-image-link {
    display: block;
    height: 190px;
    margin-bottom: 11px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--eo-soft);
}

.eo-category-card img,
.eo-category-card .eo-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eo-category-card h3 {
    margin: 6px 0 0;
    font-size: 18px;
    line-height: 1.25;
}

.eo-sidebar {
    position: relative;
}

.eo-sidebar-block {
    margin: 30px 0;
}

.eo-ranking {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid var(--eo-line);
}

.eo-ranking > span {
    color: var(--eo-accent);
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
}

.eo-ranking h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
}

.eo-ad-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #94a3b8;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
}

.eo-ad-300 {
    min-height: 250px;
}

.eo-ad-600 {
    min-height: 500px;
}

.eo-inline-ad {
    min-height: 120px;
    margin: 0 0 28px;
}

.eo-widget {
    margin: 0;
}

.eo-placeholder {
    display: grid;
    place-items: center;
    background: #1f2937;
    color: rgba(255,255,255,.45);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 920px) {
    .eo-featured-grid {
        height: 430px;
        grid-template-columns: 1.45fr 1fr;
    }

    .eo-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 26px;
    }

    .eo-latest-item {
        grid-template-columns: 180px minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .eo-site-main {
        padding-top: 16px;
    }

    .eo-container {
        width: min(100% - 24px, 1180px);
    }

    .eo-featured-grid {
        display: block;
        height: auto;
    }

    .eo-feature-main {
        height: 330px;
        margin-bottom: 10px;
    }

    .eo-feature-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
        gap: 10px;
    }

    .eo-feature-small {
        height: 190px;
    }

    .eo-feature-copy {
        left: 16px;
        right: 16px;
        bottom: 15px;
    }

    .eo-feature-copy h1 {
        font-size: 27px;
    }

    .eo-feature-copy h2 {
        font-size: 17px;
    }

    .eo-layout {
        display: block;
    }

    .eo-sidebar {
        margin-top: 34px;
    }

    .eo-category-grid {
        gap: 20px 12px;
    }
}

@media (max-width: 540px) {
    .eo-feature-main {
        height: 285px;
    }

    .eo-feature-side {
        display: block;
    }

    .eo-feature-small {
        height: 210px;
        margin-bottom: 10px;
    }

    .eo-latest-item {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 13px;
        padding-bottom: 17px;
        margin-bottom: 17px;
    }

    .eo-latest-thumb {
        height: 90px;
    }

    .eo-latest-copy h2 {
        margin-top: 4px;
        font-size: 16px;
    }

    .eo-latest-copy p {
        display: none;
    }

    .eo-category-grid {
        grid-template-columns: 1fr;
    }

    .eo-category-card .eo-image-link {
        height: 210px;
    }
}

/* =========================================================
   ESPORTEONLINE HEADER
   ========================================================= */

.ast-primary-header-bar,
.ast-mobile-header-wrap,
.site-header-primary-section-left,
.site-header-primary-section-right {
    display: none !important;
}

#masthead {
    min-height: 0 !important;
}

.eo-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.eo-header-container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.eo-header-main {
    background: #fff;
}

.eo-header-main .eo-header-container {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.eo-brand {
    display: inline-flex;
    align-items: center;
    color: #111827;
    text-decoration: none !important;
    font-size: 31px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1.4px;
}

.eo-brand-online {
    color: #159447;
}

.eo-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eo-search-toggle {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 0;
    padding: 9px 4px;
    background: transparent;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.eo-search-toggle > span:first-child {
    font-size: 25px;
    line-height: 1;
}

.eo-nav {
    background: #111827;
}

.eo-nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eo-nav-menu > li {
    margin: 0;
}

.eo-nav-menu > li > a {
    display: block;
    padding: 16px 18px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.eo-nav-menu > li:first-child > a {
    padding-left: 0;
}

.eo-nav-menu > li > a:hover,
.eo-nav-menu > .current-menu-item > a {
    color: #4ade80 !important;
}

.eo-search-box {
    display: none;
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
}

.eo-search-box.is-open {
    display: block;
}

.eo-search-box form {
    display: flex;
    padding: 14px 0;
}

.eo-search-box input {
    flex: 1;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid #d1d5db;
    border-radius: 5px 0 0 5px;
    background: #fff;
    color: #111827;
}

.eo-search-box button {
    height: 44px;
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 0 5px 5px 0;
    background: #159447;
    color: #fff;
    font-weight: 800;
}

.eo-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.eo-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: #111827;
}

@media (max-width: 760px) {

    .eo-header-container {
        width: min(100% - 24px, 1180px);
    }

    .eo-header-main .eo-header-container {
        min-height: 70px;
    }

    .eo-brand {
        font-size: 24px;
    }

    .eo-search-text {
        display: none;
    }

    .eo-menu-toggle {
        display: block;
    }

    .eo-nav {
        display: none;
    }

    .eo-nav.is-open {
        display: block;
    }

    .eo-nav-menu {
        display: block;
        padding: 5px 0 10px;
    }

    .eo-nav-menu > li > a,
    .eo-nav-menu > li:first-child > a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,.1);
        font-size: 15px;
    }
}
