.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body, which is var(--black-color) */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default for dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-resources__paragraph {
    margin-bottom: 1em;
    color: inherit; /* Inherit from parent section */
}

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-resources__hero-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #ffffff;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    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;
    font-size: 1.1em;
    cursor: pointer;
    text-align: center;
}

.page-resources__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

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

.page-resources__cta-group--center {
    justify-content: center;
    margin-top: 40px;
}

/* --- Intro Section --- */
.page-resources__intro-section,
.page-resources__registration-guide-section,
.page-resources__news-strategy-section,
.page-resources__cta-final-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-resources__intro-section .page-resources__section-title,
.page-resources__intro-section .page-resources__section-description,
.page-resources__registration-guide-section .page-resources__section-title,
.page-resources__registration-guide-section .page-resources__section-description,
.page-resources__news-strategy-section .page-resources__section-title,
.page-resources__news-strategy-section .page-resources__section-description,
.page-resources__cta-final-section .page-resources__section-title,
.page-resources__cta-final-section .page-resources__section-description {
    color: #333333; /* Ensure dark text on light background */
}

.page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-resources__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-resources__image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__image--left {
    margin-right: 20px;
}

.page-resources__image--right {
    margin-left: 20px;
}

.page-resources__text-block {
    flex: 1;
    max-width: 50%;
}

/* --- Game Guides Section --- */
.page-resources__game-guides-section,
.page-resources__faq-section,
.page-resources__video-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff;
}

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

.page-resources__grid--two-columns {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-resources__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: #333333; /* Dark text for light card background */
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-resources__card-title {
    font-size: 1.5em;
    margin: 20px 20px 10px 20px;
    font-weight: bold;
    color: #26A9E0; /* Brand color for titles */
}

.page-resources__card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #1a7bb0;
}

.page-resources__card-text {
    font-size: 1em;
    margin: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-resources__card-link {
    display: inline-flex;
    align-items: center;
    color: #EA7C07; /* Login color for general links */
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px 20px 20px;
    transition: color 0.3s ease;
}

.page-resources__card-link:hover {
    color: #d46a00;
}

.page-resources__arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-resources__card-link:hover .page-resources__arrow {
    transform: translateX(5px);
}

/* --- FAQ Section --- */
.page-resources__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.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);
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

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

.page-resources__btn-primary--center {
    display: block;
    margin: 40px auto 0 auto;
    width: fit-content;
}

/* --- Video Section --- */
.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.page-resources__video-caption {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    color: #f0f0f0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__grid--two-columns {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__main-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__cta-group {
        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-left: 15px;
        padding-right: 15px;
    }
    .page-resources__cta-group,
    .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;
    }
    .page-resources__cta-group {
        display: flex;
        flex-direction: column; 
    }

    .page-resources__intro-section,
    .page-resources__game-guides-section,
    .page-resources__registration-guide-section,
    .page-resources__faq-section,
    .page-resources__news-strategy-section,
    .page-resources__video-section,
    .page-resources__cta-final-section {
        padding: 60px 0;
    }

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

    .page-resources__content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .page-resources__content-wrapper--reverse {
        flex-direction: column; /* Revert to column for mobile */
    }

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

    .page-resources__section,
    .page-resources__card,
    .page-resources__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources__text-block {
        max-width: 100%;
    }

    .page-resources__grid {
        grid-template-columns: 1fr;
    }
    .page-resources__grid--two-columns {
        grid-template-columns: 1fr;
    }

    .page-resources__card-image {
        height: 200px; /* Adjust height for mobile cards */
    }

    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .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-wrapper {
        padding-bottom: 56.25% !important; /* 16:9 Aspect Ratio */
    }
}

/* --- Color Contrast Classes (Smart Selection) --- */
.page-resources__dark-bg {
    color: #ffffff; 
}

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

/* Ensure all links inside main content have proper contrast */
.page-resources a:not([class*="btn"]) {
    color: #EA7C07; /* Use login color for general links */
    text-decoration: underline;
}

.page-resources a:not([class*="btn"]):hover {
    color: #d46a00;
    text-decoration: none;
}