/* Worxogo Insurance Proven Results Widget Styles */

.insurance-proven-results-widget {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: visible !important;
}

.insurance-proven-results-widget h1 {
  text-align: center;
  color: #4000a9;
  font-family: "AlbertSans-Bold", sans-serif;
  font-size: 48px;
  margin-bottom: 60px;
}

.tabs-container {
  margin: 0 auto;
  position: relative;
  overflow: visible !important;
}

/* Top tab navigation */
.tabs-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px !important;
  position: relative;
  overflow-x: auto;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 10px;
  z-index: 1;
}

.tab {
  overflow: visible;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 10px 16px;
  border: 1.5px solid #4000a9;
  border-radius: 24px;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  color: #4000a9;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  z-index: 50;
  overflow: visible !important;
}

.tab:hover {
  background: #f8f9fa;
}

.tab.active {
  background: #4000a9;
  color: #fff;
  box-shadow: 0 6px 14px rgba(64, 0, 169, 0.18);
}

/* Horizontal line with dots */
.separator {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 4px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4000a9;
  flex-shrink: 0;
}

.line {
  flex: 1;
  height: 2px;
  background-image: repeating-linear-gradient(
    to right,
    #4000a9 0,
    #4000a9 12px,
    transparent 12px,
    transparent 24px
  );
  background-size: 24px 100%;
}

/* Tab content */
.tab-content {
  display: none;
  text-align: center;
  padding: 20px;
  min-height: 150px;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content h2 {
  font-size: 3rem;
  color: #4000a9;
  margin-bottom: 8px;
  font-family: "Inter-Bold", sans-serif;
  font-weight: 700;
}

.tab-content p {
  color: #4b484e;
  font-family: "AlbertSans-Regular", sans-serif;
  font-size: 16px;
  line-height: 150%;
  margin: 8px 0;
}

.tab-content p strong {
  font-family: "AlbertSans-SemiBold", sans-serif;
  font-weight: 600;
  color: #4000a9;
}

/* Content Grid Layout */
.insurance-proven-results-widget .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

h2.pre-title-heading {
  font-size: 40px !important;
}

/* Individual content items */
.insurance-proven-results-widget .content-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 280px;
  flex: 1;
  max-width: 350px;
}

/* Pre-title styles */
.insurance-proven-results-widget .pre-title {
  margin-bottom: 20px;
}

.insurance-proven-results-widget .number-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4000a9;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  font-family: "Inter-Bold", sans-serif;
}

.insurance-proven-results-widget .pre-title-heading {
  font-size: 18px;
  color: #4000a9;
  margin: 0;
  font-family: "Inter-Bold", sans-serif;
  font-weight: 700;
}

/* Content text styles */
.insurance-proven-results-widget .content-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insurance-proven-results-widget .content-title {
  font-size: 18px;
  color: #4000a9;
  margin: 0;
  font-family: "AlbertSans-SemiBold", sans-serif;
  font-weight: 600;
}

.insurance-proven-results-widget .content-description {
  color: #4b484e;
  font-family: "AlbertSans-Regular", sans-serif;
  font-size: 16px;
  line-height: 150%;
  margin: 0;
}

/* Special layout for 4 items (3 in first row, 1 centered below) */
.insurance-proven-results-widget .content-grid[data-items="4"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 40px;
}

.insurance-proven-results-widget .content-grid[data-items="4"] .content-item {
  flex: 0 1 calc(33.333% - 40px);
}

.insurance-proven-results-widget
  .content-grid[data-items="4"]
  .content-item:nth-child(4) {
  flex: 0 1 calc(33.333% - 40px);
  margin: 0 auto;
  margin-top: 20px;
}

/* Special layout for 5 items - simple flexbox with even spacing */
.insurance-proven-results-widget .content-grid[data-items="5"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 40px;
}

.insurance-proven-results-widget .content-grid[data-items="5"] .content-item {
  flex: 0 1 calc(40% - 40px);
}

.insurance-proven-results-widget
  .content-grid[data-items="5"]
  .content-item:nth-child(1),
.insurance-proven-results-widget
  .content-grid[data-items="5"]
  .content-item:nth-child(2),
.insurance-proven-results-widget
  .content-grid[data-items="5"]
  .content-item:nth-child(3) {
  flex: 0 1 calc(30% - 40px);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .insurance-proven-results-widget .content-grid {
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
  }

  .insurance-proven-results-widget .content-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: unset;
    gap: 20px;
  }

  .insurance-proven-results-widget .pre-title {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .insurance-proven-results-widget .number-circle {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .insurance-proven-results-widget .pre-title-heading {
    font-size: 18px;
  }

  .insurance-proven-results-widget .content-title {
    font-size: 18px;
  }

  .insurance-proven-results-widget .content-description {
    font-size: 15px;
  }

  /* Override specific layouts for mobile */
  .insurance-proven-results-widget .content-grid[data-items="4"] .content-item,
  .insurance-proven-results-widget .content-grid[data-items="5"] .content-item {
    flex: 1 1 100% !important;
    margin: 0;
  }

  .insurance-proven-results-widget
    .content-grid[data-items="4"]
    .content-item:nth-child(4) {
    margin-top: 0;
  }
}

/* Vertical connector for active tab */
.insurance-proven-results-widget .tab.active::after {
  content: "" !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 2px !important;
  height: 108px !important;
  margin-top: 10px !important;
  z-index: 9999 !important;
}

@keyframes move-dash-vertical {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 16px;
  }
}

/* Top dot */
.insurance-proven-results-widget .tab.active::before {
  content: "" !important;
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #4000a9 !important;
  z-index: 9999 !important;
}

/* Bottom dot */
.insurance-proven-results-widget .tab.active span.dot-end {
  content: "" !important;
  position: absolute !important;
  top: calc(100% + 113px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #4000a9 !important;
  z-index: 9999 !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .insurance-proven-results-widget {
    padding: 30px 15px;
  }

  .insurance-proven-results-widget h1 {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .tabs-nav {
    gap: 20px;

    justify-content: flex-start;
    padding-bottom: 15px;
  }

  .separator {
    margin-bottom: 20px;
  }

  .tab-content h2 {
    font-size: 2.5rem;
  }

  .tab-content p {
    font-size: 15px;
  }

  /* Reduce vertical connector height on mobile */
  .tab.active::after {
    height: 50px;
    margin-top: 8px;
  }

  /* Adjust bottom dot position */
  .tab.active span.dot-end {
    top: calc(100% + 65px - 4px);
  }
}

@media (max-width: 576px) {
  .insurance-proven-results-widget {
    padding: 20px 10px;
  }

  .insurance-proven-results-widget h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .tabs-nav {
    gap: 15px;
  }

  .tab-content h2 {
    font-size: 2rem;
  }

  .tab-content p {
    font-size: 14px;
  }

  /* Further reduce vertical connector on small mobile */
  .tab.active::after {
    height: 40px;
    margin-top: 6px;
  }

  /* Adjust bottom dot position */
  .tab.active span.dot-end {
    top: calc(100% + 55px - 4px);
  }
}

/* Scroll indicator for mobile */
@media (max-width: 768px) {
}
