/* style/about.css */

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

/* Base styles for page-about, considering dark body background */
.page-about {
    font-family: Arial, sans-serif;
    color: var(--qq99-text-main); /* Light text for dark background */
    line-height: 1.6;
    background-color: var(--qq99-background); /* Ensure consistent background for main content */
}

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

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

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

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

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

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3em); /* H1 font size with clamp */
    font-weight: 700;
    line-height: 1.2;
    color: var(--qq99-gold); /* Gold for emphasis */
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.page-about__intro-text {
    font-size: 1.1em;
    color: var(--qq99-text-secondary);
    margin-bottom: 30px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 500px; /* Limit overall width for aesthetic */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button adapts to container */
}

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

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-about__btn-secondary:hover {
    background: var(--qq99-primary);
    color: var(--qq99-text-main);
    transform: translateY(-2px);
}

.page-about__btn-tertiary {
    background: var(--qq99-deep-green);
    color: var(--qq99-text-secondary);
    border: 1px solid var(--qq99-divider);
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-about__btn-tertiary:hover {
    background: var(--qq99-primary);
    color: var(--qq99-text-main);
}

/* --- General Section Styles --- */
.page-about__introduction-section,
.page-about__responsible-gambling-section,
.page-about__faq-section {
    padding: 60px 0;
    background-color: var(--qq99-background);
}

.page-about__why-choose-section {
    padding: 80px 0;
    background-color: var(--qq99-card-bg); /* Darker background for contrast */
    color: var(--qq99-text-main);
}

.page-about__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    color: var(--qq99-gold);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-about__sub-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--qq99-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__content-grid--reverse {
    grid-template-columns: 1fr 1fr; /* Default for desktop */
}

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

.page-about__text-block strong {
    color: var(--qq99-text-main);
}

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

.page-about__value-list li,
.page-about__game-list li {
    background-color: var(--qq99-deep-green);
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    color: var(--qq99-text-main);
    border: 1px solid var(--qq99-divider);
}

.page-about__value-list li strong {
    color: var(--qq99-gold);
    margin-right: 8px;
}

.page-about__value-list li::before,
.page-about__game-list li::before {
    content: '✓';
    color: var(--qq99-glow);
    font-weight: bold;
    margin-right: 10px;
}

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

.page-about__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* --- Feature Cards (Why Choose Section) --- */
.page-about__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__feature-card {
    background-color: var(--qq99-deep-green);
    border: 1px solid var(--qq99-divider);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have similar height */
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__card-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-about__card-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--qq99-gold);
    margin-bottom: 15px;
}

.page-about__feature-card p {
    color: var(--qq99-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--qq99-primary);
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default details marker */
}

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

.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--qq99-deep-green);
    color: var(--qq99-gold);
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--qq99-gold);
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95em;
    color: var(--qq99-text-secondary);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-about__content-grid {
        grid-template-columns: 1fr;
    }

    .page-about__content-grid--reverse {
        grid-template-columns: 1fr;
    }

    .page-about__content-grid--reverse .page-about__image-block {
        order: -1; /* Image appears above text on mobile */
    }

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

    .page-about__section-title {
        font-size: clamp(1.5em, 4.5vw, 2em);
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-bottom: 40px;
    }
    .page-about__introduction-section,
    .page-about__responsible-gambling-section,
    .page-about__faq-section,
    .page-about__why-choose-section {
        padding: 40px 0;
    }

    .page-about__container {
        padding: 0 15px;
    }

    /* Mobile image adaptation */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__image-block,
    .page-about__hero-image-wrapper,
    .page-about__feature-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-about__feature-card {
        padding: 20px;
        min-height: auto; /* Allow height to adjust */
    }
    .page-about__card-image {
        height: auto; /* Allow height to adjust */
    }

    /* Mobile button adaptation */
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-tertiary,
    .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__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px;
    }

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

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

/* Color contrast is handled by using light text on dark backgrounds from the color palette */
.page-about__dark-section {
    background: var(--qq99-card-bg); /* Darker background */
    color: var(--qq99-text-main); /* Light text */
}

.page-about__btn-primary {
    color: var(--qq99-text-main); /* White-ish on green gradient */
}
.page-about__btn-secondary {
    color: var(--qq99-primary); /* Green on transparent/white-ish */
}
.page-about__btn-secondary:hover {
    color: var(--qq99-text-main); /* White-ish on green */
}
.page-about__btn-tertiary {
    color: var(--qq99-text-secondary); /* Grey-ish on deep green */
}
.page-about__btn-tertiary:hover {
    color: var(--qq99-text-main); /* White-ish on primary green */
}