/* UILAH page-specific overrides on top of the engineering-demo template */

/* ---------- Rankings: text + logo cards ---------- */
.rank-text {
    max-width: 260px;
    padding: 20px 10px;
}
.rank-text img {
    max-width: 150px;
    margin-bottom: 14px;
}
.rank-text strong {
    display: block;
    font-size: 26px;
    line-height: 30px;
    font-weight: 800;
    color: var(--text-color-black);
}
.rank-text span {
    display: block;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-color-black);
    margin-top: 6px;
}

/* ---------- Testimonials: name subtitle without company logo ---------- */
.ceo-details .tbi-qualified {
    font-size: 13px;
    line-height: 18px;
    max-width: 60%;
}

/* On mobile the text cards follow the same widths the template gives ranking images */
@media only screen and (max-width: 767px) {
    .rank-text {
        max-width: 180px;
        padding: 15px 0;
    }
    .rank-text img {
        max-width: 100% !important;
        margin-bottom: 8px;
    }
    .rank-text strong {
        font-size: 18px;
        line-height: 22px;
    }
    .rank-text span {
        font-size: 11px;
        line-height: 15px;
        margin-top: 4px;
    }
}
@media only screen and (max-width: 575px) {
    .rank-text {
        max-width: 150px;
    }
}
@media only screen and (max-width: 414px) {
    .rank-text {
        max-width: 130px;
    }
}

/* ---------- Top Recruiters: logos cropped from the content doc need a bit more height (mobile uses template sizes) ---------- */
@media (min-width: 768px) {
    .recruiter-sec .recruiter-slider .fg-item img {
        max-width: 120px !important;
        max-height: 30px !important;
    }
}

/* ---------- Why Choose UILAH: 3 cards per view, shorter section ---------- */
@media (min-width: 992px) {
    .edge-slider.mt-180 {
        margin-top: 100px;
    }
    /* keep the arrows clear of the Apply Today button after the smaller top gap */
    .edge-slider .flickity-prev-next-button.next,
    .edge-slider .flickity-prev-next-button.previous {
        top: -45px;
    }
    .edge-slider .edge-item {
        width: 33.3333%;
        height: 240px;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .edge-slider .edge-item {
        width: 50%;
        height: 240px;
    }
}

/* ---------- Accomplished Graduates: template navy behind cards until a background image is added ---------- */
.topStudent-item__card {
    background-color: var(--bgcolor-blue);
}
