/* Industries Section - 3 Cards Display, Light Orange Active Background */
.industries-overlap-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
  padding: 40px 0 40px;
}

.industries-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  z-index: 0;
}

.industries-overlap-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.212);
  z-index: 1;
}

.industries-overlap-section .container {
  position: relative;
  z-index: 2;
}

.sec-heading-center {
  text-align: center;
  margin-bottom: 70px;
}

.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #f4511e 0%, #ff6b35 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(244, 81, 30, 0.3);
}

.sub-badge i {
  font-size: 14px;
}

.main-title {
  font-size: 52px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 18px;
  line-height: 1.2;
}

.highlight-text {
  background: linear-gradient(135deg, #f4511e 0%, #ff6b35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub-desc {
  color: #64748b;
  font-size: 17px;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.industries-overlap-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}

.cards-overlap-wrapper {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card Base Styling */
.overlap-card {
  position: absolute;
  width: 350px;
  height: 450px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 24px;
  padding: 45px 35px;
  text-align: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: none;
}

/* Background Image - Hidden by default */
.card-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

/* Active Card - Professional Orange Background */
.overlap-card.active {
  background: linear-gradient(135deg, #fff8f5 0%, #fef2ed 100%);
  border-color: #f4511e;
  border-width: 3px;
  box-shadow: 0 20px 60px rgba(244, 81, 30, 0.3), 0 0 0 1px rgba(244, 81, 30, 0.1);
  transform: translateY(-8px);
}

.overlap-card.active .card-bg-image {
}

.overlap-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Show only 3 cards: left, center, right */
.overlap-card.left {
  display: block;
  left: 5%;
  transform: scale(0.90);
  opacity: 0.7;
  z-index: 1;
}

.overlap-card.center {
  display: block;
  left: 50%;
  transform: translateX(-50%) scale(1);
  z-index: 3;
}

.overlap-card.right {
  display: block;
  right: 5%;
  transform: scale(0.90);
  opacity: 0.7;
  z-index: 1;
}

/* Icon Styling */
.overlap-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #ffffff;
  margin: 0 auto 30px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(30, 41, 59, 0.2);
}

.overlap-card.active .overlap-icon {
  background: linear-gradient(135deg, #f4511e 0%, #ff6b35 100%);
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 15px 40px rgba(244, 81, 30, 0.5), 0 0 0 3px rgba(244, 81, 30, 0.1);
}

.overlap-card h3 {
  font-size: 26px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 18px;
  transition: all 0.3s;
}

.overlap-card.active h3 {
  color: #f4511e;
  transform: translateY(-2px);
}

.overlap-card p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 24px;
}

.placement-count {
  display: inline-block;
  padding: 10px 22px;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s;
}

.overlap-card.active .placement-count {
  background: linear-gradient(135deg, #f4511e 0%, #ff6b35 100%);
  color: #ffffff;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 81, 30, 0.4);
}

/* Navigation Buttons */
.overlap-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  color: #1e293b;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.overlap-nav-btn:hover {
  background: linear-gradient(135deg, #f4511e 0%, #ff6b35 100%);
  border-color: #f4511e;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(244, 81, 30, 0.4);
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

/* Responsive */
@media (max-width: 1200px) {
  .overlap-card {
    width: 320px;
    height: 420px;
    padding: 40px 30px;
  }
  
  .overlap-icon {
    width: 90px;
    height: 90px;
    font-size: 44px;
  }
  
  .overlap-card h3 {
    font-size: 24px;
  }
}

@media (max-width: 992px) {
  .industries-overlap-container {
    padding: 0 60px;
  }
  
  .overlap-card {
    width: 300px;
    height: 400px;
  }
  
  .main-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .cards-overlap-wrapper {
    height: 450px;
  }
  
  .overlap-card.left,
  .overlap-card.right {
    display: none;
  }
  
  .overlap-card.center {
    width: 320px;
  }
  
  .main-title {
    font-size: 34px;
  }
}

@media (max-width: 576px) {
  .overlap-card.center {
    width: 290px;
    height: 380px;
    padding: 35px 25px;
  }
  
  .overlap-icon {
    width: 80px;
    height: 80px;
    font-size: 40px;
  }
  
  .overlap-nav-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}
