/* style/resources.css */

/* --- Base Styles & Variables --- */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --background-color: #FFFFFF; /* This is for sections that need a light background, not body */
    --register-login-font-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --card-bg-light: #ffffff;
    --card-bg-dark: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark sections */
    --border-light: #e0e0e0;
}

/* Body background is #121212 (dark) from shared.css, so default text should be light */
.page-resources {
    color: var(--text-light); /* Default text color for the page content */
    background-color: #121212; /* Ensure consistency, though shared.css controls body */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

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

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    min-height: 600px;
    background-color: var(--primary-color); /* Use primary color for hero background */
    color: var(--text-light);
    overflow: hidden;
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay for text readability */
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text */
    border-radius: 8px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-resources__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

/* --- Buttons --- */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Important for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-resources__btn-primary {
    background-color: var(--register-button-color); /* Using specific color for register/login */
    color: var(--register-login-font-color);
    border: 2px solid var(--register-button-color);
}

.page-resources__btn-primary:hover {
    background-color: #a30606; /* Darker red */
    border-color: #a30606;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-resources__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
}

.page-resources__btn-text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.page-resources__btn-text-link:hover {
    text-decoration: underline;
}

/* --- Section Styling --- */
.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color); /* Use primary color for titles on light/dark backgrounds, ensure contrast */
}

.page-resources__dark-bg .page-resources__section-title {
    color: var(--text-light); /* White titles on dark backgrounds */
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-light); /* Default for dark body background */
    text-align: justify;
}

.page-resources__dark-bg .page-resources__text-block {
    color: var(--text-light);
}

.page-resources__introduction-section,
.page-resources__safety-section,
.page-resources__cta-bottom {
    padding: 60px 0;
    background-color: var(--primary-color); /* Dark section */
    color: var(--text-light);
}

.page-resources__guides-section,
.page-resources__promotions-section,
.page-resources__faq-section {
    padding: 60px 0;
    background-color: var(--secondary-color); /* Light section */
    color: var(--text-dark);
}

.page-resources__guides-section .page-resources__section-title,
.page-resources__promotions-section .page-resources__section-title,
.page-resources__faq-section .page-resources__section-title {
    color: var(--primary-color);
}

.page-resources__guides-section .page-resources__text-block,
.page-resources__promotions-section .page-resources__text-block,
.page-resources__faq-section .page-resources__text-block {
    color: var(--text-dark);
}


/* --- Guide Grid --- */
.page-resources__guide-grid,
.page-resources__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__guide-card,
.page-resources__game-card,
.page-resources__promotion-card {
    background-color: var(--card-bg-light); /* Light card background */
    color: var(--text-dark);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__dark-bg .page-resources__game-card {
    background-color: var(--card-bg-dark); /* Dark card background */
    color: var(--text-light);
}

.page-resources__guide-card:hover,
.page-resources__game-card:hover,
.page-resources__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__guide-image,
.page-resources__game-image,
.page-resources__promotion-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    /* No filter allowed */
}

.page-resources__card-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-resources__guide-card .page-resources__card-title,
.page-resources__game-card .page-resources__card-title,
.page-resources__promotion-card .page-resources__card-title {
    padding: 0;
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-resources__dark-bg .page-resources__game-card .page-resources__card-title {
    color: var(--text-light);
}

.page-resources__guide-card .page-resources__card-title a,
.page-resources__game-card .page-resources__card-title a,
.page-resources__promotion-card .page-resources__card-title a {
    color: inherit; /* Inherit from parent title */
    text-decoration: none;
}

.page-resources__guide-card .page-resources__card-title a:hover,
.page-resources__game-card .page-resources__card-title a:hover,
.page-resources__promotion-card .page-resources__card-title a:hover {
    text-decoration: underline;
}

.page-resources__guide-card .page-resources__card-text,
.page-resources__game-card .page-resources__card-text,
.page-resources__promotion-card .page-resources__card-text {
    padding: 0;
    font-size: 0.95em;
    flex-grow: 1;
    margin-bottom: 15px;
}

.page-resources__dark-bg .page-resources__game-card .page-resources__card-text {
    color: var(--text-light);
}

.page-resources__guide-card .page-resources__btn-text-link,
.page-resources__game-card .page-resources__btn-text-link,
.page-resources__promotion-card .page-resources__btn-primary {
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start;
}

/* --- Promotions Section --- */
.page-resources__promotion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

/* --- FAQ Section --- */
.page-resources__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.page-resources__faq-item {
    border-bottom: 1px solid var(--border-light);
}

.page-resources__faq-item:last-child {
    border-bottom: none;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--card-bg-light);
    color: var(--text-dark);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-resources__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
}

.page-resources__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: var(--text-dark);
    background-color: #f9f9f9;
}

.page-resources__faq-answer p {
    margin: 0;
    color: var(--text-dark); /* Ensure text color is dark on light background */
}

.page-resources__faq-more {
    text-align: center;
    margin-top: 40px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__hero-content {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__text-block {
        font-size: 1em;
    }

    /* Image responsive */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__hero-image {
        height: 100% !important; /* Specific for hero image */
    }

    /* Video responsive (if any) - added for completeness, though no video in current HTML draft */
    .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;
    }

    /* Button responsive */
    .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__hero-cta,
    .page-resources__safety-cta,
    .page-resources__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px;
    }
    .page-resources__container {
        padding: 0 15px;
    }

    .page-resources__guide-grid,
    .page-resources__game-grid,
    .page-resources__promotion-cards {
        grid-template-columns: 1fr;
    }
    .page-resources__guide-image,
    .page-resources__game-image,
    .page-resources__promotion-image {
        height: 200px; /* Adjust card image height for mobile */
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
}