/* style/resources-game-strategies.css */

/* Core Styles */
.page-resources-game-strategies {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #121212; /* Inherited from shared, but good to be explicit for context */
}

/* Hero Section */
.page-resources-game-strategies__hero-section {
    position: relative;
    padding: 100px 0; /* Adjusted for header offset if needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    background-color: #017439; /* Brand color as background */
}

.page-resources-game-strategies__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Slightly transparent to let background color show */
}

.page-resources-game-strategies__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.page-resources-game-strategies__hero-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

/* General Buttons */
.page-resources-game-strategies__btn-primary,
.page-resources-game-strategies__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-game-strategies__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom color for Register/Login text */
    border: 2px solid #C30808;
}

.page-resources-game-strategies__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

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

.page-resources-game-strategies__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* General Section Styling */
.page-resources-game-strategies__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-resources-game-strategies__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-resources-game-strategies__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-resources-game-strategies__text-block {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: justify;
    margin-bottom: 30px;
}

.page-resources-game-strategies__content-image {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Strategy Grid Section */
.page-resources-game-strategies__game-strategies-section {
    background-color: #1a1a1a; /* Slightly lighter dark background */
    padding: 60px 0;
}

.page-resources-game-strategies__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources-game-strategies__strategy-card {
    background: rgba(255, 255, 255, 0.1); /* Light on dark card background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources-game-strategies__strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-game-strategies__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
    max-width: 100%; /* Important for responsiveness */
}

.page-resources-game-strategies__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows title to take available space */
}

.page-resources-game-strategies__card-link {
    color: #017439; /* Brand color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-game-strategies__card-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.page-resources-game-strategies__card-description {
    font-size: 0.95em;
    color: #cccccc;
    text-align: justify;
}

/* Advanced Tips Section */
.page-resources-game-strategies__advanced-tips-section {
    padding: 60px 0;
}

.page-resources-game-strategies__tips-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources-game-strategies__list-item {
    background: rgba(255, 255, 255, 0.08); /* Slightly different card background */
    border-left: 5px solid #017439;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-resources-game-strategies__list-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-resources-game-strategies__list-description {
    font-size: 1em;
    color: #cccccc;
    text-align: justify;
}

/* CTA Section */
.page-resources-game-strategies__cta-section {
    background-color: #017439; /* Brand color background */
    padding: 80px 0;
    text-align: center;
}

.page-resources-game-strategies__cta-section .page-resources-game-strategies__section-title {
    color: #ffffff;
}

.page-resources-game-strategies__cta-section .page-resources-game-strategies__section-title::after {
    background-color: #ffffff;
}

.page-resources-game-strategies__cta-section .page-resources-game-strategies__text-block {
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-resources-game-strategies__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%; /* For mobile responsiveness */
    max-width: 100%; /* For mobile responsiveness */
    overflow: hidden; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
}

/* FAQ Section */
.page-resources-game-strategies__faq-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

.page-resources-game-strategies__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources-game-strategies__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-game-strategies__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #017439; /* Brand color for question background */
    transition: background-color 0.3s ease;
}

.page-resources-game-strategies__faq-question:hover {
    background-color: #028e46; /* Slightly darker hover */
}

.page-resources-game-strategies__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources-game-strategies__faq-item.active .page-resources-game-strategies__faq-toggle {
    transform: rotate(45deg); /* Plus to minus visual effect */
}

.page-resources-game-strategies__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Adjust padding for consistency with question */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #cccccc;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
}

.page-resources-game-strategies__faq-item.active .page-resources-game-strategies__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 20px 25px;
}

.page-resources-game-strategies__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1em;
    color: #cccccc;
    text-align: justify;
}

/* Universal Image Styling for content area */
.page-resources-game-strategies img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures images are block level for max-width to work */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources-game-strategies__hero-title {
        font-size: 3em;
    }

    .page-resources-game-strategies__hero-description {
        font-size: 1.2em;
    }

    .page-resources-game-strategies__section-title {
        font-size: 2em;
    }

    .page-resources-game-strategies__container {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-resources-game-strategies__hero-section {
        padding-top: 0; /* shared handles body padding-top */
        min-height: 450px;
    }

    .page-resources-game-strategies__hero-content {
        padding: 15px;
    }

    .page-resources-game-strategies__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-resources-game-strategies__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-resources-game-strategies__hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 产品展示图区域 (Strategy Grid) */
    .page-resources-game-strategies__strategy-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-resources-game-strategies__strategy-card {
        padding: 20px;
    }

    .page-resources-game-strategies__card-image {
        height: 180px; /* Adjust height for mobile */
    }

    /* 通用图片与容器 */
    .page-resources-game-strategies img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-resources-game-strategies__section,
    .page-resources-game-strategies__card,
    .page-resources-game-strategies__container,
    .page-resources-game-strategies__strategy-card,
    .page-resources-game-strategies__list-item,
    .page-resources-game-strategies__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-resources-game-strategies__btn-primary,
    .page-resources-game-strategies__btn-secondary,
    .page-resources-game-strategies a[class*="button"],
    .page-resources-game-strategies 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-game-strategies__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 15px; /* Adjusted gap for mobile */
        flex-direction: column; /* Stack buttons vertically */
    }

    /* 其他内容模块 (e.g., Advanced Tips, FAQ) */
    .page-resources-game-strategies__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources-game-strategies__text-block {
        font-size: 1em;
    }

    .page-resources-game-strategies__list-item {
        padding: 20px;
    }

    .page-resources-game-strategies__list-title {
        font-size: 1.2em;
    }

    .page-resources-game-strategies__list-description {
        font-size: 0.95em;
    }

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

    .page-resources-game-strategies__faq-answer {
        padding: 15px 20px;
    }

    .page-resources-game-strategies__faq-item.active .page-resources-game-strategies__faq-answer {
        padding: 15px 20px;
    }
}