/* 
Theme Name: TS Scouts Unified v4.5
Theme URI: https://tsscouts.org.uk
Author: Tameside South Scouts Technology Team
Description: Unified light Skills for Life–style theme for Tameside South Scouts district, groups, Explorer Units and Boarfold campsite.
Version: 4.21
Text Domain: ts-scouts-unified
*/

/* --- CORE TOKENS --- */
:root {
    --ts-purple: #5a2d83;
    --ts-purple-dark: #432062;
    --ts-teal: #00b7c3;
    --ts-grey-bg: #f5f5f5;
    --ts-grey-light: #fafafa;
    --ts-text: #222;
    --ts-text-muted: #666;
    --ts-radius: 10px;
    --ts-radius-lg: 16px;
    --ts-shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
    --ts-border-soft: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- RESET / BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ts-text);
    background: #ffffff;
    line-height: 1.6;
}

a {
    color: var(--ts-purple);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- LAYOUT HELPERS --- */
.ts-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

main {
    padding-bottom: 40px;
}

/* --- HEADER --- */
.site-header {
    border-bottom: var(--ts-border-soft);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.site-title a {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ts-purple-dark);
}

/* nav */
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
}

.site-nav a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--ts-text);
}

.site-nav a:hover {
    background: var(--ts-grey-light);
    text-decoration: none;
}

/* --- HERO --- */
.ts-hero {
    position: relative;
    height: 600px;
    background: var(--ts-purple);
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    /* Aligned to top */
    color: #ffffff;
    padding-top: 20px;
    /* Pushed to absolute top */
}

.home .ts-hero {
    height: 100vh;
    /* Covers initial viewport */
    min-height: 2200px;
    /* High enough to cover 3 rows + scroll */
}

.ts-hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ts-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.ts-hero-slide.active {
    opacity: 1;
}

.ts-hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    /* Soften background deeply */
    z-index: 2;
}

.ts-hero .ts-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.ts-hero-content {
    max-width: 1000px;
    margin-top: 0;
}

.ts-hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.ts-hero-left {
    flex: 1;
}

.ts-hero-right {
    flex: 0 0 450px;
}

@media (max-width: 880px) {
    .ts-hero-row {
        flex-direction: column;
        gap: 20px;
    }

    .ts-hero-right {
        flex: 1;
        width: 100%;
    }
}

.ts-hero h1 {
    font-size: 5rem;
    /* Massive wallpaper font */
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    margin: 0 0 15px 0;
    line-height: 1;
    font-weight: 800;
}

.ts-hero p {
    font-size: 1.4rem;
    color: #ffffff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    margin: 0 0 30px 0;
}

.ts-hero-dropdown select {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--ts-shadow-soft);
}

.ts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.ts-btn-primary {
    background: var(--ts-purple);
    color: #ffffff;
    box-shadow: var(--ts-shadow-soft);
}

.ts-btn-primary:hover {
    background: var(--ts-purple-dark);
}

.ts-group-picker select {
    min-width: 230px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 0.9rem;
}

/* hero image */
.ts-hero-image {
    justify-self: flex-end;
}

.ts-hero-image img {
    max-width: 360px;
    width: 100%;
}

/* --- SECTION TITLES --- */
.ts-section-title {
    margin: 40px 0 10px 0;
    font-size: 1.4rem;
}

.ts-section-subtitle {
    margin: 0 0 18px 0;
    color: var(--ts-text-muted);
    font-size: 0.95rem;
}

/* --- GROUP GRID --- */
.ts-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 12px;
}

.ts-group-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: var(--ts-radius-lg);
    box-shadow: var(--ts-shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ts-group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ts-card-link {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
}

.ts-card-inner {
    padding: 16px 16px 14px 16px;
}

/* --- NECKER VISUALS --- */
.ts-necker-wrap {
    position: absolute;
    top: -5px;
    left: 25px;
    width: 70px;
    height: 45px;
    z-index: 30;
    pointer-events: none;
}

.ts-necker-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.ts-necker-badge {
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 31;
}

.ts-necker-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ts-necker-badge-segment {
    flex: 1;
}

/* group header */
.ts-group-name {
    margin: 10px 0 4px 0;
    font-size: 1.05rem;
}

.ts-group-meta {
    font-size: 0.85rem;
    color: var(--ts-text-muted);
    margin-bottom: 12px;
}

.ts-card-sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--ts-grey-light);
}

