/* style/resources.css */

/* Base styles for the page-resources scope */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    min-height: 500px; /* Adjust as needed */
    overflow: hidden;
    color: #ffffff;
    background-color: #26A9E0;
    padding-top: var(--header-offset, 120px); /* Adjust if shared.css doesn't set body padding */
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Subtle background image */
}

.page-resources__hero-section .page-resources__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

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

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

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 14px 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;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

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

/* General Content Area */
.page-resources__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff;
    color: #333333;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-resources__card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #333333;
    border: 1px solid #e0e0e0;
}

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

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

.page-resources__card-title {
    font-size: 1.5em;
    padding: 20px 20px 10px;
    font-weight: bold;
    color: #26A9E0;
}

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

.page-resources__card-title a:hover {
    text-decoration: underline;
}

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

.page-resources__card-link {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 20px 20px;
    background-color: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.page-resources__card-link:hover {
    background-color: #1e87b7;
}

/* Security and Fairness Section */
.page-resources__security-fairness {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-resources__security-fairness .page-resources__section-title {
    color: #ffffff;
}

.page-resources__security-fairness .page-resources__text-block {
    color: #f0f0f0;
}

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

.page-resources__image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-resources__content-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.page-resources__text-wrapper {
    flex: 1;
}

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

.page-resources__security-fairness .page-resources__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #ffffff;
    margin-top: 30px;
}

.page-resources__security-fairness .page-resources__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b7;
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: #f9f9f9;
}

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

.page-resources__faq-item {
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

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

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

.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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

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

.page-resources__faq-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

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

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

/* News and Updates Section */
.page-resources__news-updates {
    background-color: #eaf6fc; /* Lighter shade of brand blue */
}

.page-resources__news-updates .page-resources__card {
    background-color: #ffffff;
    border: 1px solid #d0e7f5;
}

.page-resources__news-updates .page-resources__card-title a {
    color: #26A9E0;
}

.page-resources__news-updates .page-resources__card-link {
    background-color: #26A9E0;
}

/* Call to Action Section (Bottom) */
.page-resources__cta-section {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__cta-section .page-resources__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

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

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

.page-resources__cta-section .page-resources__btn-primary {
    background-color: #EA7C07;
    border-color: #EA7C07;
}

.page-resources__cta-section .page-resources__btn-primary:hover {
    background-color: #d66f06;
    border-color: #d66f06;
}

.page-resources__cta-section .page-resources__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

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

.page-resources__cta-image {
    position: absolute;
    bottom: -50px; /* Adjust to show part of the image */
    right: -100px;
    opacity: 0.15;
    width: 600px; /* Example size, will be responsive */
    height: auto;
    z-index: 0;
    transform: rotate(10deg);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__flex-container {
        flex-direction: column;
    }
    .page-resources__text-wrapper, .page-resources__image-wrapper {
        width: 100%;
    }
    .page-resources__cta-image {
        width: 400px;
        right: -50px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__content-area {
        padding: 40px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__text-block {
        font-size: 0.95em;
    }
    .page-resources__grid {
        grid-template-columns: 1fr;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }
    .page-resources__sub-title {
        font-size: 1.5em;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 20px 20px;
    }
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        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-section .page-resources__cta-buttons {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Image, Video, and Container responsive rules for mobile */
    .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__flex-container,
    .page-resources__image-wrapper,
    .page-resources__text-wrapper,
    .page-resources__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Ensure no horizontal scroll */
    }
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
    }
    .page-resources__cta-image {
        display: none; /* Hide on small screens for better focus */
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__sub-title {
        font-size: 1.3em;
    }
    .page-resources__card-title {
        font-size: 1.2em;
    }
    .page-resources__faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 8px 15px 15px;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
}