/* style/resources.css */

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

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

/* Headings */
.page-resources__heading-1 {
    font-size: 3.2em;
    color: #FFD700; /* Accent color for main title */
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
}

.page-resources__heading-2 {
    font-size: 2.5em;
    color: #FFD700; /* Accent color for section titles */
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.3;
}

.page-resources__heading-3 {
    font-size: 1.8em;
    color: #ffffff; /* White text for sub-titles */
    margin-top: 25px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-resources__paragraph,
.page-resources__card-text,
.page-resources__info-text {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly off-white for body text */
    margin-bottom: 20px;
    text-align: center;
}

/* Sections */
.page-resources__section {
    padding: 60px 0;
    position: relative;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-resources__dark-bg {
    background-color: #1A1A1A; /* Dark brand color */
    color: #ffffff;
}

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

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

.page-resources__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: 0;
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-resources__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__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;
    max-width: 100%; /* For mobile adaptation */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-resources__btn-primary {
    background-color: #FFD700; /* Accent color */
    color: #1A1A1A; /* Dark text for accent background */
    border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Accent color text */
    border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A1A1A;
}

.page-resources__btn-text {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.page-resources__btn-text:hover {
    color: #e6c200;
}

.page-resources__arrow {
    font-size: 1.2em;
    line-height: 1;
}

/* Cards Grid */
.page-resources__cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px; /* Ensure cards don't touch edges on wider screens */
}

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for a subtle effect */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in a row have equal height */
}

.page-resources__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-resources__card-content {
    padding: 25px;
    flex-grow: 1; /* Allow content to grow */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__card-content .page-resources__heading-3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.page-resources__card-content .page-resources__heading-3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-content .page-resources__heading-3 a:hover {
    color: #FFD700;
}

.page-resources__card-content .page-resources__paragraph {
    text-align: left;
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-resources__responsible-gaming-section {
    background-color: #1A1A1A;
    text-align: center;
}

.page-resources__responsible-gaming-section .page-resources__heading-2 {
    color: #FFD700;
}

.page-resources__responsible-gaming-section .page-resources__paragraph {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__info-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__info-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: brightness(1.2); /* Slightly brighten icon for visibility, NOT change color */
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__info-item .page-resources__heading-3 {
    color: #FFD700;
    font-size: 1.5em;
    margin-top: 0;
}

.page-resources__info-item .page-resources__info-text {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: #0d0d0d; /* Dark background from body */
    text-align: center;
}

.page-resources__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #1A1A1A;
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #2a2a2a;
}

.page-resources__faq-question .page-resources__heading-3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em;
    flex-grow: 1;
}

.page-resources__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #FFD700;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.02);
    color: #cccccc;
    text-align: left;
}

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

.page-resources__faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left;
    color: #cccccc;
}

.page-resources__faq-answer .page-resources__btn-text {
    margin-top: 10px;
    display: inline-block;
}


/* CTA Section */
.page-resources__cta-section {
    background-color: #1A1A1A;
    text-align: center;
    padding: 80px 0;
}

.page-resources__cta-section .page-resources__heading-2 {
    color: #FFD700;
}

.page-resources__cta-section .page-resources__paragraph {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__heading-1 {
        font-size: 2.8em;
    }
    .page-resources__heading-2 {
        font-size: 2em;
    }
    .page-resources__hero-section {
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources__hero-section {
        height: 50vh;
        min-height: 350px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
    }

    .page-resources__heading-1 {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-resources__heading-2 {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-resources__heading-3 {
        font-size: 1.3em;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .page-resources__paragraph,
    .page-resources__intro-text,
    .page-resources__card-text,
    .page-resources__info-text {
        font-size: 1em;
        text-align: left; /* Align text left for better readability on mobile */
    }
    .page-resources__intro-text {
        text-align: center; /* Hero intro stays centered */
    }

    .page-resources__section {
        padding: 40px 0;
    }

    .page-resources__cards-grid,
    .page-resources__info-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 20px;
    }

    .page-resources__card {
        padding-bottom: 15px; /* Add some space below cards */
    }

    .page-resources__card-image {
        height: 200px;
    }

    .page-resources__card-content {
        padding: 15px;
    }

    .page-resources__faq-question {
        padding: 15px 20px;
    }

    .page-resources__faq-question .page-resources__heading-3 {
        font-size: 1.1em;
    }

    .page-resources__faq-answer {
        padding: 15px 20px;
    }

    .page-resources__hero-cta,
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding for buttons */
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources 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;
        padding-right: 15px;
    }

    .page-resources__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Image responsive rules */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__info-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__info-icon {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .page-resources__heading-1 {
        font-size: 1.8em;
    }
    .page-resources__heading-2 {
        font-size: 1.6em;
    }
    .page-resources__hero-section {
        height: 45vh;
        min-height: 300px;
    }
    .page-resources__intro-text {
        font-size: 0.95em;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}