.ts-card-section-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.ts-mini-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* sections line and logos */
.ts-sections-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 8px;
}

.ts-sections {
    font-size: 0.8rem;
    color: var(--ts-text-muted);
}

.ts-section-logos {
    display: flex;
    gap: 4px;
}

.ts-section-logos img {
    width: 18px;
    height: 18px;
}

/* --- District sections / explorers --- */
.ts-explorer-grid,
.ts-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.ts-card-soft {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: var(--ts-radius-lg);
    box-shadow: var(--ts-shadow-soft);
    padding: 18px 18px 16px 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ts-card-soft:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* --- GROUP / EXPLORER SINGLE LAYOUT --- */
.ts-group-header {
    margin-top: 30px;
    margin-bottom: 20px;
    position: relative;
    padding-top: 15px;
    overflow: hidden;
    border-radius: var(--ts-radius-lg);
}

.ts-group-header h1 {
    margin: 0 0 6px 0;
}

.ts-group-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 24px;
    margin-bottom: 40px;
}

.ts-group-panel {
    background: #ffffff;
    border-radius: var(--ts-radius-lg);
    box-shadow: var(--ts-shadow-soft);
    padding: 18px 18px 16px 18px;
}

.ts-section-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    font-size: 0.95rem;
}

.ts-section-list li {
    margin-bottom: 6px;
}

.ts-section-details strong {
    color: var(--ts-purple-dark);
}

/* --- BOARFOLD TEMPLATE --- */
.ts-boarfold-hero {
    margin-top: 30px;
    margin-bottom: 16px;
}

.ts-boarfold-hero h1 {
    margin: 0 0 6px 0;
}

.ts-boarfold-meta {
    font-size: 0.9rem;
    color: var(--ts-text-muted);
}

.ts-boarfold-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.4fr);
    gap: 24px;
    margin-bottom: 40px;
}

.ts-boarfold-panel {
    background: #ffffff;
    border-radius: var(--ts-radius-lg);
    box-shadow: var(--ts-shadow-soft);
    padding: 18px 18px 16px 18px;
}

.ts-boarfold-booking h2 {
    margin-top: 0;
}

/* --- SAFEGUARDING --- */
.ts-safeguarding {
    margin-top: 40px;
    padding: 24px 0;
    background: var(--ts-grey-bg);
    border-top: var(--ts-border-soft);
    border-bottom: var(--ts-border-soft);
}

.ts-safeguarding-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 20px;
    align-items: center;
}

.ts-sg-left h2 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.ts-sg-left .lead {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
}


.ts-ceop {
    display: inline-block;
    background: #ffd400;
    padding: 6px 10px;
    border-radius: var(--ts-radius);
    margin-top: 8px;
}

.ts-ceop img {
    height: 50px;
    width: auto;
}

.ts-sg-widget {
    background: #ffffff;
    border-radius: var(--ts-radius);
    padding: 10px 12px;
    font-size: 0.9rem;
    box-shadow: var(--ts-shadow-soft);
    margin-bottom: 10px;
}


/* Safeguarding & CEOP footer strip */
.ts-safeguard-strip {
    background: #ffeb3b;
    color: #222;
    padding: 32px 0 24px;
    margin-top: 48px;
    border-top: 4px solid #ffca28;
}

.ts-safeguard-inner {
    max-width: var(--ts-container);
    margin: 0 auto;
    padding: 0 16px;
}

.ts-safeguard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr);
    gap: 24px;
}

.ts-safeguard-heading {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.ts-safeguard-sub {
    margin: 0 0 18px;
    font-size: 0.98rem;
}

.ts-safeguard-block h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
}

.ts-safeguard-block p {
    margin: 0 0 6px;
    font-size: 0.95rem;
}

.ts-safeguard-block ul {
    margin: 4px 0 10px 18px;
    padding: 0;
    font-size: 0.95rem;
}

.ts-safeguard-cta {
    margin-top: 8px;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #222;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.ts-safeguard-cta:hover {
    opacity: 0.9;
}

.ts-safeguard-meta {
    margin-top: 12px;
    font-size: 0.9rem;
}

.ts-safeguard-meta a {
    font-weight: 600;
}

.ts-ceop-badge-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.ts-ceop-badge-wrap img {
    max-width: 220px;
    height: auto;
    display: block;
}

.ts-safe-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #222;
    color: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.9rem;
    text-decoration: none;
}

.ts-safe-brand span {
    font-weight: 600;
}

