.case-study-container {
    margin: auto !important;
    margin-top: 4% !important;
    width: 93%;
}

.dropdown-containerjd {
    width: 100%;
    max-width: 400px; 
    margin: 20px auto 40px auto;
}

.dropdownjd {
    margin-bottom: 10px;
}

.dropdown-labeljd {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background-color: #40C6D6;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    align-items: center;
    transition: all 0.3s ease; 
}

.arrow {
    font-size: 18px;
    transition: transform 0.3s ease; 
}

.dropdown-contentjd {
    display: none;
    padding: 10px 0;
    background-color: #ffffff;
    border: 1px solid #40C6D6;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-itemjd {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.dropdown-itemjd:hover {
    background-color: #f0f0f0;
}

.dropdown-togglejd:checked + .dropdown-labeljd + .dropdown-contentjd {
    display: block;
}

.dropdown-togglejd:checked + .dropdown-labeljd .arrow {
    transform: rotate(180deg); 
}

.dropdown-containerjd {
    display: none;
}

.tab-containerj {
    display: block;
}

@media (max-width: 768px) {

    .dropdown-containerjd {
        display: block;
        width: 100%; 
    }

    .tab-containerj {
        display: none !important;
    }

    .dropdown-labeljd {
        font-size: 14px; 
        padding: 10px;
        display: flex !important;
        margin-left: 0% !important;
    }

    .arrow {
        font-size: 16px; 
    }

    .dropdown-itemjd {
        font-size: 13px; 
    }
}

.tab-j {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 0 5px;
}

.tab-j.active .content-containerj{
    border-top: none !important;
}

 .tab-containerj {
     display: flex;
     gap: 10px;
 }

 .tab-j {
     padding: 10px 20px;
     background-color: rgba(64, 198, 214, 0.2);
     border-radius: 5px;
     cursor: pointer;
 }

 .content-containerj {
    display: none;
    position: relative;
    border: 2px solid #40C6D6;
    border-radius: 10px;
    padding: 0 15px;
    /* background: #fff;
    border-top: none; */
}

.content-containerj::before, #industries::before {
    content: "";
    position: absolute;
    top: 0;
    height: 1px;
    background-color: #40C6D6;
}

.content-containerj::before, #technology::before {
    height: 1px;
}

.content-containerj::before, #solutions::before {
    height: 1px;
}

.content-containerj::after,  #solutions::after {
    content: "";
    position: absolute;
    top: 0;
    right: 3px;
    height: 1px;
    background-color: #40C6D6;
}

 .categories-j, .categories2-j, .categories3-j {
     display: flex;
     flex-wrap: wrap;
     gap: 8px;
     padding: 10px;
 }

 .categories-j a, .categories2-j a,  .categories3-j a {
     position: relative;
     padding: 5px 10px;
     text-decoration: none;
     color: #333;
     cursor: pointer;
 }
 .categories-j a:not(:last-child)::after, .categories2-j a:not(:last-child)::after, .categories3-j a:not(:last-child)::after {
     content: "|";
     position: absolute;
     right: -8px;
     color: #333;
 }
 
 .categories-j a.active-link, .categories2-j a.active-link, .categories3-j a.active-link {
     color: #40C6D6;
     font-weight: bold;
 }

