/* ==========================================================================
   News redesign - detail + overview
   Brand: Sky #78c5db · Deep Navy #0a2540 · Chartreuse #bccb00 · Slate #45545f
   Detail hero = ACF news_hero_image (focus-aware) or Featured image, rendered
   by header.php as #pageHeader.newsHeader. Overview cards use the Featured image.
   Buttons inherit the unified hover (lift+brightness) from style.css; here we
   only define bespoke layout/colour.
   ========================================================================== */

:root {
    --nw-sky: #78c5db;
    --nw-sky-deep: #2b8fae;
    --nw-navy: #0a2540;
    --nw-navy-mid: #153354;
    --nw-lime: #bccb00;
    --nw-slate: #45545f;
    --nw-ink: #1e2a3d;
    --nw-sky-light: #eaf6fb;
    --nw-line: rgba(10, 37, 64, 0.10);
    --nw-shadow: 0 18px 40px rgba(10, 37, 64, 0.12);
    --nw-shadow-sm: 0 8px 20px rgba(10, 37, 64, 0.10);
    --nw-radius: 14px;
}

/* Shared eyebrow: a short cyan bar + uppercase cyan label (the signature tick) */
.news-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--nw-sky-deep);
    line-height: 1;
}
.news-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--nw-sky);
    display: inline-block;
}
a.news-eyebrow-link { text-decoration: none; cursor: pointer; transition: color .2s ease; }
a.news-eyebrow-link:hover { color: var(--nw-navy); }
a.news-eyebrow-link:hover::before { background: var(--nw-navy); }

/* ==========================================================================
   DETAIL - hero
   ========================================================================== */

#pageHeader.newsHeader {
    position: relative;
    min-height: clamp(360px, 58vh, 640px);
    background-size: cover;
    background-repeat: no-repeat;
}
#pageHeader.newsHeader::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10, 37, 64, 0.10) 0%, rgba(10, 37, 64, 0) 32%, rgba(10, 37, 64, 0.62) 100%);
    pointer-events: none;
    z-index: 1;
}
#pageHeader.newsHeader .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding-bottom: 46px;
}
#pageHeader.newsHeader .bigTitle {
    max-width: 1000px;
    color: #fff !important;
    text-shadow: 0 2px 26px rgba(10, 37, 64, 0.55);
    line-height: 1.08;
}
/* Detail hero: article titles can be long, so keep the hero title compact and
   cap it at 3 lines - it can never overflow the banner again (the short-title
   logic lives in header.php). Overview heros keep the big type: they use
   .newsHeader without the -detail modifier, so this rule does not touch them. */
#pageHeader.newsHeader-detail .bigTitle {
    max-width: 780px;
    font-size: clamp(30px, 3.2vw, 52px);
    line-height: 1.12;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* ==========================================================================
   DETAIL - article
   ========================================================================== */

#newsWrapper.news-detail {
    background: #fff;
    padding: 0 0 20px;
}
.news-article {
    max-width: 860px;
    margin: 0 auto;
    padding: 58px 0 12px;
}

.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding-bottom: 22px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--nw-line);
}
.news-meta .news-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--nw-slate);
    letter-spacing: 0.02em;
}

