/* ---- slider wrapper ---- */
.slider-wrapper {
  max-width: 100%;
  position: relative;
}

.swiper {
  width: 100%;
  overflow: hidden;
}

.swiper-slide {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 800px;
  background: #fafaf7;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.swiper-slide-active {
  opacity: 1;
}

/* ---- left content ---- */
.slide-content {
  flex: 1 1 55%;
  padding: 3rem 3rem 3rem 10rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-badge {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #2c6570;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Source Sans 3", sans-serif;
}

.slide-badge i {
  font-size: 0.8rem;
  color: #c8893d;
}

.slide-title {
  font-size: 75px;
  font-weight: 700;
  color: #1a2e38;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  font-family: "Playfair Display", serif;
}

.slide-title span {
  color: #c8893d;
}

.slide-desc {
  font-size: 22px;
  color: #2b4a57;
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 400;
  font-family: "Source Sans 3", sans-serif;
}

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.slide-actions a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: 0.2s;
  border-radius: 40px;
  padding: 0.3rem 0;
}

.btn-primary {
  color: #ffffff;
  background: #c8893d;
  padding: 1.3rem 2.5rem !important;
  border-radius: 10px !important;
  font-family: "Source Sans 3", sans-serif;
}
.btn-primary:hover {
  background: rgb(178, 116, 43);
}

.btn-outline {
  color: #1f3e4a;
  border: 1px solid #d0dce238;
  padding: 1.3rem 2.5rem !important;
  border-radius: 10px !important;
  background: #fff;
  font-family: "Source Sans 3", sans-serif;
}
.btn-outline:hover {
  background: rgb(245, 246, 247);
}
.btn-outline:hover i {
  transform: translateX(4px);
}

/* ---- right image ---- */
.slide-image {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  background: linear-gradient(
    to right,
    rgba(250, 250, 247, 1) 0%,
    rgba(250, 250, 247, 0.95) 5%,
    rgba(250, 250, 247, 0.75) 6%,
    rgba(250, 250, 247, 0.35) 12%,
    rgba(250, 250, 247, 0) 40%
  );
}

/* ---- swiper controls ---- */
.swiper-pagination {
  bottom: 1.5rem !important;
  left: 10% !important;
  width: 100% !important;
  text-align: left;
  z-index: 20;
}

.swiper-pagination-bullet {
  background: #b8cdd8;
  opacity: 0.7;
  width: 10px;
  height: 10px;
  transition: 0.3s;
  cursor: pointer;
}
.swiper-pagination-bullet-active {
  background: #c8893d;
  opacity: 1;
  width: 28px;
  border-radius: 12px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #2c6570;
  background: rgba(255, 255, 255, 0.9);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: 0.2s;
  cursor: pointer;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #ffffff;
  border-color: #b8ced9;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: 600;
}

/* fade animation for slide content */
.swiper-slide .slide-content,
.swiper-slide .slide-image {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.swiper-slide-active .slide-content,
.swiper-slide-active .slide-image {
  opacity: 1;
  transform: translateY(0);
}

.swiper-slide-active .slide-content {
  transition-delay: 0.2s;
}
.swiper-slide-active .slide-image {
  transition-delay: 0.4s;
}

/* ===== responsive ===== */
@media (max-width: 1024px) {
  .slide-content {
    padding: 2.5rem 2.5rem 2.5rem 4rem;
  }
  .slide-title {
    font-size: 48px;
  }
  .slide-desc {
    font-size: 18px;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .swiper-slide {
    flex-direction: column;
    min-height: auto;
  }
  .slide-content {
    padding: 2rem 2rem 1.8rem 2rem;
    flex: 1 1 auto;
  }
  .slide-image {
    flex: 1 1 220px;
    min-height: 200px;
    width: 100%;
  }
  .slide-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  .slide-title {
    font-size: 2.2rem;
  }
  .slide-desc {
    max-width: 100%;
    font-size: 1rem;
  }
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  .swiper-pagination {
    left: 50% !important;
    transform: translateX(-50%);
    text-align: center !important;
  }
}

@media (max-width: 600px) {
  .slide-content {
    padding: 1.5rem;
  }
  .slide-title {
    font-size: 1.8rem;
  }
  .slide-badge {
    font-size: 0.75rem;
  }
  .slide-desc {
    font-size: 0.95rem;
  }
  .slide-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .btn-primary,
  .btn-outline {
    padding: 0.7rem 1.5rem !important;
    font-size: 0.9rem;
  }
  .slide-image {
    min-height: 160px;
  }
}
