/* style/about.css */

/* Base styling for the About Us page content */
.page-about {
    color: #333333; /* Dark text for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
    background-color: #FFFFFF; /* Explicitly set for consistency */
}

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

.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;
    opacity: 0.3; /* Slightly dim the background image */
    display: block;
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-about__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FCBC45; /* Accent color for title */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #F0F0F0; /* Slightly off-white for body text */
}

.page-about__cta-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color as accent */
    color: #000000; /* Dark text on accent button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-about__cta-button:hover {
    background-color: #FFD700; /* Brighter yellow on hover */
    transform: translateY(-2px);
}

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

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

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

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

.page-about__story-text {
    flex: 1;
}

.page-about__story-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #444444;
}

.page-about__story-link {
    display: inline-block;
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #FCBC45;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-about__story-link:hover {
    color: #000000;
    border-color: #000000;
}

.page-about__story-image {
    flex: 1;
    min-width: 200px; /* Ensure image is not too small */
}

.page-about__story-image img {
    width: 800px; /* HTML width attribute */
    height: 600px; /* HTML height attribute */
    max-width: 100%; /* Responsive override */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: block; /* Ensure it behaves as a block element */
}

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

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

.page-about__mission-item {
    background-color: #000000; /* Dark background for mission items */
    color: #FFFFFF; /* Light text */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.page-about__mission-heading {
    font-size: 1.8em;
    color: #FCBC45;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__mission-item p {
    font-size: 1em;
    color: #E0E0E0;
}

/* Call to Action Section (Bottom) */
.page-about__cta-section {
    padding: 80px 20px;
    background-color: #000000; /* Dark background */
    color: #FFFFFF; /* Light text */
    text-align: center;
}

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

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

.page-about__cta-button--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* 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__section-title {
        font-size: 2.2em;
    }
    .page-about__cta-title {
        font-size: 2.4em;
    }
    .page-about__story-content {
        flex-direction: column;
    }
    .page-about__story-image {
        order: -1; /* Image appears above text on smaller screens */
    }
}

@media (max-width: 768px) {
    /* Fixed header offset for mobile */
    .page-about {
        padding-top: var(--header-offset, 80px); /* Adjust for typical mobile header height */
    }
    .page-about__hero-section {
        padding: 40px 15px;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 30px;
    }
    .page-about__story-section,
    .page-about__mission-section,
    .page-about__cta-section {
        padding: 50px 0;
    }
    .page-about__story-text p {
        font-size: 0.95em;
    }
    .page-about__mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__mission-heading {
        font-size: 1.5em;
    }
    .page-about__cta-title {
        font-size: 2em;
    }
    .page-about__cta-description {
        font-size: 1em;
    }
    .page-about__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Ensure images do not overflow on mobile */
    .page-about img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure no images within .page-about are smaller than 200px display size */
.page-about img {
    min-width: 200px;
    min-height: 200px;
}