/* General styling for both bgimg1 and bgimg2 */
.bgimg1, .bgimg2 {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
}

.bgimg1 {
  height: 665px; /* Ensure correct height */
  opacity: 1; /* Initially hidden */
  transform: scale(0.9); /* Initially scaled down */
  transition: opacity 1s ease-out, transform 1s ease-out; /* Smooth transition */
  overflow-x: hidden;
  background-image: url("../img/pic/services/web/bgimg1.webp"); /* Set the image for bgimg1 */
}

/* bgimg1 will become visible and scale up when it enters the viewport */
.bgimg1.visible {
  opacity: 1; /* Fully visible */
  transform: scale(1); /* Full scale */
}

.bgimg2 {
  height: 800px; /* Default height for larger screens */
  background-image: url("../img/pic/services/web/bgimg2.webp"); /* Set the image for bgimg2 */
  background-color: rgba(255, 0, 0, 0.2); /* Temporary color to confirm it's loaded */
}

/* Ensuring the rest of your content is styled appropriately */
.mgT {
  margin-top: 3%;
}

.tc {
  text-align: center;
}

.fntW {
  font-weight: 600;
  font-size: 23px;
}

.text-dark {
  color: #333;
}

/* Media queries for responsiveness */

/* 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 */
/* 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; /* Add left border */
  padding-left: 15px; /* Padding to space the content from the border */
}

/* 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; /* Add left border */
  padding-left: 15px; /* Padding to space the content from the border */
}

/* Styling for the image container */
.wb-image-container {
  /* border: 10px solid #1e4f9c; Blue border */
  padding: 5px;
  text-align: center; /* Center the image */
}

/* Ensure images fit inside the column */
.wb-image {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  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; /* Add some space between the columns for smaller screens */
      border-left: none; /* Remove the left border for small screens */
      padding-left: 0;
  }
}


