/*********************************** Case Studies Hero Section Start Here **************************************/

.td-case-hero-wrapper{
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    margin-top: -110px;
    padding-top: 0px;
    min-height: 484px;
}

/* ====================================
   GRID IMAGE
==================================== */

.td-grid-bg{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    height: 484px;

    z-index: 1;
    pointer-events: none;
}

.td-grid-bg img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.td-grid-dark{
    display: none !important;
}

html[data-theme="dark"] .td-grid-light{
    display: none !important;
}

html[data-theme="dark"] .td-grid-dark{
    display: block !important;
}

/* ====================================
   HERO CONTENT AREA
==================================== */

.td-case-hero{
    position: relative;
    z-index: 5;

    width: min(1200px, calc(100% - 60px));
    margin: 0 auto;

    height: 484px;

    display: flex;
    justify-content: center;

    padding-top: 174px;
    box-sizing: border-box;
}

/* ====================================
   CONTENT WRAPPER
==================================== */

.td-case-content{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

/* ====================================
   LABEL
==================================== */

.td-about-label{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;

    color: var(--td-text);
}

.td-dot{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff0000;
}

/* ====================================
   HEADING
==================================== */

.td-case-content h1{
    margin: 0;

    font-family: "Tomorrow", sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 67px;
    letter-spacing: .2px;
    text-align: center;

    color: var(--td-text);
}

.td-case-content h1 span{
    color: var(--td-accent);
}

/* ====================================
   DESCRIPTION
==================================== */

.td-case-content p{
    max-width: 507px;
    margin: 0;

    font-family: "Nunito", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 19px;
    letter-spacing: .2px;
    text-align: center;

    color: var(--td-muted);
}

/* ====================================
   TABLET
==================================== */

@media (max-width:1024px){

    .td-case-hero{
        height: 301px;
        padding-top: 140px;
    }

    .td-case-hero-wrapper{
        min-height: 400px;
    }

    .td-case-content{
        max-width: 700px;
    }

    .td-case-content h1{
        font-size: 48px;
        line-height: 58px;
    }

    .td-case-content p{
        max-width: 500px;
        font-size: 14px;
        line-height: 19px;
    }

    .td-grid-bg{
        width: 100%;
    }
}

/* ====================================
   MOBILE
==================================== */

@media (max-width:767px){

    .td-case-hero-wrapper{
        min-height: 270px;
        margin-top: -110px;
        overflow: hidden;
    }

    .td-case-hero{
        width: calc(100% - 40px);
        height: 220px;

        padding-top: 76px;

        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .td-case-content{
        padding-top: 40px;
        width: 100%;
        gap: 15px;
    }

    .td-about-label{
        gap: 5px;
        font-size: 8px;
        line-height: 11px;
    }

    .td-dot{
        width: 6px;
        height: 6px;
    }

    .td-case-content h1{
        max-width: 294px;

        margin: 0 auto;

        font-size: 18px;
        font-weight: 700;
        line-height: 22px;
        letter-spacing: 0.2px;
        text-align: center;
    }

    .td-case-content p{
        max-width: 210px;

        margin: 0 auto;

        font-size: 8px;
        font-weight: 400;
        line-height: 11px;
        letter-spacing: 0.2px;
        text-align: center;
    }

    .td-grid-bg{
        width: 100%;
        height: 270px;
    }

    .td-grid-bg img{
        object-fit: cover;
        object-position: center top;
    }
}

/*********************************** Case Studies Hero Section End Here **************************************/

/*********************************** Case Studies Our Badge Section Start Here  **************************************/

.td-badges-section{
    position:relative;
    width:100%;
    overflow:hidden;
    padding-top:60px;
    
}

/* ====================================
TITLE
==================================== */

.td-badges-title{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin-bottom:20px;
}

.td-badges-title p{
    margin:0;
    font-family:"JetBrains Mono", monospace;
    font-size:12px;
    font-weight:400;
    line-height:16px;
    color:var(--td-text);
}

.td-line{
    width:300px;
    max-width:300px;
    height:1px;
    display:block;
}

.td-line:first-child{
    background:linear-gradient(
        90deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.7) 100%
    );
}

.td-line:last-child{
    background:linear-gradient(
        270deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.7) 100%
    );
}

html[data-theme="dark"] .td-line:first-child{
    background:linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.5) 100%
    );
}

html[data-theme="dark"] .td-line:last-child{
    background:linear-gradient(
        270deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.5) 100%
    );
}

