/* =================================
   School Profile Template Styles
   ================================= */

:root {
    --lse-primary: #ee7218;
    --lse-primary-dark: #e6007e;
    --lse-navy: #09374f;
    --lse-navy-light: #0a567a;
    --lse-muted: #465c6b;
    --lse-bg: #f6fbff;
}

.school-profile {
    background: var(--lse-bg);
    padding: clamp(2.5rem, 4vw, 6rem) 0 clamp(4rem, 6vw, 7rem);
}

.school-profile .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.school-profile__article {
    margin-top: clamp(1rem, 2vw, 2rem);
}

.school-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 32px 60px -36px rgba(9, 55, 79, 0.38);
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.75rem);
}

.school-hero__media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #0f2533;
    min-height: clamp(16rem, 28vw, 24rem);
}

.school-hero__carousel {
    width: 100%;
    height: 100%;
}

.school-hero__slide {
    display: none;
    height: 100%;
    width: 100%;
    cursor: zoom-in;
}

.school-hero__slide.is-active {
    display: block;
    animation: schoolFade 0.6s ease-in-out both;
}

.school-hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.school-hero__controls {
    position: absolute;
    inset: auto 1.25rem 1.25rem auto;
    display: flex;
    gap: 0.75rem;
    z-index: 2;
}

.school-hero__control {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(9, 55, 79, 0.82);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.school-hero__control:hover,
.school-hero__control:focus {
    background: rgba(238, 114, 24, 0.92);
    transform: translateY(-2px);
}

.school-hero__dots {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.school-hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.school-hero__dot.is-active {
    background: #ffffff;
    transform: scale(1.2);
}

.school-hero__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    padding: 2rem;
}

.school-hero__summary {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
    justify-content: center;
}

.school-hero__title {
    font-size: clamp(2.1rem, 3.4vw, 3rem);
    margin: 0;
    color: var(--lse-navy);
}

.school-hero__meta {
    margin: 0;
    font-weight: 600;
    color: #546a7b;
}

.school-hero__location {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-weight: 600;
    color: var(--lse-navy-light);
}

.school-hero__rating {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    color: var(--lse-navy);
}

.school-hero__stars .fa-star {
    color: #d4dee5;
    margin-right: 2px;
}

.school-hero__stars .fa-star.is-full {
    color: #ffb443;
}

.school-hero__stars .fa-star.is-half {
    background: linear-gradient(90deg, #ffb443 0 50%, #d4dee5 50% 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffb443;
}

.school-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--lse-primary), var(--lse-primary-dark));
    color: #ffffff;
    box-shadow: 0 18px 30px -20px rgba(230, 0, 126, 0.6);
}

.primary-button:hover,
.primary-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 24px 36px -20px rgba(238, 114, 24, 0.5);
}

.secondary-button {
    background: #ffffff;
    border: 2px solid rgba(9, 55, 79, 0.18);
    color: var(--lse-navy);
}

.secondary-button:hover,
.secondary-button:focus {
    border-color: rgba(9, 55, 79, 0.32);
    transform: translateY(-1px);
}

.secondary-button--light {
    border-color: transparent;
    background: rgba(238, 114, 24, 0.13);
    color: var(--lse-primary);
}

.secondary-button--light:hover,
.secondary-button--light:focus {
    background: rgba(230, 0, 126, 0.16);
    color: var(--lse-primary-dark);
}

.school-hero__quickfacts {
    background: linear-gradient(145deg, rgba(106, 202, 243, 0.18), rgba(255, 248, 242, 0.56));
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
}

.school-hero__quickfacts ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.school-hero__quickfacts li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    color: var(--lse-muted);
    font-size: 0.98rem;
}

.school-hero__quickfacts strong {
    color: var(--lse-navy);
}

.school-profile__body {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: clamp(1.75rem, 4vw, 3rem);
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.school-profile__sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.school-sidebar__card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 28px 40px -36px rgba(9, 55, 79, 0.35);
}

.school-sidebar__card h2 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    color: var(--lse-navy);
}

.school-sidebar__card dl,
.school-sidebar__card ul {
    margin: 0 0 1.25rem;
    padding: 0;
}

.school-sidebar__card dl div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(9, 55, 79, 0.1);
    font-size: 0.95rem;
}

.school-sidebar__card dl div:last-child {
    border-bottom: none;
}

.school-sidebar__card dt {
    font-weight: 600;
    color: var(--lse-muted);
}

.school-sidebar__card dd {
    margin: 0;
    color: var(--lse-navy-light);
}

.school-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.school-social__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--lse-navy);
    text-decoration: none;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: rgba(9, 55, 79, 0.07);
    transition: background 0.2s ease, transform 0.2s ease;
}

.school-social__link:hover,
.school-social__link:focus {
    background: rgba(0, 117, 186, 0.14);
    transform: translateX(3px);
}

.school-profile__content {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
}

.school-section {
    background: #ffffff;
    border-radius: 22px;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    box-shadow: 0 26px 45px -36px rgba(9, 55, 79, 0.32);
}

.school-section h2 {
    margin: 0 0 1.2rem;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    color: var(--lse-navy);
}

.school-section__text {
    color: var(--lse-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.school-section__highlight {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 18px;
    background: rgba(230, 0, 126, 0.07);
    border: 1px solid rgba(230, 0, 126, 0.2);
}

.school-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.school-grid__column h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    color: var(--lse-navy);
}

.pill-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pill-list li {
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(9, 55, 79, 0.08);
    font-size: 0.92rem;
    color: var(--lse-navy-light);
    font-weight: 600;
}

.pill-list--outline li {
    background: transparent;
    border: 1px solid rgba(9, 55, 79, 0.18);
}

.school-pricing table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 18px;
    overflow: hidden;
}

.school-pricing table thead {
    background: rgba(9, 55, 79, 0.92);
    color: #ffffff;
}

.school-pricing th,
.school-pricing td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(16, 45, 64, 0.08);
    text-align: left;
}

.course-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: #ffffff;
    border: 1px solid rgba(9, 55, 79, 0.09);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 14px 26px -28px rgba(9, 55, 79, 0.6);
}

.course-card__title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--lse-navy);
}

.course-card__title a {
    color: inherit;
    text-decoration: none;
}

.course-card__title a:hover,
.course-card__title a:focus {
    color: var(--lse-primary);
}

.course-card__level {
    margin: 0;
    font-weight: 600;
    color: var(--lse-primary-dark);
}

.course-card__excerpt {
    margin: 0;
    color: var(--lse-muted);
    line-height: 1.6;
}

.course-card__meta {
    display: grid;
    gap: 0.6rem;
    margin: 0;
}

.course-card__meta div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--lse-navy-light);
}

.course-card__meta dt {
    font-weight: 600;
    color: var(--lse-muted);
}

.course-card__price {
    font-weight: 700;
    color: var(--lse-navy);
}

.course-card__price--original {
    text-decoration: line-through;
    font-weight: 600;
    color: rgba(9, 55, 79, 0.55);
    margin-right: 0.35rem;
}

.school-map {
    width: 100%;
    min-height: clamp(16rem, 30vw, 22rem);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(9, 55, 79, 0.08);
}

.school-map--unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lse-muted);
    font-weight: 600;
    padding: 2.5rem;
    text-align: center;
}

.school-map__address {
    margin-top: 1rem;
    color: var(--lse-navy-light);
    font-weight: 600;
}

.school-cta {
    background: linear-gradient(125deg, rgba(106, 202, 243, 0.2), rgba(230, 0, 126, 0.18));
    border-radius: 26px;
    padding: clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
}

.school-cta__inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.school-cta__inner h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.25rem);
    color: var(--lse-navy);
}

.school-cta__inner p {
    margin: 0;
    color: var(--lse-muted);
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .school-hero {
        grid-template-columns: 1fr;
        padding: clamp(1.25rem, 3vw, 2rem);
    }

    .school-profile__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .school-profile__sidebar {
        position: static;
        order: 2;
    }

    .school-profile__content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .school-hero__media {
        min-height: 16rem;
    }

    .school-section {
        padding: clamp(1.5rem, 3vw, 2rem);
    }

    .course-card__meta div {
        flex-direction: column;
        align-items: flex-start;
    }

    .school-cta {
        padding: clamp(2.25rem, 6vw, 3rem);
    }
}

@media (max-width: 560px) {
    .school-hero__title {
        font-size: clamp(1.75rem, 6vw, 2.1rem);
    }

    .school-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .course-card {
        padding: clamp(1.25rem, 4vw, 1.75rem);
    }

    .school-section {
        padding: clamp(1.25rem, 4vw, 1.75rem);
    }
}

