/* style/about.css */

/* Base Styles for About Page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.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: 50px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-about__subtitle {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 20px;
}

.page-about__paragraph {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    min-height: 600px;
    overflow: hidden;
    text-align: center;
}

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

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

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

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    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, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.page-about__btn-register {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

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

.page-about__btn-login {
    background-color: transparent;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-about__btn-login:hover {
    background-color: #C30808;
    color: #ffffff;
}

.page-about__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Vision & Mission Section */
.page-about__vision-mission {
    padding: 80px 0;
    color: #333333;
    background-color: #ffffff;
}

.page-about__vision-mission .page-about__section-title {
    color: #333333;
}

.page-about__vision-mission .page-about__section-title::after {
    background-color: #017439;
}

.page-about__vision-mission .page-about__subtitle {
    color: #017439;
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Why Choose Section */
.page-about__why-choose {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}

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

.page-about__why-choose .page-about__section-title::after {
    background-color: #017439;
}

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

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

.page-about__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-about__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-about__card-description {
    font-size: 1em;
    opacity: 0.8;
}

/* Values Section */
.page-about__values {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-about__values .page-about__section-title {
    color: #333333;
}

.page-about__values .page-about__section-title::after {
    background-color: #017439;
}

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

.page-about__value-item {
    background-color: #f8f8f8;
    border-left: 5px solid #017439;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__value-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-about__value-description {
    font-size: 1em;
    color: #555555;
}

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

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

.page-about__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

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

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

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

.page-about__faq-title {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
}

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

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

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

/* 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__subtitle {
        font-size: 1.5em;
    }
}

@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.2em;
    }

    .page-about__hero-description {
        font-size: 1em;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        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__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-about__content-grid {
        grid-template-columns: 1fr;
    }

    .page-about__why-choose, .page-about__values, .page-about__vision-mission, .page-about__cta-bottom, .page-about__faq-section {
        padding: 40px 0;
    }

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

    .page-about__subtitle {
        font-size: 1.3em;
    }

    .page-about__feature-card,
    .page-about__value-item {
        padding: 20px;
    }

    .page-about__feature-image {
        height: 200px;
    }

    .page-about__card-title {
        font-size: 1.3em;
    }

    .page-about__cta-title {
        font-size: 2em;
    }

    .page-about__cta-description {
        font-size: 1em;
    }

    .page-about__faq-question {
        padding: 15px 20px;
    }

    .page-about__faq-title {
        font-size: 1.1em;
    }

    .page-about__faq-answer {
        padding: 15px 20px;
    }
    
    /* Mobile image and video responsiveness */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__vision-mission,
    .page-about__why-choose,
    .page-about__values,
    .page-about__cta-bottom,
    .page-about__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-about video,
    .page-about__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .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: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__cta-title {
        font-size: 1.6em;
    }
}