.otm-public-page .otm-public-main.wrap:has(> .otm-news-public) {
    width: 100%;
    max-width: none;
    padding-inline: 0;
    padding-top: 0;
}

.otm-news-public {
    --news-ink: #102d48;
    --news-muted: #4d6578;
    --news-accent: #1269ad;
    --news-line: #dbe6ed;
    box-sizing: border-box;
    width: 100%;
    max-width: 1296px;
    margin-inline: auto;
    padding: clamp(22px, 4vw, 48px) clamp(16px, 3vw, 32px) 64px;
    color: var(--news-ink);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

header.otm-news-public__masthead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 12px 0 18px;
    border-top: 4px solid var(--news-accent);
    border-bottom: 1px solid var(--news-line);
}

.otm-news-public__masthead h1,
.otm-news-story__header h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 53px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
    color: var(--news-ink);
    overflow-wrap: anywhere;
}

.otm-news-public__masthead > span {
    color: var(--news-muted);
    font-size: 14px;
    white-space: nowrap;
}

.otm-news-public__filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 235px) auto;
    gap: 10px;
    align-items: center;
    margin: 18px 0 26px;
}

label.otm-news-public__search {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding-inline: 13px;
    color: var(--news-accent);
}

.otm-news-public__search svg { flex: 0 0 20px; }

.otm-news-public__search,
.otm-news-public__filters select {
    width: 100%;
    min-width: 0;
    height: 46px;
    border: 1px solid #cbdbe5;
    border-radius: 7px;
    background: #fff;
}

.otm-news-public__search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--news-ink);
    font-size: 15px;
}

.otm-news-public__filters select {
    padding: 0 10px;
    color: var(--news-ink);
    font-size: 14px;
}

