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

/* Base styling for the responsible gaming tools page */
.page-responsible-gaming-tools {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* A very light background to ensure contrast */
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Hero Section */
.page-responsible-gaming-tools__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    background-color: #004aad; /* Primary color background for hero */
    color: #ffffff; /* White text for dark background */
}

.page-responsible-gaming-tools__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3; /* Subtle background image */
}

.page-responsible-gaming-tools__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7); /* Darken image slightly */
}

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

.page-responsible-gaming-tools__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffcc00; /* Auxiliary color for emphasis */
    font-weight: bold;
}

.page-responsible-gaming-tools__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-responsible-gaming-tools__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Section Styling */
.page-responsible-gaming-tools__section {
    padding: 60px 20px;
}

.page-responsible-gaming-tools__section--intro {
    background-color: #ffffff;
}

.page-responsible-gaming-tools__section--commitment {
    background-color: #f0f5fa; /* Light blue tint */
}

.page-responsible-gaming-tools__section--tools {
    background-color: #ffffff;
}

.page-responsible-gaming-tools__section--recognize {
    background-color: #fdf5e6; /* Light golden tint */
}

.page-responsible-gaming-tools__section--help {
    background-color: #ffffff;
}

.page-responsible-gaming-tools__section--minor-protection {
    background-color: #f0f5fa;
}

.page-responsible-gaming-tools__section--fair-security {
    background-color: #ffffff;
}

.page-responsible-gaming-tools__section--best-practices {
    background-color: #fdf5e6;
}

.page-responsible-gaming-tools__section--faq {
    background-color: #f0f5fa;
}

.page-responsible-gaming-tools__section--cta {
    background-color: #004aad;
    color: #ffffff;
    text-align: center;
}

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

.page-responsible-gaming-tools__section-title {
    font-size: 2.5em;
    color: #004aad; /* Primary color for section titles */
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-responsible-gaming-tools__section--cta .page-responsible-gaming-tools__section-title {
    color: #ffcc00; /* Auxiliary color for CTA title */
}

.page-responsible-gaming-tools__sub-section-title {
    font-size: 1.8em;
    color: #004aad;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
    font-weight: bold;
}

.page-responsible-gaming-tools__text {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Buttons */
.page-responsible-gaming-tools__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    text-align: center;
}

.page-responsible-gaming-tools__button--primary {
    background-color: #ffcc00; /* Auxiliary color */
    color: #004aad; /* Primary color text */
    border: 2px solid #ffcc00;
}

.page-responsible-gaming-tools__button--primary:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    transform: translateY(-2px);
}

.page-responsible-gaming-tools__button--secondary {
    background-color: transparent;
    color: #ffcc00; /* Auxiliary color */
    border: 2px solid #ffcc00;
}

.page-responsible-gaming-tools__button--secondary:hover {
    background-color: #ffcc00;
    color: #004aad;
    transform: translateY(-2px);
}

.page-responsible-gaming-tools__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: 15px;
}

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

.page-responsible-gaming-tools__tool-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gaming-tools__tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-responsible-gaming-tools__tool-icon {
    width: 250px; /* Enforce min 200px image size */
    height: 187px; /* Maintain aspect ratio (4:3 for 800x600) */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.page-responsible-gaming-tools__tool-card-title {
    font-size: 1.5em;
    color: #004aad;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-responsible-gaming-tools__tool-card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take available space */
}

/* Lists */
.page-responsible-gaming-tools__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-responsible-gaming-tools__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1em;
    text-align: justify;
}

.page-responsible-gaming-tools__list-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: #ffcc00;
    font-size: 1.2em;
    top: 0;
}

.page-responsible-gaming-tools__list--external .page-responsible-gaming-tools__list-item::before {
    content: '🔗'; /* Link icon for external resources */
    color: #004aad;
}

/* Full width image for content sections */
.page-responsible-gaming-tools__image--full-width {
    width: 100%;
    height: auto;
    max-width: 800px; /* Constrain max width for readability */
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
    object-fit: cover;
}

/* FAQ Section */
.page-responsible-gaming-tools__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-responsible-gaming-tools__faq-question {
    font-size: 1.3em;
    color: #004aad;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-responsible-gaming-tools__faq-answer {
    font-size: 1em;
    color: #555555;
    text-align: justify;
}

/* Call to Action Section */
.page-responsible-gaming-tools__cta-content {
    padding: 40px 20px;
}

.page-responsible-gaming-tools__cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-responsible-gaming-tools__hero-title {
        font-size: 2.5em;
    }
    .page-responsible-gaming-tools__section-title {
        font-size: 2em;
    }
    .page-responsible-gaming-tools__sub-section-title {
        font-size: 1.5em;
    }
    .page-responsible-gaming-tools__tool-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-responsible-gaming-tools__hero-section {
        padding: 60px 15px;
    }
    .page-responsible-gaming-tools__hero-title {
        font-size: 2em;
    }
    .page-responsible-gaming-tools__hero-description {
        font-size: 1em;
    }
    .page-responsible-gaming-tools__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-responsible-gaming-tools__button {
        width: 100%;
        max-width: 300px; /* Limit button width on mobile */
    }
    .page-responsible-gaming-tools__section {
        padding: 40px 15px;
    }
    .page-responsible-gaming-tools__section-title {
        font-size: 1.8em;
    }
    .page-responsible-gaming-tools__sub-section-title {
        font-size: 1.3em;
    }
    .page-responsible-gaming-tools__text,
    .page-responsible-gaming-tools__list-item,
    .page-responsible-gaming-tools__faq-answer {
        font-size: 0.95em;
    }
    .page-responsible-gaming-tools__tool-card {
        padding: 20px;
    }
    .page-responsible-gaming-tools__tool-icon {
        width: 200px; /* Ensure min 200px on mobile */
        height: 150px;
    }
    .page-responsible-gaming-tools__image--full-width {
        max-width: 100%; /* Ensure content images don't overflow */
        height: auto;
        min-width: 200px;
        min-height: 150px;
    }
    /* Ensure all content images in .page-responsible-gaming-tools are responsive and don't overflow */
    .page-responsible-gaming-tools img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-responsible-gaming-tools__hero-title {
        font-size: 1.8em;
    }
    .page-responsible-gaming-tools__section-title {
        font-size: 1.6em;
    }
    .page-responsible-gaming-tools__tool-grid {
        grid-template-columns: 1fr;
    }
}