/* Body typography */
.news-body {
    font-size: 18px;
    line-height: 1.78;
    color: var(--nw-slate);
}
.news-body p { margin: 0 0 22px; }
.news-body a:not(.button1) {
    color: var(--nw-sky-deep);
    text-decoration: none;
    border-bottom: 1px solid rgba(43, 143, 174, 0.35);
    transition: border-color .2s ease, color .2s ease;
}
.news-body a:not(.button1):hover { color: var(--nw-navy); border-color: var(--nw-navy); }
.news-body h1,
.news-body h2,
.news-body h3 {
    /* Use the real Montserrat bold face (the site-wide brand font), not a
       synthesized bold on Montserrat-Regular - matches the hero + safety pages. */
    font-family: "Montserrat-Bold", sans-serif;
    color: var(--nw-navy);
    line-height: 1.2;
    margin: 40px 0 16px;
    font-weight: 700;
}
.news-body h1 { font-size: 30px; }
.news-body h2 { font-size: 26px; }
.news-body h3 { font-size: 21px; }
.news-body h2::after {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 12px;
    background: var(--nw-sky);
    border-radius: 2px;
}
.news-body strong { color: var(--nw-ink); }
.news-body ul { margin: 0 0 24px; padding: 0; list-style: none; }
.news-body ul li {
    position: relative;
    padding: 0 0 10px 26px;
    margin: 0;
}
.news-body ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nw-sky);
}
.news-body hr {
    border: 0;
    height: 1px;
    background: var(--nw-line);
    margin: 30px 0;
}
.news-body blockquote {
    margin: 30px 0;
    padding: 4px 0 4px 24px;
    border-left: 3px solid var(--nw-sky);
    color: var(--nw-ink);
    font-style: italic;
}

/* Images inside body: responsive, framed */
.news-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.news-body p > a > img,
.news-body p > img {
    display: block;
    margin: 6px auto;
    box-shadow: var(--nw-shadow-sm);
}
/* Bootstrap column media-reports: keep side-by-side, no overflow */
.news-body .single_row,
.news-body .row { margin: 0 0 10px; }
.news-body [class*="col-"] { padding-left: 12px; padding-right: 12px; }
.news-body .editor_ui_left,
.news-body .editor_ui_right { display: flex; flex-direction: column; justify-content: center; }

/* PDF / download button (bespoke layout only; hover from unified system) */
.news-body a.button1 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 6px;
    padding: 13px 24px;
    background: var(--nw-navy);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 0;
}
.news-body a.button1::before {
    content: "\f019"; /* fa-download */
    font-family: FontAwesome;
    font-size: 14px;
    color: var(--nw-sky);
}

/* Gallery (consecutive images grouped by js/news-gallery.js) */
.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 8px 0 28px;
}
.news-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 3 / 2;
    box-shadow: var(--nw-shadow-sm);
    cursor: zoom-in;
}
.news-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.news-gallery-item::after {
    content: "\f00e"; /* fa-search-plus */
    font-family: FontAwesome;
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(10, 37, 64, 0.55);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
}
.news-gallery-item:hover img { transform: scale(1.06); }
.news-gallery-item:hover::after { opacity: 1; transform: translateY(0); }

/* Single framed photo (not cropped; still opens in the lightbox) */
.news-figure { margin: 10px 0 28px; text-align: center; }
.news-figure .news-gallery-item {
    aspect-ratio: auto;
    display: inline-block;
    max-width: 100%;
    box-shadow: var(--nw-shadow-sm);
}
.news-figure .news-gallery-item img {
    height: auto;
    object-fit: initial;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.news-figure .news-gallery-item:hover img { transform: scale(1.03); }

/* Share row */
.news-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid var(--nw-line);
}
.news-share-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nw-navy);
}
.news-share-row { display: inline-flex; gap: 10px; }
.news-share-btn {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--nw-sky-light);
    color: var(--nw-navy);
    font-size: 17px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .22s ease, color .22s ease, transform .22s ease;
}
.news-share-btn:hover { background: var(--nw-sky); color: #fff; transform: translateY(-2px); }
.news-copy-link.is-copied { background: var(--nw-lime); color: var(--nw-navy); }

/* Prev / next */
.news-nav {
    display: flex;
    gap: 16px;
    max-width: 860px;
    margin: 40px auto 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--nw-line);
}
.news-nav a, .news-nav a:hover, .news-nav a:focus { text-decoration: none; font-family: inherit; }
.news-nav-item { flex: 1 1 0; min-width: 0; display: flex; }
.news-nav-item a {
    flex: 1;
    display: block;
    padding: 16px 20px;
    border: 1px solid var(--nw-line);
    border-radius: var(--nw-radius);
    text-decoration: none;
    background: #fff;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.news-nav-item a:hover { transform: translateY(-2px); box-shadow: var(--nw-shadow-sm); border-color: rgba(120, 197, 219, 0.6); }
.news-nav-older { text-align: right; }
.news-nav-dir {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nw-sky-deep);
    margin-bottom: 6px;
}
.news-nav-title {
    display: block;
    color: var(--nw-navy);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ==========================================================================
   OVERVIEW
   ========================================================================== */

#newsWrapper.news-overview { background: #fff; padding: 60px 0 40px; }
/* The visible section title is the hero banner. Keep a localized H1 in the
   flow for SEO / a11y only, visually hidden. */
.news-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
}
.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--nw-line);
    border-radius: var(--nw-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform .28s ease, box-shadow .28s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--nw-shadow); }
