/* style/about.css */
.page-about {
    font-family: 'Arial', sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

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

.page-about__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

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

.page-about__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

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

.page-about__hero-section .page-about__container {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #FFFF00; /* Special color for hero title */
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.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: #a00606;
    border-color: #a00606;
}

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

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2e;
    border-color: #005f2e;
}

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

.page-about__btn-tertiary:hover {
    background-color: #017439;
    color: #ffffff;
}

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

.page-about__dark-bg .page-about__section-title {
    color: #ffffff;
}

.page-about__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.page-about__mission-vision,
.page-about__values-section,
.page-about__history-section,
.page-about__services-section,
.page-about__faq-section,
.page-about__contact-cta {
    padding: 80px 0;
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.page-about__text-block {
    text-align: left;
}

.page-about__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #017439;
}

.page-about__text-block p {
    margin-bottom: 15px;
}

.page-about__content-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

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

.page-about__value-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

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

.page-about__value-card p {
    color: #f0f0f0;
}

.page-about__values-image {
    display: block;
    margin: 60px auto 0 auto;
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-about__history-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    padding: 20px 0;
}

.page-about__history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #e0e0e0;
    transform: translateX(-50%);
}

.page-about__timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    border-right: 4px solid #017439;
    padding-right: 60px;
}

.page-about__timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    border-left: 4px solid #017439;
    padding-left: 60px;
}

.page-about__timeline-item::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: #017439;
    border-radius: 50%;
    transform: translateY(-50%);
    border: 3px solid #ffffff;
    z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::after {
    right: -10px;
}

.page-about__timeline-item:nth-child(even)::after {
    left: -10px;
}

.page-about__timeline-year {
    font-size: 1.6em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
}

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

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

.page-about__service-card:hover {
    transform: translateY(-5px);
}

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

.page-about__service-title {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-about__service-title a {
    color: #FFFF00; /* Link color for service titles */
    text-decoration: none;
}

.page-about__service-title a:hover {
    text-decoration: underline;
}

.page-about__service-card p {
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-about__cta-center {
    text-align: center;
    margin-top: 60px;
}

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

.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: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #017439;
    background-color: #eaf7ed;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #333333;
}

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

.page-about__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

.page-about__contact-cta {
    text-align: center;
}

.page-about__contact-cta .page-about__section-title,
.page-about__contact-cta .page-about__section-description {
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }

    .page-about__hero-description {
        font-size: 1.1em;
    }

    .page-about__section-title {
        font-size: 2em;
    }

    .page-about__content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .page-about__btn-tertiary {
        margin-top: 20px;
    }

    .page-about__values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-about__history-timeline::before {
        left: 20px;
        transform: translateX(0);
    }

    .page-about__timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 10px 20px 10px 60px !important;
        border-left: 4px solid #017439 !important;
        border-right: none !important;
        text-align: left !important;
    }

    .page-about__timeline-item::after {
        left: 10px !important;
        right: auto !important;
    }

    .page-about__services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-about__hero-title {
        font-size: 2em;
    }

    .page-about__hero-description {
        font-size: 1em;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-tertiary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-about__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-about__mission-vision,
    .page-about__values-section,
    .page-about__history-section,
    .page-about__services-section,
    .page-about__faq-section,
    .page-about__contact-cta {
        padding: 50px 0;
    }

    .page-about__text-block .page-about__sub-title {
        font-size: 1.5em;
    }

    .page-about__values-grid {
        grid-template-columns: 1fr;
    }

    .page-about__values-image {
        max-width: 90%;
    }

    .page-about__services-grid {
        grid-template-columns: 1fr;
    }

    .page-about__service-image {
        height: 180px;
    }

    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

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

    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper,
    .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;
        overflow: hidden !important;
    }
    .page-about__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-about__cta-buttons > a {
        flex: 1 1 100%; /* Make buttons full width */
    }
}