:root {
    --sot-home-red: #c9151e;
    --sot-home-red-dark: #9f1017;
    --sot-home-navy: #11123f;
    --sot-home-ink: #211817;
    --sot-home-muted: #6c6360;
    --sot-home-cream: #fbf7f2;
    --sot-home-white: #ffffff;
    --sot-home-border: #ece3da;
    --sot-home-shadow: 0 24px 60px rgba(39, 22, 20, 0.10);
}

.sot-home-page {
    width: 100%;
    padding-top: 1.4rem;
    color: var(--sot-home-ink);
}

/* News line */
.sot-news-line {
    display: flex;
    min-height: 44px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(201, 21, 30, 0.12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 18, 63, 0.05);
}

.sot-news-label {
    z-index: 2;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0 1rem;
    background: var(--sot-home-red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sot-news-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18);
}

.sot-news-window {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.sot-news-track {
    display: flex;
    width: max-content;
    min-height: 44px;
    align-items: center;
    animation: sotNewsMove 28s linear infinite;
}

.sot-news-window:hover .sot-news-track,
.sot-news-window:focus .sot-news-track,
.sot-news-window:focus-within .sot-news-track {
    animation-play-state: paused;
}

.sot-news-group {
    display: flex;
    align-items: center;
    gap: 2.8rem;
    padding-right: 2.8rem;
    white-space: nowrap;
}

.sot-news-item {
    color: #4f4542;
    font-size: 0.9rem;
    font-weight: 650;
}

.sot-news-item::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.7rem;
    border-radius: 50%;
    background: var(--sot-home-red);
    vertical-align: middle;
}

@keyframes sotNewsMove {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

/* Hero */
.sot-home-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid #f0e9e2;
    border-radius: 3px;
    background:
        radial-gradient(circle at 10% 20%, rgba(201, 21, 30, 0.045), transparent 34%),
        linear-gradient(135deg, #fffdfa 0%, #faf5ef 100%);
    box-shadow: var(--sot-home-shadow);
}

.sot-home-hero::before {
    content: "";
    position: absolute;
    top: -110px;
    left: -90px;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background: rgba(201, 21, 30, 0.055);
    filter: blur(2px);
}

.sot-home-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 620px;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5.5rem);
    padding: clamp(3.5rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4.5rem);
}

.sot-home-hero-copy {
    max-width: 660px;
}

.sot-home-eyebrow,
.sot-section-eyebrow {
    display: inline-block;
    color: var(--sot-home-red);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sot-home-hero h1 {
    margin: 1.25rem 0 1.45rem;
    color: #201616;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(3rem, 5.2vw, 5.2rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.sot-home-hero h1 span {
    display: block;
    margin-top: 0.15em;
    color: var(--sot-home-red);
}

.sot-home-hero-text {
    max-width: 650px;
    margin: 0;
    color: #655c58;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.75;
}

.sot-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.2rem;
}

.sot-home-btn {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sot-home-btn-primary {
    border-color: var(--sot-home-red);
    background: var(--sot-home-red);
    color: #fff;
    box-shadow: 0 15px 30px rgba(201, 21, 30, 0.20);
}

.sot-home-btn-primary:hover,
.sot-home-btn-primary:focus {
    border-color: var(--sot-home-navy);
    background: var(--sot-home-navy);
    color: #fff;
}

.sot-home-btn-secondary {
    border-color: #e8ddd4;
    background: #fff;
    color: #211817;
}

.sot-home-btn-secondary:hover,
.sot-home-btn-secondary:focus {
    border-color: var(--sot-home-red);
    background: #fff;
    color: var(--sot-home-red);
}

.sot-home-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.7rem, 4vw, 3.8rem);
    margin-top: 2.8rem;
}

.sot-home-stat strong {
    display: block;
    color: #171010;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    font-weight: 850;
    line-height: 1;
}

.sot-home-stat span {
    display: block;
    margin-top: 0.55rem;
    color: #756a66;
    font-size: 0.74rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* Admin-controlled image slider */
.sot-home-hero-visual {
    position: relative;
    min-width: 0;
}

.sot-home-hero-visual::before {
    content: "";
    position: absolute;
    inset: 8% -5% -7% 8%;
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(17, 18, 63, 0.13), rgba(201, 21, 30, 0.12));
    filter: blur(24px);
}

#homeHeroImageCarousel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    background: #1f2028;
    box-shadow: 0 28px 65px rgba(28, 20, 20, 0.20);
}

.sot-home-image-slide {
    position: relative;
    height: clamp(430px, 44vw, 535px);
    overflow: hidden;
    background: #23242b;
    isolation: isolate;
}

