body{
    background-color: #000;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}
.orangetext{
    color: #ec7f1e;
}
.allblogsicon{
    display: none;
}
.casestudysec1{
    height: 180px;
    position: relative;
    width: 100vw;
    transform: translateY(90px);
}
.casestudysec1:before {
    content: '';
    background: url('/assets/resources/doodle-case.png') no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: .8;
    top: 0;
}
.casestudycont{
    margin-top: 110px;
}
.casestudysec1 .heading{
    color: #fefefe;
    font-size: 45px;
    font-weight: 500;
    margin-top: 30px;
}
.casestudy1 .mainheading{
    color: #fefefe;
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 0px;
}
.casestudy1 a{
    text-decoration: none;
}
.casestudy1 .casecard{
    border-radius: 10px;
    position: relative;
    border: 2px solid transparent;
    padding: 15px;
    height: 280px;
    width: 320px;
    display: flex;
    overflow: hidden;
    &:hover{
        border: 2px solid #ec7e1ecc;
    }
}
.casestudy1 .casecard img{
    width: 400px;
    height: 180px;
    object-fit: fill;
}
.casestudy1 .casecard .heading{
    color: #fefefe;
    font-size: 20px;
    font-weight: 500;
}
.casestudy1 .casecard .description{
    color: #fefefe;
    font-size: 16px;
}
.main, .sub {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.main {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    padding: 20px;
    background-color: #1c1c1c;
}
.sub {
    background-color: #1c1c1c;
    transform: translateX(-100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 20px 15px 15px 15px;
}
.main .more{
    background-color: #ec7f1e;
    display: none;
    border-radius: 8px;
    padding: 5px;
    margin-left: auto;
    align-items: center;
    gap: 10px;
    width: 140px;
}
.main button{
    font-size: 12px;
    color: #fefefe;
}
.sub .more{
    position: absolute;
    background-color: #ec7f1e;
    display: inline;
    margin-top: 20px;
    padding: 7px;
    right: 15px;
    bottom: 20px;
    border-radius: 8px;
}
.casecard:hover .main {
    transform: translateX(100%);
    opacity: 0;
}

.casecard:hover .sub {
    transform: translateX(0);
    opacity: 1;
}
.sub button{
    font-size: 16px;
    color: #fefefe;
}
.sub .more {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 160px;
}

.sub .more button {
    display: inline;
    background-color: #ec7f1e;
    color: #fff;
    border: none;
    padding:2px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}
.sub .arrow {
    vertical-align: middle;
}
.main .description{
    display: none;
}
.ellipse1{
    position: absolute;
    top: -10%;
    right: -10%;
    z-index: -1;
}
.ellipse3{
    position: absolute;
    top: 20%;
    right: -30%;
    z-index: -1;
}
.ellipse4{
    position: absolute;
    top: 50%;
    left: -20%;
    z-index: -1;
}
@media(max-width:1400px){
    .casestudy1 .casecard{
        width: 280px;
        height: 250px;
    }
    .casestudy1 .casecard .heading{
        font-size: 17px;
    }
     .casestudysec1 {
        height: 20%;
    }
    .casestudysec1 .heading {
        font-size: 35px;
    }
    .casestudy1 .mainheading {
        font-size: 25px;
    }
    .casestudy1 .casecard img{
        height: 160px;
    }
    .sub .more button{
        font-size: 14px;
    }
    .sub .more{
        width: 140px;
    }
}
@media(max-width:1200px){
    .casestudysec1 {
        height: 20%;
    }
    .casestudysec1 .heading {
        font-size: 35px;
    }
    .casestudy1 .mainheading {
        font-size: 18px;
    }
    .casestudy1 .casecard .description{
        display: none;
    }
    .casestudy1 .casecard{
        width: 235px;
        height: 230px;
    }
    .casestudy1 .casecard .heading{
        font-size: 18px;
    }
    .ellipse1{
        position: absolute;
        top: -10%;
        right: -10%;
        z-index: -1;
    }
    .ellipse3{
        position: absolute;
        top: 20%;
        right: -30%;
        z-index: -1;
        display: none;
    }
    .ellipse4{
        position: absolute;
        top: 50%;
        left: -20%;
        z-index: -1;
    }
    .arrow {
        width: 20px !important;
        height: 20px !important;
    }
}
@media(max-width:1200px){
    .ellipse1{
        position: absolute;
        top: -10%;
        right: 0%;
        z-index: -1;
    }
}
@media(max-width:1100px){
    .main .more{
        background-color: #ec7f1e;
        display: flex;
        border-radius: 8px;
        padding: 5px;
        margin-left: auto;
        align-items: center;
        gap: 10px;
        width: 120px;
    }
    .main .description{
        font-size: 12px !important;
        display: inline;
        height: 57px;
        overflow: hidden;
    }
    .casestudy1 .casecard img {
        width: 400px;
        height: 100px;
    }
    .casestudy1 .casecard .heading{
        font-size: 14px;
        margin-bottom: 5px;
        height: 50px;
        overflow: hidden;
    }
    .casecard:hover .main {
        transform: translateX(0%);
        opacity: 1;
    }
    .casecard:hover .sub {
        transform: translateX(100%);
        opacity: 0;
    }
}
@media(max-width:992px){
    .ellipse1,.ellipse2,.ellipse3,.ellipse4,.ellipse5{
        display: none;
    }
}
@media(max-width:767px){
    .casestudysec1 {
        height: 230px;
    }
    .casestudy1 .casecard{
        width: 230px;
        height: 200px;
        margin-bottom: 0px;
    }
    .casestudy1 .casecard .heading{
        font-size: 12px;
        margin-bottom: 0px !important;
        height: 45px;
        overflow: hidden;
    }
    .casestudy1 .casecard .description {
        color: #fefefe;
        font-size: 10px !important;
    }
    .casestudy1 .casecard img {
        width: 400px;
        height: 100px;
    }
    .casecard:hover .main {
        transform: translateX(0%);
        opacity: 1;
    }
    .casecard:hover .sub {
        transform: translateX(100%);
        opacity: 0;
    }
    .main .description{
        display: inline;
        height: 33px;
        overflow: hidden;
    }
    .main .more{
        width: 90px;
        font-size: 10px;
        gap: 5px;
        padding: 3px;
    }
    .main button{
        font-size: 10px;
        padding: 0px;
    }
}
@media(max-width:570px){
    .casestudysec1 .heading {
        font-size: 25px;
    }
    .casestudy1 .mainheading {
        font-size: 16px;
    }
    .casestudysec1 {
        height: 10%;
    }
    .casestudy1 .casecard{
        width: 200px;
        height: 200px;
        margin-bottom: 10px;
    }
    .casestudy1 .casecard .heading{
        font-size: 12px;
        height: 47px;
        margin-bottom: 3px;
    }
    .casecard .main {
        padding: 10px;
    }
    .casestudy1 .casecard .description {
        color: #fefefe;
        font-size: 10px;
    }
    .casestudy1 .casecard img {
        width: 400px;
        height: 100px;
        object-fit: cover;
    }
    .main .description{
        height: 45px;
        font-size: 10px !important;
    }
    .main .more{
        width: 90px;
    }
    .main button{
        font-size: 10px;
        color: #fefefe;
    }
    .casestudycont{
        margin-top: 75px;
    }
     .casestudycont1{
        margin-top: 95px;
    }
     .casestudysec1 {
        height: 12%;
    }
    .blogfooter{
        margin-top: 0px !important;
    }
    .blogfooter p{
        padding-top: 5px !important;
        margin-bottom: 0px;
    }
    .socialicon{
        margin-bottom: 0px !important;
    }
}
@media(max-width:400px) {
    .casestudy1 .casecard{
        width: 180px;
        height: 200px;
        margin-bottom: 0px;
    }
}
@media(max-height:500px){
    .casestudysec1 {
        height: 200px;
    }
}