.hbc-cases {
    width: 100%;
    padding: 80px 0 100px;
    background: #f5f6f8;
}
.hbc-cases.hbc-cases-fullwidth {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
}
/* Clip horizontal overflow on case carousel ancestors to prevent scrollbar */
.elementor-widget-hbc_case_carousel,
.elementor-widget-hbc_case_carousel > .elementor-widget-container {
    overflow: clip !important;
}
.elementor-element:has(> .elementor-widget-hbc_case_carousel),
.elementor-widget-wrap:has(.hbc-cases-fullwidth),
.elementor-column:has(.hbc-cases-fullwidth),
.e-con:has(> .elementor-widget-hbc_case_carousel) {
    overflow: clip !important;
}
.hbc-cases-inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
}
.hbc-cases-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}
.hbc-cases-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hbc-case-slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
    aspect-ratio: 1920 / 700;
    overflow: hidden;
    border-radius: 20px;
}
.hbc-case-slide .hbc-case-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hbc-case-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0) 60%);
}
.hbc-case-content {
    position: absolute;
    top: 0;
    left: 0;
    padding: 50px 60px;
    z-index: 2;
    color: #fff;
}
.hbc-case-tag {
    font-size: 18px;
    font-weight: 500;
    color: #ff7900;
    margin-bottom: 30px;
}
.hbc-case-title {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.38;
    color: #fff;
    margin-bottom: 36px;
    max-width: 80%;
    white-space: pre-wrap;
}
.hbc-case-btns {
    display: flex;
    gap: 20px;
}
.hbc-case-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    min-width: 140px;
}
.hbc-case-btn.primary { background: #ff7900; color: #fff; border-color: #ff7900; }
.hbc-case-btn.primary:hover { background: #e56c00; border-color: #e56c00; }
.hbc-case-btn.secondary { background: #606060; color: #fff; }
.hbc-case-btn.secondary:hover { background: #ff7900; }
.hbc-case-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 30px 60px;
    background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    color: #fff;
}
.hbc-case-info-item {
    flex: 1 1 25%;
    min-width: 0;
    padding: 0 16px;
    border-left: 2px solid #ff7900;
}
.hbc-case-info-label {
    font-size: 16px;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.9;
}
.hbc-case-info-value {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.1;
    word-break: break-word;
}
.hbc-cases-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.25s;
    z-index: 5;
}
.hbc-cases-arrow:hover { background: #ff7900; border-color: #ff7900; }
.hbc-cases-arrow.prev { left: 24px; }
.hbc-cases-arrow.next { right: 24px; }
.hbc-cases-arrow svg { width: 22px; height: 22px; }
.hbc-cases-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}
.hbc-cases-dots button {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: #ccc;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, width 0.25s;
}
.hbc-cases-dots button.active { background: #ff7900; width: 48px; }

@media (max-width: 900px) {
    .hbc-cases { padding: 40px 0 50px; }
    .hbc-cases-inner { padding: 0 !important; }
    .hbc-cases-viewport { border-radius: 12px; }
    .hbc-case-slide { aspect-ratio: 9 / 14; border-radius: 12px; }
    .hbc-case-content { padding: 22px 18px; }
    .hbc-case-tag { font-size: 13px; margin-bottom: 12px; }
    .hbc-case-title { font-size: 20px; line-height: 1.3; margin-bottom: 20px; max-width: 100%; }
    .hbc-case-btn { padding: 10px 20px; font-size: 13px; min-width: auto; }
    .hbc-case-info {
        padding: 16px 14px;
        flex-wrap: wrap;
        gap: 10px 0;
    }
    .hbc-case-info-item {
        flex: 0 0 50%;
        padding: 0 10px;
        border-left-width: 2px;
    }
    .hbc-case-info-label { font-size: 11px; margin-bottom: 4px; }
    .hbc-case-info-value { font-size: 14px; }
    .hbc-cases-arrow { width: 38px; height: 38px; }
    .hbc-cases-arrow.prev { left: 8px; }
    .hbc-cases-arrow.next { right: 8px; }
}
