/* style/about.css */
/* Tổng quan và biến */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --btn-register-bg: #A30707; /* Adjusted for contrast with #FFFF00 text */
    --btn-register-text: #FFFF00; /* Custom font color for register/login */
    --btn-login-bg: #A30707; /* Adjusted for contrast with #FFFF00 text */
    --btn-login-text: #FFFF00;
    --background-light: #FFFFFF;
    --background-dark: #017439;
    --border-color: #e0e0e0;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--background-light); /* Default body background is light */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.page-about__hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 900px;
    padding: 20px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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;
    margin: 10px;
    box-sizing: border-box;
}

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

.page-about__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%); /* Placeholder for darker green */
    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(--text-light);
}

/* Grid Layouts */
.page-about__grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__image-wrapper {
    overflow: hidden;
    border-radius: 10px;
}

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

/* Story Section */
.page-about__story-section {
    padding: 80px 0;
}

.page-about__mission-vision {
    margin-top: 60px;
}

/* Values Section */
.page-about__values-section {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 80px 0;
}

.page-about__values-section .page-about__section-title {
    color: var(--text-light);
}

.page-about__values-section .page-about__section-title::after {
    background-color: var(--text-light);
}

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

.page-about__value-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__value-card .page-about__card-title {
    font-size: 1.5em;
    color: var(--text-light);
    margin-bottom: 15px;
}

.page-about__value-card p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

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

/* Team Section */
.page-about__team-section {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 80px 0;
}

.page-about__team-section .page-about__section-title {
    color: var(--text-light);
}

.page-about__team-section .page-about__section-title::after {
    background-color: var(--text-light);
}

.page-about__team-section .page-about__sub-title {
    color: var(--text-light);
}

.page-about__team-section p {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 80px 0;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
}

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

.page-about__faq-item {
    background-color: var(--secondary-color);
    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.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #f0f0f0;
}

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

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 20px;
}

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

/* CTA Section */
.page-about__cta-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
}

.page-about__cta-content {
    max-width: 800px;
}

.page-about__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-about__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Custom colors for Register/Login buttons */
.page-about__cta-buttons .page-about__btn-primary {
    background-color: var(--btn-register-bg); /* Custom red for register */
    color: var(--btn-register-text); /* Custom yellow for register text */
    border-color: var(--btn-register-bg);
}

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

.page-about__cta-buttons .page-about__btn-secondary {
    background-color: var(--btn-login-bg); /* Custom red for login */
    color: var(--btn-login-text); /* Custom yellow for login text */
    border-color: var(--btn-login-bg);
}

.page-about__cta-buttons .page-about__btn-secondary:hover {
    background-color: darken(var(--btn-login-bg), 10%);
    border-color: darken(var(--btn-login-bg), 10%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__grid-two-cols {
        grid-template-columns: 1fr;
    }
    .page-about__team-section .page-about__grid-two-cols {
        grid-template-columns: 1fr;
        flex-direction: column-reverse; /* Image after text on mobile */
    }
    .page-about__responsible-gaming-section .page-about__grid-two-cols {
        grid-template-columns: 1fr;
        flex-direction: column-reverse; /* Image after text on mobile */
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        min-height: 400px;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__sub-title {
        font-size: 1.3em;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        margin: 5px;
    }
    .page-about__values-grid {
        grid-template-columns: 1fr;
    }
    .page-about__value-card {
        padding: 20px;
    }
    .page-about__cta-title {
        font-size: 2em;
    }
    .page-about__cta-description {
        font-size: 1em;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-about__container,
    .page-about__story-section,
    .page-about__values-section,
    .page-about__why-choose-us-section,
    .page-about__team-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }

    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

/* Ensure color contrast for dark and light sections */
.page-about__dark-section {
    background: var(--background-dark);
    color: var(--text-light);
}

.page-about__dark-section p {
    color: rgba(255, 255, 255, 0.8);
}

.page-about__light-bg {
    background: var(--background-light);
    color: var(--text-dark);
}

/* Placeholder for darken function */
/* This assumes a preprocessor or JS polyfill will handle darken() */
/* For pure CSS, you might need to manually specify the darker color */
/* For example, if var(--primary-color) is #017439, darken() might be #005a2e */