/* ============================================================
   GAMEI4 CATEGORY
============================================================ */

:root {
    --gi4-orange: #ff5a00;
    --gi4-orange-2: #ff7818;
    --gi4-text: #161616;
    --gi4-gray: #6c727b;
    --gi4-border: #e8e8e8;
    --gi4-light: #f8f9fb;
}


.gamei4-category-page {
    background: #fff;
    color: var(--gi4-text);
}


.gamei4-category-page * {
    box-sizing: border-box;
}


.gamei4-category-page a {
    text-decoration: none;
}


.gi4-container {
    width: calc(100% - 40px);
    max-width: 1240px;
    margin: 0 auto;
}



/* ============================================================
   HERO
============================================================ */

.gi4-cat-hero {
    position: relative;
    overflow: hidden;
    min-height: 245px;
    padding: 35px 0 38px;
    border-bottom: 1px solid #eee;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.98) 0%,
            rgba(255,250,246,.95) 55%,
            rgba(255,255,255,.88) 100%
        );
}


.gi4-cat-hero::after {
    content: "";
    position: absolute;

    top: 0;
    right: 0;

    width: 48%;
    height: 100%;

    background-image:
        linear-gradient(
            90deg,
            #fff 0%,
            rgba(255,255,255,.20) 65%
        ),
        var(--gi4-hero-image);

    background-size: cover;
    background-position: center;

    opacity: .75;

    pointer-events: none;
}


.gi4-cat-hero::before {
    content: "";
    position: absolute;

    width: 500px;
    height: 500px;

    left: 40%;
    top: -270px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,90,0,.07),
            transparent 70%
        );
}


.gi4-hero-content {
    width: 66%;
    position: relative;
    z-index: 3;
}


.gi4-breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;

    margin-bottom: 14px;

    font-size: 13px;
    color: #777;
}


.gi4-breadcrumb a {
    color: #6b6b6b;
}


.gi4-breadcrumb a:hover {
    color: var(--gi4-orange);
}


.gi4-cat-hero h1 {
    padding: 0;
    margin: 0 0 13px;

    font-size: 31px;
    line-height: 1.3;
    font-weight: 700;

    color: #171717;
}


.gi4-cat-hero h1 strong {
    color: var(--gi4-orange);
    font-weight: 700;
}


.gi4-cat-description {
    max-width: 600px;

    margin-bottom: 22px;

    color: #626871;

    font-size: 14px;
    line-height: 1.75;
}


.gi4-cat-stats {
    display: flex;
    flex-wrap: wrap;

    gap: 30px;
}


.gi4-stat {
    display: flex;
    align-items: center;

    gap: 6px;

    color: #555;

    font-size: 13px;
}


.gi4-stat .dashicons {
    width: 18px;
    height: 18px;

    font-size: 17px;

    color: #292929;
}



/* ============================================================
   MAIN
============================================================ */

.gi4-category-main {
    padding-bottom: 35px;
}


.gi4-category-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        280px;

    gap: 28px;
}


.gi4-category-content {
    min-width: 0;
}



/* ============================================================
   TOOLBAR
============================================================ */

.gi4-toolbar {
    min-height: 62px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 18px;

    border-bottom: 1px solid var(--gi4-border);
}


.gi4-tabs {
    display: flex;
    align-items: center;

    gap: 5px;
}


.gi4-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    padding: 7px 17px;

    border-radius: 50px;

    color: #404040;

    font-size: 12px;
    line-height: 1;

    font-weight: 600;

    text-transform: uppercase;

    white-space: nowrap;

    transition: .25s ease;
}


.gi4-tabs a:hover {
    color: var(--gi4-orange);
}


.gi4-tabs a.active {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--gi4-orange-2),
            var(--gi4-orange)
        );

    box-shadow:
        0 5px 15px
        rgba(255,90,0,.20);
}



.gi4-sort {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    gap: 8px;

    flex-shrink: 0;

    font-size: 12px;
    color: #777;
}


.gi4-sort select {
    min-width: 116px;
    height: 38px;

    margin: 0;

    padding:
        0 33px
        0 12px;

    border: 1px solid #ddd;

    border-radius: 7px;

    background-color: #fff;

    box-shadow: none;

    color: #444;

    font-size: 12px;
}



/* ============================================================
   FEATURED POST
============================================================ */

.gi4-featured-post {
    display: grid;

    grid-template-columns:
        45% 55%;

    min-height: 290px;

    margin: 0 0 16px;

    overflow: hidden;

    border: 1px solid var(--gi4-border);
    border-radius: 10px;

    background: #fff;

    transition: .25s ease;
}


.gi4-featured-post:hover {
    border-color: #ddd;

    box-shadow:
        0 10px 30px
        rgba(0,0,0,.045);
}


