/* style/about.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --bg-dark: #0a0a0a;
    --btn-login-color: #EA7C07;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-light); /* Body background is dark, so text should be light */
    background-color: var(--bg-dark); /* Ensure main content background matches body or is dark */
}

.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-top: 10px; /* Small top padding, header offset handled by body */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 30px;
}

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

.page-about__hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    max-width: 900px;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-about__description {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 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-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* General Section Styling */
.page-about__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.page-about__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for contrast */
    padding: 60px 0;
    color: var(--text-color-light);
}

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

/* Intro & History Section */
.page-about__intro-history-section {
    padding: 60px 0;
}

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

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

.page-about__text-block,
.page-about__image-block {
    flex: 1;
}

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 60px 0;
    background-color: #0d0d0d; /* Slightly different dark background */
    color: var(--text-color-light);
}

.page-about__mission-vision-section h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__mission-vision-section p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-about__value-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.page-about__value-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
    position: relative;
    padding-left: 25px;
}

.page-about__value-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    padding: 60px 0;
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: var(--text-color-light);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-about__feature-icon {
    width: 100%; /* Ensure images take full width of card */
    height: 180px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

.page-about__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-about__feature-description {
    font-size: 1em;
    color: var(--text-color-light);
}

/* Transactions Section */
.page-about__transactions-section {
    padding: 60px 0;
    background-color: #0d0d0d;
    color: var(--text-color-light);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 60px 0;
    text-align: center;
}

.page-about__responsible-gaming-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__responsible-gaming-content p {
    margin-bottom: 20px;
    font-size: 1.05em;
}

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

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

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none; /* For details/summary */
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: var(--text-color-light);
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__content-grid {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__content-grid--reverse {
        flex-direction: column;
    }

    .page-about__hero-image-wrapper {
        margin-bottom: 20px;
    }

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

    .page-about__description {
        font-size: 1em;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }

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

    .page-about__feature-card {
        padding: 25px;
    }

    .page-about__feature-title {
        font-size: 1.3em;
    }

    .page-about__faq-question {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding: 0 15px;
    }

    .page-about__hero-section,
    .page-about__intro-history-section,
    .page-about__mission-vision-section,
    .page-about__why-choose-us-section,
    .page-about__transactions-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-section {
        padding: 40px 0;
    }

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

    .page-about__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 10px;
    }

    .page-about__description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-about__section-title {
        font-size: clamp(1.5em, 5vw, 2em);
        margin-bottom: 30px;
    }

    /* Images responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__hero-image-wrapper,
    .page-about__image-block,
    .page-about__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-about__feature-icon {
        height: auto;
    }

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

    .page-about__faq-answer {
        padding: 0 15px 15px;
    }

    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

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

    .page-about__main-title {
        font-size: clamp(1.6em, 7vw, 2.2em);
    }

    .page-about__description {
        font-size: 0.9em;
    }

    .page-about__section-title {
        font-size: clamp(1.4em, 6vw, 1.8em);
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        font-size: 0.9em;
        padding: 10px 15px;
    }

    .page-about__feature-card {
        padding: 15px;
    }
}

/* Ensure color contrast for dark background */
.page-about__text-block p, 
.page-about__responsible-gaming-content p, 
.page-about__faq-answer p {
    color: var(--text-color-light);
}

.page-about__mission-vision-section h3 {
    color: var(--primary-color);
}

.page-about__value-list li {
    color: var(--text-color-light);
}

/* Hover states for buttons to ensure contrast */
.page-about__btn-primary:hover {
    background-color: #1f8ac9; /* Darker shade of primary color */
    border-color: #1f8ac9;
}

.page-about__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Ensure all images in content area have min-width/height */
.page-about__image, .page-about__feature-icon {
    min-width: 200px;
    min-height: 200px;
}

/* Content area images CSS size lower limit */
.page-about img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
    width: auto;
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .page-about__video-section {
        padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
    }
}