/* =========================================================
   GAMERLY HEADER
   BOXED LAYOUT VERSION
   ========================================================= */

:root {
    --gamerly-ink: #21212d;
    --gamerly-coral: #fe7b83;
    --gamerly-peach: #ff9f86;
    --gamerly-gold: #ffd792;
    --gamerly-warm-tint: #fff3ef;
    --gamerly-gradient: linear-gradient(
        135deg,
        var(--gamerly-coral) 0%,
        var(--gamerly-peach) 52%,
        var(--gamerly-gold) 100%
    );
}


/* =========================================================
   TOP NAVIGATION
   NEWS / FEATURES / REVIEWS / GUIDES
   ========================================================= */

#menu-item-118,
#menu-item-119,
#menu-item-120,
#menu-item-121 {
    position: relative;
    flex: 0 0 auto !important;
    margin: 0 !important;
}


/* Main top navigation links */
#menu-item-118 > a,
#menu-item-119 > a,
#menu-item-120 > a,
#menu-item-121 > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding-left: 28px !important;
    padding-right: 28px !important;

    white-space: nowrap !important;
}


/* NEWS - slightly less space on left */
#menu-item-118 > a {
    padding-left: 12px !important;
}


/* GUIDES - slightly less space on right */
#menu-item-121 > a {
    padding-right: 12px !important;
}



/* =========================================================
   TOP NAVIGATION DIVIDERS
   ========================================================= */

#menu-item-118::after,
#menu-item-119::after,
#menu-item-120::after {
    content: "";
    position: absolute;

    right: 0;
    top: 50%;

    transform: translateY(-50%);

    width: 1px;
    height: 28px;

    background: #dddddd;

    pointer-events: none;
}



/* =========================================================
   TOP NAVIGATION ICONS
   ========================================================= */

#menu-item-118 > a::before,
#menu-item-119 > a::before,
#menu-item-120 > a::before,
#menu-item-121 > a::before {
    content: "";

    display: inline-block;

    width: 20px;
    height: 20px;

    flex: 0 0 20px;

    margin-right: 11px;

    background: var(--gamerly-gradient);

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}



/* =========================================================
   NEWS ICON - LIGHTNING
   ========================================================= */

#menu-item-118 > a::before {
    -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13 2L4 14h7l-1 8 9-12h-7l1-8z'/%3E%3C/svg%3E");

    mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13 2L4 14h7l-1 8 9-12h-7l1-8z'/%3E%3C/svg%3E");
}



/* =========================================================
   FEATURES ICON - FLAME
   ========================================================= */

#menu-item-119 > a::before {
    -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 22c4.4 0 8-3.3 8-7.6 0-3.1-1.8-5.9-5.2-8.4.1 2.2-.7 3.7-2.2 4.8.2-3.8-1.5-6.7-4.3-8.8.2 3.4-4.3 6.1-4.3 11.9C4 18.4 7.6 22 12 22z'/%3E%3C/svg%3E");

    mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 22c4.4 0 8-3.3 8-7.6 0-3.1-1.8-5.9-5.2-8.4.1 2.2-.7 3.7-2.2 4.8.2-3.8-1.5-6.7-4.3-8.8.2 3.4-4.3 6.1-4.3 11.9C4 18.4 7.6 22 12 22z'/%3E%3C/svg%3E");
}



/* =========================================================
   REVIEWS ICON - STAR
   ========================================================= */

#menu-item-120 > a::before {
    -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8-6.2-3.2L5.8 21 7 14.2l-5-4.9 6.9-1L12 2z'/%3E%3C/svg%3E");

    mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8-6.2-3.2L5.8 21 7 14.2l-5-4.9 6.9-1L12 2z'/%3E%3C/svg%3E");
}



/* =========================================================
   GUIDES ICON - BOOKMARK
   ========================================================= */

#menu-item-121 > a::before {
    -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h12a2 2 0 012 2v18l-8-5-8 5V4a2 2 0 012-2zm0 2v14.4l6-3.7 6 3.7V4H6z'/%3E%3C/svg%3E");

    mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h12a2 2 0 012 2v18l-8-5-8 5V4a2 2 0 012-2zm0 2v14.4l6-3.7 6 3.7V4H6z'/%3E%3C/svg%3E");
}

/* =========================================================
   HEADER SEARCH
   ========================================================= */

