/* style/about.css */

/* Biến màu sắc */
:root {
    --j833-primary: #11A84E;
    --j833-secondary: #22C768;
    --j833-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --j833-card-bg: #11271B;
    --j833-background: #08160F;
    --j833-text-main: #F2FFF6;
    --j833-text-secondary: #A7D9B8;
    --j833-border: #2E7A4E;
    --j833-glow: #57E38D;
    --j833-gold: #F2C14E;
    --j833-divider: #1E3A2A;
    --j833-deep-green: #0A4B2C;
}

/* General Page Styling */
.page-about {
    color: var(--j833-text-main); /* Assuming body background is dark */
    background-color: var(--j833-background);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-about__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: bold;
    color: var(--j833-text-main);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-about__section-description {
    font-size: 18px;
    color: var(--j833-text-secondary);
    text-align: center;
    margin-bottom: 30px;
}

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

.page-about__content-wrapper--reversed {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    min-width: 300px;
}

.page-about__text-block p {
    margin-bottom: 15px;
    color: var(--j833-text-main);
}

.page-about__text-block ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--j833-text-main);
}

.page-about__text-block li {
    margin-bottom: 8px;
    color: var(--j833-text-secondary);
}

.page-about__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image-block--center {
    margin-top: 40px;
}

.page-about__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

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

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 200px;
    min-height: 200px;
}

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

.page-about__main-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    color: var(--j833-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.page-about__hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--j833-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-about__btn--primary {
    background: var(--j833-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--j833-glow);
}

.page-about__btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--j833-glow);
}

.page-about__btn--secondary {
    background-color: transparent;
    color: var(--j833-primary);
    border: 2px solid var(--j833-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn--secondary:hover {
    background-color: var(--j833-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn--large {
    padding: 18px 40px;
    font-size: 20px;
}

/* Mission, Values, History, Security, Games, Support Sections */
.page-about__mission-section,
.page-about__values-section,
.page-about__history-section,
.page-about__security-section,
.page-about__games-section,
.page-about__support-section {
    padding: 60px 0;
    background-color: var(--j833-background);
}

.page-about__mission-section p,
.page-about__values-section p,
.page-about__history-section p,
.page-about__security-section p,
.page-about__games-section p,
.page-about__support-section p {
    color: var(--j833-text-secondary);
}

.page-about__mission-section h2,
.page-about__values-section h2,
.page-about__history-section h2,
.page-about__security-section h2,
.page-about__games-section h2,
.page-about__support-section h2 {
    color: var(--j833-gold);
}

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 80px 0;
    background-color: var(--j833-deep-green);
}

.page-about__why-choose-section .page-about__section-title {
    color: var(--j833-gold);
}

.page-about__why-choose-section .page-about__section-description {
    color: var(--j833-text-secondary);
}

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

.page-about__advantage-item {
    background-color: var(--j833-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--j833-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

.page-about__advantage-item p {
    color: var(--j833-text-secondary);
    font-size: 16px;
}

/* CTA Section (Dark) */
.page-about__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--j833-deep-green);
    border-top: 1px solid var(--j833-divider);
}

.page-about__cta-section .page-about__section-title {
    color: var(--j833-gold);
    margin-bottom: 20px;
}

.page-about__cta-description {
    font-size: 18px;
    color: var(--j833-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__faq-section .page-about__section-title {
    color: var(--j833-gold);
}

.page-about__faq-list {
    margin-top: 40px;
}

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

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    color: var(--j833-text-main);
    cursor: pointer;
    list-style: none;
    outline: none;
}

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

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

.page-about__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--j833-primary);
}

.page-about__faq-item[open] .page-about__faq-toggle {
    content: '−';
}

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

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

.page-about__faq-answer a {
    color: var(--j833-secondary);
    text-decoration: underline;
}

.page-about__faq-answer a:hover {
    color: var(--j833-gold);
}

.page-about__more-faq-text {
    text-align: center;
    margin-top: 30px;
    font-size: 16px;
    color: var(--j833-text-secondary);
}

.page-about__more-faq-text a {
    color: var(--j833-primary);
    text-decoration: underline;
    font-weight: bold;
}

.page-about__more-faq-text a:hover {
    color: var(--j833-gold);
}

/* Links */
.page-about a {
    color: var(--j833-primary);
    text-decoration: none;
}

.page-about a:hover {
    text-decoration: underline;
    color: var(--j833-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-about__content-wrapper--reversed {
        flex-direction: column; /* Ensure it stays column on smaller screens */
    }

    .page-about__text-block {
        order: 2; /* Text below image for reversed */
    }

    .page-about__image-block {
        order: 1; /* Image above text for reversed */
        margin-bottom: 30px;
    }

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

    .page-about__main-title {
        font-size: clamp(30px, 8vw, 48px);
    }

    .page-about__hero-description {
        font-size: clamp(15px, 2.5vw, 18px);
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__btn {
        width: 100%;
        max-width: 300px; /* Limit button width on mobile for better appearance */
        margin: 0 auto;
    }

    .page-about__section-title {
        font-size: clamp(24px, 6vw, 36px);
    }
}

@media (max-width: 768px) {
    /* Mobile specific overrides with !important */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-about__hero-image {
        max-height: 400px !important; /* Adjust hero image height for mobile */
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__mission-section,
    .page-about__values-section,
    .page-about__history-section,
    .page-about__security-section,
    .page-about__games-section,
    .page-about__support-section,
    .page-about__why-choose-section,
    .page-about__cta-section,
    .page-about__faq-section,
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container,
    .page-about__hero-image-wrapper,
    .page-about__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
        padding-bottom: 40px !important;
    }

    .page-about__btn,
    .page-about__btn--primary,
    .page-about__btn--secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin: 0 auto !important; /* Center buttons */
    }

    .page-about__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .page-about__advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .page-about__faq-item summary {
        font-size: 16px;
        padding: 15px;
    }
    
    .page-about__faq-answer {
        font-size: 15px;
        padding: 0 15px 15px;
    }
    
    .page-about__text-block p, .page-about__text-block li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: clamp(28px, 9vw, 38px);
    }

    .page-about__hero-description {
        font-size: clamp(14px, 3vw, 16px);
    }

    .page-about__section-title {
        font-size: clamp(22px, 7vw, 30px);
    }
}