:root {
    /* Custom colors based on provided scheme */
    --primary-color: #11A84E; /* Main color */
    --secondary-color: #22C768; /* Auxiliary color */
    --background-dark: #08160F; /* Background */
    --card-bg: #11271B; /* Card BG */
    --text-main: #F2FFF6; /* Text Main */
    --text-secondary: #A7D9B8; /* Text Secondary */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green: #0A4B2C; /* Deep Green */

    /* Default text color for light backgrounds, not directly used here but good practice */
    --text-on-light: #333333;
}

/* Base styles for the page-about scope */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--background-dark); /* Ensure background is set */
}

/* Ensure all images are responsive by default */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
    border-radius: 8px; /* Consistent styling */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure content doesn't overflow */
}

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

.page-about__hero-image {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    height: 675px; /* Fixed height for desktop hero, will be auto on mobile */
}

.page-about__hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative; /* Ensure content is above any decorative elements if any */
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    color: var(--gold-color); /* Gold for main title */
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-about__subtitle {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex; /* Use flex for vertical alignment of text */
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center; /* Center text if it wraps */
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* White text on dark button */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

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

.page-about__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--background-dark); /* Dark text on light button */
    transform: translateY(-3px);
}

/* General Section Styles */
.page-about__section {
    padding: 60px 0;
    background-color: var(--background-dark); /* Default background for sections */
}

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

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

.page-about__section-title {
    font-size: 2.5em;
    color: var(--gold-color); /* Gold for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-about__text-block {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-about__text-block a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-about__text-block a:hover {
    color: var(--glow-color);
}

.page-about__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-about__list li {
    background: var(--card-bg);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    color: var(--text-main);
    font-size: 1.1em;
    border-left: 5px solid var(--secondary-color);
}

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

/* Content with Image Layout */
.page-about__content-with-image {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__content-with-image .page-about__image-left {
    flex: 1;
    min-width: 300px; /* Minimum width for image before wrapping */
}

.page-about__content-with-image .page-about__text-block {
    flex: 2;
    min-width: 300px; /* Minimum width for text before wrapping */
}

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

.page-about__content-with-image--reverse .page-about__image-right {
    flex: 1;
    min-width: 300px;
}

.page-about__content-with-image--reverse .page-about__text-block {
    flex: 2;
    min-width: 300px;
}

/* Why Choose Section */
.page-about__why-choose {
    background-color: var(--deep-green); /* Slightly different background for visual separation */
}

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

.page-about__feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
    box-sizing: border-box;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
}

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

.page-about__feature-description {
    font-size: 1em;
    color: var(--text-secondary);
    flex-grow: 1; /* Allows description to take available space */
}

.page-about__feature-description a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-about__feature-description a:hover {
    color: var(--glow-color);
}

.page-about__game-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 15px;
    color: var(--text-secondary);
}

.page-about__game-list li {
    background: none;
    padding: 5px 0;
    margin-bottom: 5px;
    border-left: none;
    font-size: 0.95em;
}

.page-about__game-list li strong {
    color: var(--text-main);
}

.page-about__game-list li a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-about__game-list li a:hover {
    color: var(--glow-color);
}

.page-about__section-image {
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
}

/* Join Us Section */
.page-about__join-us {
    background-color: var(--primary-color); /* Use primary color for strong CTA */
    padding: 80px 0;
    text-align: center;
}

.page-about__join-us .page-about__section-title {
    color: var(--text-main); /* White text on primary background */
    margin-bottom: 20px;
}

.page-about__join-us .page-about__text-block {
    color: var(--text-main);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.page-about__cta-image {
    margin-top: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
}

.page-about__small-text {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 30px;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--background-dark);
    padding-bottom: 80px;
}

.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 20px;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background: var(--card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for summary */
}

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

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

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

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

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: var(--text-secondary);
    line-height: 1.7;
}

.page-about__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--text-secondary); /* Ensure paragraph color is correct */
}

.page-about__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-about__faq-answer a:hover {
    color: var(--glow-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-image {
        height: 500px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__text-block,
    .page-about__list li,
    .page-about__feature-description,
    .page-about__faq-question,
    .page-about__faq-answer {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    /* Mobile-specific adjustments */
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    /* All images must be responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers that contain images/videos/buttons must be responsive */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__hero-image-wrapper,
    .page-about__hero-content,
    .page-about__cta-buttons,
    .page-about__feature-card,
    .page-about__content-with-image {
        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__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-about__hero-image {
        height: 300px; /* Adjust hero image height for mobile */
    }

    .page-about__main-title {
        font-size: clamp(1.5em, 7vw, 2.5em);
        margin-bottom: 10px;
    }

    .page-about__subtitle {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important; /* Full width buttons */
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: 1.3em;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .page-about__content-with-image,
    .page-about__content-with-image--reverse {
        flex-direction: column; /* Stack image and text vertically */
    }

    .page-about__content-with-image .page-about__image-left,
    .page-about__content-with-image--reverse .page-about__image-right {
        margin-bottom: 20px;
    }

    .page-about__feature-card {
        padding: 25px;
    }

    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-about__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    /* Video specific mobile rules - although not used in this page, good to include if it were */
    .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;
    }
}