.smart-head form.search-form {
    height: 46px !important;

    width: 100% !important;
    max-width: 320px !important;
    min-width: 220px;

    display: flex !important;
    align-items: center !important;

    background: #ffffff !important;

    border: 1px solid #e2e2e2 !important;
    border-radius: 12px !important;

    overflow: hidden !important;

    box-shadow: none !important;

    transition: border-color 0.2s ease;

    box-sizing: border-box !important;
}


/* Search input */
.smart-head .live-search-query {
    height: 44px !important;

    padding: 0 18px !important;

    margin: 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    font-size: 15px !important;

    outline: none !important;

    min-width: 0 !important;
}


/* Search button */
.smart-head .search-button {
    height: 44px !important;
    width: 48px !important;

    flex: 0 0 48px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;
}


/* Search active */
.smart-head form.search-form:focus-within {
    border-color: var(--gamerly-coral) !important;
}


/* Search icon hover */
.smart-head .search-button:hover {
    color: var(--gamerly-coral) !important;
}


/* Placeholder */
.smart-head .live-search-query::placeholder {
    color: #888888;
    opacity: 1;
}



/* =========================================================
   DARK MODE BUTTON
   ========================================================= */

.smart-head .scheme-switcher .toggle-dark {
    width: 42px;
    height: 42px;

    display: flex !important;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    transition: background-color 0.2s ease;
}


/* Moon icon */
.smart-head .scheme-switcher .toggle-dark .tsi-moon {
    transition: color 0.2s ease;
}


/* Hover */
.smart-head .scheme-switcher .toggle-dark:hover {
    background-color: var(--gamerly-warm-tint);
}


.smart-head .scheme-switcher .toggle-dark:hover .tsi-moon {
    color: var(--gamerly-coral) !important;
}



/* =========================================================
   RESPONSIVE - MEDIUM BOXED WIDTH
   ========================================================= */

@media (max-width: 1400px) {

    #menu-item-118 > a,
    #menu-item-119 > a,
    #menu-item-120 > a,
    #menu-item-121 > a {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }


    #menu-item-118 > a {
        padding-left: 8px !important;
    }


    #menu-item-121 > a {
        padding-right: 8px !important;
    }


    #menu-main-nav {
        padding-left: 35px !important;
        padding-right: 35px !important;
    }


    .smart-head form.search-form {
        max-width: 280px !important;
        min-width: 200px;
    }
}



/* =========================================================
   RESPONSIVE - SMALLER DESKTOP
   ========================================================= */

@media (max-width: 1200px) {

    #menu-item-118 > a,
    #menu-item-119 > a,
    #menu-item-120 > a,
    #menu-item-121 > a {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }


    #menu-item-118 > a {
        padding-left: 5px !important;
    }


    #menu-item-121 > a {
        padding-right: 5px !important;
    }


    #menu-main-nav {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }


    #menu-main-nav > li > a {
        font-size: 13px !important;
    }


    .smart-head form.search-form {
        max-width: 240px !important;
        min-width: 180px;
    }
}


/* ========================================================= */

/* =========================================================
   GAMERLY - POPULAR NOW SIDEBAR
   Jetpack Top Posts & Pages
   ========================================================= */


/* =========================================================
   WIDGET CONTAINER
   ========================================================= */

#top-posts-2 {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   POPULAR NOW HEADING
   ========================================================= */

#top-posts-2 .widget-title {
    display: flex !important;
    align-items: center !important;

    width: 100% !important;

    margin: 0 0 26px 0 !important;
    padding: 0 0 12px 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    border-image: var(--gamerly-gradient) 1 !important;

    min-height: auto !important;

    box-sizing: border-box !important;
}


/* Hide original "Top Posts & Pages" text */

#top-posts-2 .widget-title .heading {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    position: static !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;

    transform: none !important;

    font-size: 0 !important;

    color: var(--gamerly-ink) !important;
}


/* Replace it with POPULAR NOW */

#top-posts-2 .widget-title .heading::after {
    content: "POPULAR NOW";

    display: block !important;

    position: static !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: var(--gamerly-ink) !important;

    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;

    letter-spacing: 0.2px !important;

    text-transform: uppercase !important;

    visibility: visible !important;
    opacity: 1 !important;

    transform: none !important;
}


/* Remove SmartMag decorative elements */

#top-posts-2 .widget-title::before,
#top-posts-2 .widget-title::after,
#top-posts-2 .heading::before {
    display: none !important;
}


/* =========================================================
   POSTS LIST
   ========================================================= */

#top-posts-2 .widgets-list-layout {
    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}


/* Individual post */

#top-posts-2 .widgets-list-layout li {
    display: flex !important;

    align-items: flex-start !important;

    width: 100% !important;

    gap: 16px !important;

    margin: 0 0 24px 0 !important;
    padding: 0 !important;

    border: 0 !important;

    box-sizing: border-box !important;
}


