/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Assuming shared.css sets body to a light color or default white */
}

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

/* Article wrap for text content */
.page-about__article-wrap {
    max-width: 900px; /* Slightly narrower for readability of long text */
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-about__hero-image-wrap {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Spacing between image and content */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure image covers the area */
}

.page-about__hero-content {
    background-color: #FFFFFF; /* Light background for text */
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    transform: translateY(-50px); /* Slightly overlap with image for visual interest */
    z-index: 1;
    position: relative;
    margin-bottom: -50px; /* Counteract transform for overall section height */
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-about__description {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container doesn't overflow */
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__cta-buttons--center {
    justify-content: center;
}

.page-about__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure button itself doesn't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

.page-about__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
    background-color: #1a8ccf;
    border-color: #1a8ccf;
}

.page-about__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1a8ccf;
    border-color: #1a8ccf;
}

/* Section General Styles */
.page-about__section {
    padding: 60px 0;
    margin-top: 20px;
}

.page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-about__section-title--white {
    color: #FFFFFF;
}

.page-about__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__sub-title--white {
    color: #FFFFFF;
}

.page-about__content-block p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #444444;
}

.page-about__content-block--white p {
    color: #f0f0f0;
}

.page-about__content-block--white a {
    color: #FFFFFF;
    text-decoration: underline;
}
.page-about__content-block--white a:hover {
    color: #e0e0e0;
}

.page-about__text-block--white {
    color: #f0f0f0; /* Ensure text in dark sections is light */
}

.page-about__dark-bg {
    background-color: #26A9E0;
    color: #FFFFFF; /* Default text color for dark background */
}

.page-about__light-bg {
    background-color: #FFFFFF;
    color: #333333; /* Default text color for light background */
}

/* Image Figures */
.page-about__figure {
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.page-about__figcaption {
    font-size: 0.9rem;
    color: #777777;
    margin-top: 10px;
    text-align: center;
}

.page-about__figcaption--white {
    color: #cccccc;
}

.page-about__text-center {
    text-align: center;
}

/* Specific color overrides based on brand colors and contrast requirements */
.page-about__hero-section.page-about__dark-bg {
    background-color: #26A9E0; /* Main brand color for hero background */
}
.page-about__hero-section.page-about__dark-bg .page-about__main-title {
    color: #26A9E0; /* Title in hero content block */
}
.page-about__hero-section.page-about__dark-bg .page-about__description {
    color: #555555; /* Description in hero content block */
}

.page-about__ecosystem.page-about__dark-bg {
    background-color: #26A9E0;
}
.page-about__commitment.page-about__dark-bg {
    background-color: #26A9E0;
}

/* Ensure links in general content are readable */
.page-about__content-block a {
    color: #26A9E0;
    text-decoration: underline;
}
.page-about__content-block a:hover {
    color: #1a8ccf;
}

/* Custom color for login button if applicable (not present in about page, but for completeness) */
.page-about__btn--login {
    background-color: #EA7C07;
    border-color: #EA7C07;
    color: #FFFFFF;
}
.page-about__btn--login:hover {
    background-color: #da6f00;
    border-color: #da6f00;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* General page adjustments */
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .page-about__container,
    .page-about__article-wrap {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 1. Top Section / Hero */
    .page-about__hero-section {
        padding-top: 10px !important; /* Specific top padding */
        padding-bottom: 20px;
    }

    .page-about__hero-image-wrap {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-about__hero-content {
        padding: 25px 15px;
        transform: translateY(-30px);
        margin-bottom: -30px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    }

    .page-about__main-title {
        font-size: 2rem !important; /* Adjust H1 for mobile */
        margin-bottom: 15px;
    }

    .page-about__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* 4. Buttons and Button Containers */
    .page-about__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
        align-items: center; /* Center stacked buttons */
        padding-left: 0;
        padding-right: 0;
    }

    .page-about__btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    /* 2. Single Column Long Text Container (Generic sections) */
    .page-about__section {
        padding: 40px 0;
    }

    .page-about__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: 1.3rem !important;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-about__content-block p {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    /* 3. Generic Images and Figures */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__figure {
        margin: 20px auto;
    }

    .page-about__figcaption {
        font-size: 0.85rem;
    }
}