a.resource-card:hover {
    color: #fff;
}
/* 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(180px * 0.1 + (100vw * 180 / 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;
  align-items: center;
  gap: 8px;
  color: #696969;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
}

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

.resource-tab_icon_learning_chain {
  width: 45px;
  height: 32px;
  background: url(https://learningchain.vn/wp-content/uploads/2025/12/about_learning_chain_news_homapge.png) 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.webp) no-repeat center;
  background-size: contain;
}

.resource-tab.resource-tab--active {
  border-color: transparent;
  color: #fff;
}

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

.resource-hero__overlay_image_tablet {
    display: none;    
}
.resource-hero__tabs_mobile {
    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-hero__tabs_mobile {
       display: flex;
       position: fixed;
       bottom: 0;
       left: 0;
       justify-content: center;
       background: radial-gradient(140% 180% at 12% 5%, rgb(165 165 165 / 18%), rgb(253 253 253 / 0%) 55%), radial-gradient(120% 160% at 95% 15%, rgb(255 255 255 / 4%), rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, #2d2d2d, #1a1a1a 55%, #414141);
       padding: 12px 0;
       z-index: 998;
       width: 100%;
    }
    
    .resource-hero__tabs::before{ 
        content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500"><filter id="noise"><feTurbulence baseFrequency="0.95" numOctaves="3" stitchTiles="stitch" type="fractalNoise"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>'); 
        opacity: 0.18; 
        z-index: 1; 
        pointer-events: none;
    }
    
    .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);
    }
}


/* =========================
   XU HƯỚNG THỊ TRƯỜNG
   ========================= */

.resource-trend {
  padding-bottom: 100px;
  color: #fff;
}

.resource-trend__inner {
  margin: 0 auto;
}

/* Header */

.resource-trend__header {
  margin-bottom: 40px;
  z-index: 20;
  position: relative;
}

.resource-trend__heading {
  margin: 0 0 10px;
  font-size: 50px;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(to right, #8d8d8d 0%, #ffffff 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resource-trend__desc {
  margin: 0;
  max-width: 550px;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
}

/* Filter "Tổng hợp" */

.resource-trend__filter {
  position: relative;
  padding-top: 8px;
}

.resource-trend__filter-glow {
  position: absolute;
  inset: 0;
  width: 70px;
  margin: 0 auto;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.8), transparent 70%);
  filter: blur(6px);
  opacity: 0.8;
  pointer-events: none;
}

.resource-trend__filter-btn {
  position: relative;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.resource-trend__filter-btn::before {
  content: "";
  position: absolute;
  top: -56px;
  left: -80px;
  width: 124px;
  height: 140px;
  background: url("https://learningchain.vn/wp-content/uploads/2025/11/LIGHT_EFFECT_tin-tuc.webp") no-repeat center;
  pointer-events: none;
}


.resource-trend__filter-icon {
    width: 21px;
    height: 21px;
    object-fit: contain;
}

/* Layout 2 cột */

.resource-trend__layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(150px, 1fr);
  gap: calc(65px * 0 + (100vw * 65 / 1920) * 1.0);
}

/* Grid card bài viết */

.resource-trend__posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(24px * 0.1 + (100vw * 24 / 1920) * 0.9);
}

.resource-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  color: #fff;
}
.resource-card::after {
    position: absolute;
    content: "";
    background: url(https://learningchain.vn/wp-content/uploads/2025/11/image-light-effect-for-card-post.webp) no-repeat center;
    width: 100%;
    height: auto;
    aspect-ratio: 282/26;
    background-size: contain;
    bottom: 0;
    left:0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.resource-card:hover.resource-card::after {
    opacity: 1;
} 

.resource-card__media {
  position: relative;
  padding: 11px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.08) 79.81%);
  backdrop-filter: blur(22px);
}

.resource-card__category {
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(105,105,105,0.5);
  display: inline-flex;
  gap: 6px;
  font-size: 13px;
}
.resource-card__category span {
    line-height: 1.3;
}

.resource-card__image-wrap img {
    object-fit: contain;
    filter: brightness(1.8);
}

.resource-card__image-wrap .img-category-web3-card {
    width: 20px;
    height: 20px;
}

.resource-card__image-wrap .img-category-ai-card {
    width: 17px;
    height: auto;
    aspect-ratio: 24/16;
}

.resource-card__image-wrap .img-category-blockchain-card {
    width: 15px;
    height: auto;
    aspect-ratio: 20/23;
}

.resource-card-image-post {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.resource-card__body {
  padding: 12px 16px 29px;
}

.resource-card__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.5;
  color: #fff;
}

.resource-card__title, .resource-card__excerpt {
  
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.resource-card__excerpt {
  line-height: 1.8;  
  margin: 0;
  font-size: 11px;
  color: #bbbbbb;
}

/* Khung TAGS */

.resource-tags {
  align-self: flex-start;
  margin-top: 168px;
  position: relative;
  z-index: 20;
  
  
}

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

.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: 20px;
  padding-bottom: 26px;
  padding-left: 28px;
}

/* 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;
  cursor: pointer;
  height: auto;            /* bỏ cố định 40px nếu muốn */
  max-width: none;         /* bỏ limit 85px */
  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;
}

.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.resource-tag-pill--active{
    filter: brightness(1.2);
    color: #fff;
}

