/* style/responsible-gambling.css */

/* Base styles for the page content, ensuring text color contrasts with body background */
.page-responsible-gambling {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for assumed light body background */
    background-color: #ffffff; /* Explicitly set for content sections if needed */
}

/* Container for consistent content width */
.page-responsible-gambling__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section - Main title and description */
.page-responsible-gambling__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff; /* Light text for dark background */
    background-color: #26A9E0; /* Primary brand color as background */
}

.page-responsible-gambling__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
}

.page-responsible-gambling__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 40px;
    max-width: 800px;
}

/* Image Section */
.page-responsible-gambling__image-section {
    padding: 40px 0;
    background-color: #f5f5f5; /* Light background for image section */
}

.page-responsible-gambling__hero-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Content Sections */
.page-responsible-gambling__content-section {
    padding: 60px 0;
}

.page-responsible-gambling__text-block {
    max-width: 800px;
    margin: 0 auto;
}

.page-responsible-gambling__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #26A9E0; /* Primary color for section titles */
    margin-bottom: 30px;
    text-align: center;
}

.page-responsible-gambling__content-section p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* List styles */
.page-responsible-gambling__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-responsible-gambling__list-item {
    background-color: #f9f9f9;
    border-left: 5px solid #26A9E0;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-responsible-gambling__list-title {
    color: #26A9E0;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 5px;
}

/* Dark background sections */
.page-responsible-gambling__dark-section {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff; /* White text for contrast */
    padding: 60px 0;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__section-title,
.page-responsible-gambling__dark-section .page-responsible-gambling__list-title {
    color: #ffffff; /* White titles on dark background */
}

.page-responsible-gambling__dark-section .page-responsible-gambling__list-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for list items */
    border-left-color: #ffffff; /* White border for contrast */
}

/* Image with Content Section */
.page-responsible-gambling__image-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-responsible-gambling__image-box,
.page-responsible-gambling__content-text {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
}

.page-responsible-gambling__content-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-responsible-gambling__image-content-section--reversed .page-responsible-gambling__image-content-wrapper {
    flex-direction: row-reverse; /* Reverse order for alternating layout */
}

/* CTA Buttons */
.page-responsible-gambling__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    text-align: center;
}

.page-responsible-gambling__btn-primary {
    background-color: #EA7C07; /* Custom login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-responsible-gambling__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
    transform: translateY(-2px);
}

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

.page-responsible-gambling__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
}

/* Help Resources specific styling */
.page-responsible-gambling__help-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-responsible-gambling__image-content-wrapper {
        flex-direction: column; /* Stack image and text vertically */
    }
    .page-responsible-gambling__image-content-section--reversed .page-responsible-gambling__image-content-wrapper {
        flex-direction: column; /* Keep stacked for reversed sections too */
    }
}

@media (max-width: 768px) {
    .page-responsible-gambling__container {
        padding: 0 15px; /* Smaller padding on mobile */
    }

    .page-responsible-gambling__hero-section,
    .page-responsible-gambling__content-section,
    .page-responsible-gambling__dark-section {
        padding: 40px 0;
    }

    /* Mobile specific image adaptation */
    .page-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-responsible-gambling__image-section,
    .page-responsible-gambling__image-content-section,
    .page-responsible-gambling__image-box,
    .page-responsible-gambling__content-text {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile specific button adaptation */
    .page-responsible-gambling__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }

    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-responsible-gambling__section-title {
        font-size: 1.8rem;
    }
    
    .page-responsible-gambling p,
    .page-responsible-gambling li {
        font-size: 1rem;
    }
}