/* style/responsible-gaming.css */

/* Custom Colors */
:root {
    --page-bg: #08160F; /* Background */
    --card-bg: #11271B; /* Card BG */
    --text-main: #F2FFF6; /* Text Main */
    --text-secondary: #A7D9B8; /* Text Secondary */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green: #0A4B2C; /* Deep Green */
}

.page-responsible-gaming {
    background-color: var(--page-bg);
    color: var(--text-main); /* Default text color for the page content */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-responsible-gaming__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden; /* Ensure no overflow */
}

.page-responsible-gaming__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-responsible-gaming__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-responsible-gaming__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-responsible-gaming__main-title {
    font-size: clamp(2em, 3.5vw, 3em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow color shadow */
}

.page-responsible-gaming__hero-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-responsible-gaming__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 500px; /* Limit max width for button group */
    margin: 0 auto;
}

.page-responsible-gaming__btn-primary,
.page-responsible-gaming__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    min-width: 150px;
    text-align: center;
}

.page-responsible-gaming__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-responsible-gaming__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-responsible-gaming__btn-secondary {
    background-color: transparent;
    color: var(--glow-color); /* Lighter green for text */
    border: 2px solid var(--glow-color);
}

.page-responsible-gaming__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--page-bg); /* Dark text on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(87, 227, 141, 0.3);
}

.page-responsible-gaming__section {
    padding: 60px 0;
    border-top: 1px solid var(--divider-color);
}

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

.page-responsible-gaming__section-title {
    font-size: 2.2em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-responsible-gaming__text-block {
    font-size: 1.05em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

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

.page-responsible-gaming__card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push content apart */
    color: var(--text-secondary);
}

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

.page-responsible-gaming__card-text {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

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

.page-responsible-gaming__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.page-responsible-gaming__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--glow-color);
    font-weight: bold;
}

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

.page-responsible-gaming__feature-item {
    text-align: center;
}

.page-responsible-gaming__feature-icon {
    width: 100%; /* Ensure full width for image */
    height: 250px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area */
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-responsible-gaming__feature-title {
    font-size: 1.3em;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-responsible-gaming__feature-description {
    font-size: 0.95em;
    color: var(--text-secondary);
}

/* FAQ Section */
.page-responsible-gaming__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

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

.page-responsible-gaming__faq-item[open] {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.page-responsible-gaming__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    list-style: none; /* For details/summary */
}

.page-responsible-gaming__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker */
}

.page-responsible-gaming__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--glow-color);
    transition: transform 0.3s ease;
}

.page-responsible-gaming__faq-item[open] .page-responsible-gaming__faq-toggle {
    transform: rotate(45deg);
}

.page-responsible-gaming__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    /* max-height: 0; for JS-controlled div */
    /* overflow: hidden; for JS-controlled div */
    /* transition: max-height 0.5s ease-out, padding 0.5s ease-out; for JS-controlled div */
}

.page-responsible-gaming__faq-item[open] .page-responsible-gaming__faq-answer {
    /* max-height: 500px; Adjust as needed, for details/summary */
    /* padding: 0 25px 20px 25px; Ensure padding is applied when open */
    /* transition: max-height 0.5s ease-in, padding 0.5s ease-in; */
}

/* Specific styling for the commitment section */
.page-responsible-gaming__commitment-section .page-responsible-gaming__text-block {
    font-size: 1.1em;
    font-weight: 500;
    max-width: 800px;
    margin-bottom: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-responsible-gaming__main-title {
        font-size: clamp(2em, 4vw, 2.5em);
    }
    .page-responsible-gaming__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-responsible-gaming__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }

    .page-responsible-gaming__main-title {
        font-size: clamp(1.8em, 6vw, 2.2em);
        margin-bottom: 10px;
    }

    .page-responsible-gaming__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-responsible-gaming__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px; /* Adjust max width for mobile buttons */
        padding: 0 15px;
    }

    .page-responsible-gaming__btn-primary,
    .page-responsible-gaming__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px; /* Adjust padding for mobile */
    }

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

    .page-responsible-gaming__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-responsible-gaming__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-responsible-gaming__text-block {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-responsible-gaming__card-grid,
    .page-responsible-gaming__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-responsible-gaming__card {
        padding: 25px;
    }

    .page-responsible-gaming__card-title {
        font-size: 1.3em;
    }

    .page-responsible-gaming__feature-icon {
        height: 200px; /* Adjust height for mobile */
    }

    .page-responsible-gaming__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    /* Mobile image responsive */
    .page-responsible-gaming img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containing elements for images/content */
    .page-responsible-gaming__section,
    .page-responsible-gaming__card,
    .page-responsible-gaming__hero-image-wrapper {
        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-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-responsible-gaming__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Remove padding from elements that should stretch full width but have padding on children */
    .page-responsible-gaming__section {
        padding-left: 0;
        padding-right: 0;
    }
}