/* Khối nội dung bổ sung, thanh thông báo, nút liên hệ nổi (quản lý trong Strapi). */
:root {
  --tesop-primary: #248ce1;
  --tesop-primary-dark: #1670c0;
  --tesop-navy: #0a2e42;
  --tesop-mint: #14f1b6;
  --tesop-ink: #10273a;
  --tesop-muted: #5d6f80;
  --tesop-line: #e3eaf1;
  --tesop-soft: #f3f7fb;
  --tesop-radius: 14px;
  --tesop-shadow: 0 1px 2px rgba(10, 46, 66, 0.06), 0 8px 24px rgba(10, 46, 66, 0.08);
  --tesop-shadow-hover: 0 2px 4px rgba(10, 46, 66, 0.08), 0 18px 40px rgba(10, 46, 66, 0.14);
  --tesop-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Khung khối ---------- */
.tesop-block {
  position: relative;
  color: var(--tesop-ink);
  background: #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.tesop-block__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.tesop-space--compact { padding: 40px 0; }
.tesop-space--normal { padding: 80px 0; }
.tesop-space--large { padding: 120px 0; }
.tesop-theme--soft { background-color: var(--tesop-soft); }
.tesop-theme--brand {
  background-color: var(--tesop-primary);
  background-image: radial-gradient(circle at 12% 0%, rgba(20, 241, 182, 0.28), transparent 45%),
    linear-gradient(120deg, #1b7fd6, #248ce1 55%, #2a9cf0);
  color: #fff;
}
.tesop-theme--dark {
  background-color: var(--tesop-navy);
  background-image: radial-gradient(circle at 85% 10%, rgba(36, 140, 225, 0.35), transparent 50%);
  color: #fff;
}
.tesop-theme--gradient {
  background-image: linear-gradient(135deg, #0a2e42 0%, #155a8a 55%, #248ce1 100%);
  color: #fff;
}
.tesop-block--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 46, 66, 0.72);
}
.tesop-block--image { color: #fff; }
.tesop-block :is(:is(h2,h1:where(.tesop-promoted-h2)), h3, p, blockquote) { color: inherit; }
.tesop-block p { margin-bottom: 0; }

.tesop-block__head { max-width: 760px; margin: 0 0 40px; }
.tesop-align--center .tesop-block__head { margin-left: auto; margin-right: auto; text-align: center; }
.tesop-block__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tesop-primary);
}
.tesop-block__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--tesop-mint);
}
.tesop-theme--brand .tesop-block__eyebrow,
.tesop-theme--dark .tesop-block__eyebrow,
.tesop-theme--gradient .tesop-block__eyebrow,
.tesop-block--image .tesop-block__eyebrow { color: var(--tesop-mint); }
.tesop-block__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tesop-block__subtitle {
  font-size: 17px;
  line-height: 1.65;
  opacity: 0.82;
}
.tesop-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.tesop-align--center .tesop-block__actions { justify-content: center; }

/* ---------- Nút ---------- */
.tesop-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none !important;
  transition: transform 0.2s var(--tesop-ease), box-shadow 0.2s var(--tesop-ease), background 0.2s;
}
.tesop-btn--primary {
  background: linear-gradient(135deg, var(--tesop-primary), var(--tesop-primary-dark));
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(36, 140, 225, 0.32);
}
.tesop-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(36, 140, 225, 0.42); }
.tesop-btn--primary span { transition: transform 0.2s var(--tesop-ease); }
.tesop-btn--primary:hover span { transform: translateX(4px); }
.tesop-btn--ghost {
  border: 1.5px solid currentColor;
  color: inherit !important;
  background: transparent;
}
.tesop-btn--ghost:hover { background: rgba(127, 127, 127, 0.1); }
:is(.tesop-theme--brand, .tesop-theme--gradient, .tesop-theme--dark) .tesop-btn--primary {
  background: #fff;
  color: var(--tesop-navy) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

/* ---------- Lưới ---------- */
.tesop-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(var(--tesop-cols, 3), minmax(0, 1fr));
}

/* Số liệu */
.tesop-stats { gap: 0; }
.tesop-stat {
  padding: 18px 24px;
  text-align: center;
  border-left: 1px solid rgba(127, 127, 127, 0.2);
}
.tesop-stat:first-child { border-left: 0; }
.tesop-stat__value {
  display: block;
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--tesop-primary), #19c6a0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:is(.tesop-theme--brand, .tesop-theme--gradient, .tesop-theme--dark, .tesop-block--image) .tesop-stat__value {
  background: none;
  color: #fff;
}
.tesop-stat__label {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.86;
}
.tesop-stat p { margin-top: 6px; font-size: 14px; opacity: 0.7; }

