/* style/responsible-gambling.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-responsible-gambling {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-responsible-gambling a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: none;
}

.page-responsible-gambling a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-responsible-gambling__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure hero is not hidden by fixed header */
}

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

.page-responsible-gambling__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-responsible-gambling__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-responsible-gambling__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-responsible-gambling__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #F0F0F0;
}

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

/* General Section Styles */
.page-responsible-gambling__section {
    padding: 60px 20px;
    background-color: #1a1a1a; /* Slightly lighter dark background for sections */
    color: #ffffff; /* Light text for dark background */
}

.page-responsible-gambling__section:nth-of-type(odd) {
    background-color: #121212; /* Match body background for alternating sections */
}

.page-responsible-gambling__dark-section {
    background-color: #26A9E0; /* Brand primary color for specific sections */
    color: #ffffff; /* White text on brand primary color */
}

.page-responsible-gambling__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles on dark background */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-responsible-gambling__section-title--light {
    color: #FFFFFF; /* White titles for dark-section */
}

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

.page-responsible-gambling__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    text-align: justify;
}

.page-responsible-gambling__text-block--light {
    color: #f0f0f0;
}

/* Flex Container for Columns */
.page-responsible-gambling__container--flex {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-responsible-gambling__container--reverse {
    flex-direction: row-reverse;
}

.page-responsible-gambling__content-column {
    flex: 1;
    min-width: 300px;
}

.page-responsible-gambling__image-column {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-responsible-gambling__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure no extra space below image */
    margin: 0 auto; /* Center image */
}

/* List Styles */
.page-responsible-gambling__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-responsible-gambling__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Grid Layout for Cards */
.page-responsible-gambling__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-responsible-gambling__card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px; /* Ensure cards have similar height */
}

.page-responsible-gambling__card--light {
    background: #FFFFFF; /* White background for cards in dark sections */
    color: #333333; /* Dark text on white background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-responsible-gambling__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
    display: block;
}

.page-responsible-gambling__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for card titles */
}

.page-responsible-gambling__card--light .page-responsible-gambling__card-title {
    color: #26A9E0; /* Still brand color for titles on light cards */
}

.page-responsible-gambling__card-text {
    font-size: 1em;
    flex-grow: 1; /* Allow text to grow */
}

/* Buttons */
.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-responsible-gambling__btn-primary {
    background: #EA7C07; /* Login button color for primary CTA */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-responsible-gambling__btn-primary:hover {
    background: #d46f06;
    border-color: #d46f06;
}

.page-responsible-gambling__btn-secondary {
    background: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-responsible-gambling__btn-secondary:hover {
    background: #26A9E0;
    color: #FFFFFF;
}

/* CTA Section */
.page-responsible-gambling__section--cta {
    padding: 80px 20px;
    text-align: center;
    background-color: #1a1a1a;
}

.page-responsible-gambling__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-responsible-gambling__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-responsible-gambling__section--faq {
    background-color: #121212;
}

.page-responsible-gambling__faq-list {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 40px;
}

.page-responsible-gambling__faq-item {
    background: rgba(255, 255, 255, 0.08); /* Slightly visible background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05); /* Slightly darker for question area */
    transition: background 0.3s ease;
}

.page-responsible-gambling__faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.page-responsible-gambling__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #FFFFFF;
}

.page-responsible-gambling__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
    line-height: 1;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
    content: '−'; /* Change to minus sign */
}

.page-responsible-gambling__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    text-align: justify;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content, with !important */
    padding: 20px;
    padding-top: 0; /* No top padding if question already has it */
}

.page-responsible-gambling__faq-answer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-responsible-gambling__hero-title {
        font-size: 2.8em;
    }

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

    .page-responsible-gambling__container--flex {
        flex-direction: column;
    }

    .page-responsible-gambling__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-responsible-gambling__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure hero is not hidden by fixed header on mobile */
    }

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

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

    .page-responsible-gambling__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.9em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-responsible-gambling__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

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

    .page-responsible-gambling__text-block,
    .page-responsible-gambling__list-item,
    .page-responsible-gambling__card-text,
    .page-responsible-gambling__faq-question h3,
    .page-responsible-gambling__faq-answer p {
        font-size: 0.95em;
    }

    .page-responsible-gambling__container,
    .page-responsible-gambling__faq-list,
    .page-responsible-gambling__cta-content {
        padding: 0 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile image responsiveness */
    .page-responsible-gambling img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Ensure card images are also responsive and not small */
    .page-responsible-gambling__card-image {
        height: auto !important; /* Allow height to adjust */
        min-height: 200px !important; /* Enforce minimum size */
        object-fit: cover !important;
    }

    /* Video responsiveness (if any) */
    .page-responsible-gambling video,
    .page-responsible-gambling__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-responsible-gambling__video-section,
    .page-responsible-gambling__video-container,
    .page-responsible-gambling__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-responsible-gambling__faq-question {
        padding: 15px;
    }
    .page-responsible-gambling__faq-answer {
        padding: 0 15px;
    }
    .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
        padding: 15px;
        padding-top: 0;
    }
}