/* Section tổng */
.resource-hero {
  overflow: hidden;
  color: #fff;
}

.resource-hero__overlay {
  position: absolute;
  pointer-events: none;
  background-image: url(https://learningchain.vn/wp-content/uploads/2025/12/HERO_BANNER_RESOURCE.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 100%;
  height: auto;
  aspect-ratio: 1280/ 360;
  top: 0;
  left: 0;
}

/* Khối nội dung canh giữa trang */
.resource-hero__inner {
  position: relative;
  margin: 0 auto;
  padding-top: 150px;
  padding-left:0px;
  padding-right: 0px;
  padding-bottom: calc(150px * 0.1 + (100vw * 150 / 1920) * 0.9);
  display: flex;
  align-items: center;
}

/* ===== Label dọc bên trái ===== */

.resource-hero__side-label {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 40px;
}

.resource-side-label__glow {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #ffffff, transparent);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.resource-side-label__text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: radial-gradient(circle at left, rgba(255, 255, 255, 0.25), transparent 55%);
}

/* ===== Khối 2 cột: chữ + hình ===== */

.resource-hero__content {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.resource-hero__eyebrow {
  font-size: clamp(40px, calc(70px * 0.65 + (100vw * 70 / 1920) * 0.35), 110px);
  font-weight: 600;
  margin: 0 0 0px;
  background: linear-gradient(to right, #6f6f6f 0%, #ffffff 40%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}
.resource-hero__eyebrow::after {
  content: "";
  top: -80px;
  position: absolute;
  background: url(https://learningchain.vn/wp-content/uploads/2025/11/icon_tai_nguyen_tin_tuc_four_star.webp) no-repeat center;
  background-size: contain;
  width: 117px;
  height: auto;
  aspect-ratio: 1/ 1;
}
.resource-hero__title {
  font-size: clamp(56px, calc(150px * 0.65 + (100vw * 150 / 1920) * 0.35), 180px);
  line-height: 1;
  margin: 0 0 45px;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
}

/* Tabs dưới title */
.resource-hero__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 43px;
}

.resource-tab {
  display: inline-flex;
  filter: brightness(0.75);
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.resource-tab_icon {
  width: 19px;
  height: 19px;
  background: url(https://learningchain.vn/wp-content/uploads/2025/11/icon_xu_huong_thi_Truong_not_active.webp) no-repeat center;
  background-size: contain;
}

.resource-tab_icon_learning_chain {
  width: 43px;
  height: 25px;
  background: url(https://learningchain.vn/wp-content/uploads/2025/11/Learning-Chain-Logo.webp) no-repeat center;
  background-size: contain;
}
.resource-tab_icon_prompt_ai {
  width: 21px;
  height: 21px;
  background: url(https://learningchain.vn/wp-content/uploads/2025/12/icon_prompt_ai_news_active.webp) no-repeat center;
  background-size: contain;
}

.resource-tab--active {
  filter: brightness(1);
  border-color: transparent;
}

.resource-tab:hover {
  transform: translateY(-1px);
}

.resource-hero__overlay_image_tablet {
    display: none;    
}

@media (max-width: 1439px) {
    .resource-hero__inner {
      padding-top: calc(550px * 0.1 + (100vw * 550 / 1439) * 0.9);
      padding-bottom: calc(140px * 0.1 + (100vw * 140 / 1439) * 0.9);
    }
      
    .resource-hero__overlay {
          background-image: url(https://learningchain.vn/wp-content/uploads/2025/11/HERO-BANNER.webp);
          aspect-ratio: 1366/ 1013;
    }
      
    .resource-hero__eyebrow::after {
        width: 100px;
    }
}
@media (max-width: 1023px) {
    .resource-hero__inner {
       padding-top: 120px;
       padding-bottom: 10px;
    }
    .resource-hero__eyebrow::after {
        width: 85px;
    }
    .resource-hero__overlay {
        display: none;
    }
    
    .resource-hero__overlay {
      background-image: url(https://learningchain.vn/wp-content/uploads/2025/11/PIC_image_tai_nguyen_tin_tucv.webp);
      aspect-ratio: 767/ 697;
    }
    .resource-hero__overlay_image_tablet {
      display: block;
      pointer-events: none;
      background-image: url(https://learningchain.vn/wp-content/uploads/2025/11/PIC_image_tai_nguyen_tin_tucv.webp);
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
      width: 100vw;
      height: auto;
      aspect-ratio: 767/ 697;
    }
    
}
@media (max-width: 699px) {
    .resource-hero__eyebrow::after {
        width: 55px;
    }
    
    .resource-hero__eyebrow {
        font-size: calc(36px * 0.6 + (100vw * 36 / 430) * 0.4);
    }
    
    .resource-hero__title {
        font-size: calc(76px * 0.6 + (100vw * 76 / 430) * 0.4);
    }
    
    .resource-hero__tabs {
        gap: 20px;
    }
    .resource-hero__overlay_image_tablet {
        display: none;
    }
    .resource-hero__tabs_desktop {
        display: none;
    }
    
    .resource-hero__overlay {
        display: block;
        background-image: url(https://dev.learningchain.vn/wp-content/uploads/2025/11/PIC_tin-tuc_mobile.webp);
        aspect-ratio: 430/ 475;
    }
    
    .resource-hero__inner {
        padding-bottom: calc(120px * 0 + (100vw * 120 / 430) * 1.0);
        padding-top: calc(35px * 0 + (100vw * 35 / 430) * 1.0);
    }
    
    .resource-tab_icon_learning_chain {
        width: 28px;
        height: auto;
        aspect-ratio: 43/25;
    }
    
    .resource-tab {
        gap: 5px;
    }
    .resource-hero {
        position: relative;
        margin-top: 85px;
        padding-bottom: calc(150px * 0 + (100vw * 150 / 430) * 1.0);
    }
    .resource-hero__title {
        font-weight: 700;
    }
}

/* ========= CHI TIẾT TIN TỨC ========= */

.resource-news-detail {
  padding-bottom: calc(120px * 0.1 + (100vw * 120 / 1920) * 0.9);
  color: #ffffff;
  z-index: 50;
  position: relative;
}

.resource-news-detail__inner {
  margin: 0 auto;
  position: relative;
}
.resource-news-detail__inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc((120px * 0.1 + (100vw * 120 / 1920) * 0.9) * (-1));      
  height: 1px;
  background: #fff;
}
/* Breadcrumbs */
.resource-news-detail__title {
  margin: 0;
  font-size: 50px;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(to right, #696969 0%, #ffffff 25%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resource-prompt-ai-desc {
  margin: 5px 0;
  font-size: 20px;
  font-weight: 400;
}

/* Layout 2 cột */



.resource-news-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(150px, 1.1fr);
  gap: calc(55px * 0 + (100vw * 55 / 1920) * 1.0);
  align-items: flex-start;
  margin-top: 60px;
  position: relative;
}

/* Content styling */

.resource-news-detail__content {
    display: flex;
    flex-direction: column;
    gap: 40px;    
    position: relative;     /* để ::after bám theo đáy block này */
  z-index: 1;
}

/* Lớp phủ đen ở đáy nội dung */
.resource-news-detail__content::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 70px;           
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    #000 70%
  );                     
  z-index: 20;
}
.resource-news-detail__content.no-overlay::after {
  content: none;
}
.resource-prompt-ai-container-display-flex {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.resource-prompt-ai-detail-title {
    font-size: 30px;
    font-weight: 700;
    color: #EBEAEB;
    margin: 0;
    text-transform: uppercase;
}
.resource-prompt-ai-detail-content {
    font-size: 20px;
    font-weight: 400;
    color: #EBEAEB;
    margin: 0;
    z-index: 1;
}

/* TOC */
.resource-news-detail__toc {
  padding: 0 0 28px 0;
}

.resource-news-detail__toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #fff;
  margin-bottom: 18px;
}

.resource-news-detail__toc-icon {
  background: url(https://learningchain.vn/wp-content/uploads/2025/11/vector-bi_tag-fill.webp) no-repeat center;
  width: 17px;
  height: 17px;
}

.resource-news-detail__toc-title {
  white-space: nowrap;
}

.resource-news-detail__toc-body {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 6px;
  padding-top: 8px;
}

/* chỉ áp dụng trong box TOC – scrollbar mảnh */
.resource-news-detail__toc-body::-webkit-scrollbar {
  width: 8px;
}

.resource-news-detail__toc-body::-webkit-scrollbar-track {
  background: #696969;
  border-radius: 99px;
}

.resource-news-detail__toc-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 99px;
}

.resource-news-detail__toc-list {
  list-style: none;
  margin: 0;
  padding: 22px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  
}
.resource-news-detail__toc-item {
   position: relative;
   padding-left: 28px;
   padding-right: 4px;

}
.resource-news-detail__toc-item.active::before, .resource-news-detail__toc-item:hover::before {
   content: "";
   background: url(https://learningchain.vn/wp-content/uploads/2025/11/Light-effect_toc_heading.webp) no-repeat center;
   background-size: contain;
   width: 50px;
   height: auto;
   aspect-ratio: 65/99;
   position: absolute;
   top: -25px;
   left: -18px;
}

.resource-news-detail__toc-item a {
  display: block;
  font-size: 20px;
  color: #EBEAEB;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}


/* Khung TAGS */

.resource-tags {
  position: relative;
  z-index: 20;
  
  
}

.resource-tags__header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: -3px;
}

.resource-tags__icon {
  width: 24px;
  height: 24px;
  background: url(https://learningchain.vn/wp-content/uploads/2025/11/vector-bi_tag-fill.webp) no-repeat;
  /*background-size: contain;*/
  background-position: center;
}

.resource-tags__title {
  font-size: 16px;
  font-weight: 600;
}



/* Layout TAGS: dùng flex, co theo text */
.resource-tags__grid {
  display: flex;           /* thay vì grid */
  flex-wrap: wrap;        
  align-items: flex-start;
  gap: 35px 50px;          
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #ffffff rgb(25, 25, 25);
  padding-right: 5px;
  padding-top: 36px;
  padding-bottom: 26px;
  padding-left: 24px;
}

/* Mỗi tag co theo nội dung */
.resource-tag-pill {
  display: inline-flex;    /* hoặc inline-block cũng được */
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  filter: brightness(0.5);
  color: #fff;
  padding: 0;
  cursor: pointer;
  height: auto;            /* bỏ cố định 40px nếu muốn */
  margin: 0;               /* row gap đã lo khoảng cách rồi */
  white-space: nowrap;     
  text-align: left;
  transition: filter 1.5s ease-in-out, color 1.5s ease-in-out;
  background: none;
  border: none;
}

.resource-tag-pill .text-content {
  display: inline-block; 
  position: relative;
}
 
.resource-tag-pill .text-content:after {
    content: "";
    background: url(https://learningchain.vn/wp-content/uploads/2025/11/LIGHT-EFFECT-RIGHT-TAGs.webp) no-repeat center;
    width: 40px;
    height: auto;
    aspect-ratio: 58/76;
    position: absolute;
    top: -14px;
    right: -36px;
}

.resource-tag-pill .text-content:before {
    content: "";
    background: url(https://learningchain.vn/wp-content/uploads/2025/11/LIGHT-EFFECT-LEFT-TAGS.webp) no-repeat center;
    width: 40px;
    height: auto;
    aspect-ratio: 58/76;
    position: absolute;
    top: -14px;
    left: -36px;
}

.resource-tag-pill:hover, .resource-tag-pill.is-active{
    filter: brightness(1.2);
    color: #fff;
}

.resource-prompt-ai-aside-container {
    height: 100%;    
    position: relative;
}


@media (min-width: 1024px) {
    .resource-news-detail__toc {
        position: sticky;
        top: 50px;
        margin-bottom: 80px;
    }
    .resource-tags {
        position: sticky;
        top: 480px;
    }
}

@media (max-width: 1585px) {
    .resource-tags__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ========= Responsive ========= */
@media (max-width: 1439px) {
  .resource-news-detail__layout {
    grid-template-columns: minmax(0, 1.8fr) minmax(0px, 1fr);
    gap: calc(38px * 0 + (100vw * 38 / 1439) * 1.0);
  }
  .resource-news-detail__meta-author {
    font-size: 20px;
    margin-top: 0;
  }
}

@media (max-width: 1023px) {
  .resource-news-detail__toc {
      display: none;
  }
  .resource-news-detail__layout {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 35px;
    gap: 30px;
  }
  .resource-news-detail__content {
      order: 2;
  }
  .resource-prompt-ai-aside-container {
      order: 1;
  }
  .resource-tags {
    margin: 0px;
  }
  
  #load_more_prompt_ai {
      display: none;
  }
  .resource-tags__grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
   .resource-news-detail__title {
      font-size: calc(32px * 0.5 + (100vw * 32 / 430) * 0.5);
   }

  .resource-news-detail__media {
    margin-bottom: 28px;
  }
  
  .resource-news-detail__meta, .resource-news-detail__meta-author {
    font-size: 16px;  
  }
  .resource-tags__grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
    .resource-tags__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.scroll-icon {
    position: absolute;
    height: 46px;
    width: 31px;
    bottom: 25px;
    left:0;
}

.scrollDownIcon {
    width: 25px;
    height: 40px;
    border: white solid 2px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
}
.scrollDownIcon span {
    position: relative;
    /*background-color: white;*/
    width: 6px;
    height: 6px;
    border-radius: 30px;
    margin-top: 10px;
}
.scrollDownIcon span::before {
    position: absolute;
    content: '';
    width: 6px;
    height: 6px;
    border: none;
    border-right: 2px solid white;
    border-top: 2px solid white;
    transform: translateY(-10px) translateX(-2px) rotate(135deg);
    margin-top: 10px;
    opacity: 0;

    animation: aniScrollIcon 1.5s infinite linear;
 }
.scrollDownIcon span::after {
    position: absolute;
    content: '';
    width: 6px;
    height: 6px;
    border: none;
    border-right: 2px solid white;
    border-top: 2px solid white;
    transform: translateY(-10px) translateX(-2px) rotate(135deg);
    margin-top: 10px;
    opacity: 0;

    animation: aniScrollIcon  1.5s infinite linear;
    animation-delay: 1.5s;
 }

 @keyframes aniScrollIcon {
    0% {
        margin-top: 10px;
        opacity: 0;
    }
    50% {
        margin-top: 20px;
        opacity: 1;
    }
    100% {
        margin-top: 30px;
        opacity: 0;
    }
 }