/* ============================================================
   PLD Village — Main Stylesheet  v1.0
   หมู่บ้านพฤกษ์ลดา วงแหวน-รัตนาธิเบศร์
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
  --green-dark:   #1b4332;
  --green:        #2d6a4f;
  --green-mid:    #40916c;
  --green-light:  #74c69d;
  --green-pale:   #d8f3dc;
  --gold:         #e9c46a;
  --gold-dark:    #c89b3c;
  --white:        #ffffff;
  --gray-50:      #f8fafb;
  --gray-100:     #f0f4f0;
  --gray-200:     #dde6dd;
  --gray-400:     #9aaf9a;
  --gray-600:     #556755;
  --gray-800:     #2c3e2c;
  --text:         #1a2e1a;
  --text-muted:   #5a705a;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.10);
  --shadow:       0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.18);
  --radius:       12px;
  --radius-sm:    8px;
  --transition:   .22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-mid); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ─── Nav ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--green-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px; height: 60px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}
.nav-logo .leaf { font-size: 1.5rem; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.nav-link {
  color: rgba(255,255,255,.80);
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,.15); color: var(--white);
}
.nav-admin {
  margin-left: 8px;
  background: var(--gold); color: var(--green-dark) !important;
  font-weight: 700; border-radius: var(--radius-sm); padding: 6px 14px;
}
.nav-admin:hover { background: var(--gold-dark); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; margin-left: auto;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px;
  transition: var(--transition);
}

/* ─── Hero ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--green-mid) 100%);
  color: var(--white); text-align: center;
  padding: 64px 20px 56px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '🌿';
  position: absolute; top: -20px; left: -20px;
  font-size: 160px; opacity: .06; transform: rotate(-20deg);
}
.hero::after {
  content: '🌳';
  position: absolute; bottom: -30px; right: 10px;
  font-size: 180px; opacity: .06; transform: rotate(10deg);
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15); color: var(--green-pale);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px; padding: 4px 16px; font-size: .85rem;
  margin-bottom: 16px; letter-spacing: .5px;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 8px;
}
.hero-sub { font-size: 1.1rem; opacity: .85; margin-bottom: 4px; }
.hero-tagline {
  font-size: .95rem; opacity: .70; margin-top: 12px;
  max-width: 500px; margin-left: auto; margin-right: auto;
}

/* ─── Stats ─────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  box-shadow: var(--shadow);
  position: relative; z-index: 1;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--gray-200);
}
.stat-item {
  text-align: center; padding: 20px 16px;
  border-right: 1px solid var(--gray-200);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2rem; font-weight: 700; color: var(--green);
  line-height: 1;
}
.stat-label { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }

/* ─── Container ─────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }
.section-title {
  font-size: 1.4rem; font-weight: 700; color: var(--green-dark);
  margin-bottom: 24px; display: flex; align-items: center; gap: 8px;
}
.section-title::after {
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(to right, var(--green-light), transparent);
  border-radius: 2px;
}

/* ─── Filter & Search ───────────────────────────────── */
.toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-bottom: 24px;
}
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: 24px; padding: 8px 16px;
  flex: 1; min-width: 200px; max-width: 320px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box:focus-within {
  border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(64,145,108,.15);
}
.search-box input {
  border: none; outline: none; background: transparent;
  font-family: inherit; font-size: .95rem; width: 100%; color: var(--text);
}
.search-box .icon { color: var(--gray-400); font-size: 1rem; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tab {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: 20px; padding: 6px 16px; font-size: .85rem;
  font-family: inherit; color: var(--text-muted);
  transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--green-mid); color: var(--green); }
.filter-tab.active {
  background: var(--green); border-color: var(--green);
  color: var(--white); font-weight: 600;
}
.view-toggle {
  display: flex; gap: 4px; margin-left: auto;
}
.view-btn {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: 7px 12px; font-size: 1rem;
  transition: all var(--transition);
}
.view-btn:hover, .view-btn.active {
  background: var(--green-pale); border-color: var(--green-mid); color: var(--green-dark);
}

