.theme-tiss-sse-legacy {
    --legacy-rose: #bf3a60;
    --legacy-rose-deep: #8d2e4a;
    --legacy-ink: #2f1a22;
    --legacy-blush: #f5dbe4;
    --legacy-soft: #fdf7f9;
    --legacy-border: #e7d0d9;
    --legacy-blue: #1f5f8a;
    --legacy-blue-soft: #2f7cad;
    --legacy-green: #30a565;
    font-family: var(--theme-typography-body-font, var(--font-body));
    color: var(--legacy-ink);
    background: radial-gradient(circle at right top, #ffffff 0, #fff9fb 40%, #f9eef2 100%);
}

.theme-tiss-sse-legacy h1,
.theme-tiss-sse-legacy h2,
.theme-tiss-sse-legacy h3,
.theme-tiss-sse-legacy h4 {
    font-family: var(--theme-typography-heading-font, var(--font-heading));
    letter-spacing: 0.01em;
    color: #301721;
}

.theme-tiss-sse-legacy .legacy-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--legacy-border);
}

.theme-tiss-sse-legacy .legacy-topbar-inner {
    width: min(1260px, 96vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.theme-tiss-sse-legacy .legacy-brandmark-image {
    width: 100%;
    height: 90px;
    object-fit: contain;
}

.theme-tiss-sse-legacy .secondary-nav-left {
    display: none;
}

.theme-tiss-sse-legacy .nav-toggle {
    display: none;
}

.theme-tiss-sse-legacy .legacy-title-main {
    margin: 0;
    font-size: clamp(1.42rem, 2vw, 2.1rem);
    font-weight: 700;
    line-height: 1;
}

.theme-tiss-sse-legacy .legacy-title-sub {
    margin: 0.3rem 0 0;
    font-size: clamp(1rem, 1.35vw, 1.3rem);
    font-weight: 600;
    color: #5a2e3d;
}

.theme-tiss-sse-legacy .legacy-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 9999;
    /* background: rgba(47, 26, 34, 0.92); */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0 0 0 0.55rem;
    padding: 0.3rem 0.75rem;
}

@media (max-width: 768px) {
    .theme-tiss-sse-legacy .legacy-topbar-inner {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        padding: 0.4rem 0.5rem;
        gap: 0.3rem;
    }

    .theme-tiss-sse-legacy .secondary-nav-left {
        display: flex;
        align-items: center;
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .theme-tiss-sse-legacy .secondary-nav-left::-webkit-scrollbar {
        display: none;
    }

    .theme-tiss-sse-legacy .secondary-nav-left .nav-list {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.1rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .theme-tiss-sse-legacy .secondary-nav-left .nav-item {
        display: inline-flex;
        flex-shrink: 0;
    }

    .theme-tiss-sse-legacy .secondary-nav-left .nav-item.has-children > .submenu {
        display: none;
    }

    .theme-tiss-sse-legacy .secondary-nav-left [data-nav-link] {
        padding: 0.1rem 0.3rem;
        font-size: 0.72rem;
        font-weight: 500;
        color: #555;
        text-decoration: none;
        border: none;
        border-radius: 0;
        min-height: auto;
        white-space: nowrap;
        background: none;
    }

    .theme-tiss-sse-legacy .secondary-nav-left [data-nav-link]:hover {
        color: #222;
        background: none;
    }

    .theme-tiss-sse-legacy .legacy-tools {
        position: static;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-radius: 0;
        padding: 0;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        gap: 0.15rem;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }

    .theme-tiss-sse-legacy .legacy-tools .legacy-social {
        border-right: 1px solid rgba(0,0,0,0.12);
        padding-right: 0.3rem;
        gap: 0.15rem;
        flex-shrink: 0;
    }

    .theme-tiss-sse-legacy .legacy-tools .accessibility-toolbar {
        gap: 0.1rem;
        flex-wrap: nowrap;
    }

    .theme-tiss-sse-legacy .legacy-tools .accessibility-label,
    .theme-tiss-sse-legacy .legacy-tools .skip-link,
    .theme-tiss-sse-legacy .legacy-tools .accessibility-link {
        display: none;
    }

    .theme-tiss-sse-legacy .legacy-tools .accessibility-btn {
        font-size: 0.65rem;
        padding: 0.1rem 0.25rem;
        min-height: auto;
    }

    .theme-tiss-sse-legacy .legacy-tools #lang-switcher {
        font-size: 0.6rem;
        padding: 0.08rem 0.2rem;
        max-width: 60px;
    }

    .theme-tiss-sse-legacy .legacy-social-link {
        padding: 0.15rem;
    }

    .theme-tiss-sse-legacy .legacy-social-icon {
        width: 14px;
        height: 14px;
    }

    .theme-tiss-sse-legacy .legacy-brandmark {
        display: block;
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
    }

    .theme-tiss-sse-legacy .nav-toggle {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        align-self: center;
        margin: 0;
        flex-shrink: 0;
    }

    .theme-tiss-sse-legacy .legacy-brandmark .legacy-brandmark-main {
        display: block;
        width: 220px;
        height: auto;
        max-width: none;
        object-fit: contain;
    }

    .theme-tiss-sse-legacy .legacy-brandmark .legacy-brandmark-mini {
        display: none;
    }
}

.theme-tiss-sse-legacy .legacy-tools .accessibility-toolbar {
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    border: 0;
    gap: 0.35rem;
}


/* Separator between social icons and accessibility toolbar */

.theme-tiss-sse-legacy .legacy-tools .legacy-social {
    padding-right: 0.45rem;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.theme-tiss-sse-legacy .top-strip .accessibility-toolbar {
    margin-left: auto;
}

.theme-tiss-sse-legacy .legacy-tools .accessibility-btn,
.theme-tiss-sse-legacy .legacy-tools .accessibility-select,
.theme-tiss-sse-legacy .legacy-tools .accessibility-link {
    font-size: 0.76rem;
}


/* Language switcher — compact top-right styling */

.theme-tiss-sse-legacy .legacy-tools #lang-switcher {
    font-size: 0.75rem;
    border: 1px solid var(--legacy-border);
    border-radius: 4px;
    padding: 0.18rem 0.5rem;
    background: #fff;
    color: var(--legacy-ink);
    cursor: pointer;
    outline-offset: 2px;
}

.theme-tiss-sse-legacy .legacy-tools .accessibility-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #000;
    letter-spacing: 0.02em;
}

.theme-tiss-sse-legacy .legacy-social {
    display: flex;
    gap: 0.28rem;
    align-items: center;
}

.theme-tiss-sse-legacy .legacy-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: #f4f4f6;
    border: 1px solid #ddd;
    color: #444;
    text-decoration: none;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.theme-tiss-sse-legacy .legacy-social-link:hover,
.theme-tiss-sse-legacy .legacy-social-link:focus-visible {
    transform: translateY(-3px) scale(1.18);
    border-color: transparent;
}


/* Brand filled — default state (white icon on brand bg) */

.theme-tiss-sse-legacy .legacy-social-link.social-facebook {
    background: #1877F2;
    color: #fff;
    border-color: #1877F2;
}

.theme-tiss-sse-legacy .legacy-social-link.social-linkedin {
    background: #0A66C2;
    color: #fff;
    border-color: #0A66C2;
}

.theme-tiss-sse-legacy .legacy-social-link.social-youtube {
    background: #FF0000;
    color: #fff;
    border-color: #FF0000;
}

.theme-tiss-sse-legacy .legacy-social-link.social-instagram {
    background: #E1306C;
    color: #fff;
    border-color: #E1306C;
}

.theme-tiss-sse-legacy .legacy-social-link.social-twitter,
.theme-tiss-sse-legacy .legacy-social-link.social-x {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}


/* Hover — darker shade + lift + glow */

.theme-tiss-sse-legacy .legacy-social-link.social-facebook:hover,
.theme-tiss-sse-legacy .legacy-social-link.social-facebook:focus-visible {
    background: #0d5fd4;
    border-color: #0d5fd4;
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.55);
}

.theme-tiss-sse-legacy .legacy-social-link.social-linkedin:hover,
.theme-tiss-sse-legacy .legacy-social-link.social-linkedin:focus-visible {
    background: #084fa3;
    border-color: #084fa3;
    box-shadow: 0 6px 18px rgba(10, 102, 194, 0.55);
}

.theme-tiss-sse-legacy .legacy-social-link.social-youtube:hover,
.theme-tiss-sse-legacy .legacy-social-link.social-youtube:focus-visible {
    background: #cc0000;
    border-color: #cc0000;
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.55);
}

.theme-tiss-sse-legacy .legacy-social-link.social-instagram:hover,
.theme-tiss-sse-legacy .legacy-social-link.social-instagram:focus-visible {
    background: #c12560;
    border-color: #c12560;
    box-shadow: 0 6px 18px rgba(225, 48, 108, 0.55);
}

.theme-tiss-sse-legacy .legacy-social-link.social-twitter:hover,
.theme-tiss-sse-legacy .legacy-social-link.social-twitter:focus-visible,
.theme-tiss-sse-legacy .legacy-social-link.social-x:hover,
.theme-tiss-sse-legacy .legacy-social-link.social-x:focus-visible {
    background: #444;
    border-color: #444;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.50);
}

.theme-tiss-sse-legacy .legacy-social-icon {
    width: 0.78rem;
    height: 0.78rem;
    display: block;
}

.theme-tiss-sse-legacy .legacy-social-fallback {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.theme-tiss-sse-legacy .legacy-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #2d87bf 0, #1f6f9f 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.52rem 1.15rem;
}

.theme-tiss-sse-legacy .legacy-nav-wrap {
    background: #fff;
    border-bottom: 1px solid var(--legacy-border);
}

.theme-tiss-sse-legacy .legacy-nav-inner {
    width: min(1260px, 96vw);
    margin: 0 auto;
    display: flow;
    align-items: center;
    min-height: 3rem;
}

.theme-tiss-sse-legacy .legacy-nav-inner .nav-list {
    justify-content: flex-end;
    width: 100%;
}

.theme-tiss-sse-legacy .legacy-nav-inner [data-nav-link] {
    font-size: 1.02rem;
    font-weight: 700;
    color: #2e2232;
    border-bottom: 3px solid transparent;
    padding: 0.8rem 0.5rem 0.55rem;
    text-decoration: none;
}