/* ====================================
MARQUEE
==================================== */

.td-badges-marquee{
    width:min(1200px, calc(100% - 40px));
    margin:0 auto;
    overflow:hidden;
}

.td-badges-track{
    display:flex;
    align-items:center;
    gap:80px;
    width:max-content;
    animation:tdBadgesMarquee 30s linear infinite;
}

.td-badges-marquee:hover .td-badges-track{
    animation-play-state:paused;
}

@keyframes tdBadgesMarquee{
    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }
}

/* ====================================
BADGE ITEM
==================================== */

.td-badge-item{
    display:flex;
    align-items:center;
    gap:10px;
    flex-shrink:0;
}

.td-badge-item img{
    width:35px;
    height:35px;
    display:block;
}

.td-badge-item span{
    font-family:"Tomorrow", sans-serif;
    font-size:16px;
    font-weight:400;
    line-height:19px;
    white-space:nowrap;
}

/* ====================================
COLORS
==================================== */

.td-core span{
    color:#CA0404;
}

.td-meetup span{
    color:#FC911F;
}

.td-support-team span{
    color:#008CAA;
}

.td-support-contributor span{
    color:#048CAC;
}

.td-plugin span{
    color:#F06925;
}

.td-translation-editor span {
    color: #cc4295;
}

.td-translation-contributor span {
    color: #cc4295;
}

.td-wordcamp-organizer span {
    color: #ec8404;
}

.td-wordcamp-speaker span {
    color: #ec8404;
}

.td-themes-team span {
    color: #4b3393;
}


/* ====================================
DARK THEME BADGES
==================================== */

html[data-theme="dark"] .td-badge-item span{
    color:#FFFFFF !important;
}

html[data-theme="dark"] .td-badge-item img{
    filter:brightness(0) invert(1);
}

/* Translation Editor - Dark Theme */
html[data-theme="dark"] .td-badge-item.td-translation-editor img {
    filter: grayscale(1) invert(1) brightness(1.4) contrast(1.2) !important;
}

/* ====================================
TABLET
==================================== */

@media(max-width:1024px){

    .td-badges-section{
        padding-top:60px;
    }

    .td-badges-marquee{
        width:calc(100% - 40px);
    }

    .td-line{
        width:180px;
        max-width:180px;
    }

    .td-badges-track{
        gap:60px;
    }

    .td-badge-item span{
        font-size:14px;
    }
}

/* ====================================
MOBILE
==================================== */

@media(max-width:767px){

    .td-badges-section{
        padding-top:40px;
    }

    .td-badges-marquee{
        width:calc(100% - 30px);
    }

    .td-line{
        width:80px;
        max-width:80px;
    }

    .td-badges-track{
        gap:40px;
    }

    .td-badge-item img{
        width:28px;
        height:28px;
    }

    .td-badge-item span{
        font-size:12px;
        line-height:16px;
    }
}

/*********************************** Case Studies Our Badge Section End Here  **************************************/

/*********************************** CASE STUDIES LIST SECTION START **************************************/

.td-case-list-section{
    width:min(1201px, calc(100% - 60px));
    margin:100px auto;
    display:flex;
    flex-direction:column;
    gap:60px;
}

/* ========================== FEATURED CASE STUDY ============================== */

.td-featured-case{
    display:grid;
    grid-template-columns:563px 1fr;
    gap:30px;
    align-items:center;
}

/* IMAGE */

.td-featured-image{
    display:block;
    width:100%;
    overflow:hidden;
    border-radius:20px;
}

.td-featured-image img{
    display:block;
    width:100%;
    height:353px;
    object-fit:cover;
    border-radius:20px;
    transition:.35s ease;
}

.td-featured-image:hover img{
    transform:scale(1.03);
}

/* CONTENT */

.td-featured-content{
    display:flex;
    flex-direction:column;
    gap:32px;
}

.td-featured-text{
    display:flex;
    flex-direction:column;
    gap:25px;
}

/* META */

.td-case-meta{
    display:flex;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
}

.td-case-category,
.td-case-date{
    display:flex;
    align-items:center;
    gap:6px;
    font-family:"JetBrains Mono", monospace;
    font-size:12px;
    line-height:16px;
    color:var(--td-text);
}
.td-case-date img{
    width:10px;
    height:10px;
    object-fit:contain;
    flex-shrink:0;
}

.td-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#ff0000;
}

