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

/* Base styles for the page content */
.page-resources-online-gambling-legality-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #1a1a1a; /* Ensure consistency with body background */
}

/* Hero Section */
.page-resources-online-gambling-legality-guide__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-resources-online-gambling-legality-guide__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-resources-online-gambling-legality-guide__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-resources-online-gambling-legality-guide__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

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

/* CTA Buttons in Hero */
.page-resources-online-gambling-legality-guide__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-resources-online-gambling-legality-guide__btn-primary,
.page-resources-online-gambling-legality-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, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsiveness */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-resources-online-gambling-legality-guide__btn-primary {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-resources-online-gambling-legality-guide__btn-primary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

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

.page-resources-online-gambling-legality-guide__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

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

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

.page-resources-online-gambling-legality-guide__medium-bg {
    background-color: #2a2a2a; /* Slightly lighter dark background */
    color: #ffffff;
}

.page-resources-online-gambling-legality-guide__dark-section {
    background-color: #017439; /* Brand color as background */
    color: #ffffff; /* White text for contrast */
}

.page-resources-online-gambling-legality-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Inner padding for container */
    box-sizing: border-box;
}

.page-resources-online-gambling-legality-guide__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff; /* Default light color for titles */
}

.page-resources-online-gambling-legality-guide__dark-section .page-resources-online-gambling-legality-guide__section-title {
    color: #ffffff; /* Ensure white title on brand color background */
}

.page-resources-online-gambling-legality-guide__sub-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-resources-online-gambling-legality-guide__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-resources-online-gambling-legality-guide__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-resources-online-gambling-legality-guide__list-item {
    margin-bottom: 10px;
    color: #f0f0f0;
}

/* Image styling */
.page-resources-online-gambling-legality-guide__image-wrapper {
    margin: 40px 0;
    text-align: center;
}

.page-resources-online-gambling-legality-guide__image-full-width {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element for max-width */
    margin: 0 auto; /* Center the image */
}

/* Video Section */
.page-resources-online-gambling-legality-guide__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Ensure wrapper is responsive */
    width: 100%;
    box-sizing: border-box;
}

.page-resources-online-gambling-legality-guide__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer; /* Indicate it's clickable */
}

.page-resources-online-gambling-legality-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;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-resources-online-gambling-legality-guide__video-wrapper:hover .page-resources-online-gambling-legality-guide__video-overlay {
    opacity: 1;
}

.page-resources-online-gambling-legality-guide__video-cta {
    display: inline-block;
    padding: 15px 30px;
    background-color: #C30808; /* Login/Register color */
    color: #FFFF00; /* Login/Register font color */
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.page-resources-online-gambling-legality-guide__video-cta:hover {
    background-color: #a00606;
}

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

.page-resources-online-gambling-legality-guide__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-resources-online-gambling-legality-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #017439; /* Brand color for question background */
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff; /* White text for question */
    list-style: none; /* Remove default marker for summary */
}

.page-resources-online-gambling-legality-guide__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for WebKit browsers */
}

.page-resources-online-gambling-legality-guide__faq-qtext {
    flex-grow: 1;
}

.page-resources-online-gambling-legality-guide__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #ffffff;
}

.page-resources-online-gambling-legality-guide__faq-answer {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter transparent background for answer */
    color: #f0f0f0;
}

.page-resources-online-gambling-legality-guide__faq-answer p {
    margin-bottom: 0;
}

/* CTA Section at bottom */
.page-resources-online-gambling-legality-guide__cta-section {
    background-color: #2a2a2a; /* Dark background for final CTA */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources-online-gambling-legality-guide__hero-title {
        font-size: 3em;
    }
    .page-resources-online-gambling-legality-guide__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-online-gambling-legality-guide__hero-section {
        height: auto; /* Adjust height for mobile */
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

    .page-resources-online-gambling-legality-guide__hero-title {
        font-size: 2.2em;
    }

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

    .page-resources-online-gambling-legality-guide__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-resources-online-gambling-legality-guide__btn-primary,
    .page-resources-online-gambling-legality-guide__btn-secondary {
        width: 100% !important; /* Full width for buttons on mobile */
        padding: 12px 20px !important;
        font-size: 1em !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-online-gambling-legality-guide__content-section {
        padding: 40px 15px;
    }

    .page-resources-online-gambling-legality-guide__container {
        padding: 0 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-resources-online-gambling-legality-guide__sub-title {
        font-size: 1.4em;
    }

    .page-resources-online-gambling-legality-guide__paragraph,
    .page-resources-online-gambling-legality-guide__list-item {
        font-size: 0.95em;
    }

    /* Mobile image responsiveness */
    .page-resources-online-gambling-legality-guide img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile video responsiveness */
    .page-resources-online-gambling-legality-guide__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources-online-gambling-legality-guide__video {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* Occupy full wrapper height */
        display: block !important;
    }

    .page-resources-online-gambling-legality-guide__faq-question {
        padding: 15px;
        font-size: 1em;
    }

    .page-resources-online-gambling-legality-guide__faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources-online-gambling-legality-guide__hero-title {
        font-size: 1.8em;
    }
    .page-resources-online-gambling-legality-guide__section-title {
        font-size: 1.5em;
    }
}