.expertise-tabs {
    background-color: var(--white);
    padding: clamp(40px, 5vw, 100px) 0;
    overflow: hidden;
    position: relative;
}

@media (min-width: 1025px) {
    .expertise-tabs,
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
}

.expertise-tabs__wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.5vw, 40px);
}

.expertise-tabs__header {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vw, 16px);
}

.expertise-tabs__title {
    font-family: PP Neue Montreal, sans-serif;
    font-weight: 500;
    font-size: clamp(28px, 2.92vw, 56px);
    line-height: 130%;
    text-transform: uppercase;
    color: var(--gray-100);
}

.expertise-tabs__nav-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 1px solid var(--gray-20);
    margin-bottom: clamp(20px, 2.5vw, 40px);
}

.expertise-tabs__nav-container::-webkit-scrollbar {
    display: none;
}

.expertise-tabs__nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.08vw, 32px);
    width: max-content;
    min-width: 100%;
}

.expertise-tabs__tab-btn {
    padding: clamp(10px, 1.25vw, 20px) 0;
    font-family: PP Neue Montreal, sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 0.94vw, 18px);
    line-height: 140%;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--gray-80);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.expertise-tabs__tab-btn:hover {
    color: var(--gray-100);
}

.expertise-tabs__tab-btn.is-active {
    color: var(--gray-100);
    font-weight: 500;
}

.expertise-tabs__tab-btn.is-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gray-100);
}

/* Tab Panels */
.expertise-tabs__content {
    position: relative;
    width: 100%;
    min-height: 300px;
}

.expertise-tabs__panel {
    width: 100%;
}

/* Transitions */
.expertise-fade-enter {
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.expertise-fade-enter-start {
    opacity: 0;
    transform: translateY(12px);
}

.expertise-fade-enter-end {
    opacity: 1;
    transform: translateY(0);
}

/* Scoped Overrides for Nested Blocks inside Expertise Tabs */
.expertise-tabs .image-and-text {
    padding: 0;
    background: transparent;
}

.expertise-tabs .image-and-text__wrapper {
    display: flex;
    flex-direction: column !important;
    gap: clamp(20px, 2.5vw, 36px);
}

.expertise-tabs .image-and-text__image-section {
    width: 100%;
    max-width: 100%;
    height: clamp(240px, 55vw, 420px);
    order: 1;
}

.expertise-tabs .image-and-text__text-section {
    width: 100%;
    max-width: 100%;
    order: 2;
}

.expertise-tabs .image-and-text__image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: clamp(12px, 1.25vw, 20px);
}

/* Responsive adjustments for tablet / mobile */
@media (max-width: 1024px) {
    .expertise-tabs {
        padding: clamp(32px, 5vw, 60px) 0;
    }

    .expertise-tabs__nav-container {
        margin-left: calc(-1 * clamp(20px, 8.3vw, 160px));
        margin-right: calc(-1 * clamp(20px, 8.3vw, 160px));
        padding-left: clamp(20px, 8.3vw, 160px);
        padding-right: clamp(20px, 8.3vw, 160px);
        width: calc(100% + 2 * clamp(20px, 8.3vw, 160px));
        box-sizing: border-box;
    }

    .expertise-tabs__tab-btn {
        padding: 9px 18px;
        font-size: 14px;
    }
}
