/* ═══════════════════════════════════════
   Home – Ambasadorių slyder blokas
═══════════════════════════════════════ */

.home-amb {
  background: #f3f8f4;
  padding: 80px 0 96px;
}

.home-amb__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── Header ─── */
.home-amb__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
}

.home-amb__heading-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-amb__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2d6b40;
  margin-bottom: 14px;
}

.home-amb__label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: #2d6b40;
  flex-shrink: 0;
}

.home-amb__heading {
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #111e14;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ─── Right side: link + nav ─── */
.home-amb__header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.home-amb__all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2d6b40;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s,
    gap 0.2s;
}

.home-amb__all-link:hover {
  border-color: #2d6b40;
  gap: 10px;
}

/* ─── Navigation arrows ─── */
.home-amb__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-amb__arrow {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(45, 107, 64, 0.35);
  color: #2d6b40;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    opacity 0.2s;
}

.home-amb__arrow:hover:not(:disabled) {
  background: #2d6b40;
  border-color: #2d6b40;
  color: #fff;
}

.home-amb__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.home-amb__counter {
  font-size: 13px;
  font-weight: 600;
  color: #4a6651;
  min-width: 42px;
  text-align: center;
}

/* ─── Viewport / slider ─── */
.home-amb__viewport {
  overflow: hidden;
}

.home-amb__track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.home-amb__slide {
  flex: 0 0 100%;
  max-width: 100%;
}

/* ─── Card ─── */
.home-amb-card {
  display: grid;
  grid-template-columns: 440px 1fr;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
  min-height: 380px;
}

/* ─── Visual (image) side ─── */
.home-amb-card__visual {
  position: relative;
  overflow: hidden;
  background: #d8edd9;
}

.home-amb-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.home-amb-card__img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
  color: #2d6b40;
}

/* ─── Play overlay button (on image) ─── */
.home-amb-card__play {
  all: unset;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(10, 20, 14, 0);
  transition: background 0.25s;
}

.home-amb-card__play::after {
  content: '';
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(45, 107, 64, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
  transition:
    background 0.22s,
    transform 0.22s,
    box-shadow 0.22s;
}

.home-amb-card__play svg {
  position: relative;
  z-index: 1;
  color: #fff;
  width: 32px;
  height: 32px;
  margin-left: 4px; /* optical centering for play triangle */
}

.home-amb-card__play:hover::after {
  background: #2d6b40;
  transform: scale(1.08);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

/* ─── Content side ─── */
.home-amb-card__body {
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.home-amb-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2d6b40;
  background: #e8f5ea;
  padding: 4px 12px;
  border-radius: 100px;
  align-self: flex-start;
}

.home-amb-card__title {
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: #111e14;
  margin: 0;
}

.home-amb-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.home-amb-card__title a:hover {
  color: #2d6b40;
}

.home-amb-card__excerpt {
  font-size: 0.97rem;
  line-height: 1.78;
  color: #4a5e50;
  margin: 0;
}

/* ─── Action buttons ─── */
.home-amb-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.home-amb-card__btn-video {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2d6b40;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 100px;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(45, 107, 64, 0.28);
}

.home-amb-card__btn-video:hover {
  background: #245534;
  box-shadow: 0 6px 22px rgba(45, 107, 64, 0.38);
  transform: translateY(-1px);
}

.home-amb-card__btn-video:active {
  transform: translateY(0);
}

.home-amb-card__btn-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #2d6b40;
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 107, 64, 0.35);
  padding-bottom: 2px;
  transition:
    border-color 0.2s,
    gap 0.2s;
}

.home-amb-card__btn-more:hover {
  border-color: #2d6b40;
  gap: 9px;
}

/* ═══════════════════════════════════════
   Responsive
═══════════════════════════════════════ */

@media (max-width: 1024px) {
  .home-amb-card {
    grid-template-columns: 360px 1fr;
  }

  .home-amb-card__body {
    padding: 40px 40px;
  }
}

@media (max-width: 768px) {
  .home-amb {
    padding: 56px 0 72px;
  }

  .home-amb__container {
    padding: 0 20px;
  }

  .home-amb__header {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }

  .home-amb__header-right {
    width: 100%;
    justify-content: space-between;
  }

  .home-amb-card {
    grid-template-columns: 1fr;
    grid-template-rows: 280px auto;
  }

  .home-amb-card__visual {
    min-height: 280px;
  }

  .home-amb-card__img-placeholder {
    min-height: 280px;
  }

  .home-amb-card__body {
    padding: 32px 24px 36px;
  }
}

@media (max-width: 480px) {
  .home-amb-card__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