@media (max-width: 768px) {
    .ts-safeguard-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ts-safeguard-strip {
        padding: 24px 0 20px;
    }
}

/* --- FOOTER --- */
.ts-footer {
    padding: 18px 0 24px 0;
    background: #ffffff;
}

.ts-footer-inner {
    font-size: 0.85rem;
    color: var(--ts-text-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 880px) {
    .ts-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .ts-hero-image {
        justify-self: flex-start;
        margin-top: 10px;
    }

    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .site-nav ul {
        flex-wrap: wrap;
    }

    .ts-group-layout,
    .ts-boarfold-layout,
    .ts-safeguarding-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}


.ts-special-fund-apply {
    margin-top: 24px;
    padding-top: 16px;
    border-top: var(--ts-border-soft);
}

.ts-special-fund-form {
    margin-top: 12px;
}


.ts-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 24px;
    margin-top: 32px;
}

@media (max-width: 900px) {
    .ts-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ts-layout-main {
    display: grid;
    gap: 24px;
}

.ts-layout-aside {
    display: grid;
    gap: 24px;
    align-content: flex-start;
}

.ts-map-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--ts-radius-lg);
}

.ts-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.ts-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--ts-radius);
}


.ts-necker-badge-img-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 3px #fff;
}

.ts-necker-badge-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Map Iframe Container */
.ts-iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.ts-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Recent News Grid (Homepage) */
.ts-recent-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.ts-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ts-news-card:hover {
    transform: translateY(-5px);
}

.ts-news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin: -12px -12px 16px -12px;
}

.ts-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ts-news-card:hover .ts-news-image img {
    transform: scale(1.05);
}

