/* ========================================
   Featured Case Studies Section
   ======================================== */

.he_case_studies {
    position: relative;
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

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

.he_case_ti h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.he_case_ti h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f64b44 0%, #ff7b47 100%);
    border-radius: 2px;
}

/* View All Button */
.he_case_btn_wrap {
    text-align: center;
    margin-bottom: 50px;
}

.he_case_viewall {
    display: inline-block;
}

.he_case_viewall a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    position: relative;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.he_case_viewall a span {
    letter-spacing: .26em;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.he_case_viewall a svg {
    width: 24px;
    height: 24px;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1a1a1a;
}

.he_case_viewall a:hover {
    color: #f64b44;
}

.he_case_viewall a:hover span {
    transform: translateX(8px);
}

.he_case_viewall a:hover svg {
    color: #f64b44;
}

/* Slider Wrapper */
.he_case_slider_wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.he_case_slider {
    position: relative;
}

.he_case_slide {
    outline: none;
    padding: 0 10px;
}

.he_case_content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.he_case_content:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Case Image */
.he_case_image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.he_case_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.he_case_content:hover .he_case_image img {
    transform: scale(1.08);
}

.he_case_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.75) 100%);
    transition: opacity 0.5s ease;
}

.he_case_content:hover .he_case_overlay {
    opacity: 0.9;
}

/* Case Info */
.he_case_info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: #fff;
    z-index: 2;
}

.he_case_text_wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.he_case_title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.he_case_desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    max-width: 600px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Find Out How Button */
.he_case_action {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s,
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    text-align: right;
}

.he_case_link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    background: #fff;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.he_case_link:hover {
    transform: translateX(5px);
    background: #f64b44;
    color: #fff;
    box-shadow: 0 6px 25px rgba(246, 75, 68, 0.5);
}

.he_case_link svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.he_case_link:hover svg {
    transform: translateX(5px);
}

/* Navigation Arrows */
.he_case_nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.he_case_prev,
.he_case_next {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
}

.he_case_prev {
    left: -70px;
}

.he_case_next {
    right: -70px;
}

.he_case_prev:hover,
.he_case_next:hover {
    background: #f64b44;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(246, 75, 68, 0.4);
}

.he_case_prev svg,
.he_case_next svg {
    width: 24px;
    height: 24px;
}

/* Slick Dots Customization */
.he_case_slider .slick-dots {
    bottom: -50px;
    display: flex !important;
    justify-content: center;
    gap: 12px;
}

.he_case_slider .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
}

.he_case_slider .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.he_case_slider .slick-dots li button:before {
    display: none;
}

.he_case_slider .slick-dots li.slick-active button {
    width: 32px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f64b44 0%, #ff6b3d 100%);
}

/* Responsive Design */
@media screen and (max-width: 1280px) {
    .he_case_prev {
        left: 10px;
    }
    
    .he_case_next {
        right: 10px;
    }
}

@media screen and (max-width: 1024px) {
    .he_case_studies {
        padding: 60px 0 80px;
    }
    
    .he_case_ti h2 {
        font-size: 36px;
    }
    
    .he_case_image {
        height: 400px;
    }
    
    .he_case_title {
        font-size: 28px;
    }
    
    .he_case_info {
        padding: 30px;
    }
}

@media screen and (max-width: 768px) {
    .he_case_studies {
        padding: 50px 0 60px;
    }
    
    .he_case_ti {
        margin-bottom: 30px;
    }
    
    .he_case_ti h2 {
        font-size: 30px;
    }
    
    .he_case_btn_wrap {
        margin-bottom: 40px;
    }
    
    .he_case_viewall a {
        font-size: 16px;
    }
    
    .he_case_viewall a svg {
        width: 20px;
        height: 20px;
    }
    
    .he_case_image {
        height: 350px;
    }
    
    .he_case_info {
        padding: 24px;
    }
    
    .he_case_title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .he_case_desc {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .he_case_link {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .he_case_prev,
    .he_case_next {
        width: 40px;
        height: 40px;
    }
    
    .he_case_prev svg,
    .he_case_next svg {
        width: 20px;
        height: 20px;
    }
    
    .he_case_slider .slick-dots {
        bottom: -40px;
    }
}

@media screen and (max-width: 480px) {
    .he_case_ti h2 {
        font-size: 26px;
    }
    
    .he_case_viewall a {
        font-size: 15px;
    }
    
    .he_case_viewall a svg {
        width: 18px;
        height: 18px;
    }
    
    .he_case_image {
        height: 280px;
    }
    
    .he_case_info {
        padding: 20px;
    }
    
    .he_case_title {
        font-size: 20px;
    }
    
    .he_case_desc {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .he_case_prev {
        left: 5px;
    }
    
    .he_case_next {
        right: 5px;
    }
}
