.home-news-showcase {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(22px, 4vw, 42px);
  background: var(--cms-surface, #fff);
  border-top: 1px solid color-mix(in srgb, var(--cms-text, #111827) 14%, transparent);
}
.home-news-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.home-news-head span {
  display: block;
  margin-bottom: 5px;
  color: var(--cms-harmony-accent, var(--cms-primary, #0f766e));
  font-size: 12px;
  font-weight: 800;
}
.home-news-head h2 {
  margin: 0;
  color: var(--cms-text, #111827);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}
.home-news-head > a,
.home-news-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: var(--cms-primary, #111827);
  color: var(--cms-on-primary, #fff) !important;
  font-weight: 800;
  text-decoration: none;
}
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.home-news-card {
  min-width: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--cms-surface, #fff) 94%, var(--cms-primary, #111827));
  border: 1px solid color-mix(in srgb, var(--cms-text, #111827) 14%, transparent);
  border-radius: 6px;
}
.home-news-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.home-news-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-news-card > div { padding: 18px; }
.home-news-card time {
  color: color-mix(in srgb, var(--cms-text, #111827) 68%, transparent);
  font-size: 12px;
}
.home-news-card h3 {
  margin: 7px 0 9px;
  font-size: 20px;
  letter-spacing: 0;
}
.home-news-card h3 a {
  color: var(--cms-text, #111827);
  text-decoration: none;
}
.home-news-card p {
  min-height: 4.5em;
  margin: 0 0 16px;
  color: var(--cms-text, #111827);
  line-height: 1.55;
}
.news-admin {
  display: grid;
  gap: 18px;
  padding: 10px;
  color: #17212b;
  font: 14px/1.5 Arial, Helvetica, sans-serif;
}
.news-admin * { box-sizing: border-box; }
.news-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background: #1f2937;
  color: #fff;
  border-radius: 6px;
}
.news-admin-hero span,
.news-admin-section-head span {
  display: block;
  color: #f59e0b;
  font-size: 11px;
  font-weight: 800;
}
.news-admin-hero h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  letter-spacing: 0;
}
.news-admin-hero p {
  max-width: 760px;
  margin: 0;
  color: #e5e7eb;
}
.news-admin-hero > a,
.news-admin button,
.news-admin-actions a,
.news-admin-section-head > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 10px 14px;
  background: #f97316;
  color: #fff !important;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}
.news-admin-notice {
  padding: 11px 13px;
  background: #e8f7ee;
  color: #165c3c;
  border: 1px solid #b9e0c8;
}

.news-admin-notice-error {
  color: #842029;
  background: #f8d7da;
  border-color: #f5c2c7;
}

.news-admin-actions form {
  display: inline;
  margin: 0;
}

.news-admin-actions button {
  font: inherit;
  cursor: pointer;
}
.news-admin-settings,
.news-admin-editor,
.news-admin-list-section {
  padding: 20px;
  background: #fff;
  border: 1px solid #d8e0e7;
  border-radius: 6px;
}
.news-admin-settings {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr);
  gap: 24px;
}
.news-admin-settings h3,
.news-admin-section-head h3 {
  margin: 0 0 5px;
  font-size: 19px;
  letter-spacing: 0;
}
.news-admin-settings p { margin: 0; color: #617080; }
.news-admin-settings form,
.news-admin-form { display: grid; gap: 13px; }
.news-admin label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.news-admin input[type="text"],
.news-admin input[type="file"],
.news-admin textarea {
  width: 100%;
  border: 1px solid #b9c5cf;
  border-radius: 4px;
  padding: 10px;
  background: #fff;
  color: #17212b;
  font: inherit;
}
.news-admin-switch {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.news-admin-switch input { width: 18px; height: 18px; }
.news-admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.news-admin-list { display: grid; gap: 10px; }
.news-admin-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe5ea;
  border-radius: 6px;
}
.news-admin-card img {
  width: 120px;
  height: 78px;
  object-fit: cover;
  border-radius: 4px;
}
.news-admin-card time { color: #667481; font-size: 12px; }
.news-admin-card h4 { margin: 3px 0 4px; font-size: 16px; letter-spacing: 0; }
.news-admin-card p { margin: 0; color: #52606d; }
.news-admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.news-admin-actions a { padding: 8px 10px; background: #334155; }
.news-admin-actions .danger { background: #b42318; }
.news-admin-empty {
  padding: 18px;
  background: #f4f7f9;
  color: #617080;
  text-align: center;
}
@media (max-width: 820px) {
  .home-news-grid { grid-template-columns: 1fr; }
  .home-news-card { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; }
  .home-news-image { height: 100%; aspect-ratio: auto; }
  .home-news-card p { min-height: 0; }
}
@media (max-width: 760px) {
  .news-admin-hero,
  .news-admin-settings { display: grid; grid-template-columns: 1fr; }
  .news-admin-hero > a { justify-self: start; }
  .news-admin-card { grid-template-columns: 88px minmax(0, 1fr); }
  .news-admin-card img { width: 88px; height: 68px; }
  .news-admin-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .home-news-head { align-items: stretch; flex-direction: column; }
  .home-news-head > a { align-self: flex-start; }
  .home-news-card { display: block; }
  .home-news-image { aspect-ratio: 16 / 9; }
}
@media (max-width: 480px) {
  .news-admin-card { grid-template-columns: 1fr; }
  .news-admin-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}