.theme-tiss-sse-legacy .legacy-nav-inner [data-nav-link]:hover,
.theme-tiss-sse-legacy .legacy-nav-inner [data-nav-link].nav-active,
.theme-tiss-sse-legacy .legacy-nav-inner [data-nav-link].nav-parent-active {
    color: #8a2945;
    border-bottom-color: #c63b61;
}

.theme-tiss-sse-legacy .legacy-call-rail {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #1f6f9f;
    color: #fff;
    text-decoration: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.02em;
    padding: 0.9rem 0.45rem;
    border-radius: 0.6rem 0 0 0.6rem;
    font-weight: 700;
    z-index: 1200;
}

.theme-tiss-sse-legacy .legacy-page-wrap {
    width: 100%;
    margin: -1% auto;
    padding: 0.5rem 0 0;
}

.theme-tiss-sse-legacy .content-card,
.theme-tiss-sse-legacy .cms-section {
    width: 90%;
    margin: 0 auto 1.8rem;
    border: 1px solid #e4c9d3;
    border-radius: 10px;
    background: #f6ecf0;
    box-shadow: 0 8px 20px rgba(59, 24, 39, 0.08);
}

.theme-tiss-sse-legacy .cms-section__title {
    color: #5f1a30;
    font-size: clamp(1.28rem, 2vw, 1.7rem);
}

.theme-tiss-sse-legacy .module-card {
    border: 1px solid #e7ced8;
    border-radius: 10px;
    background: #f9f1f4;
    box-shadow: 0 8px 18px rgba(59, 24, 39, 0.08);
}

.theme-tiss-sse-legacy .cms-section .module-card,
.theme-tiss-sse-legacy .cms-section--gallery-grid .gallery-grid-card {
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08), 0 16px 28px rgba(15, 23, 42, 0.12);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    transform: translateZ(0);
}

.theme-tiss-sse-legacy .cms-section .module-card:hover,
.theme-tiss-sse-legacy .cms-section--gallery-grid .gallery-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1), 0 22px 40px rgba(15, 23, 42, 0.16);
}

@media (prefers-reduced-motion: reduce) {
    .theme-tiss-sse-legacy .cms-section .module-card,
    .theme-tiss-sse-legacy .cms-section--gallery-grid .gallery-grid-card {
        transition: none;
    }
    .theme-tiss-sse-legacy .cms-section .module-card:hover,
    .theme-tiss-sse-legacy .cms-section--gallery-grid .gallery-grid-card:hover {
        transform: none;
    }
}

.theme-tiss-sse-legacy .cms-section--programme-cards .module-card,
.theme-tiss-sse-legacy .cms-section--news-list .module-card {
    padding: 1rem;
}

.theme-tiss-sse-legacy .cms-section--programme-cards .programme-card-image-wrap,
.theme-tiss-sse-legacy .cms-section--news-list .news-card-image-wrap {
    margin: -0.2rem -0.2rem 0.9rem;
}

.theme-tiss-sse-legacy .cms-section--programme-cards .programme-card-image,
.theme-tiss-sse-legacy .cms-section--news-list .news-card-image {
    width: 100%;
    height: 172px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ead3da;
    display: block;
    background: #f6e7ec;
}

.theme-tiss-sse-legacy .cms-section--gallery-grid .gallery-grid {
    display: grid;
    gap: 1rem;
}

.theme-tiss-sse-legacy .cms-section--gallery-grid .gallery-grid-card {
    border: 1px solid #ead3da;
    border-radius: 12px;
    background: #f9f1f4;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(59, 24, 39, 0.08);
}

.theme-tiss-sse-legacy .cms-section--gallery-grid .gallery-grid-media {
    aspect-ratio: 4 / 3;
    background: #f6e7ec;
}

.theme-tiss-sse-legacy .cms-section--gallery-grid .gallery-grid-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: auto;
}

.theme-tiss-sse-legacy .cms-section--gallery-grid .gallery-grid-caption {
    margin: 0;
    padding: 0.65rem 0.8rem 0.8rem;
    line-height: 1.5;
}

.theme-tiss-sse-legacy .legacy-home {
    display: grid;
    gap: 1.2rem;
    padding-bottom: 1.4rem;
}

.theme-tiss-sse-legacy .legacy-hero {
    position: relative;
    width: 101%;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
    overflow: hidden;
}

.theme-tiss-sse-legacy .legacy-hero-track {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    max-height: 600px;
    background: #1a0d13;
}

@media (max-width: 1024px) {
    .theme-tiss-sse-legacy .legacy-hero-track {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    .theme-tiss-sse-legacy .legacy-hero-track {
        aspect-ratio: 4 / 3;
    }
}

.theme-tiss-sse-legacy .legacy-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
}

.theme-tiss-sse-legacy .legacy-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.theme-tiss-sse-legacy .legacy-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.theme-tiss-sse-legacy .legacy-slide video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.theme-tiss-sse-legacy .legacy-hero-stats {
    display: grid;
    grid-template-columns: repeat(var(--legacy-stats-count, 4), minmax(0, 1fr));
    background: linear-gradient(180deg, rgba(148, 31, 64, 0.76) 0, rgba(126, 24, 53, 0.83) 100%);
}

.theme-tiss-sse-legacy .legacy-stat-card {
    padding: 0.9rem 0.8rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-tiss-sse-legacy .legacy-stat-card:last-child {
    border-right: 0;
}

.theme-tiss-sse-legacy .legacy-stat-num {
    margin: 0;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(1.65rem, 2.1vw, 2.2rem);
    line-height: 1;
    color: #fff;
}

.theme-tiss-sse-legacy .legacy-stat-label {
    margin: 0.25rem 0 0;
    color: #ffeef4;
    font-size: 0.96rem;
}

.theme-tiss-sse-legacy .legacy-news-row {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(250px, 1fr);
    gap: 1rem;
}

.theme-tiss-sse-legacy .legacy-news-panel,
.theme-tiss-sse-legacy .legacy-side-card,
.theme-tiss-sse-legacy .legacy-leadership,
.theme-tiss-sse-legacy .legacy-gallery,
.theme-tiss-sse-legacy .legacy-programmes,
.theme-tiss-sse-legacy .legacy-badge-strip {
    background: var(--legacy-soft);
    border: 1px solid var(--legacy-border);
    border-radius: 0.5rem;
}

.theme-tiss-sse-legacy .legacy-news-panel,
.theme-tiss-sse-legacy .legacy-leadership,
.theme-tiss-sse-legacy .legacy-gallery,
.theme-tiss-sse-legacy .legacy-programmes {
    padding: 1rem;
}

.theme-tiss-sse-legacy .legacy-news-panel h2,
.theme-tiss-sse-legacy .legacy-leadership h2,
.theme-tiss-sse-legacy .legacy-gallery h2,
.theme-tiss-sse-legacy .legacy-about h2 {
    margin: 0 0 0.75rem;
    border-bottom: 3px solid #dcafbe;
    padding-bottom: 0.26rem;
    display: inline-block;
    font-size: clamp(1.7rem, 2.5vw, 2.1rem);
}

.theme-tiss-sse-legacy .legacy-news-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 0.9rem;
}

.theme-tiss-sse-legacy .legacy-news-feature img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    border-radius: 0.45rem;
}

.theme-tiss-sse-legacy .legacy-news-feature h3 {
    margin: 0;
    font-size: 1.34rem;
    line-height: 1.18;
}

.theme-tiss-sse-legacy .legacy-news-feature p {
    margin: 0.55rem 0;
    color: #493340;
    line-height: 1.5;
}

.theme-tiss-sse-legacy .legacy-news-feature a {
    color: #842843;
    font-weight: 700;
}

.theme-tiss-sse-legacy .legacy-news-carousel {
    position: relative;
    overflow: hidden;
    padding-bottom: 2rem;
}

.theme-tiss-sse-legacy .legacy-news-carousel .carousel-viewport {
    position: relative;
    min-height: 0;
}

.theme-tiss-sse-legacy .legacy-news-carousel .legacy-news-feature {
    min-height: 0;
}

.theme-tiss-sse-legacy .legacy-news-carousel .carousel-slide {
    display: none;
    background: transparent;
}

.theme-tiss-sse-legacy .legacy-news-carousel .carousel-slide.is-active {
    display: grid;
    animation: legacy-news-slide-in 0.35s ease;
}

@keyframes legacy-news-slide-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.theme-tiss-sse-legacy .legacy-news-carousel .carousel-arrow {
    width: 34px;
    height: 34px;
    top: calc(50% - 1rem);
    background: rgba(74, 31, 51, 0.72);
}

.theme-tiss-sse-legacy .legacy-news-carousel .carousel-arrow:hover {
    background: rgba(74, 31, 51, 0.88);
}

.theme-tiss-sse-legacy .legacy-news-carousel .carousel-dots {
    bottom: 0.4rem;
}

.theme-tiss-sse-legacy .legacy-news-carousel .carousel-dot {
    background: rgba(132, 40, 67, 0.35);
}

.theme-tiss-sse-legacy .legacy-news-carousel .carousel-dot.is-active {
    background: #842843;
}

.theme-tiss-sse-legacy .legacy-side-cards {
    display: grid;
    gap: 0.85rem;
}

.theme-tiss-sse-legacy .legacy-side-card {
    padding: 0.9rem;
    background: #f8e8ee;
}

.theme-tiss-sse-legacy .legacy-side-card h3 {
    margin: 0;
    border-bottom: 3px solid #dcafbe;
    padding-bottom: 0.22rem;
    display: inline-block;
    font-size: 1.4rem;
}

.theme-tiss-sse-legacy .legacy-side-card ul {
    margin: 0.65rem 0 0;
    padding-left: 1.05rem;
    display: grid;
    gap: 0.5rem;
}

.theme-tiss-sse-legacy .legacy-side-card li,
.theme-tiss-sse-legacy .legacy-side-card a {
    color: #4a2f3a;
}

.theme-tiss-sse-legacy .legacy-leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.theme-tiss-sse-legacy .legacy-leader-card {
    background: #f7eaf0;
    border: 1px solid #e7ced8;
    border-radius: 0.55rem;
    padding: 0.8rem;
    text-align: center;
}

.theme-tiss-sse-legacy .legacy-leader-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.theme-tiss-sse-legacy .legacy-leader-card h3 {
    margin: 0.62rem 0 0.2rem;
    font-size: 1.2rem;
}

.theme-tiss-sse-legacy .legacy-leader-card p {
    margin: 0;
    color: #664857;
}

.theme-tiss-sse-legacy .legacy-badge-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 0.8rem;
    text-align: center;
}

