@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&display=swap");

:root {
  --navy: #0c1222;
  --navy-mid: #162033;
  --navy-soft: #1e293b;
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --teal-glow: rgba(20, 184, 166, 0.35);
  --bg: #f4f6f9;
  --bg-elevated: #ffffff;
  --text: #1e293b;
  --text-secondary: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(12, 18, 34, 0.06);
  --shadow: 0 4px 20px rgba(12, 18, 34, 0.07);
  --shadow-lg: 0 12px 40px rgba(12, 18, 34, 0.1);
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1160px;
  --prose: 680px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-dark); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--teal); }

img, video { max-width: 100%; height: auto; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 18, 34, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal) 0%, #38bdf8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.brand-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-text span {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  margin-top: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.site-nav a.active {
  color: var(--teal);
  background: rgba(20, 184, 166, 0.12);
}

.site-nav .nav-cta {
  margin-left: 4px;
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal);
  border: 1px solid rgba(20, 184, 166, 0.35);
}

.site-nav .nav-cta:hover {
  background: rgba(20, 184, 166, 0.25);
  color: var(--white);
}

.header-accent {
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, #38bdf8 50%, var(--teal) 100%);
}

/* ── Page hero (home) ── */
.page-hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-hero .lead {
  margin: 0;
  max-width: 620px;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--navy-soft);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  text-decoration: none;
}

/* ── Toolbar & filters ── */
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.list-toolbar h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
}

.article-count {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row button {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
}

.filter-row button:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.filter-row button.active {
  border-color: var(--navy);
  color: var(--white);
  background: var(--navy);
}

/* ── Featured article ── */
.featured-wrap { margin-bottom: 40px; }

.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 340px;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(12, 18, 34, 0.14);
  text-decoration: none;
  color: inherit;
}

.featured-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--navy-mid);
}

