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

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Using custom palette: #F2FFF6 */
    background-color: var(--background); /* Using custom palette: #08160F */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0 60px; /* Small top padding, main padding below image */
    background-color: var(--background);
    overflow: hidden; /* Ensure no overflow from hero image */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image to make content pop, not changing color */
}

.page-about__hero-content {
    position: relative; /* Ensure content is above any potential image overlap if not handled by flex-direction */
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Using clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-main);
}

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

/* General Section Styling */
.page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-main);
}

.page-about__intro-section,
.page-about__history-section,
.page-about__commitment-section,
.page-about__responsible-gambling-section,
.page-about__future-section,
.page-about__faq-section,
.page-about__cta-section {
    padding: 80px 0;
}

.page-about__dark-section {
    background-color: var(--card-bg); /* Using custom palette: #11271B */
}

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

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

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

.page-about__text-block p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

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

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it behaves as a block element for max-width */
}

/* Commitment Cards */
.page-about__commitment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__card {
    background-color: var(--background); /* Using custom palette: #08160F */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border); /* Using custom palette: #2E7A4E */
    color: var(--text-secondary);
}

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

.page-about__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 20px;
    display: block; /* Ensure it behaves as a block element for max-width */
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
    color: var(--text-main); /* #F2FFF6 */
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--glow); /* #57E38D */
    border: 2px solid var(--glow);
}

.page-about__btn-secondary:hover {
    background-color: var(--glow);
    color: var(--card-bg); /* Darker text on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.3);
}

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

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

.page-about__faq-item {
    background-color: var(--background); /* Using custom palette: #08160F */
    border: 1px solid var(--divider); /* Using custom palette: #1E3A2A */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

.page-about__faq-item summary:hover {
    background-color: rgba(var(--main-color-rgb), 0.1); /* Lighter hover for dark background */
}

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

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

.page-about__faq-answer {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.page-about__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

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

/* Call to Action Section */
.page-about__cta-section {
    text-align: center;
    padding: 60px 0;
    background-color: var(--deep-green); /* Using custom palette: #0A4B2C */
    color: var(--text-main);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__content-grid {
        flex-direction: column;
    }
    .page-about__content-grid--reverse {
        flex-direction: column;
    }
    .page-about__hero-content {
        padding-top: 30px;
    }
}

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

    .page-about__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

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

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

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

    .page-about__intro-section,
    .page-about__history-section,
    .page-about__commitment-section,
    .page-about__responsible-gambling-section,
    .page-about__future-section,
    .page-about__faq-section,
    .page-about__cta-section {
        padding: 50px 0;
    }

    .page-about__commitment-cards {
        grid-template-columns: 1fr;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile image responsiveness */
    .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-image-wrapper,
    .page-about__image-block,
    .page-about__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        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;
    }

    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}