/* Whole card is clickable: the title link is stretched over the entire card. */
.news-card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.news-card-media {
    display: block;
    position: relative;
    aspect-ratio: 3 / 2;
    background-color: var(--nw-navy);
    overflow: hidden;
}
/* Lazy-loaded card image (loading="lazy"); object-position carries the focus point. */
.news-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.news-card:hover .news-card-img { transform: scale(1.05); }
.news-card-media--empty {
    background-image:
        radial-gradient(120% 120% at 70% 20%, var(--nw-navy-mid), var(--nw-navy));
    position: relative;
}
.news-card-media--empty::after {
    content: "\f030"; /* fa-camera */
    font-family: FontAwesome;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.22);
    font-size: 34px;
}
.news-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 22px 24px;
    flex: 1 1 auto;
}
.news-card-meta { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.news-card-meta .news-date { font-size: 13px; font-weight: 600; color: var(--nw-slate); }
.news-card-title { margin: 0; font-size: 19px; line-height: 1.32; font-weight: 700; }
.news-card-title a {
    color: var(--nw-navy);
    text-decoration: none;
    transition: color .2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card:hover .news-card-title a { color: var(--nw-sky-deep); }
.news-card-more {
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--nw-sky-deep);
}
.news-card-more span { transition: transform .22s ease; display: inline-block; }
.news-card:hover .news-card-more span { transform: translateX(4px); }

.news-empty { text-align: center; color: var(--nw-slate); font-size: 18px; padding: 60px 0; }

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1180px;
    margin: 40px auto 0;
    border: 0;
}
.news-pagination .page-numbers {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--nw-line);
    color: var(--nw-navy);
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.news-pagination a.page-numbers:hover { background: var(--nw-sky-light); border-color: var(--nw-sky); }
.news-pagination .page-numbers.current { background: var(--nw-navy); color: #fff; border-color: var(--nw-navy); }

/* ==========================================================================
   PhotoSwipe custom caption (reused pattern)
   ========================================================================== */
.pswp-custom-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 16px 20px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    font-size: 14px;
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 992px) {
    #pageHeader.newsHeader { min-height: clamp(300px, 46vh, 460px); }
    #pageHeader.newsHeader .container { padding-bottom: 34px; }
    .news-article { padding-top: 30px; }
}
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; gap: 20px; }
    .news-card-body { background: var(--nw-sky-light); }
    .news-body { font-size: 16px; }
    .news-body h1 { font-size: 25px; }
    .news-body h2 { font-size: 22px; }
    .news-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .news-nav { flex-direction: column; gap: 12px; }
    .news-nav-older { text-align: left; }
    .news-body .editor_ui_right,
    .news-body .editor_ui_left { display: block; }
}
@media (max-width: 480px) {
    .news-gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .news-card, .news-card-img, .news-gallery-item img, .news-share-btn,
    .news-nav-item a, .news-card-more span { transition: none !important; }
    .news-card:hover { transform: none; }
    .news-card:hover .news-card-media { transform: none; }
    .news-gallery-item:hover img { transform: none; }
}