.featured-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.featured-visual .visual-placeholder {
  position: absolute;
  inset: 0;
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.featured-body {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-body .meta { margin-bottom: 14px; }

.featured-body h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.featured-body .excerpt {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-dark);
}

.read-link::after {
  content: "→";
  transition: transform 0.15s;
}

.featured-card:hover .read-link::after {
  transform: translateX(4px);
}

/* ── Article grid & cards ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(20, 184, 166, 0.35);
  text-decoration: none;
  color: inherit;
}

.card-visual {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy-mid);
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card:hover .card-visual img {
  transform: scale(1.04);
}

.visual-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
}

.visual-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 18, 34, 0.5) 100%);
  z-index: 1;
}

.visual-placeholder .cat-label {
  position: relative;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body .meta {
  margin-bottom: 10px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body .excerpt {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Meta & pills ── */
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.meta-sep { color: var(--border-strong); }

.pill {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.4;
}

.pill-cat-company { background: rgba(12, 18, 34, 0.08); color: var(--navy); }
.pill-cat-platform { background: rgba(20, 184, 166, 0.12); color: var(--teal-dark); }
.pill-cat-dardevlab { background: rgba(20, 184, 166, 0.12); color: #0d9488; }
.pill-cat-hesabi { background: rgba(5, 150, 105, 0.12); color: #047857; }
.pill-cat-escahire { background: rgba(139, 92, 246, 0.12); color: #6d28d9; }
.pill-cat-workspace { background: rgba(99, 102, 241, 0.12); color: #4338ca; }
.pill-cat-dardevcde { background: rgba(56, 189, 248, 0.15); color: #0369a1; }
.pill-cat-dardevops { background: rgba(14, 165, 233, 0.15); color: #0369a1; }
.pill-cat-observability { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.pill-cat-default { background: var(--bg); color: var(--muted); }

.pill-solution {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.6875rem;
}

/* Category gradient placeholders */
.grad-company { background: linear-gradient(135deg, #0c1222 0%, #1e3a5f 100%); }
.grad-platform { background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); }
.grad-dardevlab { background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%); }
.grad-hesabi { background: linear-gradient(135deg, #047857 0%, #34d399 100%); }
.grad-escahire { background: linear-gradient(135deg, #6d28d9 0%, #a78bfa 100%); }
.grad-workspace { background: linear-gradient(135deg, #4338ca 0%, #818cf8 100%); }
.grad-dardevcde { background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%); }
.grad-dardevops { background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%); }
.grad-observability { background: linear-gradient(135deg, #b45309 0%, #fbbf24 100%); }
.grad-default { background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-soft) 100%); }

/* ── Article page ── */
.article-page { padding: 32px 0 64px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 500;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal-dark); text-decoration: none; }
.breadcrumb span { color: var(--border-strong); }

.article-header {
  max-width: var(--prose);
  margin: 0 auto 32px;
  text-align: center;
}

.article-header .meta {
  justify-content: center;
  margin-bottom: 16px;
}

.article-header h1 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.article-deck {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.article-cover {
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.article-cover img {
  width: 100%;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

.article-prose {
  max-width: var(--prose);
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
}

.article-prose p {
  margin: 0 0 1.35em;
}

.article-prose p:last-child { margin-bottom: 0; }

.media-block {
  margin: 2em 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.media-block img,
.media-block video {
  width: 100%;
  display: block;
  background: var(--navy-mid);
}

.media-block video { max-height: 480px; }

.media-block figcaption {
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.article-aside {
  max-width: var(--prose);
  margin: 40px auto 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.solution-card {
  margin-top: 32px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.06) 0%, rgba(56, 189, 248, 0.06) 100%);
  border: 1px solid rgba(20, 184, 166, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.solution-card strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.solution-card span {
  font-size: 0.8125rem;
  color: var(--muted);
}

.article-nav {
  max-width: var(--prose);
  margin: 36px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.article-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Related articles */
.related-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.related-section h2 {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  display: block;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.related-card .related-thumb {
  height: 100px;
  overflow: hidden;
  background: var(--navy-mid);
}

.related-card .related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card .related-body {
  padding: 14px 16px 16px;
}

.related-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.related-card .meta { margin-bottom: 8px; }

.related-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  margin-top: 64px;
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 8px;
  font-weight: 500;
}

.footer-brand p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.55); }
.footer-bottom a:hover { color: var(--teal); }

/* ── States ── */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  color: var(--muted);
}

.error-box {
  background: #fef2f2;
  color: #b91c1c;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid #fecaca;
  font-size: 0.9375rem;
}

main { padding-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .featured-card { grid-template-columns: 1fr; min-height: auto; }
  .featured-visual { min-height: 220px; }
  .featured-body { padding: 28px 24px; }
  .article-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .page-hero { padding: 32px 0 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .site-header .inner { padding: 0 16px; }
}

/* ── Subscribe & contact ── */
.engage-section {
  margin: 56px 0 0;
  padding: 48px 0 56px;
  background: linear-gradient(180deg, var(--bg) 0%, #e8ecf2 100%);
  border-top: 1px solid var(--border);
}

.subscribe-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 20px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.subscribe-strip-text {
  flex: 1 1 240px;
  min-width: 0;
}

.subscribe-strip-text h2 {
  margin: 0 0 2px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
}

.subscribe-strip-text p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
}

.subscribe-strip-form {
  flex: 1 1 320px;
  max-width: 440px;
}

.subscribe-inline {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.subscribe-inline .form-field {
  flex: 1;
  margin-bottom: 0;
}

.subscribe-inline input {
  height: 44px;
  margin: 0;
}

.subscribe-inline .btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 20px;
  background: var(--teal);
  color: var(--navy);
  border: none;
}

.subscribe-inline .btn:hover {
  background: #2dd4bf;
  color: var(--navy);
}

.news-form-subscribe .form-hint {
  margin-top: 8px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.news-form-subscribe .form-feedback.is-success {
  background: rgba(20, 184, 166, 0.15);
  color: #99f6e4;
  border-color: rgba(20, 184, 166, 0.35);
}

.news-form-subscribe .form-feedback.is-error {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.35);
}

.engage-contact-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.engage-contact-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
}

.engage-contact-panel > p {
  margin: 0 0 22px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.engage-label {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.news-form { margin-top: 4px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row-inline {
  grid-template-columns: 1fr 1.2fr;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-field .req { color: #dc2626; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 96px;
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.form-hint {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.form-hint a { font-weight: 600; }

.form-feedback {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-feedback.is-success {
  display: block;
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.form-feedback.is-error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .form-row,
  .form-row-inline {
    grid-template-columns: 1fr;
  }
  .subscribe-inline {
    flex-direction: column;
  }
  .subscribe-inline .btn {
    width: 100%;
  }
}
