.tabs-widget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tabs-widget h3 {
    margin: 0;
    font-size: 3em !important;
}

/* Desktop: two-column layout */
.tabs-widget .tabs {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

.tabs-widget .titles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tabs-widget .titles .title {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background .18s, color .18s, transform .15s;
}

.tabs-widget .titles .title.active {
    background: #111827;
    color: #fff;
}

/* Content panels */
.tabs-widget .contents {
    position: relative;
}

.tabs-widget .content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity .35s ease, max-height .45s ease, padding .35s ease;
    padding: 0 0;
}

.tabs-widget .content.active {
    max-height: 1200px;
    opacity: 1;
    padding: 0;
}

.tabs-widget .content-inner {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.tabs-widget .text-content {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.tabs-widget .content-inner h4 {
    font-size: 1.5em !important;
}

/* Mobile: single-column with horizontal titles */
@media (max-width: 768px) {
    .tabs-widget .tabs {
        grid-template-columns: 1fr;
    }

    .tabs-widget .titles {
        flex-direction: row;
        overflow: auto;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .tabs-widget .titles .title {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}