/* TITLE */
.td-featured-content h2{
    margin:0;
    max-width:493px;
    font-family:"Tomorrow",sans-serif;
    font-size:28px;
    line-height:34px;
    font-weight:600;
    letter-spacing:.2px;
    color:var(--td-text);
}

/* DESCRIPTION */

.td-featured-content p{
    margin:0;
    max-width:587px;
    font-family:"Nunito",sans-serif;
    font-size:16px;
    line-height:22px;
    color:var(--td-muted);
}

/* ARROW */

.td-case-arrow,
.td-card-arrow{
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--td-text);
    border-radius:50%;
    color:var(--td-text);
    transition:.3s ease;
}

.td-case-arrow{
    width:44px;
    height:44px;
}

.td-case-arrow svg,
.td-card-arrow svg{
    width:14px;
    height:14px;
}

.td-case-arrow:hover,
.td-card-arrow:hover{
    background:#ff0000;
    border-color:#ff0000;
    color:#fff;
    transform:translateX(5px);
}

/* ================== GRID ================= */

.td-case-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:59px;
}
/* CARD */
.td-case-card{
    position:relative;
    display:flex;
    flex-direction:column;
    min-height:478px;
    background:rgba(255,0,0,.06);
    border-radius:25px;
    overflow:hidden;
    transition:.35s ease;
}

html[data-theme="dark"] .td-case-card{
    background:rgba(255,255,255,.04);
}

.td-case-card:hover{
    transform:translateY(-8px);
}

/* CARD IMAGE */

.td-case-card-image{
    display:block;
    padding:20px 20px 0;
}



.td-case-card-image img{
    display:block;
    width:100%;
    height:201px;
    object-fit:cover;
    border-radius:20px;
    transition:.35s ease;
}

.td-case-card:hover .td-case-card-image img{
    transform:scale(1.04);
}

/* BODY */

.td-case-card-body{
    display:flex;
    flex-direction:column;
    flex:1;
    padding:20px;
    padding-bottom:72px;
}

/* META */

.td-case-card .td-case-meta{
    margin-bottom:15px;
}

/* HEADING */
.td-case-card h3{
    margin:0 0 15px;
    font-family:"Tomorrow",sans-serif;
    font-size:18px;
    line-height:22px;
    font-weight:600;
    color:var(--td-text);
}
/* TEXT */
.td-case-card p{
    margin:0;
    flex:1;
    font-family:"Nunito",sans-serif;
    font-size:12px;
    line-height:16px;
    color:var(--td-muted);
}

/* CARD ARROW */

.td-card-arrow{
    position:absolute;
    right:20px;
    bottom:20px;
    width:36px;
    height:36px;
}

/* ===============TABLET 768px - 1024px =================== */

@media (min-width:768px) and (max-width:1024px){

.td-case-list-section{
    width:calc(100% - 40px);
    margin:80px auto;
    gap:50px;
}

/* FEATURED */
.td-featured-case{
    grid-template-columns:1fr 1fr;
    gap:30px;
    align-items:stretch;
}

.td-featured-image{
    height:100%;
}

.td-featured-image img{
    height:100%;
    min-height:100%;
    aspect-ratio:auto;
}

.td-featured-content{
    justify-content:center;
}

.td-featured-content h2{
    font-size:clamp(20px,2.5vw,24px);
    line-height:30px;
}

.td-featured-content p{
    font-size:14px;
    line-height:21px;
}

/* GRID */

.td-case-grid{
    gap:23px;
}

.td-case-card{
    min-height:438px;
}

.td-case-card-image{
    padding:20px 20px 0;
}

.td-case-card-image img{
    height:auto;
    aspect-ratio:273 / 171;
}

.td-case-card h3{
    font-size:16px;
    line-height:20px;
}
.td-case-card p{
    font-size:10px;
    line-height:14px;
}
}

/* =============== MOBILE ================== */

