/* about.css */

/* Custom Properties based on provided color scheme */
:root {
    --page-about-primary-color: #2F6BFF;
    --page-about-secondary-color: #6FA3FF;
    --page-about-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --page-about-card-bg: #FFFFFF;
    --page-about-background: #F4F7FB;
    --page-about-text-main: #1F2D3D;
    --page-about-text-black: #000000;
    --page-about-border-color: #D6E2FF;
    --page-about-glow-color: #A5C4FF;
}

.page-about {
    background-color: var(--page-about-background);
    color: var(--page-about-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Small top padding for the first section, relying on body for header offset */
.page-about__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
    background-color: var(--page-about-background);
    display: flex;
    flex-direction: column; /* Ensure image is above text */
    align-items: center;
    text-align: center;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Match img width */
    margin-bottom: 30px;
}

.page-about__hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Ensure minimum size */
    min-height: 112px; /* Maintain aspect ratio for min-width 200px (16:9) */
}

.page-about__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-about__main-title {
    font-weight: bold;
    color: var(--page-about-primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--page-about-text-main);
}

.page-about__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    background: var(--page-about-button-gradient);
    color: var(--page-about-card-bg); /* White text on blue button */
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.page-about__cta-button:hover {
    box-shadow: 0 6px 20px var(--page-about-glow-color);
    transform: translateY(-2px);
}

.page-about__cta-button--secondary {
    background: var(--page-about-secondary-color);
    color: var(--page-about-card-bg);
}

.page-about__cta-button--secondary:hover {
    box-shadow: 0 6px 20px rgba(111, 163, 255, 0.4);
}

.page-about__mission-vision-section,
.page-about__values-section,
.page-about__contact-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-about__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-about__mission-vision-section .page-about__container,
.page-about__contact-section .page-about__container {
    justify-content: space-between;
}

.page-about__text-content {
    flex: 1;
    min-width: 300px;
}

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

.page-about__image {
    width: 100%;
    height: auto;
    max-width: 600px; /* Based on HTML width="600" */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    min-width: 200px; /* Minimum size for content images */
    min-height: 150px; /* Maintain aspect ratio for min-width 200px (4:3) */
}

.page-about__section-title {
    font-size: 2em;
    font-weight: bold;
    color: var(--page-about-primary-color);
    margin-bottom: 25px;
    text-align: left;
}

.page-about__section-title--center {
    text-align: center;
    margin-bottom: 50px;
}

.page-about__paragraph {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: var(--page-about-text-main);
}

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

.page-about__value-card {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-about__value-title {
    font-size: 1.4em;
    color: var(--page-about-primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__value-description {
    font-size: 0.95em;
    color: var(--page-about-text-main);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-about__hero-section {
        padding-bottom: 30px;
    }

    .page-about__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Using clamp for H1 on smaller screens */
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-about__cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .page-about__mission-vision-section,
    .page-about__values-section,
    .page-about__contact-section {
        padding: 40px 15px;
    }

    .page-about__container {
        flex-direction: column;
        gap: 30px;
    }

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

    .page-about__section-title--center {
        margin-bottom: 30px;
    }

    .page-about__image {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
        min-width: 200px; /* Minimum size */
        min-height: 150px; /* Minimum size */
    }

    /* Mobile overflow constraint for all images in .page-about */
    .page-about img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
    }

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

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

/* Ensure no filter on images */
.page-about img {
    filter: none !important;
}

/* Content area images CSS dimensions lower bound */
.page-about img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
    min-width: 200px;
    min- /* Using 4:3 aspect ratio as a general minimum */
}
.page-about__hero-image {
    min-height: 112px; /* For 16:9 aspect ratio at 200px width */
}