/* BioImaging horizontal tabs - drop-in replacement for Arconix Shortcodes [tabs]/[tab] */
/* Designed for the dark page background used on the Image Contest pages. */

.bio-tabs-wrap {
    margin: 20px 0;
}

/* Tab navigation bar */
.bio-tab-nav {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 0 0 0;
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.bio-tab-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 20px;
    cursor: pointer;
    transition: color 0.25s ease, background-color 0.25s ease;
    position: relative;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

.bio-tab-button:hover,
.bio-tab-button:focus {
    color: #009688;
	font-weight: bold;
    background-color: rgba(255, 255, 255, 0.08);
    outline: none;
}

.bio-tab-button.active {
    color: #009688;
	font-weight: bold;
}

.bio-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: #ffffff;
}

/* Tab content panels */
.bio-tab-content {
    display: none;
    padding: 20px 0;
    animation: bioTabFadeIn 0.3s ease;
}

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

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

/* Inherit text styling from the surrounding page - no heavy overrides needed,
   since the Image Contest page already styles white text on the dark background. */

/* Responsive: let tabs wrap on narrow screens, shrink padding */
@media (max-width: 768px) {
    .bio-tab-button {
        padding: 10px 12px;
        font-size: 14px;
    }
}
