.tabbed-stats-dynamic-outer {
  /* padding: 16px 4vw 32px 4vw; */
}

.tabbed-stats-tabs-row {
  display: flex;
  justify-content: space-between;
  border-radius: 4px 4px 0 0;
  overflow-x: auto;
  margin-bottom: 8px;
  gap: 4px;
}

.tabbed-stats-tab {
  flex: 1 1 0;
  text-align: center;
  padding: 16px 0 10px 0;
  font-weight: 500;
  color: #222;
  font-size: 5vw;
  min-width: 120px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: border 0.15s, font-weight 0.18s, color 0.18s;
  user-select: none;
  background: transparent;
  white-space: nowrap;
}

.tabbed-stats-tab.active {
  font-weight: 700;
  color: #111;
  border-bottom: 3px solid #111;
  background: #e6e6e6;
}

.tabbed-stats-content-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;     /* This makes both columns equal height! */
  /* Remove min-height, height, padding here */
}

.tabbed-stats-image-col {
  flex: 0 0 400px;
  max-width: 400px;
  min-width: 110px;
  display: flex;
  align-items: stretch;
  /* Remove height, min-height, padding, margin */
}

.tabbed-stats-image-col img {
  width: 100%;
  height: 100%;           /* This fills the column height! */
  object-fit: cover;
  display: block;
  border-radius: 0;
  /* Remove min-height! */
}

.tabbed-stats-main-col {
  flex: 1;
  padding: 32px 4vw 32px 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.tabbed-stats-number {
  font-size: 12vw;
  font-weight: 800;
  margin-bottom: 10px;
  margin-top: 0;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--dark-background-color, #111);
}

.tabbed-stats-title {
  font-size: 6vw;
  font-weight: 700;
  color: #111;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.15;
}

.tabbed-stats-description {
  color: #222;
  font-size: 4vw;
  margin-bottom: 18px;
  word-break: break-word;
  line-height: 1.5;
}

.tabbed-stats-readmore {
  font-weight: 700;
  color: #111;
  text-decoration: none;
  font-size: 4vw;
  cursor: pointer;
  letter-spacing: 0.8px;
  transition: text-decoration 0.15s;
  margin-top: 4px;
}

.tabbed-stats-readmore:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  /* Tabs stack vertically */
  .tabbed-stats-tabs-row {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 8px;
    overflow-x: unset;
  }
  .tabbed-stats-tab {
    min-width: 0;
    width: 100%;
    padding: 14px 0 10px 14px; /* more left padding for mobile */
    font-size: 5vw;
    border-bottom: none;
    border-left: 3px solid transparent;
    border-radius: 8px;
    text-align: left;
    background: transparent;
    transition: border 0.15s, background 0.18s, color 0.18s;
  }
  .tabbed-stats-tab.active {
    border-left: 3px solid #111;
    background: #e6e6e6;
    color: #111;
    font-weight: 700;
  }

  /* Content row stacks image over text */
  .tabbed-stats-content-row {
    flex-direction: column;
    min-height: unset;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: none;
  }

  .tabbed-stats-image-col {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 46vw;
    max-height: 220px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: stretch;
  }
  .tabbed-stats-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    display: block;
  }

  .tabbed-stats-main-col {
    padding: 16px 5vw 18px 5vw;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .tabbed-stats-number {
    font-size: 9vw;
    font-weight: 800;
    margin-bottom: 10px;
    margin-top: 0;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--dark-background-color, #111);
  }

  .tabbed-stats-title {
    font-size: 5vw;
    font-weight: 700;
    color: #111;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.15;
  }

  .tabbed-stats-description {
    color: #222;
    font-size: 4vw;
    margin-bottom: 18px;
    word-break: break-word;
    line-height: 1.5;
  }

  .tabbed-stats-readmore {
    font-weight: 700;
    color: #111;
    text-decoration: none;
    font-size: 4vw;
    cursor: pointer;
    letter-spacing: 0.8px;
    transition: text-decoration 0.15s;
    margin-top: 4px;
  }
  .tabbed-stats-readmore:hover {
    text-decoration: underline;
  }
}

/* For ultra small screens */
@media (max-width: 450px) {
  .tabbed-stats-main-col {
    padding: 10px 2vw 10px 2vw;
  }
  .tabbed-stats-number {
    font-size: 10vw;
  }
  .tabbed-stats-title {
    font-size: 6vw;
  }
  .tabbed-stats-readmore,
  .tabbed-stats-description {
    font-size: 4.2vw;
  }
}
