/* Custom Tool Bar Styles */
.tool-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 15px;
}

.tool-bar .pages {
    width: auto;
    text-align: left;
    margin: 0;
    height: auto;
    overflow: visible;
}

.tool-bar .pages a {
    display: inline-block;
    padding: 8px 20px;
    margin: 0 5px 5px 0;
    background-color: #f8f9fa;
    color: #555;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: normal;
    height: auto;
}

.tool-bar .pages a:hover,
.tool-bar .pages a.active {
    background-color: #d32e22;
    color: #fff;
    border-color: #d32e22;
    box-shadow: 0 2px 5px rgba(211, 46, 34, 0.3);
}

.tool-bar .search-box form {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.tool-bar .search-box .form-group {
    margin-bottom: 0;
    margin-right: 10px;
}

.tool-bar .search-box .btn {
    margin-bottom: 0;
}

/* Fix for All Games button style */
a.btn.btn-info {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #fff;
    background-color: #5bc0de;
    border-color: #46b8da;
    text-decoration: none;
}

a.btn.btn-info:hover {
    background-color: #31b0d5;
    border-color: #269abc;
    color: #fff;
}

@media (max-width: 768px) {
    .tool-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .tool-bar .pages {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    .tool-bar .search-box {
        width: 100%;
        text-align: center;
    }
    .tool-bar .search-box form {
        justify-content: center;
    }
}

/* Banner Game Cards Overlay */
.page-banner {
    position: relative;
}

.banner-game-cards {
    position: absolute;
    bottom: -60px; /* Pull it down to create an overlapping effect */
    left: 0;
    width: 100%;
    z-index: 10;
    pointer-events: none; /* Allow clicks to pass through the container */
}

/* Specific Style for Banner Cards */
.banner-card {
    background: #fff !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    pointer-events: auto; /* Re-enable clicks on the cards themselves */
}

.banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12) !important;
}

.banner-card .game-item-pic {
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
    height: 140px; /* Reduced height */
}

.banner-card .game-item-pic img {
    border-radius: 10px 10px 0 0 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-card:hover .game-item-pic img {
    transform: scale(1.05);
}

.banner-card .game-item-info {
    padding: 12px 15px 5px 15px !important; /* Reduced padding */
    text-align: left;
    flex: 1;
}

.banner-card .game-item-info .title {
    float: none !important;
    margin: 0 0 5px 0 !important; /* Reduced margin */
    font-size: 16px !important; /* Slightly smaller font */
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-card .banner-desc {
    font-size: 12px; /* Smaller font */
    color: #888;
    line-height: 1.5;
    height: 36px; /* Reduced height for 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0;
}

.banner-card .banner-links {
    padding: 0 15px 15px 15px !important; /* Reduced padding */
    background: transparent !important;
    border: none !important;
    display: block !important;
}

.banner-card .download-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 0; /* Reduced padding */
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
    color: #fff !important;
    border-radius: 20px; /* Adjusted radius */
    font-size: 14px; /* Smaller font */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(238, 82, 83, 0.25);
    border: none;
}

.banner-card .download-btn:hover {
    background: linear-gradient(135deg, #ee5253, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(238, 82, 83, 0.4);
    color: #fff !important;
}

.banner-card .download-btn i {
    margin-right: 6px;
    font-size: 16px;
    vertical-align: middle;
}

@media (max-width: 992px) {
    .banner-game-cards {
        position: relative;
        bottom: auto;
        background-color: #f5f5f5;
        padding-top: 15px;
        margin-top: -1px; /* Remove gap */
    }
    .banner-card {
        margin-bottom: 20px;
    }
}

/* Owl Carousel Navigation Customization */
.home-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 9; /* Ensure below banner cards (z-index: 10) */
    pointer-events: none;
    margin: 0 !important;
}

.home-slider .owl-nav .owl-prev,
.home-slider .owl-nav .owl-next {
    position: absolute !important;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;
    border-radius: 50%;
    text-align: center;
    line-height: 50px !important;
    font-size: 24px !important;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
}

.home-slider .owl-nav .owl-prev {
    left: 30px;
}

.home-slider .owl-nav .owl-next {
    right: 30px;
}

.home-slider .owl-nav .owl-prev:hover,
.home-slider .owl-nav .owl-next:hover {
    background: rgba(0, 0, 0, 0.6) !important;
    transform: scale(1.1);
}

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