.ts-news-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ts-news-date {
    font-size: 13px;
    color: var(--ts-text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.ts-news-title {
    font-size: 20px;
    margin: 0 0 12px 0;
    color: var(--ts-primary);
    line-height: 1.4;
}

.ts-news-excerpt {
    font-size: 15px;
    color: var(--ts-text-main);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.ts-news-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--ts-primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    align-self: flex-start;
    transition: background 0.2s ease;
}

.ts-news-link:hover {
    background: var(--ts-primary-dark, #5d0fb0);
    color: #fff;
}


/* --- Contact / Facilities / Icons blocks for Boarfold & re-use --- */
.ts-contact-block * {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ts-contact-block {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-width: 720px;
}

.ts-contact-heading {
    color: #7413DC;
    font-size: 22px;
    margin: 0 0 6px 0;
}

.ts-contact-sub {
    font-size: 14px;
    color: #555;
    margin: 0 0 16px 0;
}

.ts-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ts-contact-col {
    flex: 1;
    min-width: 220px;
}

.ts-contact-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.ts-contact-pill-wrap {
    margin-top: 16px;
}

.ts-contact-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f3f7;
    font-size: 14px;
}

.ts-contact-note {
    font-size: 13px;
    color: #666;
}

.ts-contact-text {
    font-size: 14px;
    color: #444;
}

/* Facilities block */
.ts-facilities-block * {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ts-facilities-block {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ts-facilities-heading {
    color: #7413DC;
    font-size: 22px;
    margin: 0 0 6px 0;
}

.ts-facilities-sub {
    font-size: 14px;
    color: #555;
    margin: 0 0 16px 0;
}

.ts-facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px 18px;
}

.ts-facility-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.ts-facility-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: none;
    stroke: #7413DC;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ts-facility-title {
    font-weight: 600;
    margin: 0 0 2px 0;
}

.ts-facility-text {
    margin: 0;
    color: #444;
    font-size: 13px;
}

/* Icons demo / amenity library */
.ts-icon-demo * {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ts-icon-demo {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
}

.ts-icon-demo-item {
    width: 110px;
    text-align: center;
}

.ts-icon-demo svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #7413DC;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 4px;
}

/* --- Generic gallery / carousel styles --- */
.ts-gallery-section {
    margin-top: 32px;
}

.ts-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.ts-gallery-header h2 {
    margin: 0;
}

.ts-gallery-note {
    margin: 0;
    font-size: 14px;
    color: var(--ts-text-muted);
}

.ts-carousel {
    position: relative;
    margin-top: 8px;
}

.ts-carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
}

.ts-carousel-slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    min-width: 260px;
    max-width: 360px;
    background: #000;
}

.ts-carousel-slide img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.ts-carousel-empty {
    font-size: 14px;
    color: var(--ts-text-muted);
}

/* --- Footer links (socials) --- */
.ts-footer-links {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.ts-footer-links a {
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.ts-footer-links a:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* --- Simple hero override for gallery-style pages --- */
.ts-hero--boarfold,
.ts-hero--generic-page {
    background: linear-gradient(135deg, #7413DC, #00b7c3);
    color: #ffffff;
}

.ts-hero--boarfold .ts-hero-copy h1,
.ts-hero--generic-page .ts-hero-copy h1 {
    color: #ffffff;
}


/* Special Fund form wrapper */
.ts-specialfund-form iframe {
    border-radius: 12px;
    background: #ffffff;
}

/* --- CAROUSELS --- */
.ts-carousel-wrapper {
    position: relative;
    margin: 0 -10px;
    /* Slight offset for buttons */
}

.ts-carousel-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 10px 20px 10px;
}

.ts-carousel-list::-webkit-scrollbar {
    display: none;
}

.ts-carousel-list>* {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.ts-carousel-prev,
.ts-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--ts-purple);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ts-carousel-prev {
    left: -20px;
}

.ts-carousel-next {
    right: -20px;
}

.ts-carousel-prev:hover,
.ts-carousel-next:hover {
    background: var(--ts-purple-dark);
    transform: translateY(-50%) scale(1.1);
}

/* --- DISTRICT TEAM --- */
.ts-team-member {
    display: flex;
    flex-direction: column;
}

.ts-team-role {
    font-size: 1rem;
    color: var(--ts-purple);
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ts-team-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.ts-team-bio {
    font-size: 0.9rem;
    color: var(--ts-text-muted);
    margin-bottom: 12px;
    flex-grow: 1;
}

.ts-team-contact {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--ts-purple);
    text-decoration: none;
    font-weight: 700;
}

/* --- MOBILE & UTILITIES --- */
.ts-section-spacer {
    padding-top: 50px;
    padding-bottom: 30px;
}

@media (max-width: 768px) {
    .ts-hero {
        height: 450px !important;
    }

    .ts-hero h1 {
        font-size: 2.4rem;
    }

    .ts-hero p {
        font-size: 1.15rem;
    }

    .ts-carousel-wrapper {
        margin: 0;
    }

    .ts-carousel-prev,
    .ts-carousel-next {
        display: none;
    }

    .ts-carousel-list {
        gap: 12px;
        padding-left: 0;
        padding-right: 0;
    }

    .ts-carousel-list>* {
        flex: 0 0 280px;
    }

    .ts-group-layout {
        grid-template-columns: 1fr;
    }

    .ts-boarfold-layout {
        grid-template-columns: 1fr;
    }

    .ts-sections-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- SECTION ICONS FIX --- */
.ts-section-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ts-section-icon-sm {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
}

/* --- MAIN CONTENT OVERLAP --- */
.ts-main-content {
    position: relative;
    z-index: 20;
    margin-top: -1800px;
    /* Restored clearance to prevent title overlap */
    padding-bottom: 60px;
    background: transparent !important;
}

#page,
.site,
.site-content {
    background: transparent !important;
}

.ts-hero-row {
    margin-top: 0;
}

.ts-hero-dropdown {
    margin-top: 20px;
}

.home .ts-main-content .ts-section-spacer {
    background: transparent;
    border-radius: 0;
    padding: 10px 0;
    box-shadow: none;
    margin-bottom: 20px;
}

.home .ts-main-content .ts-section-title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-size: 2rem;
    margin-top: 0;
}

.home .ts-main-content .ts-section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
}

/* Smaller cards for District & Team */
.ts-explorer-grid .ts-card-soft,
.ts-team-carousel-list .ts-card-soft {
    padding: 12px;
}

.ts-explorer-grid .ts-group-name,
.ts-team-carousel-list .ts-team-role {
    font-size: 0.95rem;
    margin: 5px 0;
}

.ts-explorer-grid .ts-card-soft .ts-necker-wrap {
    width: 60px;
    height: 35px;
    left: 15px;
}

.ts-explorer-grid .ts-carousel-list>*,
.ts-team-carousel-list>* {
    flex: 0 0 240px;
}

.ts-hero-dropdown select {
    width: 100%;
    max-width: 450px;
    padding: 16px 28px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.ts-hero-dropdown select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.ts-hero-dropdown select option {
    background: #ffffff;
    color: var(--ts-purple);
}