/* Articles slider — CSS scroll-snap (no Slick) */

#sectionArticles.home-articles {
  --eet-green: #4ba248;
  --eet-green-dark: #3d8a3a;
  --eet-green-50: #ecf7eb;
  --eet-yellow: #fdce2b;
  --eet-yellow-dark: #e6b81b;
  --ink-900: #0f1a14;
  --ink-700: #34423a;
  --ink-500: #5c6b62;
  --line: #e3e8e4;
  --shadow-sm: 0 2px 8px rgba(15, 26, 20, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 26, 20, 0.12);
  --radius-lg: 14px;
  --slide-gap: 24px;

  float: none !important;
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #fff;
  font-family: 'Manrope', system-ui, sans-serif !important;
  color: var(--ink-900);
}

#sectionArticles .home-articles__inner {
  max-width: 75rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 3.5rem;
  box-sizing: border-box;
}

#sectionArticles .home-articles__head.section-head {
  text-align: center !important;
  max-width: 680px;
  margin: 0 auto 3rem;
}

#sectionArticles .section-eyebrow {
  display: inline-block;
  font-family: 'Manrope', sans-serif !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--eet-green-dark);
  margin-bottom: 12px;
}

#sectionArticles .home-articles__head h2 {
  margin: 0 0 12px;
  font-family: 'Manrope', sans-serif !important;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.15;
  color: var(--ink-900);
  text-align: center !important;
}

#sectionArticles .home-articles__lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-500);
  text-align: center;
}

/* Slider shell */
#sectionArticles .home-articles__slider {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
}

#sectionArticles .home-articles__viewport {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

#sectionArticles .home-articles__viewport::-webkit-scrollbar {
  display: none;
}

#sectionArticles .home-articles__track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--slide-gap);
  margin: 0;
  padding: 8px 4px 12px;
  list-style: none;
}

#sectionArticles .home-articles__slide {
  flex: 0 0 300px;
  width: 300px;
  scroll-snap-align: start;
  margin: 0 !important;
  padding: 0;
  box-sizing: border-box;
}

#sectionArticles .home-articles__slide::before {
  display: none !important;
  content: none !important;
}

/* Nav */
#sectionArticles .home-articles__nav {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#sectionArticles .home-articles__nav span {
  display: block;
  width: 18px;
  height: 18px;
  margin: 15px auto;
  background: var(--eet-green-dark);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}

#sectionArticles .home-articles__nav--next span {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
}

#sectionArticles .home-articles__nav:hover {
  border-color: var(--eet-green);
  box-shadow: var(--shadow-md);
  transform: scale(1.06);
}

/* Card */
#sectionArticles .home-articles__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

#sectionArticles .home-articles__card:hover {
  transform: translateY(-6px);
  border-color: rgba(75, 162, 72, 0.5);
  box-shadow: var(--shadow-md);
}

#sectionArticles .home-articles__media {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, var(--eet-green-50) 0%, #fff 100%);
}

#sectionArticles .home-articles__media--placeholder {
  background: linear-gradient(145deg, var(--eet-green-50) 0%, #dfece0 100%);
}

#sectionArticles .home-articles__media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  object-fit: cover;
  transition: transform 0.4s ease;
}

#sectionArticles .home-articles__card:hover .home-articles__media img {
  transform: scale(1.06);
}

#sectionArticles .home-articles__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  padding: 20px 20px 22px;
}

#sectionArticles .home-articles__body h3 {
  float: none !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.2px;
  text-align: left !important;
  color: var(--ink-900);
}

#sectionArticles .home-articles__card:hover .home-articles__body h3 {
  color: var(--eet-green-dark);
}

#sectionArticles .home-articles__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-900);
  background: var(--eet-yellow);
  box-shadow: 0 4px 14px rgba(253, 206, 43, 0.45);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#sectionArticles .home-articles__cta::after {
  content: '';
  width: 14px;
  height: 14px;
  margin-left: 6px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.2s ease;
}

#sectionArticles .home-articles__card:hover .home-articles__cta {
  background: var(--eet-yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(253, 206, 43, 0.55);
}

#sectionArticles .home-articles__card:hover .home-articles__cta::after {
  transform: translateX(3px);
}

/* Footer */
#sectionArticles .home-articles__footer {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  width: 100%;
}

#sectionArticles .home-articles__archive.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  transition: all 0.25s ease;
}

#sectionArticles .home-articles__archive.btn-primary {
  background: var(--eet-yellow);
  color: var(--ink-900);
  box-shadow: 0 6px 18px rgba(253, 206, 43, 0.45);
}

#sectionArticles .home-articles__archive.btn-primary:hover {
  background: var(--eet-yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(253, 206, 43, 0.55);
}

@media (max-width: 1100px) {
  #sectionArticles .home-articles__slider {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  #sectionArticles .home-articles__nav {
    width: 40px;
    height: 40px;
  }

  #sectionArticles .home-articles__nav span {
    width: 16px;
    height: 16px;
    margin: 12px auto;
  }

  #sectionArticles .home-articles__slide {
    flex: 0 0 280px;
    width: 280px;
  }
}

@media (max-width: 680px) {
  #sectionArticles .home-articles__inner {
    padding: 3rem 1rem 2.75rem;
  }

  #sectionArticles .home-articles__head.section-head {
    margin-bottom: 2rem;
  }

  #sectionArticles .home-articles__slider {
    display: block;
  }

  #sectionArticles .home-articles__nav {
    display: none;
  }

  #sectionArticles .home-articles__viewport {
    overflow: visible;
    scroll-snap-type: none;
  }

  #sectionArticles .home-articles__track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }

  #sectionArticles .home-articles__slide {
    flex: none;
    width: 100% !important;
    min-width: 0;
    max-width: none;
  }

  #sectionArticles .home-articles__card {
    min-height: 0;
  }
}

/* Category pages — same partial */
.eet-articles:not(#sectionArticles) .home-articles__slider {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 8px;
}
