/* WOT Latest News. Same look as the Elementor section it replaces: navy section, darker navy cards, gold titles,
   white date + summary, gold "Read Article". Width matches the header; no divider bar beside the socials. */
.wot-ln { --ln-navy: #0d0d3a; --ln-card: #050522; --ln-gold: #d4ae5f; --ln-light: #f3f3f3;
  background: var(--ln-navy); padding: max(48px, 4vw) 0; font-family: inherit; color: #fff; }
.wot-ln *, .wot-ln *::before, .wot-ln *::after { box-sizing: border-box; }
.wot-ln-inner { width: min(1290px, 86%); margin-inline: auto; }
.wot-ln-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* heading row */
.wot-ln-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; margin: 0 0 28px; }
.wot-ln .wot-ln-kicker { margin: 0 0 6px; font-size: 14px; font-weight: 400; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; color: var(--ln-light); }
.wot-ln .wot-ln-heading { margin: 0; font-family: inherit; font-size: 45px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--ln-light); }
.wot-ln-follow { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.wot-ln .wot-ln-follow-text { margin: 0; font-size: 16px; line-height: 1.35; color: var(--ln-light); }
.wot-ln .wot-ln-social { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.wot-ln-social li { margin: 0; }
.wot-ln .wot-ln-social a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ln-gold); font-size: 20px; text-decoration: none; transition: color .2s, background-color .2s; }
.wot-ln .wot-ln-social a:hover, .wot-ln .wot-ln-social a:focus-visible { color: var(--ln-navy); background: var(--ln-gold); }
.wot-ln .wot-ln-social a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* cards */
.wot-ln .wot-ln-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.wot-ln-card { position: relative; display: flex; flex-direction: column; margin: 0; padding: 20px; background: var(--ln-card); transition: transform .2s ease, box-shadow .2s ease; }
.wot-ln-media { order: -1; aspect-ratio: 3 / 2; margin: 0 0 20px; overflow: hidden; background: #1f1f49; }
.wot-ln .wot-ln-media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border: 0; border-radius: 0; transition: transform .35s ease; }
.wot-ln-noimg { display: block; width: 100%; height: 100%; }
.wot-ln .wot-ln-title { margin: 0 0 14px; font-family: inherit; font-size: 28px; font-weight: 700; line-height: 1.05; letter-spacing: -.04em; color: var(--ln-gold); overflow-wrap: anywhere; }
.wot-ln .wot-ln-link { color: inherit; text-decoration: none; }
.wot-ln .wot-ln-link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is the link */
.wot-ln .wot-ln-link:focus-visible { outline: none; }
.wot-ln .wot-ln-link:focus-visible::after { outline: 3px solid var(--ln-gold); outline-offset: 3px; }
.wot-ln .wot-ln-date { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; line-height: 1.4; color: #fff; }
.wot-ln-cal { flex: none; width: 15px; height: 15px; fill: var(--ln-gold); }
.wot-ln .wot-ln-excerpt { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.wot-ln-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 15px; line-height: 1.4; color: var(--ln-gold); } /* pinned to the bottom so they line up */
.wot-ln-arrow { display: inline-block; opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease; }

.wot-ln-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0, 0, 0, .35); }
.wot-ln-card:hover .wot-ln-media img { transform: scale(1.04); }
.wot-ln-card:hover .wot-ln-more, .wot-ln-card:focus-within .wot-ln-more { text-decoration: underline; text-underline-offset: 4px; }
.wot-ln-card:hover .wot-ln-arrow, .wot-ln-card:focus-within .wot-ln-arrow { opacity: 1; transform: none; }

.wot-ln .wot-ln-all { margin: 28px 0 0; text-align: center; }
.wot-ln .wot-ln-all a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid var(--ln-gold); color: var(--ln-gold); font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s; }
.wot-ln .wot-ln-all a:hover, .wot-ln .wot-ln-all a:focus-visible { background: var(--ln-gold); color: var(--ln-navy); }

/* small desktops: keep 4 across but tighten */
@media (max-width: 1280px) and (min-width: 1025px) {
  .wot-ln .wot-ln-cards { gap: 16px; }
  .wot-ln-card { padding: 16px; }
  .wot-ln .wot-ln-title { font-size: 24px; }
  .wot-ln .wot-ln-excerpt { font-size: 15px; }
}

/* tablet: socials under the heading; 2×2 cards */
@media (max-width: 1024px) {
  .wot-ln { padding: 56px 0; }
  .wot-ln-inner { width: calc(100% - 80px); }
  .wot-ln-head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
  .wot-ln .wot-ln-heading { font-size: 36px; }
  .wot-ln .wot-ln-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wot-ln-media { aspect-ratio: 16 / 9; }
  .wot-ln .wot-ln-excerpt { -webkit-line-clamp: 4; }
}