@media(max-width:767px){

.td-case-list-section{
    width:calc(100% - 32px);
    margin:60px auto;
    gap:40px;
}

.td-featured-case{
    grid-template-columns:1fr;
    gap:25px;
}

.td-featured-image img{
    height:auto;
    aspect-ratio:321 / 201;
}

.td-featured-content{
    gap:22px;
}
.td-featured-content h2{
    font-size:20px;
    line-height:26px;
}

.td-featured-content p{
    font-size:13px;
    line-height:20px;
}

/* GRID */

.td-case-grid{
    grid-template-columns:1fr;
    gap:25px;
}

.td-case-card{
    min-height:auto;
}

.td-case-card-image{
    padding:16px 16px 0;
}

.td-case-card-image img{
    height:auto;
    aspect-ratio:321 / 201;
}
.td-case-card-body{
    padding:16px;
    padding-bottom:60px;
}

.td-case-card h3{
    font-size:18px;
    line-height:24px;
}

.td-case-card p{
    font-size:13px;
    line-height:20px;
}

.td-card-arrow{
    width:34px;
    height:34px;
    right:16px;
    bottom:16px;
}


}

/*********************************** CASE STUDIES LIST SECTION END **************************************/

/***********************************
CHALLENGE CTA SECTION START
************************************/


.td-challenge-section{


    position:relative;


    width:100%;


    height:573px;


    display:flex;


    align-items:center;


    overflow:hidden;


    background-size:cover;


    background-position:center;


    background-repeat:no-repeat;


}





.td-challenge-container{


    position:relative;


    z-index:2;


    width:min(1200px, calc(100% - 240px));


    height:433px;


    margin:auto;


    display:flex;


    flex-direction:column;


    justify-content:space-between;


}






/* =========================
HEADING
========================= */


.td-challenge-heading h2{


    margin:0;


    width:553px;


    font-family:"Tomorrow",sans-serif;


    font-size:50px;


    font-weight:500;


    line-height:60px;


    letter-spacing:.2px;


    color:#fff;


}




.td-challenge-heading span{


    color:#ff0000;


}






/* =========================
BOTTOM CONTENT
========================= */


.td-challenge-content{


    display:flex;


    flex-direction:column;


    gap:50px;


}





.td-challenge-line{


    width:100%;


    height:1px;


    background:rgba(255,255,255,.2);


}






.td-challenge-bottom{


    width:100%;


    display:flex;


    justify-content:flex-end;


}





.td-challenge-bottom p{


    width:353px;


    margin:0;


    font-family:"Tomorrow",sans-serif;


    font-size:14px;


    font-weight:400;


    line-height:17px;


    letter-spacing:.2px;


    color:#fff;


}







/* =========================
BUTTON
========================= */


.td-challenge-section .td-animated-btn{


    width:194px;


    height:45px;


    display:flex;


    align-items:center;


    justify-content:center;



    border-radius:94px;



    background:


    linear-gradient(

        90deg,

        rgba(255,0,0,.2),

        rgba(255,255,255,.3)

    );



    border:1px solid rgba(255,255,255,.4);



    font-family:"Nunito",sans-serif;


    font-size:16px;


    font-weight:700;


    line-height:22px;


    letter-spacing:.2px;


    color:#fff;


    text-decoration:none;



    transition:.3s ease;


}


/***********************************
TABLET
768px - 1024px
************************************/


@media (min-width:768px) and (max-width:1024px){


    .td-challenge-section{

        height:426px;

    }




    .td-challenge-container{


        width:calc(100% - 40px);

        height:336px;


    }




    .td-challenge-heading h2{


        width:417px;


        font-size:35px;


        line-height:42px;


    }





    .td-challenge-content{


        gap:40px;


    }





    .td-challenge-bottom p{


        width:314px;


        font-size:12px;


        line-height:14px;


    }





   .td-challenge-section .td-animated-btn{


        width:154px;


        height:36px;


        border-radius:76px;


        font-size:11px;


        line-height:15px;


    }



}





/***********************************
MOBILE
max-width:767px
************************************/


@media(max-width:767px){



    .td-challenge-section{


        height:283px;


        padding:0;


        background-position:center;


    }





    .td-challenge-container{


        width:310px;


        height:198px;


        margin:auto;


        justify-content:flex-start;


        gap:15px;


    }







    .td-challenge-heading h2{


        width:311px;


        font-size:25px;


        line-height:30px;


    }





    .td-challenge-content{


        width:310px;


        gap:20px;


    }





    .td-challenge-line{


        width:310px;


    }





    .td-challenge-bottom{


        justify-content:flex-start;


    }





    .td-challenge-bottom p{


        width:310px;


        font-size:8px;


        line-height:10px;


    }







    .td-challenge-section .td-animated-btn{


        width:120px;


        height:23px;


        border-radius:48px;


        font-size:7px;


        line-height:10px;


    }



}

/***********************************
CHALLENGE CTA SECTION END
************************************/