/* General styles for .page-xs scope */
.page-xs {
    background-color: #F4F7FB; /* Background */
    color: #1F2D3D; /* Text Main */
    font-family: Arial, sans-serif; /* Example font */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.page-xs__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-xs__section-title {
    font-size: 2.5em; /* Using em for relative sizing */
    color: #000000; /* Custom Color_1776249996415 */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-xs__main-title {
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

/* Button styles */
.page-xs__hero-button,
.page-xs__game-card-button,
.page-xs__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    min-width: 200px; /* Ensure buttons are not too small */
    font-size: 1.1em;
}

.page-xs__hero-button:hover,
.page-xs__game-card-button:hover,
.page-xs__cta-button:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

/* Hero Section */
.page-xs__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 40px;
    display: flex; /* For stacking image and content */
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
}

.page-xs__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

.page-xs__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    min-height: 300px; /* Minimum size for hero image */
}

.page-xs__hero-content-wrapper {
    width: 100%;
    padding: 20px 0;
    background-color: #2F6BFF; /* Primary color for content background */
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px); /* Slightly overlap with image for visual interest */
    margin-bottom: -30px; /* Adjust margin to pull next section up */
}

.page-xs__hero-description {
    font-size: 1.2em;
    color: #E0E0E0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Intro Section */
.page-xs__intro-section {
    padding: 40px 0;
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-xs__text-content {
    font-size: 1.1em;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 20px;
    text-align: justify;
}

/* Game Types Section */
.page-xs__game-types-section {
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-xs__game-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-xs__game-card {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #D6E2FF; /* Border */
}

.page-xs__game-card:hover {
    transform: translateY(-5px);
}

.page-xs__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px;
}

.page-xs__game-card-title {
    font-size: 1.5em;
    color: #000000; /* Custom Color_1776249996415 */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-xs__game-card-description {
    font-size: 1em;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 20px;
}

/* Features Section */
.page-xs__features-section {
    padding: 40px 0;
    background-color: #F4F7FB; /* Background */
    margin-bottom: 40px;
}

.page-xs__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-xs__feature-item {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
    border: 1px solid #D6E2FF; /* Border */
}

.page-xs__feature-icon {
    width: 100%; /* Make feature images fill width of container */
    height: auto; /* Maintain aspect ratio */
    max-width: 300px; /* Max width for feature images */
    margin-left: auto;
    margin-right: auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-xs__feature-title {
    font-size: 1.4em;
    color: #000000; /* Custom Color_1776249996415 */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-xs__feature-description {
    font-size: 1em;
    color: #1F2D3D; /* Text Main */
}

/* How To Play Section */
.page-xs__how-to-play-section {
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-xs__how-to-play-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-xs__step-item {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
    border: 1px solid #D6E2FF; /* Border */
}

.page-xs__step-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px;
}

.page-xs__step-title {
    font-size: 1.5em;
    color: #000000; /* Custom Color_1776249996415 */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-xs__step-description {
    font-size: 1em;
    color: #1F2D3D; /* Text Main */
}

/* CTA Section */
.page-xs__cta-section {
    padding: 60px 0;
    background-color: #2F6BFF; /* Primary color */
    color: #FFFFFF;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-xs__cta-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-xs__cta-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum image size */
    min-height: 200px;
}

.page-xs__cta-title {
    font-size: 2.8em;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-xs__cta-description {
    font-size: 1.3em;
    color: #E0E0E0;
    margin-bottom: 40px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-xs__container {
        padding: 15px;
    }

    .page-xs__section-title {
        font-size: 2em;
    }

    .page-xs__main-title {
        font-size: 2.8em;
    }

    .page-xs__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-xs__section-title {
        font-size: 1.8em;
    }

    .page-xs__main-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Using clamp for H1 on mobile */
    }

    .page-xs__hero-description {
        font-size: 1em;
    }

    .page-xs__game-types-grid,
    .page-xs__features-grid,
    .page-xs__how-to-play-steps {
        grid-template-columns: 1fr;
    }

    .page-xs__hero-content-wrapper {
        transform: translateY(-30px); /* Less overlap on mobile */
        margin-bottom: -10px;
    }

    .page-xs__cta-title {
        font-size: 2em;
    }

    .page-xs__cta-description {
        font-size: 1em;
    }

    .page-xs__hero-button,
    .page-xs__game-card-button,
    .page-xs__cta-button {
        min-width: unset; /* Remove min-width for smaller screens */
        width: 100%; /* Full width buttons */
        padding: 12px 20px;
    }
}

/* Ensure all content area images CSS dimensions are not less than 200px */
.page-xs img:not(.shared-header img):not(.shared-footer img) {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%; /* Ensure responsiveness */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Prevent inline-block issues */
}

/* Specific override for feature icons to allow proper scaling within their bounds */
.page-xs__feature-icon {
    width: 100%;
    height: auto;
    max-width: 300px; /* Allow max-width to constrain larger images */
    margin-left: auto;
    margin-right: auto;
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}