/* style/newbie-guide.css */
.page-newbie-guide {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Assuming body handles the dark background */
}

/* Hero Section */
.page-newbie-guide__hero-section {
    position: relative;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    background-color: #017439; /* Use brand color for hero background */
    color: #ffffff;
}

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

.page-newbie-guide__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.8);
}

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

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

.page-newbie-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

/* General Section Styling */
.page-newbie-guide__section {
    padding: 60px 0;
    background-color: #ffffff; /* Default section background */
    color: #333333; /* Default text color for light background */
}

.page-newbie-guide__section:nth-of-type(even) {
    background-color: #f5f5f5; /* Alternate background for readability */
}

.page-newbie-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-newbie-guide__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-newbie-guide__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #017439;
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-newbie-guide__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
}

/* Card Layout */
.page-newbie-guide__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-newbie-guide__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-newbie-guide__card:hover {
    transform: translateY(-10px);
}

.page-newbie-guide__card-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
}

.page-newbie-guide__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-newbie-guide__card-text {
    font-size: 1em;
    color: #555555;
}

/* Image and Text Layout */
.page-newbie-guide__image-and-text-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.page-newbie-guide__text-content {
    flex: 1;
}

.page-newbie-guide__image-wrapper {
    flex: 1;
    text-align: center;
}

.page-newbie-guide__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-newbie-guide__image-full-width {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Numbered List */
.page-newbie-guide__numbered-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-newbie-guide__numbered-list li {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #333333;
}

.page-newbie-guide__numbered-list li strong {
    color: #017439;
    font-size: 1.2em;
    display: block;
    margin-bottom: 5px;
}

.page-newbie-guide__unordered-list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 30px;
}

.page-newbie-guide__unordered-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333333;
}

.page-newbie-guide__unordered-list li strong {
    color: #017439;
}

/* CTA Buttons */
.page-newbie-guide__btn-primary,
.page-newbie-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-newbie-guide__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-newbie-guide__btn-primary:hover {
    background-color: #e02020;
    transform: translateY(-3px);
}

.page-newbie-guide__btn-secondary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-newbie-guide__btn-secondary:hover {
    background-color: #005a2e;
    transform: translateY(-3px);
}

.page-newbie-guide__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Featured Games Grid */
.page-newbie-guide__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-newbie-guide__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333333;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-newbie-guide__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-newbie-guide__game-card-title {
    font-size: 1.4em;
    color: #017439;
    padding: 15px;
    text-align: center;
    margin-top: auto;
}

/* FAQ Section */
.page-newbie-guide__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-newbie-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    font-size: 1.2em;
    color: #017439;
    font-weight: bold;
}

.page-newbie-guide__faq-question:hover {
    background-color: #f0f0f0;
}

.page-newbie-guide__faq-question h3 {
    margin: 0;
    font-size: 1em;
    color: #017439;
}

.page-newbie-guide__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439;
}

.page-newbie-guide__faq-item.active .page-newbie-guide__faq-toggle {
    transform: rotate(45deg);
}

.page-newbie-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-newbie-guide__faq-item.active .page-newbie-guide__faq-answer {
    max-height: 1000px !important;
    padding: 15px 20px;
}

.page-newbie-guide__faq-answer p {
    margin: 0;
    color: #555555;
}

/* Final CTA Section */
.page-newbie-guide__cta-final {
    padding: 80px 0;
    text-align: center;
}

.page-newbie-guide__cta-final .page-newbie-guide__container {
    padding: 40px;
    border-radius: 15px;
    background-color: #017439;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-newbie-guide__cta-final .page-newbie-guide__section-title {
    color: #ffffff;
}

.page-newbie-guide__cta-final .page-newbie-guide__section-title::after {
    background-color: #ffffff;
}

.page-newbie-guide__cta-final .page-newbie-guide__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin: 20px auto 40px auto;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-newbie-guide__hero-title {
        font-size: 2.8em;
    }
    .page-newbie-guide__hero-description {
        font-size: 1.1em;
    }
    .page-newbie-guide__section-title {
        font-size: 2em;
    }
    .page-newbie-guide__image-and-text-layout {
        flex-direction: column;
        text-align: center;
    }
    .page-newbie-guide__text-content,
    .page-newbie-guide__image-wrapper {
        flex: none;
        width: 100%;
    }
    .page-newbie-guide__card-image {
        height: 200px;
    }
    .page-newbie-guide__game-card-image {
        height: 180px;
    }
    .page-newbie-guide__btn-primary,
    .page-newbie-guide__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-newbie-guide__hero-section {
        padding-top: 0; /* Assuming shared handles body padding-top */
        padding-bottom: 60px;
        min-height: 450px;
    }
    .page-newbie-guide__hero-content {
        padding: 15px;
    }
    .page-newbie-guide__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-newbie-guide__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-newbie-guide__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin: 0 auto;
    }

    /* LOGO 轮播区域: This page does not contain a logo carousel, so no specific styles for it. */

    /* 游戏展示区域 */
    .page-newbie-guide__games-grid {
        grid-template-columns: 1fr; /* Single column for games */
    }
    .page-newbie-guide__game-card-image {
        height: 150px;
    }
    .page-newbie-guide__game-card-title {
        font-size: 1.2em;
    }

    /* 通用图片与容器 */
    .page-newbie-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    /* Note: .page-newbie-guide__logo-item is not present on this page, so no explicit exclusion is needed here, but the general rule is applied. */

    .page-newbie-guide__section,
    .page-newbie-guide__card,
    .page-newbie-guide__container,
    .page-newbie-guide__image-wrapper,
    .page-newbie-guide__text-content,
    .page-newbie-guide__game-card,
    .page-newbie-guide__faq-item,
    .page-newbie-guide__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-newbie-guide__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-newbie-guide__btn-primary,
    .page-newbie-guide__btn-secondary,
    .page-newbie-guide a[class*="button"],
    .page-newbie-guide 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; /* Ensure some internal padding */
        padding-right: 15px;
    }
    .page-newbie-guide__hero-cta-buttons,
    .page-newbie-guide__cta-final .page-newbie-guide__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px; /* Adjust gap for stacked buttons */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to the button container */
    }

    /* 其他内容模块 */
    .page-newbie-guide__section {
        padding: 40px 0;
    }
    .page-newbie-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-newbie-guide__text-block,
    .page-newbie-guide__card-text,
    .page-newbie-guide__numbered-list li,
    .page-newbie-guide__unordered-list li,
    .page-newbie-guide__faq-answer p {
        font-size: 0.95em;
    }
    .page-newbie-guide__card {
        padding: 20px;
    }
    .page-newbie-guide__card-title {
        font-size: 1.4em;
    }
    .page-newbie-guide__faq-question {
        padding: 15px;
        font-size: 1.1em;
    }
    .page-newbie-guide__faq-question h3 {
        font-size: 0.95em;
    }
    .page-newbie-guide__faq-item.active .page-newbie-guide__faq-answer {
        padding: 10px 15px;
    }
    .page-newbie-guide__cta-final {
        padding: 60px 0;
    }
    .page-newbie-guide__cta-final .page-newbie-guide__container {
        padding: 30px 20px;
    }
    .page-newbie-guide__cta-final .page-newbie-guide__text-block {
        margin: 15px auto 30px auto;
    }
}