/* style/about.css */

/* Base styles for the About Us page content */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f8f8; /* A very light grey for subtle contrast with white sections */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

/* General section styling */
.page-about__section {
    padding: 60px 0;
    text-align: center;
}

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

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

.page-about__dark-bg {
    background-color: var(--secondary-color); /* #000080 */
    color: #ffffff;
}

.page-about__heading {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--secondary-color); /* Dark blue heading for light backgrounds */
}

.page-about__heading--white {
    color: #ffffff;
}

.page-about__sub-heading {
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Text content area */
.page-about__content-area {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
}

.page-about__content-area p {
    margin-bottom: 1em;
}

.page-about__content-area--white {
    color: #ffffff;
}

.page-about__content-area--white .page-about__sub-heading {
    color: var(--primary-color); /* Gold sub-headings on dark background */
}

/* Call to action button */
.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 30px;
    cursor: pointer;
}

.page-about__btn-primary {
    background-color: var(--primary-color); /* #FFD700 */
    color: #ffffff;
    border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
    background-color: #e0b800; /* Slightly darker gold */
    border-color: #e0b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--primary-color); /* #FFD700 */
    border: 2px solid var(--primary-color);
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px 60px 20px; /* Adjust padding as header offset is on .page-about */
    background-color: var(--secondary-color); /* Dark blue background for hero */
}

.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%;
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px; /* Rounded corners for the image */
    overflow: hidden; /* Ensures image corners are rounded */
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px; /* Apply to img directly for consistency */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay for text on dark hero background */
    padding: 30px;
    border-radius: 8px;
    color: #ffffff; /* White text for dark overlay */
}

.page-about__main-title {
    font-size: 42px;
    color: var(--primary-color); /* Gold title on dark background */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__description {
    font-size: 19px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0; /* Light grey text for better readability */
}

/* Mission and Vision Section */
.page-about__mission-vision .page-about__content-wrapper {
    display: flex;
    gap: 40px;
    justify-content: center;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

.page-about__mission-vision .page-about__text-block {
    flex: 1;
}

/* Core Values Section */
.page-about__core-values {
    background-color: var(--secondary-color); /* Dark blue background */
}

.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-about__value-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card on dark background */
    padding: 30px; 
    border-radius: 10px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__value-item img {
    width: 200px; /* Adjusted to meet minimum size requirement */
    height: 200px; /* Adjusted to meet minimum size requirement */
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 50%; /* Make icons round */
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background for the icon */
    padding: 10px;
}

.page-about__value-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color); /* Gold title for value items */
}

.page-about__value-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #f0f0f0;
}

/* History Section */
.page-about__history .page-about__image-full-width {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin-top: 40px;
    border-radius: 8px;
    object-fit: cover;
}

/* Security Commitment Section */
.page-about__security-commitment .page-about__security-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__security-commitment .page-about__security-list li {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly lighter background for list items */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 17px;
    color: #ffffff;
    display: flex;
    align-items: flex-start;
}

.page-about__security-commitment .page-about__security-list li strong {
    color: var(--primary-color); /* Gold for strong text */
    margin-right: 10px;
    flex-shrink: 0;
}

/* User Experience Section */
.page-about__user-experience .page-about__experience-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__user-experience .page-about__experience-features li {
    background-color: #f0f0f0; /* Light grey background for list items */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 17px;
    color: #333333;
    display: flex;
    align-items: flex-start;
}

.page-about__user-experience .page-about__experience-features li strong {
    color: var(--secondary-color); /* Dark blue for strong text */
    margin-right: 10px;
    flex-shrink: 0;
}

.page-about__user-experience .page-about__image-full-width {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin-top: 40px;
    border-radius: 8px;
    object-fit: cover;
}

/* Team Intro Section */
.page-about__team-intro .page-about__image-full-width {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin-top: 40px;
    border-radius: 8px;
    object-fit: cover;
}

/* Social Responsibility Section */
.page-about__social-responsibility .page-about__responsibility-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__social-responsibility .page-about__responsibility-list li {
    background-color: #f0f0f0;
    padding: 12px 18px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 16px;
    color: #333333;
    display: flex;
    align-items: flex-start;
}

.page-about__social-responsibility .page-about__responsibility-list li strong {
    color: var(--secondary-color);
    margin-right: 8px;
    flex-shrink: 0;
}

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

.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    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: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    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: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--secondary-color); /* FAQ question color */
}

.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color); /* Gold toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: var(--secondary-color); /* Dark blue when active */
    transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

.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 15px;
    opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 5px 5px;
}

.page-about__faq-answer p {
    color: #555555;
    font-size: 16px;
    margin-bottom: 1em;
}

.page-about__faq-button {
    margin-top: 15px;
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 5px;
}

/* Contact CTA Section */
.page-about__contact-cta {
    background-color: var(--primary-color); /* Gold background */
    color: #ffffff;
    padding: 80px 0;
}

.page-about__contact-cta .page-about__heading {
    color: #ffffff;
}

.page-about__contact-cta .page-about__content-area {
    color: #f0f0f0;
    font-size: 18px;
    margin-bottom: 30px;
}

.page-about__text-center {
    text-align: center;
}

/* Image styling for content area to meet minimum size */
.page-about img:not(.page-about__value-item img) { /* Exclude smaller value icons */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 38px;
    }

    .page-about__heading {
        font-size: 32px;
    }

    .page-about__description {
        font-size: 18px;
    }

    .page-about__mission-vision .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

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

    .page-about__container {
        padding: 0 15px;
    }

    .page-about__hero-section {
        padding-bottom: 40px;
    }

    .page-about__hero-content {
        padding: 20px;
    }

    .page-about__main-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .page-about__description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-about__heading {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-about__sub-heading {
        font-size: 20px;
    }

    .page-about__content-area {
        font-size: 16px;
    }

    .page-about__cta-button,
    .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__values-grid {
        grid-template-columns: 1fr;
    }

    .page-about__value-item {
        padding: 25px;
    }

    .page-about__value-item img {
         /* Adjust for mobile if needed, but still >= 200px if not icon */
        
    }

    .page-about__security-commitment .page-about__security-list li,
    .page-about__user-experience .page-about__experience-features li,
    .page-about__social-responsibility .page-about__responsibility-list li {
        font-size: 15px;
        padding: 12px 15px;
    }

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

    .page-about__faq-question h3 {
        font-size: 15px;
        width: calc(100% - 40px);
    }

    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

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

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

    /* Ensure all images are responsive and don't overflow */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-container,
    .page-about__hero-image,
    .page-about__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Specific override for hero section padding-left/right if needed */
    .page-about__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
}