/* style/about.css */

/* --- General Page Styles --- */
.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 white */
}

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

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

.page-about__heading {
    font-size: 2.5em;
    color: #26A9E0;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-about__sub-heading {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    color: #ffffff;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-about__hero-section.page-about__dark-bg {
    background: linear-gradient(135deg, #26A9E0, #1a7bb5); /* Gradient with brand color */
    color: #ffffff;
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Overlay for text readability */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-about__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

.page-about__hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-about__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

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

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

.page-about__text-block,
.page-about__image-block {
    flex: 1;
}

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

/* --- Values Section --- */
.page-about__values.page-about__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-about__values.page-about__dark-bg .page-about__heading {
    color: #ffffff;
}

.page-about__values.page-about__dark-bg .page-about__heading::after {
    background-color: #ffffff;
}

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

.page-about__value-card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark bg */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    min-height: 250px; /* Ensure cards have similar height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
}

.page-about__value-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-about__value-card p {
    font-size: 1em;
    color: #f0f0f0;
}

/* --- Game Diversity Section --- */
.page-about__game-diversity .page-about__heading {
    color: #26A9E0;
}

.page-about__additional-games {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.page-about__additional-games .page-about__btn-primary {
    margin-top: 30px;
}

/* --- Promotions Section --- */
.page-about__promotions.page-about__light-bg {
    background-color: #f8f8f8;
}

.page-about__promotions .page-about__heading {
    color: #26A9E0;
}

.page-about__promotions .page-about__btn-primary {
    background-color: #EA7C07; /* Login color for promotions CTA */
    border-color: #EA7C07;
}

.page-about__promotions .page-about__btn-primary:hover {
    background-color: #d46f06;
    border-color: #d46f06;
}

/* --- Join Us Section --- */
.page-about__join-us .page-about__heading {
    color: #26A9E0;
}

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

.page-about__step-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    min-height: 280px; /* Ensure similar height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__step-card:hover {
    transform: translateY(-5px);
}

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

.page-about__step-card p {
    font-size: 1em;
    margin-bottom: 20px;
}

.page-about__step-card .page-about__btn-primary {
    align-self: flex-start;
}

.page-about__mobile-app-showcase {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-about__mobile-app-showcase .page-about__image {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.page-about__app-description {
    font-style: italic;
    color: #555;
    font-size: 1.1em;
}

/* --- FAQ Section --- */
.page-about__faq-section.page-about__light-bg {
    background-color: #f0f5f8; /* A slightly different light background */
}

.page-about__faq-section .page-about__heading {
    color: #26A9E0;
}

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

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

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

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

.page-about__faq-question h3 {
    margin: 0;
    color: #333333;
    font-size: 1.2em; /* Ensure H3 in question is not too large */
}

.page-about__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.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: #555555;
}

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

.page-about__faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1em;
}

/* --- Conclusion Section --- */
.page-about__conclusion.page-about__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 80px 0;
}

.page-about__conclusion .page-about__heading {
    color: #ffffff;
}

.page-about__conclusion .page-about__heading::after {
    background-color: #ffffff;
}

.page-about__conclusion-text {
    font-size: 1.3em;
    max-width: 800px;
    margin: 20px auto 40px auto;
    color: #f0f0f0;
}

.page-about__conclusion .page-about__btn-primary {
    background-color: #EA7C07; /* Login color for final CTA */
    border-color: #EA7C07;
}

.page-about__conclusion .page-about__btn-primary:hover {
    background-color: #d46f06;
    border-color: #d46f06;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-about__main-title {
        font-size: 2.8em;
    }
    .page-about__hero-description {
        font-size: 1.2em;
    }
    .page-about__heading {
        font-size: 2em;
    }
    .page-about__sub-heading {
        font-size: 1.5em;
    }
    .page-about__content-grid {
        flex-direction: column;
    }
    .page-about__text-block,
    .page-about__image-block {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: 450px;
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-about__main-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__heading {
        font-size: 1.8em;
    }
    .page-about__sub-heading {
        font-size: 1.3em;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__values-grid,
    .page-about__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-about__value-card,
    .page-about__step-card {
        min-height: auto;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about__mobile-app-showcase {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
    .page-about__mobile-app-showcase .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Mobile button container responsiveness */
    .page-about__hero-cta-group,
    .page-about__additional-games,
    .page-about__join-us .page-about__step-card,
    .page-about__conclusion {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}