.custom-carousel {
  position: relative;
}

.custom-carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.custom-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.custom-carousel-item.active {
  position: relative;
  opacity: 1;
}

.custom-carousel img {
  object-fit: cover;
  width: 100%;
  height: 500px;
}

.custom-carousel-caption {
  position: absolute;
  left: 20px;
  bottom: 50%;
  transform: translateY(50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  /* border-radius: 10px; */
}

.custom-carousel-control-prev,
.custom-carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 5;
  cursor: pointer;
}

.custom-carousel:hover .custom-carousel-control-prev,
.custom-carousel:hover .custom-carousel-control-next {
  opacity: 1;
}

.custom-carousel-control-prev {
  left: 10px;
}

.custom-carousel-control-next {
  right: 10px;
}

.custom-bt {
  border-top: 1px solid #3a7d98;
}
.hero h5 {
  line-height: 1.5;
  font-weight: 700;
  font-size: 24px;
}

.quote .icon-container {
  border: 2px solid #f7f7f7; /* Light border around the icon */
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.about-us h2,
.service .context h2 {
  font-weight: 900;
  position: relative;
}
.service .context h2::after {
  content: "";
  width: 10%;
  height: 2px;
  background-color: #3a7d98;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.about-us p,
.service .context p {
  font-weight: 100;
  color: #444;
}

/* card */
.service-card {
  background-color: #fff;
  cursor: pointer;
}
.service-card:hover {
  animation: zoom-hover 1s ease forwards;
}
@keyframes zoom-hover {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.02);
  }
}
.service-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.service-title {
  font-weight: bold;
  margin-top: 20px;
}

.divider {
  width: 50px;
  height: 2px;
  background-color: #3a7d98;
  margin: 15px auto;
}

.service-description {
  color: #6c757d;
  padding: 20px;
  flex-grow: 1;
}
.service-btn {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.service-btn .btn {
  background-color: #3a7d98;
  color: #fff;
  border-radius: 30px;
  font-size: 16px;
}
.service-btn .btn:hover {
  animation: service-btn 1s ease forwards;
}
@keyframes service-btn {
  0% {
    scale: 1;
  }
  100% {
    scale: 1.05;
    background-color: #3a7d98;
  }
}

.about-image {
  width: 85%;
  border-radius: 60%;
}
.icon-circle {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3a7d98;
  border-radius: 50%;
  color: #3a7d98;
  font-size: 24px;
  margin-bottom: 10px;
  padding: 20px;
}
.feature-text {
  font-size: 24px;
  font-weight: bolder;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}
.feature-text::after {
  content: "";
  width: 100%;
  height: 2px;
  background-color: #3a7d98;
  position: absolute;
  left: 0%;
  bottom: 0;
}
.feature-description {
  font-style: italic;
  color: #6c757d;
  font-size: 14px;
}

/* tab */
.tab {
  background-color: #f7f7f7;
  width: 100%;
}
.tab ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0 50px 0;
}
.tab a {
  position: relative;
  font-size: 24px;
  width: 200px;
  height: 150px;
  background-color: #fff;
  border-radius: 0;
  position: relative;
}
.tab a:hover {
  background-color: #3a7d98;
}
.tab a:hover .tab-p,
.tab a:hover i {
  color: #fff;
}

.tab i {
  padding: 30px 0 0 0;
  color: #3a7d98;
  font-size: 34px;
}
.tab-p {
  font-size: 16px;
}
.active-tab {
  background-color: #3a7d98 !important;
  color: #fff !important;
}
.active-tab i {
  color: #fff;
}
.tab-content {
  text-align: center;
}
.tab-content .box-header {
  font-size: 28px;
  padding-bottom: 30px;
  display: inline-block;
  position: relative;
}
.tab-content .box-header::after {
  content: "";
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background-color: #3a7d98;
}
.tab-content p {
  padding: 20px 50px;
  color: #555;
}
/* tab end */

/* choose */
.choose-header h2 {
  display: inline-block;
  font-size: 26px;
  position: relative;
}

.choose-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 2px;
  background-color: #3a7d98;
}

.choose-header p {
  font-size: 16px;
  color: #6c757d;
}

.choose-content .icon {
  font-size: 42px;
  color: #3a7d98;
  width: 125px;
  height: 125px;
  border: #f0f0f0 1px solid;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 50%;
  transform: translateX(-50%);
}

.choose-content h4 {
  font-size: 20px;
  margin-top: 40px;
  padding-bottom: 20px;
  position: relative;
}

