.acf-layout-full-container-tab {
  overflow: hidden;
}

.acf-layout-full-container-tab .content-p {
  font-weight: 400;
  font-size: clamp(0.875rem, 0.7821rem + 0.381vw, 1.125rem);
  line-height: 150%;
  letter-spacing: 0%;
  color: #161616;
}

.grievance-tab-nav {
  display: flex;
  justify-content: center;
  justify-content: space-between;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 10;
  padding-bottom: 20px;
  margin-bottom: -20px;
}

.grievance-tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 0 0 auto;
  min-width: 240px;
  /* max-width: 360px; */
  max-width: 390px;
  width: fit-content;

  padding: 24px 30px;

  border: 1px solid #ef4129;
  border-radius: 60px;
  position: relative;
  background: #fff;
  color: #1f1f1f;

  font-size: clamp(0.875rem, 0.7821rem + 0.381vw, 1.125rem);
  font-weight: 500;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn span {
  text-align: center;
  display: inline-block;
}

.tab-arrow {
  position: absolute;
}

.tab-btn:hover {
  color: #ef4129;
}

.tab-btn.active {
  background: #ef4129;
  color: #fff;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);

  width: 0;
  height: 0;

  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 18px solid #ef4129;

  z-index: 20;
}

.grievance-tabs {
  position: relative;
}

.tab-panel {
  display: none;
  background: #ef412933;
  border-radius: 16px;

  padding: 60px;

  margin-top: 20px;
  min-height: 520px;
  height: auto;
  position: relative;
  z-index: 3;
}

.tab-panel.active {
  display: block;
}

.grievance-tabs .content-wrap {
  padding: 0 5%;
}

.grievance-tabs .content {
  font-weight: 400;
  font-size: clamp(0.875rem, 0.8286rem + 0.1905vw, 1rem);
  line-height: 160%;
  color: #484848;

  height: 420px;
  overflow-y: auto;

  /* Firefox */
  scrollbar-width: none;

  /* IE & Edge (Legacy) */
  -ms-overflow-style: none;
}

.grievance-tabs .content a {
  color: #2f80ed !important;
  text-decoration: underline !important;
}

/* Chrome, Safari, Edge */
.grievance-tabs .content::-webkit-scrollbar {
  display: none;
}

.grievance-tabs .content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
  margin: 0 0 16px 0;
}

.grievance-tabs .content ul li {
  position: relative;
  padding-left: 24px;
}

.grievance-tabs .content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  transform: translateY(-50%);

  width: 10px;
  height: 10px;
  background: #ef4129;
  border-radius: 50%;
}

.tab-image {
  position: relative;
  max-width: 85%;
  margin: 0 auto;
}

.tab-image img {
  width: 100%;
  display: block;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
}

.tab-image::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 460px;
  height: 160px;
  background-size: contain;
  pointer-events: none;
}

.tab-illustration {
  position: absolute;
  right: 0;
  bottom: 0;

  width: 380px;
  height: 200px;

  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;

  pointer-events: none;
  z-index: 1;
}

/* ----------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   ---------------------------------------------------- */

/* Desktop Small / Laptop (992px to 1199px) */
@media (max-width: 1199.98px) {
  .tab-btn {
    min-width: 220px;
    padding: 20px 24px;
  }

  .tab-panel {
    padding: 40px 30px;
    min-height: 460px;
  }

  .grievance-tabs .content-wrap {
    padding: 0 2%;
  }

  .grievance-tabs .content {
    height: 380px;
  }

  .tab-image {
    max-width: 100%;
  }

  .tab-image img {
    height: 380px;
  }

  .tab-image::after {
    right: -20px;
    bottom: -20px;
    width: 320px;
    height: 120px;
  }

  .tab-illustration {
    width: 280px;
    height: 150px;
    opacity: 0.6;
  }
}

@media (min-width: 992px) and (max-width: 1439px) {
  .acf-layout-full-container-tab .content-p,
  .tab-btn,
  .content-wrap {
    font-size: 15px;
  }
}

/* Tablet (768px to 991px) */
@media (max-width: 991.98px) {
  .grievance-tab-nav {
    gap: 16px;
  }

  .tab-btn {
    min-width: 300px;
    max-width: 280px;
    padding: 16px 20px;
    border-radius: 40px;
  }

  .tab-btn.active::after {
    bottom: -14px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid #ef4129;
  }

  .tab-panel {
    padding: 36px 24px;
    height: auto;
    min-height: auto;
  }

  .grievance-tabs .content-wrap {
    padding: 0;
    margin-bottom: 30px;
  }

  .grievance-tabs .content {
    height: auto;
    max-height: none;
    overflow-y: visible;
  }

  .tab-image {
    max-width: 100%;
  }

  .tab-image img {
    height: 340px;
  }

  .tab-image::after {
    display: none;
  }

  .tab-illustration {
    display: none;
  }
}

/* Mobile Landscape & Portrait (Up to 767px) */
@media (max-width: 767.98px) {
  .grievance-tab-nav {
    gap: 12px;
  }

  .tab-btn {
    min-width: 160px;
    padding: 12px 16px;
    border-radius: 30px;
  }

  .tab-btn.active::after {
    bottom: -12px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #ef4129;
  }

  .tab-panel {
    padding: 24px 16px;
    border-radius: 12px;
    margin-top: 16px;
  }

  .grievance-tabs .content-wrap {
    margin-bottom: 20px;
  }

  .grievance-tabs .content-wrap .d-flex {
    justify-content: flex-start !important;
    margin-top: 20px;
  }

  .tab-image img {
    height: 250px;
  }
}

/* Mobile Small (Up to 575px) */
@media (max-width: 575.98px) {
  .tab-btn {
    min-width: 140px;
    padding: 10px 14px;
  }

  .tab-panel {
    padding: 20px 14px;
  }

  .tab-image img {
    height: 300px;
  }
}
