/* style/resources.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styles */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text on dark body background */
    background-color: #1a1a2e; /* Inherited from shared.css body, but ensure consistency */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #ffffff;
    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;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom color for register/login font */
    border: 2px solid #C30808;
    margin-right: 15px;
}

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

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

.page-resources__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    border-color: #ffffff;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #017439; /* Brand color for hero background */
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dimmed to make text stand out */
    display: block;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

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

/* Content Section (Dark Background) */
.page-resources__dark-section {
    background-color: #111122; /* Slightly darker than body for distinction */
    padding: 80px 0;
}

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

.page-resources__feature-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.page-resources__feature-card:hover {
    transform: translateY(-10px);
}

.page-resources__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

.page-resources__card-text {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take available space */
}

.page-resources__card-link {
    display: inline-block;
    color: #FFFF00; /* Custom font color for register/login */
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Push link to bottom */
}

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

/* Responsible Gambling Section */
.page-resources__responsible-gambling-section {
    background-color: #017439; /* Brand color */
    padding: 80px 0;
    color: #ffffff;
}

.page-resources__responsible-gambling-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.page-resources__responsible-gambling-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.page-resources__responsible-gambling-text {
    flex: 1;
    max-width: 50%;
}

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

.page-resources__list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-resources__list-item {
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-resources__link-inline {
    color: #FFFF00; /* Custom font color for register/login */
    text-decoration: underline;
}

.page-resources__link-inline:hover {
    color: #ffffff;
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: #f8f9fa; /* Light background for FAQ */
    padding: 80px 0;
    color: #333333; /* Dark text on light background */
}

.page-resources__faq-section .page-resources__section-title,
.page-resources__faq-section .page-resources__section-description {
    color: #333333; /* Override for light section */
}

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f0f0f0;
    list-style: none; /* For details/summary */
}

.page-resources__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-resources__faq-item[open] > .page-resources__faq-question {
    background-color: #e0e0e0;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form cross */
}

.page-resources__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #e0e0e0;
}

.page-resources__faq-answer p {
    margin: 0;
}

/* Call to Action Section */
.page-resources__cta-section {
    background-color: #1a1a2e; /* Dark background */
    padding: 80px 0;
    text-align: center;
}

.page-resources__cta-content {
    max-width: 900px;
}

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__responsible-gambling-content {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__responsible-gambling-image,
    .page-resources__responsible-gambling-text {
        max-width: 100%;
    }
    .page-resources__list {
        text-align: left;
        padding-left: 40px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        padding: 10px 15px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-description {
        font-size: 0.95em;
    }
    .page-resources__dark-section,
    .page-resources__responsible-gambling-section,
    .page-resources__faq-section,
    .page-resources__cta-section {
        padding: 50px 0;
    }

    .page-resources__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__feature-image {
        height: 200px;
    }
    .page-resources__card-title {
        font-size: 1.5em;
    }

    .page-resources__sub-title {
        font-size: 1.8em;
    }
    .page-resources__list {
        padding-left: 15px;
    }

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

    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__cta-description {
        font-size: 1.1em;
    }

    /* Mobile image and video responsive */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .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;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-resources__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}