.mehedi-it-tab-widget {
    width: 100%;
    box-sizing: border-box;
}

.mehedi-it-tabs-nav {
    display: flex;
    flex-wrap: nowrap; /* prevent wrapping */
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #ddd;
    user-select: none;
}

.mehedi-it-tab-item {
    flex: 1 1 0;
    width: 50%;
    max-width: 50%;
    text-align: center;
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mehedi-it-tabs-content {
    margin-top: -1px;
    border: 1px solid #ddd;
    padding: 10px;
}

.mehedi-it-tab-panel {
    display: none;
}

.mehedi-it-tab-panel.active {
    display: block;
}

.mehedi-it-post-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mehedi-it-post-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.mehedi-it-post-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
}

.mehedi-it-post-title {
    font-size: 14px;
    color: #333;
}

.mehedi-it-post-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.mehedi-it-post-link:hover .mehedi-it-post-title {
    text-decoration: underline;
}

/* fallback active tab style */
.mehedi-it-tab-widget .mehedi-it-tabs-nav .mehedi-it-tab-item.active {
    background-color: #0073aa !important;
    color: #ffffff !important;
}

/* Responsive: override widths so they stay side by side */
@media (max-width: 600px) {
    .mehedi-it-tabs-nav {
        flex-direction: row; /* keep in one line */
    }
    .mehedi-it-tab-item {
        /* ensure still equal half width on mobile */
        width: 50% !important;
        max-width: 50% !important;
        padding: 8px 10px;
    }
}
