/* --------------------------
   learn-more-about-us (clean)
   -------------------------- */
.learn-more-about-us {
    box-sizing: border-box;
    width: 100%;
    /* margin: 60px auto; */
    padding: 64px 80px;
    background: linear-gradient(0deg, #ebf0ff 0%, #ebf0ff 100%);
    display: flex;
    flex-direction: column;
    gap: 64px;
    align-items: center;
}

/* small centered orange label (top) */
.learn-more-about-us .text-wrapper {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    color: #f0af3b;
    font-size: 18px;
    text-align: center;
    margin: 0;
    width: 100%;
}

/* FRAME contains two rows: text block (above) and images (below) */
.learn-more-about-us .frame {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* keeps text above images */
    gap: 48px;
    align-items: flex-start;
}

/* Left text column (stretches full width on small screens) */
.learn-more-about-us .div {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

/* Big heading */
.learn-more-about-us .p {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    color: var(--collection-1-text-color, #222);
    font-size: 28px;
    line-height: 1.15;
}

/* Paragraph copy */
.learn-more-about-us .this-stage-welcomes,
.learn-more-about-us .catering-to-children,
.learn-more-about-us .students-from-ages {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-weight: 300;
    color:  #444;
    font-size: 18px;
    line-height: 1.9;
    max-width: 100%;
}

/* CTA */
.learn-more-about-us .button-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background-color: #42569d;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 16px;
    transition: transform .18s ease, background-color .18s ease;
}

.learn-more-about-us .button-banner:hover {
    transform: translateY(-3px);
    background-color: #354675;
}

.learn-more-about-us .admission {
   font-family: "Inter", sans-serif;
    font-weight: 500;
    color: #fff;
    font-size: 16px;
    line-height: 1;
}

.learn-more-about-us .img {
    width: 20px;
    height: 20px;
    display: inline-block;
}

/* -----------------------------
   Images row: two cards side-by-side
   ----------------------------- */
.learn-more-about-us .frame-2 {
    width: 100%;
    display: flex;
    gap: 40px;
    justify-content: center;
    /* center the two image groups under the text */
    align-items: flex-start;
    flex-wrap: nowrap;
}

/* each image card */
.learn-more-about-us .group {
    flex: 0 0 48%;
    /* two equal cards, leave some gutter */
    max-width: 48%;
    min-width: 260px;
    position: relative;
    display: block;
}

/* base image (fills card) */
.learn-more-about-us .image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(12, 20, 40, 0.08);
    position: relative;
}

/* image element */
.learn-more-about-us .rectangle,
.learn-more-about-us .rectangle-2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 28px;
    transform-origin: center;
    transition: transform .7s cubic-bezier(.22, .9, .36, 1), box-shadow .3s ease;
    will-change: transform;
    /* initial animation state */
    opacity: 0;
    transform: translateY(24px) scale(0.995);
    animation: fadeSlideUp .8s ease forwards;
}

/* small stagger so left appears slightly before right */
.learn-more-about-us .frame-2 .group:nth-child(1) .rectangle {
    animation-delay: .12s;
}

.learn-more-about-us .frame-2 .group:nth-child(2) .rectangle {
    animation-delay: .26s;
}

/* hover lift */
.learn-more-about-us .group:hover .rectangle {
    transform: translateY(0) scale(1.03);
    box-shadow: 0 16px 40px rgba(12, 20, 40, 0.12);
}

/* Optional secondary overlay image (if present) — positioned inside card */
.learn-more-about-us .rectangle-wrapper {
    position: absolute;
    left: 50%;
    bottom: 8%;
    width: 56%;
    height: auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(12, 20, 40, 0.12);
    transform: translate(-50%, 18px) scale(.98);
    opacity: 1;
    transition: transform .6s ease, opacity .3s ease;
}

.learn-more-about-us .group:hover .rectangle-wrapper {
    transform: translate(-50%, 0) scale(1);
}

/* When overlay exists, ensure its image fits */
.learn-more-about-us .rectangle-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* animation keyframes */
@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* -----------------------------
   RESPONSIVE
   ----------------------------- */
@media (max-width: 1100px) {
    .learn-more-about-us {
        padding: 48px 36px;
        gap: 48px;
    }

    .learn-more-about-us .p {
        font-size: 24px;
    }

    .learn-more-about-us .frame-2 .group {
        flex: 0 0 46%;
        max-width: 46%;
        min-width: 220px;
    }

    .learn-more-about-us .image {
        height: 300px;
        border-radius: 24px;
    }
}

@media (max-width: 800px) {
    .learn-more-about-us {
        padding: 36px 20px;
        gap: 36px;
    }

    .learn-more-about-us .text-wrapper {
        font-size: 16px;
    }

    .learn-more-about-us .p {
        font-size: 20px;
    }

    .learn-more-about-us .this-stage-welcomes,
    .learn-more-about-us .catering-to-children,
    .learn-more-about-us .students-from-ages {
        font-size: 15px;
        line-height: 1.7;
    }

    /* stack content vertically: text then images (images shrink and sit side-by-side if space) */
    .learn-more-about-us .frame {
        gap: 28px;
    }

    .learn-more-about-us .frame-2 { gap: 16px; justify-content: center; flex-wrap: wrap; }

    .learn-more-about-us .frame-2 .group { flex: 0 0 100%; max-width: 560px; min-width: 140px; }
    .learn-more-about-us .frame-2 .group:nth-child(2) { display: none; }

    .learn-more-about-us .image {
        height: 220px;
        border-radius: 18px;
    }

    .learn-more-about-us .rectangle-wrapper { display: none; }
}

@media (max-width: 420px) {
    .learn-more-about-us .frame-2 .group {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .learn-more-about-us .image {
        height: 200px;
    }

    .learn-more-about-us .button-banner {
        padding: 10px 14px;
    }
}
