/* style/about.css */

/* Base styles for the about page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background #FFFFFF */
    background-color: #ffffff; /* Explicitly set to match body */
}

.page-about__section-padding {
    padding: 60px 20px;
}

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

.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #017439; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 40px;
}

.page-about__section-title--light {
    color: #ffffff; /* White text for dark backgrounds */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

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

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

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

.page-about__hero-button {
    display: inline-block;
    background-color: #C30808; /* Register/Login red */
    color: #FFFF00; /* Register/Login font yellow */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.page-about__hero-button:hover {
    background-color: #e00a0a;
    transform: translateY(-2px);
}

/* Story Section */
.page-about__story-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__story-text {
    flex: 1;
}

.page-about__story-text p {
    margin-bottom: 20px;
    font-size: 17px;
    color: #333333;
}

.page-about__story-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-about__story-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-about__feature-icon {
    min-width: 200px;
    min-height: 200px;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px auto;
    object-fit: contain;
    display: block;
}

.page-about__feature-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #017439;
}

.page-about__feature-description {
    font-size: 16px;
    color: #555555;
}

/* Security Section */
.page-about__security-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-about__security-text {
    flex: 1;
}

.page-about__security-text p {
    margin-bottom: 20px;
    font-size: 17px;
    color: #333333;
}

.page-about__security-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-about__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 20px;
}

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

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

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

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

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

.page-about__faq-item-title {
    font-size: 18px;
    font-weight: bold;
    color: #017439; /* Primary color for FAQ questions */
    margin: 0;
}

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

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

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

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 20px;
}

.page-about__faq-answer p {
    margin: 0;
    font-size: 16px;
}

/* CTA Section */
.page-about__cta-section {
    text-align: center;
    padding: 80px 20px;
}

.page-about__cta-content {
    max-width: 800px;
}

.page-about__cta-description {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    margin: 0 10px;
    border: none;
}

.page-about__cta-button--register {
    background-color: #C30808; /* Register red */
    color: #FFFF00; /* Register font yellow */
}

.page-about__cta-button--register:hover {
    background-color: #e00a0a;
    transform: translateY(-2px);
}

.page-about__cta-button--login {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-about__cta-button--login:hover {
    background-color: #005a2e;
    transform: translateY(-2px);
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-about__hero-title {
        font-size: 40px;
    }
    .page-about__hero-description {
        font-size: 18px;
    }
    .page-about__story-grid,
    .page-about__security-content {
        flex-direction: column;
    }
    .page-about__story-image,
    .page-about__security-image {
        margin-top: 30px;
    }
    .page-about__feature-card {
        padding: 25px;
    }
    .page-about__feature-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-about__hero-title {
        font-size: 32px;
    }
    .page-about__hero-description {
        font-size: 16px;
    }
    .page-about__hero-button {
        padding: 12px 25px;
        font-size: 18px;
    }
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-about__section-padding {
        padding: 40px 15px;
    }
    .page-about__feature-icon {
        width: 200px !important;
        height: 200px !important;
        min-width: 200px !important;
        min-height: 200px !important;
        object-fit: contain !important;
    }
    .page-about__feature-card {
        padding: 20px;
    }
    .page-about__faq-question {
        padding: 15px;
    }
    .page-about__faq-item-title {
        font-size: 16px;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }

    /* Images responsiveness */
    .page-about img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-about__story-image,
    .page-about__security-image {
      min-width: 200px !important;
      min-height: 200px !important;
      object-fit: cover !important;
    }

    /* Video responsiveness (if any) */
    .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;
    }
    .page-about__video-section {
      padding-top: var(--header-offset, 120px) !important;
    }
    .page-about__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    /* Buttons responsiveness */
    .page-about__cta-button,
    .page-about__hero-button,
    .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;
      margin: 10px 0 !important; /* Stack buttons vertically */
    }
    .page-about__cta-content {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .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__cta-section {
        padding: 60px 15px;
    }
}

/* Ensure all content area images are not smaller than 200px */
.page-about img {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filter on images */
.page-about img {
    filter: none;
}