/* style/about.css */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg); /* Inherit from shared.css */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background-color: #0A2463; /* Fallback */
}

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #E5A823;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-about__hero-cta-button {
    display: inline-block;
    background-color: #E5A823;
    color: #0A2463;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

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

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

.page-about__dark-section {
    background-color: #0A2463;
    color: #ffffff;
}

.page-about__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #E5A823;
}

.page-about__dark-section .page-about__section-title {
    color: #E5A823;
}

.page-about__section-paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-about__dark-section .page-about__section-paragraph {
    color: #f0f0f0;
}

.page-about__image-content {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

.page-about__inline-link {
    color: #E5A823;
    text-decoration: none;
    font-weight: bold;
}

.page-about__inline-link:hover {
    text-decoration: underline;
}

/* Vision & Mission Grid */
.page-about__grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-about__grid-title {
    font-size: 1.8em;
    color: #E5A823;
    margin-bottom: 15px;
}

.page-about__grid-paragraph {
    font-size: 1.1em;
    color: #f0f0f0;
}

/* Core Values */
.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: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, background-color 0.3s ease;
    min-height: 250px; /* Ensure cards have consistent height */
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__value-title {
    font-size: 1.6em;
    color: #E5A823;
    margin-bottom: 15px;
}

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

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-about__feature-title {
    font-size: 1.5em;
    color: #E5A823;
    margin-bottom: 10px;
}

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

/* Responsibility Section */
.page-about__responsibility-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-about__responsibility-item {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
    border-left: 4px solid #E5A823;
}

.page-about__responsibility-item strong {
    color: #E5A823;
}

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

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    transition: background-color 0.3s ease;
}

.page-about__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-about__faq-heading {
    font-size: 1.3em;
    color: #E5A823;
    margin: 0;
}

.page-about__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #E5A823;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-about__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
}

/* Contact CTA Section */
.page-about__contact-cta-section {
    background-color: #0A2463;
    color: #ffffff;
    padding: 80px 0;
}

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

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: #E5A823;
    color: #0A2463;
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    background-color: #f7b74f;
    transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
    background-color: #E5A823;
    color: #0A2463;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__grid-two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-about__hero-title {
        font-size: 2.5em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__section-paragraph {
        font-size: 1em;
    }
    .page-about__grid-two-columns,
    .page-about__values-grid,
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__value-card, .page-about__feature-card {
        padding: 20px;
    }
    .page-about__feature-image {
        height: auto;
        max-height: 200px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px;
        min-height: 200px;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-image-wrapper,
    .page-about__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__hero-cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-heading {
        font-size: 1.1em;
    }
}