.page-resources-online-gambling-safety-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for default (light) body background */
    background-color: #f5f5f5; /* Light background for the main content area for better contrast */
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
}

.page-resources-online-gambling-safety-guide__hero-section {
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    text-align: center;
    color: #ffffff; /* White text on hero image */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.page-resources-online-gambling-safety-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-resources-online-gambling-safety-guide__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-resources-online-gambling-safety-guide__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources-online-gambling-safety-guide__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for main title */
    font-weight: bold;
    line-height: 1.2;
}

.page-resources-online-gambling-safety-guide__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources-online-gambling-safety-guide__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-resources-online-gambling-safety-guide__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-resources-online-gambling-safety-guide__cta-button--primary {
    background-color: #FFD700; /* Gold */
    color: #8B0000; /* Deep Red */
    border: 2px solid #FFD700;
}

.page-resources-online-gambling-safety-guide__cta-button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-resources-online-gambling-safety-guide__cta-button--secondary {
    background-color: #8B0000; /* Deep Red */
    color: #FFD700; /* Gold */
    border: 2px solid #8B0000;
}

.page-resources-online-gambling-safety-guide__cta-button--secondary:hover {
    background-color: #6a0000;
    transform: translateY(-2px);
}

.page-resources-online-gambling-safety-guide__content-area {
    max-width: 800px; /* Content width for readability */
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff; /* White background for article content */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources-online-gambling-safety-guide__section-title {
    font-size: 2.2em;
    color: #8B0000; /* Deep Red */
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid #FFD700; /* Gold accent */
    padding-bottom: 10px;
}

.page-resources-online-gambling-safety-guide__subsection-title {
    font-size: 1.8em;
    color: #FFD700; /* Gold */
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 5px solid #8B0000; /* Deep Red accent */
    padding-left: 10px;
}

.page-resources-online-gambling-safety-guide__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-resources-online-gambling-safety-guide__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-resources-online-gambling-safety-guide__image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-resources-online-gambling-safety-guide__inline-link {
    color: #8B0000; /* Deep Red for inline links */
    text-decoration: underline;
    font-weight: bold;
}

.page-resources-online-gambling-safety-guide__inline-link:hover {
    color: #FFD700; /* Gold on hover */
    text-decoration: none;
}

.page-resources-online-gambling-safety-guide__final-cta {
    margin-top: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-resources-online-gambling-safety-guide__footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    background-color: #333333; /* Dark footer background */
    color: #f0f0f0;
    border-top: 3px solid #FFD700; /* Gold accent */
}

.page-resources-online-gambling-safety-guide__copyright {
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-resources-online-gambling-safety-guide__hero-title {
        font-size: 2.2em;
    }

    .page-resources-online-gambling-safety-guide__hero-description {
        font-size: 1em;
    }

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

    .page-resources-online-gambling-safety-guide__subsection-title {
        font-size: 1.5em;
    }

    .page-resources-online-gambling-safety-guide__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-resources-online-gambling-safety-guide__hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .page-resources-online-gambling-safety-guide__content-area {
        margin: 20px auto;
        padding: 15px;
    }

    /* Ensure images are responsive and do not overflow */
    .page-resources-online-gambling-safety-guide__hero-image img,
    .page-resources-online-gambling-safety-guide__image-wrapper img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-resources-online-gambling-safety-guide__hero-title {
        font-size: 1.8em;
    }

    .page-resources-online-gambling-safety-guide__hero-description {
        font-size: 0.9em;
    }

    .page-resources-online-gambling-safety-guide__section-title {
        font-size: 1.5em;
    }

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

    .page-resources-online-gambling-safety-guide__cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}