/* style/resources-safe-gambling.css */

/* Base Styles */
.page-resources-safe-gambling {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark, so text should be light */
    background-color: transparent; /* Main content background will be transparent to show body background */
}

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

.page-resources-safe-gambling__section {
    padding: 60px 0;
}

.page-resources-safe-gambling__section-title {
    font-size: 3em;
    color: #017439; /* Brand color for main titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources-safe-gambling__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-resources-safe-gambling__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

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

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

.page-resources-safe-gambling__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-resources-safe-gambling__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF; /* White for contrast on dark overlay */
}

.page-resources-safe-gambling__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

/* Buttons */
.page-resources-safe-gambling__btn-primary,
.page-resources-safe-gambling__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;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

.page-resources-safe-gambling__btn-primary {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-resources-safe-gambling__btn-primary:hover {
    background-color: #005a2b;
    border-color: #005a2b;
}

.page-resources-safe-gambling__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-resources-safe-gambling__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Dark Section */
.page-resources-safe-gambling__dark-section {
    background-color: #017439; /* Brand main color as background */
    color: #ffffff;
}

.page-resources-safe-gambling__dark-section .page-resources-safe-gambling__section-title {
    color: #ffffff; /* White title on dark background */
}

/* Grid Layout for Cards */
.page-resources-safe-gambling__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-safe-gambling__card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark body background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* Light text on card background */
}

.page-resources-safe-gambling__card:hover {
    transform: translateY(-5px);
}

.page-resources-safe-gambling__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Enforce minimum size */
}

.page-resources-safe-gambling__card-title {
    font-size: 1.8em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-resources-safe-gambling__card-text {
    font-size: 1em;
    color: #f0f0f0;
    text-align: justify;
}

/* Commitment List */
.page-resources-safe-gambling__commitment-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources-safe-gambling__commitment-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.page-resources-safe-gambling__commitment-item-title {
    font-size: 1.6em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-resources-safe-gambling__commitment-item-text {
    font-size: 1em;
    color: #f0f0f0;
    text-align: justify;
}

/* Tips List */
.page-resources-safe-gambling__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-resources-safe-gambling__tips-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-left: 5px solid #017439;
    border-radius: 5px;
    padding: 20px;
    color: #ffffff;
}

.page-resources-safe-gambling__tips-item-title {
    font-size: 1.4em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-resources-safe-gambling__tips-item-text {
    font-size: 0.95em;
    color: #f0f0f0;
    text-align: justify;
}

/* FAQ Section */
.page-resources-safe-gambling__faq-list {
    margin-top: 40px;
}

.page-resources-safe-gambling__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-resources-safe-gambling__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    color: #ffffff;
}

.page-resources-safe-gambling__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-safe-gambling__faq-title {
    font-size: 1.3em;
    margin: 0;
    color: #FFFFFF;
}

.page-resources-safe-gambling__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439; /* Brand color for toggle icon */
    transition: transform 0.3s ease;
}

.page-resources-safe-gambling__faq-item.active .page-resources-safe-gambling__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-safe-gambling__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    text-align: justify;
}

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

/* Call to Action Section */
.page-resources-safe-gambling__cta-section {
    background-color: #017439; /* Main brand color as background */
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-resources-safe-gambling__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-resources-safe-gambling__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-resources-safe-gambling__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources-safe-gambling__hero-title {
        font-size: 3em;
    }
    .page-resources-safe-gambling__section-title {
        font-size: 2.5em;
    }
    .page-resources-safe-gambling__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-resources-safe-gambling__section {
        padding: 40px 0;
    }
    .page-resources-safe-gambling__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }
    .page-resources-safe-gambling__hero-title {
        font-size: 2.2em;
    }
    .page-resources-safe-gambling__hero-description {
        font-size: 1.1em;
    }
    .page-resources-safe-gambling__section-title {
        font-size: 2em;
    }
    .page-resources-safe-gambling__text-block {
        font-size: 1em;
    }
    .page-resources-safe-gambling__card {
        padding: 20px;
    }
    .page-resources-safe-gambling__card-title {
        font-size: 1.5em;
    }
    .page-resources-safe-gambling__commitment-item,
    .page-resources-safe-gambling__tips-item {
        padding: 15px;
    }
    .page-resources-safe-gambling__commitment-item-title,
    .page-resources-safe-gambling__tips-item-title {
        font-size: 1.3em;
    }
    .page-resources-safe-gambling__faq-question {
        padding: 15px 20px;
    }
    .page-resources-safe-gambling__faq-title {
        font-size: 1.1em;
    }
    .page-resources-safe-gambling__faq-answer {
        padding: 0 20px;
    }
    .page-resources-safe-gambling__faq-item.active .page-resources-safe-gambling__faq-answer {
        padding: 10px 20px 20px;
    }
    .page-resources-safe-gambling__cta-section {
        padding: 60px 0;
    }
    .page-resources-safe-gambling__cta-title {
        font-size: 1.8em;
    }
    .page-resources-safe-gambling__cta-description {
        font-size: 1em;
    }

    /* Mobile specific overrides for images, videos, buttons and containers */
    .page-resources-safe-gambling img {
        max-width: 100% !important;
        width: 100% !important; /* Added width: 100% for images to fill container */
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-safe-gambling video,
    .page-resources-safe-gambling__video { /* Assuming there's a video, though not added in HTML draft yet */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-safe-gambling__section,
    .page-resources-safe-gambling__card,
    .page-resources-safe-gambling__container,
    .page-resources-safe-gambling__cta-section,
    .page-resources-safe-gambling__cta-content,
    .page-resources-safe-gambling__hero-buttons,
    .page-resources-safe-gambling__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important; /* Add padding to prevent content touching edges */
        padding-right: 15px !important; /* Add padding to prevent content touching edges */
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-resources-safe-gambling__btn-primary,
    .page-resources-safe-gambling__btn-secondary,
    .page-resources-safe-gambling a[class*="button"],
    .page-resources-safe-gambling a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-resources-safe-gambling__hero-buttons,
    .page-resources-safe-gambling__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically on mobile */
        gap: 10px !important;
    }
}