/* 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_EVENT.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(63px * 0 + (100vw * 63 / 1920) * 1.0);
  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__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_tin_tuc.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--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(120px * 0 + (100vw * 120/ 1439) * 1.0);
    }
      
    .resource-hero__overlay {
          background-image: url(https://learningchain.vn/wp-content/uploads/2025/12/HERO_BANNER_tablet_width.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;
    }
}

.event-section-title {
    color: white;
    font-size: calc(70px * 0.18 + (100vw * 70 / 1920) * 0.82);
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 5px #fff;
    text-align: center;
    position: relative;
    padding-top: 45px;
}
.event-section-desc {
    color: white;
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    margin: 0 auto;
    width: 50%;
}
.event-section-title::before {
    content: "";
    position: absolute;
    background: url(https://dev.learningchain.vn/wp-content/uploads/2025/11/LIGHT-EFFECT-EVENT-PAGE.webp) no-repeat;
    background-size: contain;
    top: calc((85px * 0.9 + (100vw * 85 / 1920) * 0.1) * -1);
    left: 50%;
    transform: translateX(-50%);
    width: calc(640px * 0.8 + (100vw * 640 / 1920) * 0.2);
    height: auto;
    aspect-ratio: 718/290;
    background-position: center;
}
/* Ẩn khối tiêu đề khi mới load */
.event-section-title-container-scroll {
    opacity: 0;
    transition: opacity 2.6s ease;
}

/* Sau 1.2s xuất hiện sẽ thêm class này */
.event-section-title-container-scroll.is-visible {
    opacity: 1;
}

.event-ai-human-library-container {
    margin-top: 65px;
}

.event-ai-human-library-image-container {
    position: relative;
}
.event-ai-human-library-image-container::before {
    content: "";
    background: url(https://learningchain.vn/wp-content/uploads/2025/12/icon_silver_four_star_event_image.webp) no-repeat center;
    width: 140px;
    height: auto;
    aspect-ratio: 194/189;
    top:-30px;
    left: -30px;
    position: absolute;
    background-size: contain;
}
.event-ai-human-library-image-container::after {
    content: "";
    background: url(https://learningchain.vn/wp-content/uploads/2025/12/icon_silver_four_star_event_image.webp) no-repeat center;
    width: 140px;
    height: auto;
    aspect-ratio: 194/189;
    bottom:-30px;
    right: -30px;
    position: absolute;
    background-size: contain;
}
.event-ai-human-library-image {
    width: 100%;
    height: auto;
    /*aspect-ratio: 16/9;*/
    object-fit: cover;
    border-radius: 30px;
}

.event-ai-human-library-display-flex {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-top: 30px;
    color: #fff;
    padding-left: 45px;
    position: relative;
}
.event-ai-human-library-btn-view-more {
    text-decoration: underline;
    color: #B8B7B7;
}
.event-ai-human-library-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
}
.event-ai-human-library-desc {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
}
.event-ai-human-library-btn-view-more {
    align-self: flex-end;
}

.event-ai-human-library-display-flex::before {
    content: "";
    background: url(https://learningchain.vn/wp-content/uploads/2025/11/LIGHT-EFFECT-EVENT-AI_HUMAN.webp) no-repeat center;
    position: absolute;
    background-size: contain;
    width: auto;
    height: 100%;
    aspect-ratio: 39/132;
    top: 10px;
    left: 0;
}
/* SECTION WRAPPER */
.event-lc-section {
  background: #000;
  color: #fff;
  padding: 200px 0 96px;
  position: relative;
  overflow: hidden;
}

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

.event-lc-title {
  margin: 0;
  font-size: 50px;
  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.35s ease-in-out;
  margin:0;
  cursor: pointer;
}
.event-lc-nav-btn.event-lc-nav-btn--prev {
    transform: rotate(180deg);
}

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

.event-lc-nav-btn.event-lc-nav-btn--prev:hover {
  transform: scale(1.04) 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 22px;
  font-size: 14px;
  font-weight: 700;
  position: relative;
  color: #c9c9c9;
  transition: color 0.9s ease;
}

.event-lc-card-cta::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: -6px;
    left: -18px;
    filter: brightness(0.4);
    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-RIGHT-TAGs.webp) no-repeat center;
    width: 40px;
    height: auto;
    aspect-ratio: 58 / 76;
    position: absolute;
    top: -6px;
    right: -18px;
    filter: brightness(0.4);
    transition: filter 1.2s ease-in-out;
}

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

.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;
}
.event-lc-section-past-event {
    padding-top: 60px;
}
@media (max-width: 1750px) {
    .event-section-desc {
        font-size: 18px;
        width: 80%;
    }
}
@media (max-width: 1439px) {
    .event-ai-human-library-image-container::before, .event-ai-human-library-image-container::after {
        display: none;
    }
    .event-ai-human-library-desc {
        font-size: 18px;
    }
    .event-section-desc {
        font-size: 18px;
        width: 100%;
    }
}
/* Desktop: tắt scroll-snap để inertia mượt hơn */
@media (max-width: 699px) {
  .event-lc-nav-desktop {
      display: none;
  }
  .event-section-title {
    padding-top: 50px;  
    font-size: 32px;
  }

  .event-section-title::before {
        width: 100%;
        top: calc((53px * 0.1 + (100vw * 53 / 430) * 0.9) * -1);
  }
  .event-section-desc {
      font-size: 16px;
      width: 100%;
      font-weight: 300;
  }
  .event-ai-human-library-desc {
      font-size: 14px;
      
  }
  .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;
  }
  .event-lc-section-past-event {
      padding: 0 0 90px;
  }
}

/* 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;
  }

  /* 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);
}