/* style/responsible-gaming.css */
.page-responsible-gaming {
    background-color: #0A0A0A; /* Background */
    color: #FFF6D6; /* Text Main */
    font-family: sans-serif; /* Roboto气质 */
    line-height: 1.6;
}

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

/* Hero Section */
.page-responsible-gaming__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Default to column for mobile-first approach */
    align-items: center;
    justify-content: center;
    min-height: 450px; /* Adjusted for content */
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
    overflow: hidden; /* Ensure content does not overflow */
}

.page-responsible-gaming__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-responsible-gaming__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    background-color: rgba(10, 10, 10, 0.7); /* Semi-transparent background for readability */
    padding: 30px;
    border-radius: 8px;
    margin-top: 100px; /* Push content down from the top */
}

.page-responsible-gaming__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem); /* H1 font size clamp for responsiveness */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2C14E; /* Main color */
}

.page-responsible-gaming__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.page-responsible-gaming__cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for contrast */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease;
    min-width: 200px; /* Ensure button is not too small */
    min-height: 44px; /* Touch target size */
    display: flex; /* Use flex to center text */
    align-items: center;
    justify-content: center;
}

.page-responsible-gaming__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* General Section Styles */
.page-responsible-gaming__commitment-section,
.page-responsible-gaming__tools-section,
.page-responsible-gaming__problem-gambling-section,
.page-responsible-gaming__help-section,
.page-responsible-gaming__underage-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

