.mentorship-banner-section {
    margin-top: 5rem;
    position: relative;   /* allows overlay */
    width: 100%;
    overflow: hidden;     /* prevent horizontal scroll */
}

.mentorship-heading {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* shift up by half its height */
    left: 4rem;           /* distance from left of image */
    z-index: 10;          /* stays on top */
    font-size: 3rem;
}

.mentorship-banner {
    width: 100%;
    height: 50vh;       /* half of viewport height */
    object-fit: cover;  /* image fills container, may crop edges */
}


/* Mobile responsiveness */
@media (max-width: 1000px) {

    .mentorship-heading {
    position: absolute;
    top: 10rem;            /* distance from top of image */
    left: 2rem;           /* distance from left of image */
    text-align: left;
    width: 40%;        /* ⬅️ heading wraps inside 40% of screen */
}
    
}

/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%-- About the Program --%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

/*================== 3 Column Program Layout =================*/

.program-three-column {
    display: flex;
    width: 100%;
    min-height: 90vh;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    margin: 0;
}

/*---------- COLUMNS ----------*/
.col-left, .col-right {
    width: 33%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.col-left {
    align-items: flex-start;
}

.col-right {
    align-items: flex-end;
}

.col-center {
    width: 34%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/*---------- TITLE ----------*/
.about-title {
    font-size: 3rem;
    line-height: 1.1;
}

/*---------- BOXES ----------*/
.triple-box {
    padding: 1.8rem 2rem;
    color: white;
    min-height: 120px;
    width: 80%;
    display: flex;
    align-items: center;
    font-family: 'Aileron', sans-serif;
    font-weight: bold;
}

/* left column boxes touch left edge */
.left-box {
    margin-left: 0;
}

/* right column boxes touch right edge */
.right-box {
    margin-right: 0;
}

/* COLORS (same as your program design section) */
.box1 { background: rgb(156, 175, 204); }
.box2 { background: rgb(144, 156, 47); }
.box3 { background: rgb(120, 48, 53); }

/*---------- TEXT ----------*/
.box-text {
    font-size: 1.1rem;
    margin: 0;
}

@media (max-width: 900px) {

    .program-three-column {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        margin-top: 3rem;
        text-align: center;
    }

    /* FORCE THE ORDER */
    .col-center {
        order: 1;
    }

    .col-left {
        order: 2;
    }

    .col-right {
        order: 3;
    }

    /* CENTER EVERYTHING */
    .col-left, 
    .col-right, 
    .col-center {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .left-box, .right-box {
        margin: 0 auto;
        width: 85%;
        text-align: center;
    }

    /* TITLE */
    .about-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .triple-box {
    text-align: center; /* forces text to center immediately */
    justify-content: center;
}
}


/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%-- Program Design --%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/


.mentorship-design-section {
    width: 100%;
    text-align: center;
    margin-top: 2rem;    /* more space above */
    margin-bottom: 2rem; /* less space below */
}

.mentorship-design-img {
    width: 70%;
    max-width: 100%;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.mentorship-design-section .impact-heading{
    font-size: 3rem;
    margin-top: -3rem;
    margin-bottom: 4rem;
}

/* Mobile responsiveness */
@media (max-width: 1000px) {
    .mentorship-design-img {
        width: 90%;
        margin-bottom: 2rem;
    }
    
    .mentorship-design-section .impact-heading{
    font-size: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}
}


/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%-- Program Format --%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

.program-info-section {
    display: flex;
    width: 100%;
    max-width: 1200px;      /* limit page width */
    margin: 3rem auto;      /* center on page */
    padding: 0 2rem;        /* left/right spacing */
    gap: 2rem;
}

/* LEFT COLUMN */
.info-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 4rem;
}

/* ROWS */
.info-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

/* BOXES */
.info-box {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    font-family: 'Glacial', sans-serif;
    padding: 1rem;
    color: white;
    font-weight: bold;
}

/* FIRST ROW BOXES: 30%-70% height */
.first-row .box1 { flex: 3; background-color: rgb(226, 226, 226); color: black; height: 100px;}
.first-row .box2 { flex: 7; background-color: rgb(120, 48, 53); height: 200px;}

/* SECOND ROW BOXES: 50%-50% height */
.second-row .box3 { flex: 5; background-color: rgb(22, 112, 183); height: 300px; margin-top: -100px;}
.second-row .box4 { flex: 5; background-color: rgb(144, 156, 47); height: 200px;}

/* Equal width for boxes in row */
.info-row .info-box {
    flex-basis: 50%;
}

/* HEADING INSIDE BOXES */
.info-box .box-heading {
    margin: 0;
    font-size: 1.2rem;
    font-family: 'Glacial', sans-serif;
    font-weight: bold;
}

.button-row {
    width: 100%;
    display: flex;
    justify-content: center; /* centers the button horizontally */
}

/* REGISTER BUTTON */
.register-btn {
    font-family: 'Aileron', sans-serif;
    font-size: 1.1rem;
    padding: 0.8rem 5rem;
    border: none;
    border-radius: 30px;
    background-color: rgb(0, 53, 122);
    color: white;
    cursor: pointer;
    align-self: center;
    font-weight: bold;
    transition: transform 0.25s ease, box-shadow 0.25s ease, text-decoration 0.25s ease;
    margin-bottom: 2rem;
}

.register-btn:hover {
    transform: scale(1.07);
    text-decoration: underline;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}


/* RIGHT COLUMN */
.info-right {
    width: 40%;
    display: flex;
    justify-content: flex-end; /* right align */
    align-items: center;       /* vertical center */
}

.info-right .impact-heading {
    text-align: right;
    font-size: 2.5rem;
}

@media (max-width: 992px) {
    /* Stack all columns vertically */
    .program-info-section {
        flex-direction: column;
        align-items: center;  /* center columns horizontally */
        gap: 2rem;
        padding: 0 1.5rem;
    }

    /* Right column heading first and centered */
    .info-right {
        width: 100%;
        justify-content: center;  /* center heading horizontally */
        align-items: center;
        order: -1;                /* move heading above boxes */
    }

    .info-right .impact-heading {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    /* Left column full width */
    .info-left {
        width: 60%;
        padding-left: 0;
        gap: 1rem;
    }

    /* Stack rows vertically */
    .info-row {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    /* Boxes full width */
    .info-row .info-box {
        flex-basis: 100% !important;
        height: auto;  /* let content determine height on mobile */
        margin-top: 0; /* remove overlap */
    }

    /* Button row stays centered */
    .button-row {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Adjust button for smaller screens */
    .register-btn {
        padding: 0.8rem 3rem;
        font-size: 1rem;
    }

    .info-box .box-heading {
    margin: 0;
    font-size: 1rem;
}

}