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

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--page-about-text-main); /* Light text on dark body background */
    background-color: var(--page-about-background); /* Body background from shared */
    line-height: 1.6;
}

/* 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;
    padding: 10px 20px 60px 20px; /* Small top padding, more bottom padding */
    text-align: center;
    overflow: hidden;
    background-color: var(--page-about-deep-green); /* Darker background for hero */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    max-height: 600px; /* Limit image height */
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
}

.page-about__hero-content {
    width: 100%;
    max-width: 900px;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: var(--page-about-gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

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

.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
    background: var(--page-about-button-gradient);
    color: #ffffff; /* White text on dark button */
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
    filter: brightness(1.1);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--page-about-gold-color); /* Gold text on transparent button */
    border: 2px solid var(--page-about-gold-color);
}

.page-about__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: rgba(242, 193, 78, 0.1);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.2);
}

/* Content Sections */
.page-about__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--page-about-background); /* Ensure consistent background */
    color: var(--page-about-text-main); /* Light text */
}

.page-about__dark-section {
    background-color: var(--page-about-deep-green); /* Darker green background */
    color: var(--page-about-text-main); /* Light text */
    padding: 60px 20px;
    text-align: center;
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem); /* Responsive font size */
    color: var(--page-about-gold-color);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

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

.page-about__image-full {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    object-fit: cover;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-about__image-responsive {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 30px auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

/* Mission & Vision Grid */
.page-about__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.page-about__grid-item {
    background-color: var(--page-about-card-bg); /* Card background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-about-border-color);
}

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

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

.page-about__feature-card {
    background-color: var(--page-about-card-bg); /* Card background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-about-border-color);
}

.page-about__feature-icon {
    width: 100%; /* Occupy major visual area */
    max-width: 250px; /* Example max width for card image */
    height: auto;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
    display: block; /* Ensure it's a block element for margin auto */
}

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

/* Responsible Gaming Section */
.page-about__responsible-gaming-section .page-about__cta-buttons {
    margin-top: 40px;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-item {
    background-color: var(--page-about-card-bg); /* Card background */
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--page-about-border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-about-primary-color);
    cursor: pointer;
    background-color: var(--page-about-deep-green); /* Slightly darker for question header */
    transition: background-color 0.3s ease;
}

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

.page-about__faq-question:hover .page-about__faq-toggle {
    color: #ffffff;
}

.page-about__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--page-about-gold-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

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

.page-about__faq-answer p {
    margin-top: 15px;
}

/* Hide default details marker */
.page-about__faq-item summary {
    list-style: none;
}
.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-about__hero-image {
        max-height: 500px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-about__description {
        font-size: 1.1rem;
    }
    .page-about__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 10px 15px 40px 15px;
    }
    .page-about__hero-image {
        max-height: 400px;
        margin-bottom: 20px;
    }
    .page-about__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-about__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }

    .page-about__content-area,
    .page-about__dark-section {
        padding: 40px 15px;
    }
    .page-about__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }
    .page-about__text-block {
        font-size: 1rem;
    }

    .page-about__grid-container,
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__story-section,
    .page-about__mission-vision-section,
    .page-about__why-choose-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__faq-item,
    .page-about__grid-item,
    .page-about__feature-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific adjustment for sections that already have 15px padding */
    .page-about__content-area,
    .page-about__dark-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Ensure card images are still large */
    .page-about__feature-icon {
        max-width: 100% !important; /* Card image occupies full width of card */
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Video section (if any, although not in this page) */
    .page-about__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .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;
    }
}