.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
}

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

/* HERO Banner */
.page-resources__hero-banner {
    padding: 80px 0;
    text-align: center;
    background-color: #1A2B3C; /* Auxiliary color as dark background */
    color: #ffffff;
    position: relative;
    padding-top: 80px; /* Content padding, assuming shared.css handles body padding-top */
}

.page-resources__main-title {
    font-size: 48px;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-resources__intro-text {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-resources__cta-buttons {
    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;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: #FFD700; /* Gold background */
    color: #1A2B3C; /* Dark blue text */
    border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
    background-color: #e6c200;
    color: #0d1a26;
    border-color: #e6c200;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A2B3C;
}

/* General Section Styling */
.page-resources__section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #FFD700; /* Gold for section titles */
}

.page-resources__light-bg {
    background-color: #1A2B3C; /* Dark blue background for light text */
    color: #ffffff;
    padding: 60px 0;
}

.page-resources__dark-bg {
    background-color: #0d1a26; /* Slightly lighter dark background for contrast */
    color: #ffffff;
    padding: 60px 0;
}

/* Guide Section */
.page-resources__guide-grid,
.page-resources__game-review-grid,
.page-resources__security-support-grid,
.page-resources__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources__guide-card,
.page-resources__game-review-card,
.page-resources__info-card,
.page-resources__news-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #f0f0f0;
}

.page-resources__guide-card:hover,
.page-resources__game-review-card:hover,
.page-resources__info-card:hover,
.page-resources__news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__guide-card img,
.page-resources__game-review-card img,
.page-resources__info-card img,
.page-resources__news-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    max-width: 100%; /* Ensure images are responsive */
}

.page-resources__card-title,
.page-resources__item-title {
    font-size: 22px;
    font-weight: 600;
    margin: 20px 20px 10px;
    color: #FFD700; /* Gold for card titles */
    line-height: 1.3;
}

.page-resources__card-title a,
.page-resources__item-title a {
    color: #FFD700; /* Gold for card title links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover,
.page-resources__item-title a:hover {
    color: #e6c200;
}

.page-resources__card-description,
.page-resources__item-description {
    font-size: 16px;
    margin: 0 20px 20px;
    flex-grow: 1;
    color: #cccccc;
}

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

.page-resources__promotion-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #f0f0f0;
    text-align: center;
}

.page-resources__promotion-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__promotion-item img {
    width: 100%;
    height: 200px; /* Smaller height for promotion images */
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.page-resources__promotion-item .page-resources__btn-primary {
    margin: 0 20px 20px;
    align-self: center;
    width: calc(100% - 40px);
}

/* News Section */
.page-resources__news-date {
    font-size: 14px;
    color: #aaaaaa;
    margin: 0 20px 20px;
    display: block;
}

/* FAQ Section */
.page-resources__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for FAQ items */
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background-color: #1A2B3C; /* Dark blue background for question */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #ffffff;
}

.page-resources__faq-question:hover {
    background-color: #2a3d52;
    border-color: rgba(255, 255, 255, 0.2);
}

.page-resources__faq-question:active {
    background-color: #3b506b;
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #FFD700; /* Gold for FAQ question text */
}

.page-resources__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold for FAQ toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: #ffffff; /* White when active */
    transform: rotate(45deg); /* Rotate for minus sign */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    color: #cccccc;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px !important;
    opacity: 1;
    background-color: #1A2B3C; /* Dark blue background for answer */
    border-radius: 0 0 5px 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

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

/* Responsive Design for smaller screens */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 40px;
    }

    .page-resources__section-title {
        font-size: 30px;
    }

    .page-resources__guide-card img,
    .page-resources__game-review-card img,
    .page-resources__info-card img,
    .page-resources__news-card img {
        height: 220px;
    }
}

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

    /* HERO Banner */
    .page-resources__hero-banner {
        padding: 40px 0;
        padding-top: 40px !important; /* Adjusted for mobile, assuming shared.css handles body padding-top */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-resources__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-resources__intro-text {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    /* Buttons */
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Sections */
    .page-resources__container {
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

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

    /* Grids */
    .page-resources__guide-grid,
    .page-resources__game-review-grid,
    .page-resources__security-support-grid,
    .page-resources__news-grid,
    .page-resources__promotion-list {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-resources__guide-card,
    .page-resources__game-review-card,
    .page-resources__info-card,
    .page-resources__news-card,
    .page-resources__promotion-item {
        margin: 0 auto;
        max-width: 400px; /* Constrain card width */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources__guide-card img,
    .page-resources__game-review-card img,
    .page-resources__info-card img,
    .page-resources__news-card img {
        
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__card-title,
    .page-resources__item-title {
        font-size: 18px;
        margin: 15px 15px 8px;
    }

    .page-resources__card-description,
    .page-resources__item-description {
        font-size: 15px;
        margin: 0 15px 15px;
    }

    .page-resources__promotion-item img {
        
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__promotion-item .page-resources__btn-primary {
        margin: 0 15px 15px;
        width: calc(100% - 30px) !important;
    }

    .page-resources__news-date {
        margin: 0 15px 15px;
    }

    /* FAQ Section Mobile */
    .page-resources__faq-list {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-resources__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-resources__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }

    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

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

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }
}