/* style/about.css */

/* --- Base Styles --- */
.page-about {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #ffffff; /* Explicitly set for contrast checks */
}

.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: 3em;
    color: #26A9E0; /* Brand color for titles */
    margin-bottom: 30px;
    font-weight: bold;
}

.page-about__section-title--light {
    color: #ffffff; /* White text for dark backgrounds */
}

.page-about__description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.page-about__image--full-width {
    width: 100%;
    max-width: 100%;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    padding: 120px 0 60px; /* Default for desktop, adjusted by JS for header offset */
    color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
    background-color: #26A9E0; /* Fallback if image fails */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7); /* Darken image for text readability */
}

.page-about__hero-section .page-about__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-about__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-about__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.page-about__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Content Sections --- */
.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

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

.page-about__text-block {
    flex: 1;
    min-width: 300px;
}

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #444444;
}

.page-about__text-block strong {
    color: #26A9E0;
}

.page-about__vision-mission .page-about__text-block {
    padding-right: 20px;
}

.page-about__core-values {
    background-color: #f8f8f8;
}

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

.page-about__value-item {
    margin-bottom: 25px;
}

.page-about__value-item h3 {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__value-item p {
    font-size: 1.05em;
    color: #555555;
}

.page-about__diverse-games .page-about__game-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 20px;
}

.page-about__diverse-games .page-about__game-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #444444;
}

.page-about__diverse-games .page-about__game-list strong {
    color: #26A9E0;
}

/* --- Why Choose Section --- */
.page-about__why-choose {
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.page-about__why-choose .page-about__container {
    position: relative;
    z-index: 2;
}

.page-about__why-choose .page-about__image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: auto;
    opacity: 0.2;
    z-index: 1;
    border-radius: 0;
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__feature-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-description {
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-about__cta-section {
    margin-top: 60px;
    text-align: center;
}

.page-about__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* --- Responsible Gaming Section --- */
.page-about__responsible-gaming {
    background-color: #ffffff;
    padding: 80px 0;
}

/* --- Final CTA Section --- */
.page-about__cta-final {
    background-color: #f8f8f8;
    padding: 80px 0;
}

.page-about__cta-final-content {
    max-width: 900px;
}

.page-about__cta-final .page-about__section-title {
    color: #26A9E0;
}

.page-about__cta-final .page-about__description {
    color: #555555;
    margin-bottom: 50px;
}

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

.page-about__btn-secondary--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* --- FAQ Section --- */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-about__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #fdfdfd;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #f5f5f5;
}

.page-about__faq-question h3 {
    font-size: 1.3em;
    color: #333333;
    margin: 0;
    font-weight: 600;
}

.page-about__faq-toggle {
    font-size: 1.8em;
    color: #26A9E0;
    font-weight: bold;
    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;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px 25px;
}

.page-about__faq-answer p {
    margin: 0;
    color: #555555;
    font-size: 1.05em;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.2em;
    }
    .page-about__section-title {
        font-size: 2.5em;
    }
    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__content-wrapper--reverse {
        flex-direction: column; /* Keep consistent on smaller screens */
    }
    .page-about__text-block {
        padding-right: 0;
    }
    .page-about__why-choose .page-about__image {
        width: 80%;
        right: -10%;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__container {
        padding: 0 15px;
    }

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

    /* Fixed header offset for main content */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset */
        min-height: 400px;
    }

    .page-about__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

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

    .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 {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .page-about__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-about__content-wrapper {
        gap: 20px;
        margin-top: 30px;
    }

    .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px;
        min-height: 200px;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-wrapper,
    .page-about__features-grid,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__why-choose .page-about__image {
        display: none;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__feature-card {
        padding: 25px;
    }

    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-question h3 {
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 10px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__btn-primary--large,
    .page-about__btn-secondary--large {
        font-size: 1.1em;
        padding: 15px 25px;
    }
}