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

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text for dark background */
    background-color: var(--background); /* Overall dark background */
}

.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    background-color: var(--deep-green); /* Example background for hero, ensuring contrast */
    overflow: hidden; /* Ensure no overflow */
}

.page-about__image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any background elements */
    padding: 20px;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 15px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-about__btn-secondary:hover {
    background-color: rgba(17, 168, 78, 0.1); /* Use RGB for transparency based on --primary-color */
    transform: translateY(-2px);
}

/* General Section Styles */
.page-about__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--text-main);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-about__text-block {
    font-size: 1em;
    color: var(--text-secondary);
    text-align: justify;
    margin-bottom: 1em;
}

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

.page-about__intro-section,
.page-about__why-choose-us-section,
.page-about__faq-section {
    background-color: var(--background);
    padding: 60px 0;
}

.page-about__mission-vision-section,
.page-about__responsible-gaming-section,
.page-about__cta-bottom-section {
    background-color: var(--card-bg); /* Darker background for these sections */
    padding: 60px 0;
}

.page-about__dark-section {
    background-color: var(--card-bg);
    color: var(--text-main);
}
.page-about__dark-section .page-about__text-block,
.page-about__dark-section .page-about__card-text {
    color: var(--text-secondary);
}


/* Mission, Vision, Values Section */
.page-about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-about__card {
    background-color: var(--card-bg); /* Use custom card background */
    border: 1px solid var(--border-color); /* Use custom border color */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: var(--text-main); /* Ensure light text on dark card */
}

.page-about__card-title {
    font-size: 1.5em;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-text {
    font-size: 1em;
    color: var(--text-secondary);
}

.page-about__values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-about__values-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

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

.page-about__values-list li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-about__section-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Why Choose Us Section */
.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-about__feature-item {
    padding: 25px;
    text-align: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-about__feature-title {
    font-size: 1.4em;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: bold;
}

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

/* FAQ Section */
.page-about__faq-list {
    margin-top: 30px;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green); /* Slightly different shade for question */
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
    display: none;
}

.page-about__faq-question:hover {
    background-color: rgba(10, 75, 44, 0.8); /* Darken on hover, based on --deep-green */
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 15px;
}

.page-about__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: var(--text-secondary);
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

/* Styling for details element default open state */
.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--border-color);
}
.page-about__faq-item[open] .page-about__faq-toggle {
    content: '−';
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-section {
        padding: 40px 15px;
    }
    .page-about__container {
        padding: 30px 15px;
    }
    .page-about__grid {
        grid-template-columns: 1fr;
    }
    .page-about__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* body has padding, keep this small */
    }
    .page-about__container,
    .page-about__hero-content,
    .page-about__image-wrapper,
    .page-about__cta-buttons,
    .page-about__card,
    .page-about__feature-item,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    .page-about__main-title {
        font-size: 2em; /* Smaller H1 for mobile */
    }

    .page-about__description {
        font-size: 1em;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* Add spacing between stacked buttons */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

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

    .page-about__card {
        padding: 20px;
    }

    .page-about__card-title {
        font-size: 1.3em;
    }

    /* Image responsive rules */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Video responsive rules (if any video were present) */
    .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;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
}