/* KTG Group - Hồ sơ năng lực flipbook v299 */
body.ktc-profile-body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto !important;
  scroll-snap-type: none !important;
  background: #071f4f;
  color: #fff;
}

html:has(body.ktc-profile-body) {
  overflow-y: auto !important;
  scroll-snap-type: none !important;
}

body.ktc-profile-body a {
  color: inherit;
  text-decoration: none;
}

body.ktc-profile-body img,
body.ktc-profile-body canvas {
  display: block;
}

.ktc-profile-shell {
  min-height: 100vh;
  background: #071f4f;
}

.ktc-profile-header .ktc-site-header__glass {
  background: linear-gradient(180deg, rgba(16, 94, 174, .66), rgba(7, 37, 93, .24) 70%, rgba(7, 37, 93, .04));
  border-bottom-color: rgba(255, 255, 255, .18);
}

.ktc-profile-main {
  position: relative;
  overflow: visible;
}

.ktc-profile-stage {
  position: relative;
  min-height: auto;
  padding: 126px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.admin-bar .ktc-profile-stage {
  padding-top: 158px;
}

.ktc-profile-stage__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 221, 116, .18), transparent 25%),
    radial-gradient(circle at 84% 14%, rgba(78, 183, 255, .36), transparent 34%),
    linear-gradient(112deg, rgba(3, 20, 58, .96) 0%, rgba(6, 70, 150, .95) 52%, rgba(42, 154, 230, .88) 100%),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2000&q=88') center / cover no-repeat;
}

.ktc-profile-stage__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: 118px 118px;
  opacity: .30;
  mask-image: radial-gradient(circle at 52% 45%, #000 0%, transparent 78%);
}

.ktc-profile-stage__bg::after {
  content: 'KTG PROFILE';
  position: absolute;
  left: -2vw;
  bottom: 2vh;
  color: rgba(255,255,255,.045);
  font-family: Montserrat, Inter, Arial, sans-serif;
  font-size: clamp(5rem, 11vw, 15rem);
  font-weight: 900;
  line-height: .78;
  letter-spacing: -.06em;
  pointer-events: none;
}

.ktc-profile-stage__inner {
  position: relative;
  z-index: 1;
  width: min(1560px, calc(100% - 72px));
  margin: 0 auto;
}

.ktc-profile-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 24px;
}

.ktc-profile-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #ffdc78;
  font-size: .78rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.ktc-profile-kicker span {
  display: block;
  width: 78px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.12), #ffdc78);
}

.ktc-profile-heading h1 {
  margin: 12px 0 0;
  color: #fff;
  font-family: "UTM Hanzel", Montserrat, Inter, Arial, sans-serif;
  font-size: clamp(2.75rem, 4.5vw, 5.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-shadow: 0 22px 62px rgba(0, 0, 0, .18);
}

.ktc-profile-heading p {
  max-width: 780px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(.92rem, 1vw, 1.08rem);
  line-height: 1.55;
  font-weight: 600;
}

.ktc-profile-actions,
.ktc-profile-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.ktc-profile-btn,
.ktc-profile-bottom-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .065em;
  text-transform: uppercase;
  box-shadow: 0 20px 46px rgba(0, 0, 0, .16);
}

.ktc-profile-btn--primary,
.ktc-profile-bottom-actions a:first-child {
  color: #082e75;
  background: linear-gradient(135deg, #ffe998, #ffca54);
}

.ktc-profile-btn--ghost,
.ktc-profile-bottom-actions a:last-child {
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}

.ktc-profile-viewer {
  --book-toolbar-h: 76px;
  --profile-zoom: 1;
  position: relative;
  z-index: 2;
  border-radius: 38px;
  padding: clamp(16px, 1.6vw, 24px);
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 44px 120px rgba(0, 17, 55, .38), inset 0 0 0 1px rgba(255,255,255,.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ktc-profile-viewer::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 30px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.12);
}

.ktc-profile-viewer__toolbar {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 4px;
}

.ktc-profile-viewer__title span {
  display: block;
  color: #ffdc78;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ktc-profile-viewer__title strong {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.94);
  font-size: .98rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ktc-profile-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ktc-profile-page-status {
  min-width: 122px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 14px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.ktc-profile-toolbar-actions button {
  min-width: 42px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, color .22s ease, opacity .22s ease;
}

.ktc-profile-toolbar-actions button:hover {
  background: rgba(255, 219, 121, .92);
  color: #082e75;
  transform: translateY(-1px);
}

.ktc-profile-toolbar-actions button:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

.ktc-profile-fullscreen svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ktc-profile-fullscreen span {
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ktc-profile-book-area {
  position: relative;
  z-index: 3;
  padding: 0 clamp(18px, 2.4vw, 40px);
}

.ktc-profile-book {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 1260px);
  min-height: clamp(620px, 76vh, 920px);
  aspect-ratio: 1.42 / 1;
  margin: 0 auto;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(224,238,255,.98));
  box-shadow: 0 34px 95px rgba(0, 17, 55, .30);
  overflow: hidden;
  perspective: 2200px;
  transform: scale(var(--profile-zoom));
  transform-origin: center center;
  transition: transform .24s ease;
}

.ktc-profile-book::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 4;
  width: 8px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.82) 48%, rgba(0,0,0,.16));
  box-shadow: 0 0 34px rgba(0,0,0,.28);
  pointer-events: none;
}

.ktc-profile-page {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 18px;
  background: #f4f8ff;
  overflow: hidden;
}

.ktc-profile-page--left {
  border-radius: 24px 0 0 24px;
  box-shadow: inset -24px 0 34px rgba(17, 49, 92, .10);
}

.ktc-profile-page--right {
  border-radius: 0 24px 24px 0;
  box-shadow: inset 24px 0 34px rgba(17, 49, 92, .10);
}

.ktc-profile-page canvas {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  box-shadow: 0 14px 36px rgba(12, 55, 112, .11);
}

.ktc-profile-page > span {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 2;
  min-width: 38px;
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: rgba(12, 55, 112, .84);
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(14, 78, 153, .12);
  font-size: .72rem;
  font-weight: 900;
}

.ktc-profile-flip {
  --profile-flip-image: linear-gradient(90deg, rgba(255,255,255,.96), rgba(221,236,255,.98));
  position: absolute;
  inset: 0 0 0 50%;
  z-index: 7;
  transform-origin: left center;
  transform-style: preserve-3d;
  pointer-events: none;
  border-radius: 0 24px 24px 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.08), rgba(0,0,0,.05)),
    var(--profile-flip-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  box-shadow: -18px 0 52px rgba(0,0,0,.30);
  backface-visibility: hidden;
}

