/* =========================================================
   WHY CHOOSE ROGATIONIST COLLEGE
   ========================================================= */


/* ---------------------------------------------------------
   BREADCRUMB
   --------------------------------------------------------- */

.page-breadcrumb {

    background: var(--light-blue);

    padding: 18px 0;

    font-size: 14px;

    color: var(--gray-700);

}


.page-breadcrumb .container {

    display: flex;

    align-items: center;

    gap: 8px;

}


.page-breadcrumb strong {

    color: #1769c2;

}


.breadcrumb-arrow {

    color: var(--gray-500);

    font-size: 18px;

}



/* ---------------------------------------------------------
   MAIN WHY CHOOSE SECTION
   --------------------------------------------------------- */

.why-choose-section {

    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(280px, 1fr)
        minmax(420px, 1.35fr)
        minmax(300px, 1fr);

    min-height: 650px;

}


/* ---------------------------------------------------------
   LEFT PANEL
   --------------------------------------------------------- */

.why-left {

    background: var(--navy);

    color: var(--white);

    padding: 55px 45px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

}


.why-section-label {

    display: block;

    color: var(--gold);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    line-height: 1.5;

}


.why-left h1 {

    margin-top: 28px;

    margin-bottom: 28px;

    color: var(--white);

    font-size: clamp(
        3.2rem,
        4.5vw,
        5.2rem
    );

    line-height: 0.98;

}


.why-left h1 span {

    color: var(--gold);

}


.why-left p {

    max-width: 320px;

    color: #f2f5f8;

    font-size: 15px;

    line-height: 1.65;

}


.why-quote {

    text-align: center;

    color: var(--white);

    font-family: "Playfair Display", serif;

    font-size: 19px;

    line-height: 1.35;

    letter-spacing: .3px;

}


.why-quote span {

    color: var(--gold-light);

}



/* ---------------------------------------------------------
   CENTER IMAGE
   --------------------------------------------------------- */

.why-image {

    position: relative;

    min-height: 650px;

    overflow: hidden;

    background: var(--navy-dark);

}


.why-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 21, 47, .55),
            transparent 35%
        );

    pointer-events: none;

}


.why-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.why-image-caption {

    position: absolute;

    z-index: 2;

    bottom: 30px;

    left: 0;

    right: 0;

    text-align: center;

    color: var(--white);

    font-family: "Playfair Display", serif;

    font-size: 24px;

    font-style: italic;

    text-shadow:
        0 2px 8px rgba(0,0,0,.7);

}



/* ---------------------------------------------------------
   RIGHT PANEL
   --------------------------------------------------------- */

.why-right {

    background: var(--white);

    padding: 55px 45px;

    display: flex;

    flex-direction: column;

    justify-content: center;

}


.why-right h2 {

    margin-top: 10px;

    margin-bottom: 22px;

    font-size: clamp(
        2rem,
        3vw,
        3rem
    );

    line-height: 1.05;

}


.why-item {

    display: grid;

    grid-template-columns: 52px minmax(0, 1fr);

    gap: 16px;

    align-items: start;

    padding: 17px 0;

    border-bottom: 1px solid var(--gray-300);

}


.why-item:first-of-type {

    border-top: 1px solid var(--gray-300);

}


.why-number {

    width: 45px;

    height: 45px;

    border-radius: 50%;

    background: var(--navy);

    color: var(--gold);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

    font-weight: 700;

}


.why-item-content {

    min-width: 0;
    overflow-wrap: anywhere;

    padding-left: 10px;

    border-left: 3px solid var(--gold);

}


.why-item h3 {

    margin-bottom: 3px;

    font-family: "DM Sans", sans-serif;

    font-size: 15px;

    font-weight: 800;

    letter-spacing: .3px;

    color: var(--navy);

}


.why-item p {

    font-size: 12px;

    line-height: 1.45;

    color: var(--gray-700);

    max-width: 240px;

}



/* =========================================================
   VALUES STRIP
   ========================================================= */

.why-values-strip {

    min-height: 120px;

    padding: 36px 35px;

    display: grid;

    grid-template-columns: minmax(0, 1fr);
    gap: 28px;

    align-items: center;

    background: var(--white);

    border-top: 1px solid var(--gray-200);

}


.why-value {

    min-height: 80px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 7px;

    border-right: 1px solid var(--gray-300);

}

.why-values-icons {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
    gap: 12px;
}

.why-values-icons .why-value {
    min-width: 0;
    text-align: center;
}

.why-values-icons .why-value:last-child {
    border-right: 0;
}


.why-value-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;
}

.why-value-icon img {
    width: 42px;
    height: 42px;

    object-fit: contain;

    display: block;
}


.why-value strong {

    color: var(--navy);

    font-size: 12px;

    letter-spacing: .5px;

}


.why-values-message {

    padding: 0 30px;

    text-align: center;

}


.why-values-message h3 {

    font-size: 20px;

    margin-bottom: 7px;

}


.why-values-message p {

    max-width: 650px;

    margin-inline: auto;

    color: var(--gray-700);

    font-size: 12px;

    line-height: 1.5;

}



/* =========================================================
   RESPONSIVE
   ========================================================= */

/*
   Stack the main panels when there is no room for three readable columns.
*/

@media (max-width: 1050px) {

    .why-choose-section {

        grid-template-columns:
            minmax(0, 1fr);

        min-height: 0;

    }


    .why-left {

        padding: 40px 28px;
        gap: 24px;

    }


    .why-right {

        padding: 40px 28px;

    }

    .why-image {
        min-height: 0;
        height: clamp(280px, 50vw, 480px);
    }

    .why-left,
    .why-right,
    .why-values-strip > * {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .why-left p,
    .why-item p {
        max-width: none;
    }


    .why-left h1 {

        font-size: 3.5rem;

    }


    .why-right h2 {

        font-size: 2.2rem;

    }


    .why-values-strip {

        gap: 24px;

    }


    .why-values-message {

        grid-column: 1 / -1;

        grid-row: auto;

        padding: 20px;

    }

}



/*
   Mobile:
   Keep all content within the mobile viewport.
*/

@media (max-width: 700px) {

    .why-choose-section {

        display: grid;

        grid-template-columns:
            minmax(0, 1fr);

        width: 100%;

        min-height: 0;


    }


    .why-left {

        padding: 35px 25px;

    }


    .why-image {

        min-height: 0;

    }


    .why-right {

        padding: 35px 25px;

    }


    .why-values-strip {

        padding: 28px 15px;

    }

    .why-values-icons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px 10px;
    }

    .why-values-icons .why-value:nth-child(3n) {
        border-right: 0;
    }

}



/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .page-breadcrumb {

        font-size: 12px;

    }


    .why-choose-section {

        grid-template-columns:
            minmax(0, 1fr);

    }


    .why-left h1 {

        font-size: 3rem;

    }


    .why-image {

        min-height: 0;

    }


    .why-image-caption {

        font-size: 20px;

    }


    .why-values-strip {

        grid-template-columns: minmax(0, 1fr);

    }

    .why-values-message {
        padding: 0;
    }

    .why-value strong {
        font-size: 11px;
        letter-spacing: .2px;
    }


    .why-values-message {

        grid-column: 1 / -1;

    }

}
