.campus-slider-section {
  padding: 60px 20px;
  position: relative;
  margin: 40px;
  width: 100%;
  box-sizing: border-box;
}
.floating-search-content form {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
.campus-slider-section div, h2, p {
  font-family: "Poppins", sans-serif;
}

.swiper.mySwiper {
  overflow: visible;
  position: relative;
  width: 100%;
}

.swiper-wrapper {
  align-items: stretch;
}

.swiper-slide {
  width: auto;
  height: auto;
}

/* Text Slide */
.campus-text-slide {
  display: flex;
  align-items: center; /* ⬅️ Centre vertically */
  justify-content: flex-start;
  padding-right: 20px;
  max-width: 320px;
  height: 100%; /* ⬅️ Important for alignment */
}

.campus-intro {
  max-width: 100%;
  margin-top: 8em;
}

.campus-intro h2 {
  font-size: 36px;
  font-weight: 700;
  color: #001c2e;
  line-height: 1.2;
  margin-bottom: 20px;
}

.campus-intro p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

/* Mobile Text Section - Hidden on Desktop */
.mobile-text-section {
  display: none;
}

/* Campus Card Slide */
.campus-card {
  border-radius: 16px;
  overflow: hidden;
  background-color: #fff;
  max-width: 320px;
  min-height: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.campus-card img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  flex-grow: 1;
}

.campus-label {
  background: #ff0080;
  color: #fff;
  font-weight: 700;
  padding: 16px;
  text-align: left;
  font-size: 25px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.floating-search-wrapper {
  position: absolute; /* Change from 'fixed' to 'absolute' so it only stays within this section */
  top: 20px; /* You can adjust the distance from the top of the section */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  z-index: 999; /* Make sure it's below the navbar (which should have z-index: 1000+) */
}

.floating-search-content {
  background: white;
  border-radius: 50px;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  padding: 10px 20px;
}

.floating-search-content input[type="text"] {
  border: none;
  outline: none;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  flex-grow: 1;
  padding: 10px;
  background: transparent;
  color: #001c2e;
}

.floating-search-content .search-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Pagination */
.swiper-pagination-journey {
  text-align: center;
  margin-top: 50px;
}

.swiper-pagination-bullet {
  width: 15px !important;
  height: 15px !important;
  border: 2px solid #173cad !important;
  background-color: transparent;
  opacity: 1;
  margin: 0 12px !important;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: #173cad !important;
}

/* Arrows */
.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  background: #173cad;
  border-radius: 50%; !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border: none !important; 
  box-sizing: border-box;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: none !important;
  z-index: 10;
  display: flex; !important;
  justify-content: center; !important;
  align-items: center;
  line-height: 1 !important;
  background-image: none !important;
  text-rendering: auto;
}

/* Ensure the icon inside is also centered and doesn't push the edges */
.swiper-button-next i,
.swiper-button-prev i {
  color: #fff;
  font-size: 18px;
  line-height: 1;
  margin: 0;
  display: block;
}

.swiper-button-next {
  right: -10px;
  right: var(--swiper-navigation-sides-offset, 50px) !important;
}

.swiper-button-prev {
  left: 10px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  display: none; !important;
  content: ""
}

/* Responsive */
@media (max-width: 768px) {
  .floating-search-wrapper {
    margin-top: 25px !important;
  }
  
  .journey-description {
    margin-top: 30px !important;
  }
  
  .swiper-mobile {
    margin-top: -10px !important;
  }

  /* Hide desktop text slide on mobile */
  .campus-text-slide {
    display: none !important;
  }

  /* Show mobile text section */
  .mobile-text-section {
    display: block;
    margin-top: 70px;
    margin-bottom: 30px;
    padding: 0 20px;
  }

  .mobile-text-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #001c2e;
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .mobile-text-section .journey-description span {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
  }
 
  .campus-text-slide {
    max-width: 100%;
    padding-right: 0;
  }

  .campus-intro h2 {
    font-size: 44px;
    font-weight: 700;
  }
  
  .campus-intro p {
    font-size: 30px;
  }

  .campus-card {
    min-height: 360px;
  }

  .campus-label {
    font-size: 18px;
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .campus-slider-section {
    margin: 0px;
  }
  .swiper.journeySwiper {
    padding: 0 20px; /* Tambah padding agar panah tidak terlalu pinggir */
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
  }

  .swiper-button-next {
    right: 5px;
  }

  .swiper-button-prev {
    left: 5px;
  }

  .swiper-pagination-journey {
    margin-top: 30px;
  }

  .campus-intro h2 {
    font-size: 24px;
  }

  .campus-label {
    font-size: 16px;
  }

  .campus-card {
    min-height: 320px;
  }
}