/* about.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
}

.services-section {
  width: 100%;
  padding: 40px;
  background-color: #f9f9f9;
}

.service-box {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.service-image img {
  width: 100%;
  max-width: 440px;
  height: 400px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  border: 4px solid #002d62; /* Added border */
}

.service-details {
  padding: 24px;
}

.service-details h2 {
  margin-top: 0;
  font-size: 24px;
  color: #002d62;
  font-weight: 700;
}

.service-details p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* Main Section Split Layout */

.main-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  min-height: 100vh;
}

.left-box {
  flex: 1 1 50%;
  background-color: #cfd6de;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.left-box img {
  width: 100%;
  max-width: 750px;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid #002d62; /* Added border */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.left-box img:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.right-box {
  position: relative;
  flex: 1 1 50%;
  padding: 60px 40px;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.right-box::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -150px;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background-color: #cfd6de;
  border-radius: 50%;
  z-index: 0;
}

.right-box h2,
.right-box p,
.read-more-btn {
  position: relative;
  z-index: 2;
}

.right-box h2 {
  font-size: 2rem;
  color: #002d62;
  margin-bottom: 20px;
  font-weight: 700;
}

.right-box p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 20px;
}

.read-more-btn {
  background-color: #002d62;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  width: fit-content;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.read-more-btn:hover {
  background-color: #001a3f;
  transform: scale(1.05);
}

/* Responsive Enhancements */

@media (max-width: 768px) {
  .main-section {
    flex-direction: column;
  }

  .left-box,
  .right-box {
    flex: 1 1 100%;
    padding: 30px 20px;
  }

  .right-box::before {
    width: 300px;
    height: 300px;
    right: -100px;
  }

  .right-box h2 {
    font-size: 1.5rem;
  }

  .service-box {
    flex-direction: column;
  }

  .service-image img {
    width: 100%;
    max-width: 100%;
    height: 340px;
    border-radius: 12px 12px 0 0;
    border: 4px solid #002d62; /* Border for mobile too */
  }

  .service-details {
    padding: 20px;
    text-align: center;
  }

  .left-box img {
    max-width: 100%;
    height: 420px;
    object-fit: cover;
    border: 4px solid #002d62; /* Border on mobile */
  }
}
