.tabs {
  display: flex;
    flex-wrap: wrap; 
    align-items: flex-end;
    justify-content: flex-start; 
    margin-bottom: 0;
    border-bottom: none; 
    gap: 0px;
}

.tab {
  background-color: blue;
    color: white;
    padding: 10px 20px; 
    font-size: 18px; 
    border-radius: 10px 10px 0 0;
    border: 1px solid white;
    border-bottom: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 auto; 
    text-align: center;
    white-space: nowrap;
}

.tab-active {
  background-color: white;
    color: black;
    border-color: blue;
    border-bottom: 2px solid white; 
    position: relative; 
    z-index: 2; 
    margin-bottom: -1px;
}

/* Container for the tab bar */
.nav-tab-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  border-bottom: none; /* remove WP default line */
  gap: 0;
  margin-bottom: 0;
}

/* Tab buttons */
.nav-tab {
  background-color: #0073aa; /* WP blue */
  color: white;
  padding: 4px 7px;
  margin-left: .1em;
  font-size: 16px;
  font-weight: 300;
  border-radius: 10px 10px 0 0;
  border: 1px solid white;
  border-bottom: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 0 0 auto;
  text-align: center;
  white-space: nowrap;
}

/* Active tab override */
.nav-tab-active {
  background-color: white;
  color: black;
  border-color: #0073aa;
  border-bottom: 2px solid white;
  position: relative;
  z-index: 2;
  margin-bottom: -1px;
}

/* Tab content wrapper */
.tab-contents {
  border: 1px solid lightgray;
  padding: 20px;
  border-radius: 0 0 10px 10px;
  background: white;
  margin-top: -1px;
  z-index: 1;
  position: relative;
}

/* Each content block */
.tab-content {
  display: none;
}

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