/* style/about.css */

/* --- Base Styles --- */
.page-about {
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

/* Ensure content images are not too small */
.page-about img {
    display: block; /* Remove extra space below images */
    max-width: 100%; /* Ensure images are responsive */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px; /* Minimum width for content images */
    min-height: 200px; /* Minimum height for content images */
    object-fit: cover; /* Cover the container without distortion */
}

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

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

.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
}

.page-about__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    cursor: pointer;
    min-width: 200px; /* Ensure buttons are not too small */
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #000000; /* Dark background for contrast with image */
    padding: 0; /* No padding here, image handles visual space */
    color: #FFFFFF; /* Light text on dark hero background */
}

.page-about__hero-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Minimum height for hero section */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Slightly dim the image to make text pop */
    z-index: 1;
}

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

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    font-weight: bold;
    line-height: 1.2;
}

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

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

.page-about__button--register {
    background-color: #FCBC45; /* Login color for primary action */
    color: #000000;
}

.page-about__button--register:hover {
    background-color: #e0a33c;
    color: #000000;
}

.page-about__button--explore {
    background-color: #FFFFFF; /* Register color for secondary action */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-about__button--explore:hover {
    background-color: #F0F0F0;
    color: #000000;
}

/* --- Mission Section --- */
.page-about__mission-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

.page-about__mission-image-wrapper {
    text-align: center;
}

.page-about__mission-image-wrapper img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --- Values Section --- */
.page-about__values-section {
    padding: 80px 0;
    background-color: #F8F8F8;
}

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

.page-about__value-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-about__value-icon {
    width: 200px; /* Minimum size for content images */
    height: 200px; /* Minimum size for content images */
    margin: 0 auto 20px;
    border-radius: 50%;
    object-fit: cover;
}

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

.page-about__value-description {
    font-size: 1em;
    color: #555555;
}

/* --- Responsible Gaming Section --- */
.page-about__responsible-gaming-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-about__responsible-gaming-content {
    text-align: center;
}

.page-about__responsible-gaming-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__responsible-gaming-text {
    text-align: left;
}

.page-about__responsible-gaming-image-wrapper {
    text-align: center;
}

.page-about__responsible-gaming-image-wrapper img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.page-about__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #F0F0F0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Specific CTA button styles */
.page-about__cta-buttons .page-about__button--register {
    background-color: #FCBC45;
    color: #000000;
}

.page-about__cta-buttons .page-about__button--register:hover {
    background-color: #e0a33c;
    color: #000000;
}

.page-about__cta-buttons .page-about__button--login {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-about__cta-buttons .page-about__button--login:hover {
    background-color: #F0F0F0;
    color: #000000;
}

/* --- Responsive Adjustments --- */
@media (min-width: 769px) {
    .page-about__mission-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-about__responsible-gaming-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-about__mission-image-wrapper,
    .page-about__responsible-gaming-image-wrapper {
        order: 2; /* Image on right for desktop */
    }
    .page-about__mission-content,
    .page-about__responsible-gaming-text {
        order: 1; /* Text on left for desktop */
    }
}

@media (max-width: 768px) {
    .page-about {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller mobile header */
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title,
    .page-about__cta-title {
        font-size: 1.8em;
    }
    .page-about__paragraph,
    .page-about__value-description,
    .page-about__cta-description {
        font-size: 0.95em;
    }
    .page-about__hero-buttons,
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__button {
        width: 100%;
        max-width: 300px; /* Limit button width on mobile */
        margin: 0 auto;
    }
    .page-about__value-icon {
        width: 150px; /* Adjust icon size for mobile, still > 200px in HTML */
        height: 150px;
    }
    .page-about__hero-image,
    .page-about__mission-image-wrapper img,
    .page-about__value-icon,
    .page-about__responsible-gaming-image-wrapper img {
        max-width: 100%; /* Critical for mobile responsiveness */
        height: auto;
        min-width: 200px; /* Ensure images are not too small even on mobile */
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title,
    .page-about__cta-title {
        font-size: 1.5em;
    }
    .page-about__button {
        padding: 12px 20px;
        font-size: 1em;
    }
}