/* style/responsible-gambling.css */

/* Base styles for the page content */
.page-responsible-gambling {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Ensure the main content starts below the fixed header */
.page-responsible-gambling__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first content section */
}

/* Sections */
.page-responsible-gambling__section {
    padding: 60px 20px;
    margin: 0 auto;
}

.page-responsible-gambling__section:nth-of-type(even) {
    background-color: #f8f8f8; /* Light grey background for alternate sections */
}

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

/* Hero Section */
.page-responsible-gambling__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.page-responsible-gambling__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1; /* Subtle overlay */
}

.page-responsible-gambling__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-responsible-gambling__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-responsible-gambling__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

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

/* Section Titles */
.page-responsible-gambling__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-responsible-gambling__section-title--white {
    color: #FFFFFF;
}

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

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

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

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

/* Cards */
.page-responsible-gambling__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.page-responsible-gambling__card-image {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
    object-fit: cover;
}

.page-responsible-gambling__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-responsible-gambling__card-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1; /* Make text block fill available space */
}

/* Dark background cards */
.page-responsible-gambling__dark-bg {
    background: #017439;
    color: #ffffff;
    border: none;
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__card-title {
    color: #FFFFFF;
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__card-text {
    color: #f0f0f0;
}

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

.page-responsible-gambling__list-item {
    background: #f0f0f0;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-size: 1.1em;
    color: #333333;
}

.page-responsible-gambling__list-item::before {
    content: '✅';
    margin-right: 10px;
    font-size: 1.2em;
}

.page-responsible-gambling__list--tips .page-responsible-gambling__list-item::before {
    content: '💡';
}

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

.page-responsible-gambling__btn-primary {
    background: #017439; /* Brand primary color */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-responsible-gambling__btn-primary:hover {
    background: #005a2e; /* Darker shade on hover */
    border-color: #005a2e;
}

.page-responsible-gambling__btn-secondary {
    background: #ffffff;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-responsible-gambling__btn-secondary:hover {
    background: #f0f0f0; /* Light grey on hover */
    color: #005a2e;
    border-color: #005a2e;
}

.page-responsible-gambling__btn-register {
    background: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom color for register text */
    border-color: #C30808;
}

.page-responsible-gambling__btn-register:hover {
    background: #a30606;
    border-color: #a30606;
}

.page-responsible-gambling__btn-login {
    background: #C30808; /* Custom color for login */
    color: #FFFF00; /* Custom color for login text */
    border-color: #C30808;
}

.page-responsible-gambling__btn-login:hover {
    background: #a30606;
    border-color: #a30606;
}

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

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

.page-responsible-gambling__faq-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-responsible-gambling__faq-question:hover {
    background-color: #f0f0f0;
}

.page-responsible-gambling__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-responsible-gambling__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
    text-align: justify;
}

/* Video Section */
.page-responsible-gambling__video-section {
    background-color: #f8f8f8;
    text-align: center;
}

.page-responsible-gambling__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px; /* Max width for video */
    margin: 30px auto 0;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.page-responsible-gambling__video-link {
    display: block;
    width: 100%;
    height: 100%;
}

.page-responsible-gambling__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    object-fit: cover;
    min-width: 200px; /* Min video size */
    min-height: 200px; /* Min video size */
}

.page-responsible-gambling__video[poster] {
    background-size: cover;
    background-position: center;
}

/* CTA Section */
.page-responsible-gambling__cta {
    background-color: #017439;
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
}

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

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

    .page-responsible-gambling__grid-3,
    .page-responsible-gambling__grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile header offset handled by shared.css for body, so first section can have 0 or specific mobile padding */
    .page-responsible-gambling__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding is applied if shared doesn't handle body */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-responsible-gambling__section {
        padding: 40px 15px;
    }

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

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

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

    .page-responsible-gambling__text-block {
        font-size: 1em;
    }

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

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

    .page-responsible-gambling__list-item {
        font-size: 1em;
        padding: 12px 15px;
    }

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

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

    /* Images responsive on mobile */
    .page-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* Image containers responsive on mobile */
    .page-responsible-gambling__hero-image-wrapper,
    .page-responsible-gambling__card,
    .page-responsible-gambling__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for sections/containers already handled by section padding */
    }

    /* Video responsive on mobile */
    .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;
    }
    
    /* Video containers responsive on mobile */
    .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;
    }
    
    /* Buttons responsive on mobile */
    .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;
    }
    
    /* Button containers responsive on mobile */
    .page-responsible-gambling__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important; /* Adjust gap for stacked buttons */
        overflow: hidden !important;
    }
}