.ai-and-robotics {
  padding: 60px 20px;
  background: #fff;
}


.ai-and-robotics h1 {
  margin-bottom: 30px;
  color: #000;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.ai-and-robotics p {
  color: #737373;
  text-align: center;
  font-size: clamp(14px, 1.25vw, 18px);
  display: block;
  margin-bottom: 100px;
  margin: 0 auto;
}

.blue-bar-4 .container {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 80px;
  margin-bottom: 80px;
  position: relative; /* needed for arrows */
  display: flex;
  align-items: center;
}

.slider-container {
  overflow: hidden;
  width: 100%;
}

.tech-card-row-4 {
  display: flex; /* was grid */
  transition: transform 0.5s ease-in-out;
}

/* Card design */
.tech-card-4 {
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 250px;      /* fixed width */
  height: 250px;     /* fixed height */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 15px;
  position: relative;
}

.tech-card-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Label inside card */
.tech-card-label-4 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}



.tech-card-4:hover .tech-card-label-4 {
  opacity: 1;
}

/* arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: black;
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.arrow.left {
  left: -50px;
}

.arrow.right {
  right: -50px;
}

.arrow:hover {
  background: white;
  color: black;
}

.arrow:disabled {
  opacity: 0;
  cursor: not-allowed;
}

.page4_booking_button {
      background: #f0f6ff;
      padding: 60px 20px;
      text-align: center;
      border-radius: 12px;
      max-width: 1000px;
      margin: 100px auto;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .page4_booking_button_header {
      font-size: 24px;
      font-weight: 600;
      color: #111827;
      margin-bottom: 15px;
    }

    .page4_booking_button_subtitle {
      font-size: 16px;
      color: #4b5563;
      display: block;
      margin-bottom: 30px;
    }

    .cta-btn {
      display: inline-block;
      background: #2563eb;
      color: #fff;
      font-size: 16px;
      font-weight: 500;
      padding: 14px 28px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

    .cta-btn:hover {
      background: #1d4ed8;
      transform: translateY(-2px);
      box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
    }

/* Tablet Screens (≤1024px) */
@media (max-width: 1300px) {
  .ai-and-robotics h2 {
    font-size: 38px;
    text-align: center;
  }

  .ai-and-robotics p {
    font-size: 28px;
  }

  .heading-with-img img.behind-icon {
    width: 220px; /* shrink robot image */
    top: auto;
    bottom: -20px; /* push below heading */
    transform: none;
    position: relative; /* no absolute positioning */
    margin: 20px auto 0;
    display: block;
  }

  .tech-card-row-4 {
    animation-duration: 25s; 
  }

  .tech-card-4 {
    width: 250px;
  }

  .tech-card-label-4 {
  opacity: 1;
  transition: none;

}

/* Mobile Screens (≤768px) */
@media (max-width: 768px) {
  .ai-and-robotics {
    padding: 40px 15px;
  }

  .ai-and-robotics h2 {
    font-size: 30px;
    line-height: 1.3;
  }

  .ai-and-robotics p {
    font-size: 22px;
  }

  .heading-with-img img.behind-icon {
    width: 160px;
    margin: 15px auto 0;
  }

    .tech-card-row-4 {
    flex-wrap: nowrap;
    width: max-content;
  }

  .tech-card-4 {
    flex: 0 0 auto;              /* prevent shrinking */
    width: 250px;                /* smaller card size for mobile */
    max-width: 90%;
  }

  .tech-card-label-4 {
  opacity: 1;
  transition: none;
}

}


/* Small Mobile Screens (≤480px) */
@media (max-width: 480px) {
  .ai-and-robotics h2 {
    font-size: 24px;
  }

  .ai-and-robotics p {
    font-size: 18px;
  }

  .heading-with-img img.behind-icon {
    width: 120px;
  }

  .tech-card-4 {
    width: 100%;
    max-width: 280px;
  }

  .tech-card-label-4 {
  opacity: 1;
  transition: none;
}
}