/*=========================================
        SERVICE SECTION START
=========================================*/

.upahar_service_section {
  padding: 30px 0;
  background: #fae9e9;
}

.upahar_service_heading {
  margin-bottom: 25px;
}

.upahar_service_heading span {
  display: inline-block;
  padding: 8px 22px;
  background: #c9000e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 30px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.upahar_service_heading h2 {
  font-size: 42px;
  font-weight: 700;
  color: #000;
  margin-bottom: 5px;
}

.upahar_service_heading p {
  max-width: 700px;
  margin: auto;
  font-size: 17px;
  line-height: 30px;
  color: #555;
}

/*==============================
        SERVICE CARD
==============================*/

.upahar_service_card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.4s;
  height: 100%;
  border-bottom: 4px solid transparent;
}

.upahar_service_card:hover {
  transform: translateY(-10px);
  border-bottom: 4px solid #ffd400;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/*==============================
        IMAGE
==============================*/

.upahar_service_image {
  position: relative;
  overflow: hidden;
}

.upahar_service_image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: 0.5s;
}

.upahar_service_card:hover .upahar_service_image img {
  transform: scale(1.08);
}

/*==============================
        CONTENT
==============================*/

.upahar_service_content {
  padding: 15px;
}

.upahar_service_content h3 {
  font-size: 26px;
  font-weight: 700;
  color: #000;
  margin-bottom: 2px;
}

.upahar_service_content p {
  color: #666;
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 22px;
}

/*==============================
        SERVICE LIST
==============================*/

.upahar_service_content ul {
  padding: 0;
  margin: 0 0 15px;
  list-style: none;
}

.upahar_service_content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #222;
  font-size: 15px;
}

.upahar_service_content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #d60000;
  font-weight: 700;
}

/*==============================
        BUTTON
==============================*/

.upahar_service_content a {
  display: inline-block;
  padding: 12px 28px;
  background: #d60000;
  color: #fff;
  text-decoration: none;
  border-radius: 40px;
  font-weight: 600;
  transition: 0.3s;
  text-align: center;
}

.upahar_service_content a:hover {
  background: #ffd400;
  color: #000;
}
/*=========================================
        CARD FLEX HEIGHT
=========================================*/

.upahar_service_card {
  display: flex;
  flex-direction: column;
}

.upahar_service_content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.upahar_service_content ul {
  flex: 1;
}

/*=========================================
        IMAGE OVERLAY
=========================================*/

.upahar_service_image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
  opacity: 0;
  transition: 0.4s;
  z-index: 1;
}

.upahar_service_card:hover .upahar_service_image::before {
  opacity: 1;
}

/*=========================================
        BUTTON ICON
=========================================*/

.upahar_service_content a::after {
  content: " →";
  transition: 0.3s;
}

.upahar_service_card:hover .upahar_service_content a::after {
  margin-left: 8px;
}

/*=========================================
        TABLET
=========================================*/

@media (max-width: 991px) {
  .upahar_service_section {
    padding: 50px 0;
  }

  .upahar_service_heading {
    margin-bottom: 25px;
  }

  .upahar_service_heading h2 {
    font-size: 34px;
  }

  .upahar_service_heading p {
    font-size: 16px;
  }

  .upahar_service_image img {
    height: 220px;
  }

  .upahar_service_content {
    padding: 24px;
  }

  .upahar_service_content h3 {
    font-size: 22px;
  }
}

/*=========================================
        MOBILE
=========================================*/

@media (max-width: 767px) {
  .upahar_service_section {
    padding: 30px 0;
  }

  .upahar_service_heading span {
    font-size: 13px;
    padding: 7px 18px;
  }

  .upahar_service_heading h2 {
    font-size: 28px;
    line-height: 40px;
  }

  .upahar_service_heading p {
    font-size: 15px;
    line-height: 26px;
  }

  .upahar_service_image img {
    height: 200px;
  }

  .upahar_service_content {
    padding: 20px;
  }

  .upahar_service_content h3 {
    font-size: 21px;
  }

  .upahar_service_content p {
    font-size: 15px;
    line-height: 26px;
  }

  .upahar_service_content ul li {
    font-size: 14px;
  }

  .upahar_service_content a {
    display: block;
    text-align: center;
    width: 100%;
  }
}

/*=========================================
        SMALL MOBILE
=========================================*/

@media (max-width: 575px) {
  .upahar_service_heading h2 {
    font-size: 24px;
    line-height: 34px;
  }

  .upahar_service_heading p {
    font-size: 14px;
  }

  .upahar_service_image img {
    height: 180px;
  }

  .upahar_service_content {
    padding: 18px;
  }

  .upahar_service_content h3 {
    font-size: 19px;
  }

  .upahar_service_content ul li {
    margin-bottom: 10px;
  }
}

/*=========================================
        EXTRA SMALL
=========================================*/

@media (max-width: 380px) {
  .upahar_service_heading h2 {
    font-size: 22px;
  }

  .upahar_service_image img {
    height: 160px;
  }

  .upahar_service_content {
    padding: 16px;
  }

  .upahar_service_content h3 {
    font-size: 18px;
  }

  .upahar_service_content a {
    padding: 11px 20px;
    font-size: 14px;
  }
}

/*=========================================
        ANIMATION
=========================================*/

.upahar_service_card {
  animation: upahar_service_fade 0.6s ease;
}

@keyframes upahar_service_fade {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/*=========================================
        SCROLL ANIMATION
=========================================*/

.upahar_service_card {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.upahar_service_show {
  opacity: 1;
  transform: translateY(0);
}
