/* style/about.css */

/* Base styles for the about page content */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #f5f5f5; /* A light background for the page, assuming --background-color is light */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #f5f5f5;
    text-align: center;
}

.page-about__hero-image {
    width: 100%;
    max-width: 1920px;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

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

.page-about__hero-description {
    font-size: 1.15rem;
    color: #555555;
    margin-bottom: 30px;
}

/* Call to Action Buttons */
.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-about__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
}

/* General Section Styling */
.page-about__section {
    padding: 60px 20px;
    text-align: center;
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-about__heading {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #26A9E0;
    margin-bottom: 30px;
    font-weight: 700;
}

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

.page-about__paragraph {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 20px;
    text-align: justify;
}

.page-about__paragraph--center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    background-color: #ffffff;
    padding: 60px 20px;
}

.page-about__mission-vision-section .page-about__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.page-about__mission-vision-section .page-about__text-block {
    flex: 1;
    text-align: left;
}

.page-about__mission-vision-section .page-about__image {
    flex: 1;
    max-width: 50%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Values Section */
.page-about__values-section {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 60px 20px;
}

.page-about__values-section .page-about__heading {
    color: #ffffff;
}

.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: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.page-about__value-card .page-about__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-about__value-card .page-about__card-description {
    font-size: 1rem;
    color: #f0f0f0;
    text-align: center;
}

/* Team Section */
.page-about__team-section {
    background-color: #ffffff;
    padding: 60px 20px;
}

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

.page-about__team-member {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__team-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #26A9E0;
    min-width: 200px;
    min-height: 200px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__member-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #26A9E0;
    margin-bottom: 5px;
}

.page-about__member-role {
    font-size: 1rem;
    color: #777777;
    margin-bottom: 15px;
}

.page-about__member-bio {
    font-size: 0.95rem;
    color: #555555;
    text-align: center;
}

/* Commitment Section */
.page-about__commitment-section {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 60px 20px;
}

.page-about__commitment-section .page-about__heading {
    color: #ffffff;
}

.page-about__commitment-section .page-about__paragraph {
    color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
}

.page-about__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-about__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-about__faq-item summary:hover {
    background-color: #f0f0f0;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

.page-about__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1rem;
    color: #555555;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-about__mission-vision-section .page-about__container {
        flex-direction: column;
    }

    .page-about__mission-vision-section .page-about__image {
        max-width: 80%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-about__main-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

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

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-about__container {
        padding: 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__heading {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .page-about__paragraph {
        font-size: 1rem;
    }

    .page-about__mission-vision-section .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset;
        min-height: unset;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }

    .page-about__team-image {
        width: 120px !important;
        height: 120px !important;
        min-width: unset;
        min-height: unset;
    }

    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__text-block,
    .page-about__value-card,
    .page-about__team-member,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-image {
        padding-left: 0;
        padding-right: 0;
    }
    .page-about__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__mission-vision-section .page-about__text-block {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__values-grid,
    .page-about__team-grid,
    .page-about__faq-list {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__faq-item summary {
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 0 15px 15px 15px;
    }
}

/* Color Contrast Safeguards */
.page-about__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

/* Ensure all links within content are readable */
.page-about a {
    color: #26A9E0;
    text-decoration: underline;
}
.page-about a:hover {
    color: #1e87c0;
}