/* style/about.css */

/* Custom Colors from prompt */
:root {
    --go8web-primary-color: #11A84E;
    --go8web-secondary-color: #22C768;
    --go8web-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --go8web-card-bg: #11271B;
    --go8web-background: #08160F;
    --go8web-text-main: #F2FFF6;
    --go8web-text-secondary: #A7D9B8;
    --go8web-border: #2E7A4E;
    --go8web-glow: #57E38D;
    --go8web-gold: #F2C14E;
    --go8web-divider: #1E3A2A;
    --go8web-deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring light text on dark background */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--go8web-text-main); /* Light text on dark body background */
    background-color: var(--go8web-background); /* Explicitly set, though body is handled by shared */
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Section general styling */
.page-about__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem); /* Use clamp for H2 */
    color: var(--go8web-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-about__text-block {
    margin-bottom: 20px;
    color: var(--go8web-text-secondary);
}

.page-about__dark-section {
    background-color: var(--go8web-card-bg); /* Use dark card background for sections */
    padding: 60px 0;
}

/* HERO Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--go8web-background);
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Match container width for image */
    margin-bottom: 30px; /* Space between image and content */
}

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

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

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font size, using clamp */
    color: var(--go8web-gold); /* Using gold for H1 for prominence */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__lead-paragraph {
    font-size: 1.15rem;
    color: var(--go8web-text-main);
    margin-bottom: 30px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for button max-width */
}

.page-about__btn-primary {
    background: var(--go8web-button-gradient);
    color: var(--go8web-text-main); /* Light text on dark gradient */
    border: none;
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
    background: var(--go8web-primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 80px 0;
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.page-about__content-grid--reverse {
    flex-direction: row-reverse; /* For text-image layout */
}

.page-about__card {
    background-color: var(--go8web-card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--go8web-text-main);
    border: 1px solid var(--go8web-border);
}

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

.page-about__card p {
    color: var(--go8web-text-secondary);
}

.page-about__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image-wrapper--mission {
    grid-column: span 2; /* Make mission image span across two columns for larger display */
}

.page-about__image-wrapper--responsible {
    order: 2; /* On desktop, image comes after text */
}

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

/* History Section */
.page-about__history-section {
    padding: 80px 0;
    background-color: var(--go8web-background);
}

.page-about__sub-title {
    font-size: 1.3rem;
    color: var(--go8web-gold);
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: bold;
}

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

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

.page-about__feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-about__feature-card .page-about__card-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 80px 0;
    background-color: var(--go8web-background);
}

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

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--go8web-gold);
    list-style: none; /* For <summary> */
    user-select: none;
}

.page-about__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <summary> */
}

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

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-image-wrapper {
        max-width: 900px;
    }
    .page-about__image-wrapper--mission {
        grid-column: auto; /* Adjust mission image span */
    }
}

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

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

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

    .page-about__lead-paragraph {
        font-size: 1rem;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px; /* Constrain buttons for mobile */
        margin: 0 auto;
        width: 100%;
    }

    .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;
        padding-right: 15px;
    }

    .page-about__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-about__content-grid,
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-about__image-wrapper--mission {
        grid-column: auto;
    }

    .page-about__image-wrapper--responsible {
        order: -1; /* Image on top of text for mobile */
        margin-bottom: 20px;
    }

    .page-about__card {
        padding: 20px;
    }

    .page-about__sub-title {
        font-size: 1.2rem;
    }

    /* Mobile image and video responsive adaptation */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about video,
    .page-about__video { /* If video is ever added */
        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-wrapper,
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper { 
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

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

/* Ensure no filter on images */
.page-about img {
    filter: none !important;
}

/* Contrast Fixes - although using custom colors and light text on dark background should prevent issues */
.page-about p,
.page-about li,
.page-about__text-block {
    color: var(--go8web-text-secondary); /* Ensure good contrast */
}

.page-about h1, .page-about h2, .page-about h3, .page-about h4, .page-about h5, .page-about h6 {
    color: var(--go8web-gold); /* Prominent headings */
}

.page-about__faq-question {
    color: var(--go8web-gold); /* FAQ question text */
}

.page-about__faq-answer {
    color: var(--go8web-text-secondary); /* FAQ answer text */
}