
.case-studies-section {
    width: 100%;
    background: #029993;
    padding: 60px 20px;
    position: relative;
}
.case-item {
    cursor: pointer;
}

.case-studies-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.case-studies-section h2 {
    color: #fff;
    margin-bottom: 50px;
    letter-spacing: 2px;
   /* font-size: 36px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 50px; */
}

.case-studies-grid {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 70px;
    overflow: visible;
    transition: all 0.3s ease;
    position: relative;
}

.case-studies-grid.carousel-mode {
    flex-wrap: nowrap;
    overflow: visible;
    scroll-behavior: smooth;
}

.case-studies-grid.grid-mode {
    flex-wrap: wrap;
    justify-content: center;
    max-height: none;
}

.grid-mode .case-item {
    width: calc(25% - 30px);
    min-width: 220px;
}

@media (max-width: 1200px) {
    .grid-mode .case-item {
        width: calc(33.33% - 30px);
    }
}

@media (max-width: 900px) {
    .grid-mode .case-item {
        width: calc(50% - 30px);
    }
}

@media (max-width: 600px) {
    .grid-mode .case-item {
        width: 100%;
    }
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.case-item2 {
    width: 220px;
    min-width: 220px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.case-item {
    width: 220px;
    min-width: 220px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    text-align: center;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.carousel-mode .case-item {
    flex-shrink: 0;
}

.grid-mode .case-item {
    min-width: auto;
}

.case-item img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px dashed rgba(255,255,255,.7);
    padding: 5px;
}

.case-item h3 {
    /* color: #fff;
    font-size: 16px;
    font-weight: 400;
    margin: 15px 0 10px;
    line-height: 1.4;
    min-height: 45px; */
    color: #fff;
       
    margin: 15px 0 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
}

.case-item .divider {
    display: block;
    width: 35px;
    height: 3px;
    background: #d8ff4c;
    margin: 12px auto;
}

.case-item p {
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-case {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.nav-case.hidden {
    opacity: 0;
    pointer-events: none;
}

.prev-case {
    left: 100px;
}

.next-case {
    right: 100px;
}

 
.see-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    padding: 12px 35px;
    border-radius: 50px;
    background: #f2f2f2;
    color: #444;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s ease;

    border: none;
    box-shadow: none;
    outline: none;
}

.see-all-btn:hover {
    background: #e0e0e0;
}

 
/* Mobile */
@media (max-width: 767px) {
    .case-studies-grid {
        justify-content: center;
    }
    
    .carousel-wrapper {
        max-width: 100%;
    }
    
    .case-item {
        width: 100%;
        min-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .case-item img {
        display: block;
        margin: 0 auto;
    }
    
    .prev-case {
        left: 10px;
    }
    
    .next-case {
        right: 10px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
}

/* Desktop */
@media (min-width: 1025px) {
}