/* style/resources.css */

/* Custom CSS Variables for this page (if any) */
:root {
    --page-resources-primary-color: #017439;
    --page-resources-secondary-color: #FFFFFF;
    --page-resources-text-dark: #333333;
    --page-resources-text-light: #ffffff;
    --page-resources-button-register: #C30808;
    --page-resources-button-login: #C30808;
    --page-resources-button-text-yellow: #FFFF00;
}

/* Base styles for the page content */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-resources-text-dark); /* Default text color for light backgrounds */
    background-color: var(--page-resources-secondary-color); /* Page default background */
}

/* Ensure body padding for fixed header */
.page-resources__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
}

/* Section styling */
.page-resources__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-resources__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--page-resources-primary-color);
}

.page-resources__paragraph {
    font-size: 17px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-resources-text-dark);
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjust padding-top for header offset, keep bottom padding */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-resources__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-resources__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-resources__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
}

.page-resources__hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--page-resources-text-light); /* Light text on dark background */
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--page-resources-text-light); /* Light text on dark background */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--page-resources-primary-color);
    color: var(--page-resources-text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-resources__cta-button:hover {
    background: #005a2e; /* Slightly darker green */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Introduction Section */
.page-resources__introduction .page-resources__section-title,
.page-resources__introduction .page-resources__paragraph {
    color: var(--page-resources-text-dark);
}

/* Download Guide Section */
.page-resources__download-guide .page-resources__section-title,
.page-resources__download-guide .page-resources__paragraph {
    color: var(--page-resources-text-dark);
}

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

.page-resources__guide-item {
    background: var(--page-resources-secondary-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-resources__guide-item:hover {
    transform: translateY(-5px);
}

.page-resources__guide-heading {
    font-size: 22px;
    color: var(--page-resources-primary-color);
    margin-bottom: 15px;
}

.page-resources__guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-resources__guide-list li {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--page-resources-text-dark);
}

.page-resources__guide-list li strong {
    color: var(--page-resources-primary-color);
}

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

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

/* Game Showcase Section */
.page-resources__games-showcase.page-resources__dark-bg {
    background: var(--page-resources-primary-color);
    color: var(--page-resources-text-light);
}

.page-resources__games-showcase .page-resources__section-title,
.page-resources__games-showcase .page-resources__paragraph {
    color: var(--page-resources-text-light);
}

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

.page-resources__game-card {
    background: var(--page-resources-secondary-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-resources-text-dark);
}

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

.page-resources__card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

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

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

.page-resources__card-description {
    font-size: 15px;
    color: var(--page-resources-text-dark);
}

/* Account Management Section */
.page-resources__account-management .page-resources__section-title,
.page-resources__account-management .page-resources__paragraph {
    color: var(--page-resources-text-dark);
}

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

.page-resources__management-item {
    background: var(--page-resources-secondary-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    color: var(--page-resources-text-dark);
}

.page-resources__management-item:hover {
    transform: translateY(-5px);
}

.page-resources__management-heading {
    font-size: 22px;
    color: var(--page-resources-primary-color);
    margin-bottom: 15px;
}

.page-resources__management-heading a {
    color: var(--page-resources-primary-color);
    text-decoration: none;
}

.page-resources__management-heading a:hover {
    text-decoration: underline;
}

.page-resources__management-description {
    font-size: 16px;
    color: var(--page-resources-text-dark);
}

/* Security Section */
.page-resources__security.page-resources__dark-bg {
    background: var(--page-resources-primary-color);
    color: var(--page-resources-text-light);
}

.page-resources__security .page-resources__section-title,
.page-resources__security .page-resources__paragraph {
    color: var(--page-resources-text-light);
}

.page-resources__security-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-resources__security-features li {
    font-size: 17px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: var(--page-resources-text-light);
}

.page-resources__security-features li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--page-resources-text-light); /* Ensure checkmark is visible */
}

/* Promotions Section */
.page-resources__promotions .page-resources__section-title,
.page-resources__promotions .page-resources__paragraph {
    color: var(--page-resources-text-dark);
}

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

.page-resources__promo-card.page-resources__dark-bg {
    background: var(--page-resources-primary-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-resources-text-light);
}

.page-resources__promo-card.page-resources__dark-bg:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-resources__promo-card .page-resources__card-title {
    color: var(--page-resources-text-light);
}

.page-resources__promo-card .page-resources__card-title a {
    color: var(--page-resources-text-light);
}

.page-resources__promo-card .page-resources__card-description {
    color: var(--page-resources-text-light);
}

/* Support Section */
.page-resources__support .page-resources__section-title,
.page-resources__support .page-resources__paragraph {
    color: var(--page-resources-text-dark);
}

.page-resources__contact-methods {
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-resources__contact-item {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--page-resources-text-dark);
}

/* FAQ Section */
.page-resources__faq-area.page-resources__dark-bg {
    background: var(--page-resources-primary-color);
    color: var(--page-resources-text-light);
}

.page-resources__faq-area .page-resources__section-title,
.page-resources__faq-area .page-resources__paragraph {
    color: var(--page-resources-text-light);
}

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

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.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;
    padding: 0 15px;
    opacity: 0;
    background: var(--page-resources-secondary-color);
    color: var(--page-resources-text-dark);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--page-resources-secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources__faq-question:active {
    background: #eeeeee;
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--page-resources-text-dark);
}

.page-resources__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--page-resources-primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: var(--page-resources-primary-color);
    transform: rotate(45deg); /* Rotate for 'x' effect, or change text to '-' */
}

/* News Updates Section */
.page-resources__news-updates .page-resources__section-title,
.page-resources__news-updates .page-resources__paragraph {
    color: var(--page-resources-text-dark);
}

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