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

/* Base styles for the page content */
.page-resources-online-gambling-safety-guide {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light backgrounds */
    line-height: 1.6;
    background-color: #f8f8f8; /* Light background for the overall page */
}

/* Header offset for main content */
.page-resources-online-gambling-safety-guide__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Hero Section */
.page-resources-online-gambling-safety-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #FFD700, #1A202C); /* Brand colors gradient */
    color: #ffffff; /* White text for dark background */
}

.page-resources-online-gambling-safety-guide__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px; /* Space between content and image */
}

.page-resources-online-gambling-safety-guide__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-resources-online-gambling-safety-guide__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
}

.page-resources-online-gambling-safety-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-online-gambling-safety-guide__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-resources-online-gambling-safety-guide__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-resources-online-gambling-safety-guide__cta-button--register {
    background: #FFD700;
    color: #1A202C; /* Dark text for gold background */
    border: 2px solid #FFD700;
}

.page-resources-online-gambling-safety-guide__cta-button--register:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-online-gambling-safety-guide__cta-button--login {
    background: #1A202C;
    color: #ffffff; /* White text for dark background */
    border: 2px solid #1A202C;
}

.page-resources-online-gambling-safety-guide__cta-button--login:hover {
    background: #0d1016;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-online-gambling-safety-guide__hero-image {
    width: 100%;
    margin-top: 30px;
}

.page-resources-online-gambling-safety-guide__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

/* General Content Sections */
.page-resources-online-gambling-safety-guide__content-section {
    padding: 60px 20px;
}

.page-resources-online-gambling-safety-guide__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-resources-online-gambling-safety-guide__section-title {
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
    color: #1A202C; /* Dark text for light backgrounds */
}

.page-resources-online-gambling-safety-guide__sub-section-title {
    font-size: 1.6em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1A202C; /* Dark text for light backgrounds */
    font-weight: 600;
}

.page-resources-online-gambling-safety-guide__paragraph {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #333333;
}

.page-resources-online-gambling-safety-guide__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: #333333;
}

.page-resources-online-gambling-safety-guide__ordered-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 20px;
    color: #333333;
}

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

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

.page-resources-online-gambling-safety-guide__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

/* Color contrast classes */
.page-resources-online-gambling-safety-guide__light-bg {
    background-color: #f8f8f8;
    color: #333333;
}

.page-resources-online-gambling-safety-guide__dark-bg {
    background-color: #1A202C;
    color: #ffffff;
}

.page-resources-online-gambling-safety-guide__dark-bg .page-resources-online-gambling-safety-guide__section-title,
.page-resources-online-gambling-safety-guide__dark-bg .page-resources-online-gambling-safety-guide__sub-section-title {
    color: #FFD700; /* Gold text on dark background */
}

.page-resources-online-gambling-safety-guide__dark-bg .page-resources-online-gambling-safety-guide__paragraph,
.page-resources-online-gambling-safety-guide__dark-bg .page-resources-online-gambling-safety-guide__list,
.page-resources-online-gambling-safety-guide__dark-bg .page-resources-online-gambling-safety-guide__list-item {
    color: #e0e0e0;
}

/* Call to Action Section */
.page-resources-online-gambling-safety-guide__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #1A202C; /* Dark background */
    color: #ffffff;
}

.page-resources-online-gambling-safety-guide__cta-container {
    max-width: 900px;
}

.page-resources-online-gambling-safety-guide__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold text */
}

.page-resources-online-gambling-safety-guide__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-resources-online-gambling-safety-guide__cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.page-resources-online-gambling-safety-guide__cta-button--primary {
    background: #FFD700;
    color: #1A202C;
    border: 2px solid #FFD700;
}

.page-resources-online-gambling-safety-guide__cta-button--primary:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-online-gambling-safety-guide__cta-button--secondary {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-resources-online-gambling-safety-guide__cta-button--secondary:hover {
    background: #FFD700;
    color: #1A202C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-resources-online-gambling-safety-guide__faq-section {
    padding: 60px 20px;
}

/* FAQ container style */
.page-resources-online-gambling-safety-guide__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #ffffff; /* Explicitly white background for FAQ items */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* FAQ default state - answer hidden */
.page-resources-online-gambling-safety-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    color: #333333;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height to ensure it expands */
.page-resources-online-gambling-safety-guide__faq-item.active .page-resources-online-gambling-safety-guide__faq-answer {
    max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough to accommodate any content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #333333;
}

/* Question style */
.page-resources-online-gambling-safety-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources-online-gambling-safety-guide__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources-online-gambling-safety-guide__faq-question:active {
    background: #eeeeee;
}

/* Question title style */
.page-resources-online-gambling-safety-guide__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 tag from blocking click events */
    color: #1A202C;
}

/* Toggle icon */
.page-resources-online-gambling-safety-guide__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources-online-gambling-safety-guide__faq-item.active .page-resources-online-gambling-safety-guide__faq-toggle {
    color: #FFD700; /* Gold color for active toggle */
    transform: rotate(45deg); /* Rotate for 'x' effect, or simply change text to '−' */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-online-gambling-safety-guide__hero-title {
        font-size: 2.2em;
    }
    .page-resources-online-gambling-safety-guide__hero-description {
        font-size: 1.1em;
    }
    .page-resources-online-gambling-safety-guide__section-title {
        font-size: 1.8em;
    }
    .page-resources-online-gambling-safety-guide__sub-section-title {
        font-size: 1.4em;
    }
    .page-resources-online-gambling-safety-guide__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-online-gambling-safety-guide {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-online-gambling-safety-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

    .page-resources-online-gambling-safety-guide__hero-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-resources-online-gambling-safety-guide__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-resources-online-gambling-safety-guide__hero-image {
        margin-top: 20px;
    }

    .page-resources-online-gambling-safety-guide__hero-image img,
    .page-resources-online-gambling-safety-guide__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
    }

    .page-resources-online-gambling-safety-guide__content-section,
    .page-resources-online-gambling-safety-guide__faq-section,
    .page-resources-online-gambling-safety-guide__cta-section {
        padding: 40px 15px;
    }

    .page-resources-online-gambling-safety-guide__container {
        padding-left: 0;
        padding-right: 0;
    }

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

    .page-resources-online-gambling-safety-guide__sub-section-title {
        font-size: 1.2em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
}