.ktc-profile-flip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.08) 24%, rgba(0,0,0,.10));
  pointer-events: none;
}

.ktc-profile-book.is-turning-next .ktc-profile-flip {
  animation: ktcProfileFlipNext .82s cubic-bezier(.2,.72,.24,1) both;
}

.ktc-profile-book.is-turning-prev .ktc-profile-flip {
  inset: 0 50% 0 0;
  transform-origin: right center;
  border-radius: 24px 0 0 24px;
  animation: ktcProfileFlipPrev .82s cubic-bezier(.2,.72,.24,1) both;
}

@keyframes ktcProfileFlipNext {
  0% { opacity: 0; transform: rotateY(0deg) skewY(0deg); }
  8% { opacity: 1; }
  48% { opacity: 1; transform: rotateY(-96deg) skewY(-1.8deg); box-shadow: -42px 0 70px rgba(0,0,0,.36); }
  100% { opacity: 0; transform: rotateY(-178deg) skewY(0deg); }
}

@keyframes ktcProfileFlipPrev {
  0% { opacity: 0; transform: rotateY(0deg) skewY(0deg); }
  8% { opacity: 1; }
  48% { opacity: 1; transform: rotateY(96deg) skewY(1.8deg); box-shadow: 42px 0 70px rgba(0,0,0,.36); }
  100% { opacity: 0; transform: rotateY(178deg) skewY(0deg); }
}

.ktc-profile-loading {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #0a4f9f;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(230,242,255,.96));
  transition: opacity .25s ease, visibility .25s ease;
}

.ktc-profile-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.ktc-profile-loading i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(10, 92, 181, .14);
  border-top-color: #0a5cb5;
  animation: ktcProfileSpin .8s linear infinite;
}

.ktc-profile-loading span {
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

@keyframes ktcProfileSpin { to { transform: rotate(360deg); } }

.ktc-profile-nav {
  position: absolute;
  z-index: 12;
  top: 50%;
  width: 58px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 18px;
  color: #fff;
  background: rgba(5, 45, 108, .66);
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, opacity .22s ease, color .22s ease;
}

.ktc-profile-nav:hover {
  background: rgba(255, 206, 92, .94);
  color: #082e75;
  transform: translateY(-50%) scale(1.05);
}

.ktc-profile-nav:disabled {
  opacity: .34;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.ktc-profile-nav--prev { left: 0; }
.ktc-profile-nav--next { right: 0; }

.ktc-profile-nav svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ktc-profile-bottom-bar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 0 4px 2px;
}

.ktc-profile-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: rgba(255,255,255,.88);
  font-size: .82rem;
  font-weight: 900;
}

.ktc-profile-progress progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}

.ktc-profile-progress progress::-webkit-progress-bar {
  background: rgba(255,255,255,.16);
  border-radius: 999px;
}

