.services {
  padding: 60px 0px 30px 0px;
}

.services h6 {
  font-size: 0.9rem;
  color: #ff4500;
  text-transform: uppercase;
  font-weight: bold;
}

.services h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #0a165e;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Space between title and content */
  padding: 40px;
  position: relative; /* For positioning hover-circle */
  transition: background-color 0.3s ease;
  border-top: 1px solid rgba(184, 174, 174, 0.4);
  border-bottom: 1px solid rgba(184, 174, 174, 0.4);
}

.service-title {
  font-size: 1.5rem;
  font-weight: bold;
  flex: 0 0 30%; /* Equal width for titles */
  text-align: center; /* Ensure left alignment for titles */
}

.service-content {
  display: flex;
  align-items: center;
  flex: 1; /* Occupy remaining space */
  text-align: left;
}

.icon {
  width: 60px;
  height: 60px;
  margin-right: 15px;
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.description {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0;
}

.services a {
  font-size: 0.9rem;
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.services a:hover {
  text-decoration: underline;
}

.service-item:last-child {
  border-bottom: none;
}

.service-item:hover {
  background-color: #0a165e; /* Background on hover */
  color: #fff; /* Text color on hover */
}

.service-item:hover .description {
  color: #fff;
}

/* Circle hover image */
.hover-circle {
  display: none;
  position: absolute;
  right: 5%; /* Adjust to align circle properly */
  top: 50%;
  transform: translateY(-50%);
  width: 180px; /* Bigger circle width */
  height: 180px; /* Bigger circle height */
  border: 5px solid #ff4500;
  border-radius: 50%;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0; /* Start hidden */
}

.hover-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-item:hover .hover-circle {
  display: block;
  opacity: 1;
  transform: translateY(-50%) scale(1.2); /* Slight zoom effect on hover */
}

/* 🔹 Large Screens (Desktops & Laptops) */
@media (min-width: 1200px) {
  .services {
    padding: 60px 0px 30px 0px;
}
  .service-item {
    padding: 50px;
  }
  .service-title {
    font-size: 1.8rem;
  }
  .description {
    font-size: 1rem;
  }
}

/* 🔹 Medium Screens (Small Laptops & Tablets) */
@media (max-width: 1024px) {
  .service-item {
    padding: 40px 0px 20px 0px;
}
  .service-title {
    font-size: 1.4rem;
  }
  .description {
    font-size: 1rem;
  }
  .hover-circle {
    width: 140px;
    height: 140px;
    right: 3%;
  }
}
/* 🔹 Ultra-Wide Screens (2560px and Above) */
@media (min-width: 2560px) {
  .services {
    padding: 100px 0; /* More spacing for better readability */
    margin: auto;
  }

  .service-item {
    padding: 80px; /* Increased padding for larger screens */
    font-size: 1.8rem; /* Larger text for better visibility */
  }

  .service-title {
    font-size: 2.5rem; /* Increase title size */
  }

  .description {
    font-size: 1.5rem; /* Make descriptions larger */
    max-width: 90%; /* Keep text from stretching too wide */
  }

  .hover-circle {
    width: 250px; /* Bigger hover effect */
    height: 250px;
    right: 15%; /* Adjust placement */
  }
}

/* 🔹 Tablets (Portrait & Landscape) */
@media (max-width: 768px) {
  .service-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .service-title,
  .service-content {
    flex: unset;
    margin-bottom: 10px;
    gap: 30px;
  }
  .hover-circle {
    display: none !important;
  }
  .icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .service-content {
    text-align: center;
  }
}

/* 🔹 Mobile Phones (<576px) */
@media (max-width: 576px) {
  .services {
    padding: 25px 0;
  }
  .service-item {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .service-title {
    font-size: 1.2rem;
    text-align: center;
  }
  .description {
    font-size: 1rem;
    text-align: center;
  }
  .service-content {
    flex-direction: column;
    gap: 5px;
  }
  .icon {
    margin-bottom: 10px;
  }
}

/* 🔹 Extra Small Phones (<380px) */
@media (max-width: 380px) {
  .services {
    padding: 15px 0;
  }
  .service-item {
    padding: 10px;
  }
  .service-title {
    font-size: 1rem;
  }
  .description {
    font-size: 0.9rem;
  }
  .service-content {
    flex-direction: column;
    gap: 5px;
  }
}