.choose-content h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 2px;
  background-color: #3a7d98;
}

.choose-content p {
  font-size: 14px;
  color: #6c757d;
  padding-top: 10px;
}

/* testinomial */
.carousel-end {
  position: relative;
  height: 600px;
  z-index: 1;
  padding: 40px 0;
  overflow: hidden; /* To avoid content spilling out during scroll */
}

.carousel-end::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../01/image-08.jpg");
  background-attachment: fixed; /* This enables parallax effect */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: brightness(50%); /* Reduces brightness of the background */
  z-index: -1;
}
.carousel-end p {
  font-style: italic;
}

.owl-carousel {
  color: #fff;
  width: 80%; /* Adjust as needed */
}
.nav-btn {
  background-color: transparent;
  border: 1px solid #f9f9f9;
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.nav-btn:hover,
.nav-btn:active {
  background-color: transparent !important;
  border: 1px solid #f9f9f9 !important;
  color: white !important;
}

.left-nav {
  position: absolute;
  left: 50px;
  transform: translateY(-50%);
}

.right-nav {
  position: absolute;
  right: 50px;
  transform: translateY(-50%);
}
.testimonial {
  text-align: center;
  padding-top: 50px;
}
.testimonial i {
  font-size: 52px;
  margin-bottom: 20px;
}
.testimonial h3 {
  font-size: 24px;
}
.testimonial p {
  font-size: 16px;
  margin-top: 10px;
  font-weight: 100;
}
.testimonial .author {
  font-weight: bold;
  margin-top: 30px;
}
.btn-main {
  background-color: #3a7d98;
  color: #fff;
}
.btn-main:hover {
  background-color: #3a7d98;
  color: #fff;
}
.text-main {
  color: #3a7d98;
}

.form {
  background-color: #fff;
}
.quote-container {
  display: flex;
  gap: 20px;
}

.quote-fixed {
  position: sticky;
  top: 20px;
  flex: 1;
  padding: 20px;
  height: fit-content;
}
.quote-fixed h3 {
  padding: 10px 0 30px 0;
  position: relative;
  display: inline-block;
}
.quote-fixed p {
  color: #6c757d;
  font-size: 14px;
  margin-top: 10px;
}
.quote-fixed h3::after {
  content: "";
  width: 60%;
  height: 2px;
  position: absolute;
  bottom: 10px;
  left: 0;
  background-color: #3a7d98;
}
.quote-form {
  flex: 2;
  padding: 20px;
  border-radius: 5px;
}
.quote-form label {
  position: relative;
  padding-bottom: 15px;
  display: inline-block;
}
.quote-form label::after {
  content: "";
  width: 40%;
  height: 2px;
  position: absolute;
  bottom: 5px;
  left: 0;
  background-color: #3a7d98;
}
.quote-form .input-group-text {
  background-color: #3a7d98;
  color: #fff;
}
input[type="text"],
input[type="email"],
input[type="tel"],
label {
  color: #000;
}
input,
.input-group-text ,textarea{
  border-radius: 0 !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  box-shadow: none !important;
  border: #3a7d98 solid 1px;
}

@media (max-width: 996px) {
  .hero h5 {
    font-size: 20px !important;
  }
  .hero p {
    font-size: 12px !important;
  }
  .quote h4 {
    font-size: 20px !important;
    margin-top: 10px;
  }
  .quote p {
    font-size: 12px;
    margin-top: 10px;
    padding-bottom: 20px;
  }
  .btn-main {
    font-size: 16px;
  }
  .service .mx-5 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .about-us .align-items-start {
    margin-top: 40px;
  }
  .about-us .feature-text {
    font-size: 18px;
  }
  .about-us .feature-description {
    font-size: 12px;
  }
  .tab p,
  .choose p {
    font-size: 14px;
  }
  .tab h4 {
    font-size: 18px;
    font-weight: 100;
  }
  .tab i {
    font-size: 20px;
  }
  .tab a {
    width: 150px;
    height: 150px;
  }
  .choose h2 {
    font-size: 22px;
  }
  .carousel-end {
    height: 750px;
  }
  .carousel-end h3 {
    font-size: 20px;
    font-weight: 500;
  }
  .carousel-end p {
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .tab ul {
    display: block;
  }
  .tab li {
    margin-bottom: 10px;
  }
  .nav-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .quote-container {
    display: block;
  }
  .quote-fixed {
    position: static;
  }
}