.theme-tiss-sse-legacy .legacy-badge-strip span {
    border: 1px dashed #d9b9c5;
    border-radius: 999px;
    padding: 0.5rem 0.45rem;
    font-weight: 700;
    color: #724053;
    background: #fff;
    font-size: 0.88rem;
}

.theme-tiss-sse-legacy .legacy-about {
    border-radius: 0.5rem;
    padding: 1.2rem;
    min-height: 320px;
    color: #fff;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 100vmax rgba(16, 18, 25, 0.08);
}

.theme-tiss-sse-legacy .legacy-about h2 {
    color: #fff;
    border-bottom-color: #f3ccd9;
}

.theme-tiss-sse-legacy .legacy-about-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.25rem 0 0.85rem;
}

.theme-tiss-sse-legacy .legacy-about-tabs button {
    border: 0;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.84);
    color: #28131d;
    font-weight: 700;
    padding: 0.36rem 1rem;
}

.theme-tiss-sse-legacy .legacy-about-tabs button.is-active {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(235, 149, 170, 0.35);
}

.theme-tiss-sse-legacy .legacy-about p {
    margin: 0;
    max-width: 72ch;
    line-height: 1.55;
}

.theme-tiss-sse-legacy .legacy-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.theme-tiss-sse-legacy .legacy-gallery-grid figure {
    margin: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #ead3da;
}

.theme-tiss-sse-legacy .legacy-gallery-grid img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.theme-tiss-sse-legacy .legacy-programmes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.theme-tiss-sse-legacy .legacy-programmes>h2 {
    grid-column: 1 / -1;
    margin: 0;
}

.theme-tiss-sse-legacy .legacy-programme-card {
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid #e4c9d4;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 12px rgba(47, 26, 34, 0.07);
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.theme-tiss-sse-legacy .legacy-programme-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 44px rgba(191, 58, 96, 0.18), 0 5px 14px rgba(0, 0, 0, 0.10);
    border-color: #bf3a60;
}

.theme-tiss-sse-legacy .legacy-programme-card img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    display: block;
}

.theme-tiss-sse-legacy .legacy-programme-content {
    padding: 0.82rem;
    background: linear-gradient(180deg, rgba(191, 58, 96, 0.08) 0, #fff 66%);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.theme-tiss-sse-legacy .legacy-programme-content h3 {
    margin: 0;
    color: #ffffff;
    background: linear-gradient(120deg, var(--legacy-green) 0, var(--legacy-blue) 100%);
    padding: 0.56rem 0.62rem;
    border-radius: 0.45rem;
    font-size: 1.4rem;
    line-height: 1;
}

.theme-tiss-sse-legacy .legacy-programme-content p {
    margin: 0.72rem 0;
    color: #4f3240;
    min-height: 70px;
}

.theme-tiss-sse-legacy .legacy-programme-actions {
    display: flex;
    gap: 0.55rem;
    margin-top: auto;
}

.theme-tiss-sse-legacy .legacy-programme-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.32rem 0.8rem;
    background: #e8f4ff;
    color: #22577f;
    border: 1px solid #bbd6eb;
}


/* ── Footer redesign ── */

.theme-tiss-sse-legacy .legacy-footer {
    margin-top: 2.5rem;
    /* background: linear-gradient(155deg, #2b0e1c 0%, #1a0f26 55%, #0f2540 100%);
   */
    background: #480a28;
    color: #e8d0d9;
}

.theme-tiss-sse-legacy .legacy-footer-body {
    padding: 3rem 0 2rem;
}

.theme-tiss-sse-legacy .legacy-footer-inner {
    width: min(1260px, 96vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.theme-tiss-sse-legacy .legacy-footer-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    display: block;
    margin-bottom: 0.75rem;
    filter: brightness(0) invert(1) opacity(0.88);
}

.theme-tiss-sse-legacy .legacy-footer-sitename {
    margin: 0;
    font-family: var(--font-heading, serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.theme-tiss-sse-legacy .legacy-footer-tagline {
    margin: 0.25rem 0 0.65rem;
    font-size: 0.78rem;
    color: #d4a8bc;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.theme-tiss-sse-legacy .legacy-footer-blurb {
    margin: 0 0 1.1rem;
    font-size: 0.84rem;
    color: #ae8a9a;
    line-height: 1.6;
    max-width: 28ch;
}

.theme-tiss-sse-legacy .legacy-footer-social {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.theme-tiss-sse-legacy .legacy-footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e0c8d2;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.theme-tiss-sse-legacy .legacy-footer-social-link:hover {
    background: var(--legacy-rose, #bf3a60);
    border-color: var(--legacy-rose, #bf3a60);
}

.theme-tiss-sse-legacy .legacy-footer-social-link svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-tiss-sse-legacy .legacy-footer-col-title {
    margin: 0 0 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--legacy-rose, #bf3a60);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(191, 58, 96, 0.3);
}

.theme-tiss-sse-legacy .legacy-footer-links-2col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 1rem;
}

.theme-tiss-sse-legacy .legacy-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: auto;
    margin: 0;
    padding: 0;
    grid-template-columns: none;
}

.theme-tiss-sse-legacy .legacy-footer-links a,
.theme-tiss-sse-legacy .legacy-footer-list a {
    color: #c0a0b0;
    text-decoration: none;
    font-size: 0.86rem;
    line-height: 1.4;
    display: block;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.theme-tiss-sse-legacy .legacy-footer-links a:hover,
.theme-tiss-sse-legacy .legacy-footer-list a:hover {
    color: #fff;
    padding-left: 4px;
}

.theme-tiss-sse-legacy .legacy-footer-all-link {
    font-weight: 700;
    color: var(--legacy-rose, #bf3a60) !important;
}

.theme-tiss-sse-legacy .legacy-footer-all-link:hover {
    color: #e86090 !important;
}

.theme-tiss-sse-legacy .legacy-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.theme-tiss-sse-legacy .legacy-footer-address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.theme-tiss-sse-legacy .legacy-footer-address p {
    margin: 0;
    font-size: 0.84rem;
    color: #c0a0b0;
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.theme-tiss-sse-legacy .legacy-footer-address p:first-child {
    display: block;
}

.theme-tiss-sse-legacy .legacy-footer-address svg {
    flex-shrink: 0;
    margin-top: 3px;
    fill: none;
    stroke: var(--legacy-rose, #bf3a60);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-tiss-sse-legacy .legacy-footer-address a {
    color: #c0a0b0;
    text-decoration: none;
    transition: color 0.15s ease;
}

.theme-tiss-sse-legacy .legacy-footer-address a:hover {
    color: #fff;
}


/* Footer map widget */

.theme-tiss-sse-legacy .legacy-footer-map {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.theme-tiss-sse-legacy .legacy-footer-map .content-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0;
    box-shadow: none;
}

.theme-tiss-sse-legacy .legacy-footer-map [id^="google-map-"] {
    border-radius: 10px;
}

.theme-tiss-sse-legacy .legacy-footer-map [id^="google-map-placeholder-"] {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    color: #c0a0b0;
    border-radius: 10px !important;
    height: 200px !important;
}

.theme-tiss-sse-legacy .legacy-footer-map [id^="google-map-"][style*="display:none"]+* {
    display: none !important;
}

.theme-tiss-sse-legacy .legacy-footer-bar {
    background: rgba(0, 0, 0, 0.38);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.theme-tiss-sse-legacy .legacy-footer-bar-inner {
    width: min(1260px, 96vw);
    margin: 0 auto;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.theme-tiss-sse-legacy .legacy-footer-bar span {
    font-size: 0.8rem;
    /* color: #8a6878; */
    color: #fff;
}

.theme-tiss-sse-legacy .legacy-footer-bar-links {
    display: flex;
    gap: 1.2rem;
}

.theme-tiss-sse-legacy .legacy-footer-bar-links a {
    font-size: 0.8rem;
    /* color: #8a6878; */
    color: #fff;
    text-decoration: none;
    transition: color 0.15s ease;
}

.theme-tiss-sse-legacy .legacy-footer-bar-links a:hover {
    color: #fff;
}

.theme-tiss-sse-legacy .reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.theme-tiss-sse-legacy .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ── Video Embed Section ── */

.theme-tiss-sse-legacy .legacy-video-embed-section {
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #0d0a0f 0%, #1a0b14 50%, #0d1520 100%);
    padding: 3rem 0 2.5rem;
    overflow: hidden;
}


/* animated background dots */

.theme-tiss-sse-legacy .legacy-video-embed-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(191, 58, 96, 0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}


/* rose glow bar at top */

.theme-tiss-sse-legacy .legacy-video-embed-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--legacy-rose), var(--legacy-blue-soft), var(--legacy-rose), transparent);
    border-radius: 0 0 4px 4px;
    animation: ve-glow-bar 4s ease-in-out infinite alternate;
}

@keyframes ve-glow-bar {
    from {
        opacity: 0.5;
        left: 20%;
        right: 20%;
    }
    to {
        opacity: 1;
        left: 5%;
        right: 5%;
    }
}


/* wrapper constrains max-width but lets the video bleed */

.theme-tiss-sse-legacy .legacy-video-wrap {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* corner accent lines */

.theme-tiss-sse-legacy .legacy-video-wrap::before,
.theme-tiss-sse-legacy .legacy-video-wrap::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--legacy-rose);
    border-style: solid;
    z-index: 3;
    pointer-events: none;
    transition: width 0.4s ease, height 0.4s ease;
}

.theme-tiss-sse-legacy .legacy-video-wrap::before {
    top: -4px;
    left: 8px;
    border-width: 3px 0 0 3px;
}

.theme-tiss-sse-legacy .legacy-video-wrap::after {
    bottom: -4px;
    right: 8px;
    border-width: 0 3px 3px 0;
}

.theme-tiss-sse-legacy .legacy-video-embed-section:hover .legacy-video-wrap::before,
.theme-tiss-sse-legacy .legacy-video-embed-section:hover .legacy-video-wrap::after {
    width: 70px;
    height: 70px;
}


/* the 16:9 container */

.theme-tiss-sse-legacy .legacy-video-ratio {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    background: #000;
    border-radius: 0.6rem;
    box-shadow: 0 0 0 1px rgba(191, 58, 96, 0.25), 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 80px rgba(191, 58, 96, 0.08);
    transition: box-shadow 0.4s ease;
}


/* transparent shield — blocks right-click / save-video on the iframe */

.theme-tiss-sse-legacy .legacy-video-shield {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    cursor: default;
    pointer-events: all;
    -webkit-user-select: none;
    user-select: none;
}

.theme-tiss-sse-legacy .legacy-video-embed-section:hover .legacy-video-ratio {
    box-shadow: 0 0 0 2px rgba(191, 58, 96, 0.5), 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 120px rgba(191, 58, 96, 0.18);
}

.theme-tiss-sse-legacy .legacy-video-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* left + right edge vignette on the iframe */

.theme-tiss-sse-legacy .legacy-video-ratio::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to right, rgba(13, 10, 15, 0.35) 0%, transparent 12%, transparent 88%, rgba(13, 10, 15, 0.35) 100%), linear-gradient(to bottom, rgba(13, 10, 15, 0.25) 0%, transparent 15%, transparent 85%, rgba(13, 10, 15, 0.25) 100%);
}


/* floating label overlay — slides in from below */

.theme-tiss-sse-legacy .legacy-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 0 1.5rem 0;
    pointer-events: none;
}

.theme-tiss-sse-legacy .legacy-video-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: linear-gradient(90deg, var(--legacy-rose-deep), var(--legacy-rose));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.45rem 1.2rem 0.45rem 1rem;
    border-radius: 0.4rem 0.4rem 0 0;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease;
    box-shadow: 0 -4px 20px rgba(191, 58, 96, 0.4);
}

.theme-tiss-sse-legacy .legacy-video-label::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.85;
    animation: ve-pulse 1.6s ease-in-out infinite;
}

@keyframes ve-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.4;
    }
}

