/* about.css */

.page-about {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.page-about__hero-section {
    background-color: #F4F7FB; /* Background color for the section */
    padding-bottom: 40px; /* Space below the content */
    padding-top: 10px; /* Small top padding, relying on body for header offset */
}

.page-about__hero-image-wrapper {
    margin: 0 auto;
    max-width: 1200px; /* Max width for the image container */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-about__hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1920 / 675; /* Maintain aspect ratio */
    object-fit: cover;
    object-position: center;
    filter: none; /* Ensure no filter is applied */
}

.page-about__hero-content {
    max-width: 900px;
    margin: 30px auto 0 auto;
    text-align: center;
    padding: 0 15px;
}

.page-about__main-title {
    font-family: 'Arial', sans-serif; /* Example font */
    color: #1F2D3D;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    /* Use clamp for responsive font sizing for H1 */
    font-size: clamp(1.5rem, 4.5vw, 2.8rem); /* Adjusted for about page, not as large as homepage hero */
}

.page-about__intro-text {
    font-size: 1.125rem; /* 18px */
    line-height: 1.6;
    color: #1F2D3D;
    margin-bottom: 30px;
}

.page-about__cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-about__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-about__section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-about__section:nth-of-type(even) {
    background-color: #F4F7FB;
}

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

.page-about__section-title {
    font-size: clamp(1.3rem, 3.5vw, 2.2rem); /* H2 font size */
    color: #1F2D3D;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

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

.page-about__content-grid--reverse {
    grid-template-columns: 1fr 1fr; /* Default order */
}


.page-about__text-content p {
    font-size: 1rem; /* 16px */
    line-height: 1.7;
    color: #1F2D3D;
    margin-bottom: 20px;
}

.page-about__image-wrapper {
    text-align: center;
}

.page-about__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: none; /* Ensure no filter is applied */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-about__values-list,
.page-about__benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__value-item,
.page-about__benefit-item {
    background-color: #FFFFFF;
    border: 1px solid #D6E2FF;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-item:hover,
.page-about__benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-about__value-heading,
.page-about__benefit-heading {
    font-size: 1.375rem; /* 22px */
    color: #2F6BFF;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__value-description,
.page-about__benefit-description {
    font-size: 1rem; /* 16px */
    line-height: 1.6;
    color: #1F2D3D;
}

.page-about__contact-cta {
    background: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%); /* Using main colors for a gradient background */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 0;
}

.page-about__contact-content {
    max-width: 800px;
}

.page-about__contact-cta .page-about__section-title {
    color: #FFFFFF;
    margin-bottom: 25px;
}

.page-about__contact-description {
    font-size: 1.125rem; /* 18px */
    line-height: 1.7;
    margin-bottom: 40px;
    color: #FFFFFF;
    opacity: 0.9;
}

.page-about__cta-button--secondary {
    background: #FFFFFF;
    color: #2F6BFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button--secondary:hover {
    background: #F4F7FB;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-about__hero-content {
        margin-top: 20px;
    }

    .page-about__main-title {
        font-size: clamp(1.3rem, 4.5vw, 2.2rem);
    }

    .page-about__intro-text {
        font-size: 1rem;
    }

    .page-about__section {
        padding: 40px 0;
    }

    .page-about__section-title {
        font-size: clamp(1.2rem, 3.5vw, 1.8rem);
        margin-bottom: 30px;
    }

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

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

    .page-about__content-grid--reverse .page-about__image-wrapper {
        order: -1; /* Image first on mobile */
    }

    .page-about__values-list,
    .page-about__benefits-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__value-item,
    .page-about__benefit-item {
        padding: 20px;
    }

    .page-about__value-heading,
    .page-about__benefit-heading {
        font-size: 1.25rem;
    }

    .page-about__contact-cta {
        padding: 60px 0;
    }

    .page-about__contact-description {
        font-size: 1rem;
    }
}

@media (max-width: 549px) {
    .page-about__container {
        padding: 0 15px;
    }

    .page-about__main-title {
        font-size: clamp(1.1rem, 4.5vw, 1.75rem); /* Strict H1 clamp for mobile */
    }

    .page-about__intro-text {
        font-size: 0.9375rem; /* 15px */
    }

    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 0.9375rem;
    }

    .page-about__text-content p {
        font-size: 0.9375rem; /* 15px */
    }

    .page-about__image-wrapper img {
        /* Ensure images in content area don't display smaller than 200px */
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }

    .page-about__value-heading,
    .page-about__benefit-heading {
        font-size: 1.125rem;
    }

    .page-about__value-description,
    .page-about__benefit-description {
        font-size: 0.9375rem; /* 15px */
    }
}

/* Ensure all images within .page-about are responsive and meet min-size */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* No CSS filters to change color */
    /* Min size for content images, not header logo/footer icons */
    min-width: 200px;
    min-height: 200px;
}

/* For smaller screens, ensure images don't cause overflow */
@media (max-width: 768px) {
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
    }
}