/* style/about.css */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light background */
    background-color: #ffffff; /* Explicitly set for clarity */
}

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

.page-about__hero-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: var(--header-offset, 120px) 20px 60px; /* Ensure spacing below header */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.page-about__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Register/Login font color for emphasis */
}

.page-about__intro-text {
    font-size: 1.15em;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    width: auto; /* Default for desktop */
}

.page-about__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2e;
    border-color: #005f2e;
}

.page-about__mission-section,
.page-about__why-choose-us-section,
.page-about__responsible-gaming-section,
.page-about__team-section,
.page-about__cta-section,
.page-about__faq-section {
    padding: 80px 0;
}

.page-about__dark-section {
    background-color: #017439;
    color: #ffffff;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title {
    color: #FFFF00; /* Yellow for titles on dark background */
}

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

.page-about__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: #017439; /* Brand primary color */
}

.page-about__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #017439; /* Brand primary color */
}

.page-about__dark-section .page-about__sub-title {
    color: #FFFF00;
}

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

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.page-about__content-grid.--reverse {
    grid-template-columns: 1fr 1fr;
}

.page-about__content-grid.--reverse .page-about__text-block {
    order: 2;
}

.page-about__content-grid.--reverse .page-about__image-wrapper {
    order: 1;
}

.page-about__image-wrapper {
    text-align: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: block; /* Ensures proper spacing and max-width works */
}

.page-about__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-top: 20px;
}

.page-about__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

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

.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: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    color: #017439;
    transition: background-color 0.3s ease;
}

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

.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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
    padding-top: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__main-title {
        font-size: 2.5em;
    }

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

    .page-about__sub-title {
        font-size: 1.5em;
    }

    .page-about__content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-about__content-grid.--reverse .page-about__text-block {
        order: initial;
    }

    .page-about__content-grid.--reverse .page-about__image-wrapper {
        order: initial;
    }
}

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

    .page-about__hero-section {
        padding: var(--header-offset, 120px) 15px 40px;
        min-height: 300px;
    }

    .page-about__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-about__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-about__mission-section,
    .page-about__why-choose-us-section,
    .page-about__responsible-gaming-section,
    .page-about__team-section,
    .page-about__cta-section,
    .page-about__faq-section {
        padding: 40px 0;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: 1.3em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-about__paragraph,
    .page-about__list-item {
        font-size: 1em;
    }

    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

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

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

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }

    .page-about__section-title {
        font-size: 1.5em;
    }
}