/* ================================================================
   Ahnira – Image Carousel Widget  |  ahnic.css
   ================================================================ */

/* ── Wrapper ────────────────────────────────────────────────────── */
.ahnic-carousel-wrap {
  position: relative;
  width: 100%;
}

/* ── Swiper core overrides ──────────────────────────────────────── */
.ahnic-swiper {
  width: 100%;
  overflow: hidden;
}

/* ── Slide card ─────────────────────────────────────────────────── */
.ahnic-slide {
  height: auto;         /* let each card define its own height */
}

.ahnic-slide-card {
  display: flex;
  flex-direction: column;
  /* border-radius: 12px; */
  overflow: hidden;
  /* box-shadow: 0 4px 20px rgba(0,0,0,0.08); */
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ahnic-carousel-wrap:not(.ahnic-hover-scale) .ahnic-slide-card:hover {
  /* box-shadow: 0 8px 32px rgba(0,0,0,0.14); */
}

/* ── Image wrap + image ─────────────────────────────────────────── */
.ahnic-slide-img-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.ahnic-slide-img-wrap a {
  display: block;
  line-height: 0;
}

.ahnic-slide-img {
  display: block;
  width: 100%;
  height: 420px;        /* overridden by Elementor slider control */
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 12px 12px 0 0;  /* overridden by Elementor dimensions control */
}

/* Scale on hover */
.ahnic-hover-scale .ahnic-slide-card:hover .ahnic-slide-img {
  transform: scale(1.06);
}

/* ── Overlay ────────────────────────────────────────────────────── */
.ahnic-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.ahnic-slide-card:hover .ahnic-slide-overlay {
  opacity: 1;
}

/* ── Caption ────────────────────────────────────────────────────── */
.ahnic-caption {
  background: #ffffff;
  padding: 14px 16px;
  border-radius: 0 0 12px 12px;
  transition: background 0.3s ease;
}

.ahnic-caption-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.ahnic-caption-link:hover .ahnic-caption-text {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ahnic-caption-text {
  font-size: 0.9375rem;    /* 15px */
  font-weight: 500;
  line-height: 1.45;
  color: #1a1a1a;
  transition: color 0.2s ease;
}

.ahnic-caption-arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ahnic-caption-link:hover .ahnic-caption-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Custom Arrow Buttons ───────────────────────────────────────── */
.ahnic-btn-prev,
.ahnic-btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.14);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0;
}

.ahnic-btn-prev { left: -22px; }
.ahnic-btn-next { right: -22px; }

.ahnic-btn-prev:hover,
.ahnic-btn-next:hover {
  background: rgba(255,255,255,1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transform: translateY(-50%) scale(1.08);
}

.ahnic-btn-prev svg,
.ahnic-btn-next svg {
  width: 20px;
  height: 20px;
  stroke: #65378b;
  display: block;
}

/* Disabled state (no loop) */
.ahnic-btn-prev.swiper-button-disabled,
.ahnic-btn-next.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
  transform: translateY(-50%) scale(1);
}

/* ── Pagination Dots ────────────────────────────────────────────── */
.ahnic-pagination {
  position: relative !important;
  margin-top: 18px;
  text-align: center;
  line-height: 1;
}

.ahnic-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cccccc;
  opacity: 1;
  margin: 0 4px;
  transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
  display: inline-block;
}

.ahnic-pagination .swiper-pagination-bullet-active {
  background: #65378b;
  width: 24px;
  border-radius: 4px;
}

/* ── Scrollbar ──────────────────────────────────────────────────── */
.ahnic-scrollbar {
  position: relative !important;
  margin-top: 14px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0,0,0,0.08);
}

.ahnic-scrollbar .swiper-scrollbar-drag {
  background: #65378b;
  border-radius: 2px;
}

/* ── Coverflow shadow tweak ──────────────────────────────────────── */
.ahnic-swiper .swiper-slide-shadow-left,
.ahnic-swiper .swiper-slide-shadow-right {
  border-radius: 12px;
}

/* ── Responsive — tighten arrows on small screens ───────────────── */
@media (max-width: 768px) {
  .ahnic-btn-prev { left: -12px; }
  .ahnic-btn-next { right: -12px; }

  .ahnic-btn-prev,
  .ahnic-btn-next {
    width: 36px;
    height: 36px;
  }

  .ahnic-btn-prev svg,
  .ahnic-btn-next svg {
    width: 16px;
    height: 16px;
  }
}
