.page-main {
    padding: 2rem 0;
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.content-wrapper.reverse { flex-direction: row-reverse; }

.text-content { flex: 1 1 360px; }

.image-group { display: flex; gap: 0.75rem; flex: 1 1 360px; align-items: stretch; }

.section-image {
    width: 100%;
    max-width: 100%;
    border-radius: 0.6rem;
    box-shadow: 0 6px 18px rgba(14, 30, 37, 0.06);
    object-fit: cover;
    height: 220px;
}

.image-placeholder {
    flex: 1 1 360px;
    height: 220px;
    border-radius: 0.6rem;
    border: 2px dashed rgba(15,58,90,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15,58,90,0.8);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

@media (max-width: 768px) {
    .content-wrapper { flex-direction: column; }
    .section-image { height: 180px; }
    .image-placeholder { height: 160px; }
}

/* About specific ordering and responsive behavior */
.about-us {
    background: linear-gradient(180deg, #fbfdff 0%, #f3f9fc 100%);
    padding: 25px 0 10px;
    border-radius: 8px;
}
.about-us .content-wrapper {
    /* Always show images first, then text underneath (user requested)
       Keep layout stacked to avoid any overlap between images and text. */
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.about-us .image-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0.75rem;
    width: 100%;
    flex-wrap: nowrap;
}
.about-us .image-group .section-image {
    flex: 1 1 50%;
    max-width: calc(50% - 0.5rem);
    height: 220px;
}
.about-us .text-content {
    margin-top: 0.8rem;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 540px) {
    .about-us .image-group { gap: 0.6rem; }
    .about-us .image-group .section-image { height: 160px; max-width: 100%; flex: 1 1 48%; }
}

/* Header styles */
.about-us h2 { text-align: center; font-size: 2rem; color: #0f3a5a; margin-bottom: 0.5rem; }
.mission-vision h3 { text-align: center; font-size: 1.25rem; color: #114266; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.6rem; margin-bottom: 0.25rem; }

/* Mission & Vision layout: each item shows image left, text right */
.mv-item { display: flex; gap: 1rem; align-items: center; margin-top: 0.5rem; flex-wrap: wrap; }
.mv-image { flex: 0 0 360px; height: 220px; border-radius: 0.6rem; object-fit: cover; box-shadow: 0 8px 24px rgba(15,58,90,0.08); filter: grayscale(40%) contrast(0.95) brightness(0.98); transition: transform 220ms ease, filter 220ms ease; }
.mv-image:hover { transform: translateY(-6px) scale(1.02); filter: none; }
.mv-text { flex: 1 1 320px; color: #12354a; }

/* Top images effect */
.about-us .section-image { transition: transform 260ms ease, filter 260ms ease, box-shadow 260ms ease; border-radius: 10px; }
.about-us .section-image:hover { transform: translateY(-6px) scale(1.02); filter: none; box-shadow: 0 18px 36px rgba(9, 78, 128, 0.12); }

@media (max-width: 768px) { .mv-item { flex-direction: column; } .mv-image { width: 100%; height: 180px; flex: none; } }