/* style/responsible-gaming.css */
:root {
    --primary-color: #0047AB; /* Deep Blue */
    --secondary-color: #FFD700; /* Gold */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f4f7f6;
    --background-dark: #1a1a1a;
    --border-color: #e0e0e0;
}

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

.page-responsible-gaming__hero-banner {
    position: relative;
    width: 100%;
    min-height: 400px; /* Minimum height for visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
    overflow: hidden;
    padding: 60px 20px;
}

.page-responsible-gaming__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-responsible-gaming__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 71, 171, 0.8), rgba(255, 215, 0, 0.4)); /* Blend primary and secondary */
    z-index: 1;
}

.page-responsible-gaming__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

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

.page-responsible-gaming__hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-responsible-gaming__cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-responsible-gaming__cta-button:hover {
    background-color: #e6c200; /* Slightly darker gold */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-responsible-gaming__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.page-responsible-gaming__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-responsible-gaming__section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

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

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

.page-responsible-gaming__section p {
    font-size: 1.05em;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-responsible-gaming__section ul {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

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

.page-responsible-gaming__image-content {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

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

.page-responsible-gaming__feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gaming__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-responsible-gaming__feature-item h3 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-bottom: 15px;
}

.page-responsible-gaming__feature-item p {
    font-size: 1em;
    color: var(--text-color-dark);
}

.page-responsible-gaming__image-feature {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-responsible-gaming__call-to-action {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-align: center;
    padding: 80px 20px;
}

.page-responsible-gaming__call-to-action h2 {
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.page-responsible-gaming__call-to-action h2::after {
    background-color: var(--text-color-light);
}

.page-responsible-gaming__call-to-action p {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gaming__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-responsible-gaming__cta-button--primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-responsible-gaming__cta-button--primary:hover {
    background-color: #e6c200;
}

.page-responsible-gaming__cta-button--secondary {
    background-color: var(--text-color-light);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-responsible-gaming__cta-button--secondary:hover {
    background-color: #e0e0e0;
    border-color: #e6c200;
}

/* FAQ Styles */
.page-responsible-gaming__faq {
    background-color: var(--background-light);
}

.faq-list {
    margin-top: 30px;
}

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

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

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.15em;
    color: var(--primary-color);
    flex-grow: 1;
    text-align: left;
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #f9f9f9;
    color: var(--text-color-dark);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
}

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

@media (max-width: 768px) {
    .page-responsible-gaming__hero-banner {
        min-height: 350px;
        padding: 40px 15px;
    }
    .page-responsible-gaming__hero-content h1 {
        font-size: 2em;
    }
    .page-responsible-gaming__hero-content p {
        font-size: 1em;
    }
    .page-responsible-gaming__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-responsible-gaming__section {
        padding: 40px 0;
    }
    .page-responsible-gaming__section h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-responsible-gaming__section h2::after {
        bottom: -10px;
    }
    .page-responsible-gaming__section h3 {
        font-size: 1.3em;
    }
    .page-responsible-gaming__container {
        padding: 0 15px;
    }
    .page-responsible-gaming__feature-item {
        padding: 25px;
    }
    .page-responsible-gaming__image-feature {
        height: 180px;
    }
    .page-responsible-gaming__call-to-action {
        padding: 60px 15px;
    }
    .page-responsible-gaming__call-to-action p {
        font-size: 1em;
    }
    .page-responsible-gaming__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-responsible-gaming__hero-banner {
        min-height: 300px;
        padding: 30px 10px;
    }
    .page-responsible-gaming__hero-content h1 {
        font-size: 1.8em;
    }
    .page-responsible-gaming__hero-content p {
        font-size: 0.9em;
    }
    .page-responsible-gaming__section h2 {
        font-size: 1.6em;
    }
    .page-responsible-gaming__section h3 {
        font-size: 1.2em;
    }
    .page-responsible-gaming__image-feature {
        height: 150px;
    }
}