/* style/about.css */

/* General styling for .page-about scope */
.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color, #1F2D3D); /* Default text color, assuming light background */
    background-color: var(--page-background-color, #F4F7FB); /* Default page background */
    line-height: 1.6;
}

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

.page-about__section {
    padding: 60px 0;
    text-align: center;
}

.page-about__section-title {
    font-size: clamp(28px, 4vw, 42px); /* Responsive H2 */
    color: var(--custom-color-1776249996415, #000000);
    margin-bottom: 30px;
    font-weight: 700;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--main-color, #2F6BFF); /* Use main color for hero section background */
    color: #ffffff; /* White text on main color background */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for image container */
    margin-bottom: 30px; /* Space between image and text */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-about__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-about__main-title {
    font-size: clamp(32px, 5vw, 56px); /* Responsive H1 */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff; /* White text on hero background */
}

.page-about__description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly off-white for description */
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background-color: #ffffff;
    color: var(--main-color, #2F6BFF);
    border: 2px solid var(--main-color, #2F6BFF);
}

.page-about__btn-secondary:hover {
    background-color: var(--main-color, #2F6BFF);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Content Grid Sections */
.page-about__mission-vision .page-about__container,
.page-about__commitment .page-about__container {
    text-align: left;
}

.page-about__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-about__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    padding-right: 20px;
    color: var(--text-main-color, #1F2D3D);
}

.page-about__dark-section .page-about__text-block {
    color: #ffffff; /* White text on dark section */
}

.page-about__image-block {
    flex: 1;
    min-width: 300px;
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Dark Section specific styling */
.page-about__dark-section {
    background-color: var(--main-color, #2F6BFF);
    color: #ffffff;
}

.page-about__dark-section .page-about__section-title {
    color: #ffffff;
}

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

.page-about__value-card {
    background-color: var(--card-bg-color, #FFFFFF);
    color: var(--text-main-color, #1F2D3D);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color, #D6E2FF);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__card-title {
    font-size: 24px;
    color: var(--custom-color-1776249996415, #000000);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-about__value-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main-color, #1F2D3D);
}

/* CTA Section */
.page-about__cta {
    background-color: var(--page-background-color, #F4F7FB);
    padding: 80px 0;
}

.page-about__cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-about__cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-main-color, #1F2D3D);
}

.page-about__btn-large {
    padding: 16px 40px;
    font-size: 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-about__content-grid {
        flex-direction: column;
    }
    .page-about__content-grid--reverse {
        flex-direction: column; /* Stays column for reverse on mobile */
    }
    .page-about__text-block {
        padding-right: 0;
        padding-bottom: 20px;
    }
    .page-about__image-block {
        order: -1; /* Image appears above text on mobile for normal grid */
    }
    .page-about__content-grid--reverse .page-about__image-block {
        order: 0; /* Image appears below text for reverse grid on mobile */
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-about__main-title {
        font-size: clamp(28px, 8vw, 40px); /* Adjust H1 for smaller screens */
    }
    .page-about__description {
        font-size: 16px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-image-wrapper,
    .page-about__image-block,
    .page-about__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-about__hero-section {
        padding-top: 10px !important; /* body already handles header offset */
    }

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

/* Custom properties for colors from custom_colors.json */
:root {
    --main-color: #2F6BFF;
    --accent-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg-color: #FFFFFF;
    --page-background-color: #F4F7FB;
    --text-main-color: #1F2D3D;
    --custom-color-1776249996415: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

/* Color contrast adjustments based on body background.
   Assuming body background is light based on --page-background-color and --card-bg-color.
   Therefore, default text color should be dark (#1F2D3D or #000000).
   Dark sections (like .page-about__dark-section) use brand main color as background and white text.
*/
.page-about {
    color: var(--text-main-color, #1F2D3D); /* Default text color for page */
}

/* Card and container background/text colors */
.page-about__card {
    background: var(--card-bg-color, #FFFFFF);
    color: var(--text-main-color, #1F2D3D);
    border: 1px solid var(--border-color, #D6E2FF);
}

.page-about__dark-section {
    background: var(--main-color, #2F6BFF);
    color: #ffffff; /* White text on dark brand color background */
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section p {
    color: #ffffff; /* Ensure all text in dark section is white */
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
}

.page-about__btn-secondary {
    background-color: #ffffff;
    color: var(--main-color, #2F6BFF);
    border-color: var(--main-color, #2F6BFF);
}