/* style/responsible-gaming.css */
/* Base styles for the page content, assuming a dark background from shared.css */
.page-responsible-gaming {
    font-family: Arial, sans-serif;
    color: #FFF6D6; /* Text Main color for dark background */
    background-color: transparent; /* Inherit from body or shared.css */
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Sections and Containers */
.page-responsible-gaming__section {
    padding: 60px 0;
    position: relative;
}

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

/* Hero Section */
.page-responsible-gaming__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure image 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; /* Cover the entire area */
    display: block;
    filter: brightness(0.5); /* Darken image for text readability, allowed here as it's not changing color but brightness for contrast */
}

.page-responsible-gaming__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(17, 17, 17, 0.7); /* Card B G with transparency */
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.page-responsible-gaming__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* H1 font size with clamp for responsiveness */
    font-weight: bold;
    color: #FFD36B; /* Glow color */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-responsible-gaming__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFF6D6; /* Text Main */
}

/* Titles */
.page-responsible-gaming__section-title {
    font-size: 2.5em;
    color: #FFD36B; /* Glow color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-responsible-gaming__sub-title {
    font-size: 1.8em;
    color: #F2C14E; /* Main color */
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Paragraphs and Lists */
.page-responsible-gaming p {
    margin-bottom: 15px;
    color: #FFF6D6; /* Text Main */
}

.page-responsible-gaming__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #FFF6D6; /* Text Main */
}

.page-responsible-gaming__list li {
    margin-bottom: 10px;
    color: #FFF6D6; /* Text Main */
}

.page-responsible-gaming__list--tips li strong {
    color: #FFD36B; /* Highlight for tips */
}

/* Images */
.page-responsible-gaming__image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-responsible-gaming__btn-primary,
.page-responsible-gaming__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-responsible-gaming__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
    color: #FFF6D6; /* Text Main for primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.page-responsible-gaming__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Main color for secondary button text */
    border: 2px solid #3A2A12; /* Border color */
    margin-left: 20px;
}

.page-responsible-gaming__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    color: #FFD36B; /* Glow color on hover */
    border-color: #F2C14E; /* Main color on hover */
}

.page-responsible-gaming__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-responsible-gaming__card {
    background: #111111; /* Card B G */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gaming__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 193, 78, 0.2);
}

.page-responsible-gaming__card-title {
    font-size: 1.5em;
    color: #FFD36B; /* Glow color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-responsible-gaming__card p {
    color: #FFF6D6; /* Text Main */
    font-size: 0.95em;
}

/* Links within content */
.page-responsible-gaming__link {
    color: #F2C14E; /* Main color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-responsible-gaming__link:hover {
    color: #FFD36B; /* Glow color on hover */
}

/* FAQ Section */
.page-responsible-gaming__faq-item {
    background: #111111; /* Card B G */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-responsible-gaming__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: #1A1A1A; /* Slightly lighter dark background for contrast */
    color: #FFD36B; /* Glow color */
    font-weight: bold;
    font-size: 1.2em;
}

.page-responsible-gaming__faq-question:hover {
    background: #222222; /* Darker hover state */
}

.page-responsible-gaming__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1.2em;
}

.page-responsible-gaming__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #F2C14E; /* Main color */
}

.page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes cross */
}

.page-responsible-gaming__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Text Main */
}

.page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px 20px;
}

.page-responsible-gaming__faq-answer p {
    margin-bottom: 0; /* Remove extra margin for last paragraph in answer */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-responsible-gaming__hero-content {
        max-width: 600px;
    }

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

    .page-responsible-gaming__sub-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-responsible-gaming {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-responsible-gaming__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
    }

    .page-responsible-gaming__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 size for mobile */
    }

    .page-responsible-gaming__intro-text {
        font-size: 1em;
    }

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

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

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

    .page-responsible-gaming__sub-title {
        font-size: 1.4em;
    }

    /* Images */
    .page-responsible-gaming img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-responsible-gaming__hero-image {
        filter: brightness(0.4) !important; /* Even darker for mobile contrast */
    }

    /* Buttons */
    .page-responsible-gaming__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 15px;
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-responsible-gaming__btn-primary,
    .page-responsible-gaming__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        margin-left: 0 !important; /* Remove margin-left for stacked buttons */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Cards */
    .page-responsible-gaming__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    /* FAQ */
    .page-responsible-gaming__faq-question {
        padding: 15px;
        font-size: 1.1em;
    }

    .page-responsible-gaming__faq-question h3 {
        font-size: 1.1em;
    }

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

    .page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-answer {
        padding: 10px 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-responsible-gaming__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-responsible-gaming__section-title {
        font-size: 1.6em;
    }
    .page-responsible-gaming__sub-title {
        font-size: 1.2em;
    }
}