/* phone: carousel inside the page margins, one card per slide.
   Without JS: a one-card scroll-snap row. With JS (.is-carousel): a sliding track that loops endlessly (news-carousel.js). */
.wot-ln-nav { display: none; }
@media (max-width: 767px) {
  .wot-ln { padding: 40px 0; }
  .wot-ln-inner { width: calc(100% - 40px); }
  .wot-ln-head { gap: 14px; margin-bottom: 20px; }
  .wot-ln .wot-ln-heading { font-size: 32px; }
  .wot-ln-follow { gap: 6px 8px; }
  .wot-ln .wot-ln-follow-text { font-size: 15px; flex-basis: 100%; }
  .wot-ln .wot-ln-social { margin-left: -10px; }
  .wot-ln .wot-ln-social a { width: 44px; height: 44px; }
  .wot-ln-viewport { overflow: hidden; }
  .wot-ln .wot-ln-cards { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .wot-ln .wot-ln-cards::-webkit-scrollbar { display: none; }
  .wot-ln-card { flex: 0 0 100%; scroll-snap-align: start; padding: 16px; }
  .wot-ln-media { aspect-ratio: 3 / 2; margin-bottom: 16px; }
  .wot-ln .wot-ln-title { font-size: 24px; margin-bottom: 10px; }
  .wot-ln .wot-ln-date { margin-bottom: 8px; font-size: 15px; }
  .wot-ln .wot-ln-excerpt { font-size: 15px; line-height: 1.5; -webkit-line-clamp: 4; margin-bottom: 14px; }
  .wot-ln-more { min-height: 28px; }
  .wot-ln .wot-ln-all { margin-top: 20px; }

  .wot-ln.is-carousel .wot-ln-cards { overflow: visible; scroll-snap-type: none; touch-action: pan-y; will-change: transform;
    transform: translate3d(calc(var(--ln-pos, 1) * -1 * (100% + 16px) + var(--ln-drag, 0px)), 0, 0); }
  .wot-ln.is-carousel .wot-ln-cards.is-animating { transition: transform .45s cubic-bezier(.25, .8, .25, 1); }
  .wot-ln.is-carousel .wot-ln-card { user-select: none; -webkit-user-select: none; }
  .wot-ln.is-carousel .wot-ln-media img { -webkit-user-drag: none; pointer-events: none; }
  .wot-ln.is-carousel .wot-ln-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
  /* reset the theme's default button styling (gold fill, padding, radius) */
  .wot-ln .wot-ln-nav button { display: grid; place-items: center; box-sizing: border-box; width: auto; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0;
    border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ln-gold); cursor: pointer; font: inherit; line-height: 1; text-transform: none; }
  .wot-ln .wot-ln-nav .wot-ln-prev, .wot-ln .wot-ln-nav .wot-ln-next { width: 44px; height: 44px; border: 1px solid var(--ln-gold); transition: background-color .2s, color .2s; }
  .wot-ln-prev svg, .wot-ln-next svg { display: block; width: 16px; height: 16px; }
  .wot-ln .wot-ln-nav .wot-ln-prev:hover, .wot-ln .wot-ln-nav .wot-ln-next:hover, .wot-ln .wot-ln-nav .wot-ln-prev:focus-visible, .wot-ln .wot-ln-nav .wot-ln-next:focus-visible { background: var(--ln-gold); color: var(--ln-navy); }
  .wot-ln .wot-ln-nav button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .wot-ln-dots { display: flex; justify-content: center; flex-wrap: wrap; }
  .wot-ln .wot-ln-nav .wot-ln-dot { width: 32px; height: 44px; }
  .wot-ln .wot-ln-nav .wot-ln-dot:hover, .wot-ln .wot-ln-nav .wot-ln-dot:focus { background: transparent; }
  .wot-ln-dot::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ln-gold); transition: background-color .2s, transform .2s; }
  .wot-ln-dot[aria-current="true"]::before { background: var(--ln-gold); transform: scale(1.15); }
}
@media (hover: none) { .wot-ln-card:hover { transform: none; box-shadow: none; } .wot-ln-card:hover .wot-ln-media img { transform: none; } }
@media (prefers-reduced-motion: reduce) { .wot-ln * { transition: none !important; } .wot-ln-card:hover { transform: none; } .wot-ln-card:hover .wot-ln-media img { transform: none; } }
