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

/* Base styles for the page content */
.page-resources-safety-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Inherit from body or shared */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

/* Container for consistent spacing */
.page-resources-safety-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-resources-safety-guide__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Text blocks */
.page-resources-safety-guide__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Buttons */
.page-resources-safety-guide__btn-primary,
.page-resources-safety-guide__btn-secondary,
.page-resources-safety-guide__cta-button {
    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;
    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%;
}

.page-resources-safety-guide__btn-primary {
    background-color: #C30808; /* Custom color for register/login type */
    color: #FFFF00; /* Custom font color for register/login type */
    border: 2px solid #C30808;
}

.page-resources-safety-guide__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-resources-safety-guide__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand color for text */
    border: 2px solid #017439;
}

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

/* Hero Section */
.page-resources-safety-guide__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    padding: 60px 20px; /* Add padding to prevent content from touching edges */
    box-sizing: border-box;
}

.page-resources-safety-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-resources-safety-guide__hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    color: #ffffff;
}

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

.page-resources-safety-guide__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-resources-safety-guide__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Introduction Section */
.page-resources-safety-guide__introduction-section {
    padding: 80px 0;
    text-align: center;
}

.page-resources-safety-guide__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

/* Features Section */
.page-resources-safety-guide__features-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-resources-safety-guide__features-section .page-resources-safety-guide__section-title {
    color: #333333;
}

.page-resources-safety-guide__features-section .page-resources-safety-guide__text-block {
    color: #555555;
}

.page-resources-safety-guide__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources-safety-guide__feature-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-resources-safety-guide__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min-size */
    min-height: 200px; /* Enforce min-size */
}

.page-resources-safety-guide__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for titles */
}

.page-resources-safety-guide__card-description {
    font-size: 1em;
    color: #555555;
}

/* Responsible Gaming Section */
.page-resources-safety-guide__responsible-gaming-section {
    padding: 80px 0;
    text-align: center;
}

.page-resources-safety-guide__responsible-gaming-section .page-resources-safety-guide__section-title {
    color: #ffffff;
}

.page-resources-safety-guide__responsible-gaming-section .page-resources-safety-guide__text-block {
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-resources-safety-guide__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333333;
}

.page-resources-safety-guide__faq-section .page-resources-safety-guide__section-title {
    color: #333333;
}

.page-resources-safety-guide__faq-list {
    max-width: 900px;
    margin: 50px auto 0;
}

.page-resources-safety-guide__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-resources-safety-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #333333;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.page-resources-safety-guide__faq-question:hover {
    background-color: #f0f0f0;
}

.page-resources-safety-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439; /* Brand color for toggle icon */
}

.page-resources-safety-guide__faq-item.active .page-resources-safety-guide__faq-toggle {
    transform: rotate(45deg); /* Plus sign to X */
}

.page-resources-safety-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    background-color: #f9f9f9;
}

.page-resources-safety-guide__faq-item.active .page-resources-safety-guide__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px 25px;
}

.page-resources-safety-guide__faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* Call to Action Section */
.page-resources-safety-guide__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #f0f0f0; /* Light background for contrast */
    color: #333333;
}

.page-resources-safety-guide__cta-section .page-resources-safety-guide__section-title {
    color: #333333;
}

