/* --- Grid 4×2, mỗi card 280×420 --- */
.tcp8 .tcp8__grid {
    display: grid;
    grid-template-columns: repeat(4, 280px);
    grid-auto-rows: 420px;
    gap: 20px;
    justify-content: center;
}

@media (max-width:1200px) {
    .tcp8 .tcp8__grid {
        grid-template-columns: repeat(3, 280px);
    }
}

@media (max-width:960px) {
    .tcp8 .tcp8__grid {
        grid-template-columns: repeat(2, 280px);
    }
}

@media (max-width:640px) {
    .tcp8 .tcp8__grid {
        grid-template-columns: 280px;
    }
}

/* --- Card core --- */
.tcp8 .tcp8-card {
    width: 280px;
    height: 420px;
    background: #03036D;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    box-shadow: 0 10px 24px rgba(3, 3, 109, .18);
}

.tcp8 .tcp8-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--tcp8-bg);
    background-position: 150px 100px;
    background-repeat: no-repeat;
    background-size: contain;
}

/* --- Khu text trên cùng --- */
.tcp8 .tcp8-card__top {
    position: relative;
    z-index: 1;
    padding: 20px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Typography theo spec (Inter) + fallback màu nếu thiếu biến Elementor */
.tcp8 .tcp8-name {
    margin: 0;
    font-family: "Inter", Sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.33em;
    letter-spacing: 0;
    color: var(--e-global-color-4a61049, #ffffff);
}

.tcp8 .tcp8-position {
    font-family: "Inter", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.71em;
    letter-spacing: 0;
    color: var(--e-global-color-4a61049, #ffffff);
}

.tcp8 .tcp8-company {
    font-family: "Inter", Sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5em;
    letter-spacing: 0;
    color: var(--e-global-color-4a61049, #ffffff);
}

/* --- Ảnh dưới cùng: cover 250px --- */
.tcp8 .tcp8-card__image {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.tcp8 .tcp8-card__image img {
    width: 100%;
    max-width: none;
    height: 250px;
    object-fit: cover;
    object-position: center center;
    filter: brightness(100%) contrast(100%) saturate(100%) blur(0px) hue-rotate(0deg);
    display: block;
}

/* --- CTA ô thứ 8 --- */
/* ===== CTA with outer white frame + shadow ===== */

/* Ô CTA vẫn full chiều rộng ô lưới */
.tcp8 .tcp8__cell--cta {
    width: 100%;
}

/* Khung ngoài: nền trắng + shadow + bo góc lớn + padding tạo “viền trắng” */
.tcp8 .tcp8-card--cta {
    position: relative;
    background: #fff;
    /* viền/khung trắng */
    border-radius: 22px;
    /* bo góc của khung ngoài */
    padding: 16px;
    /* độ dày viền trắng */
    box-shadow: 0 14px 34px rgba(16, 24, 40, .12);
    display: flex;
    overflow: visible;
}

/* Không dùng overlay cũ (nếu còn) */
.tcp8 .tcp8-card--cta::before,
.tcp8 .tcp8-card--cta::after {
    content: none !important;
}

/* Panel trong: nền xám nhạt, bo góc nhỏ hơn để lộ khung trắng */
.tcp8 .tcp8-cta {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
    border-radius: 16px;
    /* bo góc panel trong */
    background: #EDF2FF;
    /* nền như mockup */
    padding: 32px 22px;
    /* canh nội dung */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1B1F5A;
    overflow: hidden;
    /* cho vòng tròn mờ nằm gọn panel */
}

/* Vòng tròn mờ đặt TRONG panel trong */
.tcp8 .tcp8-cta::after {
    content: "";
    position: absolute;
    inset: auto 0 14% 0;
    margin: auto;
    width: min(78%, 340px);
    aspect-ratio: 1/1;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, rgba(255, 255, 255, .75),
            rgba(255, 255, 255, .35) 55%,
            rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

/* Tiêu đề + mô tả + nút (giữ style bạn đang dùng) */
.tcp8 .tcp8-cta__badge {
    display: none;
}

.tcp8 .tcp8-cta__title {
    margin: 0 0 12px;
    font-weight: 800;
    font-size: 27px;
    line-height: 1.15;
    color: #1E1B86;
}

.tcp8 .tcp8-cta__title .small {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #5A5AD6;
}

.tcp8 .tcp8-cta__desc {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #2D3355;
    opacity: .95;
}

.tcp8 .tcp8-cta__btn {
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    gap: 12px;
    padding: 14px 18px 14px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(90deg, #4427E6, #7A51FF);
    box-shadow: 0 12px 28px rgba(67, 46, 226, .22);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.tcp8 .tcp8-cta__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(67, 46, 226, .28);
    filter: brightness(1.03);
}

.tcp8 .tcp8-cta__btn span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #3420B3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
    flex: 0 0 auto;
}

/* Mobile tweaks */
@media (max-width:640px) {
    .tcp8 .tcp8-card--cta {
        padding: 14px;
        border-radius: 20px;
    }

    .tcp8 .tcp8-cta {
        padding: 26px 18px;
        border-radius: 14px;
    }

    .tcp8 .tcp8-cta__title {
        font-size: 24px;
    }

    .tcp8 .tcp8-cta__desc {
        font-size: 15px;
    }

    .tcp8 .tcp8-cta__btn {
        font-size: 16px;
        padding: 12px 16px 12px 20px;
    }

    .tcp8 .tcp8-cta__btn span {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
}

/* --- Hiệu ứng đổi thẻ --- */
@keyframes tcp8In {
    from {
        opacity: 0;
        transform: scale(.985)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.tcp8 .tcp8-anim {
    animation: tcp8In .28s ease-out;
}

/* ==== Mobile full-width fix (≤ 640px) ==== */
@media (max-width: 640px){
  /* Grid 1 cột, cột chiếm toàn bộ chiều ngang */
  .tcp8 .tcp8__grid{
    grid-template-columns: 1fr;      /* thay vì 280px */
    justify-content: stretch;         /* không center track gây hở 2 bên */
    width: 90%;
    margin: 0 auto;
    justify-content: initial;
  }

  /* Ô và card co giãn full cột */
  .tcp8 .tcp8__cell{ width: auto; }
  .tcp8 .tcp8-card,
  .tcp8 .tcp8-card.tcp8-card--cta{
    width: 100%;                      /* thay vì 280px */
  }

  /* Tuỳ thích có thể giảm gap trên mobile */
  /* .tcp8 .tcp8__grid{ grid-column-gap: 16px; grid-row-gap: 20px; } */
  .tcp8 .tcp8-card__image img
 {
    width: 60%;
 }
 .tcp8 .tcp8-card::before {
    background-position: 0% 0px;
    opacity: 0.5;
 }
}


/* ===== Force CTA style no matter what ===== */

/* Khung trắng + shadow cho CTA (đè mọi rule card mặc định) */
.tcp8 .tcp8__cell--cta > .tcp8-card{
  position: relative;
  background: #fff !important;      /* KHẮC PHỤC: không còn nền xanh */
  border-radius: 22px !important;
  padding: 16px !important;         /* viền trắng ngoài */
  box-shadow: 0 14px 34px rgba(16,24,40,.12) !important;
  overflow: visible;
}

/* TẮT hoàn toàn overlay/pattern của card mặc định */
.tcp8 .tcp8__cell--cta > .tcp8-card::before,
.tcp8 .tcp8__cell--cta > .tcp8-card::after{
  content: none !important;
  background: none !important;
}

/* Panel trong CTA (nền xám nhạt + bo góc) */
.tcp8 .tcp8__cell--cta > .tcp8-card .tcp8-cta{
  background: #EDF2FF !important;
  border-radius: 16px !important;
  padding: 32px 22px !important;
  color: #1B1F5A !important;
  text-align: center;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; height: 100%;
  overflow: hidden;
}

/* Vòng tròn mờ ở giữa (nếu bạn đang dùng) */
.tcp8 .tcp8__cell--cta > .tcp8-card .tcp8-cta::after{
  content:"";
  position:absolute; inset:auto 0 14% 0; margin:auto;
  width:min(78%,340px); aspect-ratio:1/1; border-radius:50%;
  background: radial-gradient(closest-side,
              rgba(255,255,255,.75),
              rgba(255,255,255,.35) 55%,
              rgba(255,255,255,0) 70%);
  pointer-events:none;
}

/* Tiêu đề/desc giữ đúng màu */
.tcp8 .tcp8__cell--cta .tcp8-cta__title{ color:#1E1B86 !important; font-weight:800; }
.tcp8 .tcp8__cell--cta .tcp8-cta__desc { color:#2D3355 !important; opacity:.95; }

/* Nút luôn 1 dòng (như đã chỉnh) */
.tcp8 .tcp8__cell--cta .tcp8-cta__btn{ white-space:nowrap; gap:12px; }
.tcp8 .tcp8__cell--cta .tcp8-cta__btn span{ flex:0 0 auto; }

@media (max-width:640px){
  .tcp8 .tcp8__cell--cta > .tcp8-card{ padding:14px !important; }
  .tcp8 .tcp8__cell--cta > .tcp8-card .tcp8-cta{ padding:26px 18px !important; }
}


/* === SHARE SKIN CHO SLIDER STEP (.tcp8step) === */
:root{
  --tcp8-card-w: 280px;
  --tcp8-card-h: 420px;
}

/* khung + nền xanh */
.tcp8step .tcp8-card{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  width: var(--tcp8-card-w);
  height: var(--tcp8-card-h);
  border-radius:15px;
  overflow:hidden;
  background:#03036D !important;
  color:#fff;
}
.tcp8step .tcp8-card::before{
  content:"";
  position:absolute; inset:0;
  background-image: var(--tcp8-bg);
  background-position:150px 100px;
  background-repeat:no-repeat;
  background-size:contain;
  pointer-events:none;
  z-index:0;
}

/* top info */
.tcp8step .tcp8-card__top{
  padding:20px; min-height:150px;
  display:flex; flex-direction:column; gap:10px;
  position:relative; z-index:2;
}
.tcp8step .tcp8-name{    font-family: "Inter",sans-serif; font-size:18px; font-weight:800; line-height:1.33; }
.tcp8step .tcp8-position{font-family: "Inter",sans-serif; font-size:14px; font-weight:400; line-height:1.71; }
.tcp8step .tcp8-company{ font-family: "Inter",sans-serif; font-size:16px; font-weight:700; line-height:1.5; }

/* ảnh đại diện */
.tcp8step .tcp8-card__image{
  position:relative; z-index:1; display:flex; justify-content:center; align-items:flex-end;
}
.tcp8step .tcp8-card__image img{
  width:100%; max-width:none; height:250px;
  object-fit:cover; object-position:center center; display:block;
  filter:brightness(100%) contrast(100%) saturate(100%) blur(0px) hue-rotate(0deg);
}

/* CTA giống bản chuẩn */
.tcp8step .tcp8-card--cta{ background:transparent; border-radius:20px; padding:12px; box-shadow:0 16px 50px rgba(31,45,97,.18); }
.tcp8step .tcp8-cta{ height:100%; border-radius:16px; background:#eef2ff; display:flex; flex-direction:column; justify-content:center; padding:28px; color:#0a0a2a; }
.tcp8step .tcp8-cta__badge{ display:inline-block; padding:8px 12px!important; border-radius:999px; background:rgba(45,39,147,.1); font-size:13px; font-weight:700; margin-bottom:10px; }
.tcp8step .tcp8-cta__title{ margin:0 0 8px; font-size:24px!important; font-weight:800!important; line-height:1.2; }
.tcp8step .tcp8-cta__desc{ margin:0 0 14px; opacity:.9;font-size:14px; }
.tcp8step .tcp8-cta__btn{
  display:inline-flex; align-items:center; gap:8px; text-decoration:none; font-weight:800;
  padding:12px 18px; border-radius:999px; background:linear-gradient(90deg,#3420B3,#5E1BE2); color:#fff;
	font-size:16px;
  box-shadow:0 10px 26px rgba(52,32,179,.28);
}

/* con trỏ tay */
.tcp8step .tcp8-card{ cursor:pointer; }
/*  */
@media (max-width: 880px) {
    .tcp8step {
        transform: scale(1)!important;
    }
}