/* style/about.css */
.page-about {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default dark text color for light body background */
    line-height: 1.6;
    background-color: #FFFFFF;
}

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

.page-about__section-title {
    font-size: 36px;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-about__subsection-title {
    font-size: 24px;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333333;
}

.page-about__list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-about__list-item {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333333;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

.page-about__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-about__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
}

.page-about__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.page-about__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
}

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

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

.page-about__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
}

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

.page-about__dark-bg .page-about__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
}

.page-about__light-bg .page-about__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-about__light-bg .page-about__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
}

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

.page-about__light-bg .page-about__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

.page-about__btn-large {
    padding: 18px 40px;
    font-size: 20px;
}

/* Background colors for sections */
.page-about__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__subsection-title {
    color: #FFFFFF;
}

.page-about__dark-bg .page-about__text-block,
.page-about__dark-bg .page-about__list-item {
    color: #f0f0f0;
}

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

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__subsection-title {
    color: #017439;
}

/* Flexbox for sections with image and text */
.page-about__flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-about__content-column,
.page-about__image-column {
    flex: 1;
    min-width: 300px;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-about__center-content {
    text-align: center;
    margin-top: 40px;
}

/* CTA Bottom Section */
.page-about__cta-bottom {
    padding: 80px 20px;
    text-align: center;
}

.page-about__cta-bottom .page-about__btn-primary,
.page-about__cta-bottom .page-about__btn-secondary {
    margin: 10px;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 20px;
}

.page-about__faq-list {
    margin-top: 30px;
}

.page-about__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: #f0f0f0;
    font-weight: bold;
    font-size: 18px;
    color: #017439;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-question h3 {
    margin: 0;
    font-size: 18px;
    color: #017439;
}

.page-about__faq-toggle {
    font-size: 24px;
    line-height: 1;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #017439;
}

.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: #333333;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px;
}

.page-about__faq-answer p {
    margin-bottom: 10px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 40px;
    }
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__subsection-title {
        font-size: 22px;
    }
    .page-about__flex-container {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__image-column, .page-about__content-column {
        min-width: unset;
        width: 100%;
    }
    .page-about__reverse-mobile {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        min-height: 400px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-about__hero-title {
        font-size: 32px;
    }
    .page-about__hero-description {
        font-size: 16px;
    }
    .page-about__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary, .page-about__btn-secondary, .page-about__btn-large {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    .page-about__subsection-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-about__text-block, .page-about__list-item, .page-about__faq-answer p {
        font-size: 15px;
    }
}