/* ==========================================================================
   Hiệu ứng xếp chồng thẻ (Stacking Sticky Cards) cho trang Tổ chức Activation
   Khớp 100% bản mẫu Vercel (https://nhat-minh-media.vercel.app/activation)
   Áp dụng cho Section .activation3 (.row1, .row2, .row3, .row4)
   ========================================================================== */

/* Bảo đảm không bị kẹt sticky do overflow-x trên thẻ html/body */
html {
  overflow-x: clip !important;
}

body {
  overflow-x: clip !important;
}

:root {
  --activation-header-height: 80px;
  --activation-stack-top: 80px;
  --activation-stack-step: clamp(72px, 6.5vw, 76px);
}

body.admin-bar {
  --activation-header-height: 112px;
  --activation-stack-top: 112px;
}

/* Section container .activation3 */
.activation3 {
  position: relative !important;
  overflow: visible !important;
  background: #ffffff !important;
  padding-top: 40px !important;
  padding-bottom: 260px !important;
  /* Tạo không gian cuộn giữ trạng thái xếp chồng trước khi sang section sau */
}

.activation3 .section-bg {
  display: none !important;
}

.activation3 .section-content {
  position: relative !important;
  overflow: visible !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
}

/* Cấu trúc các thẻ Row trong .activation3 */
.activation3 .row1,
.activation3 .row2,
.activation3 .row3,
.activation3 .row4 {
  position: relative;
  width: 100% !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: #ffffff !important;
  border-top: 1px solid #dce3ec !important;
  padding-top: 26px !important;
  padding-bottom: 30px !important;
  margin-bottom: 48px !important;
  box-shadow: 0 -4px 18px rgba(15, 49, 88, 0.04) !important;
  box-sizing: border-box !important;
}

/* Ẩn cột divider mặc định cuối mỗi row để dùng border-top chuẩn */
.activation3 .row .col:last-child:has(.is-divider),
.activation3 .row .is-divider {
  display: none !important;
}

/* Cột số thứ tự 01, 02, 03, 04 */
.activation3 .row>.col:first-child {
  padding-top: 4px !important;
}

.activation3 .row>.col:first-child p {
  color: #06090d !important;
  font-size: clamp(50px, 5.2vw, 68px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.065em !important;
  line-height: 0.95 !important;
  margin: 0 !important;
}

/* Cột nội dung text ở giữa */
.activation3 .sub-title1 {
  margin-bottom: 22px !important;
}

.activation3 .sub-title1 p {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 6px 20px !important;
  border: 1.5px solid #e22d30 !important;
  border-radius: 999px !important;
  color: #e22d30 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

.activation3 h3 {
  color: #0b111a !important;
  font-size: clamp(26px, 2.7vw, 36px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.22 !important;
  text-transform: uppercase !important;
  margin-top: 12px !important;
  margin-bottom: 20px !important;
}

.activation3 h3 strong,
.activation3 h3 span {
  color: #e22d30 !important;
  font-weight: inherit !important;
}

.activation3 .col:nth-child(2) p:not(.sub-title1 p) {
  color: #273447 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  max-width: 640px !important;
  margin: 0 !important;
}

/* Cột hình ảnh bên phải */
.activation3 .col:nth-child(3) .img-inner {
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 40px rgba(15, 49, 88, 0.09) !important;
  background: #e9eef5 !important;
}

.activation3 .col:nth-child(3) .img-inner img {
  border-radius: 22px !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.activation3 .row:hover .col:nth-child(3) .img-inner img {
  transform: scale(1.025) !important;
}

/* ==========================================================================
   Kích hoạt hiệu ứng Stacking Sticky trên màn hình máy tính (min-width: 850px)
   ========================================================================== */
@media (min-width: 850px) {

  .activation3 .row1,
  .activation3 .row2,
  .activation3 .row3,
  .activation3 .row4 {
    position: -webkit-sticky !important;
    position: sticky !important;
    background: #ffffff !important;
  }

  /* Row 1: Cạnh chạm ngay dưới header thì dừng lại (fixed) */
  .activation3 .row1 {
    top: var(--activation-stack-top, 80px) !important;
    z-index: 10 !important;
  }

  /* Row 2: Cuộn lên đè lên row 1, dừng lại để lộ mép row 1 */
  .activation3 .row2 {
    top: calc(var(--activation-stack-top, 80px) + var(--activation-stack-step, 76px)) !important;
    z-index: 20 !important;
  }

  /* Row 3: Cuộn lên đè lên row 2, dừng lại để lộ mép row 2 */
  .activation3 .row3 {
    top: calc(var(--activation-stack-top, 80px) + calc(var(--activation-stack-step, 76px) * 2)) !important;
    z-index: 30 !important;
  }

  /* Row 4: Cuộn lên đè lên row 3, dừng lại hiển thị trọn vẹn thẻ cuối */
  .activation3 .row4 {
    top: calc(var(--activation-stack-top, 80px) + calc(var(--activation-stack-step, 76px) * 3)) !important;
    z-index: 40 !important;
  }
}

/* ==========================================================================