.ktc-profile-progress progress::-webkit-progress-value {
  background: linear-gradient(90deg, #ffe280, #ff5834);
  border-radius: 999px;
}

.ktc-profile-progress progress::-moz-progress-bar {
  background: linear-gradient(90deg, #ffe280, #ff5834);
  border-radius: 999px;
}

.ktc-profile-bottom-actions a {
  min-height: 40px;
  padding: 0 16px;
  font-size: .72rem;
}

.ktc-profile-fallback {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}

.ktc-profile-fallback p {
  margin: 0 0 14px;
  color: rgba(255,255,255,.86);
  font-weight: 700;
}

.ktc-profile-fallback iframe {
  width: 100%;
  height: 760px;
  border: 0;
  border-radius: 18px;
  background: #fff;
}

.ktc-profile-viewer:fullscreen,
.ktc-profile-viewer.is-fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  padding: 18px 28px;
  background:
    radial-gradient(circle at 80% 12%, rgba(93, 182, 255, .30), transparent 34%),
    linear-gradient(135deg, #041843 0%, #0755b0 62%, #0d86d9 100%);
  border: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.ktc-profile-viewer:fullscreen::before,
.ktc-profile-viewer.is-fullscreen::before {
  display: none;
}

.ktc-profile-viewer:fullscreen .ktc-profile-viewer__toolbar,
.ktc-profile-viewer.is-fullscreen .ktc-profile-viewer__toolbar {
  min-height: 56px;
  margin-bottom: 12px;
}

.ktc-profile-viewer:fullscreen .ktc-profile-book-area,
.ktc-profile-viewer.is-fullscreen .ktc-profile-book-area {
  height: calc(100vh - 144px);
  display: flex;
  align-items: center;
}

.ktc-profile-viewer:fullscreen .ktc-profile-book,
.ktc-profile-viewer.is-fullscreen .ktc-profile-book {
  width: min(100%, 1620px);
  min-height: 0;
  height: 100%;
  max-height: none;
}

.ktc-profile-viewer:fullscreen .ktc-profile-bottom-bar,
.ktc-profile-viewer.is-fullscreen .ktc-profile-bottom-bar {
  min-height: 48px;
}

[data-ktc-profile-reveal] .ktc-profile-kicker,
[data-ktc-profile-reveal] h1,
[data-ktc-profile-reveal] p,
[data-ktc-profile-reveal] .ktc-profile-actions,
[data-ktc-profile-reveal] .ktc-profile-viewer {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(.985);
  filter: blur(8px);
}

[data-ktc-profile-reveal].is-visible .ktc-profile-kicker,
[data-ktc-profile-reveal].is-visible h1,
[data-ktc-profile-reveal].is-visible p,
[data-ktc-profile-reveal].is-visible .ktc-profile-actions,
[data-ktc-profile-reveal].is-visible .ktc-profile-viewer {
  animation: ktcProfileIn .78s cubic-bezier(.22,.61,.36,1) both;
}

[data-ktc-profile-reveal].is-visible h1 { animation-delay: .06s; }
[data-ktc-profile-reveal].is-visible p { animation-delay: .12s; }
[data-ktc-profile-reveal].is-visible .ktc-profile-actions { animation-delay: .14s; }
[data-ktc-profile-reveal].is-visible .ktc-profile-viewer { animation-delay: .16s; }

@keyframes ktcProfileIn {
  0% { opacity: 0; transform: translate3d(0, 34px, 0) scale(.985); filter: blur(8px); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

@media (max-width: 1199px) {
  .ktc-profile-stage,
  .admin-bar .ktc-profile-stage {
    padding: 118px 0 56px;
  }

  .ktc-profile-stage__inner {
    width: min(100% - 42px, 980px);
  }

  .ktc-profile-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ktc-profile-actions {
    justify-content: flex-start;
  }

  .ktc-profile-viewer__toolbar {
    grid-template-columns: 1fr;
  }

  .ktc-profile-toolbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ktc-profile-book {
    min-height: clamp(460px, 66vh, 680px);
  }

  .ktc-profile-bottom-bar {
    grid-template-columns: 1fr;
  }

  .ktc-profile-bottom-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .ktc-profile-stage,
  .admin-bar .ktc-profile-stage {
    padding: 104px 0 42px;
  }

  .ktc-profile-stage__inner {
    width: min(100% - 28px, 760px);
  }

  .ktc-profile-heading h1 {
    font-size: clamp(2.4rem, 13vw, 3.8rem);
  }

  .ktc-profile-actions,
  .ktc-profile-bottom-actions {
    display: grid;
    justify-content: stretch;
  }

  .ktc-profile-viewer {
    border-radius: 24px;
    padding: 12px;
  }

  .ktc-profile-viewer__toolbar {
    gap: 12px;
  }

  .ktc-profile-toolbar-actions {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px 42px 42px;
    gap: 8px;
  }

  .ktc-profile-page-status {
    min-width: 0;
    font-size: .68rem;
  }

  .ktc-profile-fullscreen {
    grid-column: 1 / -1;
  }

  .ktc-profile-book-area {
    padding: 0 8px;
  }

  .ktc-profile-book {
    display: block;
    width: 100%;
    min-height: 0;
    aspect-ratio: .72 / 1;
    border-radius: 18px;
  }

  .ktc-profile-book::before,
  .ktc-profile-page--right,
  .ktc-profile-flip {
    display: none !important;
  }

  .ktc-profile-page {
    min-height: 520px;
    padding: 12px;
  }

  .ktc-profile-page--left {
    border-radius: 18px;
  }

  .ktc-profile-nav {
    width: 44px;
    height: 54px;
    border-radius: 14px;
  }

  .ktc-profile-nav--prev { left: -4px; }
  .ktc-profile-nav--next { right: -4px; }

  .ktc-profile-progress {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ktc-profile-viewer:fullscreen,
  .ktc-profile-viewer.is-fullscreen {
    padding: 12px;
    overflow-y: auto;
  }

  .ktc-profile-viewer:fullscreen .ktc-profile-book-area,
  .ktc-profile-viewer.is-fullscreen .ktc-profile-book-area {
    height: auto;
    display: block;
  }

  .ktc-profile-viewer:fullscreen .ktc-profile-book,
  .ktc-profile-viewer.is-fullscreen .ktc-profile-book {
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-ktc-profile-reveal] *,
  [data-ktc-profile-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
}


/* v300: tối ưu trình xem hồ sơ năng lực - PDF là nội dung chính */
.ktc-profile-stage {
  padding-top: 118px !important;
  padding-bottom: 54px !important;
}

.admin-bar .ktc-profile-stage {
  padding-top: 150px !important;
}

.ktc-profile-stage__inner {
  width: min(1680px, calc(100% - 54px)) !important;
}

.ktc-profile-heading {
  margin-bottom: 14px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
}

.ktc-profile-kicker {
  font-size: .68rem !important;
  letter-spacing: .18em !important;
}

.ktc-profile-kicker span {
  width: 62px !important;
}

.ktc-profile-heading h1 {
  margin-top: 8px !important;
  font-size: clamp(2rem, 3.1vw, 4rem) !important;
  line-height: 1 !important;
}

.ktc-profile-heading p {
  display: none !important;
}

.ktc-profile-viewer {
  padding: clamp(16px, 1.5vw, 24px) !important;
  border-radius: 30px !important;
}

.ktc-profile-viewer::before {
  inset: 10px !important;
  border-radius: 24px !important;
}

.ktc-profile-viewer__toolbar {
  grid-template-columns: auto minmax(0, 1fr) !important;
  margin-bottom: 12px !important;
}

.ktc-profile-viewer__title strong {
  display: none !important;
}

.ktc-profile-viewer__title span {
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  color: #082e75 !important;
  background: linear-gradient(135deg, #ffe997, #ffcf62) !important;
  letter-spacing: .12em !important;
  white-space: nowrap !important;
}

.ktc-profile-toolbar-actions {
  min-width: 0 !important;
}

.ktc-profile-page-status {
  min-width: 142px !important;
}

.ktc-profile-book-area {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 clamp(14px, 2vw, 34px) !important;
}

.ktc-profile-book {
  width: min(100%, 1500px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 594 / 420 !important;
  border-radius: 22px !important;
}

.ktc-profile-page {
  aspect-ratio: 297 / 420 !important;
  padding: clamp(8px, .9vw, 14px) !important;
}

.ktc-profile-page canvas {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.ktc-profile-loading {
  background: rgba(6, 35, 86, .56) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.ktc-profile-loading span {
  font-size: .8rem !important;
}

.ktc-profile-bottom-bar {
  margin-top: 12px !important;
}

.ktc-profile-viewer:fullscreen,
.ktc-profile-viewer.is-fullscreen {
  padding: 14px 24px !important;
}

.ktc-profile-viewer:fullscreen .ktc-profile-viewer__toolbar,
.ktc-profile-viewer.is-fullscreen .ktc-profile-viewer__toolbar {
  min-height: 48px !important;
  margin-bottom: 10px !important;
}

.ktc-profile-viewer:fullscreen .ktc-profile-book-area,
.ktc-profile-viewer.is-fullscreen .ktc-profile-book-area {
  height: calc(100vh - 126px) !important;
  padding: 0 24px !important;
  align-items: center !important;
  justify-content: center !important;
}

.ktc-profile-viewer:fullscreen .ktc-profile-book,
.ktc-profile-viewer.is-fullscreen .ktc-profile-book {
  width: min(calc((100vh - 126px) * 1.4142857), calc(100vw - 132px), 1840px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100vh - 126px) !important;
  aspect-ratio: 594 / 420 !important;
}

.ktc-profile-viewer:fullscreen .ktc-profile-bottom-bar,
.ktc-profile-viewer.is-fullscreen .ktc-profile-bottom-bar {
  min-height: 42px !important;
  margin-top: 8px !important;
}

@media (max-width: 1199px) {
  .ktc-profile-stage,
  .admin-bar .ktc-profile-stage {
    padding-top: 112px !important;
    padding-bottom: 46px !important;
  }

  .ktc-profile-stage__inner {
    width: min(100% - 34px, 1120px) !important;
  }

  .ktc-profile-heading {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .ktc-profile-actions {
    justify-content: flex-start !important;
  }

  .ktc-profile-viewer__toolbar {
    grid-template-columns: 1fr !important;
  }

  .ktc-profile-toolbar-actions {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
  }

  .ktc-profile-book {
    width: min(100%, 1120px) !important;
  }
}

@media (max-width: 767px) {
  .ktc-profile-heading h1 {
    font-size: clamp(2.05rem, 12vw, 3.2rem) !important;
  }

  .ktc-profile-book-area {
    padding: 0 4px !important;
  }

  .ktc-profile-book {
    grid-template-columns: 1fr !important;
    width: min(100%, 720px) !important;
    aspect-ratio: 297 / 420 !important;
  }

  .ktc-profile-book::before,
  .ktc-profile-page--right {
    display: none !important;
  }

  .ktc-profile-page--left {
    border-radius: 20px !important;
  }

  .ktc-profile-viewer:fullscreen .ktc-profile-book,
  .ktc-profile-viewer.is-fullscreen .ktc-profile-book {
    width: min(calc((100vh - 142px) * .7071428), calc(100vw - 36px), 760px) !important;
    aspect-ratio: 297 / 420 !important;
  }

  .ktc-profile-viewer:fullscreen .ktc-profile-book-area,
  .ktc-profile-viewer.is-fullscreen .ktc-profile-book-area {
    height: calc(100vh - 142px) !important;
    padding: 0 !important;
  }
}


/* v301: chia mỗi trang A3 trong PDF thành 2 trang A4 để lật như sách */
.ktc-profile-viewer[data-profile-viewer]::after {
  content: 'Mỗi trang PDF A3 được tách thành 2 trang A4 để xem rõ hơn';
  position: absolute;
  left: clamp(20px, 2vw, 30px);
  bottom: clamp(16px, 1.5vw, 24px);
  z-index: 8;
  color: rgba(255,255,255,.68);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  pointer-events: none;
}

.ktc-profile-book {
  aspect-ratio: 594 / 420 !important;
}

.ktc-profile-page {
  aspect-ratio: 297 / 420 !important;
}

.ktc-profile-page canvas {
  image-rendering: auto;
}

.ktc-profile-viewer:fullscreen::after,
.ktc-profile-viewer.is-fullscreen::after {
  display: none;
}

@media (max-width: 767px) {
  .ktc-profile-viewer[data-profile-viewer]::after {
    display: none;
  }
}


/* v302: chỉnh trình xem hồ sơ năng lực theo kiểu sách A4 gọn màn hình */
.ktc-profile-page [data-profile-page-number],
.ktc-profile-page > span[data-profile-page-number],
.ktc-profile-page-status,
.ktc-profile-progress > div {
  display: none !important;
}

.ktc-profile-viewer[data-profile-viewer]::after {
  display: none !important;
}

.ktc-profile-stage {
  padding-top: 106px !important;
  padding-bottom: 42px !important;
}

.admin-bar .ktc-profile-stage {
  padding-top: 132px !important;
}

.ktc-profile-stage__inner {
  width: min(1640px, calc(100% - 44px)) !important;
}

.ktc-profile-heading {
  margin-bottom: 10px !important;
}

.ktc-profile-heading h1 {
  font-size: clamp(1.9rem, 2.65vw, 3.35rem) !important;
}

.ktc-profile-viewer {
  padding: clamp(12px, 1.15vw, 18px) !important;
}

.ktc-profile-viewer__toolbar {
  min-height: 42px !important;
  margin-bottom: 8px !important;
}

.ktc-profile-toolbar-actions {
  gap: 7px !important;
}

.ktc-profile-toolbar-actions button,
.ktc-profile-bottom-actions a {
  min-height: 38px !important;
}

.ktc-profile-book-area {
  height: clamp(430px, calc(100vh - 292px), 640px) !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 clamp(58px, 5vw, 86px) !important;
}

.admin-bar .ktc-profile-book-area {
  height: clamp(420px, calc(100vh - 322px), 620px) !important;
}

.ktc-profile-book {
  width: min(100%, calc((100vh - 292px) * 1.4142857), 1380px) !important;
  height: auto !important;
  max-height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 594 / 420 !important;
  border-radius: 20px !important;
  box-shadow: 0 26px 78px rgba(0, 17, 55, .26) !important;
}

.admin-bar .ktc-profile-book {
  width: min(100%, calc((100vh - 322px) * 1.4142857), 1320px) !important;
}

.ktc-profile-book::before {
  top: 10px !important;
  bottom: 10px !important;
  width: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(
    180deg,
    rgba(96, 116, 145, 0),
    rgba(96, 116, 145, .34) 18%,
    rgba(255, 255, 255, .72) 50%,
    rgba(96, 116, 145, .32) 82%,
    rgba(96, 116, 145, 0)
  ) !important;
  box-shadow: 0 0 14px rgba(20, 45, 80, .16) !important;
}

.ktc-profile-page {
  padding: clamp(6px, .55vw, 10px) !important;
  background: #fff !important;
}

.ktc-profile-page--left {
  padding-right: 0 !important;
  border-radius: 20px 0 0 20px !important;
  box-shadow: inset -10px 0 18px rgba(20, 45, 80, .045) !important;
}

.ktc-profile-page--right {
  padding-left: 0 !important;
  border-radius: 0 20px 20px 0 !important;
  box-shadow: inset 10px 0 18px rgba(20, 45, 80, .045) !important;
}

.ktc-profile-page canvas {
  box-shadow: none !important;
  border-radius: 0 !important;
}

.ktc-profile-bottom-bar {
  margin-top: 8px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.ktc-profile-progress {
  grid-template-columns: minmax(0, 1fr) !important;
}

.ktc-profile-progress progress {
  height: 5px !important;
  opacity: .72 !important;
}

.ktc-profile-nav,
.ktc-profile-book-area > .ktc-profile-nav,
button.ktc-profile-nav {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .62) !important;
  border-radius: 999px !important;
  color: #0a4f9f !important;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,1), rgba(255,255,255,.78) 52%, rgba(218,234,255,.72) 100%) !important;
  box-shadow:
    0 18px 42px rgba(3, 28, 74, .22),
    inset 0 1px 0 rgba(255,255,255,.92) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  transform: translateY(-50%) !important;
  outline: none !important;
}

.ktc-profile-nav--prev {
  left: clamp(10px, 1.4vw, 22px) !important;
}

.ktc-profile-nav--next {
  right: clamp(10px, 1.4vw, 22px) !important;
}

.ktc-profile-nav:hover,
.ktc-profile-book-area > .ktc-profile-nav:hover,
button.ktc-profile-nav:hover {
  color: #082e75 !important;
  background:
    radial-gradient(circle at 35% 25%, #fff8df, #ffdc78 58%, #f7b94b 100%) !important;
  border-color: rgba(255, 232, 150, .95) !important;
  box-shadow:
    0 20px 50px rgba(3, 28, 74, .28),
    0 0 0 8px rgba(255, 218, 108, .14),
    inset 0 1px 0 rgba(255,255,255,.95) !important;
  transform: translateY(-50%) scale(1.055) !important;
}

.ktc-profile-nav:active,
.ktc-profile-book-area > .ktc-profile-nav:active,
button.ktc-profile-nav:active {
  transform: translateY(-50%) scale(.98) !important;
}

.ktc-profile-nav:disabled,
.ktc-profile-book-area > .ktc-profile-nav:disabled,
button.ktc-profile-nav:disabled {
  opacity: .28 !important;
  color: rgba(10, 79, 159, .72) !important;
  cursor: not-allowed !important;
  transform: translateY(-50%) !important;
  box-shadow:
    0 12px 30px rgba(3, 28, 74, .13),
    inset 0 1px 0 rgba(255,255,255,.82) !important;
}

.ktc-profile-nav svg {
  width: 27px !important;
  height: 27px !important;
  stroke-width: 2.8 !important;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.6)) !important;
}

.ktc-profile-viewer:fullscreen,
.ktc-profile-viewer.is-fullscreen {
  padding: 12px 22px !important;
}

.ktc-profile-viewer:fullscreen .ktc-profile-book-area,
.ktc-profile-viewer.is-fullscreen .ktc-profile-book-area {
  height: calc(100vh - 116px) !important;
  padding: 0 76px !important;
}

.ktc-profile-viewer:fullscreen .ktc-profile-book,
.ktc-profile-viewer.is-fullscreen .ktc-profile-book {
  width: min(calc((100vh - 116px) * 1.4142857), calc(100vw - 176px), 1840px) !important;
  height: auto !important;
  max-height: calc(100vh - 116px) !important;
  min-height: 0 !important;
}

@media (max-height: 820px) and (min-width: 768px) {
  .ktc-profile-stage {
    padding-top: 96px !important;
  }

  .admin-bar .ktc-profile-stage {
    padding-top: 122px !important;
  }

  .ktc-profile-heading {
    display: none !important;
  }

  .ktc-profile-book-area {
    height: clamp(400px, calc(100vh - 236px), 590px) !important;
  }

  .admin-bar .ktc-profile-book-area {
    height: clamp(390px, calc(100vh - 268px), 570px) !important;
  }

  .ktc-profile-book {
    width: min(100%, calc((100vh - 236px) * 1.4142857), 1260px) !important;
  }

  .admin-bar .ktc-profile-book {
    width: min(100%, calc((100vh - 268px) * 1.4142857), 1210px) !important;
  }
}

@media (max-width: 767px) {
  .ktc-profile-book-area,
  .admin-bar .ktc-profile-book-area {
    height: auto !important;
    padding: 0 52px !important;
  }

  .ktc-profile-book,
  .admin-bar .ktc-profile-book {
    width: min(100%, 560px) !important;
    aspect-ratio: 297 / 420 !important;
  }

  .ktc-profile-nav,
  .ktc-profile-book-area > .ktc-profile-nav,
  button.ktc-profile-nav {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }

  .ktc-profile-nav svg {
    width: 23px !important;
    height: 23px !important;
  }
}


/* v303: canh lại spread ban đầu để không bị lệch xuống dưới khung */
.ktc-profile-book-area {
  align-items: flex-start !important;
}

.ktc-profile-page {
  place-items: start center !important;
  align-content: start !important;
}

.ktc-profile-page canvas {
  align-self: start !important;
  justify-self: center !important;
  margin: 0 auto !important;
}

.ktc-profile-loading.is-hidden + .ktc-profile-page,
.ktc-profile-book:not(.is-turning-next):not(.is-turning-prev) .ktc-profile-page {
  overflow: hidden;
}


/* v304: tự cắt khoảng trắng đầu trang PDF để trang không bị tụt xuống dưới */
.ktc-profile-page canvas {
  transform: none !important;
  transform-origin: top center !important;
}


/* v305: tự mở trình xem hồ sơ ở chế độ toàn màn hình trong trang */
html.ktc-profile-auto-fullscreen,
body.ktc-profile-auto-fullscreen {
  overflow: hidden !important;
}

.ktc-profile-viewer.is-auto-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  padding: 16px 28px 14px !important;
  box-shadow: none !important;
}

.ktc-profile-viewer.is-auto-fullscreen .ktc-profile-viewer__toolbar {
  min-height: 52px !important;
  margin-bottom: 8px !important;
}

.ktc-profile-viewer.is-auto-fullscreen .ktc-profile-book-area {
  height: calc(100vh - 118px) !important;
  padding: 0 76px !important;
  align-items: center !important;
  justify-content: center !important;
}

.ktc-profile-viewer.is-auto-fullscreen .ktc-profile-book {
  width: min(calc((100vh - 118px) * 1.4142857), calc(100vw - 180px), 1840px) !important;
  height: auto !important;
  max-height: calc(100vh - 118px) !important;
  min-height: 0 !important;
  aspect-ratio: 594 / 420 !important;
}

.ktc-profile-viewer.is-auto-fullscreen .ktc-profile-bottom-bar {
  min-height: 38px !important;
  margin-top: 6px !important;
}

.ktc-profile-viewer.is-auto-fullscreen .ktc-profile-progress progress {
  height: 4px !important;
}

.ktc-profile-viewer.is-auto-fullscreen .ktc-profile-nav {
  width: 58px !important;
  height: 58px !important;
}

@media (max-width: 767px) {
  .ktc-profile-viewer.is-auto-fullscreen {
    padding: 12px 12px 10px !important;
  }

  .ktc-profile-viewer.is-auto-fullscreen .ktc-profile-viewer__toolbar {
    min-height: auto !important;
  }

  .ktc-profile-viewer.is-auto-fullscreen .ktc-profile-book-area {
    height: calc(100vh - 154px) !important;
    padding: 0 54px !important;
  }

  .ktc-profile-viewer.is-auto-fullscreen .ktc-profile-book {
    width: min(calc((100vh - 154px) * .7071428), calc(100vw - 132px), 760px) !important;
    aspect-ratio: 297 / 420 !important;
  }
}


/* v306: Trang hồ sơ năng lực độc lập, mở dạng full-page ngay khi truy cập */
html.ktc-profile-fullpage-html,
html.ktc-profile-fullpage-html body.ktc-profile-fullpage-body {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  scroll-snap-type: none !important;
  background: #041843 !important;
}

html.ktc-profile-fullpage-html {
  margin-top: 0 !important;
}

html.ktc-profile-fullpage-html #wpadminbar,
body.ktc-profile-fullpage-body #wpadminbar,
body.ktc-profile-fullpage-body .ktc-site-header,
body.ktc-profile-fullpage-body .ktc-profile-header,
body.ktc-profile-fullpage-body .ktc-site-footer,
body.ktc-profile-fullpage-body .ktc-profile-footer {
  display: none !important;
}

body.ktc-profile-fullpage-body {
  padding: 0 !important;
}

body.ktc-profile-fullpage-body .ktc-profile-shell,
body.ktc-profile-fullpage-body .ktc-profile-main,
body.ktc-profile-fullpage-body .ktc-profile-fullpage {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  background:
    radial-gradient(circle at 82% 12%, rgba(93, 182, 255, .30), transparent 34%),
    linear-gradient(135deg, #041843 0%, #0755b0 62%, #0d86d9 100%) !important;
}

body.ktc-profile-fullpage-body .ktc-profile-viewer,
body.ktc-profile-fullpage-body .ktc-profile-viewer.is-auto-fullscreen,
body.ktc-profile-fullpage-body .ktc-profile-viewer:fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: clamp(12px, 1vw, 18px) clamp(18px, 1.8vw, 30px) clamp(10px, 1vw, 16px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 80% 12%, rgba(93, 182, 255, .30), transparent 34%),
    linear-gradient(135deg, #041843 0%, #0755b0 62%, #0d86d9 100%) !important;
}

body.ktc-profile-fullpage-body .ktc-profile-viewer::before {
  display: none !important;
}

body.ktc-profile-fullpage-body .ktc-profile-viewer__toolbar,
body.ktc-profile-fullpage-body .ktc-profile-viewer.is-auto-fullscreen .ktc-profile-viewer__toolbar {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
  min-height: 54px !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 20 !important;
}

body.ktc-profile-fullpage-body .ktc-profile-viewer__title {
  min-width: 0 !important;
}

body.ktc-profile-fullpage-body .ktc-profile-viewer__title span {
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 16px !important;
  color: #082e75 !important;
  background: linear-gradient(135deg, #fff3bd 0%, #ffd462 100%) !important;
  box-shadow: 0 14px 34px rgba(0, 21, 66, .18), inset 0 1px 0 rgba(255,255,255,.95) !important;
}

body.ktc-profile-fullpage-body .ktc-profile-toolbar-actions {
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 0 !important;
  overflow: visible !important;
}

body.ktc-profile-fullpage-body .ktc-profile-home,
body.ktc-profile-fullpage-body .ktc-profile-toolbar-actions button {
  -webkit-appearance: none !important;
  appearance: none !important;
  min-width: 48px !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: #fff !important;
  background: rgba(255,255,255,.12) !important;
  box-shadow: 0 16px 34px rgba(0, 18, 66, .18), inset 0 1px 0 rgba(255,255,255,.20) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  font-size: 1.34rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

body.ktc-profile-fullpage-body .ktc-profile-home {
  color: #092f74 !important;
  background: linear-gradient(135deg, #fff4be 0%, #ffd260 100%) !important;
  border-color: rgba(255,230,135,.84) !important;
  padding: 0 18px !important;
  font-size: .78rem !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

body.ktc-profile-fullpage-body .ktc-profile-home svg {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  fill: none !important;
}

body.ktc-profile-fullpage-body .ktc-profile-toolbar-actions button:hover,
body.ktc-profile-fullpage-body .ktc-profile-home:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.04) !important;
}

body.ktc-profile-fullpage-body .ktc-profile-book-area,
body.ktc-profile-fullpage-body .ktc-profile-viewer.is-auto-fullscreen .ktc-profile-book-area,
body.ktc-profile-fullpage-body .ktc-profile-viewer:fullscreen .ktc-profile-book-area {
  height: calc(100vh - 118px) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 clamp(64px, 5vw, 94px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 10 !important;
}

body.ktc-profile-fullpage-body .ktc-profile-book,
body.ktc-profile-fullpage-body .ktc-profile-viewer.is-auto-fullscreen .ktc-profile-book,
body.ktc-profile-fullpage-body .ktc-profile-viewer:fullscreen .ktc-profile-book {
  width: min(calc((100vh - 118px) * 1.4142857), calc(100vw - 220px), 1840px) !important;
  height: auto !important;
  max-height: calc(100vh - 118px) !important;
  min-height: 0 !important;
  aspect-ratio: 594 / 420 !important;
  border-radius: 20px !important;
  transform: scale(var(--profile-zoom, 1)) !important;
  transform-origin: center center !important;
  box-shadow: 0 28px 90px rgba(0, 15, 48, .30) !important;
}

body.ktc-profile-fullpage-body .ktc-profile-page {
  place-items: center !important;
  align-content: center !important;
  padding: clamp(5px, .48vw, 9px) !important;
  background: #fff !important;
}

body.ktc-profile-fullpage-body .ktc-profile-page canvas {
  align-self: center !important;
  justify-self: center !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transform: none !important;
}

body.ktc-profile-fullpage-body .ktc-profile-nav,
body.ktc-profile-fullpage-body .ktc-profile-book-area > .ktc-profile-nav,
body.ktc-profile-fullpage-body button.ktc-profile-nav {
  z-index: 30 !important;
}

body.ktc-profile-fullpage-body .ktc-profile-bottom-bar,
body.ktc-profile-fullpage-body .ktc-profile-viewer.is-auto-fullscreen .ktc-profile-bottom-bar,
body.ktc-profile-fullpage-body .ktc-profile-viewer:fullscreen .ktc-profile-bottom-bar {
  height: 42px !important;
  min-height: 42px !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 20 !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

body.ktc-profile-fullpage-body .ktc-profile-progress {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: none !important;
}

body.ktc-profile-fullpage-body .ktc-profile-progress div {
  display: none !important;
}

body.ktc-profile-fullpage-body .ktc-profile-progress progress {
  width: 100% !important;
  height: 5px !important;
  opacity: .70 !important;
}

body.ktc-profile-fullpage-body .ktc-profile-bottom-actions,
body.ktc-profile-fullpage-body .ktc-profile-fallback p {
  display: none !important;
}

body.ktc-profile-fullpage-body .ktc-profile-fallback {
  margin: 0 !important;
  height: calc(100vh - 80px) !important;
}

body.ktc-profile-fullpage-body .ktc-profile-fallback iframe {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 980px) {
  body.ktc-profile-fullpage-body .ktc-profile-viewer__toolbar {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.ktc-profile-fullpage-body .ktc-profile-toolbar-actions {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }

  body.ktc-profile-fullpage-body .ktc-profile-book-area {
    height: calc(100vh - 164px) !important;
    padding: 0 56px !important;
  }

  body.ktc-profile-fullpage-body .ktc-profile-book {
    width: min(calc((100vh - 164px) * 1.4142857), calc(100vw - 132px), 1180px) !important;
  }
}

@media (max-width: 767px) {
  body.ktc-profile-fullpage-body .ktc-profile-viewer {
    padding: 10px 12px !important;
  }

  body.ktc-profile-fullpage-body .ktc-profile-viewer__title span {
    min-height: 38px !important;
    padding: 0 14px !important;
  }

  body.ktc-profile-fullpage-body .ktc-profile-home span {
    display: none !important;
  }

  body.ktc-profile-fullpage-body .ktc-profile-toolbar-actions button,
  body.ktc-profile-fullpage-body .ktc-profile-home {
    min-width: 42px !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 12px !important;
  }

  body.ktc-profile-fullpage-body .ktc-profile-book-area {
    height: calc(100vh - 150px) !important;
    padding: 0 48px !important;
  }

  body.ktc-profile-fullpage-body .ktc-profile-book {
    width: min(calc((100vh - 150px) * .7071428), calc(100vw - 118px), 760px) !important;
    aspect-ratio: 297 / 420 !important;
  }
}


/* v308: canh giữa icon nút lật trang + dùng font Roboto cho trang hồ sơ năng lực */
body.ktc-profile-fullpage-body,
body.ktc-profile-fullpage-body * {
  font-family: "Roboto", Arial, Helvetica, sans-serif !important;
}

body.ktc-profile-fullpage-body .ktc-profile-nav,
body.ktc-profile-fullpage-body .ktc-profile-book-area > .ktc-profile-nav,
body.ktc-profile-fullpage-body button.ktc-profile-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
  text-align: center !important;
}

body.ktc-profile-fullpage-body .ktc-profile-nav svg,
body.ktc-profile-fullpage-body .ktc-profile-book-area > .ktc-profile-nav svg,
body.ktc-profile-fullpage-body button.ktc-profile-nav svg {
  display: block !important;
  position: static !important;
  margin: 0 !important;
  transform: none !important;
  flex: 0 0 auto !important;
}

body.ktc-profile-fullpage-body .ktc-profile-nav svg path,
body.ktc-profile-fullpage-body .ktc-profile-book-area > .ktc-profile-nav svg path,
body.ktc-profile-fullpage-body button.ktc-profile-nav svg path {
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}


/* v309: làm chậm hiệu ứng lật trang theo kiểu lật sách chuyên nghiệp */
.ktc-profile-book.is-turning-next .ktc-profile-flip {
  animation: ktcProfileFlipNext 1.46s cubic-bezier(.16, .72, .18, 1) both !important;
}

.ktc-profile-book.is-turning-prev .ktc-profile-flip {
  animation: ktcProfileFlipPrev 1.46s cubic-bezier(.16, .72, .18, 1) both !important;
}

.ktc-profile-book.is-turning-next,
.ktc-profile-book.is-turning-prev {
  transition: filter .42s ease !important;
  filter: drop-shadow(0 30px 82px rgba(0, 15, 48, .24)) !important;
}

.ktc-profile-book.is-turning-next .ktc-profile-page--right,
.ktc-profile-book.is-turning-prev .ktc-profile-page--left {
  box-shadow: inset 0 0 28px rgba(15, 45, 86, .08) !important;
}

.ktc-profile-flip::after {
  background:
    linear-gradient(90deg,
      rgba(0,0,0,.26) 0%,
      rgba(255,255,255,.16) 18%,
      rgba(0,0,0,.10) 44%,
      rgba(255,255,255,.11) 72%,
      rgba(0,0,0,.18) 100%) !important;
}

@keyframes ktcProfileFlipNext {
  0% {
    opacity: 0;
    transform: rotateY(0deg) skewY(0deg);
    box-shadow: -10px 0 28px rgba(0,0,0,.16);
  }
  7% {
    opacity: 1;
  }
  26% {
    opacity: 1;
    transform: rotateY(-34deg) skewY(-.7deg);
    box-shadow: -22px 0 46px rgba(0,0,0,.24);
  }
  52% {
    opacity: 1;
    transform: rotateY(-96deg) skewY(-1.9deg);
    box-shadow: -48px 0 78px rgba(0,0,0,.38);
  }
  76% {
    opacity: .96;
    transform: rotateY(-144deg) skewY(-.7deg);
    box-shadow: -30px 0 56px rgba(0,0,0,.30);
  }
  100% {
    opacity: 0;
    transform: rotateY(-179deg) skewY(0deg);
    box-shadow: -8px 0 22px rgba(0,0,0,.12);
  }
}

@keyframes ktcProfileFlipPrev {
  0% {
    opacity: 0;
    transform: rotateY(0deg) skewY(0deg);
    box-shadow: 10px 0 28px rgba(0,0,0,.16);
  }
  7% {
    opacity: 1;
  }
  26% {
    opacity: 1;
    transform: rotateY(34deg) skewY(.7deg);
    box-shadow: 22px 0 46px rgba(0,0,0,.24);
  }
  52% {
    opacity: 1;
    transform: rotateY(96deg) skewY(1.9deg);
    box-shadow: 48px 0 78px rgba(0,0,0,.38);
  }
  76% {
    opacity: .96;
    transform: rotateY(144deg) skewY(.7deg);
    box-shadow: 30px 0 56px rgba(0,0,0,.30);
  }
  100% {
    opacity: 0;
    transform: rotateY(179deg) skewY(0deg);
    box-shadow: 8px 0 22px rgba(0,0,0,.12);
  }
}


/* v310: lật trang 2 mặt, nền dưới là trang đích để không còn nháy lại trang cũ */
.ktc-profile-flip {
  --profile-flip-front-image: var(--profile-flip-image);
  --profile-flip-back-image: linear-gradient(90deg, rgba(255,255,255,.98), rgba(232,241,255,.98));
  background: transparent !important;
  background-image: none !important;
  overflow: visible !important;
  transform-style: preserve-3d !important;
  -webkit-transform-style: preserve-3d !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
  will-change: transform, opacity, box-shadow !important;
}

.ktc-profile-flip::before,
.ktc-profile-flip::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  border-radius: inherit !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
  pointer-events: none !important;
  transform-style: preserve-3d !important;
  -webkit-transform-style: preserve-3d !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.ktc-profile-flip::before {
  transform: translateZ(.7px) !important;
  background-image:
    linear-gradient(90deg,
      rgba(255,255,255,.10) 0%,
      rgba(0,0,0,.035) 48%,
      rgba(0,0,0,.12) 100%),
    var(--profile-flip-front-image) !important;
  box-shadow:
    inset -18px 0 34px rgba(15, 45, 86, .10),
    inset 1px 0 0 rgba(255,255,255,.78) !important;
}

.ktc-profile-flip::after {
  transform: rotateY(180deg) translateZ(.7px) !important;
  background-image:
    linear-gradient(90deg,
      rgba(0,0,0,.16) 0%,
      rgba(255,255,255,.15) 22%,
      rgba(0,0,0,.05) 55%,
      rgba(255,255,255,.10) 100%),
    var(--profile-flip-back-image) !important;
  box-shadow:
    inset 18px 0 34px rgba(15, 45, 86, .10),
    inset -1px 0 0 rgba(255,255,255,.78) !important;
}

.ktc-profile-book.is-turning-next .ktc-profile-page--right,
.ktc-profile-book.is-turning-prev .ktc-profile-page--left {
  z-index: 1 !important;
}

.ktc-profile-book.is-turning-next .ktc-profile-page--left,
.ktc-profile-book.is-turning-prev .ktc-profile-page--right {
  z-index: 2 !important;
}

.ktc-profile-book.is-turning-next .ktc-profile-flip,
.ktc-profile-book.is-turning-prev .ktc-profile-flip {
  z-index: 9 !important;
}


/* v324: Global UTM Hanzel spacing discipline for profile page */
body .ktc-profile-heading h1 {
  font-family: "UTM Hanzel", Montserrat, Inter, Arial, sans-serif !important;
  font-kerning: none !important;
  font-feature-settings: "kern" 0 !important;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: .052em !important;
  word-spacing: .18em !important;
  line-height: 1.14 !important;
}

/* v325: reduce only word spacing on large UTM Hanzel titles */
body .ktc-profile-heading h1 {
  word-spacing: .12em !important;
}


/* v310: thêm nút tải PDF cạnh nhãn Hồ sơ năng lực + tối ưu tải ban đầu */
.ktc-profile-viewer__title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.ktc-profile-download {
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  box-shadow: 0 14px 32px rgba(0, 21, 66, .16), inset 0 1px 0 rgba(255,255,255,.20) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: transform .22s ease, filter .22s ease, background .22s ease, color .22s ease !important;
}

.ktc-profile-download svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 auto !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.3 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.ktc-profile-download:hover {
  transform: translateY(-1px) !important;
  color: #082e75 !important;
  background: linear-gradient(135deg, #fff3bd 0%, #ffd462 100%) !important;
  filter: brightness(1.03) !important;
}

body.ktc-profile-fullpage-body .ktc-profile-viewer__toolbar,
body.ktc-profile-fullpage-body .ktc-profile-viewer.is-auto-fullscreen .ktc-profile-viewer__toolbar {
  grid-template-columns: auto minmax(0, 1fr) !important;
}

body.ktc-profile-fullpage-body .ktc-profile-viewer__title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

body.ktc-profile-fullpage-body .ktc-profile-download {
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 18px !important;
  border-radius: 16px !important;
}

@media (max-width: 767px) {
  .ktc-profile-viewer__title,
  body.ktc-profile-fullpage-body .ktc-profile-viewer__title {
    gap: 8px !important;
  }

  .ktc-profile-download,
  body.ktc-profile-fullpage-body .ktc-profile-download {
    min-width: 42px !important;
    width: 42px !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 !important;
  }

  .ktc-profile-download span,
  body.ktc-profile-fullpage-body .ktc-profile-download span {
    display: none !important;
  }
}

@media (max-width: 980px) {
  body.ktc-profile-fullpage-body .ktc-profile-viewer__toolbar,
  body.ktc-profile-fullpage-body .ktc-profile-viewer.is-auto-fullscreen .ktc-profile-viewer__toolbar {
    grid-template-columns: 1fr !important;
  }

  body.ktc-profile-fullpage-body .ktc-profile-viewer__title {
    width: 100% !important;
  }
}

/* v311: đơn giản hóa nút Tải xuống thành nút vàng gold liền khối, không hiệu ứng */
body.ktc-profile-fullpage-body .ktc-profile-viewer__title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

body.ktc-profile-fullpage-body .ktc-profile-viewer__title > span {
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 18px !important;
  border-radius: 16px !important;
  color: #082e75 !important;
  background: linear-gradient(135deg, #fff3bd 0%, #ffd462 100%) !important;
  box-shadow: 0 14px 34px rgba(0, 21, 66, .18), inset 0 1px 0 rgba(255,255,255,.95) !important;
  letter-spacing: .12em !important;
  white-space: nowrap !important;
}

body.ktc-profile-fullpage-body .ktc-profile-download {
  min-height: 42px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 18px !important;
  border-radius: 16px !important;
  color: #082e75 !important;
  background: linear-gradient(135deg, #fff3bd 0%, #ffd462 100%) !important;
  border: 1px solid rgba(255,230,135,.84) !important;
  box-shadow: 0 14px 34px rgba(0, 21, 66, .18), inset 0 1px 0 rgba(255,255,255,.95) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: none !important;
  transform: none !important;
  filter: none !important;
}

body.ktc-profile-fullpage-body .ktc-profile-download span {
  display: inline !important;
  min-height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
  background: none !important;
  box-shadow: none !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
  white-space: nowrap !important;
}

body.ktc-profile-fullpage-body .ktc-profile-download svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 auto !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.3 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.ktc-profile-fullpage-body .ktc-profile-download:hover,
body.ktc-profile-fullpage-body .ktc-profile-download:focus,
body.ktc-profile-fullpage-body .ktc-profile-download:active {
  color: #082e75 !important;
  background: linear-gradient(135deg, #fff3bd 0%, #ffd462 100%) !important;
  border-color: rgba(255,230,135,.84) !important;
  box-shadow: 0 14px 34px rgba(0, 21, 66, .18), inset 0 1px 0 rgba(255,255,255,.95) !important;
  transform: none !important;
  filter: none !important;
}

@media (max-width: 767px) {
  body.ktc-profile-fullpage-body .ktc-profile-viewer__title > span,
  body.ktc-profile-fullpage-body .ktc-profile-download {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 14px !important;
  }

  body.ktc-profile-fullpage-body .ktc-profile-download {
    min-width: 0 !important;
    width: auto !important;
  }

  body.ktc-profile-fullpage-body .ktc-profile-download span {
    display: inline !important;
  }
}
