/* style/about.css */

/* Base Styles & Typography */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000; /* Ensure consistency with body background */
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-about__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles on dark background */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-about__section-title--white {
    color: #ffffff;
}

.page-about__intro-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Sections */
.page-about__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero_main:1920x1080:j888com,betting,platform,casino,sports,vietnam]') center/cover no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-about__story-section,
.page-about__why-choose-us-section,
.page-about__responsible-gaming-section,
.page-about__faq-section,
.page-about__cta-section,
.page-about__values-section {
    padding: 80px 0;
}

.page-about__dark-section {
    background-color: #0A2463; /* Main brand color */
    color: #ffffff;
}

.page-about__light-bg {
    background-color: #000; /* Dark background as per body, text will be light */
    color: #ffffff;
}

/* Grid Layout for content + image */
.page-about__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.page-about__grid-layout--reversed {
    grid-template-areas: "image content";
}

.page-about__grid-layout--reversed .page-about__image-wrapper {
    grid-area: image;
}

.page-about__grid-layout--reversed .page-about__text-content {
    grid-area: content;
}

.page-about__text-content p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #f0f0f0;
}

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

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

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

.page-about__value-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark blue */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff;
}

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

.page-about__value-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    /* filter: brightness(1.2); Removed as per instruction: no CSS filter to change image color */
}

.page-about__value-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-about__value-card p {
    font-size: 1em;
    color: #f0f0f0;
}

/* Why Choose Us Section */
.page-about__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.05); /* Light background for list items on dark background */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #FFD700; /* Accent color */
    border-radius: 5px;
    font-size: 1.1em;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-about__feature-item strong {
    color: #FFD700;
}

/* Responsible Gaming Section */
.page-about__responsible-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-about__feature-heading {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-about__feature-card p {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 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: #FFD700;
    cursor: pointer;
    background-color: #0A2463; /* Dark blue background for question */
    transition: background-color 0.3s ease;
}

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

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

.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: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
}

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

.page-about__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #f0f0f0;
}

/* Call to Action Section */
.page-about__cta-section {
    text-align: center;
    background-color: #0A2463;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
    background-color: #FFD700; /* Gold button */
    color: #0A2463; /* Dark blue text */
    border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A2463; /* Dark blue text on hover */
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .page-about__grid-layout--reversed {
        grid-template-areas: unset;
    }
    .page-about__grid-layout--reversed .page-about__image-wrapper {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        min-height: 400px;
        padding: 80px 0;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-about__intro-text {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-about__story-section,
    .page-about__why-choose-us-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-section,
    .page-about__values-section {
        padding: 50px 0;
    }
    .page-about__values-grid,
    .page-about__responsible-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__value-card,
    .page-about__feature-card {
        padding: 20px;
    }
    .page-about__feature-item {
        font-size: 1em;
        padding: 12px 15px;
    }
    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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: 15px 20px;
    }
    /* Mobile image responsive adaptation */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__image-wrapper,
    .page-about__container {
        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: var(--header-offset, 120px) !important; /* Re-apply for mobile if needed */
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.6em;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        font-size: 1em;
        padding: 12px 15px;
    }
}