/* Heading */
.hw-author-slider .hw-heading {
  margin: 0;
  font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
  font-size: var(--e-global-typography-secondary-font-size);
  font-weight: var(--e-global-typography-secondary-font-weight);
  line-height: var(--e-global-typography-secondary-line-height);
  color: var(--e-global-color-0d3cf55);
  font-size: clamp(1.6rem, 1.46rem + 0.7vw, 2.3rem) !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
}

/* Topbar */
.hw-author-slider .hw-topbar {
  max-width: 1280px;
  margin-inline: auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hw-author-slider .hw-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hw-author-slider .swiper-button-prev,
.hw-author-slider .swiper-button-next {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  position: static;
  inset: auto;
}

.hw-author-slider .swiper-button-prev::after,
.hw-author-slider .swiper-button-next::after {
  content: none !important;
}

.hw-author-slider .swiper-button-prev img,
.hw-author-slider .swiper-button-next img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Swiper base – MOBILE/TABLET: középre igazítás paddinggel */
.hw-author-slider .swiper {
  overflow: visible !important;
  padding: 20px 0;
  width: 100%;

  /* a kártya vizuális szélessége – legyen összhangban a slide szélességgel */
  --slide-w: 260px;

  /* mobil/tablet: aktív slide pontosan középen */
  padding-left:  calc((100% - var(--slide-w)) / 2);
  padding-right: calc((100% - var(--slide-w)) / 2);
}

.hw-author-slider .swiper-wrapper { align-items: flex-start; }

.swiper-button-prev,
.swiper-button-next { top: auto; left: auto; right: auto; }

/* Slides (ALAP: mobil/tablet) – NINCS margin override, hogy a spaceBetween működjön */
.hw-author-slider .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  width: 260px;               /* = var(--slide-w) */
  /* ⚠ NE írjuk felül a margin-right-ot mobilon! A Swiper állítja spaceBetween-nel. */
  gap: 12px;
  border-radius: 12px;
  overflow: visible;
  transition: none;
}

.hw-author-slider .swiper-slide-active {
  z-index: 3;
  align-self: center;
}

/* Image */
.hw-slide-image {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  transition: height .35s ease;
}

.hw-author-slider .swiper-slide-active .hw-slide-image { height: 340px; }

.hw-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Meta box (BOTTOM CONTAINER) */
.hw-slide-meta {
  width: 100%;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #D6D6D6;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s, transform .35s;

  display: flex;
  flex-direction: column;
  gap: var(--hw-meta-gap, 0px);
}

.hw-author-slider .swiper-slide-active .hw-slide-meta {
  opacity: 1;
  transform: translateY(0);
}

/* Names */
.hw-name.hw-last {
  display: block;
  color: var(--e-global-color-83ad7d1);
  font-family: var(--e-global-typography-5eb21aa-font-family), Sans-serif;
  font-size: var(--e-global-typography-5eb21aa-font-size);
  font-weight: var(--e-global-typography-5eb21aa-font-weight);
  text-align: left;
}

.hw-name.hw-first {
  display: block;
  color: var(--e-global-color-0744f1d);
  font-family: var(--e-global-typography-bbbf924-font-family), Sans-serif;
  font-size: var(--e-global-typography-bbbf924-font-size);
  font-weight: var(--e-global-typography-bbbf924-font-weight);
  text-align: left;
}

/* Title */
.hw-title {
  margin-bottom: 15px;
  display: block;
  color: var(--e-global-color-0744f1d);
  font-family: var(--e-global-typography-e189da0-font-family), Sans-serif;
  font-size: var(--e-global-typography-e189da0-font-size);
  font-weight: var(--e-global-typography-e189da0-font-weight);
  text-align: left;
}

/* Contacts */
.hw-contact {
  margin-bottom: 5px;
  color: var(--e-global-color-primary);
  font-family: var(--e-global-typography-6b92941-font-family), Sans-serif;
  font-size: 15px;
  font-weight: var(--e-global-typography-6b92941-font-weight);
  text-align: left;
}

.hw-contact:hover { text-decoration: underline; }

/* Button */
.hw-btn {
  background: #911f12;
  color: #fff !important;
  font-size: 14px;
  line-height: 1em;
  border-radius: 50px 50px 50px 50px;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hw-btn:hover { background: #920000; }

/* Cursors */
@media (min-width: 960px) {
  .hw-author-slider .swiper-slide { cursor: pointer; }
  .hw-author-slider .swiper-slide.swiper-slide-active { cursor: default; }
}

/* Hide nav on mobile */
@media (max-width: 959px) {
  .hw-author-slider .hw-nav { display: none !important; }
}

/* ───────────────── DESKTOP SPECIFIKUS ───────────────── */
@media (min-width: 960px) {
  .hw-author-slider .swiper {
    --slide-w: 260px;
    --gap: 20px;

    /* vizuális közép eltolása balra: 1 kártya + gap */
    padding-left:  calc((100% - var(--slide-w)) / 2 - (var(--slide-w) + var(--gap)));
    padding-right: calc((100% - var(--slide-w)) / 2 - (var(--slide-w) + var(--gap)));
  }

  /* Desktopon a hézagot CSS margin adja, nem a Swiper spaceBetween */
  .hw-author-slider .swiper-slide {
    margin-right: 20px !important;
  }
}
