.page-template-casestudy-full-grid .inner-page-main-content{
    margin-top: 95px;
}

.page-template-casestudy-full-grid .inner-page-hero-wrapper{
    padding: 0;
    background: linear-gradient(90deg, rgba(44, 83, 248, 0.05) 0%, rgba(150, 80, 227, 0.05) 50%, rgba(221, 34, 123, 0.05) 100%);
}

.page-template-casestudy-full-grid .inner-hero-content{
    background: transparent;
    max-width: 100%;
    gap: 50px;
}

.page-template-casestudy-full-grid .inner-hero-left-side{
    margin: 0;
    max-width: 630px;
    padding: 0;
}

.page-template-casestudy-full-grid .inner-hero-right-side{
    background-color: transparent;
    padding: 0;
    max-width: 668px;
}

.inner-hero-right-side-image{
    position: relative;
}

.banner-badge{
    position:absolute;
    left:-38px;
    top:-45px;
    width:126px;
    height:126px;
    border-radius:50%;
    background:#F9F6FD;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
}

.banner-badge img{
    width: 68px;
    height: 68px;
    position: relative;
    z-index: 2;
    object-fit: contain;
}

.circular-text{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    animation:rotateText 18s linear infinite;
    transform-origin:center;
}

.circular-text-content{
    fill:#525158;
    font-size:10px;
    letter-spacing:0.55px;
    text-transform:capitalize;
    font-weight:500;
}

.banner-main-image {
    width: 100%;
    border-radius: 60px;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.case-study-item {
    border-radius: 16px;
    overflow: hidden;
    height: 550px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

.case-study-item:before{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    background: #000000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.case-study-item:hover:before{
    opacity: 1;
}

.case-study-image {
    height: 388px;
    transition: height 0.3s ease-in-out;
}

.case-study-item:hover .case-study-image{
    height: 100%;
}

.case-study-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.case-study-content-details {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    row-gap: 14px;
    padding: 25px;
    position: absolute;
    left: 0;
    bottom: 0;
    min-height: 162px;
    border: 1px solid #4D52F2;
    border-top: 0px;
    border-radius: 16px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    transition: border 0.3s ease-in-out;
    width: 100%;
}

.case-study-item:hover .case-study-content-details{
    border-color: transparent;
}

.case-study-name-redirection{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.case-study-name{
    color: #484848;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: -0.4px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    transition: color 0.3s ease-in-out;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-study-desc {
    font-size: 18px;
    line-height: 27px;
    color: #606060;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease-in-out;
}

.case-study-item:hover .case-study-desc,
.case-study-item:hover .case-study-name{
    color: #fff;
}

.case-study-redirect-link{
    width: 42px;
    height: 42px;
    border-radius: 100% 0 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4D52F2;
    transition: all 0.3s ease-in-out;
}

.case-study-redirect-link img{
    filter: brightness(0) invert(1);
}

@keyframes rotateText{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

@media (max-width: 1399px){
    .page-template-casestudy-full-grid .inner-hero-content{
        gap: 35px;
    }

    .page-template-casestudy-full-grid .inner-hero-left-side {
        max-width: 560px;
    }
}

@media (max-width: 1199px){

    .page-template-casestudy-full-grid .inner-page-main-content {
        margin-top: 85px;
    }

    .page-template-casestudy-full-grid .inner-hero-left-side {
        max-width: 480px;
    }

    .banner-badge{
        width: 100px;
        height: 100px;
        left: -28px;
        top: -35px;
    }

    .banner-badge img {
        width: 48px;
        height: 48px;
    }

    .about-rlogical-section-content {
        max-width: calc(100% - 400px);
    }

    .about-rlogical-section-image {
        flex: auto;
        max-width: 350px;
        width: 100%;
    }

    .about-rlogical-section-wrapper .about-rlogical-image {
        width: 100%;
    }

    .case-study-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .case-study-content-details{
        padding: 20px;
        min-height: 152px;
    }

    .case-study-item{
        height: 530px;
    }

    .case-study-image {
        height: 378px;
    }
}

@media (max-width: 991px){

    .page-template-casestudy-full-grid .inner-page-main-content {
        margin-top: 70px;
    }

    .page-template-casestudy-full-grid .inner-hero-content {
        gap: 65px;
    }

    .page-template-casestudy-full-grid .inner-hero-left-side{
        max-width: 100%;
        background: transparent;
    }

    .page-template-casestudy-full-grid .inner-hero-right-side {
        max-width: 100%;
    }

    .case-study-item {
        height: 500px;
    }

    .case-study-image {
        height: 348px;
    }

    .case-study-content-details{
        row-gap: 10px;
    }

    .case-study-redirect-link {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 767px){

    .banner-badge {
        width: 85px;
        height: 85px;
        left: -18px;
        top: -25px;
    }

    .case-study-grid{
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (max-width: 575px){

    .page-template-casestudy-full-grid .inner-hero-content {
        gap: 50px;
    }

    .banner-badge img {
        width: 38px;
        height: 38px;
    }

    .banner-badge {
        left: -8px;
        top: -15px;
    }

    .page-template-casestudy-full-grid .inner-hero-content {
        gap: 40px;
    }
}

@media (max-width: 479px){

    .banner-badge{
        width: 70px;
        height: 70px;
    }

    .banner-badge img {
        width: 32px;
        height: 32px;
    }

    .about-rlogical-section-image {
        max-width: 100%;
    }

    .case-study-item {
        height: 478px;
    }

    .case-study-desc {
        font-size: 16px;
        line-height: 24px;
    }

    .case-study-content-details {
        row-gap: 7px;
        padding: 15px;
        min-height: 130px;
    }

    .case-study-name {
        font-size: 18px;
        line-height: 28px;
    }

    .case-study-redirect-link {
        width: 32px;
        height: 32px;
    }

    .case-study-redirect-link img{
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 400px){

    .case-study-grid{
        max-width: 296px;
        margin: 0 auto;
    }

    .case-study-image {
        height: 330px;
    }

    .case-study-item {
        height: 460px;
    }
}