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

    /* Brand Main/Auxiliary */
    --color-primary: #11A84E; /* Main: Green */
    --color-secondary: #22C768; /* Auxiliary: Lighter Green */
}

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Light text on dark background */
    background-color: var(--color-background); /* Dark background for main content sections */
    line-height: 1.6;
    font-size: 16px;
}

.page-about__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-about__dark-section {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

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

.page-about__container--center {
    text-align: center;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--color-background); /* Ensure consistent background */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
}

.page-about__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Pull content slightly over the image for visual flow, but not *on* the image */
    position: relative; /* Ensure it's above the image if any overlap happens due to negative margin */
    background-color: var(--color-background); /* Match section background */
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

/* Buttons */
.page-about__btn-primary {
    display: inline-block;
    padding: 14px 30px;
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    background-color: transparent;
    color: var(--color-gold);
    text-decoration: none;
    border: 2px solid var(--color-gold);
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.page-about__btn-link {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--color-gold);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-about__btn-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Section Titles */
.page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-about__section-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* Content Layouts */
.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

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

.page-about__text-block {
    flex: 1;
    color: var(--color-text-main);
}

.page-about__text-block p {
    margin-bottom: 15px;
}

.page-about__text-block strong {
    color: var(--color-gold);
}

.page-about__image-block {
    flex: 1;
    min-width: 300px; /* Ensure image block has a minimum size */
}

.page-about__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Features Grid */
.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-about__card-description {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* Game Categories */
.page-about__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__game-card {
    background-color: var(--color-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-deep-green);
    transition: background-color 0.3s ease;
    list-style: none; /* For <summary> tag */
}

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

.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--color-primary);
}

.page-about__faq-question:hover {
    background-color: var(--color-primary);
}

.page-about__faq-qtext {
    flex-grow: 1;
    color: var(--color-text-main);
}

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

.page-about__faq-answer {
    padding: 20px 25px 25px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-divider);
}

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

.page-about__faq-answer a {
    margin-top: 15px;
    display: inline-block;
}

/* CTA Bottom Section */
.page-about__cta-bottom-section .page-about__section-title,
.page-about__cta-bottom-section .page-about__section-description {
    color: var(--color-text-main);
}

.page-about__cta-bottom-section .page-about__section-title {
    color: var(--color-gold);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__content-wrapper {
        flex-direction: column;
    }

    .page-about__content-wrapper--reverse {
        flex-direction: column; /* Revert to column for smaller screens */
    }

    .page-about__hero-content {
        margin-top: -40px;
        padding: 30px 15px;
    }
}

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

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

    .page-about__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-about__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

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

    .page-about__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    /* Images */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers containing images, videos, buttons */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__story-section,
    .page-about__why-choose-us-section,
    .page-about__commitment-section,
    .page-about__games-section,
    .page-about__faq-section,
    .page-about__cta-bottom-section,
    .page-about__content-wrapper,
    .page-about__features-grid,
    .page-about__game-categories,
    .page-about__faq-list,
    .page-about__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video specific - though this page has no video, good to include for robustness */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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;
    }
    .page-about__video-section {
        padding-top: 10px !important;
    }

    /* Buttons */
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important; /* Make buttons full width on mobile */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }

    .page-about__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    .page-about__hero-content {
        padding: 20px 10px;
    }

    .page-about__features-grid,
    .page-about__game-categories {
        grid-template-columns: 1fr; /* Single column layout */
    }

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

    .page-about__faq-answer {
        font-size: 0.9rem;
        padding: 15px 20px;
    }

    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .page-about__card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

/* Color Contrast Enforcement */
/* Assuming body background is dark (#08160F), text is light by default (var(--color-text-main)) */
.page-about__card-title,
.page-about__faq-qtext {
    color: var(--color-gold); /* Ensure high contrast */
}

.page-about__card-description {
    color: var(--color-text-secondary); /* Ensure high contrast */
}

/* Ensure links are visible */
.page-about a {
    color: var(--color-gold);
}
.page-about a:hover {
    color: var(--color-primary);
}

/* Contrast fix if needed, though with dark background and light text, it should be good */
.page-about__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-about__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}