/* .bgimg1,
.bgimg2 {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
} */

/* .bgimg1 {
  height: 755px; 

  transform: scale(0.9); 
  transition: opacity 1s ease-out, transform 1s ease-out;
  overflow-x: hidden;
  background-image: url("../img/pic/home/1.webp");
} */

/* .bgimg1.visible {
  opacity: 1; 
  transform: scale(1); 
} */
/* CSS */

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

.slide {
    width: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    display: block;
}

/* Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    padding: 10px 14px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }


/* ========================================================================================= */

.bgimg2 {
  height: 700px;
  background-image: url("../img/pic/home/2.webp");
  /* background-color: rgba(255, 0, 0, 0.2); Temporary color to confirm it's loaded */
}

.mgT {
  margin-top: 3%;
}

.tc {
  text-align: center;
}

.fntW {
  font-weight: 600;
  font-size: 30px;
}

.text-dark {
  color: #333;
}

/* Media queries for responsiveness */
/* Background Image Styling */
.bgimg1,
.bgimg2 {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
}

.bgimg1 {
  height: 77vh;
  /* background-image: url("../img/pic/home/1a.jpg"); */
  opacity: 1;
  /* Ensure it's visible */
  transform: scale(1);
  /* Remove the scale transformation for now */
  transition: opacity 1s ease-out, transform 1s ease-out;
  /* Keep smooth transition */
  overflow-x: hidden;
}

.bgimg2 {
  height: 700px;
  background-image: url("../img/pic/home/2.webp");
}

/* Tablet and smaller screens (smaller than 1024px) */
@media (max-width: 1024px) {

  .bgimg1,
  .bgimg2 {
    height: 500px;
    /* Reduce height for smaller screens */
  }

  .fntW {
    font-size: 24px;
    /* Adjust font size for smaller screens */
  }

  .mgT {
    margin-top: 2%;
  }
}

/* Mobile screens (smaller than 768px) */
@media (max-width: 768px) {

  .bgimg1,
  .bgimg2 {
    height: 222px;
    /* Reduce height even more for mobile screens */
  }

  .fntW {
    font-size: 20px;
    /* Adjust font size further for mobile screens */
  }

  .mgT {
    margin-top: 1%;
  }

  /* Make text-center elements more responsive */
  .tc {
    font-size: 16px;
  }
}

/* Mobile screens (smaller than 480px) */
@media (max-width: 480px) {

  .bgimg1,
  .bgimg2 {
    height: 160px;
    /* Further reduce height on very small screens */
  }

  .fntW {
    font-size: 18px;
    /* Even smaller font size for tiny screens */
  }

  .mgT {
    margin-top: 1%;
  }
}

/* ****************2 div in a row *********** */

/* General styling for the row and columns */
.wb-row {
  display: flex;
  justify-content: space-between;
}

/* Column taking 8 parts of the row */
.wb-col-8 {
  width: 66.6667%;
  /* 8 out of 12 grid system (8/12 = 66.67%) */
  border-left: 4px solid #dfe7f4;
  padding-left: 15px;
}

/* Column taking 4 parts of the row */
.wb-col-4 {
  width: 33.3333%;
  /* 4 out of 12 grid system (4/12 = 33.33%) */
  border-left: 4px solid #dfe7f4;
  padding-left: 15px;
}

.wb-image-container {
  padding: 5px;
  text-align: center;
}

.wb-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Heading styling */
.wb-heading {
  text-align: center;
  font-size: 26px;
  margin-bottom: 10px;
  color: #014c8f;
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {

  .wb-col-8,
  .wb-col-4 {
    width: 100%;
    margin-bottom: 20px;
    border-left: none;
    padding-left: 0;
  }
}

.fnB {
  font-weight: 600;
}