/* style/responsible-gaming.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #E0B14A;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f9f9f9;
    --background-dark: #0A2463;
    --accent-color: #f0c26b;
    --border-color: #e0e0e0;
}

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

.page-responsible-gaming .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-responsible-gaming h1, .page-responsible-gaming h2, .page-responsible-gaming h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-responsible-gaming h1 {
    font-size: 2.8em;
    text-align: center;
    color: var(--text-light);
}

.page-responsible-gaming h2 {
    font-size: 2.2em;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    position: relative;
}

.page-responsible-gaming h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0 auto;
}

.page-responsible-gaming h3 {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-top: 25px;
}

.page-responsible-gaming p {
    margin-bottom: 15px;
}

.page-responsible-gaming ul, .page-responsible-gaming ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.page-responsible-gaming li {
    margin-bottom: 8px;
}

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

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

/* Hero Section */
.page-responsible-gaming .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-responsible-gaming .hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-responsible-gaming .hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-responsible-gaming .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-responsible-gaming .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-responsible-gaming .hero-content p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-light);
}

.page-responsible-gaming .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-responsible-gaming .cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}

/* General Section Styling */
.page-responsible-gaming .intro-section, 
.page-responsible-gaming .features-section,
.page-responsible-gaming .identify-section,
.page-responsible-gaming .help-section,
.page-responsible-gaming .parents-section,
.page-responsible-gaming .commitment-section,
.page-responsible-gaming .faq-section,
.page-responsible-gaming .conclusion-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-responsible-gaming .intro-section p {
    max-width: 900px;
    margin: 0 auto 15px auto;
    text-align: center;
}

/* Features Section */
.page-responsible-gaming .features-section {
    background-color: #f0f4f8;
}

.page-responsible-gaming .feature-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;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gaming .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-responsible-gaming .feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
}

.page-responsible-gaming .feature-item h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-responsible-gaming .feature-item p {
    font-size: 0.95em;
    color: #555;
}

/* Identify Section */
.page-responsible-gaming .identify-section {
    background-color: var(--background-light);
}

.page-responsible-gaming .identify-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.page-responsible-gaming .identify-text, .page-responsible-gaming .identify-image {
    flex: 1;
    min-width: 300px;
}

.page-responsible-gaming .identify-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
}

.page-responsible-gaming .identify-section ol {
    list-style-type: decimal;
    margin-left: 20px;
    padding-left: 0;
}

.page-responsible-gaming .identify-section ol li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* Help Section */
.page-responsible-gaming .help-section {
    background-color: #f0f4f8;
}

.page-responsible-gaming .help-content {
    display: flex;
    flex-wrap: wrap-reverse; /* Image after text on mobile */
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.page-responsible-gaming .help-text, .page-responsible-gaming .help-image {
    flex: 1;
    min-width: 300px;
}

.page-responsible-gaming .help-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
}

/* Parents Section */
.page-responsible-gaming .parents-section {
    background-color: var(--background-light);
}

.page-responsible-gaming .parents-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.page-responsible-gaming .parents-text, .page-responsible-gaming .parents-image {
    flex: 1;
    min-width: 300px;
}

.page-responsible-gaming .parents-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
}

/* Commitment Section */
.page-responsible-gaming .commitment-section {
    background-color: #f0f4f8;
}

.page-responsible-gaming .commitment-section p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.page-responsible-gaming .commitment-section ul {
    max-width: 900px;
    margin: 20px auto;
    list-style-type: disc;
    text-align: left;
}

.page-responsible-gaming .commitment-section li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* FAQ Section */
.page-responsible-gaming .faq-section {
    background-color: var(--background-light);
}

.page-responsible-gaming .faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

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

.page-responsible-gaming .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #f9f9f9;
    border-top: 1px solid var(--border-color);
}

.page-responsible-gaming .faq-answer p {
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 0;
    color: #555;
}

.page-responsible-gaming .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 15px 25px;
}

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

.page-responsible-gaming .faq-answer ul {
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    list-style-type: disc;
}

.page-responsible-gaming .faq-answer li {
    margin-bottom: 5px;
    color: #555;
}

/* Conclusion Section */
.page-responsible-gaming .conclusion-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-responsible-gaming .conclusion-section p {
    max-width: 900px;
    margin: 0 auto 25px auto;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-responsible-gaming h1 {
        font-size: 2.4em;
    }
    .page-responsible-gaming h2 {
        font-size: 1.8em;
    }
    .page-responsible-gaming h3 {
        font-size: 1.4em;
    }
    .page-responsible-gaming .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-responsible-gaming .identify-content, .page-responsible-gaming .help-content, .page-responsible-gaming .parents-content {
        flex-direction: column;
        text-align: center;
    }
    .page-responsible-gaming .identify-text, .page-responsible-gaming .help-text, .page-responsible-gaming .parents-text {
        order: 2;
    }
    .page-responsible-gaming .identify-image, .page-responsible-gaming .help-image, .page-responsible-gaming .parents-image {
        order: 1;
        margin-bottom: 30px;
    }
    .page-responsible-gaming .help-content {
        flex-direction: column; /* Reset for help section to avoid reverse on tablet */
    }
    .page-responsible-gaming .help-text, .page-responsible-gaming .help-image {
        order: unset;
    }
    .page-responsible-gaming .help-text ul {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-responsible-gaming .hero-section {
        padding: 40px 15px;
    }
    .page-responsible-gaming .hero-image img {
        border-radius: 4px;
    }
    .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 30px;
        font-size: 16px;
    }
    .page-responsible-gaming .intro-section, 
    .page-responsible-gaming .features-section,
    .page-responsible-gaming .identify-section,
    .page-responsible-gaming .help-section,
    .page-responsible-gaming .parents-section,
    .page-responsible-gaming .commitment-section,
    .page-responsible-gaming .faq-section,
    .page-responsible-gaming .conclusion-section {
        padding: 40px 0;
    }
    .page-responsible-gaming h2 {
        font-size: 1.6em;
    }
    .page-responsible-gaming h3 {
        font-size: 1.2em;
    }
    .page-responsible-gaming .feature-item {
        padding: 20px;
    }
    .page-responsible-gaming .faq-question {
        padding: 15px 20px;
    }
    .page-responsible-gaming .faq-question h3 {
        font-size: 1.1em;
    }
    .page-responsible-gaming .faq-answer {
        padding: 0 20px;
    }
    .page-responsible-gaming .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-responsible-gaming h1 {
        font-size: 1.8em;
    }
    .page-responsible-gaming h2 {
        font-size: 1.4em;
    }
    .page-responsible-gaming .cta-button {
        font-size: 14px;
        padding: 10px 25px;
    }
    .page-responsible-gaming .feature-grid {
        grid-template-columns: 1fr;
    }
    .page-responsible-gaming .identify-text ul, .page-responsible-gaming .help-text ul, .page-responsible-gaming .commitment-section ul {
        padding-left: 15px;
    }
    .page-responsible-gaming .identify-section ol {
        margin-left: 10px;
    }
}