/* style/resources.css */

/* Base Styles & Typography */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Inherited from body, ensuring contrast */
}

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

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

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text for dark backgrounds */
}

/* Section Styles */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(90deg, #017439 0%, #0a0a0a 100%);
    min-height: 600px;
    color: #ffffff;
    overflow: hidden;
}

.page-resources__hero-content {
    max-width: 600px;
    z-index: 1;
    text-align: left;
}

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

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

.page-resources__hero-image-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-left: 40px;
    z-index: 0;
}

.page-resources__hero-image {
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-resources__intro-section {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-resources__intro-section .page-resources__section-title,
.page-resources__intro-section .page-resources__text-block {
    color: #333333;
}

.page-resources__guide-section {
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
    padding: 60px 0;
}

.page-resources__guide-section .page-resources__section-title {
    color: #017439;
}

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

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

.page-resources__guide-card:hover {
    transform: translateY(-10px);
}

.page-resources__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__card-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__games-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-resources__games-section .page-resources__section-title,
.page-resources__games-section .page-resources__text-block {
    color: #333333;
}

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

.page-resources__game-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333333;
}

.page-resources__game-card:hover {
    transform: translateY(-10px);
}

.page-resources__game-card .page-resources__card-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__game-card .page-resources__card-title a:hover {
    color: #005f2e;
}

.page-resources__optimize-section {
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 60px 0;
}

.page-resources__optimize-section .page-resources__section-title {
    color: #017439;
}

.page-resources__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-resources__list-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #017439;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-resources__list-item strong {
    color: #017439;
}

.page-resources__safety-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-resources__safety-section .page-resources__section-title,
.page-resources__safety-section .page-resources__text-block {
    color: #333333;
}

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

.page-resources__safety-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333333;
}

.page-resources__faq-section {
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 60px 0;
}

.page-resources__faq-section .page-resources__section-title {
    color: #017439;
}

.page-resources__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
    background-color: #017439;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
}

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

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

.page-resources__faq-item[open] .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.03);
}

.page-resources__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

.page-resources__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

.page-resources__cta-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources__cta-section .page-resources__section-title,
.page-resources__cta-section .page-resources__text-block {
    color: #333333;
}

.page-resources__cta-container {
    max-width: 800px;
}

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

.page-resources__cta-image-wrapper {
    margin-top: 40px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-resources__cta-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    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;
}

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

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

.page-resources__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

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

/* Image & Video Responsiveness */
.page-resources img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Dark/Light Background Specifics (for sections/cards if needed) */
.page-resources__dark-bg {
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-resources__dark-bg .page-resources__section-title {
    color: #017439;
}

.page-resources__light-bg .page-resources__section-title {
    color: #017439;
}

.page-resources__dark-bg .page-resources__text-block {
    color: #f0f0f0;
}

.page-resources__light-bg .page-resources__text-block {
    color: #333333;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .page-resources__hero-content {
        margin-bottom: 40px;
        margin-left: 0;
        max-width: 100%;
    }

    .page-resources__hero-title {
        font-size: 2.8em;
    }

    .page-resources__hero-description {
        font-size: 1.1em;
    }

    .page-resources__hero-image-wrapper {
        margin-left: 0;
    }
}

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

    .page-resources__container {
        padding: 30px 15px;
    }

    .page-resources__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        min-height: auto;
        padding-bottom: 40px;
    }

    .page-resources__hero-title {
        font-size: 2.2em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

    .page-resources__guide-grid,
    .page-resources__games-grid,
    .page-resources__safety-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__guide-card,
    .page-resources__game-card,
    .page-resources__safety-card {
        padding: 20px;
    }

    .page-resources__card-title {
        font-size: 1.3em;
    }

    .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;
        font-size: 1em;
    }

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__hero-section,
    .page-resources__intro-section,
    .page-resources__guide-section,
    .page-resources__games-section,
    .page-resources__optimize-section,
    .page-resources__safety-section,
    .page-resources__faq-section,
    .page-resources__cta-section,
    .page-resources__hero-image-wrapper,
    .page-resources__cta-image-wrapper,
    .page-resources__guide-grid,
    .page-resources__games-grid,
    .page-resources__safety-grid,
    .page-resources__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }

    .page-resources__hero-section,
    .page-resources__intro-section,
    .page-resources__guide-section,
    .page-resources__games-section,
    .page-resources__optimize-section,
    .page-resources__safety-section,
    .page-resources__faq-section,
    .page-resources__cta-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-resources__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

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