.theme-tiss-sse-legacy .legacy-video-embed-section:hover .legacy-video-label {
    transform: translateY(0);
    opacity: 1;
}


/* bottom caption */

.theme-tiss-sse-legacy .legacy-video-caption {
    max-width: 1100px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
    .theme-tiss-sse-legacy .legacy-news-row {
        grid-template-columns: 1fr;
    }
    .theme-tiss-sse-legacy .legacy-programmes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .theme-tiss-sse-legacy .legacy-brandmark-image {
        width: 70px;
        height: 70px;
    }
    .theme-tiss-sse-legacy .legacy-nav-inner [data-nav-link] {
        font-size: 0.98rem;
    }
    .theme-tiss-sse-legacy .legacy-call-rail {
        display: none;
    }
    .theme-tiss-sse-legacy .legacy-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .theme-tiss-sse-legacy .legacy-news-feature {
        grid-template-columns: 1fr;
    }
    .theme-tiss-sse-legacy .legacy-leadership-grid,
    .theme-tiss-sse-legacy .legacy-gallery-grid,
    .theme-tiss-sse-legacy .legacy-programmes-grid,
    .theme-tiss-sse-legacy .legacy-programmes,
    .theme-tiss-sse-legacy .legacy-badge-strip {
        grid-template-columns: 1fr;
    }
    .theme-tiss-sse-legacy .legacy-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 1.8rem;
    }
    .theme-tiss-sse-legacy .legacy-programme-content p {
        min-height: 0;
    }
}


/* =============================================================
   HOMEPAGE REDESIGN — tiss-sse-legacy
   ============================================================= */


/* ─── Layout ─── */

.theme-tiss-sse-legacy .legacy-home {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0;
    overflow-x: hidden;
    /* prevent full-bleed children from causing horizontal scroll */
}


/* ─── Shared section wrapper ─── */

.theme-tiss-sse-legacy .legacy-news-row,
.theme-tiss-sse-legacy .legacy-leadership,
.theme-tiss-sse-legacy .legacy-gallery,
.theme-tiss-sse-legacy .legacy-programmes {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}


/* ─── Section header ─── */

.theme-tiss-sse-legacy .legacy-section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--legacy-border);
}

.theme-tiss-sse-legacy .legacy-section-hd h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    border: none !important;
    padding: 0 0 0 0.9rem !important;
    display: block !important;
    position: relative;
}

.theme-tiss-sse-legacy .legacy-section-hd h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8%;
    height: 84%;
    width: 4px;
    background: linear-gradient(to bottom, var(--legacy-rose), var(--legacy-rose-deep));
    border-radius: 4px;
}

.theme-tiss-sse-legacy .legacy-section-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--legacy-rose);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.3rem 0.8rem;
    border: 1.5px solid var(--legacy-rose);
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease;
}

.theme-tiss-sse-legacy .legacy-section-link:hover {
    background: var(--legacy-rose);
    color: #fff;
}


/* ─── Hero ─── */

.theme-tiss-sse-legacy .legacy-hero {
    border-radius: 0;
}

.theme-tiss-sse-legacy .legacy-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 2rem;
    z-index: 4;
    pointer-events: none;
}

.theme-tiss-sse-legacy .legacy-hero-overlay-inner {
    width: min(1260px, 94vw);
    margin: 0 auto;
    pointer-events: auto;
}

.theme-tiss-sse-legacy .legacy-hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.28rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}

.theme-tiss-sse-legacy .legacy-hero-tagline {
    margin: 0 0 1.4rem;
    font-size: clamp(1.85rem, 3.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
    max-width: 680px;
}

.theme-tiss-sse-legacy .legacy-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.theme-tiss-sse-legacy .legacy-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--legacy-rose);
    color: #fff;
    font-weight: 700;
    font-size: 0.96rem;
    text-decoration: none;
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(191, 58, 96, 0.42);
    transition: background 0.22s ease, transform 0.22s ease;
}

.theme-tiss-sse-legacy .legacy-hero-btn-primary:hover {
    background: var(--legacy-rose-deep);
    transform: translateY(-2px);
}

.theme-tiss-sse-legacy .legacy-hero-btn-outline {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.62);
    color: #fff;
    font-weight: 700;
    font-size: 0.96rem;
    text-decoration: none;
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    transition: background 0.22s ease;
}

.theme-tiss-sse-legacy .legacy-hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.22);
}

.theme-tiss-sse-legacy .legacy-hero-dots {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.theme-tiss-sse-legacy .legacy-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    background: transparent;
    cursor: pointer;
    transition: width 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-tiss-sse-legacy .legacy-hero-dot.is-active {
    width: 28px;
    background: #fff;
    border-color: #fff;
}


/* Stats strip */

.theme-tiss-sse-legacy .legacy-hero-stats {
    background: linear-gradient(90deg, rgba(100, 18, 47, 0.94) 0%, rgba(141, 46, 74, 0.92) 55%, rgba(27, 79, 122, 0.92) 100%);
    backdrop-filter: blur(10px);
    opacity: 0.8;
}

.theme-tiss-sse-legacy .legacy-stat-card {
    padding: 1.3rem 1rem;
    text-align: center;
}

.theme-tiss-sse-legacy .legacy-stat-num {
    font-size: clamp(2rem, 2.7vw, 2.8rem);
    font-weight: 800;
}

.theme-tiss-sse-legacy .legacy-stat-label {
    color: #ffd4e8;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.3rem;
}


/* ─── News row ─── */

.theme-tiss-sse-legacy .legacy-news-row {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr);
    gap: 1.5rem;
    padding: 3rem min(2vw, 2.2rem);
    width: min(1300px, 96vw);
    margin: 0 auto;
}

.theme-tiss-sse-legacy .legacy-news-panel {
    background: #fff;
    border: 1px solid var(--legacy-border);
    border-radius: 1rem;
    padding: 1.6rem 1.5rem;
    box-shadow: 0 4px 24px rgba(47, 26, 34, 0.07);
}

.theme-tiss-sse-legacy .legacy-news-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
}

.theme-tiss-sse-legacy .legacy-news-img-wrap {
    border-radius: 0.75rem;
    overflow: hidden;
    height: 250px;
}

.theme-tiss-sse-legacy .legacy-news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    min-height: 0;
}

.theme-tiss-sse-legacy .legacy-news-feature:hover .legacy-news-img-wrap img {
    transform: scale(1.04);
}

.theme-tiss-sse-legacy .legacy-news-tag {
    display: inline-block;
    background: var(--legacy-blush);
    color: var(--legacy-rose-deep);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}

.theme-tiss-sse-legacy .legacy-news-body h3 {
    margin: 0 0 0.55rem;
    font-size: 1.2rem;
    line-height: 1.22;
    color: var(--legacy-ink);
}

.theme-tiss-sse-legacy .legacy-news-body p {
    margin: 0 0 0.85rem;
    color: #5a3d4a;
    font-size: 0.94rem;
    line-height: 1.55;
}

.theme-tiss-sse-legacy .legacy-read-more {
    color: var(--legacy-rose);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}

.theme-tiss-sse-legacy .legacy-read-more:hover {
    text-decoration: underline;
}


/* Side cards */

.theme-tiss-sse-legacy .legacy-side-cards {
    display: grid;
    gap: 1.2rem;
    align-content: start;
}

.theme-tiss-sse-legacy .legacy-side-card {
    height: 400px !important;
    background: #fff;
    border: 1px solid var(--legacy-border);
    border-radius: 1rem;
    padding: 1.2rem 1.1rem;
    box-shadow: 0 4px 18px rgba(47, 26, 34, 0.06);
    border-top: 3px solid var(--legacy-rose);
}

.theme-tiss-sse-legacy .legacy-side-card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--legacy-border);
}

.theme-tiss-sse-legacy .legacy-side-card-hd h3 {
    margin: 0;
    font-size: 1.05rem;
    border: none !important;
    padding: 0 !important;
    display: block !important;
}

.theme-tiss-sse-legacy .legacy-side-more {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--legacy-blue);
    text-decoration: none;
}

.theme-tiss-sse-legacy .legacy-side-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.theme-tiss-sse-legacy .legacy-side-card li {
    padding: 0.42rem 0.55rem;
    border-radius: 0.35rem;
    background: var(--legacy-soft);
    font-size: 0.88rem;
    line-height: 1.4;
    color: #3d2030;
}

.theme-tiss-sse-legacy .legacy-side-card li a {
    color: #3d2030;
    text-decoration: none;
    font-weight: 500;
}

.theme-tiss-sse-legacy .legacy-side-card li a:hover {
    color: var(--legacy-rose);
}


/* ─── Leadership ─── */

.theme-tiss-sse-legacy .legacy-leadership {
    width: min(1300px, 96vw);
    margin: 0 auto;
    padding: 3rem min(2vw, 2.2rem);
}

.theme-tiss-sse-legacy .legacy-leadership-grid {
    gap: 1.5rem;
}

