/* ######################################################### header ################################################## */

.guard-card {
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 20px;
  gap: 60px;
  flex-wrap: wrap;
}

.guard-image {
  flex: 1 1 200px;
}

.guard-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}

.guard-content {
  flex: 2 1 300px;
}

.guard-content h1 {
  font-size: 2.6rem;
  font-weight: bold;
  color: #0000c0;
}

.guard-content h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #444;
  margin-top: 10px;
}

.guard-content p {
  color: #666;
  margin: 15px 0px 40px 0px;
  font-size: 20px;
}

.btn-custom {
  background-color: #f0f2ff;
  color: #2f2fef;
  font-weight: 500;
  border-radius: 25px;
  padding: 8px 20px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .guard-card {
    flex-direction: column;
    gap: 30px;
  }

  .guard-content {
    align-items: center;
    justify-content: center;
  }

  .guard-content h1 {
    font-size: 2rem;
    font-weight: bold;
  }

  .guard-content h2 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #444;
    margin-top: 10px;
  }

  .guard-content p {
    color: #666;
    margin: 0px 0px 25px 0px;
    font-size: 18px;
  }


}


/* ######################################################### service ################################################## */


/* services wrapper for relative control */
.services-wrapper {
  position: relative;
}

/* service section with background image */
.service-section {
  background: url('../img/service_home.png') center center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 55px 20px 155px;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* dark overlay */
.carousel-indicators {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0;
  margin-right: 15%;
  /* margin-bottom: -2rem; */
  margin-left: 15%;
  list-style: none;
}

/* Style inactive dots */
.carousel-indicators [data-bs-target] {
  background-color: #bbb;
  /* Change this to your desired default dot color */
  margin: 15px 5px -45px;
}

/* Style active dot */
.carousel-indicators .active {
  background-color: #ff3c3c;
  /* Change this to your desired active color */
}



.service-content {
  position: relative;
  z-index: 1;
  margin-bottom: 85px;
}

.service-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-content p {
    font-size: 18px;
  }

  .service-content h2 {
    font-size: 1.8rem;
  }
}

.cards-overlap {
  position: relative;
  z-index: 2;
  margin-top: -225px;
}

.card-box {
  border-radius: 20px;
  padding: 30px;
  background-color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: 0.3s;
}

.card-box:hover {
  transform: translateY(-5px);
}

.card-box h5 {
  color: #2f2fef;
}


.btn-know-more {
  margin-top: 20px;
}

.section-padding {
  padding: 60px 15px 40px;
}


/* Responsive */
@media (max-width: 768px) {
  .service-section {
    padding: 30px 15px 50px;
    min-height: 40vh;
  }

  .cards-overlap {
    margin-top: -215px;
  }

  .card-box {
    padding: 25px 20px;
  }

  .card-box i {
    font-size: 36px;
  }


}



/* ######################################################### about section ################################################## */


/* about section */

.about-section ul {
  padding-left: 0;
}

.about-section img {
  object-fit: cover;
}

.about-section p,
.about-section ul li,
.about-section a {
  color: #444;
  font-weight: 400;
  font-size: 1.150rem;
}

.about-section h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #444;
}

/* Responsive */
@media (max-width: 768px) {

  .about-section p,
  .about-section ul li,
  .about-section a {
    font-weight: 400;
    font-size: 18px;
  }

  .about-section h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #444;
  }

}


/* ######################################################### client section ################################################## */


/* client section */

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.client-section .carousel-item img {
  height: 380px;
  /* Set to desired height */
  object-fit: cover;
  /* Ensures the image covers the space without distortion */
}

@media (max-width: 768px) {
  .carousel-inner .row {
    flex-direction: column;
  }

  .carousel-inner .col-lg-6 {
    width: 100%;
  }

  .client-section .carousel-item img {
    width: 90% !important;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
    position: relative;
    top: 50px;
    /* This creates the overlap effect */
    z-index: 2;
    height: 250px;
    /* Set to desired height */
    object-fit: cover;
  }

  .client-section .carousel-item .bg-dark {
    padding-top: 60px;
    /* Add space for the overlapped image */
    position: relative;
    z-index: 1;
  }

  .client-section .container.mb-5 {
    margin-bottom: -2rem !important;
    /* You can adjust this value */
  }


}

/* ######################################################### image slider ################################################## */


/* image slider */

.slider-container {
  max-width: 1200px;
  overflow: hidden;
  margin: auto;
  position: relative;
}

.slider {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.slider img {
  height: 250px;
  object-fit: cover;
  /* border-radius: 10px; */
  margin: 0 5px;
}

/* Navigation buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 5px;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments */
@media (min-width: 992px) {
  .slider img {
    width: 24%;
  }
}

/* Show 4 images */

@media (max-width: 991px) and (min-width: 768px) {
  .slider img {
    width: 32%;
  }
}

/* Show 3 images */

@media (max-width: 767px) {
  .slider img {
    width: 48%;
  }
}

/* Show 2 images */

@media (max-width: 575px) {
  .slider img {
    width: 90%;
  }
}


/* ######################################################### contact section ################################################## */


/* contact section */

.contact-section {
  background-image: linear-gradient(to right, rgb(37 37 37) 40%, rgba(18, 18, 18, 0.7) 70%, rgba(18, 18, 18, 0) 100%), url('../img/contact_home.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.contact-content {
  max-width: 600px;
}

.call-text {
  color: #ff3e3e;
  font-weight: bold;
}

@media (max-width: 767px) {
  .contact-section {
    background-image: url('../img/contact_home.png');
    position: relative;
    color: white;
  }

  .contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.55);
    /* 55% black overlay */
    z-index: 0;
  }

  .contact-content {
    position: relative;
    z-index: 1;
    /* padding: 1rem 1rem; */
  }

  .contact-content h2 {
    font-size: 2rem;
  }

  .contact-content p {
    font-size: 18px;
  }
}