/* =================================================================
   News — home slider + single news page
   ================================================================= */

/* ---- Generic home hero (structural sample) ---- */
.hero {
    background:
        linear-gradient(180deg, rgba(15,30,61,.72), rgba(15,30,61,.86)),
        var(--ink);
    color: var(--paper);
    padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.hero .eyebrow { color: var(--brass); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { max-width: 52ch; color: #C7CEDC; font-size: 1.1rem; }
.hero-actions { margin-top: 1.8rem; display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---- Simple stat / content rows for the structural sample ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.card-simple { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
@media (max-width: 780px) { .grid-2 { grid-template-columns: 1fr; } }

/* =================================================================
   NEWS SLIDER  (3 across desktop · 2 tablet · 1 mobile)
   ================================================================= */
.news-slider { position: relative; }

.news-viewport { overflow: hidden; }

.news-track {
    display: flex;
    gap: var(--news-gap, 1.6rem);
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

/* Each slide's width is set so N cards fit per view. Controlled by JS
   via the --per-view variable; CSS falls back sensibly too. */
.news-card {
    flex: 0 0 calc((100% - (var(--per-view, 3) - 1) * var(--news-gap, 1.6rem)) / var(--per-view, 3));
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.news-card-img {
    aspect-ratio: 16 / 10;
    background: var(--paper-2);
    overflow: hidden;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }

.news-card-body { padding: 1.3rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-card-date { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); font-weight: 600; margin-bottom: .5rem; }
.news-card h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.news-card p { color: var(--muted); font-size: .96rem; margin: 0 0 1.2rem; }
.news-card .btn { align-self: flex-start; margin-top: auto; }

/* Arrows + dots */
.news-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 1.8rem; gap: 1rem; }
.news-arrows { display: flex; gap: .6rem; }
.news-arrow {
    width: 46px; height: 46px; border-radius: 50%;
    border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
    font-size: 1.1rem; cursor: pointer; transition: .2s;
    display: grid; place-items: center;
}
.news-arrow:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.news-arrow:disabled { opacity: .3; cursor: default; }
.news-dots { display: flex; gap: .5rem; }
.news-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.news-dot.is-active { background: var(--brass); }

.news-empty { padding: 2.5rem; text-align: center; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Responsive per-view fallback (JS also sets --per-view) */
@media (max-width: 1024px) { .news-track { --per-view: 2; } }
@media (max-width: 640px)  { .news-track { --per-view: 1; } }

/* =================================================================
   SINGLE NEWS PAGE
   ================================================================= */
.news-hero {
    position: relative;
    min-height: clamp(300px, 46vw, 520px);
    display: flex; align-items: flex-end;
    background-size: cover; background-position: center;
    color: #fff;
}
.news-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,18,38,.15) 0%, rgba(10,18,38,.35) 45%, rgba(10,18,38,.85) 100%);
}
.news-hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(2rem, 5vw, 4rem); }
.news-hero h1 {
    color: #fff;
    max-width: 20ch;
    text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.6);
}
.news-hero .news-card-date { color: #F0D9A6; }

.news-body { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }

/* Left: images. White padding on smaller images so they match the widest. */
.news-gallery { display: grid; gap: 1rem; }
.news-gallery-main {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    display: grid; place-items: center; min-height: 260px;
}
.news-gallery-main img { width: 100%; height: auto; object-fit: contain; }
.news-thumbs { display: flex; gap: .6rem; flex-wrap: wrap; }
.news-thumb {
    width: 76px; height: 76px; border-radius: 8px; overflow: hidden;
    border: 2px solid transparent; cursor: pointer; background: #fff;
}
.news-thumb.is-active { border-color: var(--brass); }
.news-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Right: description */
.news-content { font-size: 1.05rem; }
.news-content p { margin: 0 0 1.1rem; }

.news-back { margin-top: 2.5rem; }

@media (max-width: 860px) {
    .news-layout { grid-template-columns: 1fr; gap: 2rem; }
}