.resource-trend__header_tablet_flex {
    display: none;
}

/* Responsive */
@media (max-width: 1439px) {
    .resource-tags__grid {
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .resource-trend__layout {
      grid-template-columns: minmax(0, 5fr) minmax(150px, 1fr);
    }
}


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

@media (max-width: 1023px) {
  .resource-trend__heading {
      text-align: center;
  }
  .resource-trend__desc {
      font-size: 18px;
      text-align: center;
  }
  
  .resource-trend__desc_display_flex {
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 20px;
  }

  .resource-trend_header_display_flex {
    order: 2;
  }
  .resource-trend__header_tablet_flex {
    display: block;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .resource-trend__header_desktop {
    display: none;
  }
  .resource-trend__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .resource-tags {
    order: 1;
    margin-top: 5px;
  }
  .resource-tags__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .resource-trend__posts {
      gap: calc(50px * 0 + (100vw * 50 / 1024) * 1.0);
  }
  .resource-card__excerpt {
      margin-bottom: 12px;
  }
}

@media (max-width: 699px) {
  
  .resource-trend__posts {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .resource-trend__heading {
    font-size: 32px;
  }
  .resource-tags__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: space-between;
    padding-right: 2.5px;

  }
  .resource-tag-pill {
      font-size: 14px;
  }
  .resource-tag-pill:before {
      left: -32px;
  }
  .resource-tag-pill:after {
      right: -32px;
  }
  .resource-tags {
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .resource-card__body {
     padding-top: calc(20px * 0.7 + (100vw * 20 / 650) * 0.3);
     padding-bottom: calc(40px * 0.7 + (100vw * 40 / 650) * 0.3);
  }
  .resource-trend__filter-btn:after {
    content: "";
    position: absolute;
    top: -56px;
    right: -100px;
    width: 124px;
    height: 140px;
    background: url(https://learningchain.vn/wp-content/uploads/2025/11/LIGHT_EFFECT_tin-tuc.webp) no-repeat center;
    transform: rotate(180deg);
    pointer-events: none;
  }
  .resource-trend__filter-btn:before {
        left: -100px;
  }
  .resource-hero__title {
      font-weight: 700;
  }
  .resource-trend__desc {
      font-size: 16px;
  }
}


@media (max-width: 420px) {
  .resource-tags__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.resource-trend__desc_display_flex {
    display: flex;
    justify-content: space-between;
}
.resource-pagination {
  margin-top: 60px;
  text-align: center;
  font-size: 16px;
  font-weight: 300;
}

.resource-pagination .page-numbers {
  margin: 0 8px;
  text-decoration: none;
  color: #ffffff;
  opacity: 0.7;
}

.resource-pagination .page-numbers.current, .page-numbers.prev, .page-numbers.next{
  font-weight: 600;
  opacity: 1;
}

.resource-pagination .page-numbers:hover {
  opacity: 1;
}
/* ===== DROPDOWN FILTER XU HƯỚNG ===== */

.resource-trend__filter-button-with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.resource-trend__filter-button-with-icon img {
  pointer-events: none;
}

/* hộp dropdown */
.resource-trend__filter-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  left: auto;
  min-width: 140px;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgb(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0.25);
  opacity: 0;
  pointer-events: none;
  transform-origin: top center;
  transition: opacity .75s ease-in-out, transform .65s ease;
  z-index: 30;
}

/* trạng thái mở */
.resource-trend__filter-dropdown.is-open {
  opacity: 1;
  pointer-events: unset;
}

/* mỗi option */
.resource-filter-option {
  all: unset;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 8px 4px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #f2f2f2;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.resource-filter-option__icon {
  flex: 0 0 32px;
  height: 32px;
  background-repeat: no-repeat;
  background-position: center;
  /*background-size: contain;*/
}

/* icon cụ thể – thay URL cho đúng icon của bạn */
.resource-filter-option__icon.icon-ai {
  background-image: url('https://dev.learningchain.vn/wp-content/uploads/2025/11/Vector-AI-filter-tin-tuc.webp');
}
.resource-filter-option__icon.icon-web3 {
  background-image: url('https://dev.learningchain.vn/wp-content/uploads/2025/11/ion_logo-web3-component.webp');
}
.resource-filter-option__icon.icon-blockchain {
  background-image: url('https://dev.learningchain.vn/wp-content/uploads/2025/11/ion_logo-blockchain-component.webp');
}
.resource-filter-option__icon.icon-all {
  background-image: url('https://learningchain.vn/wp-content/uploads/2025/11/icon-all.webp');
}

/* trạng thái hover / active */
.resource-filter-option:hover,
.resource-filter-option.is-active {
  background: rgba(255,255,255,0.06);
}

/* label "Tổng hợp" */
.resource-trend__filter-label {
  white-space: nowrap;
}

/* mobile: cho dropdown bám bên dưới nút, khỏi lệch */
@media (max-width: 699px) {
  .resource-trend__filter-dropdown {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
  }
  .resource-trend__filter-dropdown.is-open {
    transform: translateX(-50%) translateY(0);
  }
}
.resource-trend__posts.is-loading { opacity: 0.5; pointer-events:none; }
.resource-pagination .page-numbers.dots {
  opacity: 0.5;
  cursor: default;
}