/* 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/11/hero_banner_tai_nguyen_tin_tuc.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;
  white-space: nowrap;
  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__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__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 {
        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: 120px;
  color: #ffffff;
  z-index: 50;
  position: relative;
}

.resource-news-detail__inner {
  margin: 0 auto;
}

/* Breadcrumbs */

.resource-news-detail__breadcrumbs {
  font-size: 16px;
  font-weight: 300;
  color: #D3D2D2;
  margin-top: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.resource-news-detail__breadcrumbs-icon {
  object-fit: contain;
  width: 20px;
  height: auto;
  aspect-ratio: 25/23;
  margin-top: -3px;
}
.resource-news-detail__breadcrumbs-link {
  color: rgba(255, 255, 255, 0.8);
}

.resource-news-detail__breadcrumbs-sep {
  opacity: 0.5;
}

/* Article card */

.resource-news-detail__article {
}

/* Title + meta */

.resource-news-detail__title {
  margin: 0 0 32px;
  font-size: calc(70px * 0.4 + (100vw * 70 / 1920) * 0.6);
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}

/* Social icons – tạm thời dạng chữ, sau bạn thay icon SVG */
.resource-news-detail__author-socials {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.resource-news-detail__author-social {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

/* Hiện card khi hover meta-wrapper hoặc focus vào link tác giả */
.resource-news-detail__meta-wrapper:hover .resource-news-detail__author-card,
.resource-news-detail__meta-wrapper:focus-within .resource-news-detail__author-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-4px);
}

/* Responsive */

@media (max-width: 1023px) {

  .resource-news-detail__author-card-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
    padding: 20px 22px;
  }
}

@media (max-width: 699px) {
  .resource-news-detail__author-card-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .resource-news-detail__breadcrumbs {
    margin-top: 16px;
    margin-bottom: 16px;
  }
  h1.resource-news-detail__title {
    margin-bottom: 20px;  
  }
}

/* Featured image */

.resource-news-detail__media {
  margin-bottom: 40px;
}

.resource-news-detail__media-frame {
  border-radius: 30px;
  overflow: hidden;
}

.resource-news-detail__featured-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* Layout 2 cột */

.resource-news-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(150px, 1.15fr);
  gap: calc(75px * 0 + (100vw * 75 / 1920) * 1.0);
  align-items: flex-start;
}

/* Content styling */

.resource-news-detail__content {
  font-size: 20px;
  line-height: 1.5;
  color: #D3D2D2 !important;
  text-align: justify;
  
}

.resource-news-detail__content p {
  margin: 0 0 2px;
  color: #D3D2D2 !important;
  font-weight: 400;
}

.resource-news-detail__content strong {
  color: #D3D2D2 !important;
  font-weight: 700;
}

.resource-news-detail__content span {
  color: #D3D2D2 !important;
}

.resource-news-detail__content h2,
.resource-news-detail__content h3,
.resource-news-detail__content h4,
.resource-news-detail__content h5,
.resource-news-detail__content h6 {
  margin-top: 30px;
  margin-bottom: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #D3D2D2 !important;
  text-align: left;
}



.resource-news-detail__content h2 {
  font-size: calc(40px * 0.7 + (100vw * 40 / 1920) * 0.3);
}

.resource-news-detail__content h3 {
  font-size: calc(32px * 0.7 + (100vw * 32 / 1920) * 0.3);
}

.resource-news-detail__content h4 {
  font-size: calc(28px * 0.7 + (100vw * 28 / 1920) * 0.3);
}
.resource-news-detail__content h5 {
  font-size: calc(24px * 0.7 + (100vw * 24 / 1920) * 0.3);
}

.resource-news-detail__content ul,
.resource-news-detail__content ol {
  padding-left: 20px;
  margin: 0 0 18px;
  color: #D3D2D2 !important;
}

.resource-news-detail__content li {
  margin-bottom: 6px;
}

.resource-news-detail__content img {
    width: 100%;
    border-radius: 8px;
    height: auto;
    margin-top: 15px;
}
.resource-news-detail__content figure, .resource-news-detail__content .wp-caption  {
    width: 100% !important;
    padding: 0;
    margin: 0;
    max-width: 100%;
} 
/* TOC */

.resource-news-detail__toc {
  border-radius: 20px;
  background: rgb(26, 26, 26);
  padding: 24px 20px 16px 24px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 40px;
  align-self: flex-start; 
}

.resource-news-detail__toc-header {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
}


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


/* chỉ áp dụng trong box TOC – scrollbar mảnh */
.resource-news-detail__toc-body {
  display: flex;
  flex-direction: column;
}

.resource-news-detail__toc-list {
  list-style: none;
  margin: 0;
  padding: 22px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  word-break: break-word;
}

.resource-news-detail__toc-item {
   position: relative;
}

