

/* Services Section */
.services {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}

.service-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-item img {
  margin-right: 12px;
  width: 30px; /* Size of the logo */
  height: auto;
}

.service-item:hover {
  background-color: #0c3572;
  color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Container Section */
.container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1500px;
  background-color: #f6efef;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 20px;
  width: 100%;
  padding: 20px;
}

/* Text Section */
.text-section {
  flex: 1;
  padding: 40px;
  text-align: left;
}

.text-section h2 {
  color: #0c3572;
  font-size: 24px;
  margin-bottom: 10px;
}

.text-section h1 {
  color: #333;
  font-size: 32px;
  margin-bottom: 20px;
}

.text-section p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

/* Image Section */
.image-section {
  flex: 1;
  position: relative;
  width: 400px; /* Fixed width */
  height: 400px; /* Fixed height */
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Info Box */
.info-box {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background:#0c3572;
  color: #ffffff; /* Text color adjusted for better contrast */
  padding: 20px;
  border-radius: 10px;
  max-width: 300px;
}

.info-box p {
  margin: 0 0 10px;
  font-size: 14px;
}

/* Media Queries */

/* For tablets and smaller devices (max-width: 1024px) */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .text-section {
    padding: 15px;
  }

  .image-section {
    margin-top: 15px;
    flex: 1 1 100%;
    width: 400px; /* Fixed width for image section */
    height: 400px; /* Fixed height for image section */
    object-fit: cover; /* Maintain aspect ratio */
  }

  .text-section h1 {
    font-size: 26px;
  }

  .text-section p {
    font-size: 14px;
  }

  .service-container {
    flex-direction: column;
  }

  .service-item {
    font-size: 16px;
  }
}

/* For mobile devices (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .text-section, .image-section {
    flex: 1 1 100%;
    padding: 15px;
  }

  .image-section {
    width: 400px; /* Fixed width for image section */
    height: 400px; /* Fixed height for image section */
    object-fit: cover; /* Maintain aspect ratio */
  }

  .text-section h1 {
    font-size: 24px;
  }

  .text-section p {
    font-size: 14px;
  }

  .info-box {
    position: static;
    margin-top: 20px;
    max-width: 100%;
  }

  .service-container {
    flex-direction: column;
    gap: 15px;
  }

  .service-item {
    font-size: 14px;
    justify-content: center;
  }

  .service-item img {
    margin-right: 10px;
    width: 25px; /* Adjust logo size */
  }
}

/* For very small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  .text-section h1 {
    font-size: 20px;
  }

  .text-section p {
    font-size: 12px;
  }

  .service-container {
    flex-direction: column;
    gap: 10px;
  }

  .service-item {
    font-size: 12px;
    justify-content: center;
  }

  .service-item img {
    margin-right: 8px;
    width: 20px; /* Further reduce logo size */
  }

  .info-box {
    font-size: 12px;
    padding: 15px;
  }

  .image-section {
    width: 400px; /* Fixed width for image section */
    height: 400px; /* Fixed height for image section */
    object-fit: cover; /* Maintain aspect ratio */
  }
}
