/* style/about.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #E3B505;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
}

.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: #ffffff; /* Default light background */
}

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

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

.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-about__section-title--gold {
    color: var(--text-color-dark);
}

.page-about__paragraph {
    font-size: 17px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-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: var(--header-offset, 120px); /* Ensure space for fixed header */
    overflow: hidden;
}

.page-about__dark-section {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-about__dark-section .page-about__section-title {
    color: var(--text-color-light);
}

.page-about__dark-section .page-about__paragraph {
    color: var(--text-color-light);
}

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

.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;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-about__main-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-color-light);
    line-height: 1.2;
}

.page-about__intro-text {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-color-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page-about__cta-button:hover {
    background: var(--text-color-light);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.page-about__cta-button--dark {
    background: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--secondary-color);
}

.page-about__cta-button--dark:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding-bottom: 80px;
}

.page-about__why-choose-us .page-about__section-title {
    color: var(--text-color-light);
}

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

.page-about__card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark);
    border: 1px solid var(--border-color);
}

.page-about__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.page-about__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

.page-about__button-group {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

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

.page-about__btn-secondary {
    background: transparent;
    color: var(--text-color-light);
    border-color: var(--text-color-light);
}

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

.page-about__btn-secondary--white {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--text-color-light);
}

.page-about__btn-secondary--white:hover {
    background: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--text-color-light);
}

/* Commitment Section */
.page-about__commitment-section {
    background-color: var(--bg-light);
    padding-bottom: 80px;
}

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

.page-about__commitment-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    border: 1px solid var(--border-color);
}

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

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

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

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

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

.page-about__faq-question:hover {
    background: #f0f0f0;
}

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

.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.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 25px;
    opacity: 0;
    background: #f9f9f9;
    color: var(--text-color-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid var(--border-color);
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Rotate for 'x' or '-' appearance */
}

/* Contact CTA Section */
.page-about__contact-cta {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
    padding: 80px 0;
}

.page-about__contact-cta .page-about__section-title {
    color: var(--text-color-dark);
}

.page-about__contact-cta .page-about__section-title::after {
    background-color: var(--primary-color);
}

.page-about__contact-cta .page-about__paragraph {
    color: var(--text-color-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 40px;
    }
    .page-about__intro-text {
        font-size: 18px;
    }
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__card-title {
        font-size: 22px;
    }
    .page-about__paragraph {
        font-size: 16px;
    }
    .page-about__faq-question h3 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-image img {
        border-radius: 4px;
    }
    .page-about__hero-content {
        padding: 0 15px;
    }
    .page-about__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-about__intro-text {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-about__cta-button {
        padding: 14px 30px;
        font-size: 17px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-about__grid-3-cols {
        grid-template-columns: 1fr;
    }
    .page-about__card {
        padding: 20px;
    }
    .page-about__card-image {
        height: 180px;
    }
    .page-about__card-title {
        font-size: 20px;
    }
    .page-about__paragraph {
        font-size: 15px;
    }
    .page-about__button-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__commitment-grid {
        grid-template-columns: 1fr;
    }
    .page-about__commitment-item {
        padding: 20px;
    }
    .page-about__commitment-title {
        font-size: 20px;
    }
    .page-about__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
    }
    .page-about__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 22px;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px !important;
    }
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__contact-cta .page-about__cta-button,
    .page-about__contact-cta .page-about__btn-secondary {
        margin-left: auto;
        margin-right: auto;
    }
}