/* Service Section Styling */

.service-container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: 10px;
  margin-left: 10px;
}

.service-img-wrapper {
    width: 100%;
    height: 200px;
    margin: 0 auto 15px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.service-img-wrapper h5 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.2rem;
    font-weight: bold;
    z-index: 2;
    text-align: center;
    text-shadow: -4px -2px 0px rgb(0 0 0);
}

.card-body i,
.service-img-wrapper {
    display: block;
}

.service-img-wrapper h5::before,
.service-img-wrapper h5::after {
    content: '';
    display: block;
    width: 300px;
    height: 2px;
    background-color: white;
    margin: 8px auto;
}

.card {
  height: 100%; 
  min-height: 400px; /* Increase card height */
  border-radius: 12px;
}

.card-body p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

.services-logo {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
    padding-top: 60px;
}

.services-fss-logo {
  width: 100%;
  max-width: 350px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding-top: 60px;
}

.gap-3 {
  gap: 10rem; /* Adds consistent spacing between logos */
}


.service-img {
    width: 100%;
    height: 300px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/*-----------------------------------
    1 - HOME SERVICE
------------------------------------*/
.recent-posts {
    padding: 65px 0 100px;
  }
  
  .recent-posts .btn {
    margin-top: 60px;
  }
  
  .recent-posts .row .col-lg-6:nth-of-type(odd) .post-thumb {
    margin-top: 30px;
  }
  
  .recent-posts .row .col-lg-6:nth-of-type(even) .post-thumb {
    margin-bottom: 30px;
  }
  
  .single-rpost {
    margin: 35px 0 0;
  }
  
  .post-thumb {
    flex: 0 0 273px;
  }
  
  .recent-posts .post-content {
    color: #7d7d7d;
  }
  
  .recent-posts .post-content h3 a {
    color: #4e342e;
    font-weight: 600;
  }
  
  .recent-posts .post-content h3 a:hover {
    color: #8d6e63;
  }
  
  .post-content .post-btn {
    color: #6e6e6e;
    text-align: center;
    font-size: 10px;
    display: inline-block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    border-radius: 50%;
    background-color: whitesmoke;
  }
  
  .post-content .post-btn:hover {
    color: #fff;
    background-color: #4e342e;
  }

  .a-brown{
    color: #000000;
    font-size: 20px;
  }

  .services-section {
    margin-bottom: 80px;
    padding: 40px 20px;
  }

  .modal-dialog {
    max-width: 50%;
}

.modal-img {
  max-width: 100%;  /* Ensures the image is responsive */
  max-height: 400px; /* Sets a max height to prevent overly large images */
  width: auto;       /* Maintains aspect ratio */
  height: auto;      /* Maintains aspect ratio */
  object-fit: cover; /* Ensures the image scales properly */
  border-radius: 10px; /* Adds rounded corners for better design */
}


* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}