@keyframes schoolFade {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Lightbox */
.school-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(9, 19, 29, 0.86);
    display: grid;
    place-items: center;
    z-index: 9999;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.school-lightbox[hidden] {
    display: none;
}

.school-lightbox__figure {
    position: relative;
    max-width: min(960px, 90vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.school-lightbox__image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.65);
}

.school-lightbox__caption {
    color: #f0f4f8;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
}

.school-lightbox__control {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.school-lightbox__control:hover,
.school-lightbox__control:focus {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.school-lightbox__control--close {
    top: clamp(1rem, 3vw, 1.5rem);
    right: clamp(1rem, 3vw, 1.5rem);
}

.school-lightbox__control--prev,
.school-lightbox__control--next {
    top: 50%;
    transform: translateY(-50%);
}

.school-lightbox__control--prev {
    left: clamp(1.25rem, 4vw, 2rem);
}

.school-lightbox__control--next {
    right: clamp(1.25rem, 4vw, 2rem);
}

.school-lightbox__control--prev:hover,
.school-lightbox__control--prev:focus,
.school-lightbox__control--next:hover,
.school-lightbox__control--next:focus {
    transform: translateY(calc(-50% - 2px));
}

body.school-lightbox-open {
    overflow: hidden;
}

/* =================================
   Phase XIX: Single School Template Styles
   (Consolidated from single-school.php inline CSS — 2026-01-03)
   ================================= */

/* ─────────────────────────────────────────────────────────────────────────────
   TABS NAVIGATION (Slice 2 - Premium Polish)
   Tab-style navigation with subtle track, even spacing, and underline indicator.
   Scoped to body.single-school for isolation.
   ───────────────────────────────────────────────────────────────────────────── */

body.single-school .school-details-tabs {
    margin: 48px 0;
}

/* Tab nav container - track with subtle background */
body.single-school .tabs-nav {
    display: flex;
    justify-content: stretch;
    list-style: none;
    margin: 0;
    padding: 6px 8px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(0, 0, 50, 0.06);
    border-radius: 14px;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 50, 0.03),
        0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Tab list items - even distribution */
body.single-school .tabs-nav li {
    flex: 1 1 0;
    min-width: 0;
}

/* Tab links - generous click area */
body.single-school .tabs-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px 16px 18px;
    text-align: center;
    text-decoration: none;
    color: rgba(0, 0, 50, 0.55);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    background: transparent;
    border-radius: 10px;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

/* Animated underline indicator */
body.single-school .tabs-nav a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lse-orange, #f58025), var(--lse-tertiary-blue, #6acaf3));
    border-radius: 3px;
    transform: translateX(-50%);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover state - subtle tint, no lift */
body.single-school .tabs-nav a:hover {
    color: var(--lse-dark-blue, #000032);
    background: rgba(0, 0, 50, 0.03);
}

body.single-school .tabs-nav a:hover::after {
    width: 40%;
}

/* Active state - navy text + underline only (no card) */
body.single-school .tabs-nav a.active {
    color: var(--lse-dark-blue, #000032);
    background: rgba(0, 0, 50, 0.04);
}

body.single-school .tabs-nav a.active::after {
    width: 60%;
}

/* Focus state - accessibility */
body.single-school .tabs-nav a:focus {
    outline: none;
}

body.single-school .tabs-nav a:focus-visible {
    outline: 2px solid var(--lse-tertiary-blue, #6acaf3);
    outline-offset: 2px;
    border-radius: 10px;
    z-index: 1;
}

body.single-school .tabs-nav a.active:hover,
body.single-school .tabs-nav a.active:focus {
    color: var(--lse-dark-blue, #000032);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ENQUIRE NOW CTA TAB BUTTON (Base styles - works in both modes)
   Orange pill CTA positioned at right of tab nav.
   ───────────────────────────────────────────────────────────────────────────── */

/* CTA list item - push to far right, don't flex-grow */
body.single-school .tabs-nav__cta-item {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 8px 4px;
}

/* CTA button - orange pill */
body.single-school .tabs-nav__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--lse-orange, #f58025);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(245, 128, 37, 0.25);
}

/* Hover - lift + glow */
body.single-school .tabs-nav__cta-btn:hover {
    background: #e06d1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 128, 37, 0.35);
}

/* Active/pressed */
body.single-school .tabs-nav__cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(245, 128, 37, 0.25);
}

/* Focus-visible - accessibility */
body.single-school .tabs-nav__cta-btn:focus-visible {
    outline: 2px solid var(--lse-tertiary-blue, #6acaf3);
    outline-offset: 3px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TABS RESPONSIVE - Tablet (769-1024px)
   Retain even distribution, reduce padding slightly for fit.
   ───────────────────────────────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
    body.single-school .tabs-nav {
        padding: 5px 6px;
    }

    body.single-school .tabs-nav a {
        padding: 14px 10px 16px;
        font-size: 0.85rem;
    }

    body.single-school .tabs-nav a::after {
        bottom: 5px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   TABS RESPONSIVE - Mobile (≤768px) - Horizontal scroll fallback
   When tabs ARE shown on mobile (not accordion), enable horizontal scroll.
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    body.single-school .tabs-nav:not([hidden]) {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 5px 6px;
        /* Fade edges to indicate scroll */
        mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 12px,
            #000 calc(100% - 12px),
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 12px,
            #000 calc(100% - 12px),
            transparent 100%
        );
    }

    body.single-school .tabs-nav:not([hidden])::-webkit-scrollbar {
        display: none;
    }

    body.single-school .tabs-nav:not([hidden]) li {
        flex: 0 0 auto;
    }

    body.single-school .tabs-nav:not([hidden]) a {
        padding: 12px 16px 14px;
        font-size: 0.85rem;
    }

    body.single-school .tabs-nav:not([hidden]) a.active {
        font-weight: 700;
    }

    body.single-school .tabs-nav:not([hidden]) a::after {
        bottom: 4px;
        height: 3px;
    }

    /* CTA button - smaller on mobile, stays visible in scroll */
    body.single-school .tabs-nav__cta-item {
        flex: 0 0 auto;
        padding: 6px 8px 6px 4px;
        /* Sticky right position in scroll container */
        position: sticky;
        right: 0;
        background: inherit;
    }

    body.single-school .tabs-nav__cta-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   TAB CONTENT PANELS (Slice 2 - Section Rhythm)
   ───────────────────────────────────────────────────────────────────────────── */

body.single-school .tab-content {
    display: none;
    padding: clamp(24px, 4vw, 36px);
    background: #ffffff;
    border-radius: 18px;
    box-shadow:
        0 1px 2px rgba(0, 0, 50, 0.04),
        0 8px 24px rgba(0, 0, 50, 0.06);
    margin-top: 28px;
}

body.single-school .tab-content.active {
    display: block;
    animation: tabFadeIn 0.3s ease-out;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab titles - refined typography */
body.single-school .tab-title {
    margin: 0 0 24px;
    padding-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lse-dark-blue, #000032);
    border-bottom: 2px solid rgba(0, 0, 50, 0.06);
}

/* Content rhythm - paragraphs and lists */
body.single-school .tab-content p {
    margin: 0 0 1.25em;
    line-height: 1.7;
    color: rgba(0, 0, 50, 0.8);
}

body.single-school .tab-content p:last-child {
    margin-bottom: 0;
}

body.single-school .tab-content ul,
body.single-school .tab-content ol {
    margin: 0 0 1.25em;
    padding-left: 1.5em;
    line-height: 1.7;
}

body.single-school .tab-content li {
    margin-bottom: 0.5em;
}

/* Section subheadings within tabs */
body.single-school .tab-content h3,
body.single-school .tab-content .ukse-section-heading {
    margin: 2em 0 1em;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lse-dark-blue, #000032);
}

body.single-school .tab-content h3:first-child,
body.single-school .tab-content .ukse-section-heading:first-child {
    margin-top: 0;
}

/* School info content layout refinement */
body.single-school .school-info-content {
    display: grid;
    gap: 28px;
}

body.single-school .school-info-image {
    margin: 0;
}

body.single-school .school-info-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

body.single-school .school-info-body {
    font-size: 1rem;
}

/* Contact block refinement */
body.single-school .school-contact-block {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 50, 0.06);
}

body.single-school .school-contact-block__title {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lse-dark-blue, #000032);
}

body.single-school .school-contact-item {
    margin: 0 0 10px;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

body.single-school .school-contact-item:last-child {
    margin-bottom: 0;
}

body.single-school .school-contact-item strong {
    color: var(--lse-dark-blue, #000032);
    margin-right: 6px;
}

body.single-school .school-contact-item a {
    color: var(--lse-orange, #f58025);
    text-decoration: none;
    transition: color 0.15s ease;
}

body.single-school .school-contact-item a:hover {
    color: var(--lse-dark-blue, #000032);
    text-decoration: underline;
}

/* Hero section (Phase XIX) - full-width like City */
.ukse-school-single-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-bottom: 0;
}

.ukse-school-single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 50, 0.7), rgba(0, 0, 50, 0.5));
    z-index: 1;
}

.ukse-school-single-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 64px 32px;
}

.ukse-school-single-hero__content {
    flex: 1;
    max-width: 640px;
}

.ukse-school-single-hero__eyebrow {
    margin: 0 0 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lse-tertiary-blue, #6acaf3);
}

.ukse-school-single-hero__title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
}

.ukse-school-single-hero__tagline {
    margin: 0 0 24px;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.ukse-school-single-hero__cta .home-button {
    font-size: 1rem;
}

.ukse-school-single-hero__logo {
    flex: 0 0 auto;
    max-width: 180px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 50, 0.2);
}

.ukse-school-single-hero__logo img {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .ukse-school-single-hero {
        min-height: 280px;
    }

    .ukse-school-single-hero__inner {
        flex-direction: column;
        text-align: center;
        padding: 28px 16px;
        gap: 20px;
    }

    .ukse-school-single-hero__content {
        max-width: none;
    }

    .ukse-school-single-hero__title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .ukse-school-single-hero__tagline {
        position: relative;
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 16px;
        /* Line-clamp: show max 3 lines with ellipsis */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        /* Fallback for non-webkit: max-height approximates 3 lines */
        max-height: calc(1.5em * 3);
    }

    /* Gradient fade fallback for browsers without line-clamp */
    @supports not (-webkit-line-clamp: 3) {
        .ukse-school-single-hero__tagline::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1.5em;
            background: linear-gradient(to bottom, transparent, rgba(0, 0, 50, 0.7));
            pointer-events: none;
        }
    }

    .ukse-school-single-hero__eyebrow {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .ukse-school-single-hero__logo {
        max-width: 100px;
        padding: 10px;
        border-radius: 12px;
        order: -1;
    }

    .ukse-school-single-hero__logo img {
        max-height: 80px;
    }

    .ukse-school-single-hero__cta .home-button {
        font-size: 0.9rem;
        padding: 12px 24px;
    }
}

.article-header__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-header__top .home-button {
    margin-left: auto;
}

.school-gallery-hero {
    margin: 40px 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 50, 0.12);
    overflow: hidden;
}


.school-logo-row {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    margin: 0 0 24px;
    position: relative;
    z-index: 3;
}

.school-logo {
    max-width: 264px;
    flex: 0 0 auto;
    margin-left: 80px;
    position: relative;
    z-index: 3;
}

.school-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.school-logo-row .home-button {
    margin-left: auto;
    margin-bottom: 12px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   SCHOOL OVERVIEW + KEY FACTS (Slice 1A - Premium Polish)
   Scoped to single-school pages only.
   ───────────────────────────────────────────────────────────────────────────── */

/* Base grid - stacks on mobile, side-by-side on desktop */
body.single-school .school-overview-grid {
    display: grid;
    gap: 32px;
    margin: 40px 0;
}

/* Base card styles - main content area */
body.single-school .school-overview-main {
    min-width: 0;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 50, 0.06);
    padding: clamp(20px, 4vw, 32px);
}

body.single-school .school-overview-main.full-width {
    grid-column: 1 / -1;
}

/* Premium aside card - Key Info panel */
body.single-school .school-overview-aside {
    min-width: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 18px;
    box-shadow:
        0 1px 2px rgba(0, 0, 50, 0.04),
        0 4px 12px rgba(0, 0, 50, 0.06),
        0 12px 32px rgba(0, 0, 50, 0.08);
    padding: clamp(20px, 4vw, 28px);
    border: 1px solid rgba(0, 0, 50, 0.04);
    position: relative;
    overflow: hidden;
}

/* Subtle accent line at top of aside card */
body.single-school .school-overview-aside::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lse-orange, #f58025), var(--lse-tertiary-blue, #6acaf3));
    border-radius: 18px 18px 0 0;
}

/* Tablet (769px - 1024px): Stack vertically but keep aside narrower */
@media (min-width: 769px) and (max-width: 1024px) {
    body.single-school .school-overview-grid.has-key-info {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    body.single-school .school-overview-aside {
        max-width: 380px;
    }
}

/* Desktop (1025px+): Side-by-side with equal heights */
@media (min-width: 1025px) {
    body.single-school .school-overview-grid.has-key-info {
        grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
        grid-auto-rows: 1fr;
        align-items: stretch;
    }

    body.single-school .school-overview-main,
    body.single-school .school-overview-aside {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* Desktop: H1 full width, underline own row, CTA below */
    .single-school .article-header__top {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 5px clamp(12px, 2vw, 24px);
    }
    .single-school .article-header__top .ukse-school-title {
        grid-column: 1 / -1;
        grid-row: 1;
        color: #000032;
    }
    .single-school .article-header__top .ukse-underline {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        width: 140px;
        height: 5px;
        margin: 0;
    }
    .single-school .article-header__top .home-button {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
    }
}

/* Key Info title - premium typography */
body.single-school .key-info-title {
    margin: 0 0 20px;
    padding-bottom: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--lse-dark-blue, #000032);
    border-bottom: 2px solid rgba(0, 0, 50, 0.06);
}

body.single-school .key-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Key Info items - refined spacing and hover */
body.single-school .key-info-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 50, 0.06);
    transition: background-color 0.15s ease;
}

body.single-school .key-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

body.single-school .key-info-item:first-child {
    padding-top: 0;
}

/* Subtle hover feedback */
body.single-school .key-info-item:hover {
    background-color: rgba(0, 0, 50, 0.015);
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 6px;
}

body.single-school .key-info-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--lse-dark-blue, #000032);
    flex-shrink: 0;
}

body.single-school .key-info-value {
    font-size: 0.95rem;
    color: rgba(0, 0, 50, 0.75);
    text-align: right;
    font-weight: 500;
}

.school-gallery-hero__main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.school-map {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.school-map__canvas {
    width: 100%;
    min-height: 340px;
    border-radius: 18px;
    overflow: hidden;
    background: #edf2f7;
}

.school-map__address {
    margin: 0;
    font-weight: 600;
    color: var(--lse-dark-blue, #000032);
}

.school-map__empty {
    text-align: center;
    padding: 36px;
    border-radius: 18px;
    background: #f7f9fc;
    color: rgba(0, 0, 50, 0.7);
}

.school-gallery-hero__thumbs {
    display: flex;
    gap: 12px;
    padding: 18px 24px 24px;
    background: #fafbff;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.school-gallery-hero__thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    flex: 0 0 140px;
    scroll-snap-align: center;
}

.school-gallery-hero__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,50,0.05), rgba(0,0,50,0.25));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.school-gallery-hero__thumb img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.school-gallery-hero__thumbs::-webkit-scrollbar {
    height: 8px;
}

.school-gallery-hero__thumbs::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 50, 0.2);
    border-radius: 999px;
}

.school-gallery-hero__thumbs::-webkit-scrollbar-track {
    background: rgba(0, 0, 50, 0.05);
}

.school-snapshot-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--lse-dark-blue, #000032);
}

