/* style/about.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E; /* Chủ sắc */
    --secondary-color: #22C768; /* Màu phụ */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Nút */
    --card-bg: #11271B; /* Nền thẻ */
    --background-color: #08160F; /* Nền chung */
    --text-main: #F2FFF6; /* Chữ chính */
    --text-secondary: #A7D9B8; /* Chữ phụ */
    --border-color: #2E7A4E; /* Viền */
    --glow-color: #57E38D; /* Hiệu ứng phát sáng */
    --gold-color: #F2C14E; /* Vàng */
    --divider-color: #1E3A2A; /* Đường phân chia */
    --deep-green: #0A4B2C; /* Xanh lá đậm */
}

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Chữ sáng cho nền tối */
    background-color: var(--background-color); /* Nền trang */
    line-height: 1.6;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Khoảng đệm trên nhỏ, dưới lớn hơn */
    background-color: var(--background-color);
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Chiều rộng tối đa cho vùng ảnh */
    margin-bottom: 30px; /* Khoảng cách giữa ảnh và nội dung */
}

.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;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Kích thước font H1 linh hoạt */
    color: var(--gold-color); /* Màu vàng cho tiêu đề chính */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Hiệu ứng phát sáng */
}

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

.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Cho phép nút xuống dòng trên màn hình nhỏ */
    justify-content: center;
    gap: 20px;
    width: 100%; /* Đảm bảo container chiếm toàn bộ chiều rộng để xuống dòng */
    max-width: 600px; /* Giới hạn chiều rộng tổng thể cho nhóm nút */
    margin: 0 auto;
}

.page-about__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Đảm bảo nút thích ứng với chiều rộng */
    box-sizing: border-box;
    white-space: normal; /* Cho phép chữ xuống dòng */
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* Chữ trắng cho nút */
    border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--background-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.3);
}

/* General Section Styling */
.page-about__section {
    padding: 60px 20px;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--divider-color);
}

.page-about__section:last-of-type {
    border-bottom: none;
}

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

.page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-about__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__paragraph {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-about__highlight {
    color: var(--gold-color);
    font-weight: 600;
}

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

@media (min-width: 768px) {
    .page-about__mission-vision .page-about__content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

.page-about__image-block .page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-about__feature-card.page-about__card {
    background-color: var(--card-bg); /* Nền tối hơn cho thẻ */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
}

.page-about__feature-card.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(87, 227, 141, 0.2);
}

.page-about__card-image {
    width: 100%;
    height: 200px; /* Chiều cao cố định cho ảnh thẻ */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Đảm bảo nó tuân thủ max-width: 100% */
}

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

.page-about__card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    flex-grow: 1; /* Cho phép văn bản chiếm không gian có sẵn */
    margin-bottom: 20px;
}

.page-about__btn-text {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.page-about__btn-text:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

/* Featured Games Section */
.page-about__featured-games .page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .page-about__featured-games .page-about__content-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-about__content-grid--reverse .page-about__image-block {
        order: 2;
    }
    .page-about__content-grid--reverse .page-about__text-block {
        order: 1;
    }
}

/* CTA Section */
.page-about__cta-section .page-about__container {
    background-color: var(--deep-green); /* Sử dụng màu xanh lá đậm cho nền CTA này */
    border-radius: 12px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-about__cta-section .page-about__section-title {
    color: var(--text-main); /* Chữ trắng cho nền xanh lá đậm */
    margin-bottom: 20px;
}

.page-about__cta-section .page-about__paragraph {
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-about__faq-list {
    max-width: 900px;
    margin: 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;
    color: var(--text-main);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--secondary-color);
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* Xóa dấu mặc định cho <summary> */
}

.page-about__faq-question::-webkit-details-marker {
    display: none; /* Ẩn dấu cho trình duyệt Webkit */
}

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-section {
        padding-bottom: 40px;
    }

    .page-about__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-about__description {
        font-size: 1.05rem;
    }

    .page-about__section {
        padding: 40px 20px;
    }

    .page-about__container {
        max-width: 960px;
    }

    .page-about__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-bottom: 30px;
    }

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

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

    .page-about__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-about__cta-buttons {
        flex-direction: column; /* Xếp chồng nút theo chiều dọc trên di động */
        gap: 15px;
        padding: 0 15px; /* Thêm khoảng đệm cho container nút */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__btn {
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        max-width: 100% !important;
        width: 100% !important; /* Đảm bảo nút chiếm toàn bộ chiều rộng */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto; /* Căn giữa nút đơn */
    }

    .page-about__section {
        padding: 30px 15px;
    }

    .page-about__container {
        padding: 0 15px; /* Thêm khoảng đệm cho container nội dung */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section-title {
        font-size: clamp(1.4rem, 5vw, 2rem) !important;
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .page-about__paragraph,
    .page-about__card-text,
    .page-about__btn-text,
    .page-about__faq-answer p {
        font-size: 0.9rem;
    }

    .page-about__card-image {
        height: 180px; /* Điều chỉnh chiều cao cho ảnh thẻ trên di động */
    }

    .page-about__feature-card.page-about__card {
        padding: 20px;
    }

    .page-about__cta-section .page-about__container {
        padding: 40px 20px;
    }

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

    /* Image responsiveness for all content images */
    .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-image-wrapper,
    .page-about__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ngăn chặn cuộn ngang */
    }

    .page-about__video-section {
        padding-top: 10px !important; /* body đã xử lý --header-offset */
    }
}