/* Remove unnecessary margin from final article */

#top-posts-2 .widgets-list-layout li:last-child {
    margin-bottom: 0 !important;
}


/* =========================================================
   THUMBNAILS
   ========================================================= */

#top-posts-2 .widgets-list-layout .widgets-list-layout-blavatar {
    flex: 0 0 125px !important;

    width: 125px !important;
    max-width: 125px !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* Image */

#top-posts-2 .widgets-list-layout img {
    display: block !important;

    width: 125px !important;
    height: 90px !important;

    max-width: none !important;

    object-fit: cover !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 7px !important;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* Image hover */

#top-posts-2 .widgets-list-layout li:hover img {
    transform: scale(1.025);
    opacity: 0.92;
}


/* =========================================================
   ARTICLE TITLE AREA
   ========================================================= */

#top-posts-2 .widgets-list-layout .widgets-list-layout-links {
    flex: 1 1 auto !important;

    width: auto !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* Article title */

#top-posts-2 .widgets-list-layout .widgets-list-layout-links a {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    color: var(--gamerly-ink) !important;

    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;

    text-decoration: none !important;

    transition: color 0.2s ease;
}


/* Article title hover */

#top-posts-2 .widgets-list-layout .widgets-list-layout-links a:hover {
    color: var(--gamerly-coral) !important;
}


/* =========================================================
   RESPONSIVE SIDEBAR
   ========================================================= */

@media (max-width: 1200px) {

    #top-posts-2 .widgets-list-layout .widgets-list-layout-blavatar {
        flex-basis: 105px !important;

        width: 105px !important;
        max-width: 105px !important;
    }


    #top-posts-2 .widgets-list-layout img {
        width: 105px !important;
        height: 76px !important;
    }


    #top-posts-2 .widgets-list-layout .widgets-list-layout-links a {
        font-size: 15px !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    #top-posts-2 .widget-title {
        margin-bottom: 20px !important;
    }


    #top-posts-2 .widgets-list-layout li {
        gap: 14px !important;

        margin-bottom: 20px !important;
    }


    #top-posts-2 .widgets-list-layout .widgets-list-layout-blavatar {
        flex-basis: 110px !important;

        width: 110px !important;
        max-width: 110px !important;
    }


    #top-posts-2 .widgets-list-layout img {
        width: 110px !important;
        height: 78px !important;
    }


    #top-posts-2 .widgets-list-layout .widgets-list-layout-links a {
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

}

/* =========================================
   POPULAR NOW FINAL POLISH
   ========================================= */

/* Slightly smaller thumbnails */
#top-posts-2 .widgets-list-layout .widgets-list-layout-blavatar {
    flex: 0 0 115px !important;
    width: 115px !important;
    max-width: 115px !important;
}

#top-posts-2 .widgets-list-layout img {
    width: 115px !important;
    height: 82px !important;
    object-fit: cover !important;
}


/* Cleaner article titles */
#top-posts-2 .widgets-list-layout .widgets-list-layout-links a {
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;

    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;

    overflow: hidden !important;
}


/* Slightly tighter spacing between stories */
#top-posts-2 .widgets-list-layout li {
    gap: 15px !important;
    margin-bottom: 22px !important;
}

/* Breadcrumbs */
.single-post .breadcrumbs {
    font-size: 13px !important;
    opacity: 0.80;
}

/* =========================================
   GAMERLY CATEGORY META TAG
   ========================================= */

.single-post .post-meta .post-cat,
.single-post .post-meta .category,
.single-post .post-meta .cat-label,
.single-post .post-meta .post-cat > a,
.single-post .post-meta .category > a {
    border-radius: 5px !important;
}


/* =========================================
   GAMERLY MOBILE ARTICLE DESIGN
   ========================================= */

