/* style/about.css */

/* Base Styles */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark #0a0a0a, so text is light */
    background-color: #0a0a0a; /* Ensure consistency, though body background is from shared */
}

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

.page-about__section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-about__heading {
    font-size: 2.8em;
    color: #017439; /* Brand color for headings */
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__intro-text {
    font-size: 1.1em;
    margin-bottom: 50px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

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

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Buttons */
.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;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-about__btn-secondary {
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Vision & Mission Section */
.page-about__vision-mission .page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.page-about__vision-mission .page-about__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Min size for images */
    min-height: 200px;
}

.page-about__vision-mission .page-about__text-block p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-about__vision-mission .page-about__text-block h3 {
    color: #017439;
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Why Choose Section */
.page-about__why-choose {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-about__feature-icon {
    width: 200px; /* Ensure minimum display size */
    height: 200px; /* Ensure minimum display size */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

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

.page-about__cta-bottom {
    margin-top: 60px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Commitment Section */
.page-about__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-about__commitment-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-about__commitment-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__commitment-item p {
    color: #f0f0f0;
}

/* Team Section */
.page-about__team {
    background-color: rgba(255, 255, 255, 0.05);
}

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

.page-about__team-member {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #ffffff;
}

.page-about__team-photo {
    width: 200px; /* Ensure minimum display size */
    height: 200px; /* Ensure minimum display size */
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #017439;
}

.page-about__member-name {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 5px;
    font-weight: bold;
}

.page-about__member-role {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.page-about__member-bio {
    color: #f0f0f0;
}

/* Contact Section */
.page-about__contact-info {
    margin-top: 50px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.page-about__contact-info p {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-about__contact-info strong {
    color: #017439;
}

.page-about__cta-contact {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-about__faq {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-about__faq-list {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439; /* Brand color for question background */
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #005a2e;
}

.page-about__faq-question h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em;
}

.page-about__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px 25px;
}

.page-about__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    color: #f0f0f0;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__heading {
        font-size: 2.5em;
    }
    .page-about__vision-mission .page-about__content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .page-about__vision-mission .page-about__image {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__section {
        padding: 60px 0;
    }
    .page-about__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__heading {
        font-size: 2em;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* All image/video/button containers */
    .page-about__container,
    .page-about__section,
    .page-about__hero-section,
    .page-about__content-grid,
    .page-about__features-grid,
    .page-about__feature-card,
    .page-about__commitment-grid,
    .page-about__commitment-item,
    .page-about__team-grid,
    .page-about__team-member,
    .page-about__contact-info,
    .page-about__faq-list,
    .page-about__faq-item,
    .page-about__faq-question,
    .page-about__faq-answer,
    .page-about__hero-cta,
    .page-about__cta-bottom,
    .page-about__cta-contact {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsiveness */
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add padding to prevent text touching edges */
        padding-right: 15px;
        margin-bottom: 10px; /* Stack buttons */
    }
    .page-about__hero-cta,
    .page-about__cta-bottom,
    .page-about__cta-contact {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

    .page-about__feature-icon,
    .page-about__team-photo {
        width: 200px; /* Maintain minimum size if possible, will scale down with max-width: 100% */
        height: 200px; /* Maintain minimum size if possible */
        margin-left: auto;
        margin-right: auto;
    }

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