/* style/about.css */

/* General 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: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__section-title.page-about__light-text {
    color: #017439; /* Brand color for titles on light backgrounds */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
    background-color: #017439; /* Brand color as hero background */
}

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: none; /* No filter to change image color */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: #ffffff;
    padding: 20px;
}

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

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-about__hero-cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Intro Section */
.page-about__intro-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff; /* Light text */
}

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

.page-about__intro-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-about__intro-image-wrapper {
    text-align: center;
}

.page-about__intro-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    filter: none; /* No filter to change image color */
    min-width: 200px;
    min-height: 200px;
}

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light background */
    color: #333333; /* Dark text */
}

.page-about__why-choose-section .page-about__section-title {
    color: #017439; /* Brand color for titles on light background */
}

.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

.page-about__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* No filter to change image color */
    min-width: 200px;
    min-height: 200px;
}

.page-about__feature-card p {
    font-size: 1em;
    color: #555555;
}

/* Commitments Section */
.page-about__commitments-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color background */
    color: #ffffff; /* Light text */
}

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

.page-about__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__commitment-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.page-about__item-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__commitment-item p {
    font-size: 1em;
    margin-bottom: 20px;
}

/* Achievements Section */
.page-about__achievements-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light background */
    color: #333333; /* Dark text */
}

.page-about__achievements-section .page-about__section-title {
    color: #017439;
}

.page-about__achievements-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-about__achievements-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555555;
}

/* Career Section */
.page-about__career-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff; /* Light text */
}

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

.page-about__career-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-about__career-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

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

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light background */
    color: #333333; /* Dark text */
}

.page-about__faq-section .page-about__section-title {
    color: #017439;
}

.page-about__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-about__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    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 questions */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #e6f7ed; /* Lighter brand color hover */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(0deg); /* No rotation for minus sign */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    font-size: 1em;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Important for JS functionality */
    padding: 20px;
    padding-top: 0;
}

.page-about__faq-answer p {
    margin-bottom: 15px;
}

.page-about__faq-answer .page-about__btn-primary {
    margin-top: 10px;
    display: inline-block;
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color background */
    color: #ffffff; /* Light text */
    text-align: center;
}

.page-about__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #ffffff;
}

.page-about__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.5;
}

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

/* Button Styles */
.page-about__btn-primary {
    background-color: #C30808; /* Custom Register/Login color */
    color: #FFFF00; /* Custom Register/Login font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-about__btn-primary:hover {
    background-color: #a30606; /* Darker red on hover */
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand color for text */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border: 2px solid #017439;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__intro-grid {
        grid-template-columns: 1fr;
    }
    .page-about__intro-image-wrapper {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-about__intro-section,
    .page-about__why-choose-section,
    .page-about__commitments-section,
    .page-about__achievements-section,
    .page-about__career-section,
    .page-about__faq-section,
    .page-about__cta-section {
        padding: 50px 0;
    }

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

    .page-about__features-grid,
    .page-about__commitment-grid {
        grid-template-columns: 1fr;
    }

    .page-about__card-image {
        height: 180px;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__hero-cta-button {
        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;
    }

    /* All images must be responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers with images/content */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-content,
    .page-about__intro-grid,
    .page-about__features-grid,
    .page-about__commitment-grid,
    .page-about__achievements-content,
    .page-about__career-content,
    .page-about__career-buttons,
    .page-about__faq-list,
    .page-about__faq-item,
    .page-about__cta-content,
    .page-about__cta-buttons {
        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 */
    }

    /* Specific padding for sections to avoid double padding if container also has it */
    .page-about__intro-section > .page-about__container,
    .page-about__why-choose-section > .page-about__container,
    .page-about__commitments-section > .page-about__container,
    .page-about__achievements-section > .page-about__container,
    .page-about__career-section > .page-about__container,
    .page-about__faq-section > .page-about__container,
    .page-about__cta-section > .page-about__container {
        padding-left: 0;
        padding-right: 0;
    }

    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px;
        padding-top: 0;
    }
}

/* Ensure no image filters are used */
.page-about img {
    filter: none !important;
}

/* Content area image CSS size lower bound (min 200px) */
.page-about img:not(.page-about__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure contrast for text on various backgrounds */
.page-about__dark-section {
  color: #ffffff; /* Light text on dark background */
}

.page-about__light-bg {
  color: #333333; /* Dark text on light background */
}

/* Ensure button text contrast */
.page-about__btn-primary {
  color: #FFFF00; /* Yellow text on red button */
}

.page-about__btn-secondary {
  color: #017439; /* Brand green text on white button */
}