@import url('https://fonts.googleapis.com/css2?family=Amaranth&display=swap');

.mv-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8fff8, #e6f4ea);
  font-family: 'Amaranth', sans-serif;
}

.mv-title {
  font-size: 2.4em;
  color: #1e3c24;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mv-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.mv-card {
  position: relative;
  background: #fff;
  width: 320px;
  height: 450px; /* increased height for vertical rectangle */
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.4s ease;
  text-align: left;
}

.mv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 45%;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
  transition: 0.4s ease;
  z-index: 0;
}

.mv-card:hover::before {
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.mv-top {
  position: relative;
  z-index: 1;
  padding: 25px 20px 10px;
}

.mv-number {
  font-size: 1.6em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}

.mv-card h3 {
  color: #fff;
  font-size: 1.5em;
  margin: 0;
  position: relative;
}

.mv-card p {
  padding: 80px;
  color: #444;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  margin-bottom: 100px; /* ensure space for icon */
}

.mv-icon {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  background: #fff;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  font-size: 34px;
  color: inherit;
  transition: all 0.4s ease;
  z-index: 2;
}

.mv-card:hover .mv-icon {
  transform: translateX(-50%) translateY(0);
}

/* Color Variants */
.mv-orange::before { background: #ff9800; }
.mv-red::before { background: #f44336; }
.mv-teal::before { background: #00acc1; }

.mv-orange .mv-icon { color: #ff9800; }
.mv-red .mv-icon { color: #f44336; }
.mv-teal .mv-icon { color: #00acc1; }

@media (max-width: 768px) {
  .mv-container {
    flex-direction: column;
    align-items: center;
  }
  .mv-card {
    width: 90%;
    height: auto;
  }
}