.theme-tiss-sse-legacy .legacy-leader-card {
    width: auto;
    background: #fff;
    border: 1px solid var(--legacy-border);
    border-radius: 1rem;
    overflow: hidden;
    padding: 0;
    text-align: left;
    box-shadow: 0 4px 20px rgba(47, 26, 34, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.theme-tiss-sse-legacy .legacy-leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 38px rgba(47, 26, 34, 0.14);
}

.theme-tiss-sse-legacy .legacy-leader-img-wrap {
    overflow: hidden;
    height: 240px;
    background: var(--legacy-blush);
}

.theme-tiss-sse-legacy .legacy-leader-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.4s ease;
}

.theme-tiss-sse-legacy .legacy-leader-card:hover .legacy-leader-img-wrap img {
    transform: scale(1.05);
}

.theme-tiss-sse-legacy .legacy-leader-info {
    padding: 1rem 1.15rem;
    border-top: 3px solid var(--legacy-rose);
}

.theme-tiss-sse-legacy .legacy-leader-info h3 {
    margin: 0 0 0.22rem;
    font-size: 1.08rem;
    color: var(--legacy-ink);
}

.theme-tiss-sse-legacy .legacy-leader-info p {
    margin: 0;
    font-size: 0.86rem;
    color: #6b3d50;
    font-weight: 500;
}


/* ─── Trust bar ─── */

.theme-tiss-sse-legacy .legacy-trust-bar {
    background: linear-gradient(135deg, #2f1a22 0%, #4a2038 100%);
}

.theme-tiss-sse-legacy .legacy-trust-bar-inner {
    width: min(1300px, 96vw);
    margin: 0 auto;
    padding: 2rem min(2vw, 2.2rem);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.2rem;
    align-items: stretch;
    justify-content: center;
}

.theme-tiss-sse-legacy .legacy-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(253, 232, 240, 0.28);
    border-radius: 0.75rem;
    padding: 0.72rem 1.2rem;
    color: #fde8f0;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
    cursor: default;
}

.theme-tiss-sse-legacy .legacy-trust-badge:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.20);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.theme-tiss-sse-legacy .legacy-trust-icon {
    width: 14px;
    height: 14px;
    color: #f9a8c4;
    flex-shrink: 0;
}


/* ─── About ─── */

.theme-tiss-sse-legacy .legacy-about {
    border-radius: 0;
    padding: 0;
    min-height: 460px;
    background-size: cover;
    background-position: center;
}

.theme-tiss-sse-legacy .legacy-about-inner {
    width: min(1300px, 96vw);
    margin: 0 auto;
    padding: 4.5rem min(2vw, 2.2rem);
}

.theme-tiss-sse-legacy .legacy-about-text {
    max-width: 680px;
}

.theme-tiss-sse-legacy .legacy-about-chip {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fde8f0;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.28rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}

.theme-tiss-sse-legacy .legacy-about h2 {
    color: #fff;
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    margin: 0 0 1rem;
    border: none !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
    padding: 0 !important;
}

.theme-tiss-sse-legacy .legacy-about-tabs {
    margin: 0 0 1.2rem;
    gap: 0.5rem;
}

.theme-tiss-sse-legacy .legacy-about-tabs button {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 0.86rem;
    padding: 0.36rem 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-tiss-sse-legacy .legacy-about-tabs button.is-active,
.theme-tiss-sse-legacy .legacy-about-tabs button:hover {
    background: #fff;
    color: var(--legacy-rose-deep);
    border-color: #fff;
}

.theme-tiss-sse-legacy .legacy-about p,
.theme-tiss-sse-legacy .legacy-about-copy {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    font-size: 1rem;
    max-width: 62ch;
}


/* ─── Gallery ─── */

.theme-tiss-sse-legacy .legacy-gallery {
    width: min(1300px, 96vw);
    margin: 0 auto;
    padding: 3rem min(2vw, 2.2rem);
}

.theme-tiss-sse-legacy .legacy-gallery-grid {
    gap: 1rem;
}

.theme-tiss-sse-legacy .legacy-gallery-fig {
    margin: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--legacy-border);
    cursor: zoom-in;
}

.theme-tiss-sse-legacy .legacy-gallery-fig img {
    display: block;
    width: 100%;
    height: 235px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.theme-tiss-sse-legacy .legacy-gallery-fig:hover img {
    transform: scale(1.06);
}

.theme-tiss-sse-legacy .legacy-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(141, 46, 74, 0.52);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-tiss-sse-legacy .legacy-gallery-fig:hover .legacy-gallery-overlay {
    opacity: 1;
}


/* ─── Programmes ─── */

.theme-tiss-sse-legacy .legacy-programmes {
    width: min(1300px, 96vw);
    margin: 0 auto;
    padding: 3rem min(2vw, 2.2rem);
    display: block;
}

.theme-tiss-sse-legacy .legacy-programmes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
    gap: 1.5rem;
}

.theme-tiss-sse-legacy .legacy-programme-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--legacy-border);
    background: #fff;
    display: flex;
    flex-direction: column;
    height: auto;
    box-shadow: 0 4px 20px rgba(47, 26, 34, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.theme-tiss-sse-legacy .legacy-programme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 38px rgba(47, 26, 34, 0.14);
}

.theme-tiss-sse-legacy .legacy-programme-img-wrap {
    position: relative;
    overflow: hidden;
    height: 210px;
}

.theme-tiss-sse-legacy .legacy-programme-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.theme-tiss-sse-legacy .legacy-programme-card:hover .legacy-programme-img-wrap img {
    transform: scale(1.04);
}

.theme-tiss-sse-legacy .legacy-programme-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(141, 46, 74, 0.55) 0%, transparent 55%);
}

.theme-tiss-sse-legacy .legacy-programme-content {
    padding: 1.2rem 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #fff;
}

.theme-tiss-sse-legacy .legacy-programme-content h3 {
    margin: 0 0 0.6rem;
    color: var(--legacy-ink);
    font-size: 1.1rem;
    line-height: 1.25;
    background: none;
    padding: 0;
    border-radius: 0;
}

.theme-tiss-sse-legacy .legacy-programme-content p {
    margin: 0 0 1rem;
    color: #5a3d4a;
    font-size: 0.91rem;
    line-height: 1.55;
    flex: 1;
    min-height: 0;
}

.theme-tiss-sse-legacy .legacy-programme-actions {
    display: flex;
    gap: 0.65rem;
    margin-top: auto;
}

.theme-tiss-sse-legacy .legacy-prog-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    background: var(--legacy-rose);
    color: #fff;
    border: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-tiss-sse-legacy .legacy-prog-btn-primary:hover {
    background: var(--legacy-blue);
    color: #fff;
    /* background: var(--legacy-rose-deep); */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 58, 96, 0.40);
}

.theme-tiss-sse-legacy .legacy-prog-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--legacy-blue);
    border: 1.5px solid var(--legacy-blue-soft);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-tiss-sse-legacy .legacy-prog-btn-outline:hover {
    background: var(--legacy-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 95, 138, 0.40);
}


/* Privacy policy */


/* ─── Responsive ─── */

@media (max-width: 1100px) {
    .theme-tiss-sse-legacy .legacy-news-row {
        grid-template-columns: 1fr;
    }
    .theme-tiss-sse-legacy .legacy-programmes-grid,
    .theme-tiss-sse-legacy .legacy-leadership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .theme-tiss-sse-legacy .legacy-hero-overlay {
        padding-bottom: 1.5rem;
    }
    .theme-tiss-sse-legacy .legacy-hero-ctas {
        flex-direction: column;
        align-items: flex-start;
    }
    .theme-tiss-sse-legacy .legacy-hero-dots {
        bottom: 1rem;
    }
    .theme-tiss-sse-legacy .legacy-gallery-grid,
    .theme-tiss-sse-legacy .legacy-programmes-grid,
    .theme-tiss-sse-legacy .legacy-leadership-grid {
        grid-template-columns: 1fr;
    }
    .theme-tiss-sse-legacy .legacy-news-feature {
        grid-template-columns: 1fr;
    }
    .theme-tiss-sse-legacy .legacy-news-img-wrap {
        height: 200px;
    }
    .theme-tiss-sse-legacy .legacy-trust-bar-inner {
        gap: 0.6rem 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-tiss-sse-legacy .legacy-leader-card,
    .theme-tiss-sse-legacy .legacy-programme-card,
    .theme-tiss-sse-legacy .legacy-gallery-fig img,
    .theme-tiss-sse-legacy .legacy-news-img-wrap img {
        transition: none;
    }
}


/* Card depth effect */

.legacy-news-panel,
.legacy-side-card,
.legacy-programme-card,
.legacy-leader-card {
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08), 0 16px 28px rgba(15, 23, 42, 0.12);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    transform: translateZ(0);
}

.legacy-news-panel:hover,
.legacy-side-card:hover,
.legacy-programme-card:hover,
.legacy-leader-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1), 0 22px 40px rgba(15, 23, 42, 0.16);
}

@media (prefers-reduced-motion: reduce) {
    .legacy-news-panel,
    .legacy-side-card,
    .legacy-programme-card,
    .legacy-leader-card {
        transition: none;
    }
    .legacy-news-panel:hover,
    .legacy-side-card:hover,
    .legacy-programme-card:hover,
    .legacy-leader-card:hover {
        transform: none;
    }
}


/* Notice scroller */

.legacy-side-cards .legacy-side-card:first-child ul {
    height: 18.5rem;
    overflow: hidden;
    overflow-anchor: none;
    padding-right: 0.1rem;
}

.legacy-side-cards .legacy-side-card:first-child ul::-webkit-scrollbar {
    width: 0;
    height: 0;
}


/* ─── Notice NEW badge ─── */

.theme-tiss-sse-legacy .notice-banner-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.theme-tiss-sse-legacy .notice-new-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0.12rem 0.42rem;
    background: #c0392b;
    color: #fff;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 4px;
    line-height: 1.5;
    animation: noticeBadgePulse 1.4s ease-in-out infinite alternate;
}

@keyframes noticeBadgePulse {
    from {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.7);
        transform: scale(1);
    }
    to {
        opacity: 0.7;
        box-shadow: 0 0 8px 4px rgba(192, 57, 43, 0);
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-tiss-sse-legacy .notice-new-badge {
        animation: none;
    }
}


/* ─── Detail page back button ─── */

.theme-tiss-sse-legacy .module-detail-card--enhanced,
.theme-tiss-sse-legacy .module-detail-card--simple {
    position: relative;
    padding-top: 3.5rem;
}

