/* .business-templates{padding-bottom: 0;} */
.tablink{overflow: hidden;}
.tablink ul{display: flex; max-width: 1200px; margin: 0 auto; justify-content: center; padding-top: 12px;}
.tablink ul > li{width: 33.33%; margin: 0; padding: 0; text-align: center;}
/* .tablink ul > li:before{display: none;}
.tablink ul > li:after{position: absolute; content: ""; width: calc(100% - 80px); height: calc(100% - 10px); background-color: #fff; left: 0; bottom: 0; right: 0; margin: 0 auto; z-index: 1;} */
.tablink ul > li > a{position: relative; font-size: 26px; text-decoration: none; text-align: center; padding: 25px; display: inline-block; width: 100%; z-index: 1;}
.tablink ul > li > a:hover{color: #000;}
/* .tablink ul > li > a > span{position: relative; z-index: 2;} */
.tablink ul > li:before{position: absolute; content: ""; width: 50%; height: 100%; box-shadow: -5px -2px 15px 1px rgba(0 0 0 / 10%); left: 0; top: 0; transform: skew(-30deg, 0deg); border-radius: 0; border-top-left-radius: 12px; background-color: #fff;}
.tablink ul > li:after{position: absolute; content: ""; width: 50%; height: 100%; box-shadow: -5px -2px 15px 1px rgba(0 0 0 / 10%); right: 0; top: 0; transform: skew(30deg, 0deg); background-color: #fff; border-top-right-radius: 12px;}
.tablink ul > li > a:before{position: absolute; content: ""; height: calc(100% - 5px); width: calc(100% - 80px); background-color: #fff; z-index: -1; left: 0; bottom: 0; right: 0; margin: 0 auto;}
.tablink ul > li.active{z-index: 1;}
.tablink ul > li.active:before{border-top: 5px solid #ffda30;}
.tablink ul > li.active:after{border-top: 5px solid #ffda30;}
.tablink ul > li.active > a{font-weight: 700;}

.banner-filter{margin-bottom: 37px;}
.banner-filter > ul{display: flex; justify-content: center; column-gap: 22px;}
.banner-filter > ul > li{margin: 0; padding: 0;}
.banner-filter > ul > li:before{display: none;}
.banner-filter > ul > li > a{font-size: 18px; padding: 11px 30px; border: 1px solid #000; border-radius: 40px; text-decoration: none; display: inline-block;} 
.banner-filter > ul > li > a.active, .banner-filter > ul > li > a:hover{background-color: #ffda30; border-color: #ffda30; color: #000;}


.templates-container{box-shadow: 0 -8px 8px -6px rgba(0, 0, 0, 0.1); z-index: 1; position: relative; }
.templates-container .row{margin-left: -14px; margin-right: -14px; padding-top: 91px;}
.templates-container .left-templates-container{width: 50%; padding-left: 14px; padding-right: 14px; height: 100%;}
.templates-container .right-templates-container{width: 50%; padding-left: 14px; padding-right: 14px;}

.templates-thumb-list{display: flex; flex-wrap: wrap; align-content: flex-start; column-gap: 25px; row-gap:25px; max-height: 850px; min-height: 750px; overflow-y: auto; overflow-x: hidden;}
.templates-thumb-list .templates-thumb-img{position: relative; width: calc(25% - 19px); display: flex; opacity: .25; cursor: pointer; border: 1px solid transparent; transition: all ease-in-out .3s;}
.templates-thumb-list .templates-thumb-img:before{position: absolute; content: "VIEW"; width: 86px; height: 86px; background-color: #000; border-radius: 100%; top: 50%; left: 50%; font-size: 20px; font-weight: 600; color: #fff; text-transform: uppercase; display: flex; justify-content: center; align-items: center; transform: translate(-50%, -50%) scale(0); transform-origin: center center; transition: all ease-in-out 0.3s;}
.templates-thumb-list .templates-thumb-img:hover,.templates-thumb-list .templates-thumb-img.active{opacity: 1; border-color: #000;}
.templates-thumb-list .templates-thumb-img:hover::before {transform: translate(-50%, -50%) scale(1);}

.templates-thumb-list::-webkit-scrollbar { width: 6px; background-color: #fff;}
.templates-thumb-list::-webkit-scrollbar-thumb {background-color: #ffda30;}
.templates-thumb-list::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); background-color: #F5F5F5;}


.templates-container.banners .left-templates-container > .templates-thumb-list{margin-top: 93px;}
.inner-tab-link{margin-bottom: 59px;}
.inner-tab-link > ul{display: flex; justify-content: space-around; max-width: 510px; margin: 0 auto;}
.inner-tab-link > ul > li{margin: 0; padding: 0;}
.inner-tab-link > ul > li:before{display: none;}
.inner-tab-link > ul > li > a{text-decoration: none; font-size: 18px; border-bottom: 5px solid transparent;}
.inner-tab-link > ul > li > a.active, .inner-tab-link > ul > li > a:hover{font-weight: 700; border-bottom-color:#FFDB2D; color: #000;}

.email-inner-tab-link {margin-bottom: 59px;}
.email-inner-tab-link > ul{display: flex; justify-content: space-around; max-width: 510px; margin: 0 auto;}
.email-inner-tab-link > ul > li{margin: 0; padding: 0;}
.email-inner-tab-link > ul > li:before{display: none;}
.email-inner-tab-link > ul > li > a{text-decoration: none; font-size: 18px; border-bottom: 5px solid transparent;}
.email-inner-tab-link > ul > li > a.active, .email-inner-tab-link > ul > li > a:hover{font-weight: 700; border-bottom-color:#FFDB2D; color: #000;}

.right-templates-container .templates-view-list{padding: 67px 67px 67px 76px; background-color: #F4F4F4; border-top-left-radius: 20px; border-bottom-left-radius: 20px; display: inline-block; width: 100%; height: 100%;}
.right-templates-container .templates-view-list .desktop-template-view, .right-templates-container .templates-view-list .templates-view-img{height: 100%;}
.right-templates-container .templates-view-list .desktop-template-view *{height: 100%;}
.right-templates-container .templates-view-list .desktop-template-view .desktop-img > img, .right-templates-container .templates-view-list .templates-view-img > img {width: 100%; height: 100%; object-fit: cover; object-position: top; transition: 8s all ease;}
.right-templates-container .templates-view-list .desktop-template-view .desktop-img > img:hover, .right-templates-container .templates-view-list .templates-view-img > img:hover {object-position: bottom;}
/* .right-templates-container .templates-view-list .desktop-template-view > div{height: inherit; overflow-y: auto;}
.right-templates-container .templates-view-list .desktop-template-view > div::-webkit-scrollbar { width: 6px; background-color: #fff;}
.right-templates-container .templates-view-list .desktop-template-view > div::-webkit-scrollbar-thumb {background-color: #ffda30;}
.right-templates-container .templates-view-list .desktop-template-view > div::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); background-color: #F5F5F5;} */

/* .right-templates-container .templates-view-list .templates-view-img{height: inherit; overflow-y: auto;}
.right-templates-container .templates-view-list .templates-view-img::-webkit-scrollbar { width: 6px; background-color: #fff;}
.right-templates-container .templates-view-list .templates-view-img::-webkit-scrollbar-thumb {background-color: #ffda30;}
.right-templates-container .templates-view-list .templates-view-img::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); background-color: #F5F5F5;} */

/* .tablink li a.active,
.inner-tab-link li a.active {
  font-weight: bold;
  color: #000;
}
.templates-container {
  display: none;
}
.static-template-list,
.gif-tempate-list,
.html-tempate-list {
  display: none;
} */


/* ======================================================================== */
.banners_preview .row-cust{display: flex; justify-content: space-between; column-gap: 44px;}
.banners_preview .row-cust > .col1{display: flex; flex-wrap: wrap; justify-content: space-between; width: 78%; column-gap: 44px;}
.banners_preview .row-cust > .col2{width: 22%;}
.banners_preview .row-cust > .col1 > div:first-child{width: calc(58% - 22px);}
.banners_preview .row-cust > .col1 > div:nth-child(2){width: calc(42% - 22px);}
.banners_preview .row-cust > .col1 > div:last-child{margin-top: auto; width: 100%}
.banners_preview p,.html-preview p, .gif-preview p{margin: 0;}

.gif-preview{max-width: 338px; margin: 0 auto;}

.html-preview{margin: 0 auto; max-width: 336px; width: 100%;}
.html-preview > .html-preview-index{position: relative; padding-bottom: 280px; height: 0;}
.html-preview > .html-preview-index > iframe{position: absolute; top: 0; left: 0; width: 100%; height: 100%;}

/* ========================================================= */
.mobile-preview{width: 40%; margin: 0 auto;}
.mobile-view-template{position: relative; background-size: contain; background-position: center; background-repeat: no-repeat; width: 89%; padding-bottom: 179%; margin: 0 auto;}
.mobile-view-template > div{position: absolute; height: 97.5%; width: 91.2%; border-radius: 42px; left: 4.5%; top: 1.3%; background-repeat: no-repeat; background-position: top center; transition: all ease-in-out 2s; background-size: cover;}
.mobile-view-template > div:hover{background-position: bottom center;}

@media (max-width:1400px){
  .mobile-view-template > div{border-radius: 30px;}
}

@media (max-width:1340px){
  .mobile-view-template > div{border-radius: 28px;}
}

@media (max-width:1199px){
  .mobile-view-template > div{border-radius: 23px;}
}

@media (max-width:468px){
  .mobile-view-template > div{border-radius: 52px; left: 4.3%;}

}

@media (max-width:380px){
  .mobile-view-template > div{border-radius: 40px;}
}



/*===========================================================================================*/
@media (max-width: 991px) {
    .templates-container .left-templates-container{width: 100%;}
    .templates-container .right-templates-container{width: 100%;}
    
    
  /* Force single row display */
  .slick-track {
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  .slick-slide {
    height: auto !important;
    float: none !important;
    flex: 0 0 auto !important;
  }

  /* Fix for multiple rows issue */
  .templates-thumb-list .slick-slide > div {
    height: 100%;
  }

  /* Ensure thumbnails are properly sized */
  .templates-thumb-img {
    display: block !important;
    height: 100% !important;
  }

  /* Hide any overflow that might cause multiple rows */
  .templates-thumb-list {
    overflow: hidden !important;
  }

  /* Fix for slick slider rows */
  .slick-slider .slick-track,
  .slick-slider .slick-list {
    display: flex !important;
  }
}


/*============================================================================================================*/

@media (max-width:1600px){
    .banner-filter > ul > li > a{font-size: 15px;padding: 8px 20px;}
    .templates-thumb-list{max-height: 650px; min-height: 650px;}
    
}

 @media (max-width:1366px){
    .tablink ul{max-width: 910px;}
    .tablink ul > li > a{padding: 15px; font-size: 21px;}
    .templates-container .row{padding-top: 60px;}
    .right-templates-container .templates-view-list{padding: 40px;}
    .inner-tab-link {margin-bottom: 25px;}
    .templates-container.banners .left-templates-container > .templates-thumb-list {margin-top: 53px;}
    .email-inner-tab-link {margin-bottom: 25px;}
    .banner-filter {margin-bottom: 28px;}
    .banner-filter > ul{column-gap: 12px;}
    
     .templates-thumb-list { max-height: 520px; min-height: 520px;}
    .templates-thumb-list .templates-thumb-img:before{width: 60px; height: 60px; font-size: 13px;}
     
}

@media (max-width:1199px){
    .banner-filter > ul {column-gap: 6px;}
    .banner-filter > ul > li > a {font-size: 13px;padding: 5px 15px;}
}

@media (max-width:1024px){
    .templates-thumb-list { max-height: 480px; min-height: 480px;}
    .mobile-preview{width: 55%;}
    .mobile-view-template > div {border-radius: 30px;}
}

@media (max-width:991px){
    .tablink ul{column-gap: 20px; margin-bottom: 20px;}
    .tablink ul > li{width: auto;}
    .tablink ul > li:before, .tablink ul > li:after{display: none;}
    .tablink ul > li > a {padding: 5px 10px;font-size: 20px; border-bottom: 3px solid transparent;}
    .tablink ul > li.active > a{border-bottom-color: #ffda30;}
    .templates-container .right-templates-container{height: 100% !important;}
    .templates-container.email .right-templates-container .desktop-template-view, .templates-container.landing-pages .right-templates-container{height: 450px !important;}
    .templates-container.banners .left-templates-container > .templates-thumb-list{margin-top: 0;}
    .mobile-preview{width: 215px;}
    .email-inner-tab-link, .inner-tab-link {margin-bottom: 15px;margin-top: 30px;}
    
    .templates-thumb-list { max-height: initial; min-height: auto;}

    .banner-filter{display: none;}

    .templates-thumb-list .templates-thumb-img:hover{border-color: transparent; box-shadow: 0 0 0 0; opacity: .25;}
    .templates-thumb-list .templates-thumb-img:hover:before{transform: translate(-50%, -50%) scale(0);}

    .templates-thumb-list .templates-thumb-img{border-width: 3px;}
    .templates-thumb-list .templates-thumb-img.active{border-color: #333; box-shadow: 3px 3px 5px 1px #6d6d6d; opacity: 1;}
}

@media (max-width:767px){
    .templates-container .row {padding-top: 40px;}
    .right-templates-container .templates-view-list{padding: 20px;}
}

@media (max-width:480px){
    .tablink ul > li > a{padding: 0px 0px;font-size: 17px;}
    .banners_preview .row-cust{column-gap: 20px;}
    .banners_preview .row-cust > .col1{column-gap: 20px;}
    .banners_preview .row-cust > .col1 > div:first-child {width: calc(58% - 10px);}
    .banners_preview .row-cust > .col1 > div:nth-child(2) {width: calc(42% - 10px);}
    .banners_preview p, .html-preview p, .gif-preview p {font-size: 12px;}
    .banner-filter > ul {column-gap: 10px;}
    .banner-filter > ul > li > a { font-size: 14px; padding: 0; border: 0; border-radius: 0; border-bottom: 2px solid transparent;}
    .banner-filter > ul > li > a.active, .banner-filter > ul > li > a:hover{background-color: transparent; font-weight: 700;}

} 