/* General styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main from custom colors, assuming dark background */
    background-color: #B71C1C; /* Background from custom colors */
}

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

.page-about__section {
    padding: 60px 0;
    text-align: center;
}

.page-about__section-title {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFD86A; /* Gold-like color for titles */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-about__section-title--light {
    color: #FFF5E1;
}

.page-about__section-description {
    font-size: 1.2em;
    color: #FFF5E1;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, relying on body padding for header offset */
    background-color: #B71C1C; /* Deep Red background */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-about__hero-image {
    width: 100%;
    max-height: 600px; /* Limit height to prevent excessive size */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover container while maintaining aspect ratio */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 800;
    color: #FFD86A; /* Gold-like color */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.3em;
    color: #FFF5E1;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Call to Action Buttons */
.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't exceed container width */
    min-width: 180px; /* Minimum width for buttons */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
    color: #7A0E0E; /* Deep Red text for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-about__btn-secondary {
    background: transparent;
    color: #FFD86A; /* Gold-like text */
    border: 2px solid #FFD86A; /* Gold-like border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary:hover {
    background: rgba(255, 216, 106, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Article Body General Styles */
.page-about__article-body {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    color: #FFF5E1;
    font-size: 1.1em;
}

.page-about__article-body h3 {
    font-size: 1.8em;
    color: #FFD86A;
    margin-top: 30px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-about__article-body p {
    margin-bottom: 1em;
}

.page-about__article-body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1em;
}

.page-about__article-body li {
    margin-bottom: 0.5em;
}

.page-about__article-body a {
    color: #F4D34D; /* Gold link color */
    text-decoration: underline;
}

.page-about__article-body a:hover {
    color: #FFCC66; /* Glow on hover */
}

.page-about__article-figure {
    margin: 30px 0;
    text-align: center;
}

.page-about__article-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-about__article-figure figcaption {
    margin-top: 10px;
    font-style: italic;
    color: #FFF5E1;
    font-size: 0.9em;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    background-color: #C91F17; /* Main color */
    padding: 80px 0;
}

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

.page-about__feature-card {
    background-color: #D32F2F; /* Card BG from custom colors */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #F2B544; /* Border from custom colors */
}

.page-about__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-about__feature-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
    object-fit: cover;
}

.page-about__card-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #FFD86A; /* Gold-like color */
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-about__card-description {
    font-size: 1em;
    color: #FFF5E1;
}

/* Game List Section */
.page-about__game-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
}

.page-about__game-list li {
    background-color: #D32F2F; /* Card BG */
    border: 1px solid #F2B544; /* Border */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #FFF5E1;
    font-size: 1.1em;
}

.page-about__game-list li strong {
    color: #FFD86A;
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    background-color: #E53935; /* Auxiliary color */
    padding: 80px 0;
    color: #FFF5E1;
}

.page-about__responsible-gaming-section .page-about__section-title {
    color: #FFF5E1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__responsible-gaming-section .page-about__article-body {
    color: #FFF5E1;
}

.page-about__responsible-gaming-section .page-about__article-figure figcaption {
    color: #FFF5E1;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
    background-color: #B71C1C; /* Background color */
}

.page-about__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #F2B544; /* Border from custom colors */
    overflow: hidden;
    background: #D32F2F; /* Card BG */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
details.page-about__faq-item summary.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #FFD86A; /* Gold text */
    font-weight: 600;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
    display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
    background: #C91F17; /* Main color on hover */
}
.page-about__faq-qtext {
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #FFD86A;
}
.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #FFD86A;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
    padding: 0 25px 20px;
    background: #C91F17; /* Main color */
    border-radius: 0 0 10px 10px;
    color: #FFF5E1;
    text-align: left;
}
.page-about__faq-answer p {
    margin-bottom: 1em;
}

/* Final CTA Section */
.page-about__cta-section {
    background-color: #C91F17; /* Main color */
    padding: 80px 0;
    color: #FFF5E1;
}

.page-about__cta-section .page-about__section-title {
    color: #FFD86A;
}

.page-about__cta-section .page-about__section-description {
    color: #FFF5E1;
}

.page-about__button-group {
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__container {
        padding: 20px 30px;
    }

    .page-about__hero-content {
        padding: 15px;
    }

    .page-about__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

    .page-about__hero-description {
        font-size: 1.1em;
    }

    .page-about__section-title {
        font-size: 2.5em;
    }

    .page-about__article-body {
        font-size: 1em;
    }

    .page-about__feature-card {
        padding: 25px;
    }

    .page-about__card-title {
        font-size: 1.6em;
    }

    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px 20px;
    }

    .page-about__faq-qtext {
        font-size: 1.1em;
    }

    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding: 20px 15px !important; /* Ensure padding on mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO 主图区域 */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding */
    }
    .page-about__hero-image img {
        object-fit: contain !important; /* Prevent cropping */
        aspect-ratio: unset !important; /* Reset aspect ratio for better fit */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__hero-content {
        padding: 10px;
        margin-bottom: 20px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust H1 size for mobile */
        margin-bottom: 10px;
    }
    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* 按钮与按钮容器 */
    .page-about__cta-buttons,
    .page-about__button-group {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        min-width: unset !important; /* Remove min-width for full flexibility */
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* 通用图片与容器 */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__feature-card,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__section {
        padding: 40px 0;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-about__section-title {
        font-size: clamp(2em, 7vw, 2.2em); /* Adjust title size for mobile */
        line-height: 1.3;
        margin-bottom: 15px;
    }
    .page-about__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-about__article-body {
        font-size: 0.95em;
        padding: 0 10px; /* Slight horizontal padding for text */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__article-body h3 {
        font-size: 1.5em;
    }
    .page-about__article-figure {
        margin: 20px 0;
    }
    .page-about__article-figure img {
        border-radius: 5px;
    }
    .page-about__article-figure figcaption {
        font-size: 0.85em;
    }

    /* Why Choose Us Grid */
    .page-about__why-choose-us-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-about__feature-card {
        padding: 20px;
    }
    .page-about__card-title {
        font-size: 1.4em;
    }
    .page-about__card-description {
        font-size: 0.95em;
    }

    /* Game List */
    .page-about__game-list li {
        padding: 15px;
        font-size: 1em;
    }
    .page-about__game-list li strong {
        font-size: 1.1em;
    }

    /* FAQ Section */
    .page-about__faq-list {
        margin-top: 20px;
    }
    details.page-about__faq-item {
        margin-bottom: 10px;
        border-radius: 8px;
    }
    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px 18px;
    }
    .page-about__faq-qtext {
        font-size: 1em;
    }
    .page-about__faq-toggle {
        font-size: 20px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 18px 15px;
        font-size: 0.95em;
    }
}