/* style/resources-e88-safe-gambling-guide.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --background-color: #121212; /* From shared.css body background */
    --text-light: #ffffff;
    --text-dark: #333333;
    --register-button-bg: #C30808;
    --login-button-bg: #C30808;
    --button-font-color: #FFFF00;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.08);
    --card-bg-light-mode: #ffffff;
    --border-color: #e0e0e0;
}

.page-resources-e88-safe-gambling-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for the page content, considering body is dark */
    background-color: var(--background-color); /* Ensure consistency with body background from shared.css */
}

.page-resources-e88-safe-gambling-guide__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
}

.page-resources-e88-safe-gambling-guide__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources-e88-safe-gambling-guide__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-resources-e88-safe-gambling-guide__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.page-resources-e88-safe-gambling-guide__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-resources-e88-safe-gambling-guide__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 10px;
}

.page-resources-e88-safe-gambling-guide__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

.page-resources-e88-safe-gambling-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-resources-e88-safe-gambling-guide__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-resources-e88-safe-gambling-guide__btn-primary,
.page-resources-e88-safe-gambling-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources-e88-safe-gambling-guide__btn-primary {
    background-color: var(--register-button-bg);
    color: var(--button-font-color);
    border: 2px solid var(--register-button-bg);
}

.page-resources-e88-safe-gambling-guide__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-resources-e88-safe-gambling-guide__btn-secondary {
    background-color: transparent;
    color: var(--button-font-color);
    border: 2px solid var(--button-font-color);
}

.page-resources-e88-safe-gambling-guide__btn-secondary:hover {
    background-color: var(--button-font-color);
    color: var(--register-button-bg);
}

.page-resources-e88-safe-gambling-guide__content-section {
    padding: 60px 20px;
}

.page-resources-e88-safe-gambling-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-resources-e88-safe-gambling-guide__section-title {
    font-size: 2.5em;
    color: inherit; /* Inherit from section for contrast */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources-e88-safe-gambling-guide__subsection-title {
    font-size: 1.8em;
    color: inherit; /* Inherit from section for contrast */
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-resources-e88-safe-gambling-guide__paragraph {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: inherit; /* Inherit from section for contrast */
}

.page-resources-e88-safe-gambling-guide__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-resources-e88-safe-gambling-guide__card {
    background-color: var(--card-bg-dark-mode);
    color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-resources-e88-safe-gambling-guide__card:hover {
    transform: translateY(-5px);
}

.page-resources-e88-safe-gambling-guide__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-resources-e88-safe-gambling-guide__card-description {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-light);
}

.page-resources-e88-safe-gambling-guide__faq-section {
    padding: 60px 20px;
}

.page-resources-e88-safe-gambling-guide__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-resources-e88-safe-gambling-guide__faq-item {
    background-color: var(--card-bg-light-mode);
    color: var(--text-dark);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-resources-e88-safe-gambling-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    background-color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

.page-resources-e88-safe-gambling-guide__faq-question:hover {
    background-color: #f0f0f0;
}

.page-resources-e88-safe-gambling-guide__faq-title {
    margin: 0;
    color: var(--text-dark);
}

.page-resources-e88-safe-gambling-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.page-resources-e88-safe-gambling-guide__faq-item.active .page-resources-e88-safe-gambling-guide__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-e88-safe-gambling-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
    color: var(--text-dark);
}

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

.page-resources-e88-safe-gambling-guide__cta-bottom-section {
    padding: 80px 20px;
    text-align: center;
}

.page-resources-e88-safe-gambling-guide__cta-content {
    max-width: 800px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources-e88-safe-gambling-guide__hero-title {
        font-size: 2.8em;
    }
    .page-resources-e88-safe-gambling-guide__section-title {
        font-size: 2em;
    }
    .page-resources-e88-safe-gambling-guide__subsection-title {
        font-size: 1.6em;
    }
    .page-resources-e88-safe-gambling-guide__paragraph {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-resources-e88-safe-gambling-guide {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources-e88-safe-gambling-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 400px;
    }
    .page-resources-e88-safe-gambling-guide__hero-title {
        font-size: 2em;
    }
    .page-resources-e88-safe-gambling-guide__hero-description {
        font-size: 1em;
    }
    .page-resources-e88-safe-gambling-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-e88-safe-gambling-guide__btn-primary,
    .page-resources-e88-safe-gambling-guide__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }
    .page-resources-e88-safe-gambling-guide__content-section,
    .page-resources-e88-safe-gambling-guide__faq-section,
    .page-resources-e88-safe-gambling-guide__cta-bottom-section {
        padding: 40px 15px;
    }
    .page-resources-e88-safe-gambling-guide__container {
        padding: 0;
    }
    .page-resources-e88-safe-gambling-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources-e88-safe-gambling-guide__subsection-title {
        font-size: 1.4em;
    }
    .page-resources-e88-safe-gambling-guide__grid-layout {
        grid-template-columns: 1fr;
    }
    .page-resources-e88-safe-gambling-guide__card {
        padding: 25px;
    }
    .page-resources-e88-safe-gambling-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-e88-safe-gambling-guide__hero-image-wrapper,
    .page-resources-e88-safe-gambling-guide__content-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-resources-e88-safe-gambling-guide__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-resources-e88-safe-gambling-guide__faq-answer {
        padding: 10px 20px !important;
    }
}

@media (max-width: 480px) {
    .page-resources-e88-safe-gambling-guide__hero-title {
        font-size: 1.6em;
    }
    .page-resources-e88-safe-gambling-guide__hero-description {
        font-size: 0.9em;
    }
    .page-resources-e88-safe-gambling-guide__section-title {
        font-size: 1.5em;
    }
    .page-resources-e88-safe-gambling-guide__subsection-title {
        font-size: 1.2em;
    }
}