/* style/about.css */

/* Custom Colors */
:root {
    --page-about-bg: #08160F; /* 背景 */
    --page-about-card-bg: #11271B; /* Card BG */
    --page-about-text-main: #F2FFF6; /* Text Main */
    --page-about-text-secondary: #A7D9B8; /* Text Secondary */
    --page-about-border: #2E7A4E; /* 边框 */
    --page-about-gold: #F2C14E; /* Gold */
    --page-about-deep-green: #0A4B2C; /* Deep Green */
    --page-about-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* 按钮 */
}

.page-about {
    background-color: var(--page-about-bg);
    color: var(--page-about-text-main); /* Main text color for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

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

/* Section styling */
.page-about__hero-section,
.page-about__mission-vision-section,
.page-about__values-section,
.page-about__why-choose-us-section,
.page-about__security-fairness-section,
.page-about__responsible-gambling-section,
.page-about__faq-section,
.page-about__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 40px;
    border-radius: 8px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1; /* Ensure text is above any potential background layers */
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--page-about-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-about__description {
    font-size: 1.15rem;
    color: var(--page-about-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-button {
    display: inline-block;
    background: var(--page-about-btn-gradient);
    color: var(--page-about-text-main);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-about__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-about__dark-section {
    background-color: var(--page-about-deep-green);
    color: var(--page-about-text-main);
}

.page-about__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--page-about-gold);
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.page-about__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--page-about-gold);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.page-about__card {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-about-text-main); /* Ensure card text is light */
    min-width: 200px; /* Min card size */
}

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

.page-about__card-title {
    font-size: 1.7rem;
    color: var(--page-about-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__card p {
    font-size: 1rem;
    color: var(--page-about-text-secondary);
}

.page-about__content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 40px auto 0;
    display: block;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-about__values-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
}

.page-about__value-item {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border);
    border-radius: 10px;
    margin-bottom: 25px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.page-about__value-item:hover {
    transform: translateX(5px);
}

.page-about__value-heading {
    font-size: 1.6rem;
    color: var(--page-about-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-about__value-item p {
    color: var(--page-about-text-secondary);
    font-size: 1rem;
}

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

.page-about__feature-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-about__feature-card .page-about__card-title {
    margin-top: 0;
}

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

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

.page-about__btn-primary {
    background: var(--page-about-btn-gradient);
    color: var(--page-about-text-main);
    border: none;
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--page-about-text-main); /* Match main text color for contrast */
    border: 2px solid var(--page-about-border);
}

.page-about__btn-secondary:hover {
    background: rgba(46, 122, 78, 0.2); /* Use a subtle background on hover */
    border-color: var(--page-about-gold);
}

.page-about__sub-title {
    font-size: 2rem;
    color: var(--page-about-gold);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: left;
}

.page-about__content-area p {
    text-align: left;
    margin-bottom: 20px;
    color: var(--page-about-text-secondary);
    font-size: 1.05rem;
}

.page-about__responsibility-list {
    list-style: disc;
    text-align: left;
    max-width: 800px;
    margin: 20px auto 30px;
    padding-left: 40px;
    color: var(--page-about-text-secondary);
}

.page-about__responsibility-item {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* FAQ Styling */
.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-about__faq-item {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--page-about-gold);
    cursor: pointer;
    background-color: var(--page-about-deep-green);
    border-bottom: 1px solid var(--page-about-divider);
    list-style: none; /* For details summary */
}

.page-about__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-about__faq-item[open] .page-about__faq-question {
    border-bottom: 1px solid var(--page-about-border);
}

.page-about__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--page-about-gold);
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg);
}

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

.page-about__faq-answer p {
    margin-bottom: 15px;
    color: var(--page-about-text-secondary);
    text-align: left;
}

.page-about__faq-answer .page-about__faq-button {
    display: inline-block;
    background: var(--page-about-btn-gradient);
    color: var(--page-about-text-main);
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-answer .page-about__faq-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Bottom CTA */
.page-about__cta-bottom-section {
    padding-top: 60px;
    padding-bottom: 80px;
}

.page-about__cta-bottom-section .page-about__description {
    margin-bottom: 40px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__hero-section {
        padding: 40px 20px;
        padding-top: 10px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-about__section-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    .page-about__sub-title {
        font-size: 1.7rem;
    }
    .page-about__card-title {
        font-size: 1.5rem;
    }
    .page-about__faq-question {
        font-size: 1.2rem;
    }
}

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

    .page-about__hero-section,
    .page-about__mission-vision-section,
    .page-about__values-section,
    .page-about__why-choose-us-section,
    .page-about__security-fairness-section,
    .page-about__responsible-gambling-section,
.page-about__faq-section,
    .page-about__cta-bottom-section {
        padding: 40px 0;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure width is 100% */
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size */
        min-height: 200px !important; /* Enforce min size */
    }

    /* Video responsiveness (if any) */
    .page-about video,
    .page-about__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-about__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }


    /* Containers responsiveness */
    .page-about__container,
    .page-about__hero-content,
    .page-about__content-area,
    .page-about__card,
    .page-about__feature-card,
    .page-about__value-item,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button responsiveness */
    .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;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0 !important; /* Override potential horizontal margins */
        margin-right: 0 !important;
    }
    .page-about__cta-row {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px; /* Add padding to row container */
        padding-right: 15px;
    }
    .page-about__faq-answer .page-about__faq-button {
        width: auto !important; /* Allow FAQ button to be smaller */
        max-width: calc(100% - 30px) !important; /* Adjust for padding */
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-about__main-title {
        font-size: 2rem;
    }
    .page-about__section-title {
        font-size: 1.8rem;
    }
    .page-about__sub-title {
        font-size: 1.5rem;
    }
    .page-about__card-title {
        font-size: 1.3rem;
    }
    .page-about__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 15px 20px;
    }
    .page-about__responsibility-list {
        padding-left: 20px;
    }
}