/* style/about.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --background-color: #FFFFFF;
    --register-login-font-color: #FFFF00;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --border-color: #e0e0e0;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-light-bg); /* Default text color for light body background */
    background-color: var(--background-color); /* Matches the provided body background #FFFFFF */
}

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

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

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

.page-about__sub-title {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-about__paragraph {
    font-size: 17px;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__paragraph a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-about__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__sub-title {
    color: var(--secondary-color);
}

.page-about__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--register-button-color); /* Use register color for primary CTA */
    color: var(--register-login-font-color); /* Use register/login font color */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin: 20px 10px 0;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button--register {
    background-color: var(--register-button-color);
    color: var(--register-login-font-color);
}

/* 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 content is below fixed header */
    overflow: hidden;
}

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

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

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

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

/* Grid Layout for sections */
.page-about__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
    max-width: 1000px;
    margin: 40px auto;
}

.page-about__grid-layout--reverse {
    grid-template-columns: 1fr 1fr;
}

.page-about__grid-layout--reverse .page-about__image-container {
    order: 2;
}

.page-about__grid-layout--reverse .page-about__text-content {
    order: 1;
}

.page-about__image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

.page-about__text-content {
    padding: 20px 0;
}

.page-about__text-content .page-about__paragraph {
    max-width: none;
}

/* FAQ Section */
.page-about__faq-section {
    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.1);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    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: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none;
}

.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    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(--primary-color);
    transform: rotate(180deg);
}

.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;
    background: #f9f9f9;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Ensure it expands sufficiently */
    padding: 20px 15px !important;
    opacity: 1;
    border: 1px solid var(--border-color);
    border-top: none;
}

.page-about__faq-item.active .page-about__faq-question {
    border-radius: 5px 5px 0 0;
    border-bottom: none;
}

.page-about__contact-cta-section {
    padding: 80px 0;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__main-title {
        font-size: 38px;
    }
    .page-about__intro-text {
        font-size: 18px;
    }
    .page-about__grid-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .page-about__grid-layout--reverse .page-about__image-container {
        order: initial; /* Reset order for smaller screens */
    }
    .page-about__grid-layout--reverse .page-about__text-content {
        order: initial; /* Reset order for smaller screens */
    }
}

@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__main-title {
        font-size: 32px;
    }
    .page-about__intro-text {
        font-size: 16px;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 26px;
    }
    .page-about__sub-title {
        font-size: 20px;
    }
    .page-about__paragraph {
        font-size: 15px;
    }
    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        margin: 10px 5px 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__hero-image img,
    .page-about__image-container img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-about__section,
    .page-about__container,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-about__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        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;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 28px;
    }
    .page-about__section-title {
        font-size: 24px;
    }
    .page-about__cta-button {
        font-size: 15px;
        padding: 10px 20px;
    }
}