/* Remove hashtags from article headers */
.single-post .newsxo-tags.tag-links {
    display: none !important;
}
/* Clean article list cards */
#list .bs-blog-post.list-blog {
    display: grid !important;
    grid-template-columns: 42% 58% !important;
    gap: 0 !important;
    overflow: hidden;
    margin-bottom: 28px !important;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
}

/* Thumbnail fills the left side */
#list .bs-blog-post.list-blog .bs-blog-thumb {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

#list .bs-blog-post.list-blog .bs-thumb-back {
    width: 100% !important;
    height: 100% !important;
    min-height: 220px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Clean text section */
#list .bs-blog-post.list-blog article.small {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 24px 28px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Display the complete title */
#list .bs-blog-post.list-blog article h4,
#list .bs-blog-post.list-blog article h4 a {
    display: block !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: unset !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
}

/* Remove excerpt for a cleaner news-list appearance */
#list .bs-blog-post.list-blog article > p {
    display: none !important;
}

/* Mobile layout */
@media (max-width: 767px) {
    #list .bs-blog-post.list-blog {
        grid-template-columns: 1fr !important;
    }

    #list .bs-blog-post.list-blog .bs-blog-thumb,
    #list .bs-blog-post.list-blog .bs-thumb-back {
        height: 210px !important;
        min-height: 210px !important;
    }

    #list .bs-blog-post.list-blog article.small {
        padding: 20px !important;
    }
}
/* Xbox Nation game pages */
.single-games .xn-game-page {
    width: 100%;
    color: #171717;
}

/* Game hero */
.single-games .xn-game-hero {
    position: relative;
    min-height: 390px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.single-games .xn-game-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    gap: 25px;
    padding: 35px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.5) 55%,
        rgba(0, 0, 0, 0.12) 100%
    );
}

.single-games .xn-game-cover {
    width: 165px;
    aspect-ratio: 2 / 3;
    flex: 0 0 165px;
    object-fit: cover;
    border: 3px solid #52b924;
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.single-games .xn-game-heading {
    flex: 1;
    color: #fff;
}

.single-games .xn-game-heading h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 38px;
    line-height: 1.1;
}

.single-games .xn-game-heading p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
}

.single-games .xn-game-pass-badge {
    display: inline-block;
    padding: 7px 12px;
    color: #fff;
    background: #107c10;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.single-games .xn-game-score {
    width: 115px;
    padding: 14px;
    color: #fff;
    text-align: center;
    background: #107c10;
    border-radius: 6px;
}

.single-games .xn-game-score span {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
}

.single-games .xn-game-score strong {
    display: block;
    font-size: 25px;
}

/* Section headings */
.single-games .xn-game-page h2 {
    margin: 0 0 20px;
    padding: 11px 15px;
    color: #fff;
    background: #107c10;
    border-radius: 3px;
    font-size: 21px;
    line-height: 1.2;
}

/* Game information */
.single-games .xn-game-details,
.single-games .xn-game-description,
.single-games .xn-game-trailer {
    margin-bottom: 32px;
}

.single-games .xn-game-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    overflow: hidden;
}

.single-games .xn-game-details-grid > div {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 12px;
    padding: 13px 15px;
    border-right: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
}

.single-games .xn-game-details-grid strong {
    color: #555;
    font-size: 13px;
}

.single-games .xn-game-details-grid span {
    font-size: 13px;
}

.single-games .xn-game-store-button {
    display: inline-block;
    padding: 11px 18px;
    color: #fff !important;
    background: #107c10;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

.single-games .xn-game-store-button:hover {
    color: #fff !important;
    background: #0b5f0b;
}

/* Description and trailer */
.single-games .xn-game-description {
    font-size: 16px;
    line-height: 1.75;
}

.single-games .xn-game-description p {
    margin-bottom: 20px;
}

.single-games .xn-game-trailer iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

/* Mobile layout */
@media (max-width: 767px) {
    .single-games .xn-game-hero {
        min-height: 480px;
    }

    .single-games .xn-game-hero-overlay {
        align-items: flex-start;
        flex-wrap: wrap;
        align-content: flex-end;
        gap: 15px;
        padding: 22px;
    }

    .single-games .xn-game-cover {
        width: 115px;
        flex-basis: 115px;
    }

    .single-games .xn-game-heading h1 {
        font-size: 27px;
    }

    .single-games .xn-game-score {
        width: auto;
    }

    .single-games .xn-game-details-grid {
        grid-template-columns: 1fr;
    }

    .single-games .xn-game-details-grid > div {
        grid-template-columns: 110px 1fr;
        border-right: 0;
    }
}
/* Game pages: remove the theme's duplicate title banner */
body.single-games .bs-breadcrumb-section {
    display: none !important;
}

/* Game pages: hide the normal article sidebar */
body.single-games #secondary,
body.single-games #sidebar-right,
body.single-games aside.bs-sidebar,
body.single-games .bs-sidebar {
    display: none !important;
}

/* Game pages: expand the main content */
body.single-games .content-area,
body.single-games main.site-main,
body.single-games .col-lg-8.content-right,
body.single-games .col-lg-8.bs-blog-post {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* Give the game database more horizontal room */
body.single-games .xn-game-page {
    width: 100%;
    max-width: 1150px;
    margin-right: auto;
    margin-left: auto;
}

/* Hide the standard author card on game profiles */
body.single-games .bs-author,
body.single-games .author-box,
body.single-games .author-details {
    display: none !important;
}
/* Hide the empty Related Post section on game pages */
body.single-games .related-post,
body.single-games .related-posts,
body.single-games .bs-related-post,
body.single-games .bs-related-posts {
    display: none !important;
}
/* Hide Newsxo author information on game pages */
body.single-games .blog-author,
body.single-games .bs-blog-author,
body.single-games .single-author,
body.single-games .author-info {
    display: none !important;
}