/* style/about.css */
/* Toàn bộ nội dung của trang phải nằm trong phạm vi .page-about */
.page-about {
    /* Body background color is #08160F (dark), so text needs to be light */
    color: #F2FFF6; /* Text Main */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

.page-about__section {
    padding: 60px 0;
    position: relative;
}

.page-about__section-title {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #F2FFF6; /* Text Main */
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__section-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* 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 */
    box-sizing: border-box;
    overflow: hidden;
    background: #08160F; /* Background */
}

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

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

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

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 800;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__description {
    font-size: 1.2em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

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

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background: transparent;
    color: #2AD16F; /* Button color for secondary */
    border: 2px solid #2AD16F;
}

.page-about__btn-secondary:hover {
    background: #2AD16F;
    color: #ffffff; /* White text for secondary hover */
}

.page-about__large-btn {
    padding: 18px 35px;
    font-size: 1.1em;
}

/* Our Story Section */
.page-about__our-story-section {
    background: #08160F; /* Background */
}

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

.page-about__text-block p {
    margin-bottom: 15px;
    color: #F2FFF6; /* Text Main */
}

.page-about__image-block {
    text-align: center;
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Why Choose Us Section */
.page-about__dark-section {
    background: #11271B; /* Card BG */
}

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

.page-about__feature-card {
    background: #08160F; /* Background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__feature-card .page-about__card-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
}

.page-about__feature-card p {
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-top: 15px;
    min-width: 200px;
    min-height: 200px;
}

/* Our Values Section */
.page-about__our-values-section {
    background: #08160F; /* Background */
}

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

.page-about__value-item {
    background: #11271B; /* Card BG */
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #2E7A4E; /* Border */
}

.page-about__value-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
}

.page-about__value-item p {
    color: #A7D9B8; /* Text Secondary */
}

/* Game Overview Section */
.page-about__game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__game-card {
    background: #08160F; /* Background */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__game-card .page-about__card-image {
    width: 100%;
    height: 180px; /* Consistent height for game images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-about__game-card .page-about__card-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
}

.page-about__game-card p {
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    background: #08160F; /* Background */
}

.page-about__content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    color: #F2FFF6; /* Text Main */
}

.page-about__content-wrapper p {
    margin-bottom: 15px;
}

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

.page-about__cta-content .page-about__description {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* FAQ Section */
.page-about__faq-section {
    background: #08160F; /* Background */
}

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

.page-about__faq-item {
    background: #11271B; /* Card BG */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2E7A4E; /* Border */
}

.page-about__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #F2FFF6; /* Text Main */
    background: #11271B; /* Card BG */
    transition: background-color 0.3s ease;
}

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

.page-about__faq-item summary:hover {
    background-color: #0A4B2C; /* Deep Green */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #2AD16F;
}

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

.page-about__faq-answer {
    padding: 0 20px 20px;
    color: #A7D9B8; /* Text Secondary */
}

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

.page-about__faq-item[open] summary {
    background-color: #0A4B2C; /* Deep Green */
}

/* Highlight keyword style */
.page-about .highlight {
    color: #57E38D; /* Glow */
    font-weight: bold;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-about__content-grid {
        grid-template-columns: 2fr 1fr;
    }
    .page-about__hero-image-wrapper {
        order: 2;
        margin-bottom: 0;
        margin-left: 30px;
    }
    .page-about__hero-section {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .page-about__hero-content {
        text-align: left;
    }
    .page-about__cta-buttons {
        justify-content: flex-start;
    }
}

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

    .page-about__hero-section {
        padding: 40px 15px;
        flex-direction: column;
    }
    .page-about__hero-image-wrapper {
        margin-left: 0;
        margin-bottom: 20px;
    }
    .page-about__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }
    .page-about__description {
        font-size: 1em;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to buttons container */
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__image-block {
        order: -1; /* Image appears above text on mobile */
        margin-bottom: 30px;
    }

    .page-about__features-grid,
    .page-about__values-grid,
    .page-about__game-cards-grid {
        grid-template-columns: 1fr;
    }

    .page-about__feature-card, .page-about__value-item, .page-about__game-card {
        padding: 20px;
    }

    .page-about__card-image, .page-about__image, .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__hero-image-wrapper,
    .page-about__content-grid,
    .page-about__features-grid,
    .page-about__values-grid,
    .page-about__game-cards-grid,
    .page-about__content-wrapper,
    .page-about__cta-content,
    .page-about__faq-list,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-about__hero-section {
        padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
    }
    .page-about__image-block {
        padding-left: 0;
        padding-right: 0;
    }
    .page-about__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
}