/* style/about.css */

.page-about {
    color: #ffffff; /* Light text for dark body background */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing for desktop */
    background-color: #000000; /* Ensure page background matches body */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 600px; /* Minimum height for hero section */
}

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

.page-about__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.5); /* Darken image for text readability */
}

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

.page-about__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FCBC45; /* Highlight title */
}

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

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

/* General Sections */
.page-about__mission-vision,
.page-about__values-commitment,
.page-about__responsible-gaming-section {
    padding: 60px 0;
}

.page-about__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #FCBC45;
}

.page-about__content-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

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

.page-about__text-content {
    flex: 1;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly visible card for text */
    border-radius: 8px;
}

.page-about__text-content p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-about__image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image-content img {
    width: 100%;
    height: auto;
    max-width: 600px; /* Example max-width, ensure >200px */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: block; /* Important for preventing extra space */
    filter: none; /* Ensure no unwanted filters */
}

/* Buttons */
.page-about__button {
    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;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.page-about__button--register {
    background-color: #FFFFFF; /* Register button background */
    color: #000000; /* Text color for white background */
}

.page-about__button--register:hover {
    background-color: #f0f0f0; /* Slightly darker white on hover */
}

.page-about__button--login {
    background-color: #FCBC45; /* Login button background */
    color: #000000; /* Text color for FCBC45 background */
}

.page-about__button--login:hover {
    background-color: #e0a53a;
}

.page-about__button--learn-more {
    background-color: #FCBC45;
    color: #000000;
    margin-top: 20px;
}

.page-about__button--learn-more:hover {
    background-color: #e0a53a;
}


/* CTA Section */
.page-about__cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.page-about__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FCBC45;
}

.page-about__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
}

.page-about__cta-actions {
    display: flex;
    justify-content: center;
    gap: 25px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__hero-title {
        font-size: 2.5em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__content-row {
        flex-direction: column;
    }
    .page-about__content-row--reverse {
        flex-direction: column; /* Stacks in reverse order on smaller screens */
    }
    .page-about__text-content,
    .page-about__image-content {
        flex: none;
        width: 100%;
    }
    .page-about__image-content img {
        max-width: 100%; /* Ensure images don't overflow */
    }
}

@media (max-width: 768px) {
    .page-about {
        padding-top: var(--header-offset-mobile, 80px); /* Adjust for mobile header offset */
    }
    .page-about__hero-section {
        padding: 50px 0;
        min-height: 400px;
    }
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__cta-title {
        font-size: 2em;
    }
    .page-about__cta-description {
        font-size: 1.1em;
    }
    .page-about__button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-about__hero-actions,
    .page-about__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    /* Mobile overflow prevention for all content images */
    .page-about__mission-vision img,
    .page-about__values-commitment img,
    .page-about__responsible-gaming-section img,
    .page-about__image-content img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.5em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__cta-title {
        font-size: 1.5em;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__text-content {
        padding: 15px;
    }
}

/* Ensure no content area image is smaller than 200px display size */
.page-about img:not(.page-about__hero-image img) {
    min-width: 200px; /* Minimum display width for content images */
    min-height: 200px; /* Minimum display height for content images */
    object-fit: cover; /* Ensure images fill their area without distortion */
}

/* Ensure no CSS filter is applied to images, except for hero image brightness for readability */
.page-about img {
    filter: none; /* Reset filter for all images */
}

.page-about__hero-image img {
    filter: brightness(0.5); /* Darken hero image for text readability, as an exception */
}