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

.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    background-color: #017439;
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
    position: relative;
}

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

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

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-about__main-heading {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-about__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #FFFFFF;
}

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

.page-about__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.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; /* Brand primary color */
    border: 2px solid #017439;
}

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

.page-about__section {
    padding: 80px 20px;
}

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

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

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

.page-about__heading {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    font-weight: bold;
}

.page-about__dark-bg .page-about__heading {
    color: #FFFFFF;
}

.page-about__light-bg .page-about__heading {
    color: #017439;
}

.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-about__text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.page-about__image-content {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-about__feature-card {
    background-color: #FFFFFF;
    color: #333333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-about__dark-bg .page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333333;
}

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

.page-about__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-description {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: justify;
    flex-grow: 1;
}

.page-about__feature-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
    border-radius: 8px;
    margin-top: 20px;
}

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000000;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer;
}

.page-about__video-description {
    font-size: 1.1em;
    text-align: center;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__content-text-block {
    max-width: 900px;
    margin: 0 auto;
}

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

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

.page-about__dark-bg .page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.95);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-about__dark-bg .page-about__faq-question {
    background-color: rgba(255, 255, 255, 0.9);
}

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

.page-about__faq-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    margin: 0;
}

.page-about__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-about__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #f5f5f5;
}

.page-about__cta-section .page-about__heading {
    color: #017439;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-about__main-heading {
        font-size: 2.8em;
    }
    .page-about__heading {
        font-size: 2em;
    }
    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__image-block {
        order: -1; /* Image first on smaller screens */
        margin-bottom: 30px;
    }
    .page-about__hero-section {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        min-height: 450px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-about__main-heading {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-about__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__section {
        padding: 50px 15px;
    }
    .page-about__heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__paragraph {
        font-size: 1em;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr;
    }
    .page-about__feature-card {
        padding: 25px;
    }
    .page-about__feature-title {
        font-size: 1.3em;
    }
    .page-about__image-content, .page-about__feature-image, .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__image-block, .page-about__hero-image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .page-about__video-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-title {
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px;
    }
    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}