.hematology{
    /*height: 682px;*/
    /*margin-bottom:100px !important;*/
       
}

.lines{
  padding-left: 300px;
  padding-top: 15px;
  padding-bottom: 15px;
      max-width: 100%;
    height: auto !important;
}
/* Tablet */
@media (max-width: 992px){
  .lines{
    padding-left: 0;
    width: 200px;
  }
}

/* Mobile */
@media (max-width: 576px){
  .lines{
    padding-left: 0;
    width: 150px;
  }
}


.right {
    display: flex;
    justify-content: space-between;
    gap: 40px;        /* space between left and right items */
    padding-right: 50px;
    margin-bottom: 12px;
}

.right p {
    width: 50%;       /* two equal columns */
    margin: 0;
    font-weight: 400;
    font-size: 15px;
    color: rgb(119,119,119);
}

.icon-check {
    color: #8224e3;
    font-size: 20px;
    margin-right: 8px;
}

/* MOBILE VIEW – STACK ONE BY ONE */
@media (max-width: 600px) {
    .right {
        flex-direction: column;
        padding-right: 0;
        gap: 8px;
    }

    .right p {
        width: 100%;     /* full width */
        display: flex;
        align-items: center;
    }
}





/* Mobile: stack everything vertically and make list one-by-one */
@media (max-width: 600px) {
  .hematology {
    height: auto !important;
    padding: 12px 8px 22px 8px;
  }

  .v-care {
    display: block;                /* stack image below text */
  }

  .about-v-care {
    width: 100%;
    padding: 0 10px;
  }

  .labrotary-image {
    width: 100%;
    max-width: none;
    margin-top: 18px;
    display: block;
  }

  /* Make each p occupy full width one-by-one */
  .right {
    display: block;
    padding-right: 0;
    margin-bottom: 8px;
  }

  .right p {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 6px 0;
    padding: 0 6px;
    box-sizing: border-box;
    font-size: 15px;               /* slightly smaller text for mobile */
  }

  /* ensure icon has proper spacing on small screens */
  .icon-check {
    font-size: 18px;
    margin-right: 10px;
    flex: 0 0 auto;
  }

  /* keep decorative lines centered and not overflowing */

}
/* Very small devices */
@media (max-width: 360px) {
  .about-v-care p { font-size: 14px; line-height: 1.35; }
  .right p { font-size: 14px; }
  .icon-check { font-size: 17px; margin-right: 8px; }
}


/* ===== Hematology list layout ===== */
.right-hematology{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 12px;
}

.right-hematology p{
  width: 50%;
  margin: 0;
  font-size: 16px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.8;
}

/* check icon color */
.icon-check{
  color: #7a2ee6; /* purple like image */
  font-size: 16px;
}


.about a{
  text-decoration: none;
}






/* default state */
.service-card img {
  opacity: 0;
  transform: rotate(0deg);
}

/* when active */
.service-card img.rotate {
  opacity: 1;
  animation: rotateAnti 1.2s ease-in-out forwards;
}

@keyframes rotateAnti {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg); /* anticlockwise */
  }
}
