/* General styles for the about page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    background-color: #F4F7FB; /* Background */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, relies on body for main offset */
    padding-bottom: 50px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Blue gradient for hero background */
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height to prevent image from being too tall */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Space between image and content */
}

.page-about__hero-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
    display: block;
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    max-width: 900px;
    padding: 0 20px;
}

.page-about__hero-title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-about__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-about__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons adapt to width */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary {
    background-color: #ffffff;
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1F50C1;
    border-color: #1F50C1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-about__btn-large {
    padding: 18px 40px;
    font-size: 1.1em;
}

/* Intro Section */
.page-about__intro-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__text-block p {
    margin-bottom: 15px;
    color: #1F2D3D;
}

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

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

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

.page-about__why-choose-us .page-about__section-title {
    color: #ffffff;
}

.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: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-about__feature-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-about__feature-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1;
}

.page-about__feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


/* Values Section */
.page-about__values-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
}

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

.page-about__value-item {
    background-color: #ffffff; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #D6E2FF; /* Border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-about__value-title {
    font-size: 1.5em;
    color: #2F6BFF; /* Main Color */
    margin-bottom: 10px;
    font-weight: 700;
}

.page-about__value-description {
    color: #1F2D3D; /* Text Main */
}

/* Responsible Gambling Section */
.page-about__responsible-gambling {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
}

.page-about__content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

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

.page-about__faq-item {
    background-color: #ffffff; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    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;
    font-size: 1.1em;
    font-weight: bold;
    color: #2F6BFF; /* Main Color */
    cursor: pointer;
    background-color: #fcfdff;
    border-bottom: 1px solid transparent;
}

.page-about__faq-item[open] .page-about__faq-question {
    border-bottom-color: #D6E2FF;
}

.page-about__faq-qtext {
    flex-grow: 1;
    color: #1F2D3D; /* Text Main */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #2F6BFF; /* Main Color */
}

.page-about__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 0.95em;
    color: #1F2D3D; /* Text Main */
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Main Color Gradient */
    color: #ffffff;
    text-align: center;
}

.page-about__cta-section .page-about__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-about__cta-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Common responsive image styles */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive styles for 1024px */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__content-grid,
    .page-about__content-wrapper {
        grid-template-columns: 1fr;
    }
    .page-about__features-grid,
    .page-about__values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-about__hero-image-wrapper {
        max-height: 400px;
    }
}

/* Responsive styles for 768px (Mobile) */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding, relies on body for main offset */
        padding-bottom: 30px;
    }
    .page-about__hero-image-wrapper {
        max-height: 250px;
        margin-bottom: 15px;
    }
    .page-about__hero-content {
        padding: 0 15px;
    }
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    /* 通用图片与容器 */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__container,
    .page-about__intro-section,
    .page-about__why-choose-us,
    .page-about__values-section,
    .page-about__responsible-gambling,
    .page-about__faq-section,
    .page-about__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 按钮与按钮容器 */
    .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;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-about__hero-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-wrap: wrap !important;
        gap: 10px;
    }
    .page-about__hero-cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* 其他内容模块 */
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__intro-section,
    .page-about__why-choose-us,
    .page-about__values-section,
    .page-about__responsible-gambling,
    .page-about__faq-section,
    .page-about__cta-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .page-about__content-grid,
    .page-about__content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-about__features-grid,
    .page-about__values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__feature-card,
    .page-about__value-item {
        padding: 20px;
    }
    .page-about__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 0 15px 15px 15px;
    }
    .page-about__cta-description {
        font-size: 1em;
    }
    .page-about__btn-large {
        padding: 15px 30px;
        font-size: 1em;
    }
}