/* style/about.css */

/* Base styling for the about page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set to match body background if needed, but primarily for text contrast */
    padding-top: var(--header-offset, 120px); /* Ensure content starts below the fixed header */
}

.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;
    position: relative;
    padding-bottom: 10px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #FCBC45;
}

.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;
    cursor: pointer;
    min-width: 200px; /* Ensure buttons are not too small */
    font-size: 1.1em;
}

.page-about__button--register,
.page-about__button--join-now {
    background-color: #FCBC45; /* Login color for primary CTA */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-about__button--register:hover,
.page-about__button--join-now:hover {
    background-color: #e6a73c;
    border-color: #e6a73c;
}

.page-about__button--learn-more,
.page-about__button--responsible-gaming {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 550px; /* Minimum height for hero section */
    padding: 60px 20px;
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text for dark hero background */
}

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Slightly dim the image for text readability */
    display: block;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FCBC45; /* Highlight with accent color */
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Story Section */
.page-about__story-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-about__story-text {
    flex: 1;
    font-size: 1.1em;
}

.page-about__story-text p {
    margin-bottom: 15px;
}

.page-about__story-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__story-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

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

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

.page-about__mission-card {
    background-color: #f0f0f0;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__mission-icon {
    width: 250px; /* Minimum width 200px */
    height: 187px; /* Corresponding height for 4:3 aspect ratio */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block;
}

.page-about__mission-card-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
}

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-about__why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-about__why-choose-item {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__why-choose-heading {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
}

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

.page-about__why-choose-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

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

.page-about__responsible-gaming-description {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
}

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

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

.page-about__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Animation for sections */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

@media (max-width: 768px) {
    .page-about {
        padding-top: var(--header-offset, 120px); /* Ensure mobile content also respects header offset */
    }

    .page-about__hero-section {
        min-height: 450px;
        padding: 40px 15px;
    }

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

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

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

    .page-about__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

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

    .page-about__story-section,
    .page-about__mission-values-section,
    .page-about__why-choose-section,
    .page-about__responsible-gaming-section,
    .page-about__cta-section {
        padding: 60px 0;
    }

    .page-about__mission-grid,
    .page-about__why-choose-grid {
        grid-template-columns: 1fr;
    }

    .page-about__mission-icon {
        width: 200px; /* Adjust for mobile, maintaining min size */
        height: 150px; /* Corresponding height */
    }

    /* Ensure images within .page-about are responsive and don't overflow */
    .page-about img {
        max-width: 100%;
        height: auto;
    }
    .page-about__story-image,
    .page-about__mission-icon,
    .page-about__why-choose-image {
        max-width: 100%;
        height: auto;
    }

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

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

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

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

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

/* Ensure content area images are not smaller than 200px */
/* This rule applies to any img within .page-about, not just specific classes */
/* The general .page-about img rule in mobile media query handles responsiveness while max-width prevents overflow */
/* The individual img elements have HTML width/height attributes for display area */
.page-about img:not(.shared-header img, .shared-footer img) { /* Exclude shared components */
    min-width: 200px;
    min- /* Assuming a common aspect ratio for general content images */
    object-fit: cover;
}
/* Override min-width/height for responsive images in mobile to allow scaling down, but the *design* should still use large images */
@media (max-width: 768px) {
    .page-about img:not(.shared-header img, .shared-footer img) {
        min-width: unset; /* Remove min-width for mobile responsiveness */
        min-height: unset; /* Remove min-height for mobile responsiveness */
    }
}