/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Default text color for dark body background */
    line-height: 1.6;
    background-color: #1a1a2e; /* Inherited from shared, but explicitly set for clarity */
}

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

.page-about__section-title {
    font-size: 2.8em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    padding-top: 40px;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: #017439; /* Brand green for sub-titles */
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    margin: 20px;
}

.page-about__main-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for main title, as per login/register font color */
    line-height: 1.2;
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.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: #a00606;
    border-color: #a00606;
}

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

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

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Dim the background image for text readability, NO color change */
}

/* General Sections */
.page-about__mission-vision-section,
.page-about__technology-section,
.page-about__why-choose-us-section,
.page-about__community-section,
.page-about__commitment-section,
.page-about__faq-section {
    padding: 80px 0;
}

.page-about__dark-section {
    background-color: #1f1f3a; /* Slightly lighter dark for contrast with body */
    color: #ffffff;
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.page-about__content-grid--reverse {
    grid-template-columns: 1fr 1fr; /* Default order */
}

.page-about__image-block {
    text-align: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element for max-width/height:auto */
}

/* Why Choose Us Section */
.page-about__feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-about__card {
    background-color: #1a1a2e; /* Dark card background */
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-about__card:hover {
    transform: translateY(-10px);
}

.page-about__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-about__card-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 25px;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-item {
    background-color: #1f1f3a; /* Darker background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;
}

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #017439; /* Brand green for FAQ question background */
    color: #ffffff;
    user-select: none;
    list-style: none; /* Hide default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-about__faq-answer {
    padding: 20px 25px;
    background-color: #1a1a2e; /* Dark background for answer content */
    color: #f0f0f0;
    font-size: 1em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2.2em;
    }
    .page-about__sub-title {
        font-size: 1.6em;
    }
    .page-about__hero-content {
        padding: 30px;
    }
    .page-about__content-grid {
        gap: 40px;
    }
    .page-about__feature-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-about__main-title {
        font-size: 2.5em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.4em;
    }
    .page-about__cta-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;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-about__content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-about__content-grid--reverse .page-about__image-block {
        order: 0; /* Image first on mobile */
    }
    .page-about__content-grid--reverse .page-about__text-block {
        order: 1; /* Text second on mobile */
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__image-block,
    .page-about__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about__container,
    .page-about__section,
    .page-about__card,
    .page-about__feature-cards,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 2em;
    }
    .page-about__section-title {
        font-size: 1.6em;
    }
    .page-about__hero-content {
        padding: 20px;
    }
}