.resource-news-detail__toc-item::before {
   content: "";
   background: url(https://learningchain.vn/wp-content/uploads/2025/11/icon_calendar_event.webp) no-repeat center;
   background-size: contain;
   width: 16px;
   height: auto;
   aspect-ratio: 1/1;
   position: absolute;
   top:2px;
   left: 0;
}

.resource-news-detail__toc-time-item::before {
   background: url(https://learningchain.vn/wp-content/uploads/2025/11/icon_time_event.webp) no-repeat center; 
}

.resource-news-detail__toc-location-item::before {
   background: url(https://learningchain.vn/wp-content/uploads/2025/11/location_icon_event.webp) no-repeat center;
   top: 3.5px;
}
.resource-news-detail__toc-mail-item::before {
   background: url(https://learningchain.vn/wp-content/uploads/2025/11/icon_mail_event.webp) no-repeat center;
   top: 3.5px;
}

.resource-news-detail__toc-item {
  padding-left: 24px;
  display: block;
  font-size: 16px;
  color: #EBEAEB;
}

/* ========= 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;
  }
  .event-lc-card-cta.event-lc-card-cta-event-detail {
    font-size: 20px;
  }
}

@media (max-width: 1023px) {
  .resource-news-detail__toc {
      margin-top: 20px;
      margin-bottom: 40px;
  }
  .event-lc-card-cta-event-container {
      text-align: right;
  }
  .resource-news-detail__layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .resource-news-detail__content {
    font-size: 18px;
  }
  .event-lc-card-cta-container {
      display: flex;
      justify-content: flex-end;
  }
}

@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__content {
    font-size: 14px;
  }
  .resource-news-detail__meta, .resource-news-detail__meta-author {
    font-size: 16px;  
  }
}


/* HEADER */
.event-lc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  margin-top: 80px;
}

.event-lc-title {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(to right, #696969 0%, #ffffff 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.event-lc-subtitle {
  margin: 0;
  max-width: 680px;
  font-size: 20px;
  color: #fff;
}

/* NAV BUTTONS */
.event-lc-nav {
  display: flex;
  gap: 12px;
  align-self: flex-end;
}

.event-lc-nav-btn {
  width: 39px;
  height: 39px;
  border: none;
  background: url(https://learningchain.vn/wp-content/uploads/2025/11/icon-image-right-button.webp) no-repeat center;
  background-size: contain;
  display: inline-flex;
  transition: transform 0.3s ease;
  margin:0;
  cursor: pointer;
}
.event-lc-nav-btn.event-lc-nav-btn--prev {
    transform: rotate(180deg);
}

.event-lc-nav-btn:hover {
  transform: scale(1.02);
}

.event-lc-nav-btn.event-lc-nav-btn--prev:hover {
  transform: scale(1.02) rotate(180deg);
}

/* SLIDER */
.event-lc-slider {
  position: relative;
}

.event-lc-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 18px;
}

.event-lc-track::-webkit-scrollbar {
  height: 0;
}

/* RIGHT FADE */
.event-lc-fade-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0, 0, 0, 0), #000 70%);
}

/* CARD */
.event-lc-card {
  scroll-snap-align: start;
  flex: 0 0 350px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.event-lc-card-media {
  position: relative;
  overflow: hidden;
}

.event-lc-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12/10;
  object-fit: cover;
}

/* STATUS & VIEW PILLS */
.event-lc-pill {
  position: absolute;
  top: 10px;
  padding: 4.5px 12px;
  border-radius: 999px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  font-weight: 300;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.event-lc-pill--status {
  left: 12px;
  background: rgba(0, 0, 0, 0.4);
 
}

.event-lc-pill--view {
  right: 12px;
  background: rgba(0, 0, 0, 0.4);
}

.event-lc-pill-dot {
  display: inline-block;
}

.event-lc-pill--offline .event-lc-pill-dot {
  background: url(https://learningchain.vn/wp-content/uploads/2025/11/icon-offline-event-card.webp) no-repeat center;
  width: 11px;
  height: 14px;
}

.event-lc-pill--online .event-lc-pill-dot {
  background: url(https://learningchain.vn/wp-content/uploads/2025/11/icon-online-event-card.webp) no-repeat center;
  width: 16px;
  height: 12px;
  background-size: contain;
}

/* đơn giản icon con mắt bằng 2 vòng tròn */
.event-lc-pill-icon-eye {
  width: 17px;
  height: 12px;
  background: url(https://learningchain.vn/wp-content/uploads/2025/11/icon-eye-event-card.webp) no-repeat center;
  background-size: contain;
  margin-bottom: -0.8px;
}


/* CARD BODY */
.event-lc-card-body {
  padding: 16px 18px 16px;
}

.event-lc-card-title {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.4;
  height: 41px;
}

.event-lc-card-title, .event-lc-card-desc {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.event-lc-card-desc {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.6;
  color: rgb(222, 222, 222);
  font-weight: 200;
  height: 38px;
}

/* FOOTER */
.event-lc-card-footer {
  display: flex;
  /*align-items: center;*/
  justify-content: space-between;
  gap: 12px;
}

.event-lc-card-meta {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.5;
}

.event-lc-card-time {
  color: #f5f5f5;
  font-weight: 200;
}

.event-lc-card-date {
  color: #e4e4e4;
  font-weight: 600;
}


/* CTA BUTTON */
.event-lc-card-cta {
  padding: 10px 43px;
  font-size: 24px;
  font-weight: 700;
  position: relative;
  color: #c9c9c9;
  transition: color 0.9s ease;
  display: inline-block;
  background: transparent;
  border: none;
  cursor: pointer;
  margin: 0;
}

.event-lc-card-cta::before {
    content: "";
    background: url(https://learningchain.vn/wp-content/uploads/2025/11/LIGHT-EFFECT-EVENT_CTA_DETAIL.webp) no-repeat center;
    width: 60px;
    height: auto;
    aspect-ratio: 58 / 87;
    background-size: contain;
    position: absolute;
    top: -18px;
    left: -22px;
    filter: brightness(1.0);
    transition: filter 1.2s ease-in-out;
}

.event-lc-card-cta::after {
    content: "";
    background: url(https://learningchain.vn/wp-content/uploads/2025/11/LIGHT-EFFECT-EVENT_CTA_DETAIL.webp) no-repeat center;
    width: 60px;
    height: auto;
    transform: rotate(180deg);
    aspect-ratio: 58 / 87;
    position: absolute;
    top: -18px;
    right: -22px;
    filter: brightness(1.0);
    transition: filter 1.2s ease-in-out;
}

.event-lc-card-cta:hover.event-lc-card-cta::after,  .event-lc-card-cta:hover.event-lc-card-cta::before{
  filter: brightness(2.5);
}

.event-lc-card:hover .event-lc-card-cta{
  color: #fff;
}

.event-lc-nav-tablet {
    display: none;
}
/* Ẩn card khi không nằm trong trang hiện tại (chế độ tablet) */
.event-lc-card--hidden {
  display: none;
}

/* Desktop: tắt scroll-snap để inertia mượt hơn */
@media (max-width: 699px) {
  .event-lc-nav-desktop {
      display: none;
  }

  .event-lc-subtitle {
    font-size: 16px;
    text-align: center;
  }
  .event-lc-title {
      font-size: 32px;
      line-height: 1.2;
      margin-bottom: 5px;
      text-align: center;
  }
  .event-lc-card {
    flex: unset;
  }
  
  
  .event-lc-section {
    padding: 130px 0 90px;
  }
  
  .event-lc-track {
      flex-direction: column;
  }
  .event-lc-fade-right {
      display: none;
  }
}

/* Tablet 700px–1023px: hiển thị 2 hàng, 2 cột */
@media (min-width: 700px) and (max-width: 1023px) {
   .event-lc-nav-desktop {
       display: none;
   }
   .event-lc-nav-tablet {
      margin-top: 50px;
      display: flex;
      justify-content: center;
    }
  /* Header có thể xếp lại cho gọn, tuỳ bạn */
  .event-lc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .event-lc-subtitle {
      font-size: 18px;
  }
  /* Track đổi từ flex sang grid 2 cột */
  .event-lc-track {
    display: grid;                             /* quan trọng */
    grid-template-columns: repeat(2, 1fr);     /* 2 cột */
    gap: 42px 22px;                            /* khoảng cách giữa card */
    overflow-x: visible;                       /* không cần scroll ngang nữa */
    overflow-y: visible;
    padding-bottom: 0;
  }

  /* Card để grid điều khiển, bỏ kích thước flex cũ */
  .event-lc-card {
    flex: 0 0 auto;   /* giá trị này trong grid gần như bị bỏ qua, nhưng để ở đây cũng không sao */
    width: 100%;
  }

  /* Không cần hiệu ứng mờ phải */
  .event-lc-fade-right {
    display: none;
  }
}
.sa2-overlay {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
    opacity: 1;
    transition: 0.2s;
    backdrop-filter: blur(5px);
}
.sa2 {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.2);
    padding: 20px 24px;
    max-width: 360px;
    width: calc(100% - 32px);
    text-align: center;
    font:
        14px/1.4 system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif;
    opacity: 1;
    transform: none;
    transition: 0.2s;
}
.sa2 h3 {
    margin: 8px 0 6px;
    font-size: 18px;
}
.sa2 p {
    margin: 0;
    color: #444;
}
.sa2 .icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f7ee;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
}
.sa2 .icon svg {
    width: 34px;
    height: 34px;
    color: #16a34a;
}
.sa2.fade,
.sa2-overlay.fade {
    opacity: 0;
    transform: translateY(6px);
}