/* style/resources-responsible-gaming.css */

/* Variables based on intelligent color pairing */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1A1A1A; /* Dark Black */
    --text-light: #F0F0F0; /* Light text for dark backgrounds */
    --text-dark: #333333; /* Dark text for light backgrounds */
    --background-dark: #1A1A1A; /* Main dark background */
    --background-light: #FFFFFF; /* Main light background */
    --card-background: #2A2A2A; /* Slightly lighter dark for cards */
    --border-color: #444444; /* Border for dark elements */
    --button-hover-bg: #E0B300; /* Darker gold for hover */
}

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

.page-resources-responsible-gaming__hero-banner {
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #000; /* Fallback */
}

.page-resources-responsible-gaming__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 30px; /* Space between content and image on mobile/stacked */
}

.page-resources-responsible-gaming__hero-content h1 {
    font-size: 3.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-responsible-gaming__hero-content p {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 30px;
}

.page-resources-responsible-gaming__hero-image {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    position: relative;
    z-index: 1;
}

.page-resources-responsible-gaming__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    min-height: 250px; /* Ensure minimum height for content image */
}

.page-resources-responsible-gaming__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-resources-responsible-gaming__cta-button:hover {
    background: var(--button-hover-bg);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.page-resources-responsible-gaming__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--background-dark);
    border-bottom: 1px solid var(--border-color);
}

.page-resources-responsible-gaming__section:last-of-type {
    border-bottom: none;
}

.page-resources-responsible-gaming__section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.page-resources-responsible-gaming__section h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources-responsible-gaming__section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-resources-responsible-gaming__section ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-resources-responsible-gaming__section ul li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-resources-responsible-gaming__section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-responsible-gaming__section a:hover {
    color: var(--button-hover-bg);
    text-decoration: underline;
}

.page-resources-responsible-gaming__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-resources-responsible-gaming__card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-resources-responsible-gaming__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources-responsible-gaming__card img {
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Remove extra space below image */
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce min size */
}

.page-resources-responsible-gaming__card h3 {
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-resources-responsible-gaming__card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources-responsible-gaming__card h3 a:hover {
    color: var(--button-hover-bg);
    text-decoration: underline;
}

.page-resources-responsible-gaming__card p {
    font-size: 1em;
    color: var(--text-light);
}

.page-resources-responsible-gaming__image-full-width {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min size */
    min-height: 200px;
}

/* FAQ styles */
.page-resources-responsible-gaming__faq-container {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: var(--card-background);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #3A3A3A; /* Slightly lighter hover for dark background */
}

.faq-question h3 {
    margin: 0;
    font-size: 1.25em;
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    line-height: 1; /* Adjust line-height to center the +/- */
    width: 24px; /* Fixed width to prevent jump */
    text-align: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Add padding transition */
    padding: 0 25px;
    background-color: #222222; /* Darker background for answer */
    color: var(--text-light);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 25px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources-responsible-gaming__hero-content h1 {
        font-size: 2.5em;
    }
    .page-resources-responsible-gaming__hero-content p {
        font-size: 1.1em;
    }
    .page-resources-responsible-gaming__section h2 {
        font-size: 2em;
    }
    .page-resources-responsible-gaming__section h3 {
        font-size: 1.6em;
    }
    .page-resources-responsible-gaming__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources-responsible-gaming__hero-banner {
        flex-direction: column;
        padding: 60px 15px;
    }
    .page-resources-responsible-gaming__hero-content {
        margin-bottom: 20px;
    }
    .page-resources-responsible-gaming__hero-content h1 {
        font-size: 2em;
    }
    .page-resources-responsible-gaming__hero-content p {
        font-size: 1em;
    }
    .page-resources-responsible-gaming__cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-resources-responsible-gaming__section {
        padding: 40px 15px;
    }
    .page-resources-responsible-gaming__section h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources-responsible-gaming__section h3 {
        font-size: 1.4em;
    }
    .page-resources-responsible-gaming__section ul {
        margin-left: 20px;
    }
    .page-resources-responsible-gaming__card {
        padding: 20px;
    }
    .page-resources-responsible-gaming__card img {
        height: 200px;
    }
    .page-resources-responsible-gaming__card h3 {
        font-size: 1.4em;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-resources-responsible-gaming__hero-content h1 {
        font-size: 1.8em;
    }
    .page-resources-responsible-gaming__section h2 {
        font-size: 1.6em;
    }
    .page-resources-responsible-gaming__grid {
        grid-template-columns: 1fr;
    }
    .faq-question h3 {
        font-size: 1em;
    }
}