.theme-tiss-sse-legacy .detail-page-back-wrap {
    position: absolute;
    top: 1rem;
    right: 1.35rem;
    z-index: 2;
}

.theme-tiss-sse-legacy .domain-expert-profile .detail-page-back-wrap {
    top: 1.35rem;
    right: 1.5rem;
}

.theme-tiss-sse-legacy .detail-page-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.1rem;
    background: var(--color-primary, #bf3a60);
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease;
}

.theme-tiss-sse-legacy .detail-page-back-btn:hover {
    background: var(--color-primary-dark, #8d2e4a);
    color: #ffffff;
}


/* ─── Full-width detail layout (news article etc.) ─── */
.theme-tiss-sse-legacy .module-detail-body {
    display: block;
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
}

.theme-tiss-sse-legacy .module-detail-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.theme-tiss-sse-legacy .module-detail-meta {
    font-size: 0.88rem;
}

.theme-tiss-sse-legacy .module-detail-image-wrap--full {
    width: 100%;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    aspect-ratio: auto;
    overflow: hidden;
}

.theme-tiss-sse-legacy .module-detail-image--full {
    display: block;
    width: 100%;
    height: 50vh;
    object-fit: cover;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.theme-tiss-sse-legacy .module-detail-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.theme-tiss-sse-legacy .module-detail-richtext {
    margin-top: 0.5rem;
}

.theme-tiss-sse-legacy .module-detail-richtext p {
    margin-bottom: 1rem;
}


/* Changes added  */


/* ═══════════════════════════════════════════════════
   About v2 — Two-column split layout
   ═══════════════════════════════════════════════════ */

.theme-tiss-sse-legacy .legacy-about2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 540px;
    overflow: hidden;
}


/* ── Image panel (left) ── */

.theme-tiss-sse-legacy .legacy-about2-visual {
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

.theme-tiss-sse-legacy .legacy-about2-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.theme-tiss-sse-legacy .legacy-about2:hover .legacy-about2-img {
    transform: scale(1.05);
}

.theme-tiss-sse-legacy .legacy-about2-img-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient( 150deg, rgba(141, 46, 74, 0.52) 0%, rgba(31, 95, 138, 0.40) 60%, rgba(14, 17, 24, 0.55) 100%);
}


/* floating badge bottom-left of image */

.theme-tiss-sse-legacy .legacy-about2-img-badge {
    position: absolute;
    bottom: 1.6rem;
    left: 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.6rem;
    padding: 0.55rem 1rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* ── Content panel (right) ── */

.theme-tiss-sse-legacy .legacy-about2-content {
    background: #ffffff;
    padding: 4rem 3.5rem 4rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.15rem;
}


/* eyebrow label */

.theme-tiss-sse-legacy .legacy-about2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--legacy-rose);
}

.theme-tiss-sse-legacy .legacy-about2-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--legacy-rose), var(--legacy-rose-deep));
    border-radius: 2px;
    flex-shrink: 0;
}


/* heading */

.theme-tiss-sse-legacy .legacy-about2 h2 {
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    font-weight: 800;
    color: var(--legacy-ink);
    margin: 0;
    line-height: 1.18;
    border: none !important;
    padding: 0 !important;
}


/* ── Tabs (underline style) ── */

.theme-tiss-sse-legacy .legacy-about2-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--legacy-border);
}

.theme-tiss-sse-legacy .legacy-about2-tabs button {
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    padding: 0.45rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.theme-tiss-sse-legacy .legacy-about2-tabs button.is-active,
.theme-tiss-sse-legacy .legacy-about2-tabs button:hover {
    color: var(--legacy-rose);
    border-bottom-color: var(--legacy-rose);
}


/* Tab panels */

.theme-tiss-sse-legacy .legacy-about2-panel {
    display: none;
}

.theme-tiss-sse-legacy .legacy-about2-panel.is-active {
    display: block;
}


/* body text */

.theme-tiss-sse-legacy .legacy-about2-body p,
.theme-tiss-sse-legacy .legacy-about2-copy {
    color: #4b5563;
    line-height: 1.74;
    font-size: 0.97rem;
    margin: 0;
}


/* ── Mini stats row ── */

.theme-tiss-sse-legacy .legacy-about2-stats {
    display: flex;
    gap: 0;
    padding: 1.1rem 0;
    border-top: 1px solid var(--legacy-border);
    border-bottom: 1px solid var(--legacy-border);
    flex-wrap: wrap;
}

.theme-tiss-sse-legacy .legacy-about2-stat {
    display: flex;
    flex-direction: column;
    padding: 0 1.4rem 0 0;
    border-right: 1px solid var(--legacy-border);
    margin-right: 1.4rem;
}

.theme-tiss-sse-legacy .legacy-about2-stat:last-child {
    border-right: none;
    margin-right: 0;
}

.theme-tiss-sse-legacy .legacy-about2-stat-val {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--legacy-rose);
    line-height: 1;
}

.theme-tiss-sse-legacy .legacy-about2-stat-lbl {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.22rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ── CTA button ── */

.theme-tiss-sse-legacy .legacy-about2-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--legacy-rose);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.72rem 1.75rem;
    border-radius: 999px;
    text-decoration: none;
    align-self: flex-start;
    box-shadow: 0 4px 16px rgba(191, 58, 96, 0.28);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-tiss-sse-legacy .legacy-about2-cta:hover {
    background: var(--legacy-rose-deep);
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(141, 46, 74, 0.38);
}


/* Awards and recognition pages */


/* ══════════════════════════════════════════════════════════════
   Awards Recognition Scroll  ·  prefix: ars-
   Dark gold gradient · glassmorphism cards · infinite auto-scroll
══════════════════════════════════════════════════════════════ */

.ars-section {
    background: linear-gradient(135deg, #1a0d00 0%, #3d2000 45%, #1a0a0f 100%);
    margin-bottom: 4%;
    overflow: hidden;
    position: relative;
}

.ars-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.ars-layout {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    min-height: 176px;
}


/* ── Left title strip ── */

.ars-title-strip {
    flex: 0 0 auto;
    width: 210px;
    background: rgba(10, 5, 0, 0.45);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    padding: 2rem 1.6rem 2rem 1.85rem;
    position: relative;
}

.ars-title-strip::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 4px;
    background: linear-gradient(to bottom, #f5c518, #c9a22760);
    border-radius: 0 4px 4px 0;
}

.ars-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 197, 24, 0.65);
}

.ars-eyebrow::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 2px;
    background: #f5c518;
    border-radius: 2px;
    flex-shrink: 0;
}

.ars-heading {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff !important;
    line-height: 1.25;
    margin: 0;
    padding: 0 !important;
    border: none !important;
    letter-spacing: 0.01em;
}

.ars-rule {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ars-rule span:nth-child(1) {
    display: block;
    width: 26px;
    height: 3px;
    background: #f5c518;
    border-radius: 99px;
}

.ars-rule span:nth-child(2) {
    display: block;
    width: 7px;
    height: 3px;
    background: rgba(245, 197, 24, 0.28);
    border-radius: 99px;
}

.ars-sub {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.5;
    margin: 0;
}

.ars-view-all {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #f5c518;
    text-decoration: none;
    transition: opacity 0.18s;
}

.ars-view-all:hover {
    opacity: 0.75;
}


/* ── Belt wrapper ── */

.ars-belt-wrap {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    padding: 2.25rem 0;
    overflow: hidden;
}

.ars-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 90px;
    pointer-events: none;
    z-index: 3;
}

.ars-fade--left {
    left: 0;
    background: linear-gradient(to right, #1a0d00 0%, transparent 100%);
}

.ars-fade--right {
    right: 0;
    background: linear-gradient(to left, #1a0a0f 0%, transparent 100%);
}

.ars-belt {
    width: 100%;
    overflow: hidden;
}

.ars-track {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    width: max-content;
    will-change: transform;
    animation: ars-scroll 22s linear infinite;
}

.ars-track:hover {
    animation-play-state: paused;
}

@keyframes ars-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


/* ── Award card ── */

.ars-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(245, 197, 24, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.1rem 0.85rem 0.9rem;
    gap: 0.6rem;
    transition: border-color 0.2s, background 0.2s;
    cursor: default;
}

.ars-card:hover {
    border-color: rgba(245, 197, 24, 0.45);
    background: rgba(255, 255, 255, 0.1);
}

.ars-card-img {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.ars-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ars-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}

.ars-card-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ars-card-year {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #f5c518;
    background: rgba(245, 197, 24, 0.12);
    border: 1px solid rgba(245, 197, 24, 0.25);
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
}


/* ── Responsive ── */

@media (max-width: 600px) {
    .ars-layout {
        flex-direction: column;
    }
    .ars-title-strip {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 1.1rem 1.25rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }
    .ars-title-strip::before {
        display: none;
    }
    .ars-heading {
        font-size: 1rem;
    }
    .ars-view-all {
        margin-top: 0;
        margin-left: auto;
    }
}


/* Award and recognition end  */


/* ── Responsive ── */

@media (max-width: 900px) {
    .theme-tiss-sse-legacy .legacy-about2 {
        grid-template-columns: 1fr;
    }
    .theme-tiss-sse-legacy .legacy-about2-visual {
        height: 300px;
        min-height: unset;
    }
    .theme-tiss-sse-legacy .legacy-about2-content {
        padding: 2.5rem 1.5rem;
    }
    .theme-tiss-sse-legacy .legacy-about2-stats {
        gap: 0.8rem 0;
    }
}

@media (max-width: 480px) {
    .theme-tiss-sse-legacy .legacy-about2-stat {
        padding-right: 1rem;
        margin-right: 1rem;
    }
}


/* ═══════════════════════════════════════════════════
   Gallery v2 — Dark-header mosaic layout
   ═══════════════════════════════════════════════════ */


/* ── Header band ── */

.theme-tiss-sse-legacy .legacy-gallery2 {
    background: #fff;
}

.theme-tiss-sse-legacy .legacy-gallery2-hd {
    background: linear-gradient(135deg, #1a0f14 0%, #2c1221 50%, #1f3a55 100%);
    padding: 3rem min(5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.theme-tiss-sse-legacy .legacy-gallery2-hd-inner {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.theme-tiss-sse-legacy .legacy-gallery2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f9a8c3;
}

.theme-tiss-sse-legacy .legacy-gallery2-eyebrow::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--legacy-rose), transparent);
    border-radius: 2px;
}

.theme-tiss-sse-legacy .legacy-gallery2-hd h2 {
    color: #fff;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    font-weight: 800;
    margin: 0;
    padding: 0 !important;
    border: none !important;
}

.theme-tiss-sse-legacy .legacy-gallery2-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
    margin: 0;
    max-width: 500px;
}

.theme-tiss-sse-legacy .legacy-gallery2-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--legacy-rose);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.72rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(191, 58, 96, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.theme-tiss-sse-legacy .legacy-gallery2-view-btn:hover {
    background: var(--legacy-rose-deep);
    transform: translateY(-2px);
}


/* ── Mosaic grid ── */

.theme-tiss-sse-legacy .legacy-gallery2-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}


