/* Vision-Mission-Journey Container Enhanced Styles */
.vision-mission-journey {
  margin: 60px 0;
  position: relative;
  z-index: 10;
}

.vmj-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Card styling */
.vm-card {
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vm-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.vm-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  transition: all 0.4s ease;
}

.vm-card:hover .vm-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.pulse-glow {
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0px rgba(250, 208, 44, 0);
  }
  50% {
    box-shadow: 0 0 30px rgba(250, 208, 44, 0.3);
  }
}

.vm-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  text-align: center;
  color: #ffffff;
}

.journey-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: space-between;
}

/* Vision & Mission specific */
.vm-icon-wrapper,
.journey-icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.vm-card:hover .vm-icon-wrapper,
.vm-card:hover .journey-icon-wrapper {
  background: rgba(250, 208, 44, 0.2);
  transform: scale(1.1);
}

.vm-icon-wrapper i,
.journey-icon-wrapper i {
  font-size: 28px;
  color: #fad02c;
  transition: all 0.3s ease;
}

.vm-card h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-bottom: 15px;
}

.vm-card h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #fad02c;
}

.vm-card p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

/* Background images for cards */
.vision-card {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url('../images/vision-bg.jpg') no-repeat center/cover;
}

.mission-card {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url('../images/mission-bg.jpg') no-repeat center/cover;
}

.journey-card {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url('../images/cyaze.jpg') no-repeat center/cover;
}

/* Journey Timeline Mini */
.journey-timeline-mini {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.6s ease;
}

.timeline-point.animated {
  opacity: 1;
  transform: translateY(0);
}

.timeline-point.highlight .year {
  background: rgba(250, 208, 44, 0.3);
  box-shadow: 0 0 15px rgba(250, 208, 44, 0.5);
}

.year {
  font-size: 18px;
  font-weight: 700;
  color: #fad02c;
  margin-bottom: 5px;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 15px;
  border: 1px solid rgba(250, 208, 44, 0.3);
  transition: all 0.3s ease;
}

.point-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.timeline-connector {
  flex-grow: 1;
  height: 3px;
  background: rgba(250, 208, 44, 0.5);
  margin: 0 10px;
  position: relative;
  transform: scaleX(0);
  transition: transform 0.8s ease;
  transform-origin: left;
}

.timeline-connector.animated {
  transform: scaleX(1);
}

.timeline-connector:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%);
}

/* Standalone Journey Card Styles */
.vmj-container.journey-only .journey-card {
  max-width: 600px;
  margin: 0 auto;
  height: 350px;
}

.vmj-container.journey-only .journey-content {
  padding: 40px 30px;
}

.vmj-container.journey-only .journey-icon-wrapper {
  width: 70px;
  height: 70px;
  margin-bottom: 25px;
}

.vmj-container.journey-only .journey-icon-wrapper i {
  font-size: 32px;
}

.vmj-container.journey-only h3 {
  font-size: 32px;
  margin-bottom: 25px;
}

.vmj-container.journey-only .timeline-point .year {
  font-size: 20px;
}

.vmj-container.journey-only .timeline-point .point-label {
  font-size: 16px;
}

/* Responsive styles */
@media (max-width: 992px) {
  .vmj-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .vm-card {
    height: 280px;
  }

  .vm-card h3 {
    font-size: 24px;
  }

  .vm-card p {
    font-size: 14px;
  }

  .vm-icon-wrapper,
  .journey-icon-wrapper {
    width: 50px;
    height: 50px;
  }

  .vm-icon-wrapper i,
  .journey-icon-wrapper i {
    font-size: 24px;
  }

  .year {
    font-size: 16px;
  }
}
