.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly set for clarity, though body handles it */
}

.page-about__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
    background-color: #f8f8f8; /* Light background for hero */
    text-align: center;
}

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

.page-about__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* H1 font size with clamp */
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-about__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box; /* Button responsiveness */
    white-space: normal; /* Button responsiveness */
    word-wrap: break-word; /* Button responsiveness */
    text-align: center;
}

.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: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

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

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

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

.page-about__mission-section,
.page-about__responsibility-section {
    padding: 60px 0;
}

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

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

.page-about__article-wrap {
    max-width: 1000px; /* Single column long text container */
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__content-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.page-about__content-flex--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    font-size: 1.05em;
    color: #333333;
}

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

.page-about__text-block a {
    color: #017439;
    text-decoration: underline;
}

.page-about__figure {
    flex: 1;
    margin: 0;
    text-align: center;
}

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

.page-about__figcaption {
    font-size: 0.9em;
    color: #777777;
    margin-top: 10px;
}

.page-about__figcaption--dark {
    color: #f0f0f0;
}

.page-about__dark-bg {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 0;
}

.page-about__dark-bg .page-about__text-block,
.page-about__dark-bg .page-about__description {
    color: #ffffff;
}

.page-about__why-us-section {
    padding: 60px 0;
}

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

.page-about__card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    color: #333333;
}

.page-about__card--dark {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__card--dark .page-about__card-title {
    color: #ffffff;
}

.page-about__card--dark .page-about__card-text {
    color: #f0f0f0;
}

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

.page-about__card-text {
    font-size: 1em;
    margin-bottom: 20px;
}

.page-about__cta-bottom-section {
    padding: 60px 0;
    text-align: center;
}

.page-about__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%; /* Button container responsiveness */
    max-width: 100%; /* Button container responsiveness */
    box-sizing: border-box; /* Button container responsiveness */
    overflow: hidden; /* Button container responsiveness */
}

/* --- Tablet Responsiveness --- */
@media (max-width: 1024px) {
    .page-about__container {
        padding: 0 15px;
    }

    .page-about__main-title {
        font-size: clamp(2.2em, 5vw, 3em);
    }

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

    .page-about__content-flex {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__content-flex--reverse {
        flex-direction: column;
    }

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

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* 1. Top section title + dual CTAs */
    .page-about__hero-section {
        padding-top: 10px !important; /* Fixed small top padding */
        padding-bottom: 30px;
    }

    .page-about__main-title {
        font-size: clamp(1.8em, 8vw, 2.2em);
        margin-bottom: 10px;
        padding: 0 10px;
    }

    .page-about__description {
        font-size: 1em;
        margin-bottom: 20px;
        padding: 0 15px;
    }

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

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

    /* 2. Single column long text container */
    .page-about__article-wrap {
        padding: 0 15px; /* Adjust padding for mobile */
    }

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

    .page-about__content-flex {
        flex-direction: column; /* Stack content vertically */
        gap: 20px;
    }

    .page-about__content-flex--reverse {
        flex-direction: column; /* Keep column stacking */
    }

    .page-about__text-block {
        font-size: 1em;
    }

    /* 3. General images and figure */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-about__figure {
        width: 100%;
    }

    .page-about__figcaption {
        font-size: 0.85em;
    }

    /* 4. Buttons and button containers */
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* 5. Card/grid elements (general content blocks) */
    .page-about__card {
        padding: 20px;
        font-size: 0.95em;
    }

    .page-about__card-title {
        font-size: 1.4em;
    }

    .page-about__mission-section,
    .page-about__why-us-section,
    .page-about__responsibility-section,
    .page-about__cta-bottom-section {
        padding: 40px 0;
    }

    .page-about__dark-bg .page-about__container {
        padding: 0 15px;
    }

    .page-about__grid {
        gap: 20px;
    }
}