/* 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 background */
    background-color: #ffffff; /* Default background */
}

/* Hero Section */
.page-responsible-gambling__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensures content 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 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-responsible-gambling__hero-content {
    max-width: 800px;
    padding: 20px;
    color: #ffffff;
}

.page-responsible-gambling__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.2;
}

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

.page-responsible-gambling__cta-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: #ffffff;
}

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

.page-responsible-gambling__heading {
    font-size: 2.2em;
    color: #017439; /* Brand color for headings */
    margin-bottom: 30px;
    text-align: center;
}

.page-responsible-gambling__sub-heading {
    font-size: 1.6em;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-responsible-gambling__text {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333333;
}

.page-responsible-gambling__text--note {
    font-style: italic;
    text-align: center;
    margin-top: 30px;
    color: #555555;
}

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

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

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

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

.page-responsible-gambling__card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

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

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

.page-responsible-gambling__card-text {
    font-size: 1em;
    color: #555555;
}

/* Support Resources Specific Styles */
.page-responsible-gambling__support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-responsible-gambling__support-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    text-align: center;
    color: #333333;
}

.page-responsible-gambling__support-image {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

.page-responsible-gambling__support-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
}

.page-responsible-gambling__support-text {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
}

/* Protecting Minors Section */
.page-responsible-gambling__protecting-minors .page-responsible-gambling__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

.page-responsible-gambling__text-block {
    flex: 2;
}

.page-responsible-gambling__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-responsible-gambling__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-responsible-gambling__faq-section {
    background-color: #f5f5f5;
}

.page-responsible-gambling__faq-list {
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.page-responsible-gambling__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.page-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-size: 1.15em;
    color: #333333;
    transition: color 0.3s ease;
}

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

.page-responsible-gambling__faq-title {
    margin: 0;
    font-size: 1.15em;
    color: inherit;
}

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

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes an 'x' or minus */
}

.page-responsible-gambling__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px; /* Adjust padding for visual alignment */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    font-size: 1em;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure override */
    padding: 15px;
}

.page-responsible-gambling__faq-answer p {
    margin-bottom: 10px;
}

/* Call to Action Bottom Section */
.page-responsible-gambling__cta-bottom {
    text-align: center;
    padding: 80px 20px;
}

.page-responsible-gambling__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-responsible-gambling__heading--white {
    color: #ffffff;
}

/* Button Styles */
.page-responsible-gambling__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.page-responsible-gambling__btn-primary:hover {
    background-color: #a30606; /* Darker red on hover */
    transform: translateY(-2px);
}

.page-responsible-gambling__btn-primary--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-responsible-gambling__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid #017439;
    cursor: pointer;
    font-size: 1.1em;
}

.page-responsible-gambling__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-responsible-gambling__btn-tertiary {
    display: inline-block;
    background-color: transparent;
    color: #017439;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid #017439;
    font-size: 0.95em;
    margin-top: 15px;
}

.page-responsible-gambling__btn-tertiary:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-responsible-gambling a {
    color: #017439;
    text-decoration: underline;
}

.page-responsible-gambling a:hover {
    color: #005f2f;
}

/* Global Image and Container Responsiveness (Mobile) */
.page-responsible-gambling img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-responsible-gambling__section,
.page-responsible-gambling__card,
.page-responsible-gambling__container,
.page-responsible-gambling__content-wrapper,
.page-responsible-gambling__image-block,
.page-responsible-gambling__text-block,
.page-responsible-gambling__cta-buttons,
.page-responsible-gambling__support-grid,
.page-responsible-gambling__faq-list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent horizontal scroll */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-responsible-gambling {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-responsible-gambling__hero-section {
        height: auto;
        min-height: 400px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

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

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

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

    .page-responsible-gambling__btn-primary,
    .page-responsible-gambling__btn-secondary,
    .page-responsible-gambling__btn-tertiary,
    .page-responsible-gambling a[class*="button"],
    .page-responsible-gambling a[class*="btn"] {
        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 {
        padding: 40px 15px;
    }

    .page-responsible-gambling__heading {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-responsible-gambling__sub-heading {
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-responsible-gambling__text,
    .page-responsible-gambling__list-item,
    .page-responsible-gambling__card-text {
        font-size: 0.95em;
    }

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

    .page-responsible-gambling__card-image,
    .page-responsible-gambling__support-image {
        height: auto; /* Allow image height to be auto on mobile */
    }

    .page-responsible-gambling__protecting-minors .page-responsible-gambling__content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

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

    .page-responsible-gambling__faq-title {
        font-size: 1em;
    }

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

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

    /* Ensure all images are responsive */
    .page-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-responsible-gambling__section,
    .page-responsible-gambling__card,
    .page-responsible-gambling__container,
    .page-responsible-gambling__content-wrapper,
    .page-responsible-gambling__image-block,
    .page-responsible-gambling__text-block,
    .page-responsible-gambling__cta-buttons,
    .page-responsible-gambling__support-grid,
    .page-responsible-gambling__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

/* Ensure no CSS filters on images */
.page-responsible-gambling img {
    filter: none !important;
}

/* Contrast Fixes */
.page-responsible-gambling__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-responsible-gambling__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}