.vmm-section {
  max-width: 1080px;
  margin: 10px auto 0 auto;
  padding: 38px 12px;
}

.vmm-hex-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 600px;
  margin: 0 auto;
}

.vmm-hex-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.vmm-hex-row.first {
  margin-bottom: -20px;
  z-index: 2;
}
.vmm-hex-row.second {
  z-index: 1;
}

/* Outer border */
.vmm-hex-wrapper {
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
  background: linear-gradient(120deg, #092c5c 60%, #093877 100%);
  padding: 6px; /* Outer border thickness */
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseGlow 3.5s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(.26,.61,.52,1);
  margin: 0 12px;
}

.vmm-hex-wrapper:hover {
  transform: scale(1.08);
  z-index: 5;
}

/* Middle border */
.vmm-hex-middle-border {
  clip-path: inherit;
  background: linear-gradient(60deg, #fff7e1 72%, #d3e4fc 100%);
  padding: 4px; /* middle border thickness */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner border */
.vmm-hex-inner-border {
  clip-path: inherit;
  background: #092c5c;
  padding: 3px; /* inner border thickness */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card */
.vmm-hex-card {
  width: 300px;
  height: 300px;
  perspective: 1200px;
  cursor: pointer;
  outline: none;
  clip-path: inherit;
  background: #fff;
  transition: box-shadow 0.3s;
  box-shadow: 0 10px 35px rgba(135, 206, 250, 0.3);
  position: relative;
}

/* Card Hover Glow */
.vmm-hex-card:hover,
.vmm-hex-card:focus {
  box-shadow:
    0 0 20px 6px rgba(135, 206, 255, 0.8),
    0 0 30px 10px rgba(135, 206, 255, 0.6);
}

/* Flip Inner */
.vmm-hex-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(.5, 1.7, .6, 1);
  transform-style: preserve-3d;
}
.vmm-hex-card:hover .vmm-hex-inner,
.vmm-hex-card:focus .vmm-hex-inner {
  transform: rotateY(180deg);
}

/* Front & Back Faces */
.vmm-hex-front,
.vmm-hex-back {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 21px 12px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  clip-path: inherit;
}

/* Front */
.vmm-hex-front {
  background: linear-gradient(120deg, #fff6e6 80%, #efe4fb 95%);
}

/* Color classes for icons */
/* .hex-vision .vmm-icon-front {
  background: linear-gradient(120deg, #092c5c 82%, #1B61A6 100%);
  box-shadow: 0 0 18px 2px #2A5298;
} */
/* .hex-maxim .vmm-icon-front {
  background: linear-gradient(10deg, #ffcc00 75%, #ffd966 100%);
  color: #381E00;
  box-shadow: 0 0 10px 2px #FFD700;
} */
.hex-mission .vmm-icon-front {
  background: linear-gradient(120deg, #706a752d 80%, #d8d1e6 105%);
  /* box-shadow: 0 0 18px 2px #4A00E0; */
}

.vmm-icon-front {
  font-size: 3rem;
  padding: 14px;
  border-radius: 50%;
  color: #fff;
  margin-bottom: 12px;
  transition: transform 0.3s;
}
.vmm-hex-card:hover .vmm-icon-front {
  transform: scale(1.15);
}

.vmm-heading-front {
  font-size: 1.3rem;
  color: #fafcff;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.vmm-short-front {
  font-size: 1.2rem;
  color: #fbfafc;
  font-weight: 600;
}

/* Back */
.vmm-hex-back {
  background: linear-gradient(120deg, #eaefff 78%, #fafadf 99%);
  color: #22253c;
  transform: rotateY(180deg);
  box-shadow: inset 0 0 10px rgba(255, 204, 0, 0.15);
}
.vmm-text-back {
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
  font-weight: 300;
  color: #f4f5f7;
}

/* Animation Pulse */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 0 15px 5px rgba(135, 206, 235, 0.7),
      0 0 25px 9px rgba(135, 206, 250, 0.6);
  }
  50% {
    box-shadow:
      0 0 25px 9px rgba(135, 206, 235, 1),
      0 0 40px 15px rgba(135, 206, 250, 0.9);
  }
}

.bg-vision {
  background:
    linear-gradient(135deg, rgba(9,44,92,0.60) 40%, rgba(255,255,255,0.15) 100%),
    url('../../img/vision.jpg') center center/cover no-repeat !important;
  position: relative;
}

.bg-maxim {
  background:
    linear-gradient(135deg, rgba(9,44,92,0.60) 40%, rgba(255,255,255,0.15) 100%),
    url('../../img/maxim.jpg') center center/cover no-repeat !important;
  position: relative;
}

.bg-mission {
  background:
    linear-gradient(135deg, rgba(9,44,92,0.60) 40%, rgba(255,255,255,0.15) 100%),
    url('../../img/mision.jpg') center center/cover no-repeat !important;
  position: relative;
}

/* Make sure content stays readable on top of the background */
.vmm-hex-front,
.vmm-hex-back {
  background: none !important;
}

/* You can additionally add a more prominent text shadow for readability */
.vmm-heading-front,
.vmm-short-front,
.vmm-text-back {
  text-shadow: 0 2px 12px rgba(0,0,0,0.18), 0 2px 3px rgba(0,0,0,0.09);
}


/* Responsive */
@media (max-width: 700px) {
  .vmm-hex-grid {
    width: 100%;
    gap: 20px;
  }
  .vmm-hex-row {
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
  }
  .vmm-hex-wrapper {
    width: 200px;
    height: 185px;
    padding: 4px;
  }
  .vmm-hex-middle-border {
    padding: 3px;
  }
  .vmm-hex-inner-border {
    padding: 2px;
  }
  .vmm-hex-card {
    width: 188px;
    height: 175px;
    padding: 10px 8px 10px 8px;
  }
  .vmm-icon-front {
    font-size: 2.2rem;
    padding: 10px;
  }
  .vmm-heading-front {
    font-size: 1rem;
  }
  .vmm-short-front {
    font-size: 0.7rem;
  }
  .vmm-text-back {
    font-size: 0.75rem;
  }
}
