/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f9f9f9; /* Slightly off-white background for the page content */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #1E90FF; /* Deep blue for main titles */
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Gold underline */
    border-radius: 2px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    color: #ffffff; /* White text for hero overlay */
    text-align: center;
    padding: 80px 20px; /* Add padding for content */
    background-color: #1a1a1a; /* Dark background for hero section */
}

.page-about__hero-image-container {
    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;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for hero title */
    line-height: 1.2;
}

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

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

.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, transform 0.3s ease;
    cursor: pointer;
}

.page-about__button--primary {
    background-color: #FFD700; /* Gold */
    color: #1a1a1a; /* Dark text for gold button */
    border: 2px solid #FFD700;
}

.page-about__button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-about__button--secondary {
    background-color: #1E90FF; /* Deep Blue */
    color: #ffffff; /* White text for blue button */
    border: 2px solid #1E90FF;
}

.page-about__button--secondary:hover {
    background-color: #1565b3;
    transform: translateY(-3px);
}

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

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

.page-about__story-text {
    flex: 1;
    min-width: 300px;
    font-size: 1.1em;
}

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

.page-about__story-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure no extra space below image */
    margin: 0 auto; /* Center image */
}

/* Values Section */
.page-about__values-section {
    padding: 80px 0;
    background-color: #f0f8ff; /* Light blue background for contrast */
}

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

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

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

.page-about__value-title {
    font-size: 1.8em;
    color: #FFD700; /* Gold for value titles */
    margin-bottom: 15px;
}

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

.page-about__link {
    color: #1E90FF; /* Deep blue for internal links */
    text-decoration: none;
    font-weight: bold;
}

.page-about__link:hover {
    text-decoration: underline;
}

.page-about__values-image-container {
    text-align: center;
}

/* Team Section */
.page-about__team-section {
    padding: 80px 0;
    background-color: #ffffff; /* White background */
}

.page-about__team-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    flex-direction: row-reverse; /* Image on right, text on left */
}

.page-about__team-text {
    flex: 1;
    min-width: 300px;
    font-size: 1.1em;
}

.page-about__team-text p {
    margin-bottom: 20px;
}

.page-about__team-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

/* Call to Action Section */
.page-about__cta-section {
    padding: 80px 20px;
    background-color: #1E90FF; /* Deep blue background */
    color: #ffffff;
    text-align: center;
}

.page-about__cta-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold for CTA title */
    margin-bottom: 20px;
}

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

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

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

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 60px 20px;
        min-height: 400px;
    }

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

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

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

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

    .page-about__story-content,
    .page-about__team-content {
        flex-direction: column;
        text-align: center;
    }

    .page-about__story-image,
    .page-about__team-image {
        order: -1; /* Image appears above text on mobile */
        margin-bottom: 30px;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 40px;
    }

    .page-about__values-grid {
        grid-template-columns: 1fr;
    }

    .page-about__image {
        max-width: 100%; /* Ensure content area images do not overflow */
        height: auto;
    }
}

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

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

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

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

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

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

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