.sot-home-image-blur {
    position: absolute;
    z-index: -2;
    inset: -26px;
    background-position: center;
    background-size: cover;
    filter: blur(18px) brightness(0.68) saturate(0.92);
    transform: scale(1.13);
}

.sot-home-image-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    animation: sotHeroImageZoom 8s ease-in-out alternate infinite;
}

.sot-home-image-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(17, 18, 63, 0.02) 45%, rgba(17, 18, 63, 0.28) 100%),
        linear-gradient(90deg, rgba(201, 21, 30, 0.06), transparent 38%);
    pointer-events: none;
}

@keyframes sotHeroImageZoom {
    from { transform: scale(1.01); }
    to { transform: scale(1.065); }
}

.sot-home-image-control {
    width: 14%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#homeHeroImageCarousel:hover .sot-home-image-control,
#homeHeroImageCarousel:focus-within .sot-home-image-control {
    opacity: 0.92;
}

.sot-home-image-control .carousel-control-prev-icon,
.sot-home-image-control .carousel-control-next-icon {
    width: 42px;
    height: 42px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 50%;
    background-color: rgba(17, 18, 63, 0.52);
    background-size: 42%;
    backdrop-filter: blur(10px);
}

.sot-home-image-indicators {
    z-index: 4;
    bottom: 15px;
    gap: 6px;
    margin-bottom: 0;
}

.sot-home-image-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.62);
}

.sot-home-image-indicators .active {
    width: 28px;
    border-radius: 999px;
    background-color: var(--sot-home-red);
}

.carousel-fade .carousel-item {
    transition: opacity 0.9s ease-in-out;
}

/* Home sections */
.sot-home-section {
    padding: clamp(4.2rem, 7vw, 7rem) 0 0;
}

.sot-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sot-section-heading h2,
.sot-partners-heading h2 {
    margin: 0.55rem 0 0.5rem;
    color: var(--sot-home-navy);
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.sot-section-heading p,
.sot-partners-heading p {
    max-width: 680px;
    margin: 0;
    color: var(--sot-home-muted);
    line-height: 1.65;
}

.sot-section-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.65rem;
    color: var(--sot-home-red);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.sot-section-link:hover,
.sot-section-link:focus {
    color: var(--sot-home-navy);
}

/* Cards */
.sot-program-card,
.sot-blog-card,
.sot-event-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--sot-home-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 15px 38px rgba(17, 18, 63, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sot-program-card:hover,
.sot-blog-card:hover,
.sot-event-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 21, 30, 0.22);
    box-shadow: 0 24px 52px rgba(17, 18, 63, 0.12);
}

.sot-card-media {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #f0ece8;
}

.sot-card-media img,
.sot-blog-card > img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.sot-program-card:hover .sot-card-media img,
.sot-blog-card:hover > img {
    transform: scale(1.04);
}

.sot-card-placeholder,
.sot-blog-placeholder {
    display: grid;
    height: 230px;
    place-items: center;
    background: linear-gradient(135deg, #f7eee8, #edf0f8);
    color: var(--sot-home-red);
    font-size: 2.3rem;
}

.sot-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(201, 21, 30, 0.90);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.sot-card-body {
    display: flex;
    min-height: 245px;
    flex-direction: column;
    padding: 1.45rem;
}

.sot-card-body h3,
.sot-event-content h3 {
    margin: 0 0 0.85rem;
    color: var(--sot-home-navy);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.32;
}

.sot-card-description {
    display: -webkit-box;
    margin: 0 0 1.2rem;
    overflow: hidden;
    color: #665e5a;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
}

.sot-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    color: var(--sot-home-red);
    font-weight: 800;
    text-decoration: none;
}

.sot-card-link:hover,
.sot-card-link:focus {
    color: var(--sot-home-navy);
}

