/* Reset layout cho widget banner - ctd_banner */
/* .elementor-widget-ctd_banner,
.elementor-widget-ctd_banner > .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
} */

/* Section wrapper */
.banner__limit {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
}

/* Nếu bật chế độ full width thì bỏ giới hạn max-width */
.banner__limit.fullwidth {
  max-width: none;
  width: 100vw;
  margin-left: calc(-1 * ((100vw - 100%) / 2));

}

/* Banner item */
.banner__item {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  object-fit: cover;
  margin-bottom: 80px;
  /* margin-top: 100px; */
}

.banner__item picture,
.banner__item img {
  width: 100%;
  height: 700px;
  display: block;
  object-fit: cover;
  /* object-position: top; */
}
/* CTA mặc định cho banner có giới hạn (không fullwidth) */
.banner__limit:not(.fullwidth) .ctd__cta-btn {
    position: absolute;
    bottom: 90.5%;
    top: 0;
    justify-content: space-between;
    margin-left: 70.5%;
    width: 30%;
    padding: 12px 10px 12px 24px;
    background-color: #16315E;
    color: #fff !important;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    z-index: 2;
    min-width: 180px;
    white-space: nowrap;
    clip-path: polygon(20px 0%, 100% 0%, 100% calc(100% - 24px), calc(100% - 20px) 100%, 0% 100%, 0% 17px);  
}

/* CTA cho banner fullwidth */
.banner__limit.fullwidth .ctd__cta-btn {
    position: absolute;
    bottom: 90.5%;
    justify-content: space-between;
    margin-left: 70.5%;
    width: 30%;
    padding: 12px 10px 12px 24px;
    background-color: #16315E;
    color: #fff !important;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    z-index: 2;
    min-width: 180px;
    white-space: nowrap;
    clip-path: polygon(15px 0%, 100% 0%, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0% 100%, 0% 15px);
}

.banner__item .ctd__cta-btn {
  position: absolute;
    bottom: 89.5% !important;
    justify-content: space-between;
    margin-left: 70% !important;
    width: 30%;
    padding: 12px 10px 12px 24px;
    background-color: #16315E;
    color: #fff !important;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    z-index: 2;
    min-width: 180px;
    white-space: nowrap;
    clip-path: polygon(15px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 20px) 100%, 0% 100%, 0% 20px) !important;
    letter-spacing: 2px;
}
.ctd__cta-btn .arrow {
  display: inline-block;
  transform: none;
  transition: transform 0.3s ease;
}
.ctd__cta-btn img{
  height: auto !important;
}
.arrow img{
  color: #5FD1C1;
}


.banner__limit:not(.fullwidth) .ctd__cta-btn:hover {
  
  background-color: #264ABC !important;
  cursor: pointer;
}

.ctd__cta-btn:hover .arrow {
  transform: rotate(45deg);
}

/* Responsive adjustments */
/* @media screen and (max-width: 767px) {
  .ctd__cta-btn {
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
    font-size: 12px;
    min-width: auto;
  }
} */
 @media screen and (max-width: 1025px) {
.banner__item {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    object-fit: cover;
    margin-bottom: 0px;
    /* margin-top: 100px; */
}
}
 @media screen and (max-width: 769px) {
  .banner__limit:not(.fullwidth) .ctd__cta-btn {
    position: absolute;
    bottom: 85.5% !important;
    top: 0;
    justify-content: space-between;
    margin-left: 70.5%;
    width: 30%;
    padding: 12px 10px 12px 24px;
    background-color: #16315E;
    color: #fff !important;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    z-index: 2;
    min-width: 180px;
    white-space: nowrap;
    clip-path: polygon(20px 0%, 100% 0%, 100% calc(100% - 24px), calc(100% - 20px) 100%, 0% 100%, 0% 17px);
}
}
 @media screen and (max-width: 767px) {
 .banner__limit {
    position: relative;
    width: 100%;
    overflow: visible;
    margin-top: 20px;
  }
  .banner__item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    margin-top: 0px;
    margin-block-start: 0px;
    margin-bottom: 0px;
  }
  .banner__item picture,
.banner__item img {
  width: 100%;
  height: 350px !important;
  display: block;
  object-fit: cover;
}
.banner__item .arrow img{
   width: 100%;
   height: auto !important;
  /* max-height: 300px; */
  display: block;
  object-fit: cover;
  height: auto;
}
.banner__limit.fullwidth .ctd__cta-btn {
    position: absolute;
    bottom: 90.5%;
    justify-content: space-between;
    margin-left: 70.5%;
    width: 65%;
    padding: 12px 10px 12px 24px;
    background-color: #16315E;
    color: #fff !important;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    z-index: 2;
    min-width: 180px;
    white-space: nowrap;
    clip-path: polygon(15px 0%, 100% 0%, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0% 100%, 0% 15px);
}
.banner__limit:not(.fullwidth) .ctd__cta-btn {
        position: absolute;
        bottom: 100% !important ;
        justify-content: space-between;
        margin-left: 0 !important ;
        height: 55px;
        width: 100%;
        padding: 12px 10px 12px 24px;
        background-color: #16315E;
        color: #fff !important;
        font-family: 'Lexend Deca', sans-serif;
        font-size: 14px;
        text-transform: uppercase;
        border: none;
        cursor: pointer;
        align-items: center;
        display: flex;
        gap: 8px;
        transition: background-color 0.3s ease;
        z-index: 2;
        min-width: 180px;
        white-space: nowrap;
        clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 20px) 100%, 0% 100%, 0% 20px);
    }
.banner__limit:not(.fullwidth) .ctd__cta-btn:hover {
  background-color: #264ABC ;
  cursor: pointer;
}
  .banner__item picture {
    width: 100%;
    height: 350px;
    display: block;
  }
  .banner__item .ctd__cta-btn {
    position: absolute;
    bottom: 100% !important ;
    justify-content: space-between;
    margin-left: 0% !important;
    width: 30%;
    padding: 12px 10px 12px 24px;
    background-color: #16315E;
    color: #fff !important;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    z-index: 2;
    min-width: 180px;
    white-space: nowrap;
    clip-path: polygon(13px 0%, 100% 0%, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0% 100%, 0% 15px) !important;
  }
  .banner__item .ctd__cta-btn .arrow img{
    width: 40px;
    height: 40px;
  }
}


