/* Home page — Healthy nutrition editorial layout */

.hero-section {
  margin-bottom: 1.0rem;
}

.hero-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #1d5d3d 0%, #2f8f5b 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-image {
  width: 100%;
  height: 470px;
  object-fit: cover;
  opacity: 0.86;
}

.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem;
  background: linear-gradient(180deg, rgba(16, 30, 21, 0.05), rgba(16, 30, 21, 0.82));
  color: #fff;
}

.hero-category {
  display: inline-block;
  background: rgba(239, 181, 72, 0.25);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-category:hover {
  color: #fff;
  background: rgba(239, 181, 72, 0.35);
}

.hero-title {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 0.75rem;
}

.hero-title a {
  color: #fff;
}

.hero-title a:hover {
  color: #edf8ef;
}

.hero-excerpt {
  font-size: 1.02rem;
  opacity: 0.94;
  margin-bottom: 1.2rem;
  max-width: 640px;
}

.hero-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: #1b2c23;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
}

.hero-read-more:hover {
  background: #f5c96a;
  color: #1b2c23;
}

.section-block {
  margin-bottom: 2.75rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  margin-top: 0.55rem;
  width: 88px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  border-radius: 999px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.7rem;
}

.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(33, 69, 48, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(33, 69, 48, 0.12);
}

.card-image-link {
  display: block;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-body {
  padding: 1.3rem 1.25rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.65rem;
}

.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.6rem;
}

.card-title a {
  color: var(--color-text);
}

.card-title a:hover {
  color: var(--color-primary);
}

.card-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.card-read-more {
  font-size: 0.88rem;
  font-weight: 700;
  align-self: flex-start;
  color: var(--color-primary-dark);
}

.category-block {
  margin-bottom: 2rem;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(31, 44, 36, 0.08);
  border-radius: 24px;
}

.category-block-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.category-block-title a {
  color: var(--color-text);
}

.category-block-title a:hover {
  color: var(--color-primary);
}

.category-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 576px) {
  .hero-image {
    height: 320px;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}
