/* =============================== */
/* ✅ SERVICES SECTION */
/* =============================== */

.services-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  padding: 50px 10%;
  gap: 5%;
}

/* ✅ SERVICES TEXT */
.services-text {
  width: 45%;
  color: #000;
  font-size: 16px;
  line-height: 1.8;
}

.services-text h3 {
  font-size: 16px;
  font-weight: bold;
  color: #222;
  margin-bottom: 10px;
}

.services-text h2 {
  font-size: 30px;
  font-weight: bold;
  color: #222;
  margin-bottom: 20px;
}

/* ✅ SERVICES CONTAINER */
.services-container {
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ✅ SERVICE BOXES */
.service-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  width: 100%;
  padding: 20px;
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

/* ✅ BACKGROUND IMAGES */
.sea-freight {
  background-image: url('../images/seafreight.png');
}

.road-freight {
  background-image: url('../images/roadfreight.png');
}

.air-freight {
  background-image: url('../images/airfreight.png');
}

/* ✅ DARK OVERLAYS */
.service-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.road-freight::before {
  background: rgba(0, 0, 0, 0.0);
}

.air-freight::before {
  background: rgba(0, 0, 0, 0.3);
}

.service-box h2 {
  position: relative;
  z-index: 2;
  color: white;
}

/* =============================== */
/* ✅ SUB-SECTIONS (Additional Services Info) */
/* =============================== */

.sub-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 30px;
  margin-bottom: 40px;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  gap: 30px;
}

.sub-section-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 30px;
}

.sub-section-content .text {
  flex: 2;
}

.sub-section-content h2 {
  font-size: 1.8rem;
  color: #005f73;
  margin-bottom: 10px;
}

.sub-section-content p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.sub-section-content img {
  flex: 1;
  width: 100%;
  max-width: 350px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* =============================== */
/* ✅ RESPONSIVE ADJUSTMENTS */
/* =============================== */

@media (max-width: 768px) {
  .services-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 5%;
  }

  .services-text,
  .services-container {
    width: 100%;
  }

  .sub-section-content {
    flex-direction: column;
    text-align: center;
  }

  .sub-section-content .text {
    order: 2;
  }

  .sub-section-content img {
    order: 1;
    width: 90%;
    height: auto;
    max-height: 200px;
    margin: 0 auto 15px auto;
  }

  .service-box {
    height: auto;
    min-height: 120px;
    padding: 30px 20px;
    text-align: center;
  }

  .service-box h2 {
    font-size: 1.3rem;
  }
}