/**
 * Actualités Slider Widget - Styles
 */

/* Container */
.asw-container {
  width: 100%;
  padding: 60px 20px;
  background-color: #f5f5f5;
}

/* Header */
.asw-header {
  text-align: center;
  margin-bottom: 50px;
}

.asw-header-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a4e;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.asw-header-subtitle {
  font-size: 16px;
  color: #666666;
  margin: 0;
  font-weight: 400;
}

/* Slider Wrapper */
.asw-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.asw-slider {
  width: 100%;
  overflow: hidden;
}

/* Navigation */
.asw-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 0 !important;
  color: #ffffff;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.asw-nav-btn:hover {
  background-color: #9a1750;
}

.asw-nav-btn.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.asw-nav-prev {
  left: 0;
}

.asw-nav-next {
  right: 0;
}

/* Cards */
.asw-card {
  text-align: center;
  padding: 0 !important;
  height: 100%;
  display: flex;
  flex-direction: column;

}

.asw-card-image {
  margin-bottom: 0 !important;
  overflow: hidden;
  border-radius: 8px;
}

.asw-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 0;
}

.asw-card:hover .asw-card-image img {
  transform: scale(1.05);
}

.asw-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color:#1a89bd !important ;
}

.asw-card-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 0 12px 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asw-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.asw-card-title a:hover {
  color: #b91c5c;
}

.asw-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin: 0 0 10px 0;
  flex: 1;
}

.asw-card-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: transparent;
  color: #1a1a4e;
  text-decoration: none;
  border: 2px solid #1a1a4e;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: center;
  margin-top: auto;
}

.asw-card-button:hover {
  background-color: #1a1a4e;
  color: #ffffff;
}

/* Swiper Grid */
.asw-slider .swiper-wrapper {
  /* Le grid est géré par Swiper avec l'option grid */
}

.asw-slider .swiper-slide {
  height: auto !important;
  box-sizing: border-box;
}

/* Responsive */
@media (max-width: 1200px) {
  .asw-slider-wrapper {
    padding: 0 50px;
  }
}

@media (max-width: 992px) {
  .asw-container {
    padding: 40px 15px;
  }

  .asw-header {
    margin-bottom: 35px;
  }

  .asw-header-title {
    font-size: 26px;
  }

  .asw-slider-wrapper {
    padding: 0 45px;
  }

  .asw-nav-btn {
    width: 40px;
    height: 40px;
  }

  .asw-card-image img {
    height: 160px;
  }

  .asw-card-title {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .asw-slider-wrapper {
    padding: 0 40px;
  }

  .asw-card-image img {
    height: 150px;
  }

  .asw-card-title {
    font-size: 14px;
  }

  .asw-card-excerpt {
    font-size: 13px;
  }

  .asw-card-button {
    padding: 8px 20px;
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .asw-container {
    padding: 30px 10px;
  }

  .asw-header-title {
    font-size: 22px;
  }

  .asw-header-subtitle {
    font-size: 14px;
  }

  .asw-slider-wrapper {
    padding: 0 35px;
  }

  .asw-nav-btn {
    width: 35px;
    height: 35px;
  }

  .asw-nav-btn svg {
    width: 10px;
    height: 16px;
  }

  .asw-card {
    padding: 5px;
  }

  .asw-card-image img {
    height: 140px;
  }

  .asw-card-content {
    padding: 0 5px;
  }
}