/* 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 */
    background-color: #ffffff; /* Explicitly set for clarity, though shared.css might handle body */
}

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

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

.page-about__section-title {
    font-size: 36px;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-about__intro-text {
    font-size: 18px;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-about__intro-text--white {
    color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient background */
    overflow: hidden; /* Prevent content overflow */
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: 52px;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.page-about__description {
    font-size: 20px;
    color: #555555;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__btn-primary {
    background: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
    background: #1e87c2;
    border-color: #1e87c2;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-about__btn-secondary:hover {
    background: #f0f8ff;
    color: #1e87c2;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Mission and Vision Section */
.page-about__mission-vision {
    background-color: #f8f8f8;
}

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

.page-about__card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0; /* Added for contrast */
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

/* History Section */
.page-about__history {
    background-color: #ffffff;
}

.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-about__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-about__image-left,
.page-about__image-right {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    width: 100%; /* Ensure image fills its flex container */
    height: auto;
}

.page-about__image-left img,
.page-about__image-right img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.page-about__text-block {
    flex: 1;
    font-size: 17px;
    line-height: 1.8;
    color: #444444;
}

.page-about__text-block p {
    margin-bottom: 15px;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    background: #26A9E0; /* Brand primary color background */
    color: #ffffff;
}

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

.page-about__why-choose-us .page-about__intro-text {
    color: #f0f0f0;
}

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

.page-about__feature-item {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for contrast */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.page-about__feature-item img {
    
    
    margin-bottom: 20px;
    object-fit: contain;
    /* No filter allowed */
}

.page-about__feature-title {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__feature-item p {
    font-size: 16px;
    color: #f0f0f0;
}

/* Team Section */
.page-about__team {
    background-color: #f8f8f8;
}

/* Commitment Section */
.page-about__commitment {
    background-color: #ffffff;
}

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

.page-about__card--commitment {
    background: #ffffff;
    border-left: 5px solid #26A9E0; /* Highlight with brand color */
    text-align: left;
    padding-left: 35px;
}

/* Download CTA Section */
.page-about__download-cta {
    background: #26A9E0;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0; /* To prevent extra space before footer */
}

.page-about__download-cta .page-about__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent; /* Container itself doesn't need background */
}

.page-about__btn-download {
    background: #EA7C07; /* Login color for download button */
    color: #ffffff;
    border: 2px solid #EA7C07;
    margin-top: 30px;
    padding: 18px 50px;
    font-size: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-about__btn-download:hover {
    background: #d66f07;
    border-color: #d66f07;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__download-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #f8f8f8;
    padding-bottom: 80px;
}

.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 40px;
}

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px !important;
    opacity: 1;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-about__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-about__faq-question:active {
    background: #eeeeee;
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #26A9E0; /* Brand color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: #EA7C07; /* Change color when active */
    transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 44px;
    }
    .page-about__description {
        font-size: 18px;
    }
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__content-wrapper--reverse {
        flex-direction: column; /* Keep column for reverse on tablet */
    }
    .page-about__image-left,
    .page-about__image-right {
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific offset */
        padding-bottom: 40px;
    }
    .page-about__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-about__description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Limit button width for better stacking */
        margin: 0 auto;
    }
    .page-about__cta-button {
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-about__intro-text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-about__content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__card {
        padding: 25px;
    }
    .page-about__card-title {
        font-size: 20px;
    }

    .page-about__content-wrapper {
        gap: 20px;
    }
    .page-about__image-left,
    .page-about__image-right {
        max-width: 100%;
        width: 100% !important; /* Ensure images adapt to mobile width */
        height: auto !important;
        box-sizing: border-box !important;
        padding: 0; /* Remove any padding that might push it out */
    }
    .page-about__image-left img,
    .page-about__image-right img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__feature-item {
        padding: 25px;
    }
    .page-about__feature-title {
        font-size: 20px;
    }
    .page-about__feature-item img {
        
        
    }

    .page-about__commitment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__card--commitment {
        padding-left: 25px;
    }

    .page-about__download-cta {
        padding: 60px 15px;
    }
    .page-about__btn-download {
        padding: 15px 35px;
        font-size: 18px;
        width: 100% !important;
        max-width: 300px !important;
        box-sizing: border-box !important;
    }
    .page-about__download-image {
        max-width: 100%;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-about__faq-list {
        margin-top: 30px;
    }
    .page-about__faq-question {
        padding: 15px 18px;
    }
    .page-about__faq-question h3 {
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure all images and containers are responsive and don't overflow */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-about__section,
.page-about__card,
.page-about__container,
.page-about__hero-container,
.page-about__content-wrapper,
.page-about__features-grid,
.page-about__commitment-grid,
.page-about__faq-list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scroll for these containers */
}

@media (max-width: 768px) {
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-container,
    .page-about__content-wrapper,
    .page-about__features-grid,
    .page-about__commitment-grid,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px;
    }
    .page-about__hero-section {
        padding-left: 0 !important; /* Hero section padding handled by its own rules */
        padding-right: 0 !important;
    }
    .page-about__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}