/* style/resources-online-gambling-safety-guide.css */

:root {
    --page-primary-color: #26A9E0;
    --page-secondary-color: #FFFFFF;
    --page-login-color: #EA7C07;
    --page-background-color: #FFFFFF;
    --page-text-dark: #333333;
    --page-text-light: #ffffff;
    --page-dark-bg-color: #121212; /* From shared.css body background */
}

.page-resources-online-gambling-safety-guide {
    color: var(--page-text-light); /* Body is dark, so text is light */
    background-color: var(--page-dark-bg-color); /* Inherit from body or set explicitly if main has different bg */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-resources-online-gambling-safety-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-resources-online-gambling-safety-guide__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: #121212;
    overflow: hidden;
}

.page-resources-online-gambling-safety-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Slightly dim the image for text readability */
}

.page-resources-online-gambling-safety-guide__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--page-text-light);
    max-width: 800px;
    padding: 20px;
}

.page-resources-online-gambling-safety-guide__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--page-secondary-color);
}

.page-resources-online-gambling-safety-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-resources-online-gambling-safety-guide__btn-primary {
    display: inline-block;
    background-color: var(--page-primary-color);
    color: var(--page-secondary-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
    border: 2px solid transparent;
}

.page-resources-online-gambling-safety-guide__btn-primary:hover {
    background-color: #1e87c0; /* Slightly darker primary color */
}

.page-resources-online-gambling-safety-guide__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-primary-color);
    padding-top: 40px;
}

.page-resources-online-gambling-safety-guide__intro-section, 
.page-resources-online-gambling-safety-guide__key-principles-section,
.page-resources-online-gambling-safety-guide__responsible-gambling-section,
.page-resources-online-gambling-safety-guide__tips-section,
.page-resources-online-gambling-safety-guide__faq-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    color: var(--page-text-light);
}

.page-resources-online-gambling-safety-guide__intro-section p,
.page-resources-online-gambling-safety-guide__responsible-gambling-section p,
.page-resources-online-gambling-safety-guide__tips-section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

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

.page-resources-online-gambling-safety-guide__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-resources-online-gambling-safety-guide__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-online-gambling-safety-guide__card-title {
    font-size: 1.5em;
    color: var(--page-primary-color);
    margin-bottom: 15px;
}

.page-resources-online-gambling-safety-guide__card p {
    color: rgba(255, 255, 255, 0.75);
}

.page-resources-online-gambling-safety-guide__platform-features-section {
    padding: 80px 0;
    background-color: var(--page-primary-color); /* Use primary color for section background */
    color: var(--page-text-light);
}

.page-resources-online-gambling-safety-guide__platform-features-section .page-resources-online-gambling-safety-guide__section-title {
    color: var(--page-secondary-color);
}

.page-resources-online-gambling-safety-guide__platform-features-section p {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.page-resources-online-gambling-safety-guide__feature-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    color: var(--page-text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources-online-gambling-safety-guide__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 5px;
}

.page-resources-online-gambling-safety-guide__feature-title {
    font-size: 1.4em;
    color: var(--page-secondary-color);
    margin-bottom: 10px;
}

.page-resources-online-gambling-safety-guide__feature-item p {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

.page-resources-online-gambling-safety-guide__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.page-resources-online-gambling-safety-guide__list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-resources-online-gambling-safety-guide__list li strong {
    color: var(--page-primary-color);
}

.page-resources-online-gambling-safety-guide__content-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources-online-gambling-safety-guide__faq-list {
    margin-top: 40px;
}

.page-resources-online-gambling-safety-guide__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.page-resources-online-gambling-safety-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-resources-online-gambling-safety-guide__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-online-gambling-safety-guide__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--page-primary-color);
}

.page-resources-online-gambling-safety-guide__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--page-secondary-color);
    transition: transform 0.3s ease;
}

.page-resources-online-gambling-safety-guide__faq-item.active .page-resources-online-gambling-safety-guide__faq-toggle {
    transform: rotate(45deg); /* Or change to '-' */
}

.page-resources-online-gambling-safety-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: rgba(255, 255, 255, 0.75);
}

.page-resources-online-gambling-safety-guide__faq-item.active .page-resources-online-gambling-safety-guide__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 15px 25px 20px;
}

.page-resources-online-gambling-safety-guide__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #0d0d0d; /* Darker background for CTA */
    color: var(--page-text-light);
}

.page-resources-online-gambling-safety-guide__cta-section .page-resources-online-gambling-safety-guide__section-title {
    color: var(--page-secondary-color);
}

.page-resources-online-gambling-safety-guide__cta-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.page-resources-online-gambling-safety-guide a {
    color: var(--page-primary-color);
    text-decoration: none;
}

.page-resources-online-gambling-safety-guide a:hover {
    text-decoration: underline;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-resources-online-gambling-safety-guide__hero-title {
        font-size: 2.8em;
    }
    .page-resources-online-gambling-safety-guide__hero-description {
        font-size: 1em;
    }
    .page-resources-online-gambling-safety-guide__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-online-gambling-safety-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 400px;
    }
    .page-resources-online-gambling-safety-guide__hero-title {
        font-size: 2.2em;
    }
    .page-resources-online-gambling-safety-guide__hero-description {
        font-size: 0.9em;
    }
    .page-resources-online-gambling-safety-guide__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-online-gambling-safety-guide__container {
        padding: 0 15px;
    }

    .page-resources-online-gambling-safety-guide__intro-section, 
    .page-resources-online-gambling-safety-guide__key-principles-section,
    .page-resources-online-gambling-safety-guide__platform-features-section,
    .page-resources-online-gambling-safety-guide__responsible-gambling-section,
    .page-resources-online-gambling-safety-guide__tips-section,
    .page-resources-online-gambling-safety-guide__faq-section,
    .page-resources-online-gambling-safety-guide__cta-section {
        padding: 40px 0;
    }

    .page-resources-online-gambling-safety-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources-online-gambling-safety-guide__grid {
        grid-template-columns: 1fr;
    }

    .page-resources-online-gambling-safety-guide__card,
    .page-resources-online-gambling-safety-guide__feature-item {
        padding: 25px;
    }

    .page-resources-online-gambling-safety-guide__card-title {
        font-size: 1.3em;
    }

    .page-resources-online-gambling-safety-guide__feature-title {
        font-size: 1.2em;
    }

    .page-resources-online-gambling-safety-guide__faq-question h3 {
        font-size: 1.1em;
    }

    .page-resources-online-gambling-safety-guide img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-online-gambling-safety-guide__section,
    .page-resources-online-gambling-safety-guide__card,
    .page-resources-online-gambling-safety-guide__container,
    .page-resources-online-gambling-safety-guide__cta-section .page-resources-online-gambling-safety-guide__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources-online-gambling-safety-guide__hero-title {
        font-size: 1.8em;
    }
    .page-resources-online-gambling-safety-guide__section-title {
        font-size: 1.5em;
    }
    .page-resources-online-gambling-safety-guide__btn-primary {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Ensure all content area images are at least 200px wide for desktop */
.page-resources-online-gambling-safety-guide__content-image, 
.page-resources-online-gambling-safety-guide__feature-icon {
    min-width: 200px;
    min-height: 200px;
}

/* Contrast fixes for specific elements if needed */
.page-resources-online-gambling-safety-guide__dark-bg {
  background: #26A9E0;
  color: #ffffff; /* Forced white text */
}