.sot-blog-date {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: var(--sot-home-red);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* Events */
.sot-event-card {
    display: grid;
    min-height: 225px;
    grid-template-columns: 92px 1fr;
}

.sot-event-date {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(160deg, var(--sot-home-red), var(--sot-home-red-dark));
    color: #fff;
}

.sot-event-date strong {
    font-size: 2.15rem;
    line-height: 1;
}

.sot-event-date span {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.sot-event-content {
    padding: 1.5rem;
}

.sot-event-time {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    color: var(--sot-home-red);
    font-size: 0.78rem;
    font-weight: 800;
}

.sot-event-content p {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1rem;
    color: #6e6561;
    line-height: 1.55;
}

.sot-event-content > a {
    color: var(--sot-home-red);
    font-weight: 800;
    text-decoration: none;
}

.sot-empty-state {
    padding: 3rem 1.5rem;
    border: 1px dashed #dacfc6;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.sot-empty-state i {
    margin-bottom: 1rem;
    color: var(--sot-home-red);
    font-size: 2rem;
}

.sot-empty-state h3 {
    color: var(--sot-home-navy);
    font-weight: 800;
}

.sot-empty-state p {
    margin-bottom: 0;
    color: var(--sot-home-muted);
}

/* Partner marquee - two opposite rows */
.sot-partners-section {
    margin: clamp(4.5rem, 8vw, 7rem) calc(50% - 50vw) 0;
    padding: clamp(4.5rem, 7vw, 6.5rem) 0;
    overflow: hidden;
    background: linear-gradient(145deg, #f9f5f0, #fff);
    border-top: 1px solid #eee4dc;
    border-bottom: 1px solid #eee4dc;
}

.sot-partners-heading {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto 2.3rem;
    text-align: center;
}

.sot-partners-heading p {
    margin-right: auto;
    margin-left: auto;
}

.sot-partners-heading .sot-section-link {
    margin-top: 1rem;
}

.sot-partner-marquee {
    position: relative;
    overflow: hidden;
    padding: 0.55rem 0;
}

.sot-partner-marquee::before,
.sot-partner-marquee::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: min(10vw, 130px);
    pointer-events: none;
}

.sot-partner-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #faf6f1, transparent);
}

.sot-partner-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #fff, transparent);
}

.sot-partner-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.sot-partner-group {
    display: flex;
    flex: 0 0 auto;
    gap: 1rem;
    padding-right: 1rem;
}

.sot-partner-forward .sot-partner-track {
    animation: sotPartnersForward 34s linear infinite;
}

.sot-partner-reverse .sot-partner-track {
    animation: sotPartnersReverse 38s linear infinite;
}

.sot-partner-marquee:hover .sot-partner-track,
.sot-partner-marquee:focus .sot-partner-track,
.sot-partner-marquee:focus-within .sot-partner-track {
    animation-play-state: paused;
}

@keyframes sotPartnersForward {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@keyframes sotPartnersReverse {
    from { transform: translate3d(-50%, 0, 0); }
    to { transform: translate3d(0, 0, 0); }
}

.sot-partner-tile {
    display: flex;
    width: 185px;
    height: 86px;
    flex: 0 0 185px;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border: 1px solid #ece3dc;
    border-radius: 14px;
    background: #fff;
    color: var(--sot-home-navy);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(17, 18, 63, 0.055);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sot-partner-tile:hover,
.sot-partner-tile:focus {
    transform: translateY(-3px);
    border-color: rgba(201, 21, 30, 0.28);
    box-shadow: 0 14px 28px rgba(17, 18, 63, 0.10);
}

.sot-partner-tile img {
    display: block;
    max-width: 145px;
    max-height: 54px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.78;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.sot-partner-tile:hover img,
.sot-partner-tile:focus img {
    filter: grayscale(0);
    opacity: 1;
}

.sot-partner-tile span {
    font-size: 0.82rem;
    font-weight: 800;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .sot-home-hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
        gap: 2.5rem;
    }

    .sot-home-image-slide {
        height: 470px;
    }
}

@media (max-width: 991.98px) {
    .sot-home-hero-inner {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
    }

    .sot-home-hero-copy {
        max-width: 760px;
    }

    .sot-home-hero-visual {
        width: min(100%, 760px);
    }

    .sot-home-image-slide {
        height: min(64vw, 520px);
    }

    .sot-home-image-control {
        opacity: 0.9;
    }
}

@media (max-width: 767.98px) {
    .sot-home-page {
        padding-top: 0.75rem;
    }

    .sot-news-label {
        padding: 0 0.75rem;
    }

    .sot-home-hero-inner {
        min-height: auto;
        padding: 3.2rem 1.25rem 1.25rem;
    }

    .sot-home-hero h1 {
        font-size: clamp(2.65rem, 14vw, 4rem);
    }

    .sot-home-btn {
        width: 100%;
    }

    .sot-home-hero-stats {
        justify-content: space-between;
        gap: 1rem;
    }

    .sot-home-image-slide {
        height: 410px;
    }

    .sot-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .sot-event-card {
        grid-template-columns: 78px 1fr;
    }

    .sot-partner-tile {
        width: 155px;
        height: 76px;
        flex-basis: 155px;
    }

    .sot-partner-tile img {
        max-width: 120px;
        max-height: 46px;
    }
}

@media (max-width: 480px) {
    .sot-home-image-slide {
        height: 340px;
    }

    .sot-home-hero-stats {
        gap: 1.4rem;
    }

    .sot-home-stat {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sot-news-track,
    .sot-home-image-slide img,
    .sot-partner-track {
        animation: none !important;
    }

    .sot-program-card,
    .sot-blog-card,
    .sot-event-card,
    .sot-partner-tile,
    .sot-home-btn {
        transition: none !important;
    }
}
