/* style/about.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --background-color: #FFFFFF; /* Assuming body background is white from shared.css */
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
}

/* Base styles for the page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--background-color); /* Ensure consistency */
}

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

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

.page-about__section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__text-block {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: var(--text-dark);
}

/* 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: 10px; /* Small top padding, body handles header offset */
    background-color: #f0f8ff; /* Light background for hero section */
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width within max-width */
}

.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: 8px;
    object-fit: cover;
}

.page-about__hero-title {
    font-size: clamp(28px, 4vw, 48px); /* Use clamp for H1 */
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-dark);
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--login-color); /* Using login color for CTA */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__cta-button:hover {
    background: #D46F06; /* Darkened version of login color */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Values Section */
.page-about__values-section {
    background-color: var(--primary-color); /* Dark background for this section */
    color: var(--text-light);
}

.page-about__values-section .page-about__section-title,
.page-about__values-section .page-about__text-block {
    color: var(--text-light);
}

.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: rgba(255, 255, 255, 0.15); /* Semi-transparent white card */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Ensure equal height */
}

.page-about__value-card img {
    width: 100%;
    max-width: 250px; /* Constrain image width within card */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-about__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-about__value-card p {
    font-size: 16px;
    color: var(--text-light);
    flex-grow: 1; /* Allow paragraph to grow */
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    background-color: var(--background-color);
}

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

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

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

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

.page-about__feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-about__feature-list li {
    font-size: 17px;
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    color: var(--text-dark);
}

.page-about__feature-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 20px;
    line-height: 1;
}

.page-about__btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary:hover {
    background: #208BBF; /* Darkened version of primary color */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Commitment Section */
.page-about__commitment-section {
    background-color: #f9f9f9; /* Light background */
    padding-bottom: 80px;
}

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

.page-about__commitment-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.page-about__commitment-heading {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__commitment-item p {
    font-size: 16px;
    color: var(--text-dark);
}

.page-about__call-to-action-text {
    font-size: 20px;
    font-weight: bold;
    margin-top: 50px;
    color: var(--primary-color);
}

.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* FAQ Section */
details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    text-align: left; /* Align FAQ text left */
}
details.page-about__faq-item summary.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
    display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
    background: #f5f5f5;
}
.page-about__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    text-align: left;
}
.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-dark);
}
.page-about__faq-answer p {
    margin: 0;
    font-size: 16px;
    color: var(--text-dark);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__text-block {
        font-size: 17px;
    }
    .page-about__content-grid {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__content-image {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__hero-section {
        padding-top: 10px !important; /* Keep small top padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-title {
        font-size: clamp(24px, 6vw, 36px);
    }
    .page-about__hero-description {
        font-size: 17px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important;
    }
    .page-about__values-grid {
        grid-template-columns: 1fr;
    }
    .page-about__value-card img {
        max-width: 200px;
    }
    .page-about__content-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__feature-list li {
        font-size: 16px;
        padding-left: 25px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-about__commitment-list {
        grid-template-columns: 1fr;
    }
    details.page-about__faq-item summary.page-about__faq-question { padding: 15px; }
    .page-about__faq-qtext { font-size: 15px; }

    /* Ensure all images and containers are responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .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;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}