/* featured: full height left column */

.theme-tiss-sse-legacy .legacy-gallery2-tile--featured {
    position: relative;
    overflow: hidden;
    margin: 0;
    cursor: zoom-in;
}

.theme-tiss-sse-legacy .legacy-gallery2-tile--featured img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.theme-tiss-sse-legacy .legacy-gallery2-tile--featured:hover img {
    transform: scale(1.06);
}


/* caption on the featured tile */

.theme-tiss-sse-legacy .legacy-gallery2-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 6, 12, 0.78));
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 1.4rem 1.6rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 600;
}


/* thumbnail 2×2 grid */

.theme-tiss-sse-legacy .legacy-gallery2-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
}

.theme-tiss-sse-legacy .legacy-gallery2-tile {
    position: relative;
    overflow: hidden;
    margin: 0;
    cursor: zoom-in;
    border: 2px solid #fff;
}

.theme-tiss-sse-legacy .legacy-gallery2-tile img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.theme-tiss-sse-legacy .legacy-gallery2-tile:hover img {
    transform: scale(1.08);
}


/* hover zoom icon overlay on thumbs */

.theme-tiss-sse-legacy .legacy-gallery2-hover {
    position: absolute;
    inset: 0;
    background: rgba(141, 46, 74, 0.48);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.theme-tiss-sse-legacy .legacy-gallery2-tile:hover .legacy-gallery2-hover {
    opacity: 1;
}


/* ── Responsive ── */

@media (max-width: 860px) {
    .theme-tiss-sse-legacy .legacy-gallery2-mosaic {
        grid-template-columns: 1fr;
    }
    .theme-tiss-sse-legacy .legacy-gallery2-tile--featured img {
        min-height: 280px;
        height: 280px;
    }
    .theme-tiss-sse-legacy .legacy-gallery2-thumbs {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .theme-tiss-sse-legacy .legacy-gallery2-tile img {
        min-height: 140px;
        height: 140px;
    }
}

@media (max-width: 540px) {
    .theme-tiss-sse-legacy .legacy-gallery2-hd {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        padding: 2rem 1.25rem;
    }
    .theme-tiss-sse-legacy .legacy-gallery2-thumbs {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-tiss-sse-legacy .legacy-gallery2-tile--featured img,
    .theme-tiss-sse-legacy .legacy-gallery2-tile img {
        transition: none;
    }
}


/* ═══════════════════════════════════════════════════════════════
   GLOBAL RESPONSIVE FIXES
   Mobile: <640px  |  Tablet: 640–1024px  |  Desktop: >1024px
   ═══════════════════════════════════════════════════════════════ */


/* ── Base: images never overflow ── */

.theme-tiss-sse-legacy img {
    max-width: 100%;
    height: auto;
}


/* ── Prevent horizontal scroll on fixed-width containers ── */


/* Use `clip` instead of `hidden`: clip does NOT promote the element to a scroll
   container and thus does not force overflow-y from `visible` to `auto`, which
   would otherwise clip absolutely-positioned nav dropdowns that extend below
   the header's bottom edge. */

.theme-tiss-sse-legacy .legacy-header,
.theme-tiss-sse-legacy .legacy-footer {
    overflow-x: clip;
}


/* Establish a stacking context on the nav bar so nav dropdowns (z-index: 35/40)
   paint above hero-section elements that follow in document order. */

.theme-tiss-sse-legacy .legacy-nav-wrap {
    position: relative;
    z-index: 50;
}


/* ── Touch-friendly buttons (≥ 44 px hit target) ── */

.theme-tiss-sse-legacy .legacy-hero-btn-primary,
.theme-tiss-sse-legacy .legacy-hero-btn-outline,
.theme-tiss-sse-legacy .legacy-about2-cta,
.theme-tiss-sse-legacy .legacy-prog-btn-primary,
.theme-tiss-sse-legacy .legacy-prog-btn-outline,
.theme-tiss-sse-legacy .legacy-section-link,
.theme-tiss-sse-legacy .legacy-gallery2-view-btn {
    min-height: 44px;
}


/* ═══════════════════════════════════════════
   TABLET (≤ 1024px)
═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .theme-tiss-sse-legacy .legacy-news-row {
        grid-template-columns: 1fr;
    }
    .theme-tiss-sse-legacy .legacy-programmes-grid,
    .theme-tiss-sse-legacy .legacy-leadership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ═══════════════════════════════════════════
   NAV HAMBURGER (≤ 980px)
═══════════════════════════════════════════ */

@media (max-width: 980px) {
    /* nav wrap becomes the position anchor */
    .theme-tiss-sse-legacy .legacy-nav-inner {
        position: relative;
        flex-wrap: wrap;
        padding: 0.3rem 0.5rem;
        min-height: 0;
        gap: 0;
    }
    /* show hamburger button (now inside topbar, not nav-inner) */
    .theme-tiss-sse-legacy .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 44px;
        padding: 0.4rem 0.9rem;
        background: var(--legacy-rose);
        color: #fff;
        border: none;
        border-radius: 6px;
        font-weight: 700;
        font-size: 0.9rem;
        cursor: pointer;
        margin: 0.3rem 0;
        line-height: 1;
    }
    /* mobile menu — full-width overlay below nav bar */
    .theme-tiss-sse-legacy .legacy-nav-inner .main-nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 500;
        background: #fff;
        border-top: 3px solid var(--legacy-rose);
        border-bottom: 1px solid var(--legacy-border);
        box-shadow: 0 10px 36px rgba(47, 26, 34, 0.18);
        max-height: 70vh;
        overflow-y: auto;
        padding-bottom: 0.5rem;
    }
    /* nav list vertical stack */
    .theme-tiss-sse-legacy .legacy-nav-inner .main-nav-menu .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 0.4rem 0.5rem;
        gap: 1px;
    }
    /* each link touch-friendly */
    .theme-tiss-sse-legacy .legacy-nav-inner .main-nav-menu [data-nav-link] {
        width: 100%;
        min-height: 44px;
        padding: 0.62rem 0.8rem;
        font-size: 0.95rem;
        font-weight: 700;
        color: #2e2232;
        border-bottom: 1px solid var(--legacy-border);
        border-radius: 0;
        border-left: none;
    }
    .theme-tiss-sse-legacy .legacy-nav-inner .main-nav-menu [data-nav-link]:hover,
    .theme-tiss-sse-legacy .legacy-nav-inner .main-nav-menu [data-nav-link].nav-active {
        background: var(--legacy-blush);
        color: var(--legacy-rose-deep);
        border-bottom-color: var(--legacy-rose);
    }
    /* submenus / mega panels on mobile */
    .theme-tiss-sse-legacy .legacy-nav-inner .main-nav-menu .submenu,
    .theme-tiss-sse-legacy .legacy-nav-inner .main-nav-menu .mega-panel {
        position: static;
        border: 0;
        border-left: 3px solid var(--legacy-rose);
        border-radius: 0;
        box-shadow: none;
        background: #fdf5f8;
        padding: 0.3rem 0 0.3rem 0.8rem;
        margin-left: 0.5rem;
        width: auto;
    }
}


/* ═══════════════════════════════════════════
   TABLET NAV/HEADER (≤ 780px)
═══════════════════════════════════════════ */

