/* Stadsnieuws follows the shared KwakenCity website shell. */
.news-page {
  width: 100%;
  overflow: hidden;
}

.news-page-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  width: min(1260px, calc(100% - 48px));
  min-height: 248px;
  align-items: center;
  overflow: hidden;
  margin: 24px auto 0;
  padding: 34px clamp(24px, 5vw, 58px);
  border: 4px solid #fffef0;
  border-radius: 24px;
  background: linear-gradient(90deg, #153e35ed 0%, #174631c9 59%, #173d3150 100%), url('../images/kwaakdam-havenplein-autumn-evening.webp') center 52% / cover no-repeat;
  box-shadow: 0 0 0 3px #38873c, 0 11px 24px #315a3030;
  color: #fffdf0;
}

.news-page-intro-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.news-page-intro .eyebrow {
  color: #e9f2b6;
}

.news-page-intro h1 {
  margin: 10px 0 9px;
  color: #fffdf0;
  font: 900 clamp(32px, 4.4vw, 48px)/1.04 'Trebuchet MS', sans-serif;
  letter-spacing: -.045em;
}

.news-page-intro p {
  max-width: 570px;
  margin: 0;
  color: #edf3dc;
  font-size: 14px;
  line-height: 1.65;
}

.news-page-mark {
  position: absolute;
  z-index: 0;
  right: clamp(24px, 6vw, 72px);
  bottom: 25px;
  width: 104px;
  height: 104px;
  border: 1px solid #f7eaa989;
  border-radius: 28px;
  background: linear-gradient(145deg, #fff8d7, #f8d77e);
  box-shadow: 0 8px 20px #112d2650, inset 0 0 0 6px #fffdf055;
  transform: rotate(5deg);
}

.news-page-mark::before,
.news-page-mark::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}

.news-page-mark::before {
  top: 19px;
  width: 42px;
  height: 53px;
  border: 2px solid #347d38;
  border-radius: 7px;
  background: linear-gradient(#4a9c40, #4a9c40) 50% 12px / 20px 3px no-repeat,
    linear-gradient(#b6cc82, #b6cc82) 50% 24px / 26px 2px no-repeat,
    linear-gradient(#b6cc82, #b6cc82) 50% 32px / 26px 2px no-repeat,
    linear-gradient(#b6cc82, #b6cc82) 50% 40px / 20px 2px no-repeat,
    #fffdf0;
  box-shadow: 0 3px 0 #d0b86b;
}

.news-page-mark::after {
  top: 26px;
  width: 9px;
  height: 3px;
  border-radius: 3px;
  background: #ffc941;
}

.news-section {
  padding: 47px 0 46px;
  border: 0;
  background: linear-gradient(180deg, #f2f5df 0%, #f8f7e7 100%);
}

.news-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.news-heading h2 {
  margin: 9px 0 8px;
  color: #174e37;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.news-heading p {
  margin: 0;
  color: #657b68;
  font-size: 14px;
  line-height: 1.6;
}

.news-heading .button {
  flex: 0 0 auto;
}

.news-heading .button span {
  font-size: 18px;
  line-height: 1;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-top: 25px;
}

.news-status {
  display: flex;
  min-height: 132px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin: 0;
  padding: 22px clamp(18px, 4vw, 34px);
  border: 1px solid #d3e2b7;
  border-radius: 18px;
  color: #627968;
  background: #fffdf2;
  box-shadow: 0 4px 0 #e5ebd3;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}

.news-status::before {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 2px solid #71a94b;
  border-radius: 14px;
  background: linear-gradient(#38843b, #38843b) 50% 13px / 19px 3px no-repeat,
    linear-gradient(#b9cf91, #b9cf91) 50% 23px / 26px 2px no-repeat,
    linear-gradient(#b9cf91, #b9cf91) 50% 30px / 26px 2px no-repeat,
    linear-gradient(#b9cf91, #b9cf91) 50% 37px / 19px 2px no-repeat,
    #f3f7e4;
  box-shadow: 0 3px 0 #dce8c5;
  content: "";
}

.news-grid[aria-busy="true"] .news-status::before {
  animation: news-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes news-pulse {
  to { opacity: .55; transform: translateY(-2px); }
}

.news-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid #cdddac;
  border-radius: 17px;
  background: #fffdf2;
  box-shadow: 0 4px 0 #e3ebd1;
}

.news-card h3 {
  color: #174e37;
}

.news-card button {
  color: #287c2b;
}

.news-return {
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 20px 25px;
  border: 1px solid #d7e4be;
  border-radius: 17px;
  background: linear-gradient(110deg, #eef5dc, #fffdf2);
}

.news-return p {
  margin: 7px 0 0;
  color: #315c3f;
  font-size: 15px;
  font-weight: 800;
}

.news-dialog {
  width: min(720px, calc(100% - 32px));
  max-width: none;
  max-height: min(82vh, 760px);
  padding: 30px;
  border: 2px solid #c8dd9e;
  border-radius: 22px;
  color: #174e37;
  background: #fffdf2;
  box-shadow: 0 24px 80px #173d2660;
}

.news-dialog::backdrop { background: #122d25a8; backdrop-filter: blur(4px); }
.news-dialog form { position: absolute; top: 12px; right: 12px; margin: 0; }
.news-dialog .news-close { width: 36px; height: 36px; border: 1px solid #d69a27; border-radius: 50%; color: #664d16; background: #ffc941; font-size: 22px; cursor: pointer; }
.news-dialog h2 { margin: 8px 42px 8px 0; font-size: clamp(25px, 4vw, 34px); line-height: 1.1; }
.news-dialog-body { color: #526b58; font-size: 14px; line-height: 1.75; }

@media (max-width: 760px) {
  .news-page-intro { width: calc(100% - 32px); min-height: 218px; margin-top: 18px; padding: 26px 24px; }
  .news-page-intro-copy { max-width: 100%; }
  .news-page-mark { right: 16px; bottom: 15px; width: 68px; height: 68px; opacity: .7; }
  .news-page-mark::before { top: 11px; width: 31px; height: 43px; background-position: 50% 10px, 50% 20px, 50% 27px, 50% 34px; background-size: 16px 3px, 20px 2px, 20px 2px, 16px 2px, auto; }
  .news-page-mark::after { top: 17px; width: 7px; height: 3px; }
  .news-section { padding: 34px 0; }
  .news-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
  .news-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .news-status { min-height: 112px; gap: 13px; font-size: 13px; }
  .news-return { min-height: 0; align-items: flex-start; flex-direction: column; margin-top: 16px; padding: 19px; }
}

@media (max-width: 420px) {
  .news-page-intro { min-height: 218px; padding: 23px 19px; }
  .news-page-intro h1 { max-width: 290px; font-size: 34px; }
  .news-page-mark { right: 7px; bottom: 9px; transform: scale(.82) rotate(5deg); transform-origin: bottom right; }
  .news-status { align-items: flex-start; padding: 19px 15px; }
}
