:root {
    --main-bg: #0a0a0a;
    --background: #0a0a0a;
    --foreground: #ffffff;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    background-image: linear-gradient(90deg, #19185ccc, #121212cc 0% 100%, #19185ccc);
    overflow-x: hidden;

}

.g-content {
    background-color: var(--background);
    color: var(--foreground);
    background-image: linear-gradient(90deg, #19185ccc, #121212cc 0% 100%, #19185ccc);
}

dl,
ol,
ul {

    list-style: none;
}

.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    background-color: #1a1a2e;
    z-index: 120000;
    padding-left: 0px;
    /* px-4 */
    padding-right: 1rem;
    /* px-4 */
    padding-top: 0.75rem;
    /* py-3 */
    padding-bottom: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* shadow-md */
}

.site-logo {
    height: 40px;
}

.site-logo a {
    display: unset;
}

.site-logo img {
    height: 100%;
}

.search-bar input.search {

    height: 35px;

}

.search-bar .bi-search {
    top: 0px;
    left: 17px;
    font-size: 17px;
    line-height: 38px;
}

.navbar-collapse {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-logo {
    height: 30px;
    padding: 0;
    margin: 0;
}

.search-bar {
    max-width: 33.3%;

    position: relative;
    padding-right: 16px;
    padding-left: 15px;
    margin: 0 auto;
}

.user-avatar {
    width: 25px;
    height: 25px;
}

.custom-header {
    padding-top: 10px;
    padding-bottom: 10px;
}

#nav-menu li.nav-item a {
    display: flex;
    padding: 2px 12px !important;
    color: #fff;
    font-size: 14px;
}

.search-bar input.search {
    background: #2c2c4e;
}

.hover-sidebar {
    top: 55px;
    background-color: #1a1a2e;
    padding-top: 15px;
}

#mainNav .container-fluid {
    max-width: 100%;
}