@media (max-width: 767px) {


    /* =====================================
       HIDE BREADCRUMBS
       ===================================== */

    .single-post .breadcrumbs,
    .breadcrumbs {
        display: none !important;
    }


    /* =====================================
       CATEGORY TAG
       ===================================== */

    .single-post .post-meta .post-cat a,
    .single-post .post-meta .category a {
        border-radius: 5px !important;

        background: var(--gamerly-gradient) !important;
        color: var(--gamerly-ink) !important;

        padding: 7px 12px !important;

        font-size: 12px !important;
        font-weight: 800 !important;

        letter-spacing: 0.5px !important;
    }


    /* =====================================
       ARTICLE TITLE
       ===================================== */

    .single-post h1,
    .single-post .post-title {
        position: relative !important;

        font-size: 32px !important;
        line-height: 1.05 !important;
        letter-spacing: -0.6px !important;

        padding-bottom: 0 !important;

        margin-top: 2 !important;
        margin-bottom: 18px !important;
    }


    /* =====================================
       GAMERLY GRADIENT ACCENT UNDER HEADLINE
       ===================================== */

    .single-post h1::after,
    .single-post .post-title::after {
        content: "" !important;

        display: block !important;

        width: 52px !important;
        height: 4px !important;

        margin-top: 16px !important;
        margin-bottom: 0 !important;

        background: var(--gamerly-gradient) !important;

        border-radius: 2px !important;
    }


    /* =====================================
       FEATURED / HERO IMAGE CONTAINER
       ===================================== */

    .single-post .featured,
    .single-post .post-featured {
        margin-top: 0 !important;
        margin-bottom: 26px !important;

        padding: 0 !important;

        border-radius: 7px !important;
    }


    /* =====================================
       FEATURED / HERO IMAGE
       ===================================== */

    .single-post .featured img,
    .single-post .post-featured img {
        display: block !important;

        width: 100% !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        border-radius: 7px !important;

        box-shadow:
            0 3px 8px rgba(0, 0, 0, 0.08),
            0 10px 25px rgba(0, 0, 0, 0.06) !important;
    }


    /* =====================================
       ARTICLE BODY
       ===================================== */

    .single-post .post-content {
        margin-top: 26px !important;

        font-size: 18px !important;
        line-height: 1.7 !important;
    }


    /* =====================================
       ARTICLE PARAGRAPHS
       ===================================== */

    .single-post .post-content p {
        margin-top: 0 !important;
        margin-bottom: 24px !important;

        font-size: 18px !important;
        line-height: 1.7 !important;
    }


    /* First paragraph */
    .single-post .post-content p:first-child {
        margin-top: 0 !important;
    }


    /* =====================================
       ARTICLE LINKS
       ===================================== */

    .single-post .post-content a {
        transition: color 0.2s ease;
    }

    .single-post .post-content a:hover {
        color: var(--gamerly-coral) !important;
    }


    /* =====================================
       IMAGES INSIDE ARTICLE BODY
       ===================================== */

    .single-post .post-content img {
        max-width: 100% !important;
        height: auto !important;

        border-radius: 6px !important;
    }

}

@media (max-width: 767px) {

    .single-post .post-content p:first-child::first-letter {
        float: left;

        margin-right: 12px;
        margin-top: 5px;

        padding: 6px 10px 7px;

        background: var(--gamerly-ink);
        color: var(--gamerly-peach);

        font-size: 32px;
        font-weight: 800;
        line-height: 1;

        border-radius: 5px;

        box-shadow: 0 2px 6px rgba(33, 33, 45, 0.18);
    }

}

/* =========================================
   GAMERLY CUSTOM MOBILE BURGER
   ========================================= */

@media (max-width: 767px) {

    /* Burger button */
    #smart-head-mobile .offcanvas-toggle {
        width: 38px !important;
        height: 38px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        padding: 0 !important;
        margin: 0 !important;

        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }


    /* Burger icon container */
    #smart-head-mobile .hamburger-icon {
        position: relative !important;

        display: block !important;

        width: 28px !important;
        height: 22px !important;

        margin: 0 !important;
    }


    /* Middle bar */
    #smart-head-mobile .hamburger-icon .inner {
        position: absolute !important;

        left: 0 !important;
        top: 50% !important;

        width: 28px !important;
        height: 4px !important;

        margin: 0 !important;

        background: var(--gamerly-ink) !important;

        border: 0 !important;
        border-radius: 50px !important;

        transform: translateY(-50%) !important;
    }


    /* Top + bottom bars */
    #smart-head-mobile .hamburger-icon .inner::before,
    #smart-head-mobile .hamburger-icon .inner::after {
        content: "" !important;

        position: absolute !important;
        left: 0 !important;

        width: 28px !important;
        height: 4px !important;

        background: var(--gamerly-ink) !important;

        border: 0 !important;
        border-radius: 50px !important;

        transform: none !important;
    }


    /* Top bar */
    #smart-head-mobile .hamburger-icon .inner::before {
        top: -9px !important;
    }


    /* Bottom bar */
    #smart-head-mobile .hamburger-icon .inner::after {
        top: 9px !important;
    }

}

