/* DTN Featured News hero — 1 main (60%) + 3 secondary (40%). Front page only. */
.dtn-fh { --fh-blue:#1565C0; --fh-sky:#5AB4F5; --fh-r:12px; --fh-gap:14px; width:100%; min-width:0; }
.dtn-fh *, .dtn-fh *::before, .dtn-fh *::after { box-sizing:border-box; }

/* ── Heading row ── */
.dtn-fh__head { display:flex; align-items:center; gap:14px; margin:0 0 14px; flex-wrap:wrap; }
.dtn-fh__title { display:flex; align-items:center; gap:8px; margin:0; font-family:var(--dtn-font-head,inherit); font-size:clamp(22px,2.6vw,30px); line-height:1.1; font-weight:800; color:var(--dtn-navy,#0D1B2A); }
.dtn-fh__title span { color:var(--fh-blue); }
.dtn-fh__sub { margin:0; padding-left:14px; border-left:1px solid var(--dtn-gray-light,#E8ECF0); font-size:13.5px; color:var(--dtn-gray-mid,#6b7885); }
.dtn-fh__all { margin-left:auto; display:inline-flex; align-items:center; gap:6px; padding:9px 16px; border-radius:999px; background:#E8F1FC; color:var(--fh-blue); font-weight:700; font-size:13px; text-decoration:none; transition:background .2s,color .2s; }
.dtn-fh__all:hover, .dtn-fh__all:focus-visible { background:var(--fh-blue); color:#fff; }

/* ── Desktop grid: 3fr / 2fr = 60:40; 3 equal rows right; main spans them ── */
.dtn-fh__grid { display:grid; grid-template-columns:16fr 9fr; grid-template-rows:repeat(3,minmax(0,1fr)); gap:var(--fh-gap); height:clamp(440px,40vw,560px); }
.dtn-fh__card--main { grid-row:1 / span 3; }

/* Large desktops: let the hero grow with the wider content area (kept proportional, never stretched) */
@media (min-width:1600px) { .dtn-fh__grid { height:clamp(560px,30vw,660px); } }
@media (min-width:2200px) { .dtn-fh__grid { height:680px; } }

/* ── Card ── */
.dtn-fh__card { position:relative; isolation:isolate; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end; gap:8px; min-height:0; --fh-px:20px; padding:18px var(--fh-px) 0; border-radius:var(--fh-r); background:#0D1B2A; color:#fff; box-shadow:0 4px 18px rgba(13,27,42,.16); transition:transform .3s ease, box-shadow .3s ease; }
.dtn-fh__card:hover, .dtn-fh__card:focus-within { transform:translateY(-3px); box-shadow:0 12px 30px rgba(13,27,42,.28); }
.dtn-fh__img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; opacity:1 !important; transition:transform .6s ease; }
.dtn-fh__card:hover .dtn-fh__img, .dtn-fh__card:focus-within .dtn-fh__img { transform:scale(1.06); }
.dtn-fh__blur { position:absolute; inset:-24px; z-index:-3; background-size:cover; background-position:center; filter:blur(22px) brightness(.7) saturate(1.15); }
/* Main story: whole picture visible (never cropped), anchored to the top; blurred copy fills the rest behind the text */
.dtn-fh__img--contain { object-fit:contain; object-position:center top; }
/* Side cards: on desktop use plain cover (blur layer only exists for the mobile/tablet slider) */
.dtn-fh__card--side .dtn-fh__blur { display:none; }
.dtn-fh__card--side .dtn-fh__img--contain { object-fit:cover; }
/* Secondary stories: keep the top of the picture (poster headlines) in view */
.dtn-fh__card--side .dtn-fh__img { object-position:center top; }
.dtn-fh__shade { position:absolute; inset:0; z-index:-1; background:linear-gradient(to top, rgba(6,14,26,.94) 0%, rgba(6,14,26,.66) 40%, rgba(6,14,26,.14) 72%, rgba(6,14,26,.05) 100%); }
.dtn-fh__body { display:contents; }

/* Badge — full-width category strip along the bottom edge of the image (same look as Latest News cards) */
.dtn-fh__badge { order:10; display:flex; align-items:center; gap:7px; align-self:stretch; margin:10px calc(var(--fh-px) * -1) 0; padding:8px var(--fh-px); background:var(--fh-badge,#1565C0); color:#fff; font-size:11.5px; font-weight:700; letter-spacing:.8px; text-transform:uppercase; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dtn-fh__card--side .dtn-fh__badge { margin-top:8px; padding-top:6px; padding-bottom:6px; font-size:10.5px; }

/* Headline — whole card is clickable via stretched link */
.dtn-fh__h { margin:0; font-family:var(--dtn-font-head,inherit); font-weight:800; line-height:1.2; color:#fff; text-shadow:0 1px 6px rgba(0,0,0,.45); overflow-wrap:anywhere; text-wrap:balance; }
.dtn-fh__card--main .dtn-fh__h { font-size:clamp(20px,2.2vw,30px); display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.dtn-fh__card--side .dtn-fh__h { font-size:clamp(14px,1.45vw,18px); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.dtn-fh__link { color:inherit; text-decoration:none; }
.dtn-fh__link::after { content:""; position:absolute; inset:0; z-index:2; }
.dtn-fh__link:focus-visible { outline:none; }
.dtn-fh__card:has(.dtn-fh__link:focus-visible) { outline:3px solid var(--fh-sky); outline-offset:2px; }

.dtn-fh__excerpt { margin:0; max-width:92%; font-size:clamp(13px,1.15vw,15.5px); line-height:1.5; color:rgba(255,255,255,.88); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* Meta row */
.dtn-fh__meta { display:flex; align-items:center; flex-wrap:wrap; gap:4px 16px; margin-top:4px; font-size:12.5px; color:rgba(255,255,255,.85); }
.dtn-fh__meta > span { display:inline-flex; align-items:center; gap:6px; }
.dtn-fh__meta svg { flex:none; opacity:.9; }
.dtn-fh__more { margin-left:auto; color:var(--fh-sky); font-weight:700; font-size:14px; transition:gap .2s; }
.dtn-fh__card:hover .dtn-fh__more { gap:10px; }
.dtn-fh__card--side .dtn-fh__more { font-size:13px; }
.dtn-fh__card--side { --fh-px:16px; padding:12px var(--fh-px) 0; gap:6px; }

/* ── Slider controls: hidden on desktop ── */
.dtn-fh__nav { display:none; }

/* ══ Tablet + mobile (≤1024px): swipeable slider — 1 main + 3 secondary = 4 slides ══ */
@media (max-width:1024px) {
  .dtn-fh__sub { display:none; }
  .dtn-fh__grid { display:flex; flex-direction:row; gap:12px; height:auto; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; scrollbar-width:none; touch-action:pan-x pan-y pinch-zoom; padding-bottom:2px; }
  .dtn-fh__grid::-webkit-scrollbar { display:none; }
  .dtn-fh__grid:focus-visible { outline:3px solid var(--fh-sky); outline-offset:2px; border-radius:var(--fh-r); }
  .dtn-fh__card, .dtn-fh__card--main, .dtn-fh__card--side { flex:0 0 100%; grid-row:auto; width:100%; height:clamp(400px,62vw,500px); min-height:0; scroll-snap-align:start; scroll-snap-stop:always; --fh-px:20px; padding:18px var(--fh-px) 0; gap:8px; }
  .dtn-fh__card:hover, .dtn-fh__card:focus-within { transform:none; }
  /* whole picture visible on a blurred copy of itself (same treatment for every slide) */
  .dtn-fh__card--side .dtn-fh__blur { display:block; }
  .dtn-fh__card .dtn-fh__img--contain { object-fit:contain; object-position:center top; }
  .dtn-fh__card--side .dtn-fh__h, .dtn-fh__card--main .dtn-fh__h { font-size:clamp(20px,3.6vw,28px); -webkit-line-clamp:3; }
  .dtn-fh__card--side .dtn-fh__more { font-size:14px; display:inline-flex; }
  .dtn-fh__card--side .dtn-fh__badge, .dtn-fh__badge { margin-top:10px; padding-top:8px; padding-bottom:8px; font-size:11.5px; }
  .dtn-fh__card--side .dtn-fh__meta { gap:4px 16px; font-size:12.5px; }
  .dtn-fh__excerpt { max-width:100%; -webkit-line-clamp:2; }

  /* nav row: prev · counter · dots · next */
  .dtn-fh__nav { display:flex; align-items:center; justify-content:center; gap:10px; height:44px; margin-top:6px; }
  .dtn-fh__nav[hidden] { display:none; }
  .dtn-fh__btn { flex:none; width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; border:0; border-radius:50%; background:#E8F1FC; color:var(--fh-blue); cursor:pointer; transition:background .2s,color .2s,opacity .2s; -webkit-tap-highlight-color:transparent; }
  .dtn-fh__btn svg { width:18px; height:18px; }
  .dtn-fh__btn:hover:not(:disabled), .dtn-fh__btn:focus-visible { background:var(--fh-blue); color:#fff; }
  .dtn-fh__btn:disabled { opacity:.35; cursor:default; }
  .dtn-fh__btn--prev svg { transform:rotate(180deg); }
  .dtn-fh__count { min-width:38px; text-align:center; font-size:12.5px; font-weight:700; color:var(--dtn-gray-mid,#6b7885); font-variant-numeric:tabular-nums; }
  .dtn-fh__dots { display:flex; align-items:center; gap:4px; }
  .dtn-fh__dot { width:26px; height:26px; padding:0; border:0; background:none; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; -webkit-tap-highlight-color:transparent; }
  .dtn-fh__dot::before { content:""; width:8px; height:8px; border-radius:999px; background:#B8C4D2; transition:width .25s ease, background .25s ease; }
  .dtn-fh__dot[aria-current="true"]::before { width:24px; background:var(--fh-blue); }
}
@media (max-width:700px) {
  .dtn-fh__all { padding:7px 12px; font-size:12px; }
  .dtn-fh__grid { gap:10px; }
  .dtn-fh__card, .dtn-fh__card--main, .dtn-fh__card--side { height:clamp(380px,112vw,440px); --fh-px:16px; padding-top:14px; }
  .dtn-fh__card--side .dtn-fh__h, .dtn-fh__card--main .dtn-fh__h { font-size:clamp(19px,5.6vw,23px); }
  .dtn-fh__excerpt { font-size:13.5px; }
  .dtn-fh__card--side .dtn-fh__meta, .dtn-fh__meta { font-size:12px; gap:4px 12px; }
}

/* Admin disabled manual swipe: the track still moves via dots/arrows/autoplay, but not by finger/mouse */
@media (max-width:1024px) {
  .dtn-fh__slider--noswipe .dtn-fh__grid { overflow-x:hidden; touch-action:pan-y; }
  .dtn-fh__btn--pause { margin-left:2px; }
  .dtn-fh__btn--pause .ic-play { display:none; }
  .dtn-fh__btn--pause[data-state="paused"] .ic-play { display:block; }
  .dtn-fh__btn--pause[data-state="paused"] .ic-pause { display:none; }
  /* soft cross-fade when auto-play loops from the last slide back to the first */
  .dtn-fh__grid.is-wrapping .dtn-fh__card { animation:dtn-fh-fade .4s ease both; }
}
@keyframes dtn-fh-fade { from { opacity:.25; } to { opacity:1; } }

/* ── Dark mode + reduced motion ── */
[data-theme="dark"] .dtn-fh__title { color:#fff; }
[data-theme="dark"] .dtn-fh__title span { color:var(--fh-sky); }
[data-theme="dark"] .dtn-fh__all, [data-theme="dark"] .dtn-fh__btn { background:rgba(90,180,245,.14); color:var(--fh-sky); }
[data-theme="dark"] .dtn-fh__dot::before { background:#4a5a6e; }
[data-theme="dark"] .dtn-fh__dot[aria-current="true"]::before { background:var(--fh-sky); }
@media (prefers-reduced-motion:reduce) {
  .dtn-fh__card, .dtn-fh__img, .dtn-fh__more, .dtn-fh__dot::before { transition:none; }
  .dtn-fh__grid { scroll-behavior:auto; }
  .dtn-fh__card:hover { transform:none; }
  .dtn-fh__card:hover .dtn-fh__img { transform:none; }
}
