/* style/about.css */

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

/* --- Base Styles --- */
.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page content */
    background-color: var(--background); /* Ensure consistency with body background */
}

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

.page-about__section-title {
    font-size: 2.5rem; /* Using rem for better scaling */
    font-weight: 700;
    color: var(--gold); /* Use gold for prominent titles */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-about__sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 20px;
}

.page-about__description {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--text-secondary);
}

.page-about p {
    line-height: 1.6;
    margin-bottom: 1em;
    color: var(--text-secondary); /* Default paragraph color */
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Enforce top image, bottom text */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--background);
}

.page-about__hero-image {
    width: 100%;
    max-width: 1920px; /* Adjust based on actual hero image width */
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 8px;
}

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

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

.page-about__lead-text {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

/* --- CTA Buttons --- */
.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-about__cta-buttons--center {
    margin-top: 50px;
}

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

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text on dark gradient button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.page-about__btn-secondary {
    background: 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);
}

/* --- Mission & Vision Section --- */
.page-about__mission-vision-section {
    padding: 80px 0;
    background-color: var(--background); /* Dark background for this section */
    color: var(--text-main);
}

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

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

.page-about__card {
    background-color: var(--card-bg); /* Card background color */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

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

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

/* --- Why Choose Section --- */
.page-about__why-choose-section {
    padding: 80px 0;
    background-color: var(--deep-green); /* A slightly different dark green */
    color: var(--text-main);
}

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

.page-about__feature-item {
    text-align: center;
}

.page-about__feature-icon {
    width: 200px; /* Enforce min size 200x200 */
    height: 200px; /* Enforce min size 200x200 */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    display: block; /* Ensure it behaves as a block element */
    margin-left: auto;
    margin-right: auto;
}

.page-about__feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 10px;
}

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

/* --- Game Category Section --- */
.page-about__game-category-section {
    padding: 80px 0;
    background-color: var(--background);
    color: var(--text-main);
}

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

.page-about__game-card {
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.page-about__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-about__game-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-about__game-title a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__game-title a:hover {
    color: var(--glow-color);
}

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

/* --- Responsible Gaming Section --- */
.page-about__responsible-gaming-section {
    padding: 80px 0;
    background-color: var(--deep-green);
    color: var(--text-main);
}

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

.page-about__responsible-gaming-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

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

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    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: rgba(var(--deep-green), 0.8);
}

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

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

.page-about__faq-item[open] .page-about__faq-question {
    border-bottom: 1px solid transparent; /* Remove border when open */
}

.page-about__faq-item[open] .page-about__faq-toggle {
    content: '−'; /* Change to minus when open, handled by JS too for robustness */
}

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

/* Details element specific styling */
.page-about__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* Hide for Webkit browsers */
}

/* --- Final CTA Section --- */
.page-about__final-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--deep-green);
    color: var(--text-main);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2.2rem;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-about__lead-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding: 0 15px; /* Add padding for mobile */
    }

    .page-about__hero-section {
        padding-bottom: 40px;
    }

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

    .page-about__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-about__lead-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px; /* Ensure button containers have padding */
        box-sizing: border-box;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__btn-primary--large {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .page-about__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-about__description {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    .page-about__grid,
    .page-about__features-grid,
    .page-about__game-categories-grid,
    .page-about__responsible-gaming-content {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-about__card,
    .page-about__feature-item,
    .page-about__game-card,
    .page-about__responsible-gaming-item {
        padding: 20px;
    }

    .page-about__feature-icon {
        width: 150px;
        height: 150px;
    }

    .page-about__game-image {
        height: 180px;
    }

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

    .page-about__faq-answer {
        font-size: 0.9rem;
        padding: 15px;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__mission-vision-section,
    .page-about__why-choose-section,
    .page-about__game-category-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__final-cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific override for hero section padding-top, as it's the first element */
    .page-about__hero-section {
        padding-top: 10px !important; /* body already has header offset */
    }
}

/* Ensure no filter is used on images */
.page-about img {
    filter: none;
}