@media (max-width: 767px) {

    /* Burger */
    #smart-head-mobile .hamburger-icon .inner,
    #smart-head-mobile .hamburger-icon .inner::before,
    #smart-head-mobile .hamburger-icon .inner::after {
        background: #ffffff !important;
    }

    /* Header icons */
    #smart-head-mobile .items-right,
    #smart-head-mobile .items-right a,
    #smart-head-mobile .items-right button,
    #smart-head-mobile .items-right i,
    #smart-head-mobile .items-right svg {
        color: #ffffff !important;
    }

    #smart-head-mobile .items-right svg {
        fill: currentColor;
    }
}


/* =========================================
   SMALLER DESKTOP HEADER LOGO
   ========================================= */

@media (min-width: 768px) {

    .smart-head .logo-link {
        flex: 0 0 auto !important;
    }

    .smart-head .logo-image {
        width: 240px !important;
        max-width: 360px !important;
        height: auto !important;
        max-height: none !important;
        padding: 8px 0 !important;
    }
}

/* =========================================
   GAMERFICIAL DESKTOP MENU
   ========================================= */

@media (min-width: 941px) {

    /* Menu spacing */
    #menu-primary {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
    }

    /* Menu links */
    #menu-primary > li > a {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;

        padding: 12px 13px !important;

        color: #ffffff !important;

        font-size: 15px !important;
        font-weight: 700 !important;
        letter-spacing: 0.3px !important;

        transition:
            color 0.2s ease,
            opacity 0.2s ease !important;
    }

    /* Shared icon styling */
    #menu-primary > li > a::before {
        content: "" !important;

        display: inline-block !important;

        width: 15px !important;
        height: 15px !important;

        flex: 0 0 15px !important;

        background: linear-gradient(
            135deg,
            #fe7b83 0%,
            #ff9f86 55%,
            #ffd792 100%
        ) !important;

        -webkit-mask-image: var(--menu-icon);
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-size: contain;

        mask-image: var(--menu-icon);
        mask-position: center;
        mask-repeat: no-repeat;
        mask-size: contain;
    }

    /* HOME */
    #menu-primary > li:nth-child(1) {
        --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 11.5L12 4l9 7.5V20a1 1 0 01-1 1h-5v-6H9v6H4a1 1 0 01-1-1v-8.5z'/%3E%3C/svg%3E");
    }

    /* NEWS */
    #menu-primary > li:nth-child(2) {
        --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13 2L4 14h7l-1 8 10-13h-7V2z'/%3E%3C/svg%3E");
    }

    /* FEATURES */
    #menu-primary > li:nth-child(3) {
        --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' d='M12 3l2.8 5.7 6.2.9-4.5 4.4 1.1 6.2-5.6-2.9-5.6 2.9 1.1-6.2L3 9.6l6.2-.9L12 3z'/%3E%3C/svg%3E");
    }

    /* LEAKS */
    #menu-primary > li:nth-child(4) {
        --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12zm10-2.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5z'/%3E%3C/svg%3E");
    }

    /* GUIDES */
    #menu-primary > li:nth-child(5) {
        --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' d='M6 3h12a1 1 0 011 1v17l-7-4-7 4V4a1 1 0 011-1z'/%3E%3C/svg%3E");
    }

    /* Hover and selected page */
    #menu-primary > li > a:hover,
    #menu-primary > li.current-menu-item > a {
        color: #ff9f86 !important;
    }

    #menu-primary > li > a:hover::before {
        transform: translateY(-1px);
    }
}

/* =========================================
   GAMERFICIAL DARK HEADER SEARCH
   ========================================= */

.smart-head form.search-form {
    background: #2b2b39 !important;

    border: 1px solid rgba(255, 159, 134, 0.75) !important;
    border-radius: 12px !important;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 4px 14px rgba(0, 0, 0, 0.12) !important;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease !important;
}

/* Search text */
.smart-head .live-search-query {
    background: transparent !important;
    color: #ffffff !important;
}

/* Placeholder text */
.smart-head .live-search-query::placeholder {
    color: #aaaab5 !important;
    opacity: 1 !important;
}

/* Search icon */
.smart-head .search-button {
    background: transparent !important;
    color: #ff9f86 !important;
}

/* Active search box */
.smart-head form.search-form:focus-within {
    background: #30303f !important;
    border-color: #ffd792 !important;

    box-shadow:
        0 0 0 3px rgba(254, 123, 131, 0.12),
        0 5px 16px rgba(0, 0, 0, 0.16) !important;
}

/* Search icon hover */
.smart-head .search-button:hover {
    color: #ffd792 !important;
}

