/* --- Styling for the Banner Component --- */

/* The main Swiper container */
 #wf-banner .banner-swiper {
  width: 100%;
  max-height: 450px; /* Adjust height as needed */
  /* border-radius: 8px; */
  /* box-shadow: 0 5px 20px rgba(0,0,0,0.15); */
  aspect-ratio: 1920 / 800;
}

 #wf-banner .swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  /* Slide content is the link, which we'll style to fill the space */
  display: flex;
  justify-content: center;
  align-items: center;
  background: url(../img/banner_bg.jpg) center top repeat-x;
  position: relative;
  z-index: 1;
}

/* Style the <a> tag to act as the banner background */
 #wf-banner .swiper-slide .bnr_img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 1920px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hide the placeholder image, as the background is on the <a> tag */
 #wf-banner .swiper-slide .bnr_img img {
  display: none;
}

/*
* --- IMPORTANT: Your Banner Image CSS ---
* Replace these placeholder backgrounds with your actual banner images.
* This uses the ID generated by your PHP loop.
*/

.sc_format #wf-banner #bnr_1 { background-image: url('../sc/images/home_banner/banner_1.jpg?r=1'); }
.sc_format #wf-banner #bnr_2 { background-image: url('../sc/images/home_banner/banner_2.jpg?r=1'); }
.sc_format #wf-banner #bnr_3 { background-image: url('../sc/images/home_banner/banner_3.jpg?r=1'); }
.sc_format #wf-banner #bnr_4 { background-image: url('../sc/images/home_banner/banner_4.jpg?r=1'); }

.en_format #wf-banner #bnr_1 { background-image: url('../en/images/home_banner/banner_1.jpg'); }
.en_format #wf-banner #bnr_2 { background-image: url('../en/images/home_banner/banner_2.jpg'); }
.en_format #wf-banner #bnr_3 { background-image: url('../en/images/home_banner/banner_3.jpg'); }
.en_format #wf-banner #bnr_4 { background-image: url('../en/images/home_banner/banner_4.jpg'); }

.tc_format #wf-banner #bnr_1 {
  background-image: url(../tc/images/home_banner/banner_1.jpg);
}

.tc_format #wf-banner #bnr_2 {
  background-image: url(../tc/images/home_banner/banner_2.jpg);
}

.tc_format #wf-banner #bnr_3 {
  background-image: url(../tc/images/home_banner/banner_3.jpg);
}

.tc_format #wf-banner #bnr_4 {
  background-image: url(../tc/images/home_banner/banner_4.jpg);
}


/* --- Swiper Arrow and Dot Customization --- */
/* You can place these :root variables in your main CSS file as well */
:root {
  --swiper-navigation-color: #bcbcbc;
  --swiper-pagination-color: #ffffff;
  --swiper-navigation-size: 30px;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #ffffff;
}

@media (hover: hover) {
  /* 1. By default, hide only the arrows */
  .banner-swiper .swiper-button-prev,
  .banner-swiper .swiper-button-next {
      opacity: 0;
      transition: opacity 0.3s ease-in-out; /* 2. Add a smooth fade transition */
  }

  /* 3. When hovering over the slider, make the arrows visible */
  .banner-swiper:hover .swiper-button-prev,
  .banner-swiper:hover .swiper-button-next {
      opacity: 1;
  }
}
