/* =============================================
   AWD Fencing Slider — Base Styles
   ============================================ */
.awd-fencing-slider-block { width: 100%; margin: 0 auto; position: relative; overflow: visible; }
.awd-fencing-slider-block .awd-fencing-slider.slick-slider { max-width: 2100px; width: 100% !important; margin: 0 auto; padding: 0 20px; }

/* Slick track flex alignment */
.awd-fencing-slider .slick-list { overflow: hidden; }
.awd-fencing-slider .slick-track { display: flex; align-items: stretch; }

/* Card (slide) */
figure.awd-fencing-card.slick-slide { box-sizing: border-box; margin: 0 10px; width: auto !important; max-width: 690px; height: auto !important; border-radius: 12px; overflow: hidden; background: #eee; position: relative; }

/* Media & images */
.awd-fencing-media { display: block; width: 100%; height: 100%; }
.awd-fencing-img { display: block; width: 100%; height: 340px; object-fit: cover; transition: transform 0.6s ease; }
.awd-fencing-card:hover .awd-fencing-img { transform: scale(1.05); }

/* Caption */
.awd-fencing-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 27px 25px; background: rgba(43, 86, 43, 0); transition: background 0.4s ease-in-out; z-index: 1; }
.awd-fencing-card:hover .awd-fencing-caption { background: rgba(43, 86, 43, 0.95); }
.awd-fencing-caption a { font-family: 'Adamina', sans-serif; color: #fff; font-size: 32px; line-height: 1.25; text-decoration: none; display: block; }

/* Gradient Overlay */
.awd-fencing-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 100%; width: 100%; z-index: 0; pointer-events: none; background: linear-gradient(200deg, rgba(0, 0, 0, 0) 5%, rgba(0, 0, 0, 0.35) 66%, rgba(0, 0, 0, 0.75) 100%); border-radius: 0 0 12px 12px; }

/* Navigation buttons */
.awd-fencing-header { display: flex; justify-content: flex-end; max-width: 1364px; padding: 0 20px; margin: -65px auto 40px; }
.awd-fencing-nav { display: flex; gap: 1.5rem; }
.awd-fencing-nav .awd-fencing-prev, .awd-fencing-nav .awd-fencing-next { all: unset; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; line-height: 0; background: transparent; transition: opacity 0.3s ease; }
.awd-fencing-nav .awd-fencing-prev:hover, .awd-fencing-nav .awd-fencing-next:hover { opacity: 0.8; }

/* =============================================
   Large Desktop (≤1440px)
   ============================================ */
@media (max-width:1440px) {
  .awd-fencing-slider-block .awd-fencing-slider.slick-slider { max-width: 1400px; }
  .awd-fencing-header { max-width: 1400px; }
}

/* =============================================
   Tablet Landscape (≤1200px)
   ============================================ */
@media (max-width:1200px) {
  .awd-fencing-slider-block .awd-fencing-slider.slick-slider { max-width: 100%; padding: 0; }
  .awd-fencing-header { max-width: 100%; }
  .wp-block-uagb-container.fence-slider-container { padding-right: 10px; }
  .awd-fencing-caption a { font-size: 26px; }
}

/* =============================================
   Tablet Portrait + Large Phones (≤1024px)
   ============================================ */
@media (max-width:1024px) {
  figure.awd-fencing-card.slick-slide { width: calc((100% - 40px) / 2) !important; margin: 0 10px; }
  .awd-fencing-img { height: 350px; }
  .wp-block-uagb-container.fence-slider-container { padding-right: 0; }
  .awd-fencing-header { margin: 0 auto 40px; justify-content: center; }
  .awd-fencing-slider-block { display: flex; flex-direction: column-reverse; gap: 30px; }
}

/* =============================================
   Mobile Phones (≤640px)
   ============================================ */
@media (max-width:640px) {
  figure.awd-fencing-card.slick-slide { width: calc(100% - 20px) !important; margin: 0 10px; }
  .awd-fencing-img { height: 300px; }
  .awd-fencing-caption a { font-size: 24px; }
}
