.xgambet-tabs {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
    font-family: sans-serif;
}

/* ปุ่ม Tab */
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.tab {
    padding: 10px 15px;
    cursor: pointer;
    background-color: rgb(30, 115, 190);
    color: #fff;
    border-radius: 4px;
    flex: 1 1 auto;
    text-align: center;
    transition: 0.3s;
}

.tab:hover {
    background-color: #ddd;
    color: #333;
}

.tab.active {
    background-color: rgb(7, 69, 122);
    font-weight: bold;
}

/* Grid รูปภาพ */
.image-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.game-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}

.game-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .image-grid { grid-template-columns: repeat(4, 1fr); }
}
@media screen and (max-width: 768px) {
    .image-grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (max-width: 480px) {
    .image-grid { grid-template-columns: repeat(2, 1fr); }
}