/* style/responsible-gaming.css */

.page-responsible-gaming {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-responsible-gaming__hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding: 0; /* Content padding handled by inner container */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero section */
}

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

.page-responsible-gaming__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 60px 30px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-responsible-gaming__hero-title {
    font-size: 3.2em;
    color: #FFD700; /* Gold accent */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-responsible-gaming__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-responsible-gaming__hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-responsible-gaming__button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
}

.page-responsible-gaming__button--primary {
    background-color: #FFD700; /* Gold accent */
    color: #000000; /* Black text on gold */
}

.page-responsible-gaming__button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-responsible-gaming__button--secondary {
    background-color: #000000; /* Main dark color */
    color: #FFD700; /* Gold text on dark */
    border: 2px solid #FFD700;
}

.page-responsible-gaming__button--secondary:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
}

.page-responsible-gaming__section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background for sections */
}

.page-responsible-gaming__section--understanding {
    background-color: #0a0a0a; /* Slightly darker for contrast */
}

.page-responsible-gaming__section-title {
    font-size: 2.8em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.page-responsible-gaming__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #DC143C; /* Accent red for emphasis */
    border-radius: 2px;
}

.page-responsible-gaming__sub-title {
    font-size: 2em;
    color: #FFD700;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.page-responsible-gaming__text {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    text-align: justify;
}

.page-responsible-gaming__text--note {
    font-style: italic;
    text-align: center;
    margin-top: 40px;
    color: #bbb;
}

.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-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent card background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-responsible-gaming__feature-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-responsible-gaming__feature-icon {
    width: 200px; /* Min size for images */
    height: 150px; /* Min size for images */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-responsible-gaming__feature-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-responsible-gaming__feature-description {
    font-size: 1em;
    color: #ccc;
}

.page-responsible-gaming__tool-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #DC143C; /* Red accent on left */
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-responsible-gaming__tool-title {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-responsible-gaming__tool-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

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

.page-responsible-gaming__resource-card {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(220, 20, 60, 0.3); /* Red border */
}

.page-responsible-gaming__resource-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-responsible-gaming__resource-title {
    font-size: 1.8em;
    color: #DC143C; /* Red accent */
    margin-bottom: 15px;
}

.page-responsible-gaming__resource-description {
    font-size: 1em;
    color: #ccc;
}

.page-responsible-gaming__action-center {
    text-align: center;
    margin-top: 60px;
}

.page-responsible-gaming__minor-protection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-responsible-gaming__protection-item {
    background-color: rgba(255, 215, 0, 0.1); /* Light gold background */
    border-radius: 10px;
    padding: 25px;
    max-width: 45%;
    flex-grow: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-responsible-gaming__protection-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-responsible-gaming__protection-description {
    font-size: 1em;
    color: #ccc;
}

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

.page-responsible-gaming__security-card {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-responsible-gaming__security-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-responsible-gaming__security-title {
    font-size: 1.8em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.page-responsible-gaming__security-description {
    font-size: 1em;
    color: #ccc;
}

.page-responsible-gaming__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-responsible-gaming__faq-question {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-responsible-gaming__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-responsible-gaming__faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-responsible-gaming__faq-answer {
    font-size: 1.1em;
    color: #ccc;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    padding-top: 0;
}

.page-responsible-gaming__faq-answer.active {
    max-height: 300px; /* Adjust as needed for content length */
    opacity: 1;
    padding-top: 15px;
}

/* Floating Buttons */
.page-responsible-gaming__floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.page-responsible-gaming__floating-button {
    display: block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.page-responsible-gaming__floating-button--register {
    background-color: #FFD700;
    color: #000000;
}

.page-responsible-gaming__floating-button--register:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-responsible-gaming__floating-button--login {
    background-color: #DC143C; /* Red accent */
    color: #ffffff;
}

.page-responsible-gaming__floating-button--login:hover {
    background-color: #c11234;
    transform: translateY(-3px);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-responsible-gaming__hero-title {
        font-size: 2.8em;
    }
    .page-responsible-gaming__section-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-responsible-gaming {
        padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    }

    /* Important: Content area images must be responsive and not cause overflow */
    .page-responsible-gaming img {
        max-width: 100%;
        height: auto;
    }

    .page-responsible-gaming__hero-content {
        padding: 40px 20px;
    }

    .page-responsible-gaming__hero-title {
        font-size: 2.2em;
    }

    .page-responsible-gaming__hero-description {
        font-size: 1em;
    }

    .page-responsible-gaming__hero-actions {
        flex-direction: column;
    }

    .page-responsible-gaming__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-responsible-gaming__section {
        padding: 60px 0;
    }

    .page-responsible-gaming__section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .page-responsible-gaming__sub-title {
        font-size: 1.8em;
    }

    .page-responsible-gaming__feature-grid,
    .page-responsible-gaming__help-resources,
    .page-responsible-gaming__security-features {
        grid-template-columns: 1fr;
    }

    .page-responsible-gaming__protection-item {
        max-width: 100%;
    }

    .page-responsible-gaming__floating-buttons {
        flex-direction: row;
        width: calc(100% - 40px);
        bottom: 10px;
        right: 20px;
        left: 20px;
        justify-content: space-around;
        gap: 10px;
    }

    .page-responsible-gaming__floating-button {
        flex: 1;
        padding: 10px 15px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-responsible-gaming__hero-title {
        font-size: 1.8em;
    }
    .page-responsible-gaming__section-title {
        font-size: 1.6em;
    }
    .page-responsible-gaming__tool-title,
    .page-responsible-gaming__resource-title,
    .page-responsible-gaming__feature-title,
    .page-responsible-gaming__security-title {
        font-size: 1.5em;
    }
    .page-responsible-gaming__faq-question {
        font-size: 1.2em;
    }
}

/* Ensure content area images are at least 200px wide/high */
/* This rule applies to any img within .page-responsible-gaming, regardless of class */
.page-responsible-gaming img:not(.page-responsible-gaming__hero-image) { /* Exclude hero image as it's full width by design */
    min-width: 200px;
    min- /* Adjust min-height as needed for aspect ratio */
}

/* Override for specific card images to ensure they are not too small */
.page-responsible-gaming__feature-icon,
.page-responsible-gaming__resource-image,
.page-responsible-gaming__security-image {
    width: 200px; /* Explicitly set to min 200px */
    height: 150px; /* Explicitly set to min 150px, maintains ratio for 4:3 or similar */
    object-fit: cover;
}

/* Ensure images within cards are not scaled down by media queries to less than 200px */
@media (max-width: 768px) {
    .page-responsible-gaming__feature-icon,
    .page-responsible-gaming__resource-image,
    .page-responsible-gaming__security-image {
        width: 100%; /* Allow to scale up to 100% of parent container */
        min-width: 200px; /* Maintain minimum width */
        height: auto;
        min-height: 150px; /* Maintain minimum height */
    }
}