@media (max-width: 780px) {
    .theme-tiss-sse-legacy .legacy-topbar-inner {
        gap: 0.6rem;
        padding: 0.55rem 0;
    }
    .theme-tiss-sse-legacy .legacy-title-main {
        font-size: clamp(1.05rem, 3.5vw, 1.42rem);
    }
    .theme-tiss-sse-legacy .legacy-title-sub {
        font-size: clamp(0.78rem, 2.2vw, 1rem);
        margin-top: 0.15rem;
    }
    /* trust bar badges wrap */
    .theme-tiss-sse-legacy .legacy-trust-badge {
        font-size: 0.8rem;
        padding: 0.55rem 0.9rem;
    }
    /* section heading row stacks on tablet */
    .theme-tiss-sse-legacy .legacy-section-hd {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}


/* ═══════════════════════════════════════════
   MOBILE (≤ 640px)
═══════════════════════════════════════════ */

@media (max-width: 640px) {
    /* video: switch to aspect-ratio instead of fixed 90vh */
    .theme-tiss-sse-legacy .legacy-video-ratio {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .theme-tiss-sse-legacy .legacy-video-embed-section {
        padding: 2rem 0 1.5rem;
    }
    /* about v2 content padding */
    .theme-tiss-sse-legacy .legacy-about2-content {
        padding: 2rem 1.25rem;
    }
    /* gallery v2 CTA button full-width */
    .theme-tiss-sse-legacy .legacy-gallery2-view-btn {
        width: 100%;
        justify-content: center;
    }
    /* hero overlay padding for stats clearance */
    .theme-tiss-sse-legacy .legacy-hero-overlay {
        padding-bottom: 7.5rem;
    }
    /* hero buttons stack */
    .theme-tiss-sse-legacy .legacy-hero-ctas {
        flex-direction: column;
        align-items: flex-start;
    }
    .theme-tiss-sse-legacy .legacy-hero-btn-primary,
    .theme-tiss-sse-legacy .legacy-hero-btn-outline {
        width: 100%;
        justify-content: center;
    }
    /* leadership: 1-col on small phones, 2-col on wide phones/tablet */
    .theme-tiss-sse-legacy .legacy-leadership-grid {
        grid-template-columns: 1fr;
    }
    /* news image height */
    .theme-tiss-sse-legacy .legacy-news-img-wrap {
        height: 200px;
    }
    /* news feature stacks */
    .theme-tiss-sse-legacy .legacy-news-feature {
        grid-template-columns: 1fr;
    }
    /* gallery, programmes, badge-strip single col */
    .theme-tiss-sse-legacy .legacy-gallery-grid,
    .theme-tiss-sse-legacy .legacy-programmes-grid,
    .theme-tiss-sse-legacy .legacy-badge-strip {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════
   SMALL MOBILE (≤ 480px)
═══════════════════════════════════════════ */

@media (max-width: 480px) {
    /* stat strip 2 cols */
    .theme-tiss-sse-legacy .legacy-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .theme-tiss-sse-legacy .legacy-stat-card {
        padding: 0.75rem 0.5rem;
    }
    .theme-tiss-sse-legacy .legacy-stat-num {
        font-size: clamp(1.35rem, 5vw, 2rem);
    }
    /* footer single column */
    .theme-tiss-sse-legacy .legacy-footer-inner {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
    .theme-tiss-sse-legacy .legacy-footer-links-2col {
        grid-template-columns: 1fr;
    }
    .theme-tiss-sse-legacy .legacy-footer-bar-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.35rem;
    }
    .theme-tiss-sse-legacy .legacy-footer-bar-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.65rem;
    }
    /* programmes grid 1 col */
    .theme-tiss-sse-legacy .legacy-programmes-grid,
    .theme-tiss-sse-legacy .legacy-leadership-grid {
        grid-template-columns: 1fr;
    }
    /* about v2 */
    .theme-tiss-sse-legacy .legacy-about2-visual {
        height: 240px;
        min-height: 0;
    }
    .theme-tiss-sse-legacy .legacy-about2-stat {
        padding-right: 0.8rem;
        margin-right: 0.8rem;
    }
    /* news row inner padding */
    .theme-tiss-sse-legacy .legacy-news-row {
        padding: 1.8rem 1rem;
    }
    .theme-tiss-sse-legacy .legacy-leadership,
    .theme-tiss-sse-legacy .legacy-gallery,
    .theme-tiss-sse-legacy .legacy-programmes {
        padding: 1.8rem 1rem;
    }
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE FIXES v2 — targeted corrections
   ═══════════════════════════════════════════════════ */


/* ── 1. Long-text / URL overflow protection ── */

.theme-tiss-sse-legacy .legacy-news-body,
.theme-tiss-sse-legacy .legacy-programme-content,
.theme-tiss-sse-legacy .legacy-leader-info,
.theme-tiss-sse-legacy .legacy-about-copy,
.theme-tiss-sse-legacy .legacy-side-card li {
    overflow-wrap: break-word;
    word-break: break-word;
}


/* ── 2. Topbar: reserve right-side clearance for the fixed tools bar ── */

.theme-tiss-sse-legacy .legacy-title-block {
    min-width: 0;
    /* prevent grid blowout */
}

/* ── 3. Section gutters: 1rem horizontal padding at 481-640px ── */

@media (max-width: 640px) {
    .theme-tiss-sse-legacy .legacy-news-row,
    .theme-tiss-sse-legacy .legacy-leadership,
    .theme-tiss-sse-legacy .legacy-gallery,
    .theme-tiss-sse-legacy .legacy-programmes {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .theme-tiss-sse-legacy .legacy-about-inner,
    .theme-tiss-sse-legacy .legacy-trust-bar-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    /* Fix v1 conflict: override the 2-col rule added in v1 block — keep 1-col ≤640px */
    .theme-tiss-sse-legacy .legacy-leadership-grid {
        grid-template-columns: 1fr;
    }
}


/* leadership */

.legacy-leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.legacy-leader-card {
    width: 50%;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 0.5px solid #e5e5e5;
    border-radius: 12px;
    padding: 14px 16px;
}

.legacy-leader-img-wrap {
    flex-shrink: 0;
    width: 30%;
    height: 52px;
}

.legacy-leader-img-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.legacy-leader-info h3 {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 3px;
}

.legacy-leader-info p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}


/* ── 4. Badge strip: auto-fill responsive grid at tablet ── */

@media (max-width: 1024px) {
    .theme-tiss-sse-legacy .legacy-badge-strip {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}


/* ── 5. Gallery: 2-col at tablet (641-1100px); 1-col already handled by ≤780px old rule ── */

@media (min-width: 641px) and (max-width: 1100px) {
    .theme-tiss-sse-legacy .legacy-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ── 6. Stacked news row: reduce vertical padding when single-column ── */

@media (max-width: 1100px) {
    .theme-tiss-sse-legacy .legacy-news-row {
        padding-top: 2rem;
        padding-bottom: 2rem;
        gap: 1rem;
    }
}


/* ── 7. Leadership grid: single column at ≤768px ── */

@media (max-width: 768px) {
    .theme-tiss-sse-legacy .legacy-leadership-grid {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════
   LOGO — main vs mini sizing
   ═══════════════════════════════════════════════════════════ */


/* Main logo in header — full-size */

.theme-tiss-sse-legacy .legacy-brandmark-main {
    width: 490px;
    height: 90px;
    object-fit: contain;
}


/* Mini logo — hidden by default, shown at ≤768px */

.theme-tiss-sse-legacy .legacy-brandmark-mini {
    display: none;
    width: 55px;
    height: 60px;
    object-fit: contain;
}


/* Mini logo in footer / small contexts */

.theme-tiss-sse-legacy .legacy-footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    margin-bottom: 0.75rem;
    filter: brightness(0) invert(1) opacity(0.85);
}


/* ═══════════════════════════════════════════════════════════
   FOOTER ALIGNMENT — column balance & gap fixes
   ═══════════════════════════════════════════════════════════ */

.theme-tiss-sse-legacy .legacy-footer-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.theme-tiss-sse-legacy .legacy-footer-col-title {
    flex-shrink: 0;
}

.theme-tiss-sse-legacy .legacy-footer-links-2col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.2rem 0.75rem;
    align-items: start;
}

.theme-tiss-sse-legacy .legacy-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

@media (max-width: 900px) {
    .theme-tiss-sse-legacy .legacy-footer-links-2col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .theme-tiss-sse-legacy .legacy-footer-links-2col {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.15rem 0.5rem;
    }
    .theme-tiss-sse-legacy .legacy-footer-col-title {
        margin-bottom: 0.6rem;
    }
}


/* =========================
   FIX: CARD OVERFLOW + CUT
   ========================= */


/* 🔥 MAIN CONTAINER FIX */

.ars-belt-wrap {
    height: auto !important;
    /* remove fixed height */
    min-height: 180px;
    /* safe height */
    display: flex;
    align-items: center;
    overflow: hidden;
}


/* 🔥 TRACK FIX */

.ars-track {
    align-items: center;
    /* vertical center */
}


/* 🔥 CARD FIX */

.ars-card {
    height: auto !important;
    max-height: 160px;
    /* prevent overflow */
    justify-content: center;
    padding: 0.7rem 0.6rem;
    /* reduce vertical pressure */
}


/* 🔥 IMAGE CONTAINER FIX */

.ars-card-img {
    width: 55px;
    height: 55px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* 🔥 IMAGE FIX (MOST IMPORTANT) */

.ars-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    /* NO CROPPING */
}


/* 🔥 TITLE FIX */

.ars-card-title {
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
}


/* =========================
   MOBILE FIX
   ========================= */

@media (max-width: 600px) {
    .ars-belt-wrap {
        min-height: 150px;
        padding: 0.5rem 0;
    }
    .ars-card {
        width: 120px;
        max-height: 140px;
        padding: 0.6rem 0.5rem;
    }
    .ars-card-img {
        width: 45px;
        height: 45px;
    }
    .ars-card-title {
        font-size: 0.6rem;
    }
}


/* ─── Leadership Section Upgrade ─── */

.theme-tiss-sse-legacy .legacy-leadership {
    background: linear-gradient(135deg, #fff6f9, #eef4f9);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
}

.theme-tiss-sse-legacy .legacy-leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.theme-tiss-sse-legacy .legacy-leader-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid #eee;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.theme-tiss-sse-legacy .legacy-leader-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(191, 58, 96, 0.18);
}

.theme-tiss-sse-legacy .legacy-leader-img-wrap {
    flex-shrink: 0;
    width: 95px;
    height: 120px;
    border-radius: 0.6rem;
    overflow: hidden;
}

.theme-tiss-sse-legacy .legacy-leader-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-tiss-sse-legacy .legacy-leader-info {
    padding: 0;
}

.theme-tiss-sse-legacy .legacy-leader-info::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #bf3a60, #1f5f8a);
    margin-bottom: 0.5rem;
    border-radius: 2px;
}

.theme-tiss-sse-legacy .legacy-leader-info h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2f1a22;
}

.theme-tiss-sse-legacy .legacy-leader-info p {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #794f5e;
    line-height: 1.4;
}


/* ─── ADD GLOW EFFECT ONLY ─── */

.theme-tiss-sse-legacy .legacy-leader-card {
    position: relative;
    overflow: hidden;
    /* keeps glow inside */
}


/* enhance existing hover */

.theme-tiss-sse-legacy .legacy-leader-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(191, 58, 96, 0.18), 0 0 0 1px rgba(191, 58, 96, 0.15);
    /* subtle glow ring */
}


/* soft glow overlay */

.theme-tiss-sse-legacy .legacy-leader-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top right, rgba(191, 58, 96, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.theme-tiss-sse-legacy .legacy-leader-card:hover::after {
    opacity: 1;
}

.legacy-footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 1.5rem;
}

.legacy-footer-links-divider {
    border: none;
    border-top: 1px solid rgba(191, 58, 96, 0.3);
    margin: 1rem 0;
    grid-column: 1 / -1;
}

.legacy-footer-links-grid-wrap {
    display: flex;
    flex-direction: column;
}


/* ─── MOBILE RESPONSIVE FIX (Leadership) ─── */

@media (max-width: 768px) {
    .theme-tiss-sse-legacy .legacy-leadership {
        padding: 1.5rem 1rem;
    }
    /* stack cards vertically */
    .theme-tiss-sse-legacy .legacy-leader-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.2rem;
    }
    /* image center + bigger */
    .theme-tiss-sse-legacy .legacy-leader-img-wrap {
        width: 110px;
        height: 140px;
        margin-bottom: 0.6rem;
    }
    /* center text */
    .theme-tiss-sse-legacy .legacy-leader-info {
        text-align: center;
    }
    /* center accent line */
    .theme-tiss-sse-legacy .legacy-leader-info::before {
        margin: 0 auto 0.5rem;
    }
    /* better spacing */
    .theme-tiss-sse-legacy .legacy-leader-info h3 {
        font-size: 1rem;
    }
    .theme-tiss-sse-legacy .legacy-leader-info p {
        font-size: 0.8rem;
    }
    /* grid single column */
    .theme-tiss-sse-legacy .legacy-leadership-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}