/* style/about.css */

/* Base styles for the page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-about__section-title--light {
    color: #ffffff; /* White color for titles on dark backgrounds */
}

.page-about__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__text-block p {
    margin-bottom: 1em;
    color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles main offset */
    padding-bottom: 40px;
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-about__hero-content {
    text-align: center;
    padding: 20px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* H1 font size constraint */
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

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

/* Call to Action Buttons */
.page-about__cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin: 10px;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    border: 2px solid transparent;
}

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

.page-about__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* General Content Sections */
.page-about__introduction-section,
.page-about__security-section,
.page-about__social-responsibility-section,
.page-about__cta-section {
    padding: 60px 0;
    background-color: transparent; /* Body background handles the main dark color */
}

.page-about__products-section,
.page-about__support-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

.page-about__dark-bg {
    background-color: #121212; /* Explicitly use body background color for some elements */
    color: #ffffff;
}

.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
}

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.page-about__values-list,
.page-about__security-list,
.page-about__responsible-gaming-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-about__value-item,
.page-about__security-item,
.page-about__responsible-gaming-item {
    background-color: rgba(255, 255, 255, 0.05); /* Subtle background for list items */
    padding: 15px;
    margin-bottom: 10px;
    border-left: 5px solid #26A9E0;
    border-radius: 5px;
    color: #f0f0f0;
}

/* Products Grid */
.page-about__products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-about__product-card {
    background-color: #2a2a2a; /* Darker card background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.page-about__product-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-about__product-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin: 20px 15px 10px;
}

.page-about__product-description {
    font-size: 1em;
    color: #cccccc;
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-about__product-link {
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    max-width: calc(100% - 30px); /* Account for padding */
    align-self: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Support Section */
.page-about__support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-about__support-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #ffffff;
}

.page-about__support-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-about__support-description {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
}

.page-about__support-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__support-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-about__support-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Final CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__hero-image-wrapper {
        max-height: 400px;
    }
    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__content-wrapper--reverse {
        flex-direction: column; /* Keep same order for content, reverse for image */
    }
    .page-about__image-block {
        order: -1; /* Image appears first in column for default content wrapper */
    }
    .page-about__content-wrapper--reverse .page-about__image-block {
        order: 0; /* Image appears second in column for reverse content wrapper */
    }
    .page-about__product-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding: 0 15px !important;
    }

    /* HERO 主图区域 */
    .page-about__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px !important;
    }
    .page-about__hero-image-wrapper {
        max-height: 300px;
    }
    .page-about__main-title {
        font-size: clamp(2em, 8vw, 2.5em) !important;
        margin-bottom: 15px !important;
    }
    .page-about__hero-description {
        font-size: 1em !important;
        margin-bottom: 20px !important;
    }

    /* 产品展示图区域 (General images and cards) */
    .page-about__products-grid {
        grid-template-columns: 1fr !important; /* Single column */
        gap: 20px !important;
    }
    .page-about__product-card {
        padding-bottom: 20px;
    }
    .page-about__product-image {
        height: 160px !important;
    }
    .page-about__product-title {
        font-size: 1.3em !important;
    }
    .page-about__product-description {
        font-size: 0.95em !important;
    }
    .page-about__support-grid {
        grid-template-columns: 1fr !important; /* Single column */
        gap: 20px !important;
    }

    /* 通用图片与容器 */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-content,
    .page-about__introduction-section,
    .page-about__products-section,
    .page-about__security-section,
    .page-about__social-responsibility-section,
    .page-about__support-section,
    .page-about__cta-section,
    .page-about__content-wrapper,
    .page-about__text-block,
    .page-about__image-block,
    .page-about__product-card,
    .page-about__support-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific adjustment for hero-content padding if needed */
    .page-about__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 按钮与按钮容器 */
    .page-about__cta-button,
    .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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 5px 0 !important; /* Adjust margin for stacked buttons */
        padding-left: 15px !important; /* Ensure text padding within button */
        padding-right: 15px !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 !important;
        padding-right: 15px !important;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

    /* 其他内容模块 */
    .page-about__section-title {
        font-size: 1.8em !important;
        margin-bottom: 20px !important;
    }
    .page-about__section-description {
        font-size: 0.95em !important;
        margin-bottom: 30px !important;
    }
    .page-about__sub-title {
        font-size: 1.3em !important;
        margin-top: 30px !important;
        margin-bottom: 15px !important;
    }
    .page-about p,
    .page-about li {
        font-size: 0.9em !important;
    }
    .page-about__value-item,
    .page-about__security-item,
    .page-about__responsible-gaming-item {
        padding: 10px !important;
    }
    .page-about__introduction-section,
    .page-about__security-section,
    .page-about__social-responsibility-section,
    .page-about__cta-section,
    .page-about__products-section,
    .page-about__support-section {
        padding: 40px 0 !important;
    }
}