.mr-public-nav {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mr-public-nav::after {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(to right, #f5e52a 25%, #a3e635 25% 50%, #22d3ee 50% 75%, #f472b6 75%);
}

.mr-public-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.mr-public-nav__logo-link {
    display: inline-flex;
    align-items: center;
    height: 40px;
}

.mr-public-nav__logo-img {
    height: 40px;
    width: auto;
}

.mr-public-nav__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: none;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    color: var(--color-text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.mr-public-nav__back:hover {
    border-color: var(--color-highlight);
    color: var(--color-highlight);
}

.mr-public-hero {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.mr-public-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.mr-public-school-logo {
    display: flex;
    justify-content: center;
    margin-top: -48px;
    position: relative;
    z-index: 10;
}

.mr-public-school-logo__wrap {
    position: relative;
    isolation: isolate;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.mr-public-school-logo__wrap::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--radius-md) + 3px);
    background-image:
        linear-gradient(#f5e52a, #f5e52a),
        linear-gradient(#22d3ee, #22d3ee),
        linear-gradient(#f472b6, #f472b6),
        linear-gradient(#a3e635, #a3e635);
    background-size:
        100% 3px,
        100% 3px,
        3px calc(100% - 6px),
        3px calc(100% - 6px);
    background-position:
        0 0,
        0 100%,
        0 3px,
        100% 3px;
    background-repeat: no-repeat;
    z-index: 0;
}

.mr-public-school-logo__wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: #fff;
    z-index: 1;
}

.mr-public-school-logo__img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mr-public-content {
    max-width: 1200px;
    margin: 0 auto;
}
