/* Homepage — carusel articole blog (montat sub hero) */

.zgs-home-blog {
  position: relative;
  z-index: 2;
  padding: 2.5rem 0 2rem;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.35) 0%,
    rgba(15, 23, 42, 0.85) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.zgs-home-blog .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 3vw, 1.5rem);
}

.zgs-home-blog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.zgs-home-blog__title {
  margin: 0;
  font-family: var(--font-display, "Poppins", system-ui, sans-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #fff;
}

.zgs-home-blog__all {
  font-family: var(--font-primary, "Inter", system-ui, sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: #34d399;
  text-decoration: none;
}

.zgs-home-blog__all:hover,
.zgs-home-blog__all:focus-visible {
  text-decoration: underline;
  outline: none;
}

.zgs-home-blog__controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.zgs-home-blog__btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.zgs-home-blog__btn:hover,
.zgs-home-blog__btn:focus-visible {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(52, 211, 153, 0.45);
  outline: none;
}

.zgs-home-blog__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.zgs-home-blog__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 -0.25rem;
  padding: 0.25rem;
}

.zgs-home-blog__viewport::-webkit-scrollbar {
  display: none;
}

.zgs-home-blog__track {
  display: flex;
  gap: 1rem;
  padding-bottom: 0.25rem;
}

.zgs-home-blog__card {
  flex: 0 0 min(280px, 82vw);
  scroll-snap-align: start;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.zgs-home-blog__card:hover,
.zgs-home-blog__card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.35);
}

.zgs-home-blog__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.zgs-home-blog__media {
  aspect-ratio: 16 / 9;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.zgs-home-blog__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zgs-home-blog__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.zgs-home-blog__card-title {
  margin: 0;
  font-family: var(--font-display, "Poppins", system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}

.zgs-home-blog__snippet {
  margin: 0;
  font-family: var(--font-primary, "Inter", system-ui, sans-serif);
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zgs-home-blog__read {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #34d399;
}
