/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: inherit; /* Inherit from parent section */
}

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    background: linear-gradient(135deg, #017439, #005f2f); /* Brand color gradient */
    color: #ffffff;
}

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

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

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary, .page-about__cta-button {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-about__btn-primary:hover, .page-about__cta-button:hover {
    background-color: #e00a0a;
    border-color: #e00a0a;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

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

/* Sections with specific backgrounds */
.page-about__dark-bg {
    background-color: #017439; /* Brand main color */
    color: #ffffff;
    padding: 60px 0;
}

.page-about__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-about__light-bg .page-about__section-title {
    color: #017439; /* Dark title on light background */
}

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

/* Story Section */
.page-about__story-section {
    padding: 80px 0;
}

/* Values Section */
.page-about__values-section {
    padding: 80px 0;
}

.page-about__value-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__value-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__value-heading {
    font-size: 1.8em;
    color: #FFFF00; /* Highlight with yellow for vibrancy */
    margin-bottom: 15px;
}

.page-about__value-description {
    font-size: 1em;
    color: #f0f0f0;
}

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

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

.page-about__feature-card {
    background-color: #f8f8f8;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-about__feature-heading {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

.page-about__feature-description {
    font-size: 1em;
    color: #555555;
}

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

.page-about__responsibility-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__responsibility-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__responsibility-heading {
    font-size: 1.8em;
    color: #FFFF00; /* Highlight with yellow for vibrancy */
    margin-bottom: 15px;
}

.page-about__responsibility-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Future Vision Section */
.page-about__vision-section {
    padding: 80px 0;
}

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

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

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.page-about__faq-heading {
    margin: 0;
    color: inherit;
    font-size: 1em; /* Adjust to fit parent font size */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #FFFF00;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
}

.page-about__faq-answer .page-about__paragraph {
    margin-bottom: 0;
    color: inherit;
}

.page-about__faq-answer a {
    color: #FFFF00; /* Link color in FAQ answer */
    text-decoration: underline;
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-about__cta-section .page-about__section-title {
    color: #017439;
}

.page-about__cta-section .page-about__paragraph {
    color: #333333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Text alignment helpers */
.page-about__text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__value-heading,
    .page-about__feature-heading,
    .page-about__responsibility-heading {
        font-size: 1.5em;
    }
}

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

    .page-about__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-about__hero-title {
        font-size: 2.5em;
    }

    .page-about__hero-description {
        font-size: 1.1em;
    }

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

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

    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 200px !important; /* Enforce min size even on mobile */
    }

    /* Container responsiveness */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__story-section,
    .page-about__values-section,
    .page-about__why-choose-us-section,
    .page-about__responsibility-section,
    .page-about__vision-section,
    .page-about__faq-section,
    .page-about__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-about__value-list,
    .page-about__features-grid,
    .page-about__responsibility-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__faq-list {
        padding: 0 15px;
    }

    .page-about__faq-question {
        padding: 15px;
        font-size: 1.1em;
    }

    .page-about__faq-answer {
        padding: 0 15px;
    }

    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px;
    }
}