.page-resources-safety-guide__cta-section .page-resources-safety-guide__text-block {
    color: #555555;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Specific button group for CTA */
.page-resources-safety-guide__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-safety-guide__hero-title {
        font-size: 3em;
    }
    .page-resources-safety-guide__hero-description {
        font-size: 1.2em;
    }
    .page-resources-safety-guide__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-safety-guide {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

    .page-resources-safety-guide__container {
        padding: 0 15px;
    }

    .page-resources-safety-guide__hero-section {
        min-height: 500px;
        padding: 40px 15px;
    }

    .page-resources-safety-guide__hero-title {
        font-size: 2.5em;
    }

    .page-resources-safety-guide__hero-description {
        font-size: 1.1em;
    }

    .page-resources-safety-guide__hero-buttons,
    .page-resources-safety-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent buttons from touching edges */
    }

    .page-resources-safety-guide__btn-primary,
    .page-resources-safety-guide__btn-secondary,
    .page-resources-safety-guide__cta-button {
        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-safety-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources-safety-guide__introduction-section,
    .page-resources-safety-guide__features-section,
    .page-resources-safety-guide__responsible-gaming-section,
    .page-resources-safety-guide__faq-section,
    .page-resources-safety-guide__cta-section {
        padding: 60px 0;
    }

    .page-resources-safety-guide__feature-grid {
        grid-template-columns: 1fr;
    }

    .page-resources-safety-guide__feature-card {
        padding: 20px;
    }

    .page-resources-safety-guide__feature-image {
        height: 200px; /* Adjust height for mobile */
    }

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

    .page-resources-safety-guide__section,
    .page-resources-safety-guide__card,
    .page-resources-safety-guide__container,
    .page-resources-safety-guide__hero-section,
    .page-resources-safety-guide__introduction-section,
    .page-resources-safety-guide__features-section,
    .page-resources-safety-guide__responsible-gaming-section,
    .page-resources-safety-guide__faq-section,
    .page-resources-safety-guide__cta-section,
    .page-resources-safety-guide__feature-card,
    .page-resources-safety-guide__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    /* Ensure content inside sections also respects padding */
    .page-resources-safety-guide__introduction-section .page-resources-safety-guide__container,
    .page-resources-safety-guide__features-section .page-resources-safety-guide__container,
    .page-resources-safety-guide__responsible-gaming-section .page-resources-safety-guide__container,
    .page-resources-safety-guide__faq-section .page-resources-safety-guide__container,
    .page-resources-safety-guide__cta-section .page-resources-safety-guide__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Video section padding top for mobile */
    .page-resources-safety-guide__video-section { /* If video section existed */
        padding-top: var(--header-offset, 120px) !important;
    }
}

/* Ensure content area images are at least 200px */
.page-resources-safety-guide img:not(.page-resources-safety-guide__hero-image) {
    min-width: 200px;
    min-height: 200px;
}
/* No filter on images (except hero for readability) */
.page-resources-safety-guide img {
    filter: none;
}
.page-resources-safety-guide__hero-image {
    filter: brightness(0.6); /* Allowed for readability */
}

/* Color contrast fixes for specific elements */
.page-resources-safety-guide__light-bg {
    background-color: #f0f0f0;
    color: #333333;
}
.page-resources-safety-guide__dark-bg {
    background-color: #017439;
    color: #ffffff;
}
/* Ensure all text within .page-resources-safety-guide is visible on body background */
.page-resources-safety-guide p,
.page-resources-safety-guide li,
.page-resources-safety-guide h1,
.page-resources-safety-guide h2,
.page-resources-safety-guide h3,
.page-resources-safety-guide h4,
.page-resources-safety-guide h5,
.page-resources-safety-guide h6 {
    color: #ffffff; /* Default for sections on dark body */
}
/* Override for sections with light backgrounds */
.page-resources-safety-guide__features-section p,
.page-resources-safety-guide__features-section li,
.page-resources-safety-guide__features-section h1,
.page-resources-safety-guide__features-section h2,
.page-resources-safety-guide__features-section h3,
.page-resources-safety-guide__features-section h4,
.page-resources-safety-guide__features-section h5,
.page-resources-safety-guide__features-section h6,
.page-resources-safety-guide__faq-section p,
.page-resources-safety-guide__faq-section li,
.page-resources-safety-guide__faq-section h1,
.page-resources-safety-guide__faq-section h2,
.page-resources-safety-guide__faq-section h3,
.page-resources-safety-guide__faq-section h4,
.page-resources-safety-guide__faq-section h5,
.page-resources-safety-guide__faq-section h6,
.page-resources-safety-guide__cta-section p,
.page-resources-safety-guide__cta-section li,
.page-resources-safety-guide__cta-section h1,
.page-resources-safety-guide__cta-section h2,
.page-resources-safety-guide__cta-section h3,
.page-resources-safety-guide__cta-section h4,
.page-resources-safety-guide__cta-section h5,
.page-resources-safety-guide__cta-section h6 {
    color: #333333; /* Dark text for light backgrounds */
}
.page-resources-safety-guide__card-title {
    color: #017439; /* Brand color */
}
.page-resources-safety-guide__faq-toggle {
    color: #017439; /* Brand color */
}