.otm-home-news {
    box-sizing: border-box;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px clamp(16px, 3vw, 32px) 20px;
    color: #102841;
}

.otm-home-news__heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 14px;
}

.otm-home-news__heading h2 {
    flex: 1 1 auto;
    margin: 0;
    color: inherit;
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 780;
    line-height: 1.15;
}

.otm-home-news__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    color: #125d89;
    font-size: 14px;
    font-weight: 700;
}

.otm-home-news__all::after {
    content: "";
    width: 7px;
    height: 7px;
    border-block-start: 2px solid currentColor;
    border-inline-end: 2px solid currentColor;
    transform: translateX(-1px) rotate(45deg);
}

.otm-home-news__controls { display: flex; gap: 6px; }
.otm-home-news [hidden] { display: none; }

button.otm-slider-arrow {
    display: inline-grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid #cddce9;
    border-radius: 50%;
    background: #fff;
    color: #173b56;
    cursor: pointer;
}

.otm-slider-arrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-block-start: 2px solid currentColor;
    border-inline-end: 2px solid currentColor;
    transform: translateX(-2px) rotate(45deg);
}

.otm-slider-arrow--prev::before { transform: translateX(2px) rotate(-135deg); }

.otm-home-news__controls button:not(:disabled):hover {
    border-color: #126788;
    background: #eaf6fb;
    color: #0b526f;
}

.otm-home-news__controls button:disabled { opacity: .48; cursor: default; }

.otm-home-news__track {
    --news-card-gap: 14px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * var(--news-card-gap)) / 4);
    gap: var(--news-card-gap);
    overflow-x: auto;
    padding-block: 2px 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.otm-home-news__track--enhanced { scrollbar-width: none; }
.otm-home-news__track--enhanced::-webkit-scrollbar { display: none; }

.otm-home-news__track:focus-visible {
    outline: 2px solid #09758e;
    outline-offset: 3px;
    border-radius: 14px;
}

.otm-home-news article.otm-home-news__story {
    min-width: 0;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid #d9e4ed;
    border-radius: 14px;
    background: #fff;
}

.otm-home-news__story a {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.otm-home-news__story a:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #007b94;
    outline-offset: -3px;
    border-radius: inherit;
}

.otm-home-news__media {
    position: relative;
    overflow: hidden;
    height: clamp(96px, 10vw, 130px);
    background: url("/assets/images/otm-brand-light.svg") center / min(65%, 120px) auto no-repeat, linear-gradient(145deg, #e8f7fb, #dcecf9);
}

.otm-home-news__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.otm-home-news__media img[hidden] { display: none; }
.otm-home-news__body { padding: 10px 12px 12px; }

.otm-home-news__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin-bottom: 5px;
    color: #4c6477;
    font-size: 11px;
    line-height: 1.25;
}

.otm-home-news__meta span {
    color: #09637b;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.otm-home-news__body h3 {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.otm-home-news__story a:hover h3 { color: #09637b; text-decoration: underline; }

.otm-home-news__progress {
    position: relative;
    height: 4px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce9f0;
}

.otm-home-news__progress span {
    position: absolute;
    inset-block: 0;
    left: var(--news-progress-start, 0);
    width: var(--news-progress-width, 100%);
    border-radius: inherit;
    background: #197c97;
}

@media (prefers-reduced-motion: no-preference) {
    .otm-home-news__media img { transition: transform .25s ease; }
    .otm-home-news__story a:hover img { transform: scale(1.04); }
}

@media (max-width: 960px) {
    .otm-home-news__track { grid-auto-columns: calc((100% - 2 * var(--news-card-gap)) / 3); }
}

@media (max-width: 767px) {
    .otm-home-news__track {
        --news-card-gap: 9px;
        grid-auto-columns: calc((100% - var(--news-card-gap)) / 2);
    }
    .otm-home-news__heading { gap: 8px; }
    .otm-home-news__heading h2 { flex: 1 1 100%; }
    .otm-home-news__all { margin-inline-end: auto; }
    .otm-home-news__body { padding: 8px 9px 10px; }
    .otm-home-news__body h3 { font-size: 13px; -webkit-line-clamp: 3; }
}

.otm-home-news--grid .otm-home-news__grid {
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:12px;
}
.otm-home-news--grid .otm-home-news-tile {
    display:flex;
    align-items:flex-end;
    position:relative;
    isolation:isolate;
    min-width:0;
    aspect-ratio:4/5;
    border-radius:11px;
    padding:12px;
    overflow:hidden;
    background:#24455b url("/assets/images/otm-brand-light.svg") center 36% / 60% auto no-repeat;
    color:#fff !important;
    text-decoration:none !important;
}
.otm-home-news-tile::after {
    content:'';
    position:absolute;
    inset:0;
    z-index:-1;
    background:linear-gradient(180deg,transparent 25%,#101c2bd9 74%,#101c2b 100%);
}
.otm-home-news-tile img {
    position:absolute;
    inset:0;
    z-index:-2;
    width:100% !important;
    height:100% !important;
    object-fit:cover;
}
.otm-home-news-tile__title {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:4;
    overflow:hidden;
    overflow-wrap:anywhere;
    font-size:clamp(.85rem, 1.4vw, 1rem);
    line-height:1.3;
    font-weight:750;
}
.otm-home-news--grid .otm-home-news-tile:hover .otm-home-news-tile__title { text-decoration:underline; }
.otm-home-news--grid .otm-home-news-tile:focus-visible { outline:3px solid #469af0; outline-offset:2px; }
@media(max-width:950px) {
    .otm-home-news--grid .otm-home-news__grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:600px) {
    .otm-home-news--grid .otm-home-news__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .otm-home-news--grid .otm-home-news-tile { padding:10px; }
}
