/* Custom Colors */
:root {
    --primary-color: #11A84E; /* Main */
    --secondary-color: #22C768; /* Aux */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-background: #11271B;
    --background-color-dark: #08160F;
    --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 page-about content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--background-color-dark); /* Page background from custom colors */
    padding-bottom: 60px; /* Space for footer */
}

.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; /* Image first, then content */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-color-dark);
    padding-bottom: 40px;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for aesthetic */
}

.page-about__hero-content {
    max-width: 900px;
    margin-top: 30px;
    padding: 0 20px;
}

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

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

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__faq-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px var(--glow-color);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Section General */
.page-about__section {
    padding: 60px 0;
    background-color: var(--background-color-dark); /* Ensure consistent dark background */
}

.page-about__section-title {
    font-size: 2.2em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-about__section-title--light {
    color: var(--text-main);
}

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

.page-about__text-block--light {
    color: var(--text-secondary);
}

/* Two Column Layout */
.page-about__two-column-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__two-column-layout.page-about__reverse-columns {
    flex-direction: row-reverse;
}

.page-about__content-column,
.page-about__image-column {
    flex: 1;
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Mission & Values */
.page-about__value-item {
    margin-bottom: 30px;
}

.page-about__value-title {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-about__value-list {
    list-style: none;
    padding-left: 0;
}

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

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

.page-about__value-list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Why Choose Us Grid */
.page-about__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-about__card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

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

.page-about__card-text {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-grow: 1; /* Push link to bottom */
}

.page-about__card-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
    margin-bottom: 15px;
}

.page-about__card-list li {
    margin-bottom: 8px;
}

.page-about__card-list li a,
.page-about__card-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-about__card-list li a:hover,
.page-about__card-link:hover {
    text-decoration: underline;
    color: var(--glow-color);
}

.page-about__image-block {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-top: 40px;
  text-align: center;
}

/* Responsible Gambling */
.page-about__responsible-gambling .page-about__cta-buttons {
    margin-top: 30px;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--deep-green);
}

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

.page-about__faq-item {
    background-color: var(--card-background);
    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: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-background);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}
.page-about__faq-question::marker {
    display: none; /* Hide default marker for Firefox */
}

.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--border-color);
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

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

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

.page-about__faq-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}
.page-about__faq-link:hover {
    text-decoration: underline;
    color: var(--glow-color);
}


/* Call to Action */
.page-about__call-to-action .page-about__container {
    padding: 60px;
    text-align: center;
    background-color: var(--deep-green); /* Use a distinct dark green */
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive design */
@media (max-width: 992px) {
    .page-about__two-column-layout {
        flex-direction: column;
    }
    .page-about__two-column-layout.page-about__reverse-columns {
        flex-direction: column; /* Revert to default for smaller screens */
    }
    .page-about__hero-content {
        margin-top: 20px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__hero-section {
        padding-bottom: 30px;
    }
    .page-about__hero-image {
      max-height: 400px;
    }

    /* Images 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__image-column,
    .page-about__content-column {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Buttons responsiveness */
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__faq-link {
        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__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 10px 20px 15px;
    }

    .page-about__call-to-action .page-about__container {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: clamp(1.6em, 6vw, 2em);
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.6em;
    }
    .page-about__card-title {
        font-size: 1.3em;
    }
}