/* Thẻ lợi ích / quy trình */
.tesop-card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--tesop-radius);
  background: #fff;
  color: var(--tesop-ink);
  border: 1px solid var(--tesop-line);
  box-shadow: var(--tesop-shadow);
  transition: transform 0.25s var(--tesop-ease), box-shadow 0.25s var(--tesop-ease), border-color 0.25s;
}
.tesop-card:hover { transform: translateY(-4px); box-shadow: var(--tesop-shadow-hover); border-color: rgba(36, 140, 225, 0.35); }
.tesop-card h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.35; font-weight: 700; color: var(--tesop-ink); }
.tesop-card p { font-size: 15px; line-height: 1.65; color: var(--tesop-muted); }
.tesop-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 16px;
  font-size: 28px;
  background: linear-gradient(135deg, rgba(36, 140, 225, 0.12), rgba(20, 241, 182, 0.18));
}
.tesop-card__image { width: 100%; height: 180px; object-fit: cover; margin-bottom: 18px; border-radius: calc(var(--tesop-radius) - 4px); }
.tesop-card__step {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--tesop-primary);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(36, 140, 225, 0.1);
}
.tesop-card__link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--tesop-primary); }
.tesop-steps .tesop-card::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -25px;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--tesop-primary), transparent);
}
.tesop-steps .tesop-card:last-child::after { display: none; }

/* Nhận xét */
.tesop-quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: var(--tesop-radius);
  background: #fff;
  color: var(--tesop-ink);
  border: 1px solid var(--tesop-line);
  box-shadow: var(--tesop-shadow);
}
.tesop-quote blockquote {
  position: relative;
  margin: 0;
  padding: 34px 0 0;
  border: 0;
  font-size: 16px;
  line-height: 1.7;
  font-style: normal;
  color: var(--tesop-ink);
}
.tesop-quote blockquote::before {
  content: "“";
  position: absolute;
  top: -14px;
  left: -4px;
  font-size: 72px;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--tesop-primary);
  opacity: 0.35;
}
.tesop-quote figcaption { display: flex; align-items: center; gap: 12px; }
.tesop-quote figcaption img,
.tesop-quote__avatar {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}
.tesop-quote__avatar {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--tesop-primary), #19c6a0);
}
.tesop-quote strong { display: block; font-size: 15px; }
.tesop-quote small { display: block; font-size: 13px; color: var(--tesop-muted); }

/* Hỏi đáp */
.tesop-faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.tesop-align--left .tesop-faq { margin-left: 0; }
.tesop-faq__item {
  border-radius: var(--tesop-radius);
  background: #fff;
  color: var(--tesop-ink);
  border: 1px solid var(--tesop-line);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.tesop-faq__item[open] { box-shadow: var(--tesop-shadow); border-color: rgba(36, 140, 225, 0.35); }
.tesop-faq__item summary {
  position: relative;
  display: block;
  padding: 20px 60px 20px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}
.tesop-faq__item summary::-webkit-details-marker { display: none; }
.tesop-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 400;
  color: var(--tesop-primary);
  background: rgba(36, 140, 225, 0.1);
  transition: transform 0.25s var(--tesop-ease);
}
.tesop-faq__item[open] summary::after { transform: rotate(45deg); }
.tesop-faq__item summary:focus-visible { outline: 2px solid var(--tesop-primary); outline-offset: 2px; border-radius: var(--tesop-radius); }
.tesop-faq__answer { padding: 0 24px 22px; font-size: 15px; line-height: 1.7; color: var(--tesop-muted); }

/* Logo */
.tesop-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 48px;
}
.tesop-logo img {
  display: block;
  max-height: 52px;
  max-width: 150px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.25s, opacity 0.25s;
}
.tesop-logo:hover img { filter: none; opacity: 1; }

/* Bài viết mới */
.tesop-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--tesop-radius);
  background: #fff;
  color: var(--tesop-ink);
  border: 1px solid var(--tesop-line);
  box-shadow: var(--tesop-shadow);
  transition: transform 0.25s var(--tesop-ease), box-shadow 0.25s var(--tesop-ease);
}
.tesop-post:hover { transform: translateY(-4px); box-shadow: var(--tesop-shadow-hover); }
.tesop-post__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #0a2e42, #248ce1); }
.tesop-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--tesop-ease); }
.tesop-post:hover .tesop-post__media img { transform: scale(1.05); }
.tesop-post__media span { display: grid; place-items: center; height: 100%; font-size: 56px; font-weight: 800; color: rgba(255, 255, 255, 0.85); }
.tesop-post__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 26px; text-align: left; }
.tesop-post time { font-size: 13px; font-weight: 600; color: var(--tesop-primary); }
.tesop-post h3 { margin: 0; font-size: 18px; line-height: 1.4; }
.tesop-post h3 a { color: var(--tesop-ink); }
.tesop-post h3 a:hover { color: var(--tesop-primary); }
.tesop-post p { font-size: 14.5px; line-height: 1.65; color: var(--tesop-muted); }

