.home-slider .carousel-caption {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 1;
  margin: 250px 0;
  opacity: 0;
  text-align: left;
}
.home-slider .carousel-caption h1 {
  font-size: 4.5rem;
  line-height: 5.5rem;
  margin: 0 0 10px;
  font-weight: 700;
  color: #222;
}
.home-slider .carousel-caption h1 i {
  font-style: normal;
  text-transform: uppercase;
  display: block;
  font-weight: 300;
  margin-top: 20px;
}
.home-slider .carousel-caption h3 {
  font-size: 1.6rem;
  line-height: 2.6rem;
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  background: linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0.0088410364) 100%);
  padding: 15px;
}
.home-slider .carousel-caption p {
  font-size: 2rem;
  line-height: 3.2rem;
  letter-spacing: 1px;
  color: #222;
  font-weight: 300;
}
.home-slider .carousel-caption .home-cta {
  margin: 30px 0 0;
}
.home-slider .mob-banner {
  background-size: 0;
}
.home-slider .carousel-item {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: unset;
  background-position: center right;
  display: table;
  animation: animatedBackground 20s linear infinite;
  transition: 0.3s all;
  position: relative;
}
.home-slider .carousel-item::before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 60%;
  height: 100%;
  z-index: -1;
  background: rgb(255, 255, 255);
  background: linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0.0088410364) 10%);
}
.home-slider .carousel-item.active .carousel-caption {
  opacity: 1;
}
.home-slider .carousel-item.active .carousel-caption h1, .home-slider .carousel-item.active .carousel-caption h3, .home-slider .carousel-item.active .carousel-caption p, .home-slider .carousel-item.active .carousel-caption .home-cta a {
  animation-name: fadeInUp;
}
.home-slider .carousel-control-next {
  justify-content: flex-start;
  width: 30px;
  height: 30px;
  margin: auto;
  color: #666e74;
  background-color: #fff;
  border-radius: 50%;
  right: 70px;
  font-size: 2rem;
  line-height: 3rem;
  opacity: 1;
  z-index: 2;
}
.home-slider .carousel-control-prev {
  justify-content: flex-end;
  width: 30px;
  height: 30px;
  margin: auto;
  color: #666e74;
  background-color: #fff;
  border-radius: 50%;
  left: 70px;
  font-size: 2rem;
  line-height: 3rem;
  opacity: 1;
  z-index: 2;
}

@keyframes ring {
  0% {
    transform: rotate(0) scale(1) skew(1deg);
  }
  10% {
    transform: rotate(-25deg) scale(1) skew(1deg);
  }
  20% {
    transform: rotate(25deg) scale(1) skew(1deg);
  }
  30% {
    transform: rotate(-25deg) scale(1) skew(1deg);
  }
  40% {
    transform: rotate(25deg) scale(1) skew(1deg);
  }
  50% {
    transform: rotate(0) scale(1) skew(1deg);
  }
  100% {
    transform: rotate(0) scale(1) skew(1deg);
  }
}
.banner-call .animated-ico {
  position: absolute;
  background-color: #b8050a;
  color: #fff;
  width: 40px;
  height: 40px;
  text-align: center;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9;
}
.banner-call .animated-ico i {
  position: relative;
  z-index: 9;
}
.banner-call .animated-ico::before, .banner-call .animated-ico::after {
  content: "";
  background-color: #b8050a;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  animation-name: ripple;
  animation-iteration-count: infinite;
  animation-duration: 3s;
  border-radius: 50%;
  animation-timing-function: linear;
}
.banner-call .animated-ico::before {
  opacity: 0.4;
  animation-delay: 1s;
}
.banner-call .animated-ico::after {
  opacity: 0.6;
}

.banner-call:hover .animated-ico i {
  animation: ring 1s infinite ease-in-out;
}

.animated-txt {
  padding-left: 60px;
  color: #222;
  font-weight: 400;
}