/* =========================================
   GAMERFICIAL POPULAR NOW SIDEBAR
   ========================================= */

/* Widget heading */
.main-sidebar .widget-title,
.main-sidebar .block-head {
    position: relative !important;

    margin-bottom: 24px !important;
    padding: 14px 18px !important;

    background: #21212d !important;

    border: 0 !important;
    border-radius: 8px !important;

    overflow: hidden !important;
}

/* Gradient line underneath heading */
.main-sidebar .widget-title::after,
.main-sidebar .block-head::after {
    content: "" !important;

    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;

    width: 100% !important;
    height: 3px !important;

    background: linear-gradient(
        90deg,
        #fe7b83 0%,
        #ff9f86 55%,
        #ffd792 100%
    ) !important;
}

/* Heading text */
.main-sidebar .widget-title,
.main-sidebar .widget-title .heading,
.main-sidebar .block-head,
.main-sidebar .block-head .title {
    color: #ffffff !important;

    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;

    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
}

/* Individual popular posts */
.main-sidebar .small-post,
.main-sidebar .post-item {
    margin-bottom: 0 !important;
    padding: 20px 0 !important;

    border-bottom: 1px solid #ececf0 !important;
}

/* Remove line from final post */
.main-sidebar .small-post:last-child,
.main-sidebar .post-item:last-child {
    border-bottom: 0 !important;
}

/* Post thumbnails */
.main-sidebar .post-thumb img,
.main-sidebar .wp-post-image {
    display: block !important;

    border-radius: 8px !important;

    box-shadow: 0 4px 12px rgba(33, 33, 45, 0.12) !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease !important;
}

/* Thumbnail hover */
.main-sidebar .small-post:hover .post-thumb img,
.main-sidebar .post-item:hover .post-thumb img {
    transform: translateY(-2px) !important;

    box-shadow: 0 7px 16px rgba(33, 33, 45, 0.17) !important;
}

/* Article titles */
.main-sidebar .post-title,
.main-sidebar .post-title a {
    color: #21212d !important;

    font-size: 16px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;

    text-decoration: none !important;

    transition: color 0.2s ease !important;
}

/* Title hover */
.main-sidebar .post-title a:hover {
    color: #fe7b83 !important;
}

/* Dates and post information */
.main-sidebar .post-meta,
.main-sidebar .post-date {

    color: #92929b !important;

    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

/* Keep widget neatly contained */
.main-sidebar .widget {
    margin-bottom: 38px !important;
}

/* =========================================
   POPULAR NOW TIGHTER SPACING
   ========================================= */

/* Reduce gap beneath heading */
.main-sidebar .widget-title,
.main-sidebar .block-head {
    margin-bottom: 16px !important;
}

/* Remove spacing around the posts container */
.main-sidebar .block-content,
.main-sidebar .loop,
.main-sidebar .loop-small {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Tighter article rows */
.main-sidebar .small-post,
.main-sidebar .post-small,
.main-sidebar .post-item,
.main-sidebar .loop-small .post {
    margin: 0 !important;
    padding: 16px 0 !important;

    min-height: 0 !important;

    border-bottom: 1px solid #ececf0 !important;
}

/* Less space above the first article */
.main-sidebar .small-post:first-child,
.main-sidebar .post-small:first-child,
.main-sidebar .post-item:first-child,
.main-sidebar .loop-small .post:first-child {
    padding-top: 4px !important;
}

/* Remove border and extra space from final article */
.main-sidebar .small-post:last-child,
.main-sidebar .post-small:last-child,
.main-sidebar .post-item:last-child,
.main-sidebar .loop-small .post:last-child {
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

/* Keep image and text closer together */
.main-sidebar .small-post,
.main-sidebar .post-small,
.main-sidebar .post-item {
    column-gap: 16px !important;
    gap: 16px !important;
}

/* Slightly more compact titles */
.main-sidebar .post-title,
.main-sidebar .post-title a {
    font-size: 15px !important;
    line-height: 1.3 !important;
}

/* Bring date closer to headline */
.main-sidebar .post-meta,
.main-sidebar .post-date {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
}

/* Remove SmartMag's gap between Popular Now rows */
.main-sidebar .block-content,
.main-sidebar .loop,
.main-sidebar .loop-small,
.main-sidebar .posts-list {
    gap: 0 !important;
    row-gap: 0 !important;
    grid-row-gap: 0 !important;

    --grid-gutter: 0px !important;
}

/* Control spacing using the article padding only */
.main-sidebar .small-post,
.main-sidebar .post-small,
.main-sidebar .post-item,
.main-sidebar .loop-small .post {
    margin: 0 !important;
    padding: 16px 0 !important;
}

/* =========================================
   GAMERFICIAL MOBILE HEADER
   ========================================= */

@media (max-width: 767px) {

    /* Main mobile header row */
    #smart-head-mobile .smart-head-row,
    #smart-head-mobile .smart-head-mid {
        height: 78px !important;
        min-height: 70px !important;

        --head-h: 70px !important;

        background:
            linear-gradient(
                90deg,
                #fe7b83 0%,
                #ff9f86 55%,
                #ffd792 100%
            ) bottom / 100% 2px no-repeat,
            #21212d !important;
    }

   /* Header inner container only */
#smart-head-mobile > .smart-head-row > .inner.wrap {
    height: 70px !important;
    min-height: 70px !important;

    padding-left: 18px !important;
    padding-right: 18px !important;
}
    /* Mobile G logo */
    #smart-head-mobile .logo-image {
        display: block !important;

        width: 52px !important;
        max-width: 52px !important;

        height: auto !important;
        max-height: 56px !important;

        padding: 0 !important;
        margin: 0 auto !important;

        object-fit: contain !important;
    }

    /* Keep logo link centred */
    #smart-head-mobile .logo-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        height: 70px !important;
    }

    /* Match burger and search button dimensions */
    #smart-head-mobile .offcanvas-toggle,
    #smart-head-mobile .search-link,
    #smart-head-mobile .search-toggle {
        width: 38px !important;
        height: 38px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Slightly refine burger size */
    #smart-head-mobile .hamburger-icon,
    #smart-head-mobile .hamburger-icon .inner,
    #smart-head-mobile .hamburger-icon .inner::before,
    #smart-head-mobile .hamburger-icon .inner::after {
        width: 24px !important;
    }

    #smart-head-mobile .hamburger-icon .inner,
    #smart-head-mobile .hamburger-icon .inner::before,
    #smart-head-mobile .hamburger-icon .inner::after {
        height: 3px !important;
    }
}