.footer-wrapper,
.footer-section,
.footer-container {
    background-color: transparent;
    background-image: linear-gradient(90deg, #19185ccc, #121212cc 12% 88%, #19185ccc);
    background: transparent;

}

.hover-sidebar.active {
    width: auto;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    scrollbar-width: none;
}

.hover-sidebar.active .category-item a span:not(.g-icon) {
    opacity: 1;
}


/*---------- Beautiful Sidebar Styles ----------*/

/* Smooth sidebar */
.hover-sidebar {
    width: 60px;
    overflow: hidden;
    transition: all 0.35s ease;
}

.hover-sidebar.active {
    width: 240px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

/* Button animation */
.sidebar-toggle-wrapper svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle-wrapper.active svg {
    transform: rotate(180deg) scale(1.1);
}

/* Click press feel */


/* =========================
   CARD CONTAINER
========================= */


/* =========================
   CARD
========================= */
.freecase-page-container .container {
    max-width: 100%;
}

.freecase-style-1 .game-card-hover {
    height: 320px;
    /* 🔥 fixed height */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #0a0a0a;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

/* Hover lift */
.freecase-style-1 .game-card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

/* Click effect */
.freecase-style-1 .game-card-hover:active {
    transform: scale(0.96);
    filter: brightness(1.15);
}

/* =========================
   IMAGE WRAPPER
========================= */
.freecase-style-1 .game-thumb-hover {
    height: 100%;
    width: 100%;
    position: relative;
}

/* Image */
.freecase-style-1 .game-thumb-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 🔥 important */
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Image hover */
.freecase-style-1 .game-card-hover:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* =========================
   OVERLAY (BOTTOM GRADIENT)
========================= */
.freecase-style-1 .game-thumb-hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    z-index: 1;
}

/* =========================
   TEXT INFO (TITLE + RATING)
========================= */
.freecase-style-1 .hover-info {
    position: absolute;
    bottom: 35px;
    width: 100%;
    text-align: center;
    color: #fff;
    z-index: 2;
    padding: 0 8px;
}

/* Title */
.freecase-style-1 .game-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
}

/* Rating */
.freecase-style-1 .game-rating {
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

/* Star color */
.freecase-style-1 .star-on {
    color: #ffc107;
}

/* Review count */
.freecase-style-1 .game-review-count {
    opacity: 0.7;
    font-size: 11px;
}

/* =========================
   PLAY BUTTON (OPTIONAL)
========================= */
.freecase-style-1 .play-btn {
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    z-index: 3;
}

.freecase-style-1 .play-btn img {
    width: 100px;
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: pointer;
}

/* Play button hover */
.freecase-style-1 .game-card-hover:hover .play-btn img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.freecase-style-1 .game-grid-item {
    padding-left: 10px;
    width: calc(100% / 7);
    box-sizing: border-box;
}

.freecase-style-2 .game-thumb-hover {
    height: 300px;
    /* 🔥 fixed height */

}

.freecase-style-2 .owl-item {
    width: calc(100% / 25) !important;
}

.freecase-style-2 .game-thumb-hover img {
    height: 100%;
    /* 🔥 fixed height */
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    /* 🔥 important */
}

.owl-dots {
    display: none !important;
}

.margin-top-10px {
    margin-top: 10px;
}

/* ---- New css ------------*/
/* Game Box Tops Games */
.tops-game .game-box {
    position: relative;
    width: 100%;
    height: 125px;
    flex-shrink: 0;
    transition: 0.2s;
    cursor: pointer;
}

/* Rank Background */
.tops-game .rank-bg {
    position: absolute;
    bottom: 0;
    left: 8px;
    width: 100px !important;
    height: 100px;
    z-index: 1;
}

/* Game Card */
.tops-game .game-card {
    position: absolute;
    right: 8px;
    width: 125px;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;

    z-index: 2;
}

/* Image */
.tops-game .game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

/*----------- New style -----------------*/
.freecase24-style-category .owl-item {
    width: 130px !important;
}

.freecase24-style-category .game-box {
    width: auto !important;
}

/*---------- Home page --------------------*/
.home-page-info-section {
    padding: 30px 1px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-left: -17px;
}

.footer-logo img {
    height: auto;
}

/*------ Social Icon----*/
.social-icon {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
    padding-left: 0px;
}

/* Button base */
.social-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Glow effect */
.social-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0;
    transition: 0.3s;
}

/* Hover animation */
.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-btn:hover::before {
    opacity: 1;
    filter: blur(10px);
}

/* Individual colors */
.facebook {
    background: #1877f2;
}

.facebook::before {
    background: #1877f2;
}

.twitter {
    background: #1da1f2;
}

.twitter::before {
    background: #1da1f2;
}

.instagram {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.instagram::before {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

/*------------Category Page -------------*/
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    grid-gap: 10px;
    grid-auto-rows: minmax(140px, auto);
    grid-auto-flow: dense;
}

.p-design .list-game {
    position: relative;
    overflow: hidden;
}

.p-design .list-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 6px;
    font-size: 14px;
    text-align: center;
    background: transparent;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.category-pocki-container {
    width: 100%;
    max-width: 100%;
    padding-top: 40px;
    padding-left: 45px;
    padding-right: 15px;
}

.category-pocki-container .item-title {
    color: #fff;
    margin-top: 10px;
    margin-bottom: 10px;
}

.freecase-description .container-box {
    background-image: linear-gradient(to bottom right, #3e1e68, #302b63, #1f1f39);
    padding: 16px;
    border-radius: 14px;
    color: #d1d5db;

    margin-top: 20px;

}

.border {
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 1px;
    width: 100%;
}

/* Top Section */
.freecase-description .top-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

/* Breadcrumb */
.freecase-description .breadcrumb {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.freecase-description .breadcrumb li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.freecase-description .breadcrumb img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.freecase-description .breadcrumb a {
    color: #d1d5db;
    text-decoration: none;
    transition: 0.2s;
}

.freecase-description .breadcrumb a:hover {
    color: #ffffff;
}
/*------------ Ads Css ------------*/
.banner-ad-wrapper {
    max-width: 1320px;
    margin: 0 auto;
}

/*---------- End -----------------*/
/* Image */
.freecase-description .category-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: none;
}

p.contact-description {
    margin-bottom: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.contact-map {
    display: flex;
    gap: 5px;
}

a.contact-link {
    margin-left: 6px;
    color: #fdd60d;
    font-size: 12px;
}

body #footer h6 {
    color: #fdd60d;
}

body .section-title h3,
body .section-title h2 {
    font-size: 20px;
    color: #fdd60d;
    font-weight: 600;
}

.category-section .section-title h3 {
    display: flex;
}

a.nav-link:hover {
    color: #4BB6F1 !important;
}

body a:hover {
    color: #fdd60d;
}

a.nav-link:hover {
    color: #fdd60d !important;
}

.sidebar-right {
    position: fixed;
    top: 80px;
    left: 100%;
    max-height: calc(100vh - 80px);
    background: #262653;
    padding: 20px 0 40px 30px;
    display: none;
}

body .g-icon {
    background-image: linear-gradient(to bottom right, #3e1e68, #302b63, #1f1f39);
}

.left-categories .category-item.active a span {
    color: #fdd60d !important;
}

.hover-sidebar .category-item.active a .g-icon {
    background: #fdd60d !important;
}

body .hover-sidebar .category-item:hover a span:not(.g-icon) {
    color: #fdd60d;
}

.hover-sidebar .category-item:hover a .g-icon {
    background: #fdd60d !important;
}

@media (min-width: 768px) {
    .freecase-description .category-img {
        display: block;
    }
}

.freecase-description .category-img:hover {
    transform: scale(1.1);
}

/* Divider */
.freecase-description .divider {
    width: 100%;
    height: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

/* Title */
.freecase-description .title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
}

/* Content */
.freecase-description .content p {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 15px;
}

.freecase-description .content strong {
    color: #ffffff;
}

/* TAG TITLE */
.freecase-description .tag-title {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #ffffff;
}

/* TAG LIST */
.freecase-description .game-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* TAG ITEM */
.freecase-description .tag-item {
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
    text-decoration: none;
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.freecase-description .tag-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
}

/* MAIN FLEX CONTAINER */
.freecase-description .top-section {
    padding-top: 24px;
    padding-bottom: 8px;
    padding-right: 24px;
    margin-bottom: 16px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;

    flex-wrap: wrap;
    gap: 16px;

    color: #d1d5db;
    /* text-gray-300 */
    font-size: 16px;
}

/* BREADCRUMB LIST */
.freecase-description .breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;

    list-style: none;
    padding: 0;
}

/* EACH ITEM */
.freecase-description .breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 4px 8px;
    border-radius: 12px;

    white-space: nowrap;

    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ICON */
.freecase-description .breadcrumb img {
    height: 20px;
    width: 20px;
    object-fit: contain;
}

/* LINK */
.freecase-description .breadcrumb a {
    color: #d1d5db;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.freecase-description .breadcrumb a:hover {
    color: #f3f4f6;
    /* hover:text-gray-100 */
}

/* CATEGORY IMAGE */
.freecase-description .category-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;

    transition: transform 0.3s ease;
    display: none;
    /* hidden by default */
}

/* SHOW ON MD SCREEN */
@media (min-width: 768px) {
    .freecase-description .category-img {
        display: block;
    }
}

@media (min-width: 768px) and (max-width: 820px) {
    .hover-sidebar {
        top: 80px;
    }

    nav#mainNav {
        display: none;
    }

    .site-logo img {
        height: 50px;
        max-height: 100%;
    }

    .desktop-toggle-button {
        position: absolute;
        top: 17%;

    }

    .responsive-header {
        display: block;
        margin-bottom: 40px;
    }

    body .hover-sidebar {
        width: auto;
        top: 43px;
    }

    button.close-sidebar-btn {
        display: block;
    }

    .close-sidebar-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: transparent;
        color: #fff;
        border: none;
        font-size: 20px;
        cursor: pointer;
        z-index: 2001;
    }

    .hover-sidebar .category-item a span:not(.g-icon) {
        opacity: 1 !important;
    }
}

