/* v3.1 global overflow guards */
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.ln-banner, .ln-cardimg, .ln-headimg { max-width: 100% !important; }
:root {
  --ln-coral: #f4574f;
  --ln-coral-dark: #d63a32;
  --ln-ink: #14181f;
  --ln-slate: #2b3240;
  --ln-paper: #f7f8fa;
}

body { background: var(--ln-paper); color: var(--ln-ink); font-family: "Segoe UI", system-ui, -apple-system, sans-serif; }

/* Header */
.ln-navbar { background: #ffffff; border-bottom: 3px solid var(--ln-coral); }
.ln-navbar .navbar-brand img { height: 44px; }
.ln-navbar .nav-link { color: var(--ln-ink); font-weight: 600; letter-spacing: .02em; padding: .5rem .9rem !important; }
.ln-navbar .nav-link:hover, .ln-navbar .nav-link.active { color: var(--ln-coral); }

/* Hero */
.ln-hero { background: linear-gradient(135deg, var(--ln-ink) 0%, var(--ln-slate) 70%); color: #fff; padding: 3.5rem 0 3rem; }
.ln-hero img { height: 120px; }
.ln-hero .tagline { color: var(--ln-coral); letter-spacing: .25em; font-weight: 700; font-size: .85rem; text-transform: uppercase; }
.ln-hero h1 { font-weight: 800; }
.btn-ln { background: var(--ln-coral); color: #fff; font-weight: 600; border: none; }
.btn-ln:hover { background: var(--ln-coral-dark); color: #fff; }
.btn-outline-ln { border: 2px solid var(--ln-coral); color: var(--ln-coral); font-weight: 600; }
.btn-outline-ln:hover { background: var(--ln-coral); color: #fff; }

/* Sections & cards */
.section-title { font-weight: 800; border-left: 5px solid var(--ln-coral); padding-left: .75rem; margin: 2.5rem 0 1.25rem; }
.ln-card { border: none; border-radius: .9rem; box-shadow: 0 2px 10px rgba(20,24,31,.08); transition: transform .15s ease, box-shadow .15s ease; height: 100%; }
.ln-card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(20,24,31,.14); }
.ln-card .badge-cat { background: var(--ln-coral); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.ln-card .date { color: #6c757d; font-size: .8rem; }
.ln-card .card-title { font-weight: 700; color: var(--ln-ink); }
.ln-card .card-title a { color: inherit; text-decoration: none; }
.ln-card .card-title a:hover { color: var(--ln-coral); }
.ln-card .read-more { color: var(--ln-coral); font-weight: 600; text-decoration: none; font-size: .9rem; }
.ln-card .read-more:hover { color: var(--ln-coral-dark); }

/* Headline blocks */
.ln-headline { background: var(--ln-ink); color: #fff; border-radius: .9rem; padding: 1.6rem; height: 100%; }
.ln-headline .kicker { color: var(--ln-coral); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.ln-headline h3 { font-weight: 800; }
.ln-headline a { color: #fff; text-decoration: underline; text-decoration-color: var(--ln-coral); text-underline-offset: 4px; }
.ln-headline a:hover { color: var(--ln-coral); }

/* Stats strip */
.ln-stats { background: var(--ln-coral); color: #fff; }
.ln-stats .stat-num { font-size: 2rem; font-weight: 800; }
.ln-stats .stat-lbl { font-size: .85rem; opacity: .92; }

/* Category tiles */
.ln-tile { border-radius: .9rem; padding: 1.8rem 1.5rem; color: #fff; height: 100%; text-decoration: none; display: block; }
.ln-tile:hover { color: #fff; transform: translateY(-4px); transition: transform .15s ease; }
.ln-tile h5 { font-weight: 800; }
.ln-tile-ai { background: linear-gradient(135deg, #f4574f, #b8261f); }
.ln-tile-sw { background: linear-gradient(135deg, #2b3240, #14181f); }
.ln-tile-hw { background: linear-gradient(135deg, #3b6ea5, #1f3d5c); }

/* Footer */
.ln-footer { background: var(--ln-ink); color: #cfd4dc; margin-top: 3.5rem; padding: 2.2rem 0 1.4rem; }
.ln-footer a { color: #cfd4dc; text-decoration: none; }
.ln-footer a:hover { color: var(--ln-coral); }
.ln-footer img { height: 40px; }
.ln-footer .fine { font-size: .8rem; color: #8a919c; }

/* v2: imagery & hero (v3: fixed-viewport boxes, aligned) */
.ln-hero-home { background-image: linear-gradient(rgba(20,24,31,.90), rgba(43,50,64,.94)), url("../img/hero-neural.jpg"); background-size: cover; background-position: center; }
.ln-banner { display: block; width: 100%; height: 280px; object-fit: cover; border-radius: .9rem; margin-top: 1.5rem; box-shadow: 0 4px 16px rgba(20,24,31,.15); }
.ln-cardimg { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: .6rem; }
.ln-headimg { display: block; width: 100%; height: 190px; object-fit: cover; border-radius: .6rem; }
.ln-headline { display: flex; flex-direction: column; }
.ln-headline .links { margin-top: auto; }
@media (max-width: 575.98px) {
  .ln-banner { height: 180px; }
  .ln-headimg { height: 150px; }
  .ln-cardimg { height: 130px; }
}
/* v4.2: containment scoped to OUR content-image classes only */
img.ln-headimg, img.ln-cardimg, img.ln-banner {
  max-width: 100% !important;
  width: 100% !important;
}
.ln-headimg { height: 190px !important; object-fit: cover !important; }
.ln-cardimg { height: 150px !important; object-fit: cover !important; }
.ln-banner  { height: 280px !important; object-fit: cover !important; }
@media (max-width: 767.98px) {
  .ln-headimg { height: 160px !important; }
  .ln-cardimg { height: 130px !important; }
  .ln-banner  { height: 200px !important; }
}

/* v5: hero buttons compact on phones */
@media (max-width: 575.98px) {
  .ln-hero .btn-lg { padding: .5rem 1.1rem; font-size: 1.02rem; }
  .ln-hero h1 { font-size: 1.7rem; }
}