.gi4-featured-image {
    position: relative;

    display: block;

    min-height: 290px;

    overflow: hidden;

    background: #eee;
}


.gi4-featured-image img {
    width: 100%;
    height: 100%;

    position: absolute;

    inset: 0;

    object-fit: cover;

    transition:
        transform .4s ease;
}


.gi4-featured-post:hover
.gi4-featured-image img {
    transform: scale(1.035);
}


.gi4-featured-label {
    position: absolute;

    top: 12px;
    left: 12px;

    z-index: 5;

    padding:
        6px 10px;

    border-radius: 5px;

    background: var(--gi4-orange);

    color: #fff;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
}


.gi4-featured-content {
    display: flex;
    flex-direction: column;

    padding: 22px 22px 18px;
}


.gi4-post-category {
    margin-bottom: 7px;

    color: var(--gi4-orange);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
}


.gi4-featured-content h2 {
    margin:
        0
        0
        10px;

    padding: 0;

    font-size: 23px;
    line-height: 1.27;

    font-weight: 700;

    letter-spacing: -.2px;
}


.gi4-featured-content h2 a {
    color: #171717;
}


.gi4-featured-content h2 a:hover {
    color: var(--gi4-orange);
}


.gi4-featured-excerpt {
    color: #666;

    font-size: 14px;
    line-height: 1.65;
}


.gi4-featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin-top: auto;
    padding-top: 18px;
}


.gi4-post-meta {
    display: flex;
    align-items: center;

    gap: 17px;

    color: #8a8a8a;

    font-size: 12px;
}


.gi4-post-meta > span {
    display: flex;
    align-items: center;

    gap: 5px;
}


.gi4-post-meta .dashicons {
    width: 15px;
    height: 15px;

    font-size: 14px;

    line-height: 15px;
}


.gi4-read-more {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding:
        7px 14px;

    border:
        1px solid
        var(--gi4-orange);

    border-radius: 6px;

    color: var(--gi4-orange);

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;

    transition: .2s;
}


.gi4-read-more:hover {
    color: #fff;

    background:
        var(--gi4-orange);
}



/* ============================================================
   POST GRID
============================================================ */

.gi4-post-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}


.gi4-post-card {
    overflow: hidden;

    margin: 0;

    border:
        1px solid
        var(--gi4-border);

    border-radius: 9px;

    background: #fff;

    transition:
        transform .25s,
        box-shadow .25s,
        border-color .25s;
}


.gi4-post-card:hover {
    transform: translateY(-2px);

    border-color: #ddd;

    box-shadow:
        0 10px 25px
        rgba(0,0,0,.05);
}


.gi4-card-image {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #eee;
}


.gi4-card-image img {
    width: 100%;
    height: 100%;

    position: absolute;

    inset: 0;

    object-fit: cover;

    transition:
        transform .4s ease;
}


.gi4-post-card:hover
.gi4-card-image img {
    transform: scale(1.05);
}


.gi4-card-content {
    padding: 13px 13px 10px;
}


.gi4-card-content h3 {
    margin:
        2px
        0
        8px;

    padding: 0;

    font-size: 16px;
    line-height: 1.32;

    font-weight: 650;

    min-height: 42px;
}


.gi4-card-content h3 a {
    color: #171717;
}


.gi4-card-content h3 a:hover {
    color: var(--gi4-orange);
}


.gi4-card-excerpt {
    min-height: 56px;

    color: #777;

    font-size: 12px;
    line-height: 1.55;
}


.gi4-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin:
        10px
        -13px
        -10px;

    padding:
        10px
        13px;

    border-top:
        1px solid
        #eee;

    color: #888;

    font-size: 12px;
}


.gi4-card-meta > span {
    display: flex;
    align-items: center;

    gap: 4px;
}


.gi4-card-meta .dashicons {
    width: 14px;
    height: 14px;

    font-size: 13px;
    line-height: 14px;
}



/* ============================================================
   SIDEBAR
============================================================ */

.gi4-category-sidebar {
    min-width: 0;
}


.gi4-sidebar-box {
    overflow: hidden;

    margin-top: 18px;

    padding:
        15px
        14px;

    border:
        1px solid
        var(--gi4-border);

    border-radius: 10px;

    background: #fff;
}


.gi4-category-sidebar
.gi4-sidebar-box:first-child {
    margin-top: 18px;
}


.gi4-sidebar-heading {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 12px;

    color: #252525;

    font-size: 16px;
    font-weight: 700;

    text-transform: uppercase;
}


.gi4-sidebar-heading .dashicons {
    width: 19px;
    height: 19px;

    color: var(--gi4-orange);

    font-size: 18px;
}