.page-responsible-gaming__section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #FFD36B; /* Auxiliary color */
    background: linear-gradient(to right, #F2C14E, #FFD36B); /* text-gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.page-responsible-gaming__section-intro,
.page-responsible-gaming__section-text {
    font-size: 1.1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #FFF6D6; /* Text Main */
}

/* Commitment Section */
.page-responsible-gaming__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-responsible-gaming__commitment-item {
    background-color: #111111; /* Card BG */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #3A2A12; /* Border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-responsible-gaming__commitment-heading {
    font-size: 1.5rem;
    color: #F2C14E; /* Main color */
    margin-bottom: 15px;
}

.page-responsible-gaming__commitment-text {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
}

/* Tools Section */
.page-responsible-gaming__tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-responsible-gaming__tool-card {
    background-color: #111111; /* Card BG */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #3A2A12; /* Border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-responsible-gaming__tool-icon {
    width: 100%; /* Ensure image takes full width of its container */
    max-width: 250px; /* Limit max size */
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 4px;
    /* Ensure min size for all images */
    min-width: 200px;
    min-height: 200px;
}

.page-responsible-gaming__tool-heading {
    font-size: 1.4rem;
    color: #F2C14E; /* Main color */
    margin-bottom: 10px;
}

.page-responsible-gaming__tool-description {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
    flex-grow: 1; /* Allow description to take available space */
    margin-bottom: 20px;
}

.page-responsible-gaming__tool-link {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for contrast */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    min-width: 150px;
    min-height: 44px; /* Touch target size */
    display: flex; /* Use flex to center text */
    align-items: center;
    justify-content: center;
}

.page-responsible-gaming__tool-link:hover {
    background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
}

/* Problem Gambling Section */
.page-responsible-gaming__question-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-responsible-gaming__list-item {
    background-color: #111111; /* Card BG */
    border-left: 5px solid #F2C14E; /* Main color */
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 1.1rem;
    color: #FFF6D6; /* Text Main */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Help Section */
.page-responsible-gaming__help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-responsible-gaming__help-card {
    background-color: #111111; /* Card BG */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #3A2A12; /* Border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-responsible-gaming__help-heading {
    font-size: 1.4rem;
    color: #F2C14E; /* Main color */
    margin-bottom: 10px;
}

.page-responsible-gaming__help-description {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-responsible-gaming__help-link {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for contrast */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    min-width: 150px;
    min-height: 44px; /* Touch target size */
    display: flex; /* Use flex to center text */
    align-items: center;
    justify-content: center;
}

.page-responsible-gaming__help-link:hover {
    background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
}

.page-responsible-gaming__contact-prompt {
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-responsible-gaming__contact-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for contrast */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-top: 20px;
    min-width: 200px;
    min-height: 44px; /* Touch target size */
    display: flex; /* Use flex to center text */
    align-items: center;
    justify-content: center;
}

.page-responsible-gaming__contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* Underage Section */
.page-responsible-gaming__prevention-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

/* Media Queries for responsiveness */
@media (max-width: 849px) {
    .page-responsible-gaming__hero-content {
        margin-top: 50px; /* Adjust margin for smaller screens */
        padding: 20px;
    }

    .page-responsible-gaming__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-responsible-gaming__hero-description {
        font-size: 1rem;
    }

    .page-responsible-gaming__section-title {
        font-size: 2rem;
    }

    .page-responsible-gaming__section-intro,
    .page-responsible-gaming__section-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-responsible-gaming__commitment-grid,
    .page-responsible-gaming__tools-grid,
    .page-responsible-gaming__help-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .page-responsible-gaming__commitment-item,
    .page-responsible-gaming__tool-card,
    .page-responsible-gaming__help-card {
        padding: 20px;
    }

    .page-responsible-gaming__tool-icon {
        max-width: 200px; /* Further restrict max-width for very small screens if needed */
        min-width: 200px; /* Maintain minimum size */
        min-height: 200px;
    }

    /* Enforce image responsiveness in content sections */
    .page-responsible-gaming__tools-section img,
    .page-responsible-gaming__help-section img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-responsible-gaming__hero-section {
        min-height: 400px;
        padding-top: 10px; /* Small top padding */
    }

    .page-responsible-gaming__hero-content {
        margin-top: 30px;
        padding: 15px;
    }

    .page-responsible-gaming__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .page-responsible-gaming__hero-description {
        font-size: 0.95rem;
    }

    .page-responsible-gaming__cta-button,
    .page-responsible-gaming__tool-link,
    .page-responsible-gaming__help-link,
    .page-responsible-gaming__contact-button {
        padding: 10px 20px;
        font-size: 0.95rem;
        min-width: 100%; /* Full width buttons on mobile */
        max-width: 300px; /* Max width for buttons */
        margin-left: auto;
        margin-right: auto;
    }

    .page-responsible-gaming__container {
        padding: 15px;
    }

    .page-responsible-gaming__section-title {
        font-size: 1.8rem;
    }

    .page-responsible-gaming__section-intro,
    .page-responsible-gaming__section-text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .page-responsible-gaming__list-item {
        font-size: 1rem;
        padding: 12px 15px;
    }

    /* Mobile content area images */
    .page-responsible-gaming img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure min size */
        min-height: 200px;
    }
}

@media (max-width: 549px) {
    .page-responsible-gaming__hero-section {
        min-height: 350px;
    }
    .page-responsible-gaming__hero-content {
        margin-top: 20px;
        padding: 10px;
    }
    .page-responsible-gaming__main-title {
        font-size: clamp(1.4rem, 8vw, 2rem);
    }
    .page-responsible-gaming__section-title {
        font-size: 1.5rem;
    }
    .page-responsible-gaming__cta-button,
    .page-responsible-gaming__tool-link,
    .page-responsible-gaming__help-link,
    .page-responsible-gaming__contact-button {
        max-width: 250px; /* Further constrain button width */
    }

    /* Ensure content area images are not smaller than 200px */
    .page-responsible-gaming__tools-section .page-responsible-gaming__tool-icon {
        width: 100%;
        max-width: 200px; /* Ensure it respects the min-width */
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
    /* General content images */
    .page-responsible-gaming img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
}

/* Ensure no horizontal overflow */
.page-responsible-gaming {
    overflow-x: hidden;
}
.page-responsible-gaming__container {
    overflow-x: hidden;
}