/* style/about.css */

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

/* Section visibility for JS animation */
.page-about__section--hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-about__section--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 500px; /* Ensure hero section has a minimum height */
}

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay for darkening the hero image */
.page-about__hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black overlay */
    z-index: 0;
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: #FFFFFF;
}

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

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

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

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

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

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

.page-about__button--login:hover {
    background-color: #f0f0f0;
    border-color: #e0a53b;
}

.page-about__button--join {
    background-color: #FCBC45;
    color: #000000;
}

.page-about__button--join:hover {
    background-color: #e0a53b;
}

/* General Container */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

/* Mission & Vision Section */
.page-about__mission-vision-section {
    background-color: #f8f8f8;
    padding: 60px 0;
}

.page-about__mission-vision-section .page-about__container {
    padding-top: 0;
    padding-bottom: 0;
}

.page-about__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.page-about__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__card-image {
    width: 100%; /* Ensure image fills card width */
    max-width: 400px; /* Max width to prevent overly large images */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size for content images */
    min-height: 200px;
    object-fit: cover;
}

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

.page-about__card-text {
    font-size: 1.1em;
    color: #555555;
}

/* Values Section */
.page-about__values-section {
    padding: 60px 0;
}

.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-about__value-item {
    text-align: center;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-about__value-icon {
    width: 100%;
    max-width: 200px; /* Max width for icons */
    height: auto;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size for content images */
    min-height: 200px;
    object-fit: contain; /* Use contain for icons to prevent cropping */
}

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

.page-about__value-text {
    color: #555555;
}

.page-about__call-to-action {
    text-align: center;
    background-color: #000000; /* Dark background for CTA */
    color: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
}

.page-about__call-to-action-text {
    font-size: 1.5em;
    margin-bottom: 25px;
    font-weight: bold;
}

/* Commitment Section */
.page-about__commitment-section {
    background-color: #f8f8f8;
    padding: 60px 0;
}

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

.page-about__commitment-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

.page-about__commitment-text {
    color: #555555;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__main-title {
        font-size: 2.8em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-about {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }
    .page-about__hero-section {
        padding: 60px 15px;
    }
    .page-about__main-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-actions {
        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__container {
        padding: 30px 15px;
    }
    .page-about__values-grid {
        grid-template-columns: 1fr;
    }
    .page-about__commitment-grid {
        grid-template-columns: 1fr;
    }

    /* Enforce max-width for all images within .page-about to prevent overflow */
    .page-about img {
        max-width: 100%;
        height: auto;
    }

    /* Ensure content area does not cause horizontal scroll */
    .page-about {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__hero-description {
        font-size: 0.9em;
    }
    .page-about__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__call-to-action-text {
        font-size: 1.2em;
    }
}