/* =========================================
   FIX MOBILE BURGER BUTTON
   ========================================= */

@media (max-width: 767px) {

    /* Remove SmartMag button background */
    #smart-head-mobile .offcanvas-toggle {
        position: relative !important;

        width: 38px !important;
        height: 38px !important;

        padding: 0 !important;
        margin: 0 !important;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;
        overflow: visible !important;
    }

    /* Remove unwanted circle */
    #smart-head-mobile .offcanvas-toggle::before,
    #smart-head-mobile .offcanvas-toggle::after {
        content: none !important;
        display: none !important;
    }

    /* Burger container */
    #smart-head-mobile .hamburger-icon {
        position: relative !important;

        display: block !important;

        width: 24px !important;
        height: 19px !important;

        padding: 0 !important;
        margin: 0 auto !important;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    /* All three bars */
    #smart-head-mobile .hamburger-icon .inner,
    #smart-head-mobile .hamburger-icon .inner::before,
    #smart-head-mobile .hamburger-icon .inner::after {
        position: absolute !important;
        left: 0 !important;

        width: 24px !important;
        height: 3px !important;

        background: #ffffff !important;

        border: 0 !important;
        border-radius: 20px !important;

        box-shadow: none !important;
        transform: none !important;
    }

    /* Middle bar */
    #smart-head-mobile .hamburger-icon .inner {
        top: 8px !important;
    }

    /* Top bar */
    #smart-head-mobile .hamburger-icon .inner::before {
        content: "" !important;
        top: -8px !important;
    }

    /* Bottom bar */
    #smart-head-mobile .hamburger-icon .inner::after {
        content: "" !important;
        top: 8px !important;
    }
}

/* Move mobile controls towards the header edges */
@media (max-width: 767px) {

    /* Ensure the header grid uses the full width */
    #smart-head-mobile > .smart-head-row > .inner.wrap {
        width: 100% !important;
        max-width: none !important;

        padding-left: 1px !important;
        padding-right: 1px !important;

        box-sizing: border-box !important;
    }

    /* Burger towards left edge */
    #smart-head-mobile .items-left {
        justify-self: start !important;
        justify-content: flex-start !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    /* Search towards right edge */
    #smart-head-mobile .items-right {
        justify-self: end !important;
        justify-content: flex-end !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    /* Keep logo perfectly centred */
    #smart-head-mobile .items-center {
        justify-self: center !important;
        justify-content: center !important;
    }
}

