.ctd-projectcard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* gap: 60px 60px; */
    padding: 100px 0;
    font-family: 'Lexend Deca', sans-serif;
  }

  .ctd-projectcard__item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    align-items: center;
    padding: 0 ;
  }
 .ctd-projectcard__image {
    position: relative;
    width: 100%;
    max-width: 361px;      /* Chiều rộng chuẩn */ 
    height: 401px;         /* Chiều cao cố định như bạn chụp */
    overflow: hidden;
    margin: 0 auto;
  }

.ctd-projectcard__image-img {
  width: 100%;
  height: 100% !important;          /* Bắt buộc để ảnh luôn fill chiều cao */
  object-fit: cover;     /* Cắt ảnh giữ tỉ lệ đúng */
  display: block;
}

.ctd-projectcard__arrow {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 60px;
  background-color: var(--ctc-thirdary, #264abc);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.ctd-projectcard__arrow img {
  width: 24px;
  height: 24px;
  object-fit: none;
  transition: transform 0.3s ease;
}

.ctd-projectcard__item:hover .ctd-projectcard__arrow {
  background-color: var(--ctc-primary, #0033cc);
}

.ctd-projectcard__item:hover .ctd-projectcard__arrow img {
  transform: rotate(45deg);
}
.ctd-loadmore-button {
  all: unset !important;
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  padding-bottom: 4px;
  color: #000 !important;
  background-color: transparent !important;
}

.ctd-loadmore-button:hover {
  background-color: transparent !important;
  color: #000 !important;
}

.ctd-loadmore-button .text {
  text-transform: uppercase;
  font-weight: 500;
  font-size: 15px;
  margin-right: 20px;
}
.ctd-loadmore-button .text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  color: #000000;
  width: 100%;
  font-size: 14px;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.ctd-loadmore-button .line {
 border: 1px solid #264ABC;
    width: 12%;
    height: 1px;
    position: absolute;
    bottom: 55px;
}
.ctd-loadmore-button:hover .text::after {
  transform: scaleX(0);
}

.ctd-loadmore-button .arrow {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.ctd-loadmore-button:hover .arrow {
  transform: translateX(5px);
}



  .ctd-projectcard__content {
    max-width: 361px;
    padding: 30px 0;
    text-align: left;
    margin: 0 auto;
  }

  .ctd-projectcard__title {
    font-size: 24px !important;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000;
    text-transform: uppercase;
    line-height: 28px;
  }

  .ctd-projectcard__badge {
    display: inline-block;
    background-color: var(--ctc-primary, #0033cc);
    color: #fff;
    padding: 4px 12px;
    font-size: 16px;
    text-transform: capitalize;
    font-weight: 500;
    font-family: 'Lexend Deca', sans-serif !important;
    margin-bottom: 10px;
  }

  .ctd-projectcard__description {
    font-size: 16px;
    color: #000;
    line-height: 23px;
   font-family: 'Lexend Deca', sans-serif;

  }
    #default-project-list.loading {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  @media (max-width: 1024px) {
    .ctd-projectcard-grid {
      display: grid;
      gap: 16px;
      padding: 16px 20px;
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (max-width: 767px ){
    .ctd-projectcard-grid {
      display: grid;
      gap: 16px;
      padding: 16px 20px;
      grid-template-columns: repeat(1, 1fr);
    }
    .ctd-projectcard__content .ctd-projectcard__title {
      font-size: 18px !important;
      font-weight: 400 !important;
      margin-bottom: 10px !important;
      color: #000 !important;
      text-transform: uppercase !important;
      line-height: 1.2 !important;
      white-space: normal !important;
      word-break: break-word;
    }

  .ctd-projectcard__content {
    max-width: 361px;
    padding: 30px 0;
    text-align: left;
    margin: 0 auto;
  }
   .ctd-projectcard__badge {
    display: inline-block;
    background-color: var(--ctc-primary, #0033cc);
    color: #fff;
    padding: 4px 12px;
    font-size: 16px;
    text-transform: capitalize;

    font-weight: 500;
    font-family: 'Lexend Deca', sans-serif !important;
    margin: 10px 0;
  }
  .ctd-loadmore-button .line {
    border: 1px solid #264ABC;
    width: 42%;
    height: 1px;
    position: absolute;
    bottom: 55px;
}
.ctd-projectcard__title {
  all: unset; /* Reset mọi thứ */
  display: block;
  font-size: 24px;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
  line-height: 1.2;
  
  font-family: Arial, sans-serif;
  margin: 0 0 10px 0;
}
  }
  @media (max-width: 431px ){
    .ctd-loadmore-button .line {
    border: 1px solid #264ABC;
    width: 37%;
    height: 1px;
    position: absolute;
    bottom: 55px;
}
  }

@media (max-width: 415px ){
.ctd-projectcard__item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    align-items: center;
    padding: 0 ;
}
 .ctd-loadmore-button .line {
    border: 1px solid #264ABC;
    width: 39%;
    height: 1px;
    position: absolute;
    bottom: 55px;
}
}
@media (max-width: 391px ){
  .ctd-loadmore-button .line {
    border: 1px solid #264ABC;
    width: 42%;
    height: 1px;
    position: absolute;
    bottom: 55px;
}
.ctd-projectcard__item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    align-items: center;
    padding: 0px ;
}
}
@media (max-width: 376px ){
.ctd-projectcard__item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    align-items: center;
    padding: 0px ;
}
.ctd-loadmore-button .line {
    border: 1px solid #264ABC;
    width: 43%;
    height: 1px;
    position: absolute;
    bottom: 55px;
}
}
    
  


