/* style/about.css */

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

.page-about {
    background-color: var(--background-color-page);
    color: var(--text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--button-gradient);
    border-radius: 2px;
}

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

/* Hero Section */
.page-about__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
    padding-bottom: 40px;
    background-color: var(--deep-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

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

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

.page-about__main-title {
    color: var(--gold-color);
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.page-about__intro-text {
    color: var(--text-main);
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container fills width for responsiveness */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-about__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(17, 168, 78, 0.2);
}

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

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

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

.page-about__mission-card {
    background-color: var(--deep-green);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-about__mission-icon {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    object-fit: cover;
}

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

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

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

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

.page-about__feature-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-about__feature-icon {
    width: 100%;
    height: auto;
    max-width: 150px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-about__feature-text {
    color: var(--text-secondary);
    font-size: 0.95em;
}

/* Responsible Gambling Section */
.page-about__responsible-gambling-section {
    padding: 60px 0;
    background-color: var(--deep-green);
}

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

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

.page-about__text-content p {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-about__text-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-about__text-content ul li {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    color: var(--text-main);
    font-size: 1em;
}

.page-about__text-content ul li strong {
    color: var(--gold-color);
}

.page-about__image-content {
    flex: 1;
    text-align: center;
}

.page-about__responsible-gambling-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

/* Our Team Section */
.page-about__our-team-section {
    padding: 60px 0;
    background-color: var(--background-color-page);
}

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

.page-about__team-member {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-about__team-photo {
    width: 100%;
    height: auto;
    max-width: 200px;
    height: 150px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-color);
}

.page-about__member-name {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__member-role {
    color: var(--text-secondary);
    font-size: 0.95em;
}

.page-about__team-closing-text {
    text-align: center;
    color: var(--text-main);
    margin-top: 40px;
    font-size: 1.1em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__cta-content {
    max-width: 900px;
}

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

.page-about__faq-list {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 40px;
}

.page-about__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    color: var(--text-main);
    font-weight: bold;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

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

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

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-about__faq-item[open] .page-about__faq-toggle {
    color: #ffffff;
}

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

.page-about__faq-answer p {
    margin: 0;
}

/* Global image settings for content sections */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Dark section text color override */
.page-about__dark-section .page-about__section-description,
.page-about__dark-section .page-about__card-text {
    color: var(--text-secondary);
}

/* Responsive Styles */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-about__container {
        padding: 15px;
    }

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

    .page-about__main-title {
        font-size: 2.2em;
    }

    .page-about__intro-text {
        font-size: 1.1em;
    }

    .page-about__mission-grid,
    .page-about__content-flex {
        flex-direction: column;
    }

    .page-about__mission-card,
    .page-about__feature-item,
    .page-about__team-member {
        padding: 25px;
    }

    .page-about__responsible-gambling-image {
        margin-top: 30px;
    }
}

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

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

    .page-about__main-title {
        font-size: 1.8em !important;
        margin-bottom: 15px;
    }

    .page-about__intro-text {
        font-size: 1em !important;
        margin-bottom: 20px;
    }

    /* 通用图片与容器 */
    .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-image-wrapper,
    .page-about__mission-card,
    .page-about__feature-item,
    .page-about__team-member,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-about__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding: 0 15px;
    }

    .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: 12px 20px;
        font-size: 1em !important;
    }

    /* 其他内容模块 */
    .page-about__section-title {
        font-size: 1.8em !important;
        margin-bottom: 15px;
    }

    .page-about__section-description {
        font-size: 0.95em !important;
        margin-bottom: 25px;
    }

    .page-about__mission-grid,
    .page-about__features-grid,
    .page-about__team-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .page-about__mission-section,
    .page-about__why-choose-us,
    .page-about__responsible-gambling-section,
    .page-about__our-team-section,
    .page-about__cta-section,
    .page-about__faq-section {
        padding: 40px 0;
    }

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

    .page-about__faq-answer {
        font-size: 0.95em !important;
        padding: 15px 20px;
    }

    .page-about__text-content p,
    .page-about__text-content ul li {
        font-size: 1em !important;
    }
}