.page-about {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color, will be adjusted for dark backgrounds */
    line-height: 1.6;
    background-color: #FFFFFF; /* Overall page background */
}

.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Default for mobile, will change for desktop */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 40px; /* Small top padding, no --header-offset */
    background-color: #017439; /* Dark background for hero */
    color: #FFFFFF;
    overflow: hidden; /* To contain potential overflows from image */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    max-width: 1200px; /* Max width for the image within the section */
    display: block;
    margin-bottom: 20px; /* Space between image and content */
    border-radius: 8px;
    object-fit: cover;
}

.page-about__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF; /* White for dark background */
}

.page-about__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

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

.page-about__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.page-about__btn--register {
    background-color: #C30808;
    color: #FFFF00;
    border: none;
}

.page-about__btn--register:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

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

.page-about__btn--login:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

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

.page-about__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Primary color for titles */
}

.page-about__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #017439; /* Primary color for sub-titles */
}

.page-about__mission-vision-section,
.page-about__history-section,
.page-about__values-section,
.page-about__why-choose-us-section,
.page-about__contact-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* White background for sections */
}

.page-about__mission-vision-section {
    background-color: #f5f5f5; /* Slightly different background for visual separation */
}

.page-about__content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.page-about__content-wrapper--reverse {
    flex-direction: column-reverse; /* Image after text on mobile, reverse on desktop */
}

.page-about__text-block {
    flex: 1;
    min-width: 300px;
    text-align: justify;
    color: #333333;
}

.page-about__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image {
    width: 100%;
    height: auto;
    max-width: 800px; /* Ensure images are not too wide */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
}

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

.page-about__value-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-about__value-icon {
    width: 200px; /* Enforce 200px minimum */
    height: 200px;
    object-fit: contain;
    margin: 0 auto 20px;
}

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

.page-about__value-description {
    font-size: 0.95em;
    color: #555555;
}

.page-about__advantage-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__advantage-item {
    background-color: #f5f5f5;
    border-left: 5px solid #017439;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

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

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

.page-about__btn--join {
    background-color: #017439;
    color: #FFFFFF;
    border: none;
    padding: 15px 35px;
    font-size: 1.1em;
}

.page-about__btn--join:hover {
    background-color: #005a2d;
    transform: translateY(-2px);
}

.page-about__contact-section {
    background-color: #f5f5f5;
    text-align: center;
}

.page-about__contact-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #333333;
}

.page-about__btn--contact {
    background-color: #017439;
    color: #FFFFFF;
    border: none;
    padding: 15px 35px;
    font-size: 1.1em;
}

.page-about__btn--contact:hover {
    background-color: #005a2d;
    transform: translateY(-2px);
}

/* Desktop styles */
@media (min-width: 769px) {
    .page-about__hero-section {
        flex-direction: row; /* Image and text side-by-side */
        text-align: left;
        padding: 40px 0;
    }

    .page-about__hero-image {
        margin-bottom: 0;
        margin-right: 40px; /* Space between image and content */
        max-width: 50%; /* Image takes half width */
    }

    .page-about__hero-content {
        max-width: 50%; /* Content takes half width */
        text-align: left;
    }

    .page-about__hero-buttons {
        justify-content: flex-start; /* Align buttons to the left */
    }

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

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

/* Mobile responsive for images - CRITICAL */
@media (max-width: 768px) {
    .page-about__hero-image,
    .page-about__image,
    .page-about__value-icon {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure min-width is respected */
        min-height: 200px; /* Ensure min-height is respected */
    }

    .page-about__hero-section {
        padding: 10px 0 30px;
    }

    .page-about__main-title {
        font-size: 2em; /* Smaller H1 on mobile */
    }

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

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

    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__btn {
        width: 100%;
    }
}