/* style/about.css */

/* Variables for consistency */
:root {
    --page-about-primary-color: #017439;
    --page-about-secondary-color: #FFFFFF;
    --page-about-text-dark: #333333;
    --page-about-text-light: #FFFFFF;
    --page-about-button-register: #C30808;
    --page-about-button-login: #C30808;
    --page-about-button-font: #FFFF00;
    --page-about-background-light: #FFFFFF;
    --page-about-border-color: #e0e0e0;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-about-text-dark); /* Default text color for light backgrounds */
    background-color: var(--page-about-background-light); /* Assuming body is light */
}

/* 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;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.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: 2;
}

.page-about__hero-content {
    position: relative;
    z-index: 3;
    color: var(--page-about-text-light);
    max-width: 800px;
    padding: 20px;
}

.page-about__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--page-about-text-light);
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--page-about-text-light);
}

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

/* General button styles */
.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;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

.page-about__btn-primary {
    background-color: var(--page-about-button-register); /* Specific color for register */
    color: var(--page-about-button-font); /* Specific font color */
    border: 2px solid var(--page-about-button-register);
}

.page-about__btn-primary:hover {
    background-color: #a00606; /* Darken by 10% */
    border-color: #a00606; /* Darken by 10% */
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--page-about-text-light);
    border: 2px solid var(--page-about-text-light);
}

.page-about__btn-secondary:hover {
    background-color: var(--page-about-text-light);
    color: var(--page-about-primary-color);
    border-color: var(--page-about-text-light);
}

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

.page-about__container--flex {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__text-column {
    flex: 1;
}

.page-about__image-column {
    flex: 1;
    display: flex;
    justify-content: center;
}

.page-about__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: var(--page-about-primary-color);
}

.page-about__subsection-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--page-about-primary-color);
}

.page-about__text-block {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-about__text-link {
    color: var(--page-about-primary-color);
    text-decoration: underline;
}

.page-about__text-link:hover {
    color: #005a2e; /* Darken by 10% */
}

/* Image styles */
.page-about__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__content-image--center {
    margin: 40px auto;
}

/* Background colors for contrast */
.page-about__light-bg {
    background-color: var(--page-about-background-light);
    color: var(--page-about-text-dark);
}

.page-about__dark-section {
    background-color: var(--page-about-primary-color);
    color: var(--page-about-text-light);
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__subsection-title {
    color: var(--page-about-text-light);
}

/* Feature Grid Section */
.page-about__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-card {
    background-color: var(--page-about-background-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--page-about-text-dark);
    min-height: 250px; /* Ensure cards are large enough */
}

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

.page-about__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--page-about-primary-color);
}

.page-about__card-description {
    font-size: 1em;
    color: var(--page-about-text-dark);
}

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

.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-about-text-light);
}

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

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

.page-about__faq-heading {
    margin: 0;
    color: var(--page-about-text-light);
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--page-about-text-light);
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes a cross */
}

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

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Ensure it expands fully */
    padding: 20px 25px !important; /* Adjust padding for consistency */
}

.page-about__faq-answer p {
    margin-bottom: 10px;
    color: var(--page-about-text-light);
}

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

.page-about__cta-container {
    background-color: var(--page-about-background-light);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 50px;
    color: var(--page-about-text-dark);
}

.page-about__cta-section .page-about__section-title {
    color: var(--page-about-primary-color);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 3em;
    }
    .page-about__hero-section {
        height: 500px;
    }
    .page-about__container--flex {
        flex-direction: column;
        text-align: center;
    }
    .page-about__image-column {
        margin-top: 30px;
    }
}

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

    /* Fixed header spacing for mobile */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        height: 450px;
    }

    .page-about__main-title {
        font-size: 2.2em;
    }

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

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .page-about__subsection-title {
        font-size: 1.5em;
    }

    .page-about__container,
    .page-about__introduction-section,
    .page-about__mission-vision-section,
    .page-about__why-choose-us-section,
    .page-about__faq-section,
    .page-about__cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important; /* Explicitly set width to 100% for mobile */
        height: auto !important;
        display: block !important;
    }

    /* Ensure content image containers also adapt */
    .page-about__image-column {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__feature-grid {
        grid-template-columns: 1fr;
    }

    .page-about__feature-card {
        padding: 25px;
    }

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

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

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

    .page-about__cta-container {
        padding: 30px;
    }

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

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__hero-section {
        height: 400px;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
}

/* Ensure no CSS filters are used on images */
.page-about img {
    filter: none;
}