.hp-latest-articles-carousel {
  --hp-gap: 4px;
  --hp-image-height: 280px;
  --hp-overlay-opacity: .45;
  --hp-overlay-opacity-mobile: .55;
  --hp-title-size-mobile: 15px;
  --hp-badge-size-mobile: 11px;
  --hp-intro-size-mobile: 13px;
  --hp-image-height-mobile: 220px;
  --hp-image-fit-mobile: contain;
  --hp-overlay-color: #000000;
  --hp-title-bg: rgba(0,0,0,.45);
  --hp-title-color: #ffffff;
  --hp-meta-bg: #f28b00;
  --hp-meta-color: #ffffff;
  --hp-nav-bg: #111111;
  --hp-accent: #f28b00;
  --hp-outer-padding: 42px;
  --hp-outer-padding-mobile: 28px;
  --hp-nav-inset: 0px;
  --hp-card-radius: 18px;
  position: relative;
  width: 100%;
  padding: 0 var(--hp-outer-padding) 34px;
  box-sizing: border-box;
}
.hp-latest-articles-carousel__viewport { overflow: hidden; }
.hp-latest-articles-carousel__track {
  display: flex;
  gap: var(--hp-gap);
  transition: transform .45s ease;
  will-change: transform;
}
.hp-latest-articles-carousel__item { min-width: 0; }
.hp-latest-articles-carousel__card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--hp-card-radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}
.hp-latest-articles-carousel__media {
  position: relative;
  height: var(--hp-image-height);
  background: #ddd;
  overflow: hidden;
}
.hp-latest-articles-carousel__image,
.hp-latest-articles-carousel__placeholder {
  width: 100%;
  height: 100%;
  display: block;
}
.hp-latest-articles-carousel__image { object-fit: cover; transition: transform .45s ease; }
.hp-latest-articles-carousel__card:hover .hp-latest-articles-carousel__image { transform: scale(1.04); }
.hp-latest-articles-carousel__placeholder {
  display:flex; align-items:center; justify-content:center; background:#e7e7e7; color:#666; font-weight:700;
}
.hp-latest-articles-carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--hp-overlay-color) 0%, rgba(0,0,0,.18) 42%, rgba(0,0,0,.02) 100%);
  opacity: var(--hp-overlay-opacity);
}
.hp-latest-articles-carousel__content {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 2;
  color: var(--hp-title-color);
}
.hp-latest-articles-carousel__content--bottom { bottom: 12px; }
.hp-latest-articles-carousel__content--center { top: 50%; transform: translateY(-50%); }
.hp-latest-articles-carousel__title {
  margin: 0 0 8px;
  display: inline;
  padding: 7px 10px;
  background: var(--hp-title-bg);
  color: var(--hp-title-color);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  border-radius: 8px;
  line-height: 1.45;
  font-size: 1.08rem;
  font-weight: 800;
}
.hp-latest-articles-carousel__category {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--hp-meta-bg);
  color: var(--hp-meta-color);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.hp-latest-articles-carousel__intro {
  margin-top: 10px;
  display: inline-block;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--hp-title-bg);
  color: var(--hp-meta-color);
  font-size: .88rem;
  line-height: 1.4;
}
.hp-latest-articles-carousel__nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--hp-nav-bg);
  color: #fff;
  cursor: pointer;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.hp-latest-articles-carousel__nav:hover { background: var(--hp-accent); }
.hp-latest-articles-carousel__nav--prev { left: var(--hp-nav-inset); }
.hp-latest-articles-carousel__nav--next { right: var(--hp-nav-inset); }
.hp-latest-articles-carousel__dots { display:flex; justify-content:center; gap:8px; margin-top:18px; }
.hp-latest-articles-carousel__dot { width:10px; height:10px; border:0; border-radius:999px; background:#ccc; padding:0; cursor:pointer; }
.hp-latest-articles-carousel__dot.is-active { background: var(--hp-accent); transform:scale(1.12); }
.hp-latest-articles-carousel__empty {
  padding: 22px;
  text-align: center;
  border: 1px dashed #d0d0d0;
  border-radius: 14px;
  background: #fafafa;
  color: #666;
}
.hp-latest-articles-carousel--fullwidth { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.hp-latest-articles-carousel--shadow-none .hp-latest-articles-carousel__card { box-shadow: none; }
.hp-latest-articles-carousel--shadow-soft .hp-latest-articles-carousel__card { box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.hp-latest-articles-carousel--shadow-medium .hp-latest-articles-carousel__card { box-shadow: 0 10px 28px rgba(0,0,0,.10); }
.hp-latest-articles-carousel--shadow-strong .hp-latest-articles-carousel__card { box-shadow: 0 16px 38px rgba(0,0,0,.16); }
@media (max-width: 991px) {
  .hp-latest-articles-carousel { padding: 0 max(24px, calc(var(--hp-outer-padding) - 8px)) 28px; }
}
@media (max-width: 767px) {
  .hp-latest-articles-carousel { padding: 0 var(--hp-outer-padding-mobile) 24px; }
  .hp-latest-articles-carousel__media { height: var(--hp-image-height-mobile); }
  .hp-latest-articles-carousel__image { object-fit: var(--hp-image-fit-mobile); background: #111; }
  .hp-latest-articles-carousel__overlay { opacity: var(--hp-overlay-opacity-mobile); }
  .hp-latest-articles-carousel__nav { width: 36px; height: 36px; font-size: 16px; }
  .hp-latest-articles-carousel__title { font-size: var(--hp-title-size-mobile); line-height: 1.35; padding: 6px 8px; }
  .hp-latest-articles-carousel__content { left: 10px; right: 10px; }
  .hp-latest-articles-carousel__category { font-size: var(--hp-badge-size-mobile); padding: 4px 8px; }
  .hp-latest-articles-carousel__intro { font-size: var(--hp-intro-size-mobile); padding: 7px 8px; }
}
