/* =============== Tokens (fallbacks if your global :root isn't loaded) */
:root{
  --eco-blue:#4197CB;
  --eco-yellow:#FFC32A;
  --eco-gray:#4b5563;
  --ink:#0b2f55;
  --card:#fff;
  --bg:#f7f8fb;
  --grid:#e8edf3;
  --shadow:0 12px 24px rgba(13,38,76,.10);
  --radius:14px;

  --font-family-base:'Karla-Regular';
  --font-size-base:16px;
  --font-weight-regular:300;
  --line-height-base:1.65;
  --letter-spacing-body:.02em;
  --letter-spacing-heading:.04em;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--eco-gray);
  -webkit-font-smoothing:antialiased;
  font-family:var(--font-family-base);
  font-size:var(--font-size-base);
  font-weight:var(--font-weight-regular);
  line-height:var(--line-height-base);
  letter-spacing:var(--letter-spacing-body);
}

body{margin:0;background:var(--bg);color:var(--eco-gray);-webkit-font-smoothing:antialiased;font-family:var(--font-family-base);font-size:var(--font-size-base);font-weight:var(--font-weight-regular);line-height:var(--line-height-base);letter-spacing:var(--letter-spacing-body);}
.container{max-width:1280px;margin:0 auto;padding:0 16px}

/* =============== Bar (Title + Filter) */
.news{padding:26px 0 46px}
.news__bar{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; margin-bottom:18px;
}
.news__title{
  margin:0;
  color:var(--eco-blue);
  font-weight:300;
  font-size:clamp(2.4rem,6vw,3.6rem);
}

.news__filter{
  position:relative; display:inline-flex; align-items:center; gap:8px;
  background:#fff; border:1px solid var(--grid); border-radius:999px;
  padding:6px 12px 6px 12px; color:#111; min-width:220px;
}
.news__filter span{font-weight:300; color:#4b5563}
.news__filter select{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  border:0; background:transparent; padding:8px 28px 8px 8px; font:inherit; color:#0f172a; cursor:pointer;
  outline:none;
}
.news__filter .chev{
  position:absolute; right:12px; width:18px; height:18px; color:#1f2937; pointer-events:none;
}

/* =============== Grid */
.news__grid{
  display:grid; gap:22px;
  grid-template-columns:repeat(4, minmax(0,1fr));
}
@media (max-width:1100px){ .news__grid{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (max-width:900px){  .news__grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:640px){  .news__grid{ grid-template-columns:1fr; } }

/* =============== Card */
.news-card{
  display:flex; flex-direction:column; background:var(--card); color:inherit; text-decoration:none;
  border:1px solid var(--grid); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.news-card:hover{ transform:translateY(-3px); box-shadow:0 20px 40px rgba(13,38,76,.14); border-color:#dbe5f0; }

.news-card__media{
  margin:0; position:relative; background:#000; overflow:hidden; line-height:0;
}
.news-card__media img{
  width:100%; height:auto; display:block; aspect-ratio:16/9; object-fit:cover;
}

.news-card__body{ padding:12px 14px 16px; display:flex; flex-direction:column; gap:6px; }
.news-card__kicker{
  color:var(--eco-blue); font-weight:300; font-size:.88rem; text-decoration:underline; text-underline-offset:2px;
}
.news-card__title{
  margin:0; color:var(--ink); font-size:clamp(16px,1.7vw,18px); line-height:1.3; font-weight:300;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.news-card__excerpt{ font-weight:300;
  margin:0; color:#6b7280; line-height:1.6; font-size:.95rem;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  /* Non-WebKit fallback */
  max-height:calc(1.6em * 2); 
}

/* =============== Small tweaks for phone */
@media (max-width:767px){
  .news{ padding:18px 0 32px; }
  .news__bar{ flex-direction:column; align-items:center; gap:10px; }
  .news__filter{ width:100%; min-width:0; }
  .news__filter select{ width:100%; }
  .news__title{ text-align:center; width:100%; }
}

/* ===== News modal ===== */
.news-modal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15,23,42,.75);
  backdrop-filter:blur(6px);
}
.news-modal[hidden]{ display:none; }
.news-modal__dialog{
  position:relative;
  background:#fff;
  border-radius:24px;
  width:min(900px,calc(100% - 2rem));
  max-height:90vh;
  box-shadow:0 40px 80px rgba(15,23,42,.35);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.news-modal__media{
  position:relative;
  margin:0;
  width:100%;
  flex:0 0 auto;
  aspect-ratio:16/9;
  min-height:220px;
  background:#000;
  overflow:hidden;
}
.news-modal__media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.news-modal__content{
  flex:1 1 auto;
  min-height:0;
  padding:32px 34px;
  display:flex;
  flex-direction:column;
  gap:18px;
  overflow-y:auto;
  scrollbar-gutter:stable both-edges;
}
.news-modal__list{
  margin:0 0 0 1.25rem;
  padding:0;
  list-style:decimal;
  list-style-position:outside;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.news-modal__list-item{
  margin:0;
}

.news-modal__list-title{
  display:block;
  font-weight:300;
  color:var(--ink);
  font-size:1.05rem;
  margin-bottom:4px;
}
.news-modal__list-copy{ font-weight:300;
  margin:0;
  color:var(--eco-gray);
  line-height:1.65;
}
.news-modal__subheading{ font-weight:300;
  margin:16px 0 4px;
  font-size:1.15rem;
  color:var(--ink);
}
.news-modal__category{
  color:var(--eco-blue);
  font-weight:300;
  font-size:.78rem;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.news-modal__title{ font-weight:300;
  margin:0;
  color:var(--ink);
  font-size:clamp(1.8rem,2.6vw,2.3rem);
}
.news-modal__meta{ font-weight:300;
  margin:0;
  color:#6b7280;
  font-size:.95rem;
}
.news-modal__body{
  display:flex;
  flex-direction:column;
  gap:14px;
  color:var(--eco-gray);
  line-height:1.7;
  font-size:1rem;
}
.news-modal__body p{ margin:0; }
.news-modal__actions{
  margin-top:auto;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.news-modal__close{
  position:absolute;
  top:16px;
  right:16px;
  width:40px;
  height:40px;
  border-radius:999px;
  border:0;
  background:rgba(15,23,42,.85);
  color:#fff;
  font-size:1.6rem;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:background .15s ease;
}
.news-modal__close:hover{ background:rgba(15,23,42,.95); }
@media (max-width:767px){
  .news-modal{ padding:16px; }
  .news-modal__dialog{ width:100%; max-height:92vh; }
  .news-modal__media{
    aspect-ratio:16/10;
    min-height:200px;
  }
  .news-modal__content{ padding:24px 20px 28px; }
}











.news-modal__list-item:last-child{ margin-bottom:0; }



















@media (max-width:767px){
  .news__title{ text-align:center; width:100%; }
}