.gi4-sidebar-post {
    display: grid;

    grid-template-columns:
        72px
        minmax(0, 1fr);

    gap: 9px;

    padding:
        10px
        0;

    border-bottom:
        1px solid #eee;
}


.gi4-sidebar-thumb {
    display: block;

    width: 72px;
    height: 57px;

    overflow: hidden;

    border-radius: 5px;

    background: #eee;
}


.gi4-sidebar-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.gi4-sidebar-post-content h4 {
    margin:
        0
        0
        5px;

    padding: 0;

    font-size: 12px;
    line-height: 1.4;

    font-weight: 600;
}


.gi4-sidebar-post-content h4 a {
    color: #242424;
}


.gi4-sidebar-post-content h4 a:hover {
    color: var(--gi4-orange);
}


.gi4-sidebar-post-content > span {
    display: block;

    color: #999;

    font-size: 10px;
}


.gi4-sidebar-more {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 6px;

    padding-top: 12px;

    color: var(--gi4-orange);

    font-size: 11px;
    font-weight: 600;
}


/* Trending */

.gi4-trending-item {
    display: grid;

    grid-template-columns:
        24px
        minmax(0, 1fr)
        15px;

    gap: 8px;

    align-items: center;

    padding:
        9px
        0;

    border-bottom:
        1px solid #eee;
}


.gi4-trending-item:last-child {
    border-bottom: 0;
}


.gi4-trending-number {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;

    background: #f5f5f5;

    font-size: 10px;
    font-weight: 700;
}


.gi4-trending-item a {
    color: #333;

    font-size: 14px;
    line-height: 1.4;
}


.gi4-trending-item a:hover {
    color: var(--gi4-orange);
}


.gi4-trending-arrow {
    color: var(--gi4-orange);

    font-size: 13px;
}


/* Tags */

.gi4-hot-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}


.gi4-hot-tags a {
    display: inline-flex;

    padding:
        5px
        8px;

    border-radius: 5px;

    background: #fff1e8;

    color: var(--gi4-orange);

    font-size: 10px;

    transition: .2s;
}


.gi4-hot-tags a:hover {
    background: var(--gi4-orange);
    color: #fff;
}



/* ============================================================
   PAGINATION
============================================================ */

.gi4-pagination {
    display: flex;
    justify-content: center;

    padding:
        22px
        0
        8px;
}


.gi4-pagination
.navigation {
    margin: 0;
}


.gi4-pagination
.nav-links {
    display: flex;
    align-items: center;

    gap: 7px;
}


.gi4-pagination
.page-numbers {
    min-width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    padding:
        0
        9px;

    border:
        1px solid
        #e3e3e3;

    border-radius: 6px;

    background: #fff;

    color: #555;

    font-size: 12px;

    transition: .2s;
}


.gi4-pagination
.page-numbers:hover {
    border-color: var(--gi4-orange);

    color: var(--gi4-orange);
}


.gi4-pagination
.page-numbers.current {
    border-color: var(--gi4-orange);

    background: var(--gi4-orange);

    color: #fff;
}



/* ============================================================
   NEWSLETTER
============================================================ */

.gi4-newsletter {
    padding:
        8px
        0
        30px;
}


.gi4-newsletter-box {
    display: grid;

    grid-template-columns:
        48px
        minmax(0, 1fr)
        380px;

    gap: 14px;

    align-items: center;

    padding:
        12px
        18px;

    border:
        1px solid
        #ffe1cf;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #fffdfb,
            #fff8f3
        );
}


.gi4-newsletter-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        #fff0e6;

    color:
        var(--gi4-orange);
}


.gi4-newsletter-icon
.dashicons {
    width: 24px;
    height: 24px;

    font-size: 23px;
}


.gi4-newsletter-text {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.gi4-newsletter-text strong {
    color: #252525;

    font-size: 14px;
}


.gi4-newsletter-text span {
    color: #777;

    font-size: 11px;
}


.gi4-newsletter-form {
    display: grid;

    grid-template-columns:
        1fr
        auto;
}


.gi4-newsletter-form input {
    height: 38px;

    margin: 0;

    padding:
        0
        13px;

    border:
        1px solid
        #ddd;

    border-radius:
        6px
        0
        0
        6px;

    background: #fff;

    box-shadow: none;

    font-size: 11px;
}


.gi4-newsletter-form button {
    height: 38px;

    margin: 0;

    padding:
        0
        22px;

    border: 0;

    border-radius:
        0
        6px
        6px
        0;

    background:
        var(--gi4-orange);

    color: #fff;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
}


.gi4-newsletter-message {
    margin-top: 8px;

    padding: 8px 12px;

    border-radius: 5px;

    font-size: 12px;
}


.gi4-newsletter-message.success {
    background: #eaf8ee;
    color: #298441;
}


.gi4-newsletter-message.error {
    background: #fff0f0;
    color: #c43a3a;
}



/* ============================================================
   NO IMAGE
============================================================ */

.gi4-no-image {
    width: 100%;
    height: 100%;

    min-height: 160px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #232936,
            #11151d
        );

    color:
        rgba(255,255,255,.4);

    font-size: 24px;
    font-weight: 700;
}



