/* style/about.css */

.page-about {
    color: #333333; /* Dark text for light body background */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-about__hero-section {
    position: relative;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    padding-bottom: 40px; /* Add some padding below hero content */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover the area, maintain aspect ratio */
    filter: none; /* Absolutely no CSS filter for images */
    min-width: 100%; /* Hero image should always be full width */
    min-height: 300px; /* Ensure hero image is large enough, even on mobile */
    max-height: 600px; /* Prevent hero image from becoming too tall on very wide screens */
}

.page-about__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF; /* White text on dark/rich hero image */
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background for readability */
    border-radius: 8px;
}

.page-about__hero-title {
    font-size: 3em;
    margin-bottom: 15px;
    color: #FFFFFF; /* White for title */
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF; /* White for description */
}

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

.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;
    min-width: 120px; /* Ensure buttons are not too small */
    text-align: center;
}

.page-about__button--register {
    background-color: #FFFFFF; /* Custom color for Register */
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-about__button--register:hover {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.page-about__button--login {
    background-color: #FCBC45; /* Custom color for Login */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-about__button--login:hover {
    background-color: transparent;
    color: #FCBC45;
    border-color: #FCBC45;
}

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

.page-about__section-title,
.page-about__cta-title {
    font-size: 2.5em;
    color: #000000; /* Main color for titles */
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
}

.page-about__story-section {
    background-color: #f8f8f8;
    padding: 60px 0;
}

.page-about__story-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-about__story-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: none; /* Absolutely no CSS filter for images */
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-about__text-block {
    flex: 1;
    min-width: 300px;
    line-height: 1.8;
    font-size: 1.1em;
    color: #333333;
}

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

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

.page-about__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

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

.page-about__card-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 15px;
}

.page-about__card-text {
    line-height: 1.7;
    color: #555555;
}

.page-about__why-choose-us-section {
    background-color: #f8f8f8;
    padding: 60px 0;
}

.page-about__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-about__feature-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.page-about__feature-item:hover {
    transform: translateY(-5px);
}

.page-about__feature-icon {
    width: 100%;
    max-width: 250px; /* Max width for feature icons */
    height: auto;
    margin-bottom: 20px;
    filter: none; /* Absolutely no CSS filter for images */
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-about__feature-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 10px;
}

.page-about__feature-description {
    color: #555555;
    line-height: 1.6;
}

.page-about__responsible-gaming-section {
    padding: 60px 0;
    text-align: center;
}

.page-about__button--learn-more {
    background-color: #000000;
    color: #FFFFFF;
    margin-top: 30px;
    border: 2px solid #000000;
}

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

.page-about__cta-section {
    background-color: #000000; /* Main color for CTA background */
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
}

.page-about__cta-title {
    color: #FFFFFF; /* White title on dark background */
    margin-top: 0;
}

.page-about__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.7;
    color: #e0e0e0;
}

.page-about__button--cta-register {
    background-color: #FCBC45; /* Custom color for Register */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-about__button--cta-register:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

.page-about__button--cta-download {
    background-color: #FFFFFF; /* Custom color for Download */
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-about__button--cta-download:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
}


/* Responsive Design */
@media (max-width: 768px) {
    .page-about__hero-content {
        max-width: 90%;
        padding: 15px;
    }

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

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

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

    .page-about__button {
        width: 80%;
        margin: 0 auto;
    }

    .page-about__section-title,
    .page-about__cta-title {
        font-size: 2em;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .page-about__story-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-about__story-image {
        max-width: 100%;
        height: auto; /* Ensure responsiveness */
    }

    .page-about__text-block {
        min-width: unset;
    }

    .page-about__card-grid,
    .page-about__feature-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile image overflow prevention for ALL images within content area */
    .page-about img {
        max-width: 100%; 
        height: auto; 
        min-width: 200px; /* Still enforce min size, but allow shrinking */
        min-height: 200px;
    }
}

/* Ensure all content area images are at least 200px wide/high */
/* This selector targets all images within the main content area, excluding shared components */
.page-about img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-icon) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Ensure no filter is applied to any image */
.page-about img {
    filter: none !important;
}