.otm-news-public__primary {
    min-height: 46px;
    padding-inline: 20px;
    border: 0;
    border-radius: 7px;
    background: var(--news-accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.otm-news-public__primary:hover { background: #0b5087; }

.otm-news-public a.otm-news-public__reset {
    grid-column: 1 / -1;
    justify-self: start;
    color: var(--news-accent);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.otm-news-public__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.otm-news-public__card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--news-line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(21, 55, 81, .06);
}

.otm-news-public__card:hover { border-color: #9cc2ca; }

.otm-news-public__card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.otm-news-public__card > a:focus-visible { outline-offset: -4px; }

.otm-news-public__thumb {
    position: relative;
    flex: none;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: url("/assets/images/otm-brand-light.svg") center / min(42%, 148px) auto no-repeat, linear-gradient(135deg, #e1f1f7, #edf3fc);
}

.otm-news-public__thumb:has(img:not([hidden])) { background: #edf3f7; }

.otm-news-public__thumb img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
}

.otm-news-public [hidden] { display: none !important; }

.otm-news-public__card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 17px 18px;
}

.otm-news-public__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 10px;
    color: var(--news-muted);
    font-size: 13px;
}

.otm-news-public__meta span,
.otm-news-public__meta a {
    padding: 3px 7px;
    border-radius: 4px;
    background: #e5f3f4;
    color: #155d91;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.otm-news-public__card h2 {
    margin: 0;
    color: var(--news-ink);
    font-size: clamp(18px, 1.7vw, 23px);
    font-weight: 750;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.otm-news-public__card > a:hover h2 { color: var(--news-accent); }

.otm-news-public__card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    color: var(--news-muted);
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.otm-news-public__read {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 11px;
    color: var(--news-accent);
    font-size: 13px;
    font-weight: 700;
}

.otm-news-public__read svg { width: 16px; height: 16px; }

nav.otm-news-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 26px;
}

.otm-news-pager a {
    display: grid;
    min-width: 40px;
    min-height: 40px;
    place-items: center;
    border: 1px solid #cbdbe5;
    border-radius: 5px;
    background: #fff;
    color: var(--news-accent);
    text-decoration: none;
}

.otm-news-pager a[aria-current="page"] {
    border-color: var(--news-accent);
    background: var(--news-accent);
    color: #fff;
}

.otm-news-public__empty {
    padding: 22px;
    border: 1px solid var(--news-line);
    border-radius: 8px;
    background: #fff;
}

.otm-news-public__empty :is(h1,h2) { margin: 0 0 10px; font-size: 22px; }

.otm-news-public--detail { max-width: 1480px; }

.otm-news-story-layout {
    display: grid;
    grid-template-columns: minmax(128px, 178px) minmax(0, 1fr) minmax(128px, 178px);
    grid-template-areas: "left story right";
    align-items: start;
    gap: clamp(12px, 1.8vw, 26px);
}

.otm-news-story { grid-area: story; min-width: 0; }
aside.otm-news-ad {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 12px;
    min-width: 0;
}

.otm-news-ad--left { grid-area: left; }
.otm-news-ad--right { grid-area: right; }

.otm-news-public--detail .otm-home-news {
    max-width: none;
    padding: 30px 0 0;
}

.otm-news-ad .otm-news-ad__card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(150deg, var(--ad-start), var(--ad-end));
    box-shadow: 0 3px 9px #10253629;
    color: #fff;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.otm-news-ad__card--quiz       { --ad-start: #0a6e51; --ad-end: #063a35; --ad-accent: #b0ffe0; }
.otm-news-ad__card--dim        { --ad-start: #6131a8; --ad-end: #352064; --ad-accent: #eedbff; }
.otm-news-ad__card--admission  { --ad-start: #a74a10; --ad-end: #702c06; --ad-accent: #ffdfa3; }
.otm-news-ad__card--plan       { --ad-start: #155db6; --ad-end: #112d76; --ad-accent: #d0e7ff; }
.otm-news-ad__card--graduation { --ad-start: #a13057; --ad-end: #621633; --ad-accent: #ffdaea; }
.otm-news-ad__card--masters    { --ad-start: #293752; --ad-end: #161c36; --ad-accent: #ffe09b; }

.otm-news-ad__card:focus-visible {
    outline: 2px solid var(--ad-start);
    outline-offset: 3px;
}

.otm-news-ad__card:hover .otm-news-ad__action,
.otm-news-ad__card:focus-visible .otm-news-ad__action { text-decoration: underline; }

.otm-news-ad__media {
    position: relative;
    background: var(--ad-start);
}

.otm-news-ad__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 178px;
    object-fit: contain;
}

.otm-news-ad__label {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 6px;
    border-radius: 5px;
    background: #151a2bd9;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.otm-news-ad__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}

.otm-news-ad__content strong { font-size: clamp(14px, 1.2vw, 17px); line-height: 1.25; }

.otm-news-ad__action {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    color: var(--ad-accent);
    font-size: 12px;
    font-weight: 700;
}

.otm-news-ad__action svg { flex: 0 0 13px; width: 13px; height: 13px; }


nav.otm-news-story__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--news-muted);
    font-size: 14px;
}

.otm-news-story__breadcrumb a { color: var(--news-accent); }

.otm-news-story {
    overflow: hidden;
    border: 1px solid var(--news-line);
    border-top: 4px solid #137982;
    border-radius: 10px;
    background: #fff;
}

.otm-news-story__header {
    padding: clamp(18px, 3vw, 36px);
    background: linear-gradient(140deg, #edf7fa, #fff 77%);
}

.otm-news-story__header h1 { margin: 14px 0 0; }

.otm-news-story__header p {
    max-width: 68ch;
    margin: 13px 0 0;
    color: var(--news-muted);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.57;
    overflow-wrap: anywhere;
}

.otm-news-story__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--news-line);
}

.otm-news-story__share-title {
    margin-right: 6px;
    font-size: 14px;
    font-weight: 700;
}

@font-face {
    font-family: "OTM News Brands";
    src: url("/assets/fonts/fontawesome-free/fa-brands-400.woff2") format("woff2");
    font-display: block;
}

@font-face {
    font-family: "OTM News Solid";
    src: url("/assets/fonts/fontawesome-free/fa-solid-900.woff2") format("woff2");
    font-display: block;
}

.otm-share-icon::before { font-family: "OTM News Brands"; font-size: 21px; }
.otm-news-icon::before { font-family: "OTM News Solid"; font-size: 14px; }
.otm-share-network--whatsapp .otm-share-icon::before { content: "\f232"; }
.otm-share-network--telegram .otm-share-icon::before { content: "\f3fe"; }
.otm-share-network--facebook .otm-share-icon::before { content: "\f39e"; }
.otm-news-icon--link::before { content: "\f0c1"; }
.otm-news-icon--like::before { content: "\f164"; }
.otm-news-icon--dislike::before { content: "\f165"; }

.otm-news-story__share a.otm-share-network {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 12px;
    background: var(--network-bg);
    color: var(--network-fg);
    text-decoration: none;
}

.otm-share-network:hover { filter: brightness(.92); }
.otm-share-network--whatsapp { --network-bg: #dcf7e8; --network-fg: #11673b; }
.otm-share-network--telegram { --network-bg: #e0f2ff; --network-fg: #075e95; }
.otm-share-network--facebook { --network-bg: #e5edff; --network-fg: #174eaa; }
.otm-share-network--x { --network-bg: #162537; --network-fg: #fff; }

.otm-share-copy,
.otm-news-reactions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 5px 11px;
    border: 1px solid #cbdce7;
    border-radius: 8px;
    background: #fff;
    color: #164a61;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.otm-share-copy:hover,
.otm-news-reactions button:not(:disabled):hover { background: #edf6fa; }

.otm-news-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--news-line);
}

.otm-news-reactions button[aria-pressed="true"] { border-color: #508ba6; background: #e2f2fb; }
.otm-news-reactions button[data-reaction="dislike"][aria-pressed="true"] { border-color: #b58383; background: #fff0ef; }
.otm-news-reactions button:disabled, .otm-news-reactions button[aria-disabled="true"] { opacity: .68; cursor: default; }

.otm-news-reactions__count {
    min-width: 20px;
    padding: 2px 4px;
    border-radius: 5px;
    background: #eaf0f5;
    font-variant-numeric: tabular-nums;
}

.otm-news-reactions__status:not(:empty) { flex-basis: 100%; color: var(--news-muted); font-size: 13px; }
.otm-news-reactions__status:empty { position: absolute; }

.otm-news-story__share-status:not(:empty) {
    flex-basis: 100%;
    color: var(--news-muted);
    font-size: 13px;
}

.otm-news-story__share-status:empty { width: 0; height: 0; position: absolute; }

.otm-news-story__share-fallback {
    width: min(100%, 480px);
    padding: 7px;
    border: 1px solid var(--news-line);
    border-radius: 5px;
}

.otm-news-story__cover { margin: 0; background: #ecf4f8; }

.otm-news-story__cover img {
    display: block;
    width: 100%;
    max-height: 440px;
    object-fit: cover;
}

.otm-news-story__reading {
    box-sizing: border-box;
    padding: clamp(18px, 3vw, 36px);
    color: #243f55;
}

.otm-news-story__body {
    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.otm-news-story__body :is(p, ul, ol, blockquote, pre) { margin: 0 0 1em; }

.otm-news-story__body :is(h1, h2, h3, h4) {
    color: var(--news-ink);
    margin: 1.05em 0 .4em;
    font-weight: 750;
    line-height: 1.28;
}

.otm-news-story__body blockquote {
    padding: 12px 15px;
    border-inline-start: 3px solid #14828b;
    background: #edf7fa;
}

.otm-news-story__body img { max-width: 100%; height: auto; border-radius: 5px; }
.otm-news-story__body a { color: var(--news-accent); text-decoration: underline; }
.otm-news-story__body pre { overflow-x: auto; padding: 12px; background: #f1f6fa; }
.otm-news-story__body .ql-align-center { text-align: center; }
.otm-news-story__body .ql-align-right { text-align: right; }
.otm-news-story__body .ql-align-justify { text-align: justify; }
.otm-news-story__body .ql-size-small { font-size: .85em; }
.otm-news-story__body .ql-size-large { font-size: 1.3em; }
.otm-news-story__body .ql-size-huge { font-size: 1.6em; }
.otm-news-story__body .ql-indent-1 { padding-inline-start: 1em; }
.otm-news-story__body .ql-indent-2 { padding-inline-start: 2em; }
.otm-news-story__body .ql-indent-3 { padding-inline-start: 3em; }
.otm-news-story__body :is(.ql-indent-4, .ql-indent-5, .ql-indent-6, .ql-indent-7, .ql-indent-8) { padding-inline-start: 4em; }

.otm-news-story__media { margin-top: 26px; }
.otm-news-story__media h2 { margin: 0 0 12px; color: var(--news-ink); font-size: 21px; font-weight: 750; }

.otm-news-story__media :is(video, iframe) {
    display: block;
    width: 100%;
    max-height: 430px;
    border: 0;
    border-radius: 7px;
    background: #102d48;
}

.otm-news-story__media iframe { aspect-ratio: 16 / 9; }

.otm-news-story__gallery {
    --gallery-image-height: clamp(170px, 43vw, 420px);
    overflow: hidden;
    border: 1px solid #203852;
    border-radius: 16px;
    background: #0f2034;
    color: #f1f7ff;
}

.otm-news-story__gallery-stage {
    position: relative;
    background: radial-gradient(ellipse at center, #24445e, #101e30 80%);
}

.otm-news-story__gallery [hidden] { display: none; }
.otm-news-story__gallery figure { margin: 0; }

.otm-news-story__gallery figure img {
    display: block;
    width: 100%;
    height: var(--gallery-image-height);
    object-fit: contain;
}

.otm-news-story__gallery figcaption {
    padding: 10px 14px;
    background: #102239;
    color: #f1f7ff;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.otm-news-story__gallery-controls {
    position: absolute;
    inset: 0 10px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--gallery-image-height);
    pointer-events: none;
}

.otm-news-story__gallery-controls button.otm-slider-arrow {
    border-color: #ffffff75;
    background: #0c1d30e8;
    color: #fff;
    pointer-events: auto;
}

.otm-news-story__gallery-controls button.otm-slider-arrow:hover { background: #00627d; }

.otm-news-story__gallery-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-top: 1px solid #2a435a;
}

.otm-news-story__gallery-thumbs {
    position: relative;
    display: flex;
    gap: 6px;
    min-width: 0;
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #547991 #0f2034;
}

.otm-news-story__gallery-thumbs button {
    flex: 0 0 54px;
    height: 44px;
    padding: 2px;
    border: 2px solid #4d6680;
    border-radius: 7px;
    background: #152b41;
    cursor: pointer;
}

.otm-news-story__gallery-thumbs button[aria-pressed="true"] { border-color: #7de5f4; }
.otm-news-story__gallery button:focus-visible,
.otm-news-story__gallery:focus-visible { outline: 2px solid #7de5f4; outline-offset: 2px; }
.otm-news-story__gallery:focus-visible { outline-color: #076780; }

.otm-news-story__gallery-thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    object-fit: cover;
    pointer-events: none;
}

.otm-news-story__gallery-footer [data-slide-counter] {
    flex: 0 0 auto;
    color: #cfdef0;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.otm-news-story__footer { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--news-line); }

.otm-news-story__footer a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--news-accent);
    font-weight: 700;
}

@media (min-width: 768px) and (max-width: 960px) {
    .otm-news-public__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
    .otm-news-story-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "story story" "left right";
    }

    aside.otm-news-ad { align-self: stretch; }
}

@media (max-width: 767px) {
    .otm-news-ad > a:not(:first-child) { display: none; }
    .otm-news-public__grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    .otm-news-public__filters { grid-template-columns: minmax(0, 1fr) auto; }
    .otm-news-public__search { grid-column: 1 / -1; }
    .otm-news-story__share-title { flex-basis: 100%; }
    .otm-news-story__cover img { max-height: 280px; }
}

/* Also keep archived markup compact during a mixed-version deployment. */
.otm-news-metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: .75rem;
    line-height: 1.35;
}
.otm-news-metrics > .otm-news-metrics__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.otm-news-metrics > .otm-news-metrics__item > svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    flex: 0 0 14px;
}

.otm-news-story__share .otm-share-copy {
    width: 44px;
    min-width: 44px;
    padding: 0;
}

.otm-news-story__share .otm-share-copy svg { width: 18px; height: 18px; flex: none; }
.otm-news-story__end-metrics { margin-top: 22px; }
.otm-news-story__end-metrics + .otm-news-reactions { margin-top: 12px; }

@media (max-width: 767px) {
    .otm-news-story__header > p,
    .otm-news-story__body,
    .otm-news-story__body p,
    .otm-news-story__body p *,
    .otm-news-story__body > :is(h1, h2, h3, h4):first-child,
    .otm-news-story__body :is(.ql-size-small, .ql-size-large, .ql-size-huge) {
        font-size: 16px !important;
        line-height: 1.65 !important;
    }
    .otm-news-story__header > p,
    .otm-news-story__body p { font-weight: 400; }
}
