/* ==========================================================================
   Institution page V2 — brand + ranking (compact + /vis/ show)
   Stacked layout (no absolute overlays, no huge padding gaps).
   ========================================================================== */

/* Kill legacy absolute hero layers on this page only */
html.inst-v2-page .section-top,
html.inst-v2-page .section-top-darker,
html.inst-v2-page .section-top-darker-small {
    display: none !important;
}

/* Top bar takes real space — no overlap with banner */
html.inst-v2-page .top-bar {
    position: relative !important;
    height: auto;
    min-height: 60px;
}

html.inst-v2-page .content.inst-layout-v2 {
    min-height: 0 !important;
    padding-top: 0;
}

html.inst-v2-page .content .headers {
    margin-top: 1rem !important;
}

/* Categories + cards sit on dark banner continuation (no absolute overlay) */
html.inst-v2-page .inst-layout-v2 > .container {
    background:
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.72)),
        url('../../Graphics/bg.jpg') center bottom / cover no-repeat;
    max-width: none;
    width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 2rem;
}

html.inst-v2-page .inst-layout-v2 > .container > .row,
html.inst-v2-page .inst-layout-v2 > .container > .row.content-margin-top {
    max-width: 1370px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

html.inst-v2-page .inst-layout-v2 > .container .headers h2,
html.inst-v2-page .inst-layout-v2 > .container .place-h2 {
    color: #fff;
}

/* Keep review cards untouched — only ensure they sit cleanly in the column */
html.inst-v2-page .inst-layout-v2 .review-v2__grid {
    margin-top: 0;
}

html.inst-v2-page .inst-layout-v2 .no-reviews {
    color: #fff;
}

html.inst-v2-page .inst-layout-v2--profile > .container {
    background:
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.72)),
        url('../../Graphics/bg-mypage.jpg') center bottom / cover no-repeat;
}

html.inst-v2-page .banner-v2--profile {
    background:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url('../../Graphics/bg-mypage.jpg') center top / cover no-repeat;
}

html.inst-v2-page .inst-layout-v2 .no-repports {
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    margin: 1rem 0;
}

/* -- Banner (bg image + brand title) ------------------------------------- */

.banner-v2 {
    position: relative;
    width: 100%;
    background:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url('../../Graphics/bg.jpg') center top / cover no-repeat;
    box-sizing: border-box;
}

.brand-v2 {
    text-align: center;
    color: #fff;
    padding: 5rem 1rem;
    box-sizing: border-box;
}

.brand-v2__link {
    text-decoration: none;
    color: inherit;
}

.brand-v2__title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 3px 1px rgba(0, 0, 0, 0.85);
}

.brand-v2__tagline {
    margin: 0.4rem 0 0;
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    font-weight: 400;
    line-height: 1.4;
    text-shadow: 0 2px 1px rgba(0, 0, 0, 0.85);
}

/* -- SEO breadcrumbs ----------------------------------------------------- */

.seo-breadcrumbs {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
}

.seo-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.35rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.65rem 1rem;
    list-style: none;
    color: #f3f4f6;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;
    box-sizing: border-box;
}

.seo-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.seo-breadcrumbs__item:not(:last-child)::after {
    content: "/";
    margin-left: 0.35rem;
    opacity: 0.55;
}

.seo-breadcrumbs__link {
    color: #dbeafe;
    text-decoration: none;
}

.seo-breadcrumbs__link:hover,
.seo-breadcrumbs__link:focus {
    color: #fff;
    text-decoration: underline;
}

.seo-breadcrumbs__current {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 767px) {
    .seo-breadcrumbs__list {
        padding: 0.55rem 0.85rem;
        font-size: 0.8rem;
    }
}

/* -- Ranking band -------------------------------------------------------- */

.rank-v2 {
    width: 100%;
    text-align: center;
    color: #1f2937;
    background-image: url('../../Graphics/gradient-grey.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem 1rem;
    margin: 0;
    box-sizing: border-box;
}

.rank-v2__title {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.rank-v2__subtitle,
.rank-v2__count {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
}

.rank-v2__row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.5rem;
}

.rank-v2__stars .ranking {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 0;
}

.rank-v2__stars .ranking span {
    display: inline-flex;
}

.rank-v2__stars .ranking img {
    display: block;
    height: auto;
    max-height: 80px;
    width: auto;
}

.rank-v2__btn {
    appearance: none;
    border: 0;
    border-radius: 20px;
    min-height: 50px;
    min-width: 11rem;
    max-width: 15rem;
    width: auto;
    padding: 0.65rem 1.25rem;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 12px 1px rgba(0, 0, 0, 0.25);
    background: linear-gradient(to bottom, #666166, #adabad);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.rank-v2__btn:hover,
.rank-v2__btn:focus-visible {
    background: linear-gradient(to bottom, #7d7d7d, #484848);
    box-shadow: 0 8px 14px 3px rgba(0, 0, 0, 0.28);
    outline: none;
}

.rank-v2__meta {
    margin: 0;
    font-size: 0.95rem;
    color: #4b5563;
}

@media (max-width: 600px) {
    /* .brand-v2 {
        padding: 1.25rem 0.75rem;
    } */

    .rank-v2 {
        padding: 1rem 0.75rem;
    }

    .rank-v2__row {
        flex-direction: column;
    }

    .rank-v2__btn {
        width: 100%;
        max-width: 16rem;
    }

    .rank-v2__stars .ranking img {
        max-height: 32px;
    }
}
