/* style/resources.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-resources {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

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

.page-resources__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__sub-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__text-block p {
    margin-bottom: 15px;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: #000000; /* Dark background for hero */
    overflow: hidden;
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Slightly dim image to make text readable */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    color: #ffffff;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #ffffff;
}

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

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources a[class*="button"],
.page-resources a[class*="btn"] {
    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; /* Break long words */
}

.page-resources__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

.page-resources__btn-secondary:hover {
    background-color: #C30808;
    color: #ffffff;
}

.page-resources__btn-text {
    color: #017439; /* Brand color for text links */
    text-decoration: underline;
    font-weight: bold;
}

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

/* Grid Layouts */
.page-resources__grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.page-resources__grid-three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Card Styling */
.page-resources__card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for cards on dark sections */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #ffffff; /* Light text for cards */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-resources__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__card-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__card p {
    flex-grow: 1; /* Allow paragraph to take available space */
    margin-bottom: 20px;
}

.page-resources__card .page-resources__btn-primary {
    margin-top: auto; /* Push button to the bottom */
    align-self: center;
}

/* List Styling */
.page-resources__list {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
}

.page-resources__list li {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    padding: 10px 15px;
    border-left: 4px solid #017439; /* Brand accent */
    border-radius: 5px;
}

.page-resources__list li strong {
    color: #FFFF00; /* Highlight important text in lists */
}

/* Image blocks */
.page-resources__image-block {
    text-align: center;
}

.page-resources__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Dark Section specific styles */
.page-resources__dark-section {
    background-color: #0d0d0d; /* Slightly lighter dark background for contrast with body */
    padding: 80px 0;
}

.page-resources__intro-section {
    padding-top: 80px;
}

.page-resources__guide-section,
.page-resources__promotions-section,
.page-resources__cta-section {
    padding: 80px 0;
    background-color: #000000; /* Use body background for these sections */
}

.page-resources__game-category {
    text-align: center;
}

.page-resources__game-category .page-resources__sub-title {
    margin-bottom: 20px;
}

.page-resources__game-category .page-resources__content-image {
    margin-bottom: 25px;
    height: 400px; /* Consistent image height */
}

.page-resources__game-sub-categories .page-resources__card-image {
    height: 200px; /* Smaller images for sub-categories */
}

.page-resources__cta-bottom {
    text-align: center;
    margin-top: 40px;
}

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

/* FAQ Section */
.page-resources__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-resources__faq-item {
    background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items */
    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;
    cursor: pointer;
    background-color: #017439; /* Brand color for question background */
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #005a2e;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Plus sign to X or minus */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
}

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

.page-resources__faq-answer p {
    margin-bottom: 10px;
}

/* CTA Section at the bottom */
.page-resources__cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #0d0d0d;
}

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

/* Global image styles (must meet min size and no filter) */
.page-resources img {
    min-width: 200px;
    min-height: 200px;
    border-radius: 8px; /* Example style, no filter */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Example style, no filter */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__grid-two-columns {
        grid-template-columns: 1fr;
    }
    .page-resources__grid-three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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: 12px 20px; /* Adjust padding for mobile buttons */
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__sub-title {
        font-size: 1.5em;
    }
    .page-resources__grid-two-columns,
    .page-resources__grid-three-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-resources__card {
        padding: 20px;
    }
    .page-resources__container {
        padding: 0 15px; /* Add padding to container on mobile */
    }
    .page-resources__intro-section,
    .page-resources__guide-section,
    .page-resources__games-section,
    .page-resources__promotions-section,
    .page-resources__faq-section,
    .page-resources__cta-section {
        padding: 60px 0;
    }

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images take full width of container */
        height: auto !important;
        display: block !important;
        min-width: unset; /* Remove min-width for mobile flexibility */
        min-height: unset; /* Remove min-height for mobile flexibility */
    }
    
    .page-resources__hero-image {
        min-width: unset !important;
        min-height: unset !important;
    }

    /* Video responsiveness (if any, though none are directly in HTML yet) */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__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__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Ensure all content containers are responsive */
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .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;
    }
    .page-resources__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
}