/* Home page styles */
:root {
  --nu-primary: #2563eb;
  --nu-primary-dark: #1e40af;
  --nu-surface: #ffffff;
  --nu-bg: #f8fafc;
  --nu-text: #1e293b;
  --nu-muted: #64748b;
  --nu-radius: 14px;
  --nu-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Hero */
.home-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(420px, 68vh, 640px);
  color: #fff;
  overflow: hidden;
}
.home-hero .container { position: relative; z-index: 2; }
.home-hero .hero-content { max-width: 920px; }
.home-hero .hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 10px;
}
.home-hero .hero-subtext {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  color: rgba(255,255,255,.9);
}
.home-hero .hero-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.nu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.nu-btn.primary { background: var(--nu-primary); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.25); }
.nu-btn.primary:hover { background: var(--nu-primary-dark); transform: translateY(-2px); }
.nu-btn.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.nu-btn.ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

.home-hero .hero-bg-image { position: absolute; inset: 0; z-index: 1; }
.home-hero .hero-bg-image img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6) saturate(1.05); }

/* Section base */
.section-header { text-align: left; margin-bottom: 18px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--nu-text); }
.section-subtitle { color: var(--nu-muted); margin-top: 4px; }

/* Latest Articles grid tweaks */
.articles-section { background: var(--nu-bg); padding: 36px 0; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 18px; }
.article-card { background: var(--nu-surface); border-radius: var(--nu-radius); overflow: hidden; box-shadow: var(--nu-shadow); transition: transform .2s ease; }
.article-card:hover { transform: translateY(-3px); }
.article-thumbnail img { display: block; width: 100%; height: 200px; object-fit: cover; }
.article-content { padding: 14px 16px 16px; }
.article-content .post-meta { display: flex; gap: 10px; color: var(--nu-muted); font-size: .9rem; margin-bottom: 6px; }
.article-content h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--nu-text); }
.article-content p { color: var(--nu-muted); font-size: .95rem; }

/* Reveal animation */
.article-card, .topic-card, .tool-card { opacity: 0; transform: translateY(10px); will-change: transform, opacity; transition: opacity .35s ease, transform .35s ease; }
.reveal-in { opacity: 1 !important; transform: translateY(0) !important; }

.view-all-wrap { display: flex; justify-content: center; margin-top: 16px; }

/* Featured Topics */
.featured-topics { padding: 36px 0; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; }
.topic-card { background: var(--nu-surface); border-radius: var(--nu-radius); box-shadow: var(--nu-shadow); padding: 18px; display: grid; gap: 8px; transition: transform .2s ease; }
.topic-card:hover { transform: translateY(-3px); }
.topic-card .topic-icon { font-size: 26px; }
.topic-card .topic-title { font-weight: 700; color: var(--nu-text); }
.topic-card .topic-link { color: var(--nu-primary); text-decoration: none; font-weight: 600; }
.topic-card .topic-link:hover { color: var(--nu-primary-dark); }

/* Newsletter */
.newsletter { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); color: #fff; border-radius: var(--nu-radius); box-shadow: var(--nu-shadow); padding: 24px; display: grid; gap: 10px; }
.newsletter h3 { margin: 0; font-size: 1.4rem; }
.newsletter p { margin: 0; color: rgba(255,255,255,.9); }
.newsletter form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 10px; }
.newsletter input[type=email] { padding: 12px 14px; border-radius: 999px; border: none; outline: none; }
.newsletter button[type=submit] { padding: 12px 16px; border-radius: 999px; border: none; background: #fff; color: var(--nu-primary-dark); font-weight: 700; cursor: pointer; }
.newsletter button[type=submit]:hover { filter: brightness(.95); }

@media (max-width: 640px){
  .article-thumbnail img { height: 180px; }
  .newsletter form { grid-template-columns: 1fr; }
}
