/* style/about.css */

/* General Styles for .page-about scope */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default white */
    padding-top: var(--header-offset, 120px); /* Apply header offset to main content */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__section-subtitle {
    font-size: 1.2em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

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

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

.page-about__btn-secondary:hover {
    background: #e0f2f7;
    color: #26A9E0;
    border-color: #26A9E0;
}

/* Section Backgrounds */
.page-about__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__section-subtitle,
.page-about__dark-bg .page-about__feature-title,
.page-about__dark-bg .page-about__feature-card p,
.page-about__dark-bg .page-about__responsibility-text h3,
.page-about__dark-bg .page-about__responsibility-text p,
.page-about__dark-bg .page-about__responsibility-text li,
.page-about__dark-bg .page-about__responsibility-text a {
    color: #FFFFFF;
}

.page-about__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    padding-top: 0; /* Offset already handled by .page-about */
}

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
}

.page-about__hero-section .page-about__container {
    position: relative;
    z-index: 1;
    color: #FFFFFF;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #FFFFFF;
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Intro Section */
.page-about__intro-section {
    padding: 80px 0;
}

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

.page-about__intro-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 80px 0;
}

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

.page-about__feature-card {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on brand primary background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__feature-card img {
    width: 100%;
    max-width: 200px; /* Example size for icon-like images */
    height: auto;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
    border-radius: 8px;
    object-fit: cover;
}

.page-about__feature-title {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-card p {
    color: #f0f0f0;
}

.page-about__cta-section {
    text-align: center;
    margin-top: 40px;
}

/* Team Section */
.page-about__team-section {
    padding: 80px 0;
}

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

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

.page-about__team-member img {
    width: 200px; /* Specific size for team photos */
    height: 200px; /* Specific size for team photos */
    max-width: 200px; /* Specific size for team photos */
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
}

.page-about__member-name {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__member-role {
    color: #666666;
    font-style: italic;
}

/* Social Responsibility Section */
.page-about__social-responsibility {
    padding: 80px 0;
}

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

.page-about__responsibility-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-about__responsibility-text h3 {
    color: #FFFFFF;
    font-size: 1.6em;
    margin-top: 20px;
    margin-bottom: 15px;
}

.page-about__responsibility-text p,
.page-about__responsibility-text li {
    color: #f0f0f0;
    margin-bottom: 10px;
}

.page-about__responsibility-text ul {
    list-style: disc inside;
    margin-left: 20px;
}

.page-about__responsibility-text a {
    color: #FFFFFF;
    text-decoration: underline;
}

.page-about__responsibility-text a:hover {
    color: #e0f2f7;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
}

.page-about__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-about__faq-item {
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* For smooth transition */
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #e0f2f7; /* Light background for questions */
    color: #26A9E0; /* Brand color for question text */
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    border-bottom: 1px solid #d0e8ef;
    list-style: none; /* Hide default details marker */
}

.page-about__faq-question::-webkit-details-marker {
    display: none; /* Hide default details marker for webkit */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-about__faq-answer {
    padding: 20px 25px;
    color: #555555;
    background: #FFFFFF;
}

.page-about__faq-answer p {
    margin-bottom: 10px;
}

.page-about__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}
.page-about__faq-answer a:hover {
    color: #1e87c0;
}

/* Contact CTA Section */
.page-about__contact-cta {
    padding: 80px 0;
    text-align: center;
}

.page-about__contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__intro-grid,
    .page-about__responsibility-grid {
        grid-template-columns: 1fr;
    }
    .page-about__intro-image,
    .page-about__responsibility-image {
        order: -1; /* Image first on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    /* Fixed header offset for mobile */
    .page-about {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-about__container {
        padding: 0 15px !important; /* Adjust padding for mobile */
    }

    .page-about__hero-section {
        height: 500px;
    }
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__hero-cta .page-about__btn-primary,
    .page-about__hero-cta .page-about__btn-secondary {
        margin: 0 auto;
    }

    .page-about__intro-section,
    .page-about__why-choose-us,
    .page-about__team-section,
    .page-about__social-responsibility,
    .page-about__faq-section,
    .page-about__contact-cta {
        padding: 50px 0;
    }

    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__section-subtitle {
        font-size: 1em;
    }

    .page-about__features-grid,
    .page-about__team-grid {
        grid-template-columns: 1fr;
    }

    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-about__team-member img {
        width: 200px !important;
        height: 200px !important;
        max-width: 200px !important;
        margin-left: auto;
        margin-right: auto;
    }

    .page-about__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 15px 20px;
    }
    .page-about__contact-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__contact-buttons .page-about__btn-primary,
    .page-about__contact-buttons .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }

    /* Container specific overrides for mobile to prevent overflow */
    .page-about__section,
    .page-about__card,
    .page-about__hero-section,
    .page-about__intro-section,
    .page-about__why-choose-us,
    .page-about__team-section,
    .page-about__social-responsibility,
    .page-about__faq-section,
    .page-about__contact-cta,
    .page-about__hero-cta,
    .page-about__contact-buttons,
    .page-about__intro-grid,
    .page-about__features-grid,
    .page-about__team-grid,
    .page-about__responsibility-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-about__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-about__hero-section .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-about__intro-text, .page-about__responsibility-text {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

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

/* Specific button color for login (if any, not explicitly used here but for reference) */
.page-about__btn-login {
    background-color: #EA7C07;
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}
.page-about__btn-login:hover {
    background-color: #c46606;
    border-color: #c46606;
}

/* Contrast fixes for generic elements if needed */
.page-about p a, .page-about li a {
    color: #26A9E0; /* Ensure links in text are visible */
    text-decoration: underline;
}
.page-about p a:hover, .page-about li a:hover {
    color: #1e87c0;
}