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

/* Base styles for the page */
.page-resources-online-gambling-safety {
    font-family: Arial, sans-serif;
    color: #ffffff; /* Light text for dark body background */
    line-height: 1.6;
    background-color: transparent; /* Body background handled by shared.css */
}

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

.page-resources-online-gambling-safety__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-resources-online-gambling-safety__section-description,
.page-resources-online-gambling-safety__text-block {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
}

.page-resources-online-gambling-safety__sub-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Hero Section */
.page-resources-online-gambling-safety__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
}

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

.page-resources-online-gambling-safety__hero-section .page-resources-online-gambling-safety__container {
    position: relative;
    z-index: 1;
    color: #ffffff;
    max-width: 900px;
}

.page-resources-online-gambling-safety__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

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

.page-resources-online-gambling-safety__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-resources-online-gambling-safety__btn-primary,
.page-resources-online-gambling-safety__btn-secondary {
    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, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-online-gambling-safety__btn-primary {
    background: #FFD700;
    color: #1A1A1A; /* Changed to #1A1A1A for better contrast on gold */
    border: 2px solid #FFD700;
}

.page-resources-online-gambling-safety__btn-primary:hover {
    background: #e6c200;
    color: #1A1A1A;
    border-color: #e6c200;
}

.page-resources-online-gambling-safety__btn-secondary {
    background: #1A1A1A;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-resources-online-gambling-safety__btn-secondary:hover {
    background: #333333;
    color: #FFD700;
    border-color: #FFD700;
}

/* Video Section */
.page-resources-online-gambling-safety__video-section {
    padding: 60px 20px;
    background-color: #1A1A1A;
    text-align: center;
}

.page-resources-online-gambling-safety__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.page-resources-online-gambling-safety__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
    max-width: 100%;
}

/* Content Sections */
.page-resources-online-gambling-safety__content-section {
    padding: 60px 0;
}

.page-resources-online-gambling-safety__content-section.page-resources-online-gambling-safety__dark-bg {
    background-color: #1A1A1A;
    color: #ffffff;
}

.page-resources-online-gambling-safety__content-section .page-resources-online-gambling-safety__text-block {
    color: #f0f0f0;
    text-align: left;
}

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

.page-resources-online-gambling-safety__feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: #f0f0f0;
}

.page-resources-online-gambling-safety__feature-card .page-resources-online-gambling-safety__card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-resources-online-gambling-safety__feature-card p {
    font-size: 1em;
    line-height: 1.6;
}

.page-resources-online-gambling-safety__image-text-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-resources-online-gambling-safety__image-text-layout--reverse {
    flex-direction: row-reverse;
}

.page-resources-online-gambling-safety__content-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    object-fit: cover;
    max-width: 100%;
    height: auto;
    display: block;
}

.page-resources-online-gambling-safety__text-content {
    flex: 2;
    color: #f0f0f0;
}

.page-resources-online-gambling-safety__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-resources-online-gambling-safety__faq-section {
    padding: 60px 0;
    background-color: #1A1A1A;
}

.page-resources-online-gambling-safety__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-resources-online-gambling-safety__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-online-gambling-safety__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #1A1A1A;
    color: #FFD700;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

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

.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;
    background-color: #2a2a2a;
    color: #f0f0f0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-resources-online-gambling-safety__faq-item.active .page-resources-online-gambling-safety__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure override */
    padding: 20px 25px;
}

.page-resources-online-gambling-safety__faq-answer p {
    margin-bottom: 0;
    text-align: left;
}

/* Final CTA Section */
.page-resources-online-gambling-safety__cta-section {
    background-color: #FFD700;
    padding: 80px 20px;
    text-align: center;
    color: #1A1A1A;
}

.page-resources-online-gambling-safety__cta-section .page-resources-online-gambling-safety__section-title {
    color: #1A1A1A;
}

.page-resources-online-gambling-safety__cta-section .page-resources-online-gambling-safety__text-block {
    color: #333333;
    margin-bottom: 40px;
}

.page-resources-online-gambling-safety__cta-section .page-resources-online-gambling-safety__btn-primary {
    background: #1A1A1A;
    color: #FFD700;
    border-color: #1A1A1A;
}

.page-resources-online-gambling-safety__cta-section .page-resources-online-gambling-safety__btn-primary:hover {
    background: #333333;
    color: #FFD700;
    border-color: #333333;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources-online-gambling-safety__hero-title {
        font-size: 3em;
    }
    .page-resources-online-gambling-safety__hero-description {
        font-size: 1.2em;
    }
    .page-resources-online-gambling-safety__section-title {
        font-size: 2em;
    }
    .page-resources-online-gambling-safety__sub-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-resources-online-gambling-safety__hero-section {
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources-online-gambling-safety__hero-title {
        font-size: 2.5em;
    }
    .page-resources-online-gambling-safety__hero-description {
        font-size: 1.1em;
    }
    .page-resources-online-gambling-safety__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-online-gambling-safety__btn-primary,
    .page-resources-online-gambling-safety__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources-online-gambling-safety__section-title {
        font-size: 1.8em;
    }
    .page-resources-online-gambling-safety__section-description,
    .page-resources-online-gambling-safety__text-block {
        font-size: 1em;
    }
    .page-resources-online-gambling-safety__image-text-layout {
        flex-direction: column;
        gap: 30px;
    }
    .page-resources-online-gambling-safety__content-image {
        min-width: unset;
    }
    .page-resources-online-gambling-safety__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-resources-online-gambling-safety__faq-question,
    .page-resources-online-gambling-safety__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile specific image/video/container overrides */
    .page-resources-online-gambling-safety img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-online-gambling-safety video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-online-gambling-safety__section,
    .page-resources-online-gambling-safety__card,
    .page-resources-online-gambling-safety__container,
    .page-resources-online-gambling-safety__video-section,
    .page-resources-online-gambling-safety__video-container,
    .page-resources-online-gambling-safety__video-wrapper,
    .page-resources-online-gambling-safety__cta-buttons,
    .page-resources-online-gambling-safety__button-group,
    .page-resources-online-gambling-safety__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources-online-gambling-safety__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column;
    }
    .page-resources-online-gambling-safety__video-section {
      padding-top: var(--header-offset, 120px) !important;
    }
}