/**
 * Eurotest Carousel Widgets – Styles
 */

/* ======================================================================
   Wrapper
   ====================================================================== */
.eurotest-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

/* ======================================================================
   Slide inner
   ====================================================================== */
.eurotest-slide-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.eurotest-slide-html {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.eurotest-slide-html > *:first-child {
  margin-top: 0;
}

.eurotest-slide-html > *:last-child {
  margin-bottom: 0;
}

a.eurotest-slide-inner:hover {
  text-decoration: none;
  color: inherit;
}

a.eurotest-slide-inner:hover .eurotest-slide-link {
  text-decoration: underline;
}

/* ======================================================================
   Image
   ====================================================================== */
.eurotest-slide-image {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.eurotest-slide-image img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

a.eurotest-slide-inner:hover .eurotest-slide-image img {
  transform: scale(1.05);
}

/* ======================================================================
   Content
   ====================================================================== */
.eurotest-slide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.eurotest-slide-title {
  margin: 0;
}

.eurotest-slide-description {
  margin: 8px 0 0;
  flex: 1;
}

.eurotest-slide-excerpt {
  margin: 8px 0 0;
  flex: 1;
}

.eurotest-slide-link {
  margin-top: auto;
  display: inline-block;
}

.eurotest-slide-price {
  margin-top: 8px;
  font-weight: 600;
}

/* ======================================================================
   Badge
   ====================================================================== */
.eurotest-slide-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ======================================================================
   Navigation – Arrows
   ====================================================================== */
.eurotest-swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  user-select: none;
}

.eurotest-swiper-btn:hover {
  background: #fff;
  color: #000;
}

.eurotest-swiper-btn-prev {
  left: 10px;
}

.eurotest-swiper-btn-next {
  right: 10px;
}

.eurotest-swiper-btn.swiper-button-disabled {
  opacity: 0.3;
  cursor: default;
}

/* ======================================================================
   Navigation – Dots
   ====================================================================== */
.eurotest-carousel-wrapper .swiper-pagination {
  position: relative;
  margin-top: 16px;
  bottom: auto;
}

.eurotest-carousel-wrapper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ccc;
  opacity: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.eurotest-carousel-wrapper .swiper-pagination-bullet-active {
  background: #333;
  transform: scale(1.2);
}

/* ======================================================================
   Equal height slides
   ====================================================================== */
.eurotest-carousel-wrapper .swiper-wrapper {
  align-items: stretch;
}

.eurotest-carousel-wrapper .swiper-slide {
  height: auto;
}
