#mission-vision {
  background: #fdfdfd; 
  color: #222222;
  padding: 60px 40px;
}

#mission-vision .container {
  max-width: 1100px;
  margin: 0 auto;
}

#mission-vision h2 {
  color: #222222;
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 40px;
}

.content-wrapper {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.mv-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 180px;
}

.mv-list .mv-tab {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #555; 
  cursor: pointer;
  padding-bottom: 4px;
  text-align: left;
  position: relative; 
  transition: color 0.3s ease;
  border-bottom: none; 
}

.mv-list .mv-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #6C4193;
  transition: width 0.3s ease, font-weight 1s ease, color 0.3s ease;
}
.mv-list .mv-tab:hover {
  color: #6C4193; 
  font-weight: 600;
}
.mv-list .mv-tab:hover::after {
  width: 35%;
}

.mv-list .mv-tab.active {
  color: #6C4193; 
  font-weight: 600;
}

.mv-list .mv-tab.active::after {
  width: 35%;
}

.mv-text {
  flex: 1;
  max-width: 1000px;
  font-size: 2rem;
  font-weight: bold;
  color: #222222;
  line-height: 1.3;
  position: relative;
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
  /* optionally add a small transform for subtle movement */
  transform: translateY(0);
  transition-property: opacity, transform;
  transition-duration: 0.4s;
  transition-timing-function: ease-in-out;
}

.mv-text.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.mv-text.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.mv-text .quote {
  font-size: 3rem;
  vertical-align: top;
  user-select: none;
}

.mv-text .quote.purple {
  color: #6C4193;
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }
  .mv-list {
    flex-direction: row;
    gap: 30px;
    margin-bottom: 30px;
    min-width: auto;
  }
  .mv-list .mv-tab {
    font-size: 1.1rem;
    border-bottom: none;
    border-left: 4px solid transparent;
    padding-left: 10px;
    position: relative;
  }
  /* Adjust underline to left border on small screens */
  .mv-list .mv-tab::after {
    content: none; /* hide underline on small */
  }
  .mv-list .mv-tab.active {
    border-left-color: #6C4193; /* purple */
    border-bottom: none;
    color: #6C4193;
    font-weight: 600;
  }
  .mv-text {
    font-size: 1.5rem;
  }
}
