.ctd-projectcard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 60px;
  padding: 60px 30px 80px 30px;
  margin-top: 80px;
}
.swiper-pagination-bullet {
    display: none;
  }

  .banner__item {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    object-fit: cover;
    margin-bottom: 80px;
    margin-top: 50px;
}


.ctd-projectcard__item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.portfolio-container{
  display: contents;
}
.ctd-projectcard__image {
  position: relative;
  width: 100%;
  max-width: 361px;
  height: 401px;
  overflow: hidden;
  margin: 0 auto;
}


.ctd-projectcard__image-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ctd-projectcard__item:hover .ctd-projectcard__image-img {
  transform: scale(1.05);
}

.portfolio-illustration--arrow {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 60px;
  background-color: var(--ctc-thirdary, #264abc);  /* Nền nhạt mặc định */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.portfolio-illustration--arrow img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.ctd-projectcard__item:hover .portfolio-illustration--arrow {
  background-color: var(--ctc-primary, #0033cc);
}

.ctd-projectcard__item:hover .portfolio-illustration--arrow img {
  transform: rotate(45deg);
}

.ctd-projectcard__content {
  max-width: 361px;
  padding: 20px 0 0;
  text-align: left;
}

.ctd-projectcard__title {
  font-family: 'Lexend Deca', sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111;
  text-transform: uppercase;
}

.ctd-projectcard__badge {
  display: inline-block;
  background-color: var(--ctc-primary, #0033cc);
  color: #fff;
  padding: 4px 12px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

.ctd-projectcard__description {
  font-size: 16px;
  color: #000;
  line-height: 23px;
}

.portfolio-container{
  display: contents;
}
.project-not-found{
  text-align: center;
}
/* === Desktop ≥ 769px: Grid layout === */
@media screen and (max-width: 1025px){
.ctd-projectcard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
    padding: 0px 30px 100px 30px;
}
}


@media (max-width: 768px) {
  .ctd-projectcard-grid {
    display: block; 
    padding: 0 16px 40px; 
  }

  .swiper-wrapper {
    display: flex;
  }

  .portfolio-item.swiper-slide {
    width: 100%;       
    flex-shrink: 0;
  }

  .swiper-pagination {
    text-align: center;
    margin-top: 20px;
  }

  .swiper-pagination-bullet {
    width: 18px !important;
    height: 4px !important;
    background-color: #d0d5e0;
    border-radius: 0 !important;
    opacity: 1;
    margin: 0 4px;
  }

  .swiper-pagination-bullet-active {
    background-color: #264ABC !important;
  }
  .portfolio .swiper-pagination {
    position: static; 
    text-align: center;
    margin-top: 34px;
  }
  .ctd-projectcard-grid .portfolio-item .portfolio-image {
      padding: 0px 21px;
  }

  .ctd-projectcard-grid .portfolio-item .portfolio-image .portfolio-illustration--arrow{
    width: 60px;
    height: 60px;
    background-color: var(--ctc-thirdary);
    position: absolute;
    left: 21px !important;
    bottom: 0;
  }
   .ctd-projectcard-grid .portfolio-item .portfolio-content{
    padding-left: 21px;
   }
   .ctd-projectcard-grid .portfolio-item .portfolio-image .portfolio-illustration--img img{
    transform: none !important;
    transition: none !important;
   }
   .ctd-projectcard-grid .portfolio-item .portfolio-image:hover .portfolio-illustration--arrow img{
    transition: all 0.3s ease-in-out !important;
   }
   
}


