/* Ensure the section itself is relative */
.enterprise-section {
  position: relative;
  overflow: visible; /* so leaves aren’t clipped */
}

/* Floating leaves */
.leaf {
  position: absolute;
  width: 60px;
  height: 60px;
  background: url('/assets/images/leaf.png') no-repeat center/contain;
  opacity: 0.45;
  animation: floatLeaf 7s ease-in-out infinite;
  z-index: 10; /* above other content */
  pointer-events: none; /* leaves won’t block clicks */
}

/* Specific positions */
.enterprise-leaf-left-1 {
  top: 20%;   /* adjust here */
  left: 25%;   /* adjust here */
  animation-delay: 0s;
}

.enterprise-leaf-left-2{
  top: 85%;
  left: 82%;
  animation-delay: 2s;
}

@keyframes floatLeaf {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(12deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* CONTAINER */
.enterprise-container {
  display: flex;
  align-items: center;
  padding: clamp(40px, 7vw, 100px) clamp(16px, 2vw, 20px);
  justify-content: space-between;
  gap: clamp(24px, 4vw, 50px);
  flex-wrap: wrap;
}

/* LEFT */
.enterprise-content {
  flex: 1;
  max-width: 420px;
}

.enterprise-tag {
  font-size: 12px;
  color: #2f5a3f;
  background: #dff3e7;
  padding: 6px 12px;
  border-radius: 20px;
}

.enterprise-title {
  font-size: 30px;
  margin: 15px 0 20px;
  color: #1f3a2c;
  font-family: 'Playfair Display', serif;
}

.enterprise-btn {
  display: inline-block;
  padding: 10px 22px;
  background: #2f5a3f;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.enterprise-btn:hover {
  background: #1f3a2c;
}

/* RIGHT SIDE - HORIZONTAL */
.enterprise-visual {
  flex: 1.5;
  display: flex;
  gap: 20px;
}

/* CARD */
.enterprise-card {
  position: relative;
  flex: 1;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.4s ease;
}

/* IMAGE */
.enterprise-card img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: 0.4s ease;
}

/* OVERLAY */
.card-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.card-overlay h3 {
  color: #fff;
  font-size: 16px;
  margin: 0;
}

/* HOVER EFFECT */
.enterprise-card:hover img {
  transform: scale(1.08);
}

.enterprise-card:hover {
  transform: translateY(-6px);
}


/* ==========================================
   MOBILE FIX (ENTERPRISE VERTICAL FINAL)
========================================== */
@media (max-width: 768px) {

  /* SECTION */
  .enterprise-section {
    height: auto !important;
    overflow: visible;
  }

  /* CONTAINER */
  .enterprise-container {
    flex-direction: column;
    align-items: stretch !important; /* 🔥 IMPORTANT */
    gap: 30px;

    height: auto !important;
  }

  /* LEFT CONTENT */
  .enterprise-content {
    max-width: 100%;
  }

  .enterprise-title {
    font-size: 22px;
    margin: 12px 0 16px;
  }

  /* BUTTON */
  .enterprise-btn {
    margin-top: 10px;
  }

  /* 🔥 CARDS → VERTICAL STACK */
  .enterprise-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;

    width: 100%;
    height: auto !important;
  }

 .enterprise-card {
    width: 100%;
    height: auto;              /* remove fixed height */
    min-height: 200px;         /* maintain visibility */
  }

  /* IMAGE */
  .enterprise-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* OVERLAY */
  .card-overlay {
    padding: 12px;
  }

  .card-overlay h3 {
    font-size: 15px;
  }

  /* REMOVE LEAVES (clean UI) */
  .leaf {
    display: none;
  }
}