/* style/responsible-gaming.css */

/* Custom Colors */
:root {
    --f8bet2-main-color: #11A84E; /* 主色调 */
    --f8bet2-accent-color: #22C768; /* 辅助色 */
    --f8bet2-bg-dark: #08160F; /* 背景 */
    --f8bet2-card-bg: #11271B; /* Card BG */
    --f8bet2-text-main: #F2FFF6; /* Text Main */
    --f8bet2-text-secondary: #A7D9B8; /* Text Secondary */
    --f8bet2-border: #2E7A4E; /* 边框 */
    --f8bet2-glow: #57E38D; /* Glow */
    --f8bet2-gold: #F2C14E; /* Gold */
    --f8bet2-divider: #1E3A2A; /* Divider */
    --f8bet2-deep-green: #0A4B2C; /* Deep Green */
    --f8bet2-btn-gradient-start: #2AD16F;
    --f8bet2-btn-gradient-end: #13994A;
}

.page-responsible-gaming {
    background-color: var(--f8bet2-bg-dark); /* Using custom background color */
    color: var(--f8bet2-text-main); /* Light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-responsible-gaming__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-responsible-gaming__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-responsible-gaming__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
    min-width: 200px;
    min-height: 200px;
}

.page-responsible-gaming__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(8, 22, 15, 0.7); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-responsible-gaming__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* H1 font-size with clamp */
    color: var(--f8bet2-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-responsible-gaming__description {
    font-size: 1.2rem;
    color: var(--f8bet2-text-secondary);
    margin-bottom: 30px;
}

.page-responsible-gaming__section {
    padding: 60px 20px;
    background-color: var(--f8bet2-bg-dark);
    border-bottom: 1px solid var(--f8bet2-divider);
}

.page-responsible-gaming__section:last-of-type {
    border-bottom: none;
}

.page-responsible-gaming__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-responsible-gaming__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--f8bet2-main-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(87, 227, 141, 0.3);
}

.page-responsible-gaming__sub-title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: var(--f8bet2-text-main);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-responsible-gaming__text-block {
    font-size: 1rem;
    color: var(--f8bet2-text-secondary);
    margin-bottom: 20px;
}

.page-responsible-gaming__text-block a {
    color: var(--f8bet2-main-color);
    text-decoration: underline;
}

.page-responsible-gaming__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-responsible-gaming__card {
    background-color: var(--f8bet2-card-bg);
    border: 1px solid var(--f8bet2-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--f8bet2-text-secondary);
    transition: transform 0.3s ease;
}

.page-responsible-gaming__card:hover {
    transform: translateY(-5px);
}

.page-responsible-gaming__card-title {
    font-size: 1.5rem;
    color: var(--f8bet2-text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-responsible-gaming__image-block {
    text-align: center;
    margin: 40px 0;
}

.page-responsible-gaming__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensures it behaves as a block element */
    margin: 0 auto; /* Center the image */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-responsible-gaming__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-responsible-gaming__list-item {
    background-color: var(--f8bet2-card-bg);
    border-left: 4px solid var(--f8bet2-main-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: var(--f8bet2-text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.page-responsible-gaming__list-item strong {
    color: var(--f8bet2-text-main);
}

.page-responsible-gaming__list-item a {
    color: var(--f8bet2-accent-color);
    text-decoration: underline;
}

.page-responsible-gaming__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
    overflow: hidden;
}

.page-responsible-gaming__btn-primary,
.page-responsible-gaming__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure button takes full width on small screens */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-responsible-gaming__btn-primary {
    background: linear-gradient(180deg, var(--f8bet2-btn-gradient-start) 0%, var(--f8bet2-btn-gradient-end) 100%);
    color: var(--f8bet2-text-main);
    border: 2px solid var(--f8bet2-btn-gradient-start);
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.4);
}

.page-responsible-gaming__btn-primary:hover {
    background: linear-gradient(180deg, var(--f8bet2-btn-gradient-end) 0%, var(--f8bet2-btn-gradient-start) 100%);
    box-shadow: 0 0 20px rgba(87, 227, 141, 0.7);
}

.page-responsible-gaming__btn-secondary {
    background-color: transparent;
    color: var(--f8bet2-main-color);
    border: 2px solid var(--f8bet2-main-color);
}

.page-responsible-gaming__btn-secondary:hover {
    background-color: var(--f8bet2-main-color);
    color: var(--f8bet2-text-main);
    box-shadow: 0 0 15px rgba(17, 168, 78, 0.5);
}

/* FAQ Section */
.page-responsible-gaming__faq-list {
    margin-top: 40px;
}

.page-responsible-gaming__faq-item {
    background-color: var(--f8bet2-card-bg);
    border: 1px solid var(--f8bet2-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-responsible-gaming__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--f8bet2-text-main);
    list-style: none; /* Hide default marker for details summary */
    -webkit-touch-callout: none; /* Disable callout on iOS */
    -webkit-user-select: none; /* Disable text selection on iOS */
    -khtml-user-select: none; /* Disable text selection on Konqueror HTML */
    -moz-user-select: none; /* Disable text selection on Firefox */
    -ms-user-select: none; /* Disable text selection on Internet Explorer/Edge */
    user-select: none; /* Disable text selection */
}

.page-responsible-gaming__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.page-responsible-gaming__faq-qtext {
    flex-grow: 1;
}

.page-responsible-gaming__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--f8bet2-main-color);
    transition: transform 0.3s ease;
}

.page-responsible-gaming__faq-item[open] .page-responsible-gaming__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-responsible-gaming__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1rem;
    color: var(--f8bet2-text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-responsible-gaming__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
    }

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

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

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

    .page-responsible-gaming__section {
        padding: 40px 15px;
    }

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

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

    .page-responsible-gaming__grid-container {
        grid-template-columns: 1fr;
    }

    .page-responsible-gaming__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-responsible-gaming__btn-primary,
    .page-responsible-gaming__btn-secondary {
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0; /* Remove potential extra margin */
    }

    /* All images must be responsive */
    .page-responsible-gaming img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All image containers must be responsive */
    .page-responsible-gaming__hero-image-wrapper,
    .page-responsible-gaming__image-block,
    .page-responsible-gaming__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-responsible-gaming__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

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

    .page-responsible-gaming__faq-answer {
        padding: 0 15px 15px 15px;
    }

    /* Video responsiveness - although no video in current content, include for completeness */
    .page-responsible-gaming video,
    .page-responsible-gaming__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Video containers mobile adaptation */
    .page-responsible-gaming__video-section,
    .page-responsible-gaming__video-container,
    .page-responsible-gaming__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
}