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

.page-about__section-spacing {
    padding: 60px 0;
}

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

.page-about__center-content {
    text-align: center;
}

.page-about__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-about__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to top, image above text */
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    padding-top: 10px; /* Small top padding, body handles main offset */
    background-color: #017439; /* Fallback */
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for the image wrapper */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px 40px;
    background-color: transparent; /* No background to avoid covering image */
}

.page-about__main-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.page-about__description {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-about__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    box-sizing: border-box;
    max-width: 100%;
}

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

.page-about__btn-register:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

.page-about__btn-login: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: #e0e0e0;
    border-color: #017439;
}

/* Dark Section Styling */
.page-about__dark-section {
    background-color: #017439;
    color: #FFFFFF;
}

.page-about__dark-section .page-about__section-title {
    color: #FFFFFF;
}

.page-about__dark-section .page-about__text-block {
    color: #f0f0f0;
}

/* Content Grid for sections with image and text */
.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.page-about__content-grid--reverse .page-about__text-content {
    order: 2;
}

.page-about__content-grid--reverse .page-about__image-wrapper {
    order: 1;
}

.page-about__image-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Value List */
.page-about__value-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-about__value-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 16px;
}

.page-about__dark-section .page-about__value-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-left-color: #FFFFFF;
}

/* FAQ Section */
.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: 600;
    color: #017439;
    cursor: pointer;
    list-style: none; /* Remove default marker */
}

.page-about__faq-question::-webkit-details-marker, 
.page-about__faq-question::marker {
    display: none;
}

.page-about__faq-toggle {
    font-size: 24px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate */
}

.page-about__faq-answer {
    padding: 0 25px 18px;
    font-size: 16px;
    color: #555555;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__section-spacing {
        padding: 40px 0;
    }

    .page-about__section-title {
        margin-bottom: 30px;
    }

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

    .page-about__content-grid--reverse .page-about__text-content {
        order: initial;
    }

    .page-about__content-grid--reverse .page-about__image-wrapper {
        order: initial;
    }

    .page-about__hero-section {
        min-height: 400px;
    }

    .page-about__hero-content {
        padding: 0 15px 30px;
    }

    .page-about__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }

    .page-about__description {
        font-size: clamp(16px, 2.2vw, 20px);
    }

    .page-about__btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }

    .page-about__faq-answer {
        padding: 0 20px 15px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .page-about__section-spacing {
        padding: 30px 0 !important;
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        min-height: 350px;
    }

    .page-about__hero-image-wrapper {
        max-height: 400px;
    }

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

    .page-about__main-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 15px;
    }

    .page-about__description {
        font-size: clamp(15px, 3vw, 18px);
        margin-bottom: 25px;
    }

    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
    }

    .page-about__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-about__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section-title {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: 25px;
    }

    .page-about__text-block {
        font-size: 15px;
    }

    /* Universal image responsive styles */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-about__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .page-about__faq-question {
        font-size: 15px !important;
        padding: 12px 18px !important;
    }

    .page-about__faq-answer {
        font-size: 14px !important;
        padding: 0 18px 12px !important;
    }

    .page-about__value-item {
        padding: 12px 15px;
        font-size: 15px;
    }
}