/* style/about.css */

/* Base styles for the About page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default background for the main content area */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 100px 20px 60px; /* Adjust padding-top for header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    background-color: var(--primary-color, #26A9E0); /* Use brand color for hero background */
    color: #ffffff; /* White text for dark background */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2; /* Subtle background image */
}

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

.page-about__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

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

.page-about__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* General Section Styles */
.page-about__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-about__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
    color: #26A9E0; /* Brand color for titles */
}

.page-about__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555555;
    text-align: left; /* Align text for better readability */
}

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

/* Color Schemes for Sections */
.page-about__dark-bg {
    background-color: var(--primary-color, #26A9E0);
    color: #ffffff;
}

.page-about__dark-bg .page-about__section-title {
    color: #ffffff;
}

.page-about__dark-bg .page-about__section-text {
    color: #f0f0f0;
}

.page-about__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-about__light-bg .page-about__section-title {
    color: #26A9E0;
}

.page-about__light-bg .page-about__section-text {
    color: #555555;
}

/* Core Values Section */
.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__value-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-about__value-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Why Choose Us Section */
.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: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-about__feature-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-about__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-about__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

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

.page-about__btn-link {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-about__feature-card .page-about__btn-link {
    border-color: #ffffff;
    color: #ffffff;
}

.page-about__feature-card .page-about__btn-link:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 20px;
    text-align: left; /* Align FAQ content to left */
}

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

.page-about__faq-item {
    background-color: #f9f9f9;
    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: 18px 25px;
    cursor: pointer;
    background-color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
    color: #26A9E0;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #f0f8ff; /* Light hover effect */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
    color: #555555;
    font-size: 1em;
}

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

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

.page-about__faq-answer .page-about__btn-link {
    display: inline-block;
    margin-top: 10px;
    background-color: #26A9E0;
    color: #ffffff;
    border: 1px solid #26A9E0;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
}

.page-about__faq-answer .page-about__btn-link:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

/* Bottom CTA Section */
.page-about__cta-bottom {
    padding: 80px 20px;
}

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

.page-about__cta-content .page-about__section-title {
    font-size: 2.8em;
    margin-bottom: 25px;
}

.page-about__cta-content .page-about__section-text {
    font-size: 1.15em;
    margin-bottom: 40px;
}

.page-about__btn-large {
    padding: 15px 35px;
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* Mobile-specific adjustments */
    .page-about__hero-section {
        padding: 80px 15px 40px;
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    }

    .page-about__hero-title {
        font-size: 2.2em;
    }

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

    .page-about__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .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__hero-cta-buttons .page-about__btn-primary,
    .page-about__hero-cta-buttons .page-about__btn-secondary {
        width: calc(100% - 30px); /* Account for container padding */
        margin: 0 auto;
    }

    .page-about__section {
        padding: 40px 15px;
    }

    .page-about__container {
        padding: 0; /* Remove horizontal padding here, handled by section */
    }

    .page-about__section-title {
        font-size: 1.8em;
    }

    .page-about__section-text {
        font-size: 0.95em;
    }

    .page-about__values-grid,
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    /* Images responsive requirements */
    .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__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ specific adjustments for mobile */
    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-about__faq-answer {
        padding: 0 20px;
    }

    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px;
    }
}

/* Ensure no filter on images */
.page-about img {
    filter: none !important;
}

/* Contrast Fixes - if needed, but primary design should aim for contrast */
.page-about__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-about__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}