.dh-tabs {
    padding: 60px 0;
}

.dh-tabs__header {
    text-align: center;
    margin-bottom: 40px;
}

.dh-tabs__overline {
    color: var(--primary-red-100);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.dh-tabs__title {
    font-size: 32px;
    font-weight: 700;
    max-width: 900px;
    margin: 0 auto;
}

.dh-tabs__header-description {
    color: var(--primary-black-80, #414954);
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.32;
    /* 132% */
    max-width: 850px;
    margin: 16px auto 0;
    /* Add top margin for spacing from title */
}

/* Nav Pills */
.dh-tabs__nav-container {
    margin-bottom: 40px;
    width: 100%;
}

.dh-tabs__nav-button {
    background: var(--primary-grey-20, #F7F8FA);
    border: none;
    border-radius: 999px;
    color: var(--primary-black-100, #111B29);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;

    /* User specific styles */
    display: flex;
    padding: 14px 40px;
    flex-direction: row;
    /* Changed to row as per 'en linea' feedback */
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.dh-tabs__nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: inherit;
    /* Ensure wrapper inherits color */
}

.dh-tabs__nav-icon svg,
.dh-tabs__nav-icon img {
    width: 100%;
    height: 100%;
    /* fill: currentColor; Removed to allow SVGs to use currentColor or fill/stroke as needed */
    object-fit: contain;
}

/* Active State */
.dh-tabs__nav-button.active,
.dh-tabs__nav-button:hover {
    background: var(--light-red, #FCE7E8);
    color: var(--primary-red-100, #DF002F);
}

.dh-tabs__nav-button.active .dh-tabs__nav-icon svg,
.dh-tabs__nav-button:hover .dh-tabs__nav-icon svg {
    fill: var(--primary-red-100, #DF002F);
}

/* Content */
.dh-tabs__content-item {
    display: none;
    animation: fadeIn 0.5s ease;
    gap: 40px;
    align-items: center;
}

.dh-tabs__content-item.active {
    display: flex;
}

.dh-tabs__content-text {
    flex: 1;
    padding: 30px;
}

.dh-tabs__item-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-black-100);
}

.dh-tabs__item-description {
    font-size: 16px;
    line-height: 1.5;
    color: var(--primary-grey-100);
    margin-bottom: 30px;
}

/* Checklist */
.dh-tabs__checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    /* gap removed to use borders/padding */
}

.dh-tabs__checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--primary-black-100);
    font-size: 16px;
    line-height: 1.5;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-red, #FCE7E8);
    width: 100%;
}

.dh-tabs__checklist-item:last-child {
    border-bottom: none;
}

.dh-tabs__checklist-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    flex-shrink: 0;
}

.dh-tabs__checklist-icon svg {
    width: 100%;
    height: 100%;
}

/* CTA Box */
.dh-tabs__cta-box {
    border-radius: 10px;
    background: var(--white-red);
    /* Kept var name consistent with theme, fallback match */
    display: flex;
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    align-self: stretch;
}

.dh-tabs__cta-text {
    font-size: 16px;
    font-weight: 700;
    /* Bold as per design */
    color: var(--primary-black-100);
    margin: 0;
    line-height: 1.4;
}

.dh-tabs__cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red-100);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.dh-tabs__cta-link:hover {
    gap: 12px;
    color: var(--primary-red-60);
}

.dh-tabs__cta-link:hover svg path {
    stroke: var(--primary-red-60);
    transition: stroke 0.3s ease;
}

.dh-tabs__cta-link svg {
    width: 16px;
    height: 16px;
}

.dh-tabs__content-image-wrapper {
    flex: 1;
}

.dh-tabs__content-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Mobile Responsive */
@media (max-width: 767px) {
    .dh-tabs__content-item {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .dh-tabs__content-text {
        padding: 0;
    }

    /* Mobile Typography Overrides */
    .dh-tabs__title {
        font-size: 28px;
    }

    .dh-tabs__item-title {
        font-size: 22px;
    }

    .dh-tabs__nav-swiper {
        padding-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .dh-tabs__nav-swiper .swiper-slide:last-child {
        margin-right: 0 !important;
    }
}

.dh-tabs__nav-swiper {
    overflow: visible !important;
    /* Allow peeking */
    clip-path: polygon(0% -50%, 250% -50%, 250% 150%, 0% 150%);
    /* Prevent cutting off shadows but allow visible overflow */
}

.dh-tabs__nav-item {
    width: max-content !important;
    /* Force content width */
    max-width: none !important;
    min-width: 0;
    flex-shrink: 0;
}

.dh-tabs__nav-swiper .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
}