:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --body-bg: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* style/about.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

.page-about {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--body-bg);
    line-height: 1.6;
}

.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: var(--text-main);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__text-block {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-about__text-block a,
.page-about p a,
.page-about li a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-about__text-block a:hover,
.page-about p a:hover,
.page-about li a:hover {
    color: var(--glow-color);
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    min-width: 150px;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for contrast */
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.2);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-about__hero-content {
    text-align: center;
    max-width: 900px;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    color: var(--gold-color);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.page-about__hero-content .page-about__description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.page-about__hero-content .page-about__btn-primary {
    margin-top: 20px;
}

/* About Intro Section */
.page-about__about-intro {
    padding: 80px 0;
    background-color: var(--body-bg);
}

.page-about__about-intro .page-about__section-title {
    color: var(--primary-color);
}

.page-about__about-intro .page-about__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

/* Mission Vision Section */
.page-about__mission-vision-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.page-about__mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.page-about__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-about__card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-text {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Our Values Section */
.page-about__our-values-section {
    padding: 80px 0;
    background-color: var(--body-bg);
}

.page-about__our-values-section .page-about__section-title {
    color: var(--text-main);
}

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

.page-about__value-card {
    text-align: center;
    padding: 25px;
    background-color: var(--deep-green-color);
    border: 1px solid var(--border-color);
}

.page-about__value-card .page-about__card-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-about__value-card .page-about__card-text {
    font-size: 0.95em;
}

/* Security Commitment Section */
.page-about__security-commitment {
    padding: 80px 0;
    background-color: var(--card-bg);
}

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

.page-about__security-content .page-about__section-title {
    color: var(--primary-color);
    text-align: left;
}

.page-about__security-content .page-about__text-block {
    text-align: justify;
}

.page-about__security-image-wrapper {
    text-align: center;
}

.page-about__security-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
    padding: 80px 0;
    background-color: var(--body-bg);
    text-align: center;
}

.page-about__responsible-gaming .page-about__section-title {
    color: var(--text-main);
}

.page-about__responsible-gaming .page-about__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.page-about__responsible-gaming-image {
    margin-top: 40px;
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.page-about__why-choose-us .page-about__section-title {
    color: var(--primary-color);
}

.page-about__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__feature-item {
    background-color: var(--deep-green-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__feature-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__feature-text {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: var(--body-bg);
}

.page-about__faq-section .page-about__section-title {
    color: var(--text-main);
}

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

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--deep-green-color);
    border: 1px solid var(--border-color);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    background-color: var(--deep-green-color);
    cursor: pointer;
    list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
    display: none;
}

.page-about__faq-question:hover {
    background-color: var(--primary-color);
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    background-color: var(--card-bg);
    text-align: center;
}

.page-about__cta-section .page-about__section-title {
    color: var(--primary-color);
}

.page-about__cta-section .page-about__description {
    max-width: 700px;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__mission-vision-grid,
    .page-about__security-grid {
        grid-template-columns: 1fr;
    }

    .page-about__security-content .page-about__section-title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__container {
        padding: 0 15px; /* Add horizontal padding for mobile */
    }

    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 20px;
    }

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

    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

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

    .page-about__hero-content .page-about__description {
        font-size: 1em;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* Space between stacked buttons */
    }

    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        align-items: center;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__about-intro,
    .page-about__mission-vision-section,
    .page-about__our-values-section,
    .page-about__security-commitment,
    .page-about__responsible-gaming,
    .page-about__why-choose-us,
    .page-about__faq-section,
    .page-about__cta-section {
        padding: 40px 0;
    }

    .page-about__card-image,
    .page-about__security-image,
    .page-about__responsible-gaming-image,
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px; /* Enforce min size for content images */
        min- /* Allow slightly smaller height for mobile, but still substantial */
    }

    .page-about__mission-card .page-about__card-image,
    .page-about__vision-card .page-about__card-image {
      height: 200px; /* Adjust height for mobile cards */
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__about-intro,
    .page-about__mission-vision-section,
    .page-about__our-values-section,
    .page-about__security-commitment,
    .page-about__responsible-gaming,
    .page-about__why-choose-us,
    .page-about__faq-section,
    .page-about__cta-section,
    .page-about__video-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

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

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

@media (max-width: 480px) {
    .page-about__section-title {
        font-size: 1.8em;
    }

    .page-about__main-title {
        font-size: clamp(1.6em, 9vw, 2.2em);
    }

    .page-about__values-grid {
        grid-template-columns: 1fr;
    }
}