@media (min-width: 1024px) and (max-width: 1280px) {
    .tab-containerj {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .tab-j {
        padding: 15px 25px;
        font-size: 16px;
    }

    .content-containerj {
        width: 100%;
    }

    .categories-j a, .categories2-j a, .categories3-j a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .categories-j, .categories2-j, .categories3-j {
        gap: 10px;
    }

    li.case-study-tab.tab-j.active:before {
        left: -43px !important;
        top: 38px !important;
    }

    li.case-study-tab.tab-j.active:after {
        right: -43px !important;
        top: 38px !important;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {

.custom-imagejd1 { width: 255px !important;}
.custom-contentjd1 { margin-left: 6%;}

}

@media (min-width: 1281px) and (max-width: 1366px) {
    .tab-containerj {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .tab-j {
        padding: 15px 30px;
        font-size: 18px;
    }

    .content-containerj {
        width: 100%;
        border-radius: 5px;
    }

    .categories-j a, .categories2-j a, .categories3-j a {
        padding: 12px 20px;
        font-size: 16px;
    }

    .categories-j, .categories2-j, .categories3-j {
        gap: 10px;
    }

    li.case-study-tab.tab-j.active:before {
        left: -47.6px !important;
        top: 40px !important;
    }

    li.case-study-tab.tab-j.active:after {
        right: -47.6px !important;
        top: 40px !important;
    }
}

@media (min-width: 1367px) and (max-width: 1440px) {
    .tab-containerj {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .tab-j {
        padding: 15px 30px;
        font-size: 20px;
    }

    .content-containerj {
        width: 100%;
    }

    .categories-j a, .categories2-j a, .categories3-j a {
        padding: 15px 25px;
        font-size: 18px;
    }

    li.case-study-tab.tab-j.active:before {
        left: -47px !important;
        top: 42px !important;
    }

    li.case-study-tab.tab-j.active:after {
        right: -48px !important;
        top: 38px !important;
    }
}

@media (min-width: 1368px) and (max-width: 1440px) {
    li.case-study-tab.tab-j.active:before {
        left: -47px !important;
        top: 42px !important;
    }
    li.case-study-tab.tab-j.active:after {
        right: -48px !important;
        top: 42px !important;
    }
    li.case-study-tab.tab-j.active:before {
        left: -47.8px !important;
        top: 41px !important;
    }
}

@media (min-width: 1441px) and (max-width: 1519px) {
    .tab-containerj {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .tab-j {
        padding: 20px 35px;
        font-size: 22px;
    }

    .content-containerj {
        width: 100%;
    }

    .categories-j a, .categories2-j a, .categories3-j a {
        padding: 20px 30px;
        font-size: 16px;
    }

    .categories-j, .categories2-j, .categories3-j {
        gap: 10px;
    }

}

/* Media Query for 1520px to 1920px */
@media (min-width: 1520px) and (max-width: 1920px) {
    .tab-containerj {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .tab-j {
        font-size: 24px;
    }

    .content-containerj {
        width: 100%;
    }
   
    .categories-j a, .categories2-j a, .categories3-j a {
        padding: 20px 30px;
        font-size: 22px;
        gap: 0px !important;
    }

    .custom-imagejd1 img {
        width: 28% !important;
    }
    li.case-study-tab.tab-j.active:before {
        left: -38px !important;
        top: 39px !important;
    }

    li.case-study-tab.tab-j.active:after {
        right: -38px !important;
        top: 39px !important;
    }
}

.custom-sectionjd {
    display: grid;
    justify-content: center;
    align-items: center;
    font-family: Lato, sans-serif;
}

.custom-cardjd1 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
    border: 1px solid #e0dfdf;
    margin: auto auto 70px auto;
    width:85%;
}

.custom-cardjd1:hover {
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
    background-color: #d8f4ff;
}

.custom-imagejd1 {
    width: 398px;
    height: auto;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.custom-imagejd1 img {
    width: 35%;
    height: auto;
    position: absolute;
    left: -68px;
}

.custom-contentjd1 {
    margin-left: 5%;
    flex: 1;
    max-width: 100%;
}

.custom-titlejd1 {
    font-size: 22px;
    font-weight: 500;
    line-height: 24px;
}

.custom-categoryjd1 {
    font-size: 36px;
    font-weight: bold;
}

.custom-textjd1 {
    font-size: 22px;
    margin-top: 10px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.custom-butnjd1 {
    margin-top: 10px;
    background-color: #40C6D6;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    float: right;
    box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.2);
    position: relative;
    right: 3%;
    overflow: hidden;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    outline: none; 
}

/* Hover Effect */
.custom-butnjd1:hover {
    background: #414a56;
    color: white;
    box-shadow: 0 0 15px rgba(64, 198, 214, 0.7); 
}

/* Vertical Lines */
.custom-butnjd1::before,
.custom-butnjd1::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 0;
    background: #40C6D6;
    transition: height 0.5s ease-in-out;
}

.custom-butnjd1::before {
    right: 0;
    top: 0;
}

.custom-butnjd1::after {
    left: 0;
    bottom: 0;
}

/* Horizontal Lines */
.custom-butnjd1 span {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.custom-butnjd1 span::before,
.custom-butnjd1 span::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #40C6D6;
    transition: width 0.5s ease-in-out;
}

.custom-butnjd1 span::before {
    left: 0;
    top: 0;
}

.custom-butnjd1 span::after {
    right: 0;
    bottom: 0;
}

.custom-butnjd1:hover span::before,
.custom-butnjd1:hover span::after {
    width: 100%;
}

/* Remove focus outline when clicked */
.custom-butnjd1:focus-visible {
    outline: none;
}

.custom-cardjd2 {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
    margin-top: 7%;
    border: 1px solid #e0dfdf;
}

.custom-cardjd2:hover {
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
    background-color: #d8f4ff;
}

.custom-imagejd2 {
    width: 398px;
    height: auto;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.custom-imagejd2 img {
    width: 35%;
    height: auto;
    position: absolute;
    left: -68px;
}

.custom-contentjd2 {
    margin-left: -6%;
    flex: 1;
    max-width: 700px;
}

.custom-titlejd2 {
    font-size: 22px;
    font-weight: 500;
    line-height: 24px;
}

.custom-categoryjd2 {
    font-size: 36px;
    font-weight: bold;
}

.custom-textjd2 {
    font-size: 22px;
    margin-top: 10px;
    color: #333;
}

.custom-butnjd2 {
    margin-top: 10px;
    background-color: #40C6D6;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    float: right;
    box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.2);
    position: relative;
    right: 5%;
}

.custom-cardjd3 {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
    margin-top: 7%;
    border: 1px solid #e0dfdf;
}

.custom-cardjd3:hover {
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
    background-color: #d8f4ff;
}

.custom-imagejd3 {
    width: 398px;
    height: auto;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.custom-imagejd3 img {
    width: 35%;
    height: auto;
    position: absolute;
    left: -68px;
}

.custom-contentjd3 {
    margin-left: -6%;
    flex: 1;
    max-width: 700px;
}

.custom-titlejd3 {
    font-size: 22px;
    font-weight: 500;
    line-height: 24px;
}

.custom-categoryjd3 {
    font-size: 36px;
    font-weight: bold;
}

.custom-textjd3 {
    font-size: 22px;
    margin-top: 10px;
    color: #333;
}

.custom-butnjd3 {
    margin-top: 10px;
    background-color: #40C6D6;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    float: right;
    box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.2);
    position: relative;
    right: 5%;
}

#case-study-posts {
    margin-top: 3% !important;
    width: 104%;
}

/* Responsive Design */

@media (max-width: 768px){

    .custom-categoryjd1 {
        font-size: 24px !important;
    }

    .custom-sectionjd {
        padding-top: 20%;
        display: block;
    }

    .custom-cardjd1, .custom-cardjd2, .custom-cardjd3 {
        display: block;
        margin-bottom: 25%;
        width: 90%;
    }

    .custom-cardjd2, .custom-cardjd3{
    margin-top: 25%;
    }

    .custom-imagejd1, .custom-imagejd2, .custom-imagejd3 {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .custom-imagejd1 img, .custom-imagejd2 img, .custom-imagejd3 img {
        width: 80%;
        position: absolute;
        left: 10%;
    }

    .custom-contentjd1, .custom-contentjd2, .custom-contentjd3 {
        display: grid;
        text-align: center;
        margin-top: 30%;
        margin-left: 0%;
    }

    .custom-textjd1, .custom-textjd2 , .custom-textjd3  {
        font-size: 14px;
    }

    .custom-butnjd1, .custom-butnjd2, .custom-butnjd3 {
        float: none;
        right: 0%;
        width: 80%;
        margin: auto;
    }

    .case-study-tab-content.active {
        display: none !important;
    }

    #case-study-posts {
        margin-top: 25% !important;
        width: 100%;
    }
}

/* portfolio tabs work*/
.case-study-tabs-container {
    width: 100%;
}

.case-study-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.case-study-tab {
    cursor: pointer;
    margin-bottom: 15px;
    margin-left: 0;
}

.tab-j.active {
    border: 2px solid #40C6D6;
    border-bottom-color: #FFF;
    border-radius: 10px 10px 0px 0px;
    z-index: 1;
    background: #fff;
    text-transform: capitalize;
    margin-bottom: -3px;
}

ul.case-study-tabs.tab-containerj:before {
    content: "";
    position: absolute;
    width: 100%;
    bottom: 0;
    z-index: 1;
}

li.case-study-tab.tab-j.active:before {
    background: url('../../assets/images/leftcurve.svg') no-repeat !important;
    content: "" !important;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain !important;
    left: -37.6px;
    position: relative;
    top: 22px;
}

li.case-study-tab.tab-j.active:after {
    background: url('../../assets/images/rightcurve.svg') no-repeat !important;
    content: "" !important;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain !important;
    right: -38.2px;
    position: relative;
    top: 22px;
}

ul.case-study-tabs li.case-study-tab:nth-child(1):before {
    content: none !important;
}

.content-containerj:first-child {
    border-top-left-radius: 0;
}

.case-study-tab-content {
    display: none;
}

.case-study-tab-content.active {
    display: block;
}

.child-categories {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    text-transform: capitalize;
}

.child-category {
    text-decoration: none;
    color: #333;
    display: inline-block;
    position: relative;
    background-color: white !important;
}

.child-category.active {
    position: relative;
    padding: 5px 10px;
    text-decoration: none;
    color: #40C6D6 !important;
    font-weight: bold;
    cursor: pointer;
    background-color: #ffffff !important;
}

.case-study-dropdown {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
}

.case-study-dropdown-contents {
    position: relative;
    margin-top: 20px;
}

.case-study-dropdown-content {
    display: none;
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #fff;
}

.case-study-dropdown-content.active {
    display: block;
}

.child-categories {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.child-category {
    padding: 5px 10px;
    cursor: pointer;
    background-color: #f1f1f1;
    margin-bottom: 5px;
    display: inline-block;
}

.child-category:not(:last-child)::after{
    content: "|";
    position: relative;
    right: -8px;
    color: #333;
}

.child-category:hover {
    background-color: #e1e1e1;
}

.dropdown-itemjd.active {
    background-color: #f0f0f0;
    color: #333;
}
/*  portfolio tabs end*/

@media (min-width: 769px) and (max-width: 820px) {
    .custom-cardjd1 {
        width: 85%;
    }

    .custom-imagejd1 img {
        width: 45%;
        left: -35px;
    }
}

