/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Assuming body background is light */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 40px;
    background-color: #f8f8f8; /* Light background for the section */
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure image covers the area */
}

.page-about__hero-content {
    text-align: center;
    padding: 20px;
    background-color: #ffffff; /* Ensure white background for content block */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 0 20px; /* Add some margin for better visual */
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    color: #017439; /* Brand color for main title */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #333333;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-about__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-about__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand color */
    border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2b;
    border-color: #005f2b;
}

/* General Section Styles */
.page-about__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

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

.page-about__intro-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* Mission & Vision Section */
.page-about__mission-vision {
    padding: 60px 0;
    background-color: #fefefe;
}

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

.page-about__content-block {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-about__content-subtitle {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-about__content-block p {
    color: #555555;
    margin-bottom: 20px;
}

.page-about__image-inline {
    width: 100%;
    height: auto;
    max-width: 800px; /* Ensure images don't stretch too wide */
    border-radius: 8px;
    margin-top: 20px;
    object-fit: cover;
    display: block;
}

/* Why Choose Us Section */
.page-about__dark-section {
    background-color: #017439; /* Primary brand color for dark section */
    color: #ffffff; /* White text for dark background */
    padding: 60px 0;
}

.page-about__dark-section .page-about__section-title {
    color: #ffffff;
}

.page-about__dark-section .page-about__section-title::after {
    background-color: #FFFF00; /* Yellow accent for dark section title underline */
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-about__feature-card .page-about__card-title {
    font-size: 1.5em;
    color: #FFFF00; /* Yellow for card titles on dark background */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__feature-card p {
    color: #f0f0f0;
}

.page-about__cta-buttons--center {
    margin-top: 50px;
    text-align: center;
}

/* Game Offerings Section */
.page-about__game-offerings {
    padding: 60px 0;
    background-color: #fefefe;
}

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

.page-about__game-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__game-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Max width for game images */
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    display: block;
}

.page-about__game-card .page-about__card-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-about__game-card p {
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.page-about__btn-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push button to bottom */
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-link:hover {
    background-color: #005f2b;
}

/* Security & Fairness Section */
.page-about__security-fairness {
    padding: 60px 0;
    background-color: #f8f8f8;
}

/* Contact & Support Section */
.page-about__contact-support {
    padding: 60px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-about__contact-support .page-about__section-title {
    color: #ffffff;
}

.page-about__contact-support .page-about__section-title::after {
    background-color: #FFFF00;
}

.page-about__contact-support .page-about__intro-text {
    color: #f0f0f0;
}

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

.page-about__contact-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__contact-card .page-about__card-title {
    font-size: 1.6em;
    color: #FFFF00;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__contact-card p {
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

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

.page-about__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);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #017439;
    cursor: pointer;
    background-color: #f9f9f9;
    list-style: none; /* For details/summary */
}

/* Hide default details marker */
.page-about__faq-item summary::-webkit-details-marker,
.page-about__faq-item summary::marker {
    display: none;
    content: "";
}

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

.page-about__faq-qtext {
    flex-grow: 1;
    color: #333333; /* Ensure readability */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #C30808;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.1em;
    color: #555555;
}

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

    .page-about__main-title {
        font-size: clamp(1.8em, 4vw, 2.8em);
    }

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

    .page-about__content-grid,
    .page-about__features-grid,
    .page-about__game-categories,
    .page-about__contact-methods {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }

    .page-about__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

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

    .page-about__main-title {
        font-size: clamp(1.5em, 6vw, 2.2em) !important;
        margin-bottom: 15px;
    }

    .page-about__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* 通用图片与容器 */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        box-sizing: border-box !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-block,
    .page-about__feature-card,
    .page-about__game-card,
    .page-about__contact-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

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

    /* Other Content Modules */
    .page-about__section-title {
        font-size: 1.8em !important;
        margin-bottom: 30px;
    }
    .page-about__section-title::after {
        margin-top: 10px;
    }

    .page-about__intro-text {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-about__content-grid,
    .page-about__features-grid,
    .page-about__game-categories,
    .page-about__contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__content-subtitle {
        font-size: 1.5em;
    }

    .page-about__feature-card .page-about__card-title,
    .page-about__game-card .page-about__card-title,
    .page-about__contact-card .page-about__card-title {
        font-size: 1.3em;
    }

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

    .page-about__faq-answer {
        font-size: 1em;
        padding: 0 20px 15px 20px;
    }
}