@keyframes ripple {
  0% {
    opacity: 0.5;
  }
  100% {
    border-radius: 50%;
    opacity: 0;
    transform: scale(2);
  }
}
.flex-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.flex-btn a:nth-child(2n) {
  margin-left: 25px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.custom-wow {
  visibility: hidden;
  opacity: 0;
  transition: 0.3s all ease-in-out;
}
.custom-wow.animated {
  visibility: visible;
  opacity: 1;
}

.custom-wow.animated.fadeInUp {
  animation-name: fadeInUp;
}
.custom-wow.animated.fadeInRight {
  animation-name: fadeInRight;
}
.custom-wow.animated.fadeInLeft {
  animation-name: fadeInLeft;
}
.custom-wow.animated.fadeInDown {
  animation-name: fadeInDown;
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}
.animated.delay-1s {
  animation-delay: 1s;
}
.animated.delay-1-2s {
  animation-delay: 1.2s;
}
.animated.delay-1-3s {
  animation-delay: 1.3s;
}
.animated.delay-1-4s {
  animation-delay: 1.4s;
}
.animated.delay-1-6s {
  animation-delay: 1.6s;
}

.pad-80 {
  padding: 80px 0;
}

.pad-60 {
  padding: 60px 0;
}

/******* About us *************/
.home-about .caption-text {
  font-size: 1.8rem;
  line-height: 2.8rem;
}
.home-about .form-wrap {
  margin: -200px 0 0;
  position: relative;
  z-index: 9;
  background-color: #fff;
  padding: 30px 40px 40px;
  border-radius: 10px;
  box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.1);
}

/******* Service ***********/
.service-bg {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: unset;
  z-index: 1;
}
.service-bg:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(to right, rgba(155, 35, 53, 0.9) 0%, rgba(155, 35, 53, 0.9) 20%, rgba(8, 84, 140, 0.7) 68%, rgb(139, 169, 191) 100%);
}

.service-single {
  color: #fff !important;
  margin: 20px 0 20px;
}
.service-single img {
  border: 2px solid #fff;
  border-radius: 5px;
}
.service-single .service-img {
  position: relative;
  overflow: hidden;
}
.service-single .service-img::before, .service-single .service-img::after {
  content: "";
  background-color: #fff;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -50px;
  z-index: 0;
  animation-name: ripple;
  animation-iteration-count: infinite;
  animation-duration: 5s;
  border-radius: 50%;
  animation-timing-function: linear;
  margin: 0 auto;
  width: 120px;
  height: 120px;
}
.service-single .service-img::before {
  opacity: 0.3;
  animation-delay: 1s;
}
.service-single .service-img::after {
  opacity: 0.5;
}
.service-single .service-ico {
  position: absolute;
  left: 0;
  right: 0;
  width: 115px;
  height: 115px;
  background-color: #08548c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -70px auto 0px;
  font-size: 4.5rem;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.07);
  transition: 0.3s all ease-in-out;
}
.service-single .service-inner {
  margin: 50px 0 0;
}
.service-single .service-inner h2 {
  font-size: 2.2rem;
  line-height: 3.2rem;
}
.service-single .service-inner p {
  font-size: 1.4rem;
  line-height: 2.4rem;
}
.service-single .service-inner .learn-more {
  text-decoration: underline;
  font-size: 1.4rem;
  line-height: 2.4rem;
  font-weight: 300;
}

/********* Insurance Agent ************/
.agent-bg:after, .agent-bg:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  width: 30%;
  border-radius: 0 40px 40px 0;
}
.agent-bg:after {
  background-color: #f6f7fb;
  z-index: -1;
}
.agent-bg::before {
  z-index: -1;
  opacity: 0.06;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
.agent-bg .text-block {
  margin-left: 30px;
}

.image-block {
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-block::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #08548c;
  width: 110%;
  height: 110%;
  top: auto;
  left: auto;
  border-radius: 0 30px 30px 0;
  z-index: -1;
}
.image-block img {
  border-radius: 40px;
  border: 2px solid #08548c;
}

/*********** gallery *********/
.gallery-block {
  position: relative;
  border: 3px solid #fff;
  margin: 10px 0 20px;
  box-shadow: 4px 7px 14px rgba(50, 50, 50, 0.2);
}
.gallery-block img {
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: top;
     object-position: top;
}

/********** Join Us ***********/
.join-us {
  z-index: 1;
}
.join-us:before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-position: center left;
  background-repeat: no-repeat;
}
.webp .join-us:before {
  background-image: url(../images/left-object.webp);
}
.no-webp .join-us:before {
  background-image: url(../images/left-object.png);
}
.join-us:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-position: center right;
  background-repeat: no-repeat;
}
.webp .join-us:after {
  background-image: url(../images/right-object.webp);
}
.no-webp .join-us:after {
  background-image: url(../images/right-object.png);
}

