/* style/about.css */

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default body background is white */
}

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

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: #f9f9f9;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image wrapper */
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
}

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

.page-about__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: 2.8em;
    font-weight: 700;
    color: #017439;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-about__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555555;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-about__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* General Section Styles */
.page-about__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
}

.page-about__section-title--light {
    color: #ffffff;
}

.page-about__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px auto;
    max-width: 800px; /* Ensure content images are not tiny */
    min-width: 200px; /* Enforce minimum size */
}

.page-about__image--center {
    margin-left: auto;
    margin-right: auto;
}

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

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 60px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-about__why-choose-us .page-about__text-block {
    color: #f0f0f0;
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease, background-color 0.3s ease;
    min-height: 200px; /* Ensure card content is not tiny */
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-about__feature-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFFF00; /* Use highlight color for titles */
}

.page-about__feature-description {
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
}

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

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

details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
}
details.page-about__faq-item summary.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #333333;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
    display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
    background: #f5f5f5;
}
.page-about__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333;
}
.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #017439; /* Use brand color for toggle icon */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
    color: #555555;
}
details.page-about__faq-item .page-about__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 2.5em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr; /* Stack features on smaller screens */
        gap: 25px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 30px;
    }
    .page-about__hero-image-wrapper,
    .page-about__hero-content {
        padding: 0 15px;
    }
    .page-about__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-about__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    /* Buttons and Button Containers */
    .page-about__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .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: 12px 20px !important;
        font-size: 1em !important;
    }

    /* General Sections and Images */
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
        padding-top: 30px;
    }
    .page-about__text-block {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important; /* Ensure padding/border don't cause overflow */
    }
    .page-about__hero-image-wrapper,
    .page-about__mission-section,
    .page-about__why-choose-us,
    .page-about__faq-section,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific section paddings */
    .page-about__mission-section,
    .page-about__why-choose-us,
    .page-about__faq-section {
        padding: 40px 0;
    }

    /* Features Grid */
    .page-about__features-grid {
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    .page-about__feature-card {
        padding: 25px;
        min-height: unset; /* Allow height to adjust */
    }
    .page-about__feature-title {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    .page-about__feature-description {
        font-size: 0.9em;
    }

    /* FAQ Section */
    .page-about__faq-list {
        margin-top: 30px;
    }
    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px;
    }
    .page-about__faq-qtext {
        font-size: 1em;
    }
    .page-about__faq-toggle {
        font-size: 20px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 15px 15px;
    }
}