/* style/about.css */

/* Base styles for the about page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Section styling */
.page-about__section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-about__section.page-about__dark-bg {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff;
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent padding for content */
}

/* Headings */
.page-about__heading {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-about__section.page-about__introduction-section .page-about__heading,
.page-about__section.page-about__team-tech-section .page-about__heading,
.page-about__section.page-about__achievements-section .page-about__heading,
.page-about__section.page-about__faq-section .page-about__heading {
    color: #017439; /* Darker heading for light background sections */
}

.page-about__card-title {
    font-size: 1.8em;
    color: #017439; /* Darker title for light cards */
    margin-bottom: 15px;
}

.page-about__faq-title {
    font-size: 1.2em;
    color: #017439; /* Darker title for FAQ questions */
    margin: 0;
}

/* Paragraphs */
.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ffffff; /* Default light text for dark sections */
}

.page-about__section.page-about__introduction-section .page-about__paragraph,
.page-about__section.page-about__team-tech-section .page-about__paragraph,
.page-about__section.page-about__achievements-section .page-about__paragraph,
.page-about__section.page-about__faq-section .page-about__paragraph {
    color: #333333; /* Dark text for light background sections */
}

/* Highlighted text */
.page-about__highlight {
    font-weight: bold;
    color: #FFFF00; /* Yellow for highlights */
}

/* Links */
.page-about__link {
    color: #FFFF00; /* Yellow for links */
    text-decoration: underline;
}

.page-about__link:hover {
    color: #FFD700; /* Slightly darker yellow on hover */
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't push button out */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background-color: #C30808; /* Red for primary action (Register/Login) */
    color: #FFFF00; /* Yellow text for primary button */
    border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
    background-color: transparent;
    color: #017439; /* Primary brand color for secondary button text */
    border: 2px solid #017439;
}

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

.page-about__hero-cta-buttons .page-about__btn-secondary {
    color: #ffffff; /* White text for secondary button in hero (dark background) */
    border-color: #ffffff;
}
.page-about__hero-cta-buttons .page-about__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    margin-top: 30px;
}

/* Hero Section */
.page-about__hero-section {
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    position: relative;
    padding-top: var(--header-offset, 120px);
    background-color: #017439; /* Fallback background color */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.5); /* Darken image for better text readability */
}

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

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

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

/* Cards Grid */
.page-about__cards-grid,
.page-about__feature-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: #ffffff; /* White background for cards */
    color: #333333; /* Dark text for cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-about__feature-card {
    background-color: #ffffff; /* White background for feature cards */
    color: #333333; /* Dark text for feature cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Images within content */
.page-about__image-full {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.page-about__image-center {
    display: block;
    margin: 40px auto;
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Lists */
.page-about__achievements-list,
.page-about__future-plans-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    text-align: left;
}

.page-about__list-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: #333333; /* Dark text for lists on light background */
}

.page-about__section.page-about__future-section .page-about__list-item {
    color: #ffffff; /* Light text for lists on dark background */
}

.page-about__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #017439; /* Primary brand color for bullet points */
    font-weight: bold;
}

/* CTA Section */
.page-about__cta-container {
    background-color: #017439; /* Primary brand color background */
    color: #ffffff;
    padding: 60px 20px;
    border-radius: 10px;
    margin: 60px auto;
    position: relative;
    overflow: hidden;
}

.page-about__cta-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.4); /* Darken image for text readability */
}

.page-about__cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-about__cta-content .page-about__heading {
    color: #ffffff;
    font-size: 2.8em;
}

.page-about__cta-content .page-about__paragraph {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #f8f8f8; /* Light background for FAQ */
    color: #333333;
}

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

.page-about__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* For smooth max-height transition */
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: left;
    color: #333333;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
    padding-top: 0;
}

.page-about__faq-answer .page-about__paragraph {
    margin-bottom: 0;
    color: #333333; /* Dark text for FAQ answers */
}

.page-about__more-faq-cta {
    margin-top: 40px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__heading {
        font-size: 2em;
    }
    .page-about__hero-content {
        padding: 30px;
    }
    .page-about__cta-content .page-about__heading {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__section {
        padding: 40px 15px;
    }
    .page-about__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__heading {
        font-size: 1.8em;
    }
    .page-about__card-title {
        font-size: 1.5em;
    }
    .page-about__cards-grid,
    .page-about__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__card,
    .page-about__feature-card {
        padding: 20px;
    }
    .page-about__image-full,
    .page-about__image-center {
        margin: 30px 0;
        max-width: 100%;
    }
    .page-about__cta-content .page-about__heading {
        font-size: 1.8em;
    }
    .page-about__cta-content .page-about__paragraph {
        font-size: 1em;
    }
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        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;
    }

    /* Mobile image and video responsive adaptation */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__cta-container,
    .page-about__hero-container,
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
        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 */
    }
    /* Ensure hero content padding is adjusted */
    .page-about__hero-content {
        padding: 20px;
    }
}