/* Nội dung tự do + video */
.tesop-prose { max-width: 820px; margin: 0 auto; font-size: 17px; line-height: 1.75; text-align: left; }
.tesop-prose img { border-radius: var(--tesop-radius); }
.tesop-video {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--tesop-radius) + 4px);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(10, 46, 66, 0.25);
}
.tesop-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Kêu gọi hành động */
.tesop-cta {
  position: relative;
  padding: 56px 40px;
  border-radius: calc(var(--tesop-radius) + 8px);
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.tesop-theme--light .tesop-cta,
.tesop-theme--soft .tesop-cta {
  color: #fff;
  border: 0;
  background: radial-gradient(circle at 90% 0%, rgba(20, 241, 182, 0.35), transparent 40%),
    linear-gradient(135deg, #0a2e42, #1d6fb3);
  box-shadow: 0 30px 60px rgba(10, 46, 66, 0.22);
}
.tesop-theme--light .tesop-cta .tesop-btn--primary,
.tesop-theme--soft .tesop-cta .tesop-btn--primary { background: #fff; color: var(--tesop-navy) !important; }
.tesop-cta .tesop-block__head { margin-bottom: 0; margin-left: auto; margin-right: auto; text-align: center; }
.tesop-cta .tesop-block__actions { justify-content: center; margin-top: 28px; }

/* ---------- Thanh thông báo ---------- */
.tesop-announcement {
  position: relative;
  z-index: 31;
  background: linear-gradient(90deg, #0a2e42, #1b6aa8);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}
.tesop-announcement[hidden] { display: none; }
.tesop-announcement__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 9px 48px;
  text-align: center;
}
.tesop-announcement__link {
  font-weight: 700;
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.tesop-announcement__close {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 30px;
  min-height: 30px;
  height: 30px;
  margin: -15px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  opacity: 0.8;
}
.tesop-announcement__close:hover { opacity: 1; background: rgba(255, 255, 255, 0.14); }

/* ---------- Nút liên hệ nổi ---------- */
.tesop-float {
  position: fixed;
  bottom: 84px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tesop-float--right { right: 18px; }
.tesop-float--left { left: 18px; }
.tesop-float__item {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff !important;
  background: var(--tesop-primary);
  box-shadow: 0 8px 22px rgba(10, 46, 66, 0.28);
  transition: transform 0.2s var(--tesop-ease);
}
.tesop-float__item:hover { transform: scale(1.08); }
.tesop-float__item--phone { background: #19b46f; }
.tesop-float__item--phone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #19b46f;
  animation: tesop-ring 2s infinite;
}
.tesop-float__item--zalo { background: #0068ff; font-weight: 800; font-size: 13px; }
.tesop-float__item--messenger { background: linear-gradient(135deg, #0a7cff, #a033ff); }
.tesop-float__item--mail { background: var(--tesop-navy); }
@keyframes tesop-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Tiến độ đọc ---------- */
.tesop-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--tesop-mint), var(--tesop-primary));
  pointer-events: none;
}

/* ---------- Hiệu ứng xuất hiện ---------- */
.tesop-wordpress .tesop-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--tesop-ease) var(--tesop-delay, 0ms), transform 0.7s var(--tesop-ease) var(--tesop-delay, 0ms);
}
.tesop-wordpress .tesop-reveal.tesop-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tesop-grid { grid-template-columns: repeat(min(var(--tesop-cols, 3), 2), minmax(0, 1fr)); }
  .tesop-steps .tesop-card::after { display: none; }
  .tesop-stat:nth-child(odd) { border-left: 0; }
}
@media (max-width: 640px) {
  .tesop-space--compact { padding: 32px 0; }
  .tesop-space--normal { padding: 56px 0; }
  .tesop-space--large { padding: 80px 0; }
  .tesop-block__inner { padding: 0 16px; }
  .tesop-block__head { margin-bottom: 28px; }
  .tesop-grid:not(.tesop-stats) { grid-template-columns: minmax(0, 1fr); }
  .tesop-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .tesop-stat { padding: 12px 8px; }
  .tesop-cta { padding: 40px 22px; }
  .tesop-announcement__inner { padding: 8px 40px 8px 14px; font-size: 13px; }
  .tesop-float { bottom: 76px; }
  .tesop-float__item { width: 46px; height: 46px; }
  .tesop-hide-mobile { display: none !important; }
}
@media (min-width: 641px) {
  .tesop-hide-desktop { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .tesop-float__item--phone::before { animation: none; }
  .tesop-card, .tesop-post, .tesop-btn, .tesop-post__media img { transition: none; }
}
