/* style/resources-responsible-gambling.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #FFD700;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-light: #f1f3f5;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
}

.page-resources-responsible-gambling {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-dark); /* Default text color for light background */
    line-height: 1.6;
    background-color: var(--background-light);
}

/* Ensure main content starts below fixed header */
.page-resources-responsible-gambling__hero-banner {
    padding-top: 120px; /* Adjust based on actual header height */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources-responsible-gambling__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.page-resources-responsible-gambling__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-responsible-gambling__hero-content {
    position: relative;
    z-index: 2;
}

.page-resources-responsible-gambling__main-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-color-light);
    line-height: 1.2;
}

.page-resources-responsible-gambling__main-title .page-resources-responsible-gambling__link-highlight {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-responsible-gambling__main-title .page-resources-responsible-gambling__link-highlight:hover {
    color: #ffd700;
    text-decoration: underline;
}

.page-resources-responsible-gambling__subtitle {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-resources-responsible-gambling__subtitle .page-resources-responsible-gambling__link-highlight {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-responsible-gambling__subtitle .page-resources-responsible-gambling__link-highlight:hover {
    color: #ffd700;
    text-decoration: underline;
}

.page-resources-responsible-gambling__section {
    padding: 60px 20px;
    background-color: var(--background-light);
}

.page-resources-responsible-gambling__container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.page-resources-responsible-gambling__heading {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-resources-responsible-gambling__heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-resources-responsible-gambling__sub-heading {
    font-size: 1.6em;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources-responsible-gambling__paragraph {
    font-size: 1.1em;
    margin-bottom: 1em;
    color: var(--text-color-dark);
    line-height: 1.7;
}

.page-resources-responsible-gambling__link-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources-responsible-gambling__link-text:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-resources-responsible-gambling__list {
    list-style-type: disc;
    margin-left: 25px;
    padding-left: 0;
    margin-bottom: 20px;
    color: var(--text-color-dark);
}

.page-resources-responsible-gambling__list-item {
    font-size: 1.05em;
    margin-bottom: 8px;
    line-height: 1.6;
}

.page-resources-responsible-gambling__content-flex {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
}

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

.page-resources-responsible-gambling__text-content {
    flex: 1;
}

.page-resources-responsible-gambling__image-wrapper {
    flex-shrink: 0;
    width: 40%;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-resources-responsible-gambling__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-resources-responsible-gambling__cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #3A5C95);
    color: var(--text-color-light);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: none;
}

.page-resources-responsible-gambling__cta-button:hover {
    background: linear-gradient(135deg, #3A5C95, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-resources-responsible-gambling__section--faq {
    padding-bottom: 80px;
}

.page-resources-responsible-gambling__faq-list {
    margin-top: 40px;
}

.page-resources-responsible-gambling__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-resources-responsible-gambling__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-resources-responsible-gambling__faq-item.active .page-resources-responsible-gambling__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-resources-responsible-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources-responsible-gambling__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources-responsible-gambling__faq-question:active {
    background: #eeeeee;
}

.page-resources-responsible-gambling__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none;
}

.page-resources-responsible-gambling__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources-responsible-gambling__faq-item.active .page-resources-responsible-gambling__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-responsible-gambling__hero-container {
        padding: 30px 20px;
    }
    .page-resources-responsible-gambling__main-title {
        font-size: 2.8em;
    }
    .page-resources-responsible-gambling__subtitle {
        font-size: 1.3em;
    }
    .page-resources-responsible-gambling__container {
        padding: 30px;
    }
    .page-resources-responsible-gambling__heading {
        font-size: 2em;
    }
    .page-resources-responsible-gambling__sub-heading {
        font-size: 1.4em;
    }
    .page-resources-responsible-gambling__paragraph {
        font-size: 1em;
    }
    .page-resources-responsible-gambling__list-item {
        font-size: 1em;
    }
    .page-resources-responsible-gambling__image-wrapper {
        width: 35%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    /* Mobile specific padding-top for fixed header */
    .page-resources-responsible-gambling__hero-banner {
        padding-top: 100px !important; /* Adjust based on mobile header height */
        padding-bottom: 40px;
    }

    .page-resources-responsible-gambling__hero-container {
        padding: 20px 15px;
    }
    .page-resources-responsible-gambling__main-title {
        font-size: 2em;
        margin-bottom: 10px;
    }
    .page-resources-responsible-gambling__subtitle {
        font-size: 1.1em;
        margin-bottom: 20px;
    }
    .page-resources-responsible-gambling__section {
        padding: 40px 15px;
    }
    .page-resources-responsible-gambling__container {
        padding: 25px 20px;
    }
    .page-resources-responsible-gambling__heading {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-resources-responsible-gambling__sub-heading {
        font-size: 1.3em;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-resources-responsible-gambling__paragraph,
    .page-resources-responsible-gambling__list-item {
        font-size: 0.95em;
    }
    .page-resources-responsible-gambling__content-flex {
        flex-direction: column;
        gap: 30px;
    }
    .page-resources-responsible-gambling__content-flex--reverse {
        flex-direction: column;
    }
    .page-resources-responsible-gambling__text-content {
        order: 2; /* Text below image on mobile for normal flex */
    }
    .page-resources-responsible-gambling__content-flex--reverse .page-resources-responsible-gambling__text-content {
        order: 2; /* Text below image on mobile for reverse flex */
    }
    .page-resources-responsible-gambling__image-wrapper {
        width: 100%;
        max-width: 100%;
        order: 1; /* Image above text on mobile */
    }
    .page-resources-responsible-gambling__cta-button {
        width: 100%;
        max-width: 100%;
        font-size: 1em;
        padding: 12px 20px;
    }

    /* FAQ specific mobile styles */
    .page-resources-responsible-gambling__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-resources-responsible-gambling__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-resources-responsible-gambling__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-resources-responsible-gambling__faq-answer {
        padding: 0 15px;
    }
    
    .page-resources-responsible-gambling__faq-item.active .page-resources-responsible-gambling__faq-answer {
        padding: 15px !important;
    }

    /* Ensure all images and their containers are fully responsive */
    .page-resources-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-resources-responsible-gambling__section,
    .page-resources-responsible-gambling__container,
    .page-resources-responsible-gambling__hero-container,
    .page-resources-responsible-gambling__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-responsible-gambling__hero-banner {
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
    .page-resources-responsible-gambling__hero-container {
      padding-left: 15px !important;
      padding-right: 15px !important;
    }
}