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

/* Base styles for the about page */
.page-about {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page, assuming dark body background */
    background-color: var(--body-bg-custom); /* This is for specific sections, body bg is from shared */
}

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

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

.page-about__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--gold-color);
    border-radius: 2px;
}

.page-about__paragraph {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-about__paragraph--small {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.page-about__highlight {
    color: var(--primary-color);
    font-weight: bold;
}

/* HERO Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--deep-green);
    overflow: hidden;
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-about__main-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: 20px;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-about__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-about__cta-button--secondary {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.page-about__cta-button--secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button--wide {
    width: 100%;
    max-width: 350px;
    margin-top: 15px;
}

.page-about__cta-button--large {
    font-size: 22px;
    padding: 18px 45px;
}

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

/* Section: Intro */
.page-about__section--intro {
    background-color: #ffffff;
    color: #333333;
}

.page-about__section--intro .page-about__section-title, 
.page-about__section--intro .page-about__paragraph {
    color: #333333;
}

.page-about__section--intro .page-about__highlight {
    color: var(--primary-color);
}

/* Section: History and Values */
.page-about__section--values {
    background-color: var(--card-bg);
    color: var(--text-main);
}

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

.page-about__grid-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__grid-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.page-about__list-item {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
}

.page-about__list-item::before {
    content: '✓';
    color: var(--gold-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Section: Why Choose */
.page-about__section--why-choose {
    background-color: #ffffff;
    color: #333333;
}

.page-about__section--why-choose .page-about__section-title {
    color: #333333;
}

.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(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

/* Section: Responsible Gaming */
.page-about__section--responsible-gaming {
    background-color: var(--deep-green);
    color: var(--text-main);
}

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

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

.page-about__image-content {
    flex: 1;
    min-width: 300px;
}

.page-about__image-content img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.page-about__cta-button--small {
    padding: 10px 25px;
    font-size: 16px;
    margin-top: 25px;
}

/* FAQ Section */
.page-about__section--faq {
    background-color: #f8f8f8;
    color: #333333;
}

.page-about__section--faq .page-about__section-title {
    color: #333333;
}

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

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

details.page-about__faq-item summary.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #333333;
    font-weight: 600;
}

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

details.page-about__faq-item summary.page-about__faq-question:hover {
    background: #f5f5f5;
}

.page-about__faq-qtext {
    flex: 1;
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
}

.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 20px;
    width: 30px;
    text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
    padding: 0 25px 25px;
    background: #fdfdfd;
    border-top: 1px solid #eee;
    color: #555555;
    font-size: 16px;
    line-height: 1.7;
    border-radius: 0 0 8px 8px;
}

/* Contact CTA Section */
.page-about__section--contact-cta {
    background-color: var(--deep-green);
    color: var(--text-main);
    padding: 80px 0;
}

.page-about__container--flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-about__contact-text {
    flex: 2;
}

.page-about__contact-buttons {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 250px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-image img {
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__hero-image img {
        border-radius: 6px;
    }

    .page-about__main-title {
        font-size: clamp(28px, 6vw, 40px);
    }

    .page-about__hero-description {
        font-size: 18px;
    }

    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 18px;
    }

    .page-about__section {
        padding: 40px 0;
    }

    .page-about__section-title {
        font-size: clamp(24px, 5vw, 36px);
        margin-bottom: 30px;
    }

    .page-about__paragraph {
        font-size: 16px;
    }

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

    .page-about__grid-item {
        text-align: center;
    }

    .page-about__grid-item img {
        border-radius: 6px;
    }

    .page-about__list-item {
        padding-left: 0;
        text-align: center;
    }

    .page-about__list-item::before {
        display: none;
    }

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

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

    .page-about__feature-title {
        font-size: 20px;
    }

    .page-about__content-flex {
        flex-direction: column;
    }

    .page-about__image-content {
        order: -1; /* Image appears before text on mobile */
        margin-bottom: 30px;
    }

    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px 20px;
    }

    .page-about__faq-qtext {
        font-size: 16px;
    }

    .page-about__faq-toggle {
        font-size: 24px;
        margin-left: 15px;
        width: 25px;
    }

    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 20px 20px;
    }

    .page-about__container--flex {
        flex-direction: column;
        text-align: center;
    }

    .page-about__contact-buttons {
        width: 100%;
        max-width: 100%;
        min-width: unset;
    }

    /* Mobile image and button responsive overrides */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__cta-button,
    .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;
    }

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

    .page-about__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}

/* Color contrast rules - assuming body has a dark background from shared.css */
.page-about {
    color: var(--text-main); /* Light text for dark background */
}

.page-about__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-about__dark-bg {
    background-color: var(--deep-green);
    color: var(--text-main);
}

.page-about__section--intro .page-about__paragraph,
.page-about__section--why-choose .page-about__paragraph--small {
    color: #555555;
}

.page-about__faq-item .page-about__faq-answer p {
    color: #555555;
}

.page-about__cta-button--secondary {
    color: var(--primary-color);
}

.page-about__cta-button--secondary:hover {
    color: #ffffff;
}

.page-about__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-about__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}