/* style/resources.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-login-color: #EA7C07;
    --background-white: #FFFFFF;
    --background-dark: #26A9E0;
    --border-light: #e0e0e0;
}

.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default to dark text for light body background */
    background-color: var(--background-white); /* Assuming shared body background is light */
}

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

.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;
    padding: 80px 0;
    background-color: var(--background-dark); /* Use brand primary color for hero */
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.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: 40px;
    opacity: 0.9;
}

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

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
}

.page-resources__btn-primary {
    background-color: var(--button-login-color); /* Specific color for login/CTA */
    color: var(--text-light);
    border: 2px solid var(--button-login-color);
}

.page-resources__btn-primary:hover {
    background-color: darken(var(--button-login-color), 10%);
    border-color: darken(var(--button-login-color), 10%);
}

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

.page-resources__btn-primary--large,
.page-resources__btn-secondary--large {
    padding: 18px 35px;
    font-size: 1.1em;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.page-resources__dark-section .page-resources__section-title {
    color: var(--text-light);
}

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

.page-resources__light-bg {
    background-color: var(--background-white);
    color: var(--text-dark);
    padding: 60px 0;
}

.page-resources__dark-bg,
.page-resources__dark-section {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 60px 0;
}

.page-resources__introduction-section,
.page-resources__guide-section,
.page-resources__security-section,
.page-resources__faq-section,
.page-resources__cta-final-section {
    padding: 60px 0;
}

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

.page-resources__game-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
    color: var(--text-dark);
}

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

.page-resources__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
    padding: 0 15px;
}

.page-resources__card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.page-resources__card-description {
    font-size: 1em;
    color: var(--text-dark);
    padding: 0 15px;
}

.page-resources__guide-list,
.page-resources__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-resources__guide-list li,
.page-resources__security-list li {
    background-color: var(--secondary-color);
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.page-resources__guide-list li:hover,
.page-resources__security-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__guide-list li .page-resources__list-title,
.page-resources__security-list li .page-resources__list-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-resources__guide-list li .page-resources__list-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources__guide-list li .page-resources__list-title a:hover {
    text-decoration: underline;
}

.page-resources__guide-list li p,
.page-resources__security-list li p {
    font-size: 1em;
    line-height: 1.6;
}

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

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 40px;
}

.page-resources__faq-item {
    background-color: var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: var(--text-dark);
}

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

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

.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 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Ensure enough height for content */
    padding: 15px 30px 30px;
}

.page-resources__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
}

.page-resources__cta-final-section {
    text-align: center;
}

.page-resources__cta-final-section .page-resources__section-title {
    margin-bottom: 20px;
}

.page-resources__cta-final-section .page-resources__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page-resources__hero-section {
        min-height: 450px;
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

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

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

    .page-resources__hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 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-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;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Stack buttons vertically */
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-resources__text-block {
        font-size: 0.95em;
        text-align: left;
    }

    .page-resources__introduction-section,
    .page-resources__guide-section,
    .page-resources__security-section,
    .page-resources__faq-section,
    .page-resources__cta-final-section {
        padding: 40px 0;
    }

    .page-resources__container {
        padding: 0 15px; /* Add padding to content containers */
    }

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

    .page-resources__game-image {
        height: 180px;
    }

    .page-resources__game-card,
    .page-resources__guide-list li,
    .page-resources__security-list li,
    .page-resources__faq-item {
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    /* Ensure images in content areas are responsive and not smaller than 200px */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__game-image {
      min-width: 200px !important;
      min-height: 200px !important;
    }

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

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