/* HOVER SCALE */
.freecase-description .category-img:hover {
    transform: scale(1.1);
}

/*---------- End ------------*/
@media (min-width: 1024px) {
    .home-page-info-section {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1050px) and (max-width: 1800px) {

    footer,
    .home-page-info-section {
        max-width: calc(100% - 60px);
        margin: 0 auto;

    }

}

@media (min-width: 1025px) and (max-width: 1700px) {

    .custom-header .navbar-nav {
        display: none;
    }

}

/* Card base */
.home-page-info-section .info-card {
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: 0.3s ease;
}

.home-page-info-section .info-card:hover {
    filter: brightness(1.1);
}

/* Gradient themes */
.home-page-info-section .blue {
    background: linear-gradient(135deg, #0f3443, #1a1a2e);
}

.home-page-info-section .red {
    background: linear-gradient(135deg, #3c1a1a, #1a0a0a);
}

.home-page-info-section .purple {
    background: linear-gradient(135deg, #2a163c, #0f0f2d);
}

.home-page-info-section .green {
    background: linear-gradient(135deg, #0d2c0a, #162c1a);
}

/* Icon */
.home-page-info-section .icon {
    height: 70px;
}

/* Title */
.home-page-info-section .title h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0 5px;
}

/* Paragraph */
.home-page-info-section p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Tags */
.home-page-info-section .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.home-page-info-section .tags a {
    text-decoration: none;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: 0.3s;
}

.home-page-info-section .tags a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/*--------------- End ----------------*/
/* =========================
   MOBILE RESPONSIVE
========================= */

/* =========================================================
   K4.GAMES STYLE IMPLEMENTATION (Merged)
   ========================================================= */

:root {
    --k4-bg: #1f2435;
    --k4-container-bg: #2c2c4e;
    --k4-btn-bg: #232549;
    --k4-btn-hover: #3d3b70;
    --k4-accent: #d3cfff;
    --k4-text: #ffffff;
    --k4-text-muted: #8b97b1;
    --k4-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--k4-bg);
}

.k4-section-game {
    padding-top: 2px;
    padding-bottom: 40px;
}


.k4-left-sidebar-inner {
    padding: 15px 10px;
}

.k4-left-sidebar-inner .wgt-list-game-vertical {
    background: transparent;
    border: none;
    margin-bottom: 12px;
    padding: 0;
}

.k4-game-container {
    background: transparent;
    border-radius: 16px;
    padding: 0;
}

.k4-game-content {
    margin-bottom: 0px !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    background: #000;
}

.k4-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #232549;
    margin-bottom: 24px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.k4-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Sidebar grid styles */
.widget-sidebar .row {
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.widget-sidebar .wgt-list-game-vertical {
    width: calc(50% - 4px);
    margin-bottom: 8px !important;
}

.widget-sidebar .wgt-list-game {
    display: block;
    width: 100% !important;
    margin: 0 !important;
}

.widget-sidebar .col-4.wgt-list-thumbnail {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    padding: 0;
    border-radius: 12px;
    background: #111;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.widget-sidebar .wgt-list-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    color: transparent;
}

.widget-sidebar .col-8.wgt-list-content {
    display: none !important;
}

.k4-rounded-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}



.k4-btn-action {
    background: #232549 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s ease !important;
}

.k4-btn-action.btn-capsule {
    padding: 0 14px;
    border-radius: 20px;
    gap: 6px;
}

.k4-btn-action.btn-circle {
    border-radius: 50%;
}

.k4-btn-action:hover {
    background: #3d3b70 !important;
    transform: translateY(-2px);
}

.k4-sidebar-inner .grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
    grid-gap: 10px;
    grid-auto-rows: minmax(110px, auto);
    grid-auto-flow: dense;
}

.k4-pill {
    background: var(--k4-btn-bg);
    color: var(--k4-accent) !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    border: 1px solid var(--k4-border);
    transition: all 0.2s ease;
}

.k4-pill:hover {
    background: var(--k4-accent);
    color: var(--k4-btn-bg) !important;
    transform: scale(1.05);
}

.k4-hr {
    border-color: var(--k4-border);
    margin: 24px 0;
}

.game-details-scope .k4-text p {
    padding: 8px;
}

.single-description h2,
.single-description h1,
.single-description h3 {
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* SIDEBAR WRAPPER */
.sidebar-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
}

/* CARD STYLE */
.sidebar-card {
    background: linear-gradient(145deg, #1f1f2e, #2b2b3f);
    border-radius: 16px;
    padding: 18px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.sidebar-card:hover {
    transform: translateY(-3px);
}

/* GLOW BORDER EFFECT */
.sidebar-card {
    position: relative;
    border-radius: 16px;
    padding: 18px;

    /* Transparent border */
    border: 1px solid transparent;

    /* Dual background trick */
    background:
        linear-gradient(#1f1f2e, #2b2b3f) padding-box,
        linear-gradient(120deg, #5f3dc4, #7c3aed, #3b82f6) border-box;

    background-clip: padding-box, border-box;
}

/* TITLE */
.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 8px;
}

/* TITLE UNDERLINE */
.sidebar-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #5f3dc4, #3b82f6);
    border-radius: 10px;
}

/* TAGS */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #5f3dc4, #40397e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.tag img {
    width: 14px;
    height: 14px;
}

/* TAG HOVER */
.tag:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

/* PLATFORM LIST */
.platform-list {
    list-style: none;
    padding: 0;
}

.platform-list li {
    margin-bottom: 10px;
    font-size: 15px;
    color: #d1d5db;
}

/* LINKS */
.platform-list a {
    color: #60a5fa;
    text-decoration: none;
    transition: 0.3s;
}

.platform-list a:hover {
    color: #3b82f6;
    padding-left: 5px;
}

.k4-left-sidebar,
.k4-right-sidebar {
    background-image: linear-gradient(to right bottom, rgb(62, 30, 104), rgb(48, 43, 99), rgb(31, 31, 57));
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.game-section-p-design {
    background-image: linear-gradient(to right bottom, rgb(62, 30, 104), rgb(48, 43, 99), rgb(31, 31, 57));
    padding: 10px;
    border-radius: 12px;
}

.game-details {
    background-image: linear-gradient(to right bottom, rgb(62, 30, 104), rgb(48, 43, 99), rgb(31, 31, 57));
}

.game-details-scope {
    background: #0f172a;
    padding: 20px;
    border-radius: 16px;
    color: #e5e7eb;
    font-family: Arial, sans-serif;
}

/* Titles */
.game-details-scope .k4-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #38bdf8;
    border-left: 4px solid #38bdf8;
    padding-left: 10px;
}

/* Text Content */
.game-details-scope .k4-text h1 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #facc15;
}

.game-details-scope .k4-text h2 {
    font-size: 20px;
    margin-top: 20px;
    color: #22c55e;
}

.game-details-scope .k4-text p {
    line-height: 1.7;
    margin-bottom: 12px;
    color: #cbd5f5;
}

.game-details-scope .k4-text ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.game-details-scope .k4-text ul li {
    margin-bottom: 8px;
}

/* Category Pills */
.game-details-scope .k4-pill-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.game-details-scope .k4-pill {
    background: #1e293b;
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #38bdf8;
    font-size: 14px;
    transition: 0.3s;
}

.game-details-scope .k4-pill:hover {
    background: #38bdf8;
    color: #000;
}

/* Comment Box */
.game-details-scope .comment-require-login-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1e293b;
    padding: 10px;
    border-radius: 10px;
}



.game-details-scope .comment-alert {
    font-size: 14px;
    color: #f87171;
}

/* Divider */
.game-details-scope .k4-hr {
    border: none;
    border-top: 1px solid #334155;
    margin: 20px 0;
}

/* Base font size */
.game-details-scope {
    font-size: 16px;
    /* base */
}

/* Headings */
.game-details-scope h1 {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
}

.game-details-scope h2 {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 600;
    margin-top: 18px;
}

/* Paragraph */
.game-details-scope p {
    font-size: 17px;
    line-height: 1.7;
}

/* List */
.game-details-scope li {
    font-size: 16.5px;
    line-height: 1.6;
}

/* Strong / Bold */
.game-details-scope strong {
    font-size: 17px;
    font-weight: 600;
}

/* Small text (optional) */
.game-details-scope small {
    font-size: 14px;
}

/* =========================================================
   TAILWIND UTILITY & REDESIGN SUPPORT
   ========================================================= */

.bg-custom-gradient {
    background-image: linear-gradient(to right bottom, rgb(62, 30, 104), rgb(48, 43, 99), rgb(31, 31, 57));
}

.rounded-xl {
    border-radius: 1rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.p-6 {
    padding: 1.5rem;
}

.pl-6 {
    padding-left: 1.5rem;
}

.pr-6 {
    padding-right: 1.5rem;
}

.pb-6 {
    padding-bottom: 1.5rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

@media (min-width: 768px) {
    .md\:p-6 {
        padding: 1.5rem;
    }
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:col-span-3 {
        grid-column: span 3 / span 3;
    }

    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }
}

.flex {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-between {
    justify-content: space-between;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .sm\:gap-6 {
        gap: 1.5rem;
    }
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-100 {
    color: #f3f4f6;
}

.text-blue-500 {
    color: #3b82f6;
}

.text-md {
    font-size: 1rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

@media (min-width: 640px) {
    .sm\:text-lg {
        font-size: 1.125rem;
    }

    .sm\:text-2xl {
        font-size: 1.5rem;
    }

    .sm\:text-3xl {
        font-size: 1.875rem;
    }
}

@media (min-width: 768px) {
    .md\:text-4xl {
        font-size: 2.25rem;
    }
}

.font-bold {
    font-weight: 700;
}

.leading-tight {
    line-height: 1.25;
}

.cursor-pointer {
    cursor: pointer;
}

.hover\:text-gray-100:hover {
    color: #f3f4f6;
}

.hover\:text-blue-500:hover {
    color: #3b82f6;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.duration-300 {
    transition-duration: 300ms;
}

.transition-transform {
    transition-property: transform;
}

.transition-colors {
    transition-property: color;
}

.w-full {
    width: 100%;
}

.h-px {
    height: 1px;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.object-contain {
    object-fit: contain;
}

.object-cover {
    object-fit: cover;
}

.w-\[80px\] {
    width: 80px;
}

.h-\[80px\] {
    height: 80px;
}

.w-\[2px\] {
    width: 2px;
}

.k4-sidebar-inner .k4-section-title {
    margin-top: 15px;
}

/* Custom Gradient for Pills similar to example */
.bg-gradient-to-tr {
    background-image: linear-gradient(to top right, var(--tw-gradient-stops));
}

.from-\[#5f3dc4\] {
    --tw-gradient-from: #5f3dc4;
    --tw-gradient-to: rgba(95, 61, 196, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-\[#40397e\] {
    --tw-gradient-to: rgba(64, 57, 126, 0);
    --tw-gradient-stops: var(--tw-gradient-from), #40397e, var(--tw-gradient-to);
}

.to-\[#2c2c4a\] {
    --tw-gradient-to: #2c2c4a;
}

.border-\[#5f3dc4\] {
    border-color: #facc15;
}

.game-details-scope a {
    color: #facc15;
}

.game-details-scope a {
    color: #facc15;
    border: none !important;
}

.hidden {
    display: none;
}

.game-details-scope {
    background-image: linear-gradient(to right bottom, rgb(62, 30, 104), rgb(48, 43, 99), rgb(31, 31, 57));
}

@media (min-width: 768px) {
    .md\:block {
        display: block;
    }
}

@media (max-width: 1025px) {

    .container-section,
    .container-fluid {
        max-width: 100%;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body .k4-left-sidebar,
    body .k4-right-sidebar {
        max-height: 58vh;
    }

    .k4-action-bar {
        flex-direction: column;
        align-items: flex-start;
        margin: 0px;
    }

    a.contact-link {
        font-size: 14px;
        margin-left: 5px;
    }

    .footer-col {
        min-width: 100%;
    }

    .game-info .k4-header-left .k4-game-icon {
        display: none;
    }

    .single-title {
        color: #fff;
        font-size: 16px;
        font-weight: bold;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        text-align: left;
        /* optional adjust */
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .hover-sidebar .category-item {
        position: relative;
        top: 0px;
    }

    section,
    .g-content .user-page {
        width: 100%;
        padding: 10px 3px;
    }



    .g-content {
        /* Account for the 80px fixed sidebar on the left */
        padding: 20px 25px 20px 60px !important;
        width: 100%;
        /* Ensure it does not overflow */
    }

    .search-bar {
        max-width: 40%;
    }

    .freecase-style-1 .game-grid-item {
        width: 33%;
        /* 4 columns for tablet */
    }

    /* Fixed hover sidebar expansion width for iPads to avoid crushing the right side */
    .hover-sidebar.active {
        width: 240px;
    }

    .home-page-top-trending .section-title h3 {
        font-size: 1.25rem;
    }

    /* Adjust info section gap */
    .home-page-info-section {
        gap: 15px;
    }

    .tops-game .game-box {
        width: 90%;
    }

    .custom-header .navbar-nav {
        display: none;
    }
}

@media (min-width: 1024px) {
    .lg\:block {
        display: block;
    }


}

/* Full Width Layout Support */
/* Full Width Layout & Height Sync Support */
.k4-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

.k4-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    /* Forces columns to match the tallest one (usually player) */
    margin: 0 !important;
    gap: 10px;
}

.k4-left-sidebar,
.k4-center-content,
.k4-right-sidebar {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    /* Remove gutters for seamless look if needed */
}

/* Ensure the background gradients cover the full stretched height */
.k4-left-sidebar,
.k4-right-sidebar {
    background-image: linear-gradient(to right bottom, rgb(62, 30, 104), rgb(48, 43, 99), rgb(31, 31, 57)) !important;
    border-radius: 20px !important;
    /* Seamless full width */
    margin-bottom: 10px;
    flex-grow: 1;
    /* Stretch to fill */
}

.k4-sidebar-inner {
    padding: 5px 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
}



/* Make sure the recommend section below is also full width */
.k4-full-width-details {
    margin: 0 !important;
    width: 100% !important;
}

.k4-full-width-details>.col-12 {
    padding: 0 !important;
}



.may-like-image-content {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px !important;
    padding-bottom: 15px;
}

.may-like-image-content img {
    width: 167px;
    border-radius: 20px;
}

.k4-left-sidebar .k4-sidebar-inner .grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(83px, 1fr));
    grid-gap: 10px;
    grid-auto-rows: minmax(81px, auto);
    grid-auto-flow: dense;
}

.k4-left-sidebar,
.k4-right-sidebar {
    max-height: 100vh;
    overflow-y: auto;
}

.k4-left-sidebar,
.k4-right-sidebar {
    max-height: 100vh;
    overflow-y: auto;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.6) transparent;
}

/* Chrome, Edge, Safari */
.k4-left-sidebar::-webkit-scrollbar,
.k4-right-sidebar::-webkit-scrollbar {
    width: 1px !important;
    /* force thin */
}

.k4-left-sidebar::-webkit-scrollbar-track,
.k4-right-sidebar::-webkit-scrollbar-track {
    background: transparent !important;
}

.k4-left-sidebar::-webkit-scrollbar-thumb,
.k4-right-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 10px;
}

/* REMOVE extra space (important trick) */
.k4-left-sidebar::-webkit-scrollbar-track-piece,
.k4-right-sidebar::-webkit-scrollbar-track-piece {
    background: transparent;
}

.k4-left-sidebar .k4-sidebar-inner .grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(83px, 1fr));
    grid-gap: 10px;
    grid-auto-rows: minmax(81px, auto);
    grid-auto-flow: dense;
}

.k4-right-sidebar .k4-sidebar-inner .grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(83px, 1fr));
    grid-gap: 10px;
    grid-auto-rows: minmax(81px, auto);
    grid-auto-flow: dense;
}

@media only screen and (max-width: 992px) {
    .home-page-info-section {
        margin-left: 0px;
    }

    .g-content {
        padding: 0px !important;
        width: 100%;
    }

    .freecase-style-2 .game-thumb-hover {
        height: auto;
        max-height: 100%;
    }

    .grid3-slider .owl-nav .prev,
    .grid3-slider .owl-nav .next,
    .grid3-slider-reverse .owl-nav .prev,
    .grid3-slider-reverse .owl-nav .next {
        font-size: 16px;
        padding: 2px 9px;
    }

    .tops-game .game-box {
        position: relative;
        width: 75%;
        height: 115px;
        flex-shrink: 0;
        transition: 0.2s;
        cursor: pointer;
        margin: 0 auto;
    }

    .responsive-header .side-header {
        position: absolute;
        left: 0px;
        top: 0;
        width: 100vw;
        height: 43px;
        background: #262653;
        z-index: 99999;
        position: fixed;
    }

    .footer-block {
        display: flex;
        flex-direction: column;
    }

    .may-like-image-content {
        justify-content: flex-start;
    }

    .game-details-scope .k4-text h2 {
        font-size: 14px;
        margin-top: 10px;
    }

    .sub-section-bread-com {
        padding: 0;
    }

    .comment-require-login-wrapper {
        margin-bottom: 0px;
    }

    .sidebar-box {
        padding: 4px;
        gap: 15px;
    }

}

/* ==========================================================================
   PERFECT RESPONSIVE DESIGN FOR ALL PAGES (RESTORED)
   ========================================================================== */

/* 1. Global Container Padding Adjustment for Tablet/Mobile */
@media (max-width: 991px) {

    .container,
    .container-fluid,
    .container-section,
    .container-section.footer-container,
    .poci-contaner {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 30px !important;
    }

    .g-content section,
    .g-content .user-page {
        padding: 5px 6px !important;
    }


    .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        text-align: left;
    }

    /* First item full width */
    .footer-grid>*:first-child {
        grid-column: 1 / -1;
    }

    /* Last item full width */
    .footer-grid>*:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {

    .container,
    .container-fluid,
    .container-section,
    .poci-contaner {
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-top: 20px !important;
    }

    .section-title h1,
    .section-title h2,
    .section-title h3 {
        font-size: 22px !important;
        margin-bottom: 15px;
    }
}

/* 2. Game Details Page Responsive Stacking (game.php) */
@media (max-width: 1023px) {
    .k4-layout {
        flex-direction: column !important;
        /* Stack columns vertically */
        gap: 20px !important;
    }

    .sidebar-toggle-btn {
        display: block;
        top: 1px;
        left: 7px;
        padding: 5px;
        background: transparent;
    }

    .k4-left-sidebar,
    .k4-center-content,
    .k4-right-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Hide left sidebar on tablet/mobile if redundant */
    .k4-left-sidebar {
        display: none !important;
    }

    /* Reduce player iframe aspect ratio for mobile if needed */
    .k4-game-container {
        height: auto !important;
        min-height: 300px;
    }

    .game-iframe {
        height: 450px !important;
        /* Fixed responsive height for mobile */
    }
}

/* 3. Grid Layout Optimization for Mobile (Home & Category) */
@media (max-width: 767px) {
    .game-details-scope a {

        font-size: 12px;
        line-height: 18px;
    }

    body .pl-6 {
        padding-left: 5px;
    }

    body .pr-6 {
        padding-right: 5px;
    }

    .game-details-scope {
        padding: 2px;
    }

    .game-details-scope .k4-text h1 {
        font-size: 14px;
        margin-bottom: 10px;
        color: #facc15;
    }

    .g-content section,
    .g-content .user-page {
        padding: 2px 1px !important;
    }

    .container,
    .container-fluid,
    .container-section,
    .poci-contaner {
        padding-left: 2px !important;
        padding-right: 2px !important;
        padding-top: 20px !important;
    }

    .grid-layout {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        grid-gap: 12px !important;
    }

    body .hover-sidebar {
        top: 43px;
    }

    body .hover-sidebar {
        width: auto;
    }

    .game-content-sub-section {
        padding-top: 0px;
    }

    /* Ensure only 2 columns on very small mobile screens for clarity */
    @media (max-width: 374px) {
        .grid-layout {
            grid-template-columns: repeat(2, 1fr) !important;
        }
    }
}

/* 4. Category and Post Page Refinements */
@media (max-width: 767px) {
    .category-pocki-container {
        padding-left: 15px !important;
    }

    .section-post .col-md-9,
    .section-post .col-md-3 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .single-post-page-thumbnail img {
        height: auto !important;
        max-height: 250px;
        object-fit: cover;
    }

    .freecase-style-1 .game-grid-item {
        width: calc(100% / 2);
        margin-top: 10px;
    }

    .freecase-style-1 .game-card-hover {
        height: auto;
    }

    .freecase-style-1 .hover-info {
        bottom: 0;
    }

    body .footer-grid {
        grid-template-columns: repeat(2, 1fr);

    }

    .section-title {
        margin-bottom: 5px;
    }
}

/* 5. PREMIUM INFO CARDS & BLOG LIST STYLES */
.home-page-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.info-card {
    padding: 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.info-card .icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.info-card .title h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.info-card .title img {
    width: 100px;
    margin-top: 5px;
    display: block;
}

.info-card p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.info-card.blue {
    border-left: 4px solid #3b82f6;
}

.info-card.red {
    border-left: 4px solid #ef4444;
}

.info-card.purple {
    border-left: 4px solid #a855f7;
}

.info-card.green {
    border-left: 4px solid #10b981;
}

.info-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.info-card .tags a {
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.ltst-blg-banner {
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
    height: 450px;
}

.banner-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.banner-overlay h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.ltst-blg-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.ltst-blg-grid,
.ltst-blg-games {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.ltst-blg-grid-imgwrapp img,
.game-post img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.ltst-blg-grid-btn-title,
.game-overlay {
    padding: 20px;
}

.view-all-btn {
    margin-left: auto;
    font-size: 14px;
    color: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.1);
    border-image: initial;
}

@media (max-width: 767px) {
    .ltst-blg-banner {
        height: 300px;
    }

    .banner-overlay {
        padding: 20px;
    }

    .banner-overlay h2 {
        font-size: 24px;
    }

    .banner-overlay p {
        display: none;
    }

    .home-page-info-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* 6. UI Element Cleanup */
.k4-container {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

.custom-header .container-fluid {
    padding-left: 0px !important;
    padding-right: 15px !important;
}

/* ====================================================
   QA BUG FIX CSS — FR-1 through FR-39
   ==================================================== */

/* --- FR-1 & FR-5: Hover text visibility on game cards --- */
.freecase-style-1 .game-thumb-hover::after {
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}

.freecase-style-1 .hover-info {
    bottom: 10px;
    padding: 0 10px;
}

.freecase-style-1 .game-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.freecase-style-1 .game-rating {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* --- FR-3 & FR-16 & FR-17: Top spacing for fixed header --- */
@media (min-width: 1025px) {
    .g-content {
        padding-top: 65px !important;
    }
}
.section-search .container {
    padding-top: 20px;
}

.k4-section-game {
    padding-top: 10px;
}

/* --- FR-8: Right side alignment consistency --- */
.container-section {
    max-width: 1720px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* --- FR-9: Remove blank space when scrolling --- */
.info-section-wrapper {
    margin-bottom: 0;
}

.home-page-info-section {
    margin-bottom: 30px;
}

section+section {
    margin-top: 0;
}

/* --- FR-10: Images should be fully displayed, not cropped --- */
.freecase-style-1 .game-thumb-hover img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Pocki design items - ensure full image display */
.p-design .list-game .list-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* --- FR-13: Active page pagination highlight --- */
.pagination-wrapper .page-item.disabled .page-link {
    background-color: #6758FA !important;
    color: #fff !important;
    font-weight: 600;
    opacity: 1;
}

.pagination-wrapper .page-link:hover {
    background-color: #4a4a8a !important;
}

/* --- FR-19: Like/Unlike button hover visibility --- */
.k4-btn-action:hover {
    background: #5f3dc4 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 61, 196, 0.4);
}

.k4-btn-action:active {
    transform: scale(0.95);
}

.k4-btn-action.k4-active-red {
    background: #e74c3c !important;
    color: #fff !important;
}

/* --- FR-20: Hover effect on all game cards (pocki design) --- */
.p-design .list-game {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 12px;
    overflow: hidden;
}

.p-design .list-game:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.p-design .list-game:hover .list-title {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* --- FR-21: Text align center, equal spacing in game details --- */
.game-details-scope .game-breadcum-section {
    padding: 16px 24px;
}

.game-content-main-section {
    padding: 0;
}

.game-content-sub-section {
    padding: 16px !important;
}

/* --- FR-22: No hover color on plain text without links in game description --- */
.game-details-scope .k4-text p {
    color: #cbd5f5;
}

.game-details-scope .k4-text p:hover {
    color: #cbd5f5;
}

.single-description p,
.single-instructions p {
    color: #cbd5f5;
}

.single-description p:hover,
.single-instructions p:hover {
    color: #cbd5f5;
    cursor: default;
}

/* Only color links on hover */
.game-details-scope a:hover {
    color: #fdd60d;
}

/* --- FR-23: Game page alignment fix --- */
.k4-full-width-details {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* --- FR-25, FR-28, FR-29, FR-31, FR-33: Page content spacing & alignment --- */
.page-content {
    line-height: 1.8;
    font-size: 15px;
    color: #d1d5db;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.4;
}

.page-content p {
    margin-bottom: 14px;
    line-height: 1.8;
}

.page-content ul,
.page-content ol {
    margin-bottom: 14px;
    padding-left: 20px;
}

.page-content a {
    color: #fdd60d;
    text-decoration: underline;
}

.page-content a:hover {
    color: #fff;
}

.mid-ct .container {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* Section 404 centered text */
.section-404 {
    padding-top: 60px;
    padding-bottom: 60px;
}

.section-404 .col {
    text-align: center;
}

/* --- FR-37: Mobile logo in responsive header --- */
.mobile-logo {
    display: inline-block;
    height: 30px;
    vertical-align: middle;
    margin-left: 10px;
}

.mobile-logo img {
    height: 100%;
    width: auto;
}

/* ====================================================
   RESPONSIVE FIXES — FR-34, FR-35, FR-36, FR-37, FR-38, FR-39
   ==================================================== */

/* --- FR-34: Tablet right side spacing --- */
@media (min-width: 768px) and (max-width: 1024px) {
    .g-content {
        padding-right: 20px !important;
        padding-left: 70px !important;
    }

    .container-section,
    .container-fluid {
        padding-right: 15px !important;
    }
}

/* --- FR-35: Mobile logo size --- */
@media (max-width: 1024px) {
    .mobile-logo {
        height: 24px;
    }

    .mobile-logo img {
        height: 36px;
        max-width: 106px;
        position: absolute;
        right: 0;
        top: 0px;
    }


    .site-logo img {
        max-height: 28px;
    }
}

/* --- FR-36: Mobile page both-side spacing --- */
@media (max-width: 767px) {
    .g-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .container-section {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* --- FR-37: Show logo in responsive/mobile header --- */
@media (max-width: 1023px) {
    .responsive-header {
        display: block;
    }

    .responsive-header .side-header {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-logo {
        display: inline-block;
    }
}

/* --- FR-38 & FR-39: Game page tablet spacing fixes --- */
@media (min-width: 768px) and (max-width: 1023px) {
    .k4-section-game {
        padding-top: 5px;
        padding-bottom: 20px;
    }

    .k4-action-bar {
        padding: 8px 10px;
        margin-bottom: 15px;
    }

    .game-details-scope {
        padding: 12px;
    }

    .game-section-p-design {
        padding: 8px;
    }

    /* Remove extra blank space */
    .k4-full-width-details {
        margin-top: 0 !important;
    }

    .sidebar-box {
        padding: 10px;
    }

    .game-content-sub-section {
        padding: 10px !important;
    }
}