:root {
    --page-about-primary-color: #017439;
    --page-about-secondary-color: #FFFFFF;
    --page-about-text-dark: #333333;
    --page-about-text-light: #ffffff;
    --page-about-button-register: #C30808;
    --page-about-button-login: #C30808;
    --page-about-button-text-yellow: #FFFF00;
    --page-about-bg-white: #FFFFFF;
}

.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-about-text-light); /* Default to light text as body is dark */
    background-color: var(--neon-dark-bg); /* Inherited from shared, ensuring contrast */
}

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

.page-about__section {
    padding: 60px 0;
    position: relative;
}

.page-about__section-title {
    font-size: 2.5em;
    color: var(--page-about-primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-about__section-title--white {
    color: var(--page-about-secondary-color);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-about__hero-content {
    position: relative;
    z-index: 3;
    color: var(--page-about-text-light);
    max-width: 900px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: var(--page-about-secondary-color);
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-about__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-about__btn-primary {
    background-color: var(--page-about-button-register); /* Register color */
    color: var(--page-about-button-text-yellow); /* Register/Login text color */
    border: 2px solid var(--page-about-button-register);
}

.page-about__btn-primary:hover {
    background-color: #e00b0b; /* Slightly darker red */
    border-color: #e00b0b;
    transform: translateY(-2px);
}

.page-about__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.1em;
}

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

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

/* Story Mission Section */
.page-about__story-mission {
    background-color: var(--page-about-bg-white);
    color: var(--page-about-text-dark);
}

.page-about__story-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__story-content .page-about__text-block {
    flex: 1;
}

.page-about__story-content .page-about__image-right {
    flex: 1;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Why Choose Section */
.page-about__why-choose {
    background-color: var(--page-about-primary-color);
    color: var(--page-about-text-light);
}

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

.page-about__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--page-about-text-light); /* Ensure light text on dark card */
}

.page-about__card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

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

/* Responsible Gaming Section */
.page-about__responsible-gaming {
    background-color: var(--page-about-bg-white);
    color: var(--page-about-text-dark);
}

.page-about__content-flex {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__content-flex .page-about__text-block {
    flex: 1;
}

.page-about__content-flex .page-about__image-left {
    flex: 1;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Technology & Innovation Section */
.page-about__technology-innovation {
    background-color: #f0f8ff; /* Light blueish background for tech theme */
    color: var(--page-about-text-dark);
}

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

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--page-about-bg-white);
    color: var(--page-about-text-dark);
}

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

.page-about__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: var(--page-about-bg-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: bold;
    color: var(--page-about-primary-color);
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #f0f0f0;
}

.page-about__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: inherit;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: var(--page-about-primary-color);
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--page-about-text-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px;
    padding-top: 0; /* No top padding when expanded, to avoid double padding with question */
}

/* Call to Action Banner */
.page-about__cta-banner {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--page-about-primary-color); /* Fallback */
}

.page-about__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-about__cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.page-about__cta-content {
    position: relative;
    z-index: 3;
    color: var(--page-about-text-light);
    max-width: 800px;
}

.page-about__cta-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--page-about-secondary-color);
}

.page-about__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
}


/* General Image Styling */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures proper spacing and max-width behavior */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__cta-title {
        font-size: 2.2em;
    }
    .page-about__story-content,
    .page-about__content-flex {
        flex-direction: column;
    }
    .page-about__story-content .page-about__image-right,
    .page-about__content-flex .page-about__image-left,
    .page-about__technology-innovation .page-about__image-right {
        margin-top: 30px;
    }
}

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

    /* Hero Section */
    .page-about__hero-section {
        height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .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;
    }

    /* General sections and containers for mobile overflow prevention */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__story-content,
    .page-about__content-flex,
    .page-about__cta-banner,
    .page-about__faq-list,
    .page-about__grid-3 {
        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 */
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    /* Images */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* CTA Banner */
    .page-about__cta-banner {
        height: 300px;
    }
    .page-about__cta-title {
        font-size: 1.8em;
    }
    .page-about__cta-description {
        font-size: 0.9em;
    }
    .page-about__btn-primary--large {
        padding: 15px 30px;
        font-size: 1em;
    }

    /* FAQ */
    .page-about__faq-question {
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px;
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__hero-description {
        font-size: 0.9em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__card-title {
        font-size: 1.3em;
    }
    .page-about__cta-title {
        font-size: 1.6em;
    }
}