/* style/about.css */

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-about__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF; /* White text for contrast */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2; /* Slightly dim the background image */
    filter: none !important; /* Ensure no filter is applied */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-about__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.page-about__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-about__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit from parent section's color */
}

.page-about__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: inherit;
}

/* Mission & Vision Section */
.page-about__mission-vision {
    padding: 60px 0;
    text-align: center;
}

/* Commitment Section */
.page-about__commitment {
    padding: 60px 0;
}

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

.page-about__card {
    background-color: #FFFFFF;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-about__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
    filter: none !important; /* Ensure no filter is applied */
}

.page-about__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-about__card-text {
    font-size: 1em;
    color: #555555;
}

/* Responsible Gambling Section */
.page-about__responsible-gambling {
    padding: 60px 0;
    text-align: center;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 60px 0;
}

.page-about__feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__list-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
    border-radius: 10px;
    padding: 25px;
    color: #FFFFFF;
    text-align: left;
}

.page-about__list-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-about__list-item p {
    color: #f0f0f0;
}

/* Team & Values Section */
.page-about__team-values {
    padding: 60px 0;
    text-align: center;
}

.page-about__team-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
    filter: none !important; /* Ensure no filter is applied */
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
}

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

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 15px 25px;
}

.page-about__faq-answer p {
    margin-bottom: 0;
    color: inherit;
}

/* Bottom CTA Section */
.page-about__cta-bottom {
    padding: 60px 0;
    text-align: center;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

.page-about__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

.page-about__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b7;
    border-color: #1e87b7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile */
    }

    .page-about__hero-section {
        padding: 60px 0;
        min-height: 400px;
    }

    .page-about__hero-title {
        font-size: 2em;
    }

    .page-about__hero-description {
        font-size: 1em;
    }

    .page-about__hero-cta {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
    }

    .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__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-about__commitment-grid,
    .page-about__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__card,
    .page-about__list-item {
        padding: 20px;
    }

    .page-about__card-image,
    .page-about__team-image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px;
    }

    .page-about__container {
        padding: 0 15px !important; /* Add padding to prevent content from touching edges */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Ensure all sections and content blocks are responsive */
    .page-about__hero-section,
    .page-about__mission-vision,
    .page-about__commitment,
    .page-about__responsible-gambling,
    .page-about__why-choose-us,
    .page-about__team-values,
    .page-about__faq-section,
    .page-about__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }
}