/* style/about.css */

:root {
    --k88-primary: #FFD700;
    --k88-secondary: #1E90FF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f5f5f5;
    --background-dark-card: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
}

/* Base styles for the About Us page content */
.page-about {
    padding-top: var(--header-offset, 120px);
    background: var(--background-dark);
}

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

.page-about__content-area {
    padding: 60px 0;
}

.page-about__dark-bg {
    background-color: var(--k88-secondary);
    color: var(--text-light);
}

.page-about__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
}

.page-about__dark-bg .page-about__section-title {
    color: var(--text-light);
}

.page-about__light-bg .page-about__section-title {
    color: var(--text-dark);
}

/* Hero Section */
.page-about__hero-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--k88-secondary) 0%, #0a0a0a 100%);
    color: var(--text-light);
}

.page-about__main-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--k88-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__intro-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-about__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: var(--k88-primary);
    color: var(--text-dark);
    border: 2px solid var(--k88-primary);
}

.page-about__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--k88-primary);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Mission & Vision Section */
.page-about__mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__mission-vision-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.page-about__mission-vision-text strong {
    color: var(--k88-secondary);
}

.page-about__mission-vision-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

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

.page-about__feature-card {
    background-color: var(--background-dark-card);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-about__feature-card img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
}

.page-about__feature-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--k88-primary);
}

.page-about__feature-card p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__responsible-gaming-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.page-about__responsible-gaming-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-about__responsible-gaming-text .page-about__btn-primary {
    margin-top: 20px;
    display: inline-block;
}

/* FAQ Section */
.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: var(--background-dark-card);
    border-radius: 0 0 5px 5px;
    color: rgba(255, 255, 255, 0.8);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-about__faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.page-about__faq-question:active {
    background: rgba(255, 255, 255, 0.15);
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-light);
}

.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--k88-primary);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: var(--text-light);
    transform: rotate(45deg);
}

/* CTA Section */
.page-about__cta-section {
    text-align: center;
}

.page-about__cta-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* General Image styles for responsiveness */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 40px;
    }
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__mission-vision-grid,
    .page-about__responsible-gaming-content {
        grid-template-columns: 1fr;
    }
    .page-about__mission-vision-image,
    .page-about__responsible-gaming-image {
        order: -1; /* Image above text on smaller screens */
    }
    .page-about__feature-title {
        font-size: 22px;
    }
    .page-about__faq-question h3 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-about {
        padding-top: var(--header-offset, 80px);
    }
    .page-about__hero-section {
        padding: 60px 0;
    }
    .page-about__main-title {
        font-size: 32px !important;
        margin-bottom: 15px;
    }
    .page-about__intro-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-about__hero-buttons,
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* LOGO 轮播区域 (Not present on About Us page, placeholder for strict requirement) */
    /* No specific logo carousel styles needed for this page as it's not homepage. */
    .page-about__logo-item {
        width: 80px !important;
        height: 80px !important;
        max-width: 80px !important;
        box-sizing: border-box;
    }

    /* 游戏展示区域 (Not present on About Us page, placeholder for strict requirement) */
    /* No specific game showcase styles needed for this page as it's not homepage. */

    /* 通用图片与容器 */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset;
        min-height: unset;
    }
    .page-about__container,
    .page-about__content-area {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__section-title {
        font-size: 28px !important;
        margin-bottom: 30px;
    }

    /* Mission & Vision Section */
    .page-about__mission-vision-grid {
        gap: 30px;
    }
    .page-about__mission-vision-text p {
        font-size: 15px;
    }

    /* Why Choose Section */
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-about__feature-card {
        padding: 25px;
    }
    .page-about__feature-title {
        font-size: 20px;
    }
    .page-about__feature-card p {
        font-size: 15px;
    }
    .page-about__feature-card img {
        max-width: 200px;
    }

    /* Responsible Gaming Section */
    .page-about__responsible-gaming-content {
        gap: 30px;
    }
    .page-about__responsible-gaming-text p {
        font-size: 15px;
    }

    /* FAQ Section */
    .page-about__faq-list {
        padding: 0;
    }
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-about__faq-question h3 {
        font-size: 16px !important;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }

    /* Other content modules (placeholder for completeness) */
    /* No other specific modules for About Us page */
}