.school-snapshot-copy {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.school-snapshot-point {
    padding: 18px 20px;
    background: rgba(230, 0, 126, 0.05);
    border-left: 4px solid var(--lse-primary-magenta, #E6007E);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,50,0.08);
}

.school-snapshot-point h2 {
    font-size: 1.6rem;
    margin: 0;
    color: var(--lse-dark-blue, #000032);
}

.school-snapshot-description p {
    margin: 0.75rem 0 0;
    line-height: 1.7;
}


.tab-title {
    display: block;
    font-size: 1.9rem;
    color: var(--lse-dark-blue, #000032);
    margin: 0 0 30px;
    padding: 0;
    text-align: center;
    width: 100%;
}

.tab-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--lse-primary-magenta, #E6007E), var(--lse-secondary-orange, #EE7218));
    margin: 15px auto 0;
}

.article-header__top .home-button {
    margin-left: auto;
}

.school-logo-row .home-button {
    margin-left: auto;
}

.school-gallery-hero__thumb:hover img,
.school-gallery-hero__thumb:focus img {
    transform: scale(1.05);
}

.school-gallery-hero__thumb:hover::after,
.school-gallery-hero__thumb:focus::after {
    opacity: 1;
}

.facilities-list,
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
}

.facilities-list li,
.services-list li {
    padding: 8px 12px;
    background: #e8f5e8;
    border-radius: 4px;
    position: relative;
    padding-left: 25px;
}

.facilities-list li::before,
.services-list li::before {
    content: "\2713";
    position: absolute;
    left: 8px;
    color: green;
    font-weight: bold;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 32px 0 20px;
}

.course-card {
    border: 2px solid var(--lse-light-gray, #e5e7eb);
    border-radius: 14px;
    background: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    border-color: var(--lse-tertiary-blue, #6acaf3);
    box-shadow: 0 12px 32px rgba(106, 202, 243, 0.25);
    transform: translateY(-4px);
}

.course-card__body {
    display: grid;
    gap: 1rem;
    padding: 24px;
    height: 100%;
}

.course-card .title {
    margin: 0;
    font-size: 1.35rem;
    color: var(--lse-structure-navy, #001437);
}

.course-card .title a {
    color: inherit;
    text-decoration: none;
}

.course-card .title a:hover {
    color: var(--lse-primary-magenta, #E6007E);
}

.course-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    background: rgba(230, 0, 126, 0.12);
    color: var(--lse-primary-magenta, #E6007E);
    font-weight: 600;
    width: fit-content;
}

.course-card__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    font-size: 0.95rem;
    color: #4b5563;
}

.course-card__meta li strong {
    color: var(--lse-structure-navy, #001437);
}

.course-card__excerpt {
    color: #374151;
    line-height: 1.7;
}

.course-card .cta-button {
    width: 100%;
    background: linear-gradient(135deg, var(--lse-primary-magenta, #E6007E), var(--lse-secondary-orange, #EE7218));
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: auto;
}

.course-card .cta-button:hover,
.course-card .cta-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(230, 0, 126, 0.25);
    color: #ffffff;
}

.school-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.school-cta {
    background: #f0f8ff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin: 40px 0;
}

.cta-buttons {
    margin-top: 20px;
}

.cta-buttons .button {
    margin: 0 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
}

/* Icon-based social links - unified brand colour */
.social-links--icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links--icons .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    background: var(--lse-primary-magenta, #E6007E);
    color: #ffffff;
    font-size: 1.1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.social-links--icons .social-icon i {
    color: #ffffff;
}

.social-links--icons .social-icon:hover,
.social-links--icons .social-icon:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 0, 126, 0.3);
    background: var(--lse-dark-blue, #000032);
}

/* Accommodation Tab Styles */
.school-accommodation-content {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin-inline: auto;
}

.accommodation-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.accommodation-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.accommodation-card {
    padding: 1.5rem 1.75rem;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 22, 85, 0.08);
    border: 1px solid rgba(0, 22, 85, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.accommodation-card:hover {
    transform: translateY(-4px);
}

.accommodation-card__logo {
    margin-bottom: 0.5rem;
}

.accommodation-card__logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* London Homestays brand */
.accommodation-card--lh {
    border-color: #2294D2;
    box-shadow: 0 16px 40px rgba(34, 148, 210, 0.15);
}

.accommodation-card--lh:hover {
    box-shadow: 0 20px 48px rgba(34, 148, 210, 0.22);
}

/* UK Student Residences brand */
.accommodation-card--uksr {
    border-color: #B1CB0C;
    box-shadow: 0 16px 40px rgba(177, 203, 12, 0.15);
}

.accommodation-card--uksr:hover {
    box-shadow: 0 20px 48px rgba(177, 203, 12, 0.22);
}

.accommodation-card--full {
    grid-column: 1 / -1;
    max-width: 600px;
    margin-inline: auto;
}

.accommodation-card__title {
    font-size: 1.35rem;
    margin: 0;
    color: var(--lse-dark-blue, #000032);
}

.accommodation-card__description {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
    flex-grow: 1;
}

/* Accommodation CTAs using .home-button base */
.accommodation-cta.home-button {
    margin-top: auto;
    font-size: 0.95rem;
    padding: 12px 24px;
    width: auto;
    text-align: center;
}

@media (max-width: 768px) {
    .school-gallery-hero__main img {
        height: 280px;
    }

    .school-gallery-hero__thumb img {
        height: 90px;
    }

    .school-gallery-hero__thumb {
        flex: 0 0 120px;
    }

    .facilities-list,
    .services-list {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    /* School overview mobile overrides (scoped to single-school) */
    body.single-school .school-overview-grid {
        gap: 24px;
        margin: 28px 0;
        padding: 0 16px; /* Horizontal breathing room for snapshot cards */
    }

    body.single-school .school-overview-grid.has-key-info {
        grid-template-columns: 1fr;
    }

    body.single-school .school-overview-grid.has-key-info .school-overview-main,
    body.single-school .school-overview-grid.has-key-info .school-overview-aside {
        grid-column: 1 / -1;
    }

    /* Remove tablet max-width on mobile - full width */
    body.single-school .school-overview-aside {
        max-width: none;
    }

    /* Accommodation cards stack on mobile */
    .accommodation-options-grid {
        grid-template-columns: 1fr;
    }

    .accommodation-card--full {
        max-width: none;
    }

    /* Logo row - fix overflow on tablet/mobile */
    .school-logo-row {
        flex-direction: column;
        align-items: center;
        margin: 24px 0 32px;
        gap: 16px;
    }

    .school-logo {
        margin-left: 0;
        transform: none;
        max-width: 200px;
    }

    .school-logo-row .home-button {
        margin-left: 0;
        margin-bottom: 0;
    }
}

/* Mobile-specific improvements at 640px */
@media (max-width: 640px) {
    /* Prevent horizontal overflow */
    .single-school article {
        overflow-x: hidden;
    }

    /* Header layout - stack vertically: H1, Underline, CTA */
    .single-school .article-header__top {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .single-school .article-header__top .ukse-school-title {
        width: 100%;
        text-align: left;
        margin-bottom: 0.5rem;
    }

    /* Mobile-only underline override - left aligned, shorter */
    .single-school .article-header__top .ukse-underline {
        display: block;
        width: 80px;
        margin-left: 0;
        margin-right: 0;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }

    /* CTA centred under title + underline */
    .single-school .article-header__top .home-button {
        align-self: center;
        margin-top: 0.5rem;
    }

    /* Hide tabs nav, show accordion toggles instead */
    body.single-school .school-details-tabs .tabs-nav[hidden] {
        display: none !important;
    }

    /* Accordion toggle buttons - now using shared .ukse-tabs__toggle class
       Legacy .school-tab-accordion-toggle kept for backward compatibility */

    /* Override shared CSS accent color for School (use orange instead of magenta) */
    body.single-school .school-details-tabs .ukse-tabs__toggle::after,
    body.single-school .school-details-tabs .ukse-tabs__toggle.active::after {
        color: var(--lse-orange, #f58025);
    }

    /* Legacy class (for any remaining inline JS instances) */
    body.single-school .school-tab-accordion-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 20px;
        margin-top: 12px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border: 1px solid rgba(0, 0, 50, 0.08);
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        color: var(--lse-dark-blue, #000032);
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: left;
    }

    body.single-school .school-tab-accordion-toggle:hover {
        border-color: rgba(0, 0, 50, 0.15);
        box-shadow: 0 2px 8px rgba(0, 0, 50, 0.06);
    }

    body.single-school .school-tab-accordion-toggle::after {
        content: '+';
        font-size: 1.25rem;
        font-weight: 400;
        color: var(--lse-orange, #f58025);
        transition: transform 0.2s ease;
    }

    body.single-school .school-tab-accordion-toggle.active {
        background: var(--lse-dark-blue, #000032);
        border-color: var(--lse-dark-blue, #000032);
        color: #ffffff;
        border-radius: 12px 12px 0 0;
        margin-bottom: 0;
    }

    body.single-school .school-tab-accordion-toggle.active::after {
        content: '\2212';
        color: var(--lse-orange, #f58025);
    }

    /* Tab content in accordion mode */
    body.single-school .school-details-tabs .tab-content {
        margin-top: 0;
        border-radius: 0 0 12px 12px;
        border: 1px solid rgba(0, 0, 50, 0.08);
        border-top: none;
    }

    body.single-school .school-details-tabs .tab-content .tab-title {
        display: none;
    }

    /* Tab content padding reduction */
    body.single-school .tab-content {
        padding: 20px 18px;
    }

    body.single-school .tab-title {
        font-size: 1.35rem;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }

    /* Accommodation mobile */
    .accommodation-card {
        padding: 20px 18px;
    }

    .accommodation-card__logo img {
        max-height: 32px;
    }

    .accommodation-card__title {
        font-size: 1.2rem;
    }

    .accommodation-cta.home-button {
        width: 100%;
        justify-content: center;
    }

    /* Social icons centered on mobile */
    .social-links--icons {
        justify-content: center;
    }

    .school-social h4 {
        text-align: center;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO V2 (OPT-IN) - Premium polish
   Enable by adding class "school-hero-v2" to <body> in single-school.php
   Positioned at EOF for cascade priority; uses body.single-school.school-hero-v2
   for higher specificity than base hero rules.
   ───────────────────────────────────────────────────────────────────────────── */

/* V2: Enhanced overlay with softer gradient */
body.single-school.school-hero-v2 .ukse-school-single-hero__overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 50, 0.75) 0%,
        rgba(0, 0, 50, 0.55) 50%,
        rgba(0, 0, 50, 0.45) 100%
    );
}

/* V2: Refined title with subtle text shadow for readability */
body.single-school.school-hero-v2 .ukse-school-single-hero__title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* V2: Tagline with better contrast */
body.single-school.school-hero-v2 .ukse-school-single-hero__tagline {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* V2: Enhanced logo card with subtle glow */
body.single-school.school-hero-v2 .ukse-school-single-hero__logo {
    box-shadow:
        0 4px 12px rgba(0, 0, 50, 0.1),
        0 12px 32px rgba(0, 0, 50, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.single-school.school-hero-v2 .ukse-school-single-hero__logo:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 16px rgba(0, 0, 50, 0.12),
        0 16px 40px rgba(0, 0, 50, 0.24),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* V2: CTA button polish - subtle hover lift */
body.single-school.school-hero-v2 .ukse-school-single-hero__cta .home-button {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.single-school.school-hero-v2 .ukse-school-single-hero__cta .home-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 128, 37, 0.3);
}

/* V2: Eyebrow with accent underline */
body.single-school.school-hero-v2 .ukse-school-single-hero__eyebrow {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}

body.single-school.school-hero-v2 .ukse-school-single-hero__eyebrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--lse-orange, #f58025);
    border-radius: 1px;
}

/* V2 Mobile adjustments */
@media (max-width: 768px) {
    body.single-school.school-hero-v2 .ukse-school-single-hero__eyebrow::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   END HERO V2 OPT-IN
   ───────────────────────────────────────────────────────────────────────────── */

/* =============================================================================
   SCHOOL MICROSITE — REDESIGN (Default)
   Active by default on all single-school pages.
   Use ?legacy=1 to revert to old styling.

   This section contains the cohesive full-page redesign.
   All selectors gated behind body.single-school.school-redesign-v1

   Sections covered:
   - School Snapshot (overview content)
   - Key Info aside
   - Gallery container + lightbox
   - Map container
   - School Info tab content
   - Facilities tab content

   NOT touched: Courses tab, Accommodation tab (keep existing card components)
   ============================================================================= */

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGN: Shared Variables & Foundations
   ───────────────────────────────────────────────────────────────────────────── */
body.single-school.school-redesign-v1 {
    --vision-card-radius: 18px;
    --vision-card-shadow:
        0 1px 3px rgba(0, 0, 50, 0.04),
        0 4px 12px rgba(0, 0, 50, 0.06),
        0 12px 28px rgba(0, 0, 50, 0.08);
    --vision-card-shadow-hover:
        0 2px 6px rgba(0, 0, 50, 0.05),
        0 8px 20px rgba(0, 0, 50, 0.08),
        0 16px 36px rgba(0, 0, 50, 0.1);
    --vision-section-gap: 48px;
    --vision-content-padding: clamp(24px, 4vw, 36px);
    --vision-text-primary: var(--lse-dark-blue, #000032);
    --vision-text-secondary: rgba(0, 0, 50, 0.75);
    --vision-text-muted: rgba(0, 0, 50, 0.6);
    --vision-border-subtle: rgba(0, 0, 50, 0.06);
    --vision-bg-soft: #f9fafb; /* Near-white with subtle cool tint - lighter, less heavy */
    --vision-bg-elevated: #edf0f3; /* Elevated surface - noticeably deeper than white cards */
    /* Home hero finder gradient: orange → magenta → blue */
    --vision-accent-gradient: linear-gradient(90deg, #EE7218 0%, #E6007E 50%, #6ACAF3 100%);
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGN: School Snapshot — Content Rhythm & Typography
   Remove promo callout feel, focus on clean editorial content.
   ───────────────────────────────────────────────────────────────────────────── */

/* Remove the magenta callout styling, make it clean content blocks */
body.single-school.school-redesign-v1 .school-snapshot-point {
    padding: 0;
    background: transparent;
    border-left: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 32px;
}

body.single-school.school-redesign-v1 .school-snapshot-point:last-child {
    margin-bottom: 0;
}

/* Snapshot title - larger, bolder, editorial feel */
body.single-school.school-redesign-v1 .school-snapshot-title {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--vision-text-primary);
    margin-bottom: 12px;
    line-height: 1.25;
}

/* Snapshot description - generous breathing room */
body.single-school.school-redesign-v1 .school-snapshot-description p {
    margin: 0 0 1em;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--vision-text-secondary);
}

body.single-school.school-redesign-v1 .school-snapshot-description p:last-child {
    margin-bottom: 0;
}

/* Overview main card - softer, more refined with subtle accent */
body.single-school.school-redesign-v1 .school-overview-main {
    position: relative;
    background: linear-gradient(45deg, #fef9f5 0%, #fff 45%, #edf8fca6 100%);
    border-radius: var(--vision-card-radius);
    box-shadow: var(--vision-card-shadow);
    /* Tighter top padding, keep sides generous */
    padding: clamp(18px, 3vw, 24px) var(--vision-content-padding) var(--vision-content-padding);
    border: 1px solid var(--vision-border-subtle);
    overflow: hidden;
}

/* Subtle gradient accent - top border line */
body.single-school.school-redesign-v1 .school-overview-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--vision-accent-gradient);
    opacity: 0.85;
}

/* Key Info aside - elegant data card */
body.single-school.school-redesign-v1 .school-overview-aside {
    background: linear-gradient(180deg, #ffffff 0%, var(--vision-bg-soft) 100%);
    border-radius: var(--vision-card-radius);
    box-shadow: var(--vision-card-shadow);
    /* Tighter top padding */
    padding: clamp(16px, 2.5vw, 22px) clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px);
    border: 1px solid var(--vision-border-subtle);
}

/* Keep gradient accent line but refine it */
body.single-school.school-redesign-v1 .school-overview-aside::before {
    height: 3px;
    background: var(--vision-accent-gradient);
    opacity: 0.9;
}

body.single-school.school-redesign-v1 .key-info-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--vision-text-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--vision-border-subtle);
}

body.single-school.school-redesign-v1 .key-info-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--vision-border-subtle);
    transition: background-color 0.15s ease;
}

body.single-school.school-redesign-v1 .key-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

body.single-school.school-redesign-v1 .key-info-item:hover {
    background-color: rgba(106, 202, 243, 0.04);
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 8px;
}

body.single-school.school-redesign-v1 .key-info-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--vision-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

body.single-school.school-redesign-v1 .key-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vision-text-primary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGN: Gallery Container — Refined Showcase
   ───────────────────────────────────────────────────────────────────────────── */

body.single-school.school-redesign-v1 .school-gallery-hero {
    background: linear-gradient(180deg, #ffffff 0%, var(--vision-bg-soft) 100%);
    border-radius: var(--vision-card-radius);
    box-shadow: var(--vision-card-shadow);
    border: 1px solid var(--vision-border-subtle);
    overflow: hidden;
    margin: var(--vision-section-gap) 0;
}

body.single-school.school-redesign-v1 .school-gallery-hero__main img {
    border-radius: 0;
    height: clamp(280px, 35vw, 420px);
}

/* Thumbnails row - refined */
body.single-school.school-redesign-v1 .school-gallery-hero__thumbs {
    background: var(--vision-bg-soft);
    padding: 16px 20px 20px;
    gap: 14px;
    border-top: 1px solid var(--vision-border-subtle);
}

body.single-school.school-redesign-v1 .school-gallery-hero__thumb {
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 130px;
    box-shadow: 0 2px 8px rgba(0, 0, 50, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.single-school.school-redesign-v1 .school-gallery-hero__thumb img {
    height: 100px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.single-school.school-redesign-v1 .school-gallery-hero__thumb:hover,
body.single-school.school-redesign-v1 .school-gallery-hero__thumb:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 50, 0.12);
}

body.single-school.school-redesign-v1 .school-gallery-hero__thumb:hover img,
body.single-school.school-redesign-v1 .school-gallery-hero__thumb:focus img {
    transform: scale(1.04);
}

/* Lightbox overlay - warmer, hint of navy */
body.single-school.school-redesign-v1 .school-lightbox {
    background: rgba(0, 0, 40, 0.92);
}

body.single-school.school-redesign-v1 .school-lightbox__image {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

body.single-school.school-redesign-v1 .school-lightbox__control {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.single-school.school-redesign-v1 .school-lightbox__control:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGN: Map Container — Integrated Card Style
   ───────────────────────────────────────────────────────────────────────────── */

body.single-school.school-redesign-v1 #school-map .school-map {
    background: #ffffff;
    border-radius: var(--vision-card-radius);
    box-shadow: var(--vision-card-shadow);
    border: 1px solid var(--vision-border-subtle);
    padding: 0;
    overflow: hidden;
}

body.single-school.school-redesign-v1 #school-map .school-map__canvas {
    min-height: clamp(280px, 30vw, 380px);
    border-radius: 0;
    background: linear-gradient(135deg, #e8f4fc 0%, #f0f7fa 100%);
}

/* Address footer - subtle bar */
body.single-school.school-redesign-v1 #school-map .school-map__address {
    margin: 0;
    padding: 16px 20px;
    background: var(--vision-bg-soft);
    border-top: 1px solid var(--vision-border-subtle);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--vision-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Address icon prefix (using unicode pin) */
body.single-school.school-redesign-v1 #school-map .school-map__address::before {
    content: '\1F4CD';
    font-size: 1.1em;
}

/* Empty state - intentional, not broken */
body.single-school.school-redesign-v1 #school-map .school-map__empty {
    padding: 48px 32px;
    background: linear-gradient(135deg, var(--vision-bg-soft) 0%, #ffffff 100%);
    border-radius: var(--vision-card-radius);
    border: 1px dashed var(--vision-border-subtle);
    color: var(--vision-text-muted);
    font-size: 1rem;
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGN: School Info Tab — Refined Typography & Contact Block
   ───────────────────────────────────────────────────────────────────────────── */

/* Info image - subtle shadow and rounded corners */
body.single-school.school-redesign-v1 #school-info .school-info-image img {
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 50, 0.1);
}

/* Body text - refined typography */
body.single-school.school-redesign-v1 #school-info .school-info-body {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--vision-text-secondary);
}

body.single-school.school-redesign-v1 #school-info .school-info-body p {
    margin-bottom: 1.25em;
}

body.single-school.school-redesign-v1 #school-info .school-info-body h3,
body.single-school.school-redesign-v1 #school-info .school-info-body h4 {
    color: var(--vision-text-primary);
    margin-top: 1.75em;
    margin-bottom: 0.75em;
    font-weight: 700;
}

/* Contact block - softer, icon-enhanced */
body.single-school.school-redesign-v1 .school-contact-block {
    margin-top: 36px;
    padding: 24px 28px;
    background: linear-gradient(180deg, var(--vision-bg-soft) 0%, #ffffff 100%);
    border-radius: 14px;
    border: 1px solid var(--vision-border-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 50, 0.04);
}

body.single-school.school-redesign-v1 .school-contact-block__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vision-text-primary);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--vision-border-subtle);
}

body.single-school.school-redesign-v1 .school-contact-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--vision-text-secondary);
}

body.single-school.school-redesign-v1 .school-contact-item:last-child {
    margin-bottom: 0;
}

body.single-school.school-redesign-v1 .school-contact-item strong {
    min-width: 70px;
    color: var(--vision-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.single-school.school-redesign-v1 .school-contact-item a {
    color: var(--lse-orange, #f58025);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

body.single-school.school-redesign-v1 .school-contact-item a:hover {
    color: var(--vision-text-primary);
    border-bottom-color: var(--lse-orange, #f58025);
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGN: School Info Panel — Wider Layout + 2-Column Grid
   Widen the content area to use container better, reduce vertical scroll.
   Convert non-highlight sections to 2-col grid on desktop.
   ───────────────────────────────────────────────────────────────────────────── */

/* Widen School Info content wrapper - align with image edges */
body.single-school.school-redesign-v1 #school-info .school-info-content {
    max-width: none; /* Remove 900px constraint */
    width: 100%;
    padding: clamp(20px, 3vw, 32px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGN: Structured Description Sections (School Info Tab)
   Renders school_description_sections repeater in Vision mode.
   Highlight section displayed first with accent styling.
   ───────────────────────────────────────────────────────────────────────────── */

/* Container for all sections - 2-col grid on desktop */
body.single-school.school-redesign-v1 .school-desc-sections {
    display: grid;
    gap: 24px;
    /* Default: single column (mobile/tablet) */
    grid-template-columns: 1fr;
}

/* Desktop: 2-column grid for non-highlight sections */
@media (min-width: 1120px) {
    body.single-school.school-redesign-v1 .school-desc-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
    /* Note: .school-desc-highlight-row has grid-column: 1 / -1 (spans both columns) */

    /* Centre lone last card when odd number of regular sections */
    body.single-school.school-redesign-v1 .school-desc-sections > article.school-desc-section:last-of-type:nth-of-type(odd) {
        grid-column: 1 / -1;
        max-width: 520px;
        justify-self: center;
    }
}

/* Individual section - clean white card */
body.single-school.school-redesign-v1 .school-desc-section {
    position: relative;
    /* Tighter top padding */
    padding: 18px 28px 24px;
    background: #ffffff;
    border: 1px solid var(--vision-border-subtle);
    border-radius: 14px;
    /* Slightly stronger shadow - between base and highlight */
    box-shadow: 0 2px 6px rgba(0, 0, 50, 0.05), 0 6px 16px rgba(0, 0, 50, 0.03);
}

/* Section title */
body.single-school.school-redesign-v1 .school-desc-section__title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--vision-text-primary);
    margin: 0 0 16px;
    line-height: 1.3;
}

/* Section body - constrained text measure for readability */
body.single-school.school-redesign-v1 .school-desc-section__body {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--vision-text-secondary);
    /* Optimal reading width - prevents overly long lines in wide cards */
    max-width: 78ch;
}

body.single-school.school-redesign-v1 .school-desc-section__body p {
    margin: 0 0 1em;
}

body.single-school.school-redesign-v1 .school-desc-section__body p:last-child {
    margin-bottom: 0;
}

body.single-school.school-redesign-v1 .school-desc-section__body ul,
body.single-school.school-redesign-v1 .school-desc-section__body ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

body.single-school.school-redesign-v1 .school-desc-section__body li {
    margin-bottom: 0.5em;
}

/* Highlighted section - white card with stronger presence */
body.single-school.school-redesign-v1 .school-desc-section.is-highlight {
    /* Tighter top padding */
    padding: 20px 32px 28px;
    background: #fefafe; /* Subtle warm tint */
    border: 1px solid rgba(0, 0, 50, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 50, 0.06), 0 12px 28px rgba(0, 0, 50, 0.05);
    overflow: hidden;
}

/* Gradient accent line on highlight */
body.single-school.school-redesign-v1 .school-desc-section.is-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--vision-accent-gradient);
    border-radius: 14px 14px 0 0;
}

body.single-school.school-redesign-v1 .school-desc-section.is-highlight .school-desc-section__title {
    font-size: clamp(1.35rem, 2.8vw, 1.65rem);
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGN: Non-Highlight Cards — Tighter Typography + Footer Affordance
   Reduces perceived empty space when cards have uneven content length.
   ───────────────────────────────────────────────────────────────────────────── */

/* Non-highlight cards: tighter padding and typography */
body.single-school.school-redesign-v1 #school-info .school-desc-section:not(.is-highlight) {
    padding: 14px 24px 22px;
    /* Reserve space for subtle footer gradient */
    padding-bottom: 28px;
}

body.single-school.school-redesign-v1 #school-info .school-desc-section:not(.is-highlight) .school-desc-section__title {
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    margin-bottom: 12px;
}

body.single-school.school-redesign-v1 #school-info .school-desc-section:not(.is-highlight) .school-desc-section__body {
    font-size: 0.98rem;
    line-height: 1.65;
}

body.single-school.school-redesign-v1 #school-info .school-desc-section:not(.is-highlight) .school-desc-section__body p {
    margin-bottom: 0.8em;
}

body.single-school.school-redesign-v1 #school-info .school-desc-section:not(.is-highlight) .school-desc-section__body p:last-child {
    margin-bottom: 0;
}

/* Subtle footer gradient affordance - gives visual "weight" to short cards */
body.single-school.school-redesign-v1 #school-info .school-desc-section:not(.is-highlight)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 50, 0) 0%,
        rgba(0, 0, 50, 0.012) 60%,
        rgba(0, 0, 50, 0.025) 100%
    );
    border-radius: 0 0 14px 14px;
    pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGN: Highlight Row — 2-Column Layout with Logo OUTSIDE Card (Desktop)
   The highlight row contains: .school-desc-highlight-card (narrower) | .school-desc-highlight-aside (logo)
   Logo is a sibling of the card, not nested inside it.
   ───────────────────────────────────────────────────────────────────────────── */

/* Highlight row - spans full width of parent grid */
body.single-school.school-redesign-v1 .school-desc-highlight-row {
    grid-column: 1 / -1;
}

/* Desktop: 2-column grid for highlight row */
@media (min-width: 1120px) {
    body.single-school.school-redesign-v1 .school-desc-highlight-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 28px;
        align-items: center;
    }

    /* Card column - prevents grid blowout */
    body.single-school.school-redesign-v1 .school-desc-highlight-card {
        min-width: 0;
    }

    /* Highlight card now fills its column naturally (not a grid itself) */
    body.single-school.school-redesign-v1 .school-desc-highlight-card .school-desc-section.is-highlight {
        display: block; /* Override any grid styling */
    }
}

/* Highlight aside - logo container (sibling of card) */
body.single-school.school-redesign-v1 .school-desc-highlight-aside {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Logo tile - understated, clean frame */
body.single-school.school-redesign-v1 .school-desc-logo-tile {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 28px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 50, 0.08);
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 50, 0.03);
}

body.single-school.school-redesign-v1 .school-desc-logo-tile img {
    display: block;
    max-height: 80px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Tablet/Mobile: hide aside, row becomes single column */
@media (max-width: 1119px) {
    body.single-school.school-redesign-v1 .school-desc-highlight-row {
        display: block; /* Single column */
    }

    body.single-school.school-redesign-v1 .school-desc-highlight-aside {
        display: none;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGN: Facilities Tab — Pill/Badge Styling
   Replace green checkmarks with brand-consistent pills.
   ───────────────────────────────────────────────────────────────────────────── */

/* Section headings */
body.single-school.school-redesign-v1 #facilities .facilities-section,
body.single-school.school-redesign-v1 #facilities .services-section {
    margin-bottom: 32px;
}

body.single-school.school-redesign-v1 #facilities .facilities-section:last-child,
body.single-school.school-redesign-v1 #facilities .services-section:last-child {
    margin-bottom: 0;
}

body.single-school.school-redesign-v1 #facilities .ukse-section-heading,
body.single-school.school-redesign-v1 #facilities h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--vision-text-primary);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--vision-border-subtle);
}

/* Facilities/Services lists - pill badges */
body.single-school.school-redesign-v1 .facilities-list,
body.single-school.school-redesign-v1 .services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

body.single-school.school-redesign-v1 .facilities-list li,
body.single-school.school-redesign-v1 .services-list li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(106, 202, 243, 0.1);
    border: 1px solid rgba(106, 202, 243, 0.2);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vision-text-primary);
    position: static;
    padding-left: 16px;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* Remove old green checkmark */
body.single-school.school-redesign-v1 .facilities-list li::before,
body.single-school.school-redesign-v1 .services-list li::before {
    content: '\2713';
    color: var(--lse-tertiary-blue, #6acaf3);
    font-weight: 700;
    font-size: 0.85em;
    position: static;
    left: auto;
}

/* Hover state - subtle lift */
body.single-school.school-redesign-v1 .facilities-list li:hover,
body.single-school.school-redesign-v1 .services-list li:hover {
    background: rgba(106, 202, 243, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(106, 202, 243, 0.15);
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGN: Tab Panel Polish — Consistent Rhythm
   ───────────────────────────────────────────────────────────────────────────── */

body.single-school.school-redesign-v1 .tab-content {
    background: #ffffff;
    border-radius: var(--vision-card-radius);
    box-shadow: var(--vision-card-shadow);
    border: 1px solid var(--vision-border-subtle);
    padding: var(--vision-content-padding);
}

body.single-school.school-redesign-v1 .tab-title {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--vision-text-primary);
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
}

/* Tab title underline - brand gradient */
body.single-school.school-redesign-v1 .tab-title::after {
    width: 80px;
    height: 3px;
    background: var(--vision-accent-gradient);
    margin-top: 14px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGN: Editorial Tab Navigation
   Remove container/track styling, make tabs text-only with strong underline.
   ───────────────────────────────────────────────────────────────────────────── */

/* Remove track/container background */
body.single-school.school-redesign-v1 .tabs-nav {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    gap: 0;
    /* Add subtle bottom border to anchor the nav */
    border-bottom: 1px solid var(--vision-border-subtle);
}

/* Tab items - generous spacing */
body.single-school.school-redesign-v1 .tabs-nav li {
    flex: 0 1 auto;
}

/* Tab links - text-only, editorial feel */
body.single-school.school-redesign-v1 .tabs-nav a {
    padding: 16px 24px 18px;
    background: transparent;
    border-radius: 0;
    color: var(--vision-text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition:
        color 0.2s ease;
}

/* Underline - hidden by default, animates in on hover/active */
body.single-school.school-redesign-v1 .tabs-nav a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--vision-accent-gradient);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover - text darkens, subtle underline preview */
body.single-school.school-redesign-v1 .tabs-nav a:hover {
    color: var(--vision-text-primary);
    background: transparent;
}

body.single-school.school-redesign-v1 .tabs-nav a:hover::after {
    transform: scaleX(0.5);
}

/* Active - strong text, full underline */
body.single-school.school-redesign-v1 .tabs-nav a.active {
    color: var(--vision-text-primary);
    background: transparent;
}

body.single-school.school-redesign-v1 .tabs-nav a.active::after {
    transform: scaleX(1);
}

/* Focus state - accessibility */
body.single-school.school-redesign-v1 .tabs-nav a:focus-visible {
    outline: 2px solid var(--lse-tertiary-blue, #6acaf3);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGN: Enquire Now CTA Tab Button
   Pill-style CTA positioned at right of tab nav. Orange-forward, distinct from tabs.
   ───────────────────────────────────────────────────────────────────────────── */

/* CTA item - push to far right */
body.single-school.school-redesign-v1 .tabs-nav__cta-item {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 8px 0;
}

/* CTA button - orange pill with subtle gradient accent underline */
body.single-school.school-redesign-v1 .tabs-nav__cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--lse-orange, #f58025);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(245, 128, 37, 0.25);
    overflow: hidden;
}

/* Subtle gradient accent line at bottom - ties into accent system */
body.single-school.school-redesign-v1 .tabs-nav__cta-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.4) 0%, rgba(230,0,126,0.6) 50%, rgba(106,202,243,0.5) 100%);
    border-radius: 1px;
    opacity: 0.7;
    transition: width 0.2s ease, opacity 0.2s ease;
}

body.single-school.school-redesign-v1 .tabs-nav__cta-btn:hover::before {
    width: 80%;
    opacity: 1;
}

/* Hover - lift + glow */
body.single-school.school-redesign-v1 .tabs-nav__cta-btn:hover {
    background: #e06d1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 128, 37, 0.4);
}

/* Active/pressed */
body.single-school.school-redesign-v1 .tabs-nav__cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(245, 128, 37, 0.3);
}

/* Focus-visible - accessibility ring */
body.single-school.school-redesign-v1 .tabs-nav__cta-btn:focus-visible {
    outline: 2px solid var(--lse-tertiary-blue, #6acaf3);
    outline-offset: 3px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGN: Tabs Attachment — Wrap & Connect Pattern
   Subtle background band behind tabs region; active tab "breaks through" to
   connect with content panel. Editorial feel, not promotional.
   ───────────────────────────────────────────────────────────────────────────── */

/* Tabs wrapper - subtle paper band behind tabs + content */
body.single-school.school-redesign-v1 .school-details-tabs {
    position: relative;
    background: var(--vision-bg-soft);
    border-radius: var(--vision-card-radius);
    padding: 0 0 24px;
    margin-top: var(--vision-section-gap);
    border: 1px solid var(--vision-border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 50, 0.03);
}

/* Tabs nav - positioned for connection */
body.single-school.school-redesign-v1 .school-details-tabs .tabs-nav {
    position: relative;
    z-index: 2;
    margin: 0 var(--vision-content-padding);
    padding-top: 8px;
    /* Border creates the "rule" that active tab breaks */
    border-bottom: 1px solid rgba(0, 0, 50, 0.1);
}

/* Active tab link - position underline to overlap border */
body.single-school.school-redesign-v1 .school-details-tabs .tabs-nav a {
    position: relative;
}

/* The underline sits exactly on the border, "breaking" it */
body.single-school.school-redesign-v1 .school-details-tabs .tabs-nav a::after {
    bottom: -1px;
    z-index: 3;
}

/* Active tab content panel - connect flush with tabs (non-School-Info tabs) */
body.single-school.school-redesign-v1 .school-details-tabs .tab-content {
    position: relative;
    z-index: 1;
    margin: 0;
    /* Remove top radius for seamless connection */
    border-radius: 0 0 var(--vision-card-radius) var(--vision-card-radius);
    /* Remove top border - connected to tabs */
    border-top: none;
    /* Subtle inner shadow at top for depth */
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 50, 0.02),
        var(--vision-card-shadow);
}

/* School Info tab - near-white bg, no card appearance */
body.single-school.school-redesign-v1 .school-details-tabs #school-info.tab-content {
    background: #fefefe;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* First tab content gets no top margin */
body.single-school.school-redesign-v1 .school-details-tabs .tab-content.active {
    margin-top: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGN: Responsive Adjustments
   ───────────────────────────────────────────────────────────────────────────── */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    body.single-school.school-redesign-v1 {
        --vision-section-gap: 40px;
        --vision-content-padding: 24px;
    }

    body.single-school.school-redesign-v1 .school-gallery-hero__thumb {
        flex: 0 0 110px;
    }

    body.single-school.school-redesign-v1 .school-gallery-hero__thumb img {
        height: 85px;
    }

    /* School Info panel - keep wide feel on tablet */
    body.single-school.school-redesign-v1 #school-info .school-info-content {
        padding: 24px;
    }

    /* Section cards - slightly tighter padding on tablet */
    body.single-school.school-redesign-v1 .school-desc-section {
        padding: 16px 22px 20px;
    }

    body.single-school.school-redesign-v1 .school-desc-section.is-highlight {
        padding: 18px 26px 24px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Tablet Tabs Fix (641-987px)
   At narrow tablet widths, 5 tabs + CTA don't fit on one row.
   Solution: Hide tab CTA, use sticky CTA bar instead (same as mobile).
   ───────────────────────────────────────────────────────────────────────────── */
@media (min-width: 641px) and (max-width: 987px) {
    /* Hide the CTA from tab row - sticky bar handles it */
    body.single-school.school-redesign-v1 .tabs-nav__cta-item {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body.single-school.school-redesign-v1 {
        --vision-section-gap: 32px;
        --vision-content-padding: 20px 18px;
    }

    body.single-school.school-redesign-v1 .school-snapshot-title {
        font-size: 1.35rem;
    }

    /* Fix: --vision-content-padding has 2 values causing invalid padding expansion */
    body.single-school.school-redesign-v1 .school-overview-main {
        padding: clamp(18px, 3vw, 24px) 18px 20px 18px;
    }

    body.single-school.school-redesign-v1 .school-gallery-hero {
        margin: 28px 0;
    }

    body.single-school.school-redesign-v1 .school-gallery-hero__thumbs {
        padding: 14px 16px 16px;
        gap: 10px;
    }

    body.single-school.school-redesign-v1 .school-gallery-hero__thumb {
        flex: 0 0 100px;
    }

    body.single-school.school-redesign-v1 .school-gallery-hero__thumb img {
        height: 75px;
    }

    body.single-school.school-redesign-v1 .school-contact-block {
        padding: 20px;
    }

    body.single-school.school-redesign-v1 .school-contact-item {
        flex-direction: column;
        gap: 4px;
    }

    body.single-school.school-redesign-v1 .school-contact-item strong {
        min-width: auto;
    }

    body.single-school.school-redesign-v1 .facilities-list li,
    body.single-school.school-redesign-v1 .services-list li {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    body.single-school.school-redesign-v1 .key-info-label {
        font-size: 0.8rem;
    }

    body.single-school.school-redesign-v1 .key-info-value {
        font-size: 0.95rem;
    }

    /* School Info panel - tighter padding on mobile */
    body.single-school.school-redesign-v1 #school-info .school-info-content {
        padding: 18px 16px;
    }

    /* Section cards - compact on mobile */
    body.single-school.school-redesign-v1 .school-desc-sections {
        gap: 18px;
    }

    body.single-school.school-redesign-v1 .school-desc-section {
        padding: 14px 18px 18px;
        border-radius: 12px;
    }

    body.single-school.school-redesign-v1 .school-desc-section.is-highlight {
        padding: 16px 20px 20px;
    }

    body.single-school.school-redesign-v1 .school-desc-section__title {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }

    body.single-school.school-redesign-v1 .school-desc-section__body {
        font-size: 0.95rem;
    }

    /* Tabs attachment - mobile accordion mode */
    body.single-school.school-redesign-v1 .school-details-tabs {
        background: transparent;
        border-radius: 0;
        margin-top: var(--vision-section-gap);
    }

    body.single-school.school-redesign-v1 .school-details-tabs .tabs-nav {
        margin: 0;
        padding-top: 0;
    }

    /* Accordion toggles - styled consistently */
    body.single-school.school-redesign-v1 .school-tab-accordion-toggle {
        display: flex;
        width: 100%;
        padding: 16px 20px;
        background: var(--vision-bg-soft);
        border: 1px solid var(--vision-border-subtle);
        border-radius: 0;
        color: var(--vision-text-primary);
        font-size: 1rem;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
        margin-top: -1px;
        transition: background-color 0.15s ease;
    }

    body.single-school.school-redesign-v1 .school-tab-accordion-toggle:first-of-type {
        border-radius: var(--vision-card-radius) var(--vision-card-radius) 0 0;
        margin-top: 0;
    }

    body.single-school.school-redesign-v1 .school-tab-accordion-toggle:hover {
        background: rgba(106, 202, 243, 0.08);
    }

    body.single-school.school-redesign-v1 .school-tab-accordion-toggle.active {
        background: #ffffff;
        border-bottom-color: transparent;
    }

    /* Mobile tab content - full border-radius when collapsed */
    body.single-school.school-redesign-v1 .school-details-tabs .tab-content {
        border-radius: 0;
        box-shadow: var(--vision-card-shadow);
        margin-bottom: 0;
    }

    body.single-school.school-redesign-v1 .school-details-tabs .tab-content.active {
        border-radius: 0 0 var(--vision-card-radius) var(--vision-card-radius);
        margin-bottom: 16px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGN: Inline Enquire CTA (Below-fold conversion moment)
   Appears after School Info sections in Vision mode.
   ───────────────────────────────────────────────────────────────────────────── */

body.single-school.school-redesign-v1 .ukse-school-inline-cta {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--vision-border-subtle);
}

body.single-school.school-redesign-v1 .ukse-school-inline-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 50, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 50, 0.04), 0 6px 16px rgba(0, 0, 50, 0.03);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient accent line at top */
body.single-school.school-redesign-v1 .ukse-school-inline-cta__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--vision-accent-gradient);
}

body.single-school.school-redesign-v1 .ukse-school-inline-cta__text {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--vision-text-primary);
}

body.single-school.school-redesign-v1 .ukse-school-inline-cta__btn {
    flex-shrink: 0;
    padding: 14px 28px;
    background: var(--lse-orange, #f58025);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

body.single-school.school-redesign-v1 .ukse-school-inline-cta__btn:hover {
    background: #e06d1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 128, 37, 0.35);
}

body.single-school.school-redesign-v1 .ukse-school-inline-cta__btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(245, 128, 37, 0.25);
}

/* Mobile CTA: stack vertically */
@media (max-width: 640px) {
    body.single-school.school-redesign-v1 .ukse-school-inline-cta__inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px 24px;
    }

    body.single-school.school-redesign-v1 .ukse-school-inline-cta__btn {
        width: 100%;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   END VISION PASS (Preview Mode)
   ───────────────────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────────
   MODAL Z-INDEX FIX (2026-01-06)
   Issue: Course enquiry modal (#ukse-course-enquire-modal) is inside
   #courses.tab-content (z-index: 1), which is a sibling to .tabs-nav (z-index: 2).
   The modal is trapped in the lower stacking context and cannot escape.
   Fix: Reset z-index on tab-content and tabs-nav when modal is open.
   Specificity must match existing selectors (0,4,1) to override.
   ───────────────────────────────────────────────────────────────────────────── */
body.ukse-modal-open.single-school.school-redesign-v1 .school-details-tabs .tab-content {
    z-index: auto;
}

body.ukse-modal-open.single-school.school-redesign-v1 .school-details-tabs .tabs-nav {
    z-index: auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MOBILE STICKY CTA BAR (2026-01-06)
   Shows after scrolling past hero; mobile only (<768px)
   ───────────────────────────────────────────────────────────────────────────── */

/* Hidden by default */
.ukse-school-sticky-cta {
    display: none;
}

/* Mobile only */
@media (max-width: 767px) {
    body.single-school.school-redesign-v1 .ukse-school-sticky-cta {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999; /* Below modal overlay (1000+) */
        background: #ffffff;
        box-shadow: 0 -4px 20px rgba(9, 55, 79, 0.15);
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

    body.single-school.school-redesign-v1 .ukse-school-sticky-cta.is-visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    body.single-school.school-redesign-v1 .ukse-school-sticky-cta__btn {
        display: block;
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        color: #ffffff;
        background: var(--lse-orange, #f58025);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.1s ease;
        -webkit-tap-highlight-color: transparent;
    }

    body.single-school.school-redesign-v1 .ukse-school-sticky-cta__btn:hover,
    body.single-school.school-redesign-v1 .ukse-school-sticky-cta__btn:focus {
        background: #e06d1a;
    }

    body.single-school.school-redesign-v1 .ukse-school-sticky-cta__btn:active {
        transform: scale(0.98);
    }

    /* Add bottom padding to body so content isn't obscured */
    body.single-school.school-redesign-v1 {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    /* Hide sticky bar when modal is open */
    body.ukse-modal-open.single-school.school-redesign-v1 .ukse-school-sticky-cta {
        display: none;
    }
}

/* Tablet sticky CTA (641-987px) - same behaviour as mobile */
@media (min-width: 641px) and (max-width: 987px) {
    body.single-school.school-redesign-v1 .ukse-school-sticky-cta {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        background: #ffffff;
        box-shadow: 0 -4px 20px rgba(9, 55, 79, 0.15);
        padding: 12px 24px;
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

    body.single-school.school-redesign-v1 .ukse-school-sticky-cta.is-visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    body.single-school.school-redesign-v1 .ukse-school-sticky-cta__btn {
        display: block;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 14px 32px;
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        color: #ffffff;
        background: var(--lse-orange, #f58025);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.1s ease;
    }

    body.single-school.school-redesign-v1 .ukse-school-sticky-cta__btn:hover,
    body.single-school.school-redesign-v1 .ukse-school-sticky-cta__btn:focus {
        background: #e06d1a;
    }

    body.single-school.school-redesign-v1 .ukse-school-sticky-cta__btn:active {
        transform: scale(0.98);
    }

    /* Add bottom padding to body so content isn't obscured */
    body.single-school.school-redesign-v1 {
        padding-bottom: 72px;
    }

    /* Hide sticky bar when modal is open */
    body.ukse-modal-open.single-school.school-redesign-v1 .ukse-school-sticky-cta {
        display: none;
    }
}
