/* style/about.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark-section: #1a1a1a; /* Adjusted for better contrast with light text */
    --card-bg-light: rgba(255, 255, 255, 0.1);
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default for dark body background */
    background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

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

.page-about__dark-section {
    background-color: var(--bg-dark-section);
    color: var(--text-light);
}

.page-about__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-about__hero-section {
    position: relative;
    padding: 100px 20px 60px; /* Adjusted for hero section padding */
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-about__hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
    text-align: center;
    margin-bottom: 40px;
}

.page-about__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color);
}

.page-about__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.6); /* Use brightness for background effect, not changing original color */
}

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

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

.page-about__intro-text {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

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

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

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

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

.page-about__text-content {
    padding: 20px;
}

.page-about__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit;
}

.page-about__paragraph {
    font-size: 1em;
    margin-bottom: 15px;
    color: inherit;
}

.page-about__image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-about__image-container--full-width {
    grid-column: 1 / -1;
    margin-top: 40px;
}

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

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

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

.page-about__feature-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-about__card-description {
    font-size: 0.95em;
    color: var(--text-dark);
}

.page-about__responsible-gaming-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-about__text-block {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-section {
    background-color: var(--bg-dark-section);
    color: var(--text-light);
}

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

.page-about__faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 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;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    transition: background-color 0.3s ease;
}

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

.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: rgba(255, 255, 255, 0.8);
}

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

/* 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;
    margin: 10px;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-about__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-about__hero-cta-buttons {
    margin-top: 30px;
}

.page-about__btn-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}

.page-about__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-about__cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-about__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

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

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

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

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

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

    .page-about__responsible-gaming-content {
        grid-template-columns: 1fr;
    }
}

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

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

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

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

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

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

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

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

    .page-about__text-content {
        padding: 0;
    }

    .page-about__image-container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px; /* Ensure minimum size is still met */
        min-height: 200px; /* Ensure minimum size is still met */
    }

    .page-about__feature-card,
    .page-about__text-block {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

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

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

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

    .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;
        margin: 10px 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__hero-cta-buttons,
    .page-about__cta-buttons {
        flex-direction: column;
        align-items: center;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        overflow: hidden !important;
    }

    .page-about__cta-section {
        padding: 60px 0;
    }

    /* Ensure all image containers also prevent overflow */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-grid,
    .page-about__features-grid,
    .page-about__responsible-gaming-content,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */ /* Handled by .page-about__container */
        /* padding-right: 15px; */ /* Handled by .page-about__container */
        overflow-x: hidden !important; /* Prevent horizontal scroll for content areas */
    }
}

/* General link styling */
.page-about a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-about a:hover {
    text-decoration: underline;
}