/* style/about.css */

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

.page-about {
    font-family: Arial, sans-serif;
    color: var(--bi88-text-main); /* Light text on dark body background */
    background-color: var(--bi88-background); /* Ensure consistency with shared if it's dark */
    line-height: 1.6;
}

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

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

.page-about__section-title {
    font-size: 2.5em;
    color: var(--bi88-text-main);
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--bi88-deep-green); /* A darker green for hero background */
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    margin-bottom: 40px; /* Space between image and text */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-about__hero-content {
    max-width: 900px;
    text-align: center;
    position: relative; /* Not absolute, to flow below image */
    z-index: 1;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
    color: var(--bi88-gold); /* Gold for main title */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-about__intro-text {
    font-size: 1.2em;
    color: var(--bi88-text-main);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for responsive behavior */
    max-width: 100%; /* Ensure container takes full width for responsive behavior */
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__cta-buttons--centered {
    margin-top: 40px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--bi88-primary);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.4);
}

.page-about__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-about__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
    min-width: 200px; /* Ensure a minimum width for large buttons */
}

/* History Section */
.page-about__history-section {
    background-color: var(--bi88-card-bg); /* Darker background for contrast */
    padding: 80px 0;
}

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

.page-about__content-column {
    flex: 1;
    min-width: 300px;
}

.page-about__image-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
    object-fit: cover;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    background-color: var(--bi88-background);
    padding: 80px 0;
}

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

.page-about__feature-card {
    background-color: var(--bi88-card-bg);
    border: 1px solid var(--bi88-border);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__feature-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
    object-fit: cover;
}

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

.page-about__card-text {
    font-size: 1em;
    color: var(--bi88-text-secondary);
}

/* Responsible Gambling & Future Vision Sections */
.page-about__responsible-gambling,
.page-about__future-vision {
    background-color: var(--bi88-background);
    padding: 60px 0;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--bi88-card-bg);
    padding: 80px 0;
}

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

.page-about__faq-item {
    background-color: var(--bi88-background);
    border: 1px solid var(--bi88-divider);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

.page-about__faq-item summary:hover {
    background-color: rgba(var(--bi88-primary), 0.1);
}

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

.page-about__faq-qtext {
    flex-grow: 1;
    color: var(--bi88-text-main);
}

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

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: var(--bi88-text-secondary);
    line-height: 1.6;
    max-height: 0; /* Hidden by default for JS fallback */
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding-top 0.5s ease-out;
}

/* For <details> native behavior, the max-height/overflow is not needed, but for JS fallback, it's there */
.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 15px;
}

.page-about__faq-answer p {
    margin-bottom: 10px;
}
.page-about__faq-answer .page-about__btn-primary {
    margin-top: 15px;
}

/* Final CTA */
.page-about__call-to-action-final {
    padding: 80px 0;
    background-color: var(--bi88-deep-green);
}

.page-about__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-about__cta-buttons--large {
    margin-top: 40px;
}

/* General image styling for content areas */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Ensure minimum size for content images if not specifically styled smaller */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Keywords styling */
.page-about .keyword {
    color: var(--bi88-gold);
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__main-title {
        font-size: clamp(2em, 4vw, 3em);
    }
    .page-about__flex-container {
        flex-direction: column;
        text-align: center;
    }
    .page-about__content-column,
    .page-about__image-column {
        min-width: unset;
        width: 100%;
    }
    .page-about__image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em) !important;
        margin-bottom: 15px;
    }
    .page-about__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-about__btn-large {
        padding: 15px 25px !important;
        font-size: 1.1em !important;
    }

    /* Mobile image and container adaptation */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset !important; /* Allow smaller images on mobile if needed, but still > 200px from overall rule */
        min-height: unset !important;
    }
    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__flex-container,
    .page-about__hero-section,
    .page-about__hero-content,
    .page-about__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }
    .page-about__hero-section {
      padding-top: 10px !important; /* body already handles --header-offset, this is for visual spacing */
    }
    .page-about__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__feature-card {
        padding: 20px;
    }
    .page-about__card-title {
        font-size: 1.3em;
    }
    .page-about__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }
}