/* ============================================================
   EMPTY
============================================================ */

.gi4-empty {
    padding:
        70px
        20px;

    text-align: center;

    border:
        1px solid #eee;

    border-radius: 10px;

    background: #fafafa;
}


.gi4-empty
.dashicons {
    width: 45px;
    height: 45px;

    color: #bbb;

    font-size: 44px;
}


.gi4-empty h3 {
    margin:
        15px
        0
        5px;

    font-size: 18px;
}


.gi4-empty p {
    margin: 0;

    color: #888;

    font-size: 13px;
}



/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1024px) {

    .gi4-category-layout {
        grid-template-columns:
            minmax(0, 1fr)
            245px;

        gap: 20px;
    }


    .gi4-tabs a {
        padding:
            7px
            11px;

        font-size: 11px;
    }


    .gi4-featured-content h2 {
        font-size: 20px;
    }


    .gi4-post-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .gi4-newsletter-box {
        grid-template-columns:
            45px
            minmax(0, 1fr)
            320px;
    }

}



/* ============================================================
   MOBILE / TABLET
============================================================ */

@media (max-width: 849px) {

    .gi4-container {
        width: calc(100% - 30px);
    }


    .gi4-cat-hero {
        min-height: 0;

        padding:
            25px
            0;
    }


    .gi4-cat-hero::after {
        width: 65%;

        opacity: .25;
    }


    .gi4-hero-content {
        width: 100%;
    }


    .gi4-cat-hero h1 {
        font-size: 27px;
    }


    .gi4-category-layout {
        display: block;
    }


    .gi4-category-sidebar {
        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 15px;
    }


    .gi4-category-sidebar
    .gi4-sidebar-box {
        margin-top: 25px;
    }


    .gi4-category-sidebar
    .gi4-sidebar-box:last-child {
        grid-column: 1 / -1;
    }


    .gi4-newsletter-box {
        grid-template-columns:
            45px
            1fr;

        gap: 12px;
    }


    .gi4-newsletter-form {
        grid-column: 1 / -1;
    }

}



/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 549px) {

    .gi4-container {
        width: calc(100% - 24px);
    }


    .gi4-cat-hero {
        padding:
            20px
            0
            23px;
    }


    .gi4-cat-hero h1 {
        font-size: 23px;
    }


    .gi4-cat-description {
        font-size: 13px;
    }


    .gi4-cat-stats {
        gap:
            8px
            18px;
    }


    .gi4-stat {
        font-size: 11px;
    }


    /* Toolbar */

    .gi4-toolbar {
        display: block;

        padding:
            12px
            0;
    }


    .gi4-tabs {
        width: 100%;

        overflow-x: auto;

        padding-bottom: 8px;

        scrollbar-width: none;
    }


    .gi4-tabs::-webkit-scrollbar {
        display: none;
    }


    .gi4-tabs a {
        flex-shrink: 0;

        padding:
            8px
            13px;
    }


    .gi4-sort {
        justify-content: flex-end;

        margin-top: 5px;
    }


    /* Featured */

    .gi4-featured-post {
        display: block;

        min-height: 0;
    }


    .gi4-featured-image {
        min-height: 0;

        aspect-ratio: 16 / 9;
    }


    .gi4-featured-content {
        padding: 16px;
    }


    .gi4-featured-content h2 {
        font-size: 20px;
    }


    .gi4-featured-footer {
        display: block;
    }


    .gi4-read-more {
        margin-top: 15px;
    }


    /* Grid */

    .gi4-post-grid {
        grid-template-columns: 1fr;
    }


    .gi4-card-content h3 {
        min-height: 0;

        font-size: 17px;
    }


    .gi4-card-excerpt {
        min-height: 0;
    }


    /* Sidebar */

    .gi4-category-sidebar {
        display: block;
    }


    .gi4-category-sidebar
    .gi4-sidebar-box {
        margin-top: 15px;
    }


    /* Newsletter */

    .gi4-newsletter {
        padding-bottom: 20px;
    }


    .gi4-newsletter-box {
        display: block;

        padding: 15px;
    }


    .gi4-newsletter-icon {
        margin-bottom: 10px;
    }


    .gi4-newsletter-text {
        margin-bottom: 12px;
    }


    .gi4-newsletter-form {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
    }


    .gi4-newsletter-form button {
        padding:
            0
            12px;
    }

}