/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is #1a1a1a (dark), so text is light */
    background-color: #1a1a1a; /* Ensure consistency with body background */
}

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

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

.page-about__section-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: justify;
    color: #f0f0f0; /* Light text for dark background */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    min-height: 600px;
    overflow: hidden;
    background-color: #017439; /* Use brand color for hero background */
    color: #ffffff;
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

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

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

/* Buttons */
.page-about__btn-register,
.page-about__btn-login {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

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

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

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

/* Dark sections for contrast */
.page-about__dark-section {
    background-color: #1a1a1a; /* Match body background */
    color: #ffffff;
    padding: 60px 20px;
}

/* General Content Sections */
.page-about__introduction-section,
.page-about__vision-mission-section,
.page-about__values-commitments-section,
.page-about__why-choose-us-section,
.page-about__future-section,
.page-about__faq-section {
    padding: 60px 20px;
    background-color: #2a2a2a; /* Slightly lighter dark background for sections */
    color: #f0f0f0;
}

.page-about__introduction-section .page-about__section-title,
.page-about__values-commitments-section .page-about__section-title,
.page-about__future-section .page-about__section-title {
    color: #017439; /* Brand color for titles in dark sections */
}


.page-about__section-text a {
    color: #FFFF00; /* Highlight links in text */
    text-decoration: underline;
}

.page-about__section-text a:hover {
    color: #ffcc00;
}

.page-about__content-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

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

.page-about__card {
    background-color: #3a3a3a; /* Darker card background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #f0f0f0;
}

.page-about__card-title {
    font-size: 1.8em;
    color: #017439; /* Brand color for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-text {
    font-size: 1em;
    color: #cccccc;
}

/* Value List */
.page-about__value-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-about__value-item {
    background-color: #3a3a3a;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #f0f0f0;
}

.page-about__value-heading {
    font-size: 1.5em;
    color: #FFFF00; /* Highlight value headings */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__value-text {
    font-size: 1em;
    color: #cccccc;
}

.page-about__value-text a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-about__value-text a:hover {
    color: #ffcc00;
}

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

.page-about__feature-card {
    background-color: #3a3a3a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #f0f0f0;
}

.page-about__feature-title {
    font-size: 1.6em;
    color: #017439; /* Brand color for feature titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-text {
    font-size: 1em;
    color: #cccccc;
}

.page-about__feature-text a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-about__feature-text a:hover {
    color: #ffcc00;
}

/* CTA Buttons Centered */
.page-about__cta-buttons--centered {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 20px;
    background-color: #2a2a2a;
    color: #f0f0f0;
}

.page-about__faq-list {
    margin-top: 40px;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439; /* Brand color for FAQ questions */
    cursor: pointer;
    background-color: #4a4a4a;
    border-bottom: 1px solid #5a5a5a;
    list-style: none; /* For details/summary */
}

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

.page-about__faq-qtext {
    flex-grow: 1;
    color: #f0f0f0;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #FFFF00; /* Highlight toggle icon */
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' */
}

.page-about__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: #cccccc;
    background-color: #3a3a3a;
    border-top: 1px solid #5a5a5a;
}

.page-about__faq-answer p {
    margin: 0;
}

.page-about__faq-answer a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-about__faq-answer a:hover {
    color: #ffcc00;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.2em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
}

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

    .page-about__hero-section {
        padding: 60px 15px;
        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__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Limit button group width */
        margin: 0 auto;
    }

    .page-about__btn-register,
    .page-about__btn-login {
        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__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-about__section-text {
        font-size: 1em;
    }

    .page-about__introduction-section,
    .page-about__vision-mission-section,
    .page-about__values-commitments-section,
    .page-about__why-choose-us-section,
    .page-about__future-section,
    .page-about__faq-section {
        padding: 40px 15px;
    }

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

    .page-about__card,
    .page-about__feature-card,
    .page-about__value-item {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Still enforce min size */
        min-height: 200px;
    }

    .page-about__cta-buttons--centered {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Limit button group width */
        margin: 40px auto 0 auto;
    }

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

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

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
}