/* Mobile G logo */
#smart-head-mobile .logo-image {
    display: block !important;

    width:35px !important;
    max-width: 44px !important;

    height: auto !important;
    max-height: 48px !important;

    padding: 0 !important;
    margin: 0 auto !important;

    object-fit: contain !important;
}

@media (max-width: 767px) {

    #smart-head-mobile .items-left,
    #smart-head-mobile .items-center,
    #smart-head-mobile .items-right {
        transform: translateY(6px) !important;
    }

    /* Prevent the logo from being moved twice */
    #smart-head-mobile .logo-image {
        transform: none !important;
    }
}

@media (max-width: 767px) {

    #smart-head-mobile .items-left,
    #smart-head-mobile .items-center,
    #smart-head-mobile .items-right {
        transform: translateY(3px) !important;
    }
}

/* =========================================
   MOBILE ARTICLE TAGS AND RELATED POSTS
   ========================================= */

@media (max-width: 767px) {

    /* =====================================
       ARTICLE TAGS
       ===================================== */

    .single-post .the-post-tags {
        display: flex !important;
        flex-wrap: wrap !important;

        gap: 8px !important;

        margin: 28px 0 34px !important;
        padding: 0 !important;
    }

    .single-post .the-post-tags a {
        display: inline-flex !important;
        align-items: center !important;

        margin: 0 !important;
        padding: 8px 11px !important;

        background: #fff3ef !important;
        color: #4d4d58 !important;

        border: 1px solid rgba(254, 123, 131, 0.35) !important;
        border-radius: 6px !important;

        font-size: 12px !important;
        font-weight: 650 !important;
        line-height: 1.1 !important;
        letter-spacing: 0.1px !important;

        transition:
            color 0.2s ease,
            background 0.2s ease,
            border-color 0.2s ease !important;
    }

    .single-post .the-post-tags a:hover {
        background: #21212d !important;
        color: #ff9f86 !important;
        border-color: #21212d !important;
    }


    /* =====================================
       RELATED POSTS SECTION
       ===================================== */

    .single-post .related-posts {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Related Posts heading */
    .single-post .related-posts > .block-head {
        position: relative !important;

        margin: 0 0 20px !important;
        padding: 14px 16px !important;

        background: #21212d !important;

        border: 0 !important;
        border-radius: 8px !important;

        overflow: hidden !important;
    }

    /* Gradient heading accent */
    .single-post .related-posts > .block-head::after {
        content: "" !important;

        position: absolute !important;
        left: 0 !important;
        bottom: 0 !important;

        width: 100% !important;
        height: 3px !important;

        background: linear-gradient(
            90deg,
            #fe7b83 0%,
            #ff9f86 55%,
            #ffd792 100%
        ) !important;
    }

    .single-post .related-posts > .block-head .heading {
        color: #ffffff !important;

        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;

        letter-spacing: 0.4px !important;
    }

    .single-post .related-posts > .block-head .heading span {
        color: #ff9f86 !important;
    }


    /* =====================================
       RELATED ARTICLE GRID
       ===================================== */

    .single-post .related-posts .block-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;

        gap: 22px !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    /* Related article cards */
    .single-post .related-posts .post {
        margin: 0 !important;
        padding: 0 0 20px !important;

        border-bottom: 1px solid #ececf0 !important;
    }

    .single-post .related-posts .post:last-child {
        padding-bottom: 0 !important;
        border-bottom: 0 !important;
    }

    /* Related article images */
    .single-post .related-posts .post-thumb img,
    .single-post .related-posts img.wp-post-image {
        display: block !important;

        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;

        object-fit: cover !important;

        border-radius: 8px !important;

        box-shadow: 0 5px 14px rgba(33, 33, 45, 0.12) !important;
    }

    /* Related article titles */
    .single-post .related-posts .post-title,
    .single-post .related-posts .post-title a {
        color: #21212d !important;

        font-size: 22px !important;
        font-weight: 800 !important;
        line-height: 1.18 !important;
        letter-spacing: -0.3px !important;

        text-decoration: none !important;
    }

    .single-post .related-posts .post-title {
        margin: 14px 0 0 !important;

        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 3 !important;

        overflow: hidden !important;
    }

    .single-post .related-posts .post-title a:hover {
        color: #fe7b83 !important;
    }
}

@media (max-width: 767px) {

    .single-post .post-content,
    .single-post .post-content p {
        font-size: 16px !important;
        line-height: 1.62 !important;
    }

    .single-post .post-content p {
        margin-bottom: 22px !important;
    }
}