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

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-bg-color: #1a1a2e;
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --button-login-color: #EA7C07;
    --default-bg-color: #FFFFFF;
}

.page-resources-online-gambling-safety {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--light-text-color); /* Default text color for dark body background */
    background-color: var(--dark-bg-color); /* Inherit from body, but explicitly state for clarity */
}

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

/* Hero Section */
.page-resources-online-gambling-safety__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    min-height: 500px;
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-resources-online-gambling-safety__hero-section .page-resources-online-gambling-safety__container {
    position: relative;
    z-index: 2;
}

.page-resources-online-gambling-safety__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

.page-resources-online-gambling-safety__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--light-text-color);
}

.page-resources-online-gambling-safety__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styling */
.page-resources-online-gambling-safety__content-section,
.page-resources-online-gambling-safety__principles-section,
.page-resources-online-gambling-safety__tips-section,
.page-resources-online-gambling-safety__security-measures,
.page-resources-online-gambling-safety__faq-section,
.page-resources-online-gambling-safety__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-resources-online-gambling-safety__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources-online-gambling-safety__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: left;
}

.page-resources-online-gambling-safety__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Background colors for sections */
.page-resources-online-gambling-safety__dark-bg {
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
}

.page-resources-online-gambling-safety__light-bg {
    background-color: var(--default-bg-color);
    color: var(--dark-text-color);
}

.page-resources-online-gambling-safety__light-bg .page-resources-online-gambling-safety__section-title,
.page-resources-online-gambling-safety__light-bg .page-resources-online-gambling-safety__card-title,
.page-resources-online-gambling-safety__light-bg .page-resources-online-gambling-safety__feature-title {
    color: var(--dark-text-color);
}

/* Buttons */
.page-resources-online-gambling-safety__btn-primary,
.page-resources-online-gambling-safety__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-online-gambling-safety__btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: 2px solid var(--primary-color);
}

.page-resources-online-gambling-safety__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-resources-online-gambling-safety__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources-online-gambling-safety__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-resources-online-gambling-safety__btn-primary--large,
.page-resources-online-gambling-safety__btn-secondary--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* Card Grid */
.page-resources-online-gambling-safety__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-resources-online-gambling-safety__card {
    background-color: var(--default-bg-color);
    color: var(--dark-text-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.page-resources-online-gambling-safety__card:hover {
    transform: translateY(-5px);
}

.page-resources-online-gambling-safety__card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: cover;
}

.page-resources-online-gambling-safety__card-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--dark-text-color);
    font-weight: bold;
}

.page-resources-online-gambling-safety__list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 0;
    text-align: left;
    color: var(--dark-text-color);
}

.page-resources-online-gambling-safety__list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

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

/* Feature Grid */
.page-resources-online-gambling-safety__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-resources-online-gambling-safety__feature-item {
    background-color: var(--default-bg-color);
    color: var(--dark-text-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.page-resources-online-gambling-safety__feature-item:hover {
    transform: translateY(-5px);
}

.page-resources-online-gambling-safety__feature-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-resources-online-gambling-safety__feature-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--dark-text-color);
    font-weight: bold;
}

.page-resources-online-gambling-safety__feature-text {
    font-size: 1.05em;
    line-height: 1.7;
    text-align: left;
}

.page-resources-online-gambling-safety__feature-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Security Measures List */
.page-resources-online-gambling-safety__list--columns {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 40px;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    color: var(--light-text-color);
}

.page-resources-online-gambling-safety__list--columns li {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.page-resources-online-gambling-safety__list--columns li strong {
    color: var(--secondary-color);
}

.page-resources-online-gambling-safety__list--columns li a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* FAQ Section */
.page-resources-online-gambling-safety__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.page-resources-online-gambling-safety__faq-item {
    background-color: var(--default-bg-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--dark-text-color);
}

.page-resources-online-gambling-safety__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
    color: var(--dark-text-color);
}

.page-resources-online-gambling-safety__faq-question:hover {
    background-color: #f0f0f0;
}

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

.page-resources-online-gambling-safety__faq-item.active .page-resources-online-gambling-safety__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-online-gambling-safety__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--dark-text-color);
}

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

.page-resources-online-gambling-safety__faq-answer p {
    margin-bottom: 10px;
    text-align: left;
    font-size: 1.05em;
}

.page-resources-online-gambling-safety__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* CTA Section */
.page-resources-online-gambling-safety__cta-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 80px 0;
}

.page-resources-online-gambling-safety__cta-section .page-resources-online-gambling-safety__section-title {
    color: var(--light-text-color);
}

.page-resources-online-gambling-safety__cta-section .page-resources-online-gambling-safety__text-block {
    color: var(--light-text-color);
}

.page-resources-online-gambling-safety__cta-section .page-resources-online-gambling-safety__text-block a {
    color: var(--light-text-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-online-gambling-safety__main-title {
        font-size: 2.8em;
    }
    .page-resources-online-gambling-safety__section-title {
        font-size: 2em;
    }
    .page-resources-online-gambling-safety__card-title {
        font-size: 1.6em;
    }
    .page-resources-online-gambling-safety__feature-title {
        font-size: 1.4em;
    }
    .page-resources-online-gambling-safety__list li, .page-resources-online-gambling-safety__feature-text {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-resources-online-gambling-safety__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources-online-gambling-safety__main-title {
        font-size: 2em;
    }
    .page-resources-online-gambling-safety__description {
        font-size: 1em;
    }
    .page-resources-online-gambling-safety__section-title {
        font-size: 1.8em;
    }
    .page-resources-online-gambling-safety__text-block {
        font-size: 1em;
    }
    .page-resources-online-gambling-safety__card-grid,
    .page-resources-online-gambling-safety__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-resources-online-gambling-safety__list--columns {
        grid-template-columns: 1fr;
    }
    .page-resources-online-gambling-safety__btn-primary,
    .page-resources-online-gambling-safety__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile responsive for all images */
    .page-resources-online-gambling-safety img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All image containers must adapt */
    .page-resources-online-gambling-safety__hero-section,
    .page-resources-online-gambling-safety__card,
    .page-resources-online-gambling-safety__feature-item,
    .page-resources-online-gambling-safety__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    
    /* Ensure content sections also handle overflow */
    .page-resources-online-gambling-safety__content-section,
    .page-resources-online-gambling-safety__principles-section,
    .page-resources-online-gambling-safety__tips-section,
    .page-resources-online-gambling-safety__security-measures,
    .page-resources-online-gambling-safety__faq-section,
    .page-resources-online-gambling-safety__cta-section {
        padding: 40px 0;
        overflow-x: hidden;
    }

    .page-resources-online-gambling-safety__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources-online-gambling-safety__faq-answer {
        padding: 0 20px;
    }
    .page-resources-online-gambling-safety__faq-item.active .page-resources-online-gambling-safety__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources-online-gambling-safety__main-title {
        font-size: 1.8em;
    }
    .page-resources-online-gambling-safety__section-title {
        font-size: 1.6em;
    }
    .page-resources-online-gambling-safety__btn-primary--large,
    .page-resources-online-gambling-safety__btn-secondary--large {
        font-size: 1.1em;
        padding: 15px 20px;
    }
}

/* Contrast Fixes */
.page-resources-online-gambling-safety__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}