/* ── Mansi Articles Widget ─────────────────────────────────────────────── */

.ma-wrapper {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 780px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

/* Section Title */
.ma-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.ma-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.ma-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

.ma-tab:hover {
    color: #1a73e8;
}

.ma-tab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

/* ── Article Card ────────────────────────────────────────────────────────── */
.ma-card {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
    transition: background .15s;
}

.ma-card:last-child {
    border-bottom: none;
}

/* Thumbnail */
.ma-img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 145px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}

.ma-img-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.ma-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.ma-card:hover .ma-img-wrap img {
    transform: scale(1.04);
}

/* Category Badge */
.ma-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(26, 115, 232, 0.92);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: .3px;
    pointer-events: none;
}

/* Content */
.ma-content {
    flex: 1;
    min-width: 0;
}

.ma-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.ma-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color .2s;
}

.ma-title a:hover {
    color: #1a73e8;
}

.ma-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta row */
.ma-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.ma-date {
    font-size: 12px;
    color: #999;
}

.ma-meta-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ma-readtime {
    font-size: 12px;
    color: #999;
}

.ma-read-btn {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 15px;
    border: 1px solid #1a73e8;
    color: #1a73e8;
    border-radius: 5px;
    background: transparent;
    text-decoration: none;
    transition: background .2s, color .2s;
    white-space: nowrap;
    display: inline-block;
}

.ma-read-btn:hover {
    background: #1a73e8;
    color: #fff;
}

/* ── Loader ──────────────────────────────────────────────────────────────── */
.ma-loader {
    display: flex;
    justify-content: center;
    padding: 3rem 0;
}

.ma-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e0e0e0;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: ma-spin .7s linear infinite;
    display: block;
}

@keyframes ma-spin {
    to { transform: rotate(360deg); }
}

/* No posts */
.ma-no-posts {
    text-align: center;
    color: #999;
    padding: 2rem 0;
    font-size: 14px;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.ma-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.ma-page-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    color: #555;
    background: #fff;
    transition: background .2s, color .2s, border-color .2s;
    font-family: inherit;
}

.ma-page-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #ccc;
}

.ma-page-btn.active {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
    pointer-events: none;
}

.ma-page-btn:disabled {
    opacity: .4;
    cursor: default;
}

.ma-page-dots {
    font-size: 13px;
    color: #aaa;
    padding: 0 4px;
    line-height: 32px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
    .ma-card {
        flex-direction: column;
        gap: 12px;
    }
    .ma-img-wrap {
        width: 100%;
        height: 180px;
    }
    .ma-pagination {
        gap: 3px;
    }
    .ma-page-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
