.page-about {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    padding-bottom: 40px; /* Add some bottom padding to the main content area */
}

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

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column; /* Enforce image on top, text below */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: #f5f5f5;
}

.page-about__hero-content {
    max-width: 900px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: 2.8em;
    font-weight: 700;
    color: #017439;
    line-height: 1.2;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-description {
    font-size: 1.2em;
    color: #555555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image container */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* Section Titles */
.page-about__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
}

.page-about__sub-title {
    font-size: 1.6em;
    font-weight: 600;
    color: #017439;
    margin-top: 25px;
    margin-bottom: 15px;
}

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

.page-about__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Backgrounds for contrast */
.page-about__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 40px 0;
}

.page-about__dark-bg {
    background-color: #017439; /* Primary brand color */
    color: #ffffff; /* White text for contrast */
    padding: 40px 0;
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__sub-title {
    color: #ffffff; /* Ensure titles are white on dark background */
}

/* Values Section */
.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.page-about__value-card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-about__value-card .page-about__value-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

/* CTA Buttons */
.page-about__cta-block {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* Separator */
}

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

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

.page-about__btn-primary {
    background-color: #C30808; /* Register/Login button 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: transparent;
    color: #C30808; /* Register/Login button color for text */
    border: 2px solid #C30808;
}

.page-about__btn-secondary:hover {
    background-color: #C30808;
    color: #ffffff;
}

/* General image responsive styles */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

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

    /* Hero Section */
    .page-about__hero-section {
        padding-top: 10px !important; /* Ensure small padding */
        padding-bottom: 20px;
    }

    .page-about__main-title {
        font-size: 2em;
        padding: 0 10px;
    }

    .page-about__hero-description {
        font-size: 1em;
        padding: 0 10px;
    }

    .page-about__hero-image-wrapper {
        border-radius: 0;
    }

    /* Section Titles */
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
        padding-top: 20px;
    }

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

    /* Values Section */
    .page-about__values-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    /* Images */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset;
        min-height: unset;
    }
    
    .page-about__content-image {
        margin-left: 0;
        margin-right: 0;
    }

    /* Buttons */
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    /* Ensure all containing elements also adapt */
    .page-about__section,
    .page-about__card,
    .page-about__box,
    .page-about__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}