body {
    background-color: #F4F7FB;
    color: #1F2D3D;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-slot-games {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
    overflow-x: hidden;
}

.page-slot-games__hero-section {
    background-color: #2F6BFF;
    color: #FFFFFF;
    padding: 0;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Default to column for image-above-text */
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-slot-games__hero-content {
    padding: 30px;
    background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-slot-games__main-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    max-width: 800px;
}

.page-slot-games__hero-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 700px;
}

.page-slot-games__hero-cta-button,
.page-slot-games__main-cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-slot-games__hero-cta-button:hover,
.page-slot-games__main-cta-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-slot-games__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #1F2D3D;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-slot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #2F6BFF;
    border-radius: 2px;
}

.page-slot-games__categories-section,
.page-slot-games__featured-slots-section,
.page-slot-games__why-choose-us-section,
.page-slot-games__tips-section {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-slot-games__categories-grid,
.page-slot-games__featured-slots-grid,
.page-slot-games__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

.page-slot-games__category-card,
.page-slot-games__benefit-card {
    background-color: #F4F7FB;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 250px; /* Ensure cards have enough space for content */
}

.page-slot-games__category-card:hover,
.page-slot-games__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-slot-games__category-image,
.page-slot-games__benefit-icon {
    width: 100%;
    max-width: 250px; /* Constrain image width within card */
    height: auto;
    min-height: 200px; /* Minimum size for content images */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    display: block;
}

.page-slot-games__category-title,
.page-slot-games__benefit-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1F2D3D;
    margin-bottom: 10px;
}

.page-slot-games__category-link {
    display: inline-block;
    margin-top: auto; /* Push link to bottom */
    padding: 8px 15px;
    border-radius: 20px;
    background-color: #6FA3FF;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.page-slot-games__category-link:hover {
    background-color: #2F6BFF;
}

.page-slot-games__game-tile {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-slot-games__game-tile:hover {
    transform: scale(1.03);
}

.page-slot-games__game-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px; /* Minimum size for game tiles */
    display: block;
}

.page-slot-games__cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-slot-games__benefit-description {
    font-size: 0.95rem;
    color: #1F2D3D;
    margin-bottom: 15px;
}

.page-slot-games__tips-content {
    margin-bottom: 20px;
}

.page-slot-games__tips-intro {
    font-size: 1.1rem;
    color: #1F2D3D;
    margin-bottom: 20px;
    text-align: center;
}

.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__tips-list li {
    background-color: #F4F7FB;
    border-left: 5px solid #2F6BFF;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1rem;
    color: #1F2D3D;
}

.page-slot-games__tip-highlight {
    color: #000000;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-slot-games__hero-section {
        flex-direction: row; /* Desktop: image and content side-by-side */
        min-height: 450px;
    }

    .page-slot-games__hero-image-wrapper {
        flex: 1;
        aspect-ratio: auto; /* Let content control height */
    }

    .page-slot-games__hero-content {
        flex: 1;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        padding: 40px;
    }

    .page-slot-games__main-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }

    .page-slot-games__hero-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 849px) {
    .page-slot-games__hero-section {
        flex-direction: column;
    }
    .page-slot-games__hero-image-wrapper {
        aspect-ratio: 4/3;
    }
    .page-slot-games__hero-content {
        padding: 20px;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-slot-games__hero-description {
        font-size: 1rem;
    }
    .page-slot-games__categories-grid,
    .page-slot-games__featured-slots-grid,
    .page-slot-games__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .page-slot-games__category-image,
    .page-slot-games__benefit-icon,
    .page-slot-games__game-tile img {
        min-height: 200px; /* Ensure images are not too small */
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 549px) {
    .page-slot-games {
        padding: 10px;
    }
    .page-slot-games__hero-content {
        padding: 15px;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .page-slot-games__hero-description {
        font-size: 0.9rem;
    }
    .page-slot-games__categories-grid,
    .page-slot-games__featured-slots-grid,
    .page-slot-games__benefits-grid {
        grid-template-columns: 1fr;
    }
    .page-slot-games__section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
    .page-slot-games__hero-cta-button,
    .page-slot-games__main-cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        min-height: 44px;
        padding: 12px 20px;
    }
    .page-slot-games__category-card,
    .page-slot-games__benefit-card {
        min-height: auto;
    }
    .page-slot-games__tips-list li {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}

/* Global image size constraint for content area */
.page-slot-games img:not(.shared-logo):not(.shared-icon) {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .page-slot-games img {
        max-width: 100% !important;
        height: auto !important;
    }
    .page-slot-games__hero-image,
    .page-slot-games__category-image,
    .page-slot-games__game-tile img,
    .page-slot-games__benefit-icon {
        min-width: 200px; /* Enforce minimum display width */
        min-height: 200px; /* Enforce minimum display height */
        object-fit: cover;
    }
}

/* Ensure no content area images display smaller than 200px */
.page-slot-games__hero-image,
.page-slot-games__category-image,
.page-slot-games__game-tile img,
.page-slot-games__benefit-icon {
    width: 100%; /* Default to full width of container */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px; /* Crucial: enforce minimum display size */
    min-height: 200px; /* Crucial: enforce minimum display size */
}