/* ─── Gallery Grid ──────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  background: var(--gray-100); transition: transform .35s ease;
}
.project-card:hover .card-img { transform: scale(1.04); }
.card-img-wrap { overflow: hidden; position: relative; }
.card-category {
  position: absolute; top: 10px; left: 10px;
  background: rgba(27,67,50,.85); color: var(--white);
  font-size: .72rem; font-weight: 600; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 12px; backdrop-filter: blur(4px);
}
.card-img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-pale), var(--gray-100));
  font-size: 3rem; color: var(--green-light);
}
.card-body { padding: 16px; }
.card-title {
  font-size: 1rem; font-weight: 600; color: var(--text);
  margin-bottom: 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-desc {
  font-size: .85rem; color: var(--text-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--gray-100);
  font-size: .8rem; color: var(--text-muted);
}
.card-date { display: flex; align-items: center; gap: 4px; }
.card-status {
  margin-left: auto; background: var(--green-pale); color: var(--green-dark);
  padding: 2px 8px; border-radius: 10px; font-size: .75rem; font-weight: 600;
}

/* ─── Timeline ──────────────────────────────────────── */
.timeline { padding: 8px 0; }
.timeline-item {
  display: flex; gap: 20px; margin-bottom: 32px; position: relative;
}
.timeline-dot-col { display: flex; flex-direction: column; align-items: center; width: 40px; }
.timeline-dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0; box-shadow: 0 0 0 4px var(--green-pale);
  z-index: 1;
}
.timeline-line {
  flex: 1; width: 2px; background: var(--gray-200); margin-top: 4px;
}
.timeline-content {
  flex: 1; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 16px 20px;
  border-left: 3px solid var(--green-light);
  transition: box-shadow var(--transition);
}
.timeline-content:hover { box-shadow: var(--shadow); }
.timeline-date {
  font-size: .8rem; color: var(--green-mid); font-weight: 600; margin-bottom: 6px;
}
.timeline-title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.timeline-desc { font-size: .875rem; color: var(--text-muted); }
.timeline-img {
  width: 140px; height: 100px; object-fit: cover; border-radius: var(--radius-sm);
  flex-shrink: 0; cursor: pointer;
}

/* ─── Lightbox ──────────────────────────────────────── */
#lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999;
  display: none; align-items: center; justify-content: center; padding: 20px;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox-img {
  max-width: 92vw; max-height: 88vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 8px 48px rgba(0,0,0,.5);
  cursor: default; touch-action: pinch-zoom;
}
#lightbox-caption {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.7); color: var(--white); backdrop-filter: blur(8px);
  padding: 10px 24px; border-radius: 20px; font-size: .9rem; max-width: 80vw;
  text-align: center;
}
.lightbox-close {
  position: fixed; top: 16px; right: 16px;
  background: rgba(255,255,255,.15); color: var(--white);
  border: none; width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.30); }
.lightbox-open-btn {
  position: fixed; top: 16px; right: 64px;
  background: rgba(255,255,255,.15); color: var(--white);
  border: none; padding: 8px 14px; border-radius: 20px;
  font-size: .8rem; backdrop-filter: blur(4px); transition: background var(--transition);
  text-decoration: none; display: flex; align-items: center; gap: 4px;
}
.lightbox-open-btn:hover { background: rgba(255,255,255,.30); color: var(--white); }

/* ─── Members ───────────────────────────────────────── */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.member-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); text-align: center; padding: 28px 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.member-photo {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 12px;
  border: 4px solid var(--green-pale);
}
.member-photo-placeholder {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--white); margin: 0 auto 12px;
  border: 4px solid var(--green-pale);
}
.member-name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.member-role {
  font-size: .85rem; color: var(--green-mid); font-weight: 600;
  background: var(--green-pale); display: inline-block;
  padding: 2px 12px; border-radius: 12px; margin-bottom: 8px;
}
.member-bio { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }

/* ─── News ──────────────────────────────────────────── */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; gap: 0;
  transition: box-shadow var(--transition);
}
.news-card:hover { box-shadow: var(--shadow); }
.news-card.pinned { border-left: 4px solid var(--gold); }
.news-img {
  width: 160px; height: 120px; object-fit: cover; flex-shrink: 0;
}
.news-img-placeholder {
  width: 160px; height: 120px; flex-shrink: 0;
  background: var(--green-pale); display: flex; align-items: center;
  justify-content: center; font-size: 2.5rem;
}
.news-body { padding: 16px 20px; flex: 1; }
.news-category {
  font-size: .75rem; color: var(--green-mid); font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px;
}
.news-title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.news-content { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
.news-date { font-size: .78rem; color: var(--gray-400); margin-top: 8px; }
.pinned-badge {
  display: inline-block; background: var(--gold); color: var(--green-dark);
  font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 10px;
  margin-left: 6px; vertical-align: middle;
}

/* ─── Admin ─────────────────────────────────────────── */
.login-wrap {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.login-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 40px 36px; width: 100%; max-width: 360px;
  text-align: center;
}
.login-logo { font-size: 3rem; margin-bottom: 12px; }
.login-card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.login-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 24px; }
.pin-dots { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.pin-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gray-200); transition: background var(--transition);
}
.pin-dot.filled { background: var(--green); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 220px; margin: 0 auto; }
.pin-btn {
  aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--gray-200);
  background: var(--white); font-size: 1.2rem; font-weight: 600;
  color: var(--text); transition: all var(--transition);
}
.pin-btn:hover { background: var(--green-pale); border-color: var(--green-mid); }
.pin-btn:active { transform: scale(.93); background: var(--green); color: var(--white); }
.pin-clear {
  background: none; border: none; color: var(--text-muted);
  font-size: .85rem; margin-top: 12px; text-decoration: underline;
}
.admin-tabs {
  display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 28px; gap: 0;
}
.admin-tab {
  padding: 12px 24px; border: none; background: none; font-size: .95rem;
  font-family: inherit; color: var(--text-muted); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition); cursor: pointer;
}
.admin-tab:hover { color: var(--green); }
.admin-tab.active { color: var(--green-dark); border-bottom-color: var(--green); font-weight: 600; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.form-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 24px;
}
.form-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 16px; color: var(--green-dark); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: .875rem; font-weight: 600; color: var(--gray-600); }
input[type=text], input[type=date], select, textarea {
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 10px 14px; font-family: inherit; font-size: .95rem;
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%; color: var(--text); background: var(--white);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(64,145,108,.15);
}
textarea { resize: vertical; min-height: 80px; }
.upload-zone {
  border: 2px dashed var(--gray-200); border-radius: var(--radius);
  padding: 28px; text-align: center; cursor: pointer; background: var(--gray-50);
  transition: all var(--transition); position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--green-mid); background: var(--green-pale);
}
.upload-zone input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-zone-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-zone p { font-size: .9rem; color: var(--text-muted); margin-bottom: 4px; }
.upload-zone small { font-size: .78rem; color: var(--gray-400); }
.upload-preview {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px;
}
.preview-img {
  width: 80px; height: 60px; object-fit: cover; border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
}

/* ─── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: .9rem; font-weight: 600;
  border: none; cursor: pointer; transition: all var(--transition);
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline:hover { background: var(--green-pale); }
.btn-danger { background: #dc3545; color: var(--white); }
.btn-danger:hover { background: #b02a37; }
.btn-gold { background: var(--gold); color: var(--green-dark); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-icon { padding: 8px; border-radius: 6px; background: transparent; border: 1.5px solid var(--gray-200); }
.btn-icon:hover { background: var(--gray-100); }

/* ─── Table ─────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th {
  text-align: left; padding: 10px 14px; background: var(--gray-100);
  font-weight: 600; color: var(--gray-600); border-bottom: 2px solid var(--gray-200);
}
.data-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--gray-100); vertical-align: middle;
}
.data-table tr:hover td { background: var(--gray-50); }
.data-table img {
  width: 48px; height: 36px; object-fit: cover; border-radius: 4px;
}
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); }

/* ─── Toast ─────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9998;
  background: var(--green-dark); color: var(--white);
  padding: 12px 20px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); font-size: .9rem;
  transform: translateY(80px); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none; max-width: 300px;
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.error { background: #dc3545; }

/* ─── Empty state ───────────────────────────────────── */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 3.5rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 6px; }
.empty-state p { font-size: .9rem; }

/* ─── Loading ───────────────────────────────────────── */
.spinner {
  display: inline-block; width: 24px; height: 24px;
  border: 3px solid var(--gray-200); border-top-color: var(--green);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  text-align: center; padding: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: .9rem;
}

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--green-dark); color: rgba(255,255,255,.7);
  text-align: center; padding: 28px 20px; margin-top: 60px;
  font-size: .875rem;
}
.footer a { color: var(--green-light); }
.footer strong { color: var(--white); }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 60px; left: 0; right: 0; background: var(--green-dark); padding: 12px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-admin { margin-left: 0; }
  .timeline-item { flex-direction: column; gap: 10px; }
  .timeline-dot-col { flex-direction: row; width: auto; }
  .timeline-line { display: none; }
  .news-img, .news-img-placeholder { width: 100px; height: 80px; }
  .members-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .toolbar { gap: 8px; }
  .view-toggle { margin-left: 0; }
}
@media (max-width: 480px) {
  .hero { padding: 40px 16px 36px; }
  .hero h1 { font-size: 1.6rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .news-card { flex-direction: column; }
  .news-img, .news-img-placeholder { width: 100%; height: 160px; }
}