.join-us-single {
  background-color: #fff;
  padding: 30px;
  margin: 30px 0 20px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transform: translateY(0px);
}
.join-us-single:hover {
  transform: translateY(-10px);
}
.join-us-single .icon {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #b8050a;
  background-color: #f8e6e6;
  font-size: 4.5rem;
  line-height: 5.5rem;
  color: #b8050a;
  border-radius: 50%;
}
.join-us-single .text-head {
  font-size: 1.8rem;
  line-height: 2.8rem;
  font-weight: 700;
  color: #222;
  margin: 10px 0 10px;
  text-transform: uppercase;
}

/****** text ********/
.bg-text {
  background-color: #f6f7fb;
  border: 2px solid #08548c;
  padding: 5px 10px;
  border-radius: 10px;
  margin: 10px 0 10px;
}
.bg-text p {
  font-weight: 700;
}

@media (max-width: 1366px) {
  .home-slider .carousel-item::before {
    z-index: 1;
    background: rgba(255, 255, 255, 0.75);
    width: 100%;
  }
  .home-slider .carousel-caption p {
    color: #222;
  }
}
@media (max-width: 1024px) {
  .home-slider .carousel-caption {
    margin: 260px 0px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px 30px;
    border-radius: 10px;
  }
  .home-slider .carousel-item::before {
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    width: 90%;
    height: 100%;
    z-index: -1;
    background: rgb(255, 255, 255);
    background: linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0.0088410364) 100%);
  }
}
@media (max-width: 990px) {
  .p-xs-0 {
    padding: 0 !important;
  }
  .agent-bg .text-block {
    margin: 30px 0 0 0;
  }
  .image-block::after {
    display: none;
  }
  .text-wrap,
  .text-block {
    margin: 30px 0 0;
  }
  .agent-bg:after,
  .agent-bg:before {
    display: none;
  }
}
@media (max-width: 767px) {
  .pad-80,
  .pad-60 {
    padding: 40px 0;
  }
  .home-slider .carousel-item::before {
    z-index: 1;
    background: rgba(255, 255, 255, 0.65);
    width: 100%;
  }
  .home-slider .carousel-caption {
    margin: 50px 0 50px;
  }
  .home-slider .carousel-caption h1 {
    font-size: 3rem;
    line-height: 4rem;
  }
  .home-slider .carousel-caption h1 span {
    font-size: 1.4rem;
    line-height: 2.4rem;
    display: block;
    padding: 0;
  }
  .home-slider .carousel-caption p {
    font-size: 1.6rem;
    line-height: 2.6rem;
    color: #222;
  }
  .home-slider .carousel-item {
    background-size: 0;
  }
  .home-slider .mob-banner {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: unset;
  }
  .home-about .form-wrap {
    margin: 0;
    padding: 30px 10px;
  }
  .flex-btn {
    display: block;
  }
  .flex-btn a:nth-child(2n) {
    margin-left: 0;
    margin-top: 20px;
  }
  .agent-bg .text-block {
    margin-left: 0;
  }
  .join-us-single {
    text-align: center;
    margin: 15px 0 0;
    padding: 15px 5px 10px;
    min-height: 150px;
  }
  .join-us-single .icon {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
    line-height: 3.5rem;
  }
  .join-us-single .text-head {
    font-size: 1.4rem;
    line-height: 2.4rem;
  }
}