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

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

/* Hero Section */
.page-resources-online-gambling-safety-guide__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
    color: #ffffff;
    background-color: #26A9E0; /* Brand primary color for dark background */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-resources-online-gambling-safety-guide__hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-resources-online-gambling-safety-guide__hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

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

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

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

.page-resources-online-gambling-safety-guide__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.page-resources-online-gambling-safety-guide__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: block;
}

/* General Content Area */
.page-resources-online-gambling-safety-guide__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff; /* Light background for content */
    color: #333333;
}

.page-resources-online-gambling-safety-guide__container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-resources-online-gambling-safety-guide__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Brand primary color for titles */
    margin-bottom: 30px;
    text-align: center;
    padding-top: 20px;
}

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

/* Image with Text Block */
.page-resources-online-gambling-safety-guide__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.page-resources-online-gambling-safety-guide__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-resources-online-gambling-safety-guide__image-left,
.page-resources-online-gambling-safety-guide__image-right {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

.page-resources-online-gambling-safety-guide__text-content {
    flex: 1;
    min-width: 300px;
}

/* Buttons */
.page-resources-online-gambling-safety-guide__btn-primary,
.page-resources-online-gambling-safety-guide__btn-secondary,
.page-resources-online-gambling-safety-guide__video-cta {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-resources-online-gambling-safety-guide__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-resources-online-gambling-safety-guide__btn-primary:hover {
    background-color: #1a8cc4;
    border-color: #1a8cc4;
}

.page-resources-online-gambling-safety-guide__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-resources-online-gambling-safety-guide__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1a8cc4;
    border-color: #1a8cc4;
}

.page-resources-online-gambling-safety-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Video Section */
.page-resources-online-gambling-safety-guide__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Max width for video */
    margin: 40px auto;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.page-resources-online-gambling-safety-guide__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer; /* Added for clickability */
}

.page-resources-online-gambling-safety-guide__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allow click through to video if controls are active */
}

.page-resources-online-gambling-safety-guide__video-wrapper:hover .page-resources-online-gambling-safety-guide__video-overlay {
    opacity: 1;
    pointer-events: auto; /* Enable interaction on hover */
}

.page-resources-online-gambling-safety-guide__video-cta {
    background-color: #EA7C07; /* Login color for CTA */
    color: #ffffff;
    border: 2px solid #EA7C07;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 8px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    pointer-events: auto;
}

.page-resources-online-gambling-safety-guide__video-cta:hover {
    background-color: #d16b05;
    border-color: #d16b05;
}

.page-resources-online-gambling-safety-guide__video-caption {
    text-align: center;
    font-style: italic;
    margin-top: 15px;
    color: #555555;
    font-size: 0.95em;
}

/* FAQ Section */
.page-resources-online-gambling-safety-guide__faq-list {
    margin-top: 40px;
}

.page-resources-online-gambling-safety-guide__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-resources-online-gambling-safety-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #ffffff;
    color: #26A9E0;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-resources-online-gambling-safety-guide__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #26A9E0;
}

.page-resources-online-gambling-safety-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

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

.page-resources-online-gambling-safety-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f0f0f0;
    color: #333333;
}

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

.page-resources-online-gambling-safety-guide__faq-answer .page-resources-online-gambling-safety-guide__paragraph {
    margin-bottom: 0;
}

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

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

    .page-resources-online-gambling-safety-guide__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-resources-online-gambling-safety-guide__hero-content {
        max-width: 100%;
        text-align: center;
    }

    .page-resources-online-gambling-safety-guide__hero-actions {
        justify-content: center;
    }

    .page-resources-online-gambling-safety-guide__image-text-block {
        flex-direction: column;
    }

    .page-resources-online-gambling-safety-guide__image-text-block--reverse {
        flex-direction: column; /* Revert to column for small screens */
    }

    .page-resources-online-gambling-safety-guide__image-left,
    .page-resources-online-gambling-safety-guide__image-right {
        max-width: 100%;
    }
}

@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: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

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

    .page-resources-online-gambling-safety-guide__btn-primary,
    .page-resources-online-gambling-safety-guide__btn-secondary,
    .page-resources-online-gambling-safety-guide__video-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-resources-online-gambling-safety-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
        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-guide__content-area {
        padding: 40px 15px;
    }

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

    /* Images responsiveness */
    .page-resources-online-gambling-safety-guide img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-resources-online-gambling-safety-guide__section,
    .page-resources-online-gambling-safety-guide__card,
    .page-resources-online-gambling-safety-guide__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Video responsiveness */
    .page-resources-online-gambling-safety-guide video,
    .page-resources-online-gambling-safety-guide__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-online-gambling-safety-guide__video-section,
    .page-resources-online-gambling-safety-guide__video-container,
    .page-resources-online-gambling-safety-guide__video-wrapper {
        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-guide__video-wrapper {
        margin: 20px auto;
    }

    .page-resources-online-gambling-safety-guide__faq-question {
        padding: 15px;
    }

    .page-resources-online-gambling-safety-guide__faq-title {
        font-size: 1.1em;
    }

    .page-resources-online-gambling-safety-guide__faq-answer {
        padding: 0 15px;
    }
    .page-resources-online-gambling-safety-guide__faq-item.active .page-resources-online-gambling-safety-guide__faq-answer {
        padding: 15px !important;
    }
}