/* CSS for Mission vison purpose */
.acf-layout-mission-vison-purpose {
  background-color: #fff;
  width: 100%;
  overflow: hidden;
}

.mvp-section-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Wheel Wrapper - clips the top half of the circle, spans full container width */
.mvp-wheel-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  margin: 0 auto;
}

/* Rotating Wheel - full circle positioned so top half is outside wrapper */
.mvp-rotating-wheel {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 200%;
  border-radius: 50%;
  overflow: hidden;
  transform: rotate(var(--wheel-rotation, -60deg));
  transform-origin: 50% 50%;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

/* Sectors - 60-degree wedges pointing to the center */
.mvp-wheel-sector {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 96%;
  border-radius: 50%;
  transform: rotate(var(--sector-angle, 0deg));
  transform-origin: 50% 50%;
  clip-path: polygon(50% 50%, 21.13% 100%, 78.87% 100%);
  transition: background-color 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  overflow: hidden;
}

/* Default sector background colors (complementing the illustrations) */
.sector-mission,
.sector-mission-dup {
  background-color: #f6efe2; /* soft beige */
}

.sector-vision,
.sector-vision-dup {
  background-color: #e2e8f0; /* light gray-blue */
}

.sector-purpose,
.sector-purpose-dup {
  background-color: #f7d6d6; /* soft watercolor pink */
}

/* Active sector retains its custom backend background color */
.mvp-wheel-sector.is-active {
  cursor: default;
}

/* Image container inside the sector */
.sector-image-wrap {
  position: absolute;
  bottom: 0;
  left: 21.13%;
  width: 57.74%;
  height: 50%;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.sector-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback/Placeholder illustration styles */
.fallback-image .placeholder-art {
  width: clamp(60px, 10vw, 120px);
  height: clamp(60px, 10vw, 120px);
  border: 3px dashed #bbb;
  border-radius: 50%;
  position: relative;
}

/* Hide image in the active sector */
.mvp-wheel-sector.is-active .sector-image-wrap {
  opacity: 0;
  visibility: hidden;
}

/* Text container inside the sector */
.sector-text-wrap {
  position: absolute;
  bottom: 4%;
  left: 50%;
  width: clamp(280px, 45%, 600px);
  margin-left: calc(-1 * clamp(280px, 45%, 600px) / 2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  /* Counter-rotate text to keep it perfectly horizontal */
  transform: rotate(calc(-1 * (var(--wheel-rotation) + var(--sector-angle))))
    scale(0.9);
  transition:
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 0 4% !important;
}

.sector-title {
  font-family:
    var(--font-clash-display), "Clash Display", sans-serif !important;
  /* font-size: 62px; */
  font-size: clamp(1.5rem, 0.5284rem + 4.3182vw, 3.875rem);
  font-weight: 500;
  letter-spacing: clamp(2px, 0.3vw, 4px);
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0 clamp(4px, 0.8vw, 10px) 0;
  text-transform: uppercase;
}

.sector-desc p {
  font-family: "Archivo", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0%;
  text-align: center;
  color: #2c2d2d;
}

/* Show and scale up text in the active sector */
.mvp-wheel-sector.is-active .sector-text-wrap {
  opacity: 1;
  visibility: visible;
  transform: rotate(calc(-1 * (var(--wheel-rotation) + var(--sector-angle))))
    scale(1);
}

/* Dynamic text contrast based on background color luminance and section */
.mvp-wheel-sector.mvp-bg-dark .sector-title,
.sector-vision .sector-title {
  color: rgba(255, 255, 255, 0.3);
}

.sector-title {
  padding-bottom: 20px !important;
}

.mvp-wheel-sector.mvp-bg-dark .sector-desc,
.mvp-wheel-sector.mvp-bg-dark .sector-desc p,
.sector-vision .sector-desc,
.sector-vision .sector-desc p {
  color: #ffffff;
}

.mvp-wheel-sector.mvp-bg-light .sector-title,
.sector-mission .sector-title,
.sector-purpose .sector-title {
  color: #00000029;
}

.mvp-wheel-sector.mvp-bg-light .sector-desc,
.mvp-wheel-sector.mvp-bg-light .sector-desc p,
.sector-mission .sector-desc,
.sector-mission .sector-desc p,
.sector-purpose .sector-desc,
.sector-purpose .sector-desc p {
  color: #2c2d2d;
}

/* Center circle containing description of the overall concept */
.mvp-center-circle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 50%;
  background-color: #fff;
  border-radius: 0 0 9999px 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  z-index: 10;
  border: 1px solid #eaeaea;
  border-top: none;
}

.mvp-center-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 2% 13% 0 13%;
  text-align: center;
}

.mvp-center-content p {
  font-family:
    var(--font-clash-display), "Clash Display", sans-serif !important;
  font-weight: 400;
  font-size: 24px;
  line-height: 35px;
  letter-spacing: 0%;
  text-align: center;
  color: #555555;
  font-weight: 400;
  margin: 0;
}

/* Tabs Navigation */
.mvp-tabs-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1.5vw, 20px);
  margin-top: clamp(24px, 3.5vw, 45px);
  width: 100%;
  margin-bottom: 60px;
}

.mvp-tab-btn {
  background: none;
  border: none;
  font-family:
    var(--font-clash-display), "Clash Display", sans-serif !important;
  font-weight: 400;
  /* font-size: 48px; */
  font-size: clamp(1.375rem, 0.7102rem + 2.9545vw, 3rem);
  text-align: center;
  color: #000000;
  cursor: pointer;
  padding: 15px 0;
  position: relative;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.mvp-tab-btn.active {
  border-bottom: 1px solid #000000;
}

.mvp-tab-btn:focus {
  outline: none;
}

.mvp-tab-btn::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background-color: #2c2d2d;
  transition:
    width 0.3s ease,
    left 0.3s ease;
}

.mvp-tab-btn.active::after {
  width: 100%;
  left: 0;
}

.mvp-tab-dot {
  width: 20px;
  height: 20px;
  background-color: #d1d1d1;
  border-radius: 50%;
  display: inline-block;
}

/* Mobile elements hidden by default on desktop */
.mvp-mobile-active-desc,
.mvp-mobile-center-content {
  display: none;
}

/* Desktop styles from 1280px and above */
@media (min-width: 1280px) {
  .mvp-mobile-active-desc,
  .mvp-mobile-center-content {
    display: none !important;
  }
}

@media (min-width: 1280px) and (max-width: 1440px) {
  .sector-text-wrap {
    bottom: 0;
  }
}

.mvp-center-content p{
    font-size: 24px;
}
.sector-desc p{
    font-size: 20px;
}

@media (min-width: 1200px) and (max-width: 1400px) {

    .mvp-center-content p{
        font-size: 18px;
        line-height: normal;
    }
    
    .sector-desc p{
        font-size: 18px;
    }
}

/* Mobile & Tablet layout for screens up to 1279px */
@media (max-width: 1279px) {
  /* Hide text inside center circle cutout so only the clean white circle shows */
  .mvp-center-circle .mvp-center-content {
    display: none !important;
  }

  /* Inside wheel active sector: hide description paragraph and center title */
  .mvp-wheel-sector .sector-desc {
    display: none !important;
  }

  .sector-text-wrap {
    bottom: 11%;
    width: 80%;
    margin-left: -40%;
    padding: 0 !important;
  }

  .sector-title {
    padding-bottom: 0 !important;
    margin: 0 !important;
    white-space: nowrap;
    font-size: clamp(1.25rem, 3.8vw, 2.5rem);
  }

  /* Active sector description below the wheel */
  .mvp-mobile-active-desc {
    display: block;
    width: 100%;
    max-width: 600px;
    margin-top: clamp(20px, 3.5vw, 36px);
    padding: 0 clamp(16px, 4vw, 24px);
    text-align: center;
  }

  .mvp-mobile-desc-item {
    display: none;
  }

  .mvp-mobile-desc-item.is-active {
    display: block;
    animation: mvpFadeIn 0.35s ease forwards;
  }

  .mvp-mobile-desc-item p {
    font-family: "Archivo", sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: normal;
    text-align: center;
    color: #2c2d2d;
    margin: 0;
  }

  /* Navigation Tabs */
  .mvp-tabs-navigation {
    margin-top: clamp(24px, 4vw, 40px);
    margin-bottom: clamp(20px, 3.5vw, 36px);
    gap: clamp(8px, 1.8vw, 18px);
  }

  .mvp-tab-btn {
    font-size: clamp(1.125rem, 3.2vw, 2.25rem);
    padding: 8px 0;
  }

  .mvp-tab-dot {
    width: clamp(10px, 1.5vw, 16px);
    height: clamp(10px, 1.5vw, 16px);
  }

  /* Center content below tabs */
  .mvp-mobile-center-content {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px) clamp(24px, 4vw, 40px)
      clamp(16px, 4vw, 24px);
    text-align: center;
  }

  .mvp-mobile-center-content p {
    font-family:
      var(--font-clash-display), "Clash Display", sans-serif !important;
    font-weight: 400;
    font-size: clamp(15px, 2vw, 20px);
    line-height: 1.55;
    letter-spacing: 0%;
    text-align: center;
    color: #555555;
    margin: 0;
  }
  .mvp-tab-btn.active {
    border-bottom: none;
  }
}

@keyframes mvpFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
