/* Semua gaya fitur dibatasi ke vt-wrap agar tidak mengubah halaman portal lama. */
.vt-wrap,
.vt-wrap * {
  box-sizing: border-box;
}
.vt-wrap {
  max-width: 1180px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  color: #202124;
  font-size: 14px;
  line-height: 1.5;
}
.vt-wrap .vt-head {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.vt-wrap .vt-head h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 6px 0 10px;
  letter-spacing: -0.6px;
}
.vt-wrap .vt-head p {
  color: #737780;
  font-size: 13px;
  margin: 0;
}
.vt-wrap .vt-head > div > span,
.vt-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #ed1c24;
}
.vt-wrap .vt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vt-wrap button,
.vt-wrap .vt-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: none;
}
.vt-wrap button:hover,
.vt-wrap .vt-link:hover {
  border-color: #aaa;
  background: #f6f6f6;
}
.vt-wrap button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.vt-wrap .vt-primary {
  background: #ed1c24;
  color: #fff;
  border-color: #ed1c24;
}
.vt-wrap .vt-primary:hover {
  background: #cb161e;
  color: #fff;
  border-color: #cb161e;
}
.vt-wrap .vt-form {
  padding: 22px;
  border: 1px solid #e3e4e7;
  border-radius: 14px;
  background: #fff;
  margin: 0 0 22px;
  max-width: 760px;
}
.vt-wrap .vt-form h2 {
  font-size: 18px;
  margin: 0 0 18px;
}
.vt-wrap .vt-form label {
  display: block;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
}
.vt-wrap .vt-form input:not([type='checkbox']),
.vt-wrap .vt-form textarea,
.vt-wrap .vt-search {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  height: auto;
}
.vt-wrap .vt-form textarea {
  resize: vertical;
}
.vt-wrap .vt-form input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0 6px 0 0;
  vertical-align: middle;
  appearance: auto;
}
.vt-wrap .vt-form small {
  display: block;
  font-size: 11px;
  color: #777;
  margin-top: 5px;
  font-weight: 400;
}
.vt-wrap .vt-search {
  max-width: 460px;
  min-height: 42px;
}
.vt-wrap .vt-message {
  color: #737780;
  font-size: 12px;
  margin: 14px 0;
}
.vt-wrap .vt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.vt-wrap .vt-card {
  background: #fff;
  border: 1px solid #e3e4e7;
  border-radius: 13px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 3px 12px #00000005;
}
.vt-wrap .vt-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #17191e;
}
.vt-wrap .vt-card-copy {
  padding: 17px;
}
.vt-wrap .vt-card h2 {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.vt-wrap .vt-card p {
  font-size: 12px;
  line-height: 1.6;
  color: #737780;
  margin: 0 0 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.vt-wrap .vt-badge {
  display: inline-block;
  background: #f1f2f4;
  color: #5e6570;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
  margin: 0 0 12px;
}
.vt-wrap [hidden] {
  display: none !important;
}
/* Halaman publik memakai header mandiri; tidak memuat CSS/aplikasi admin. */
body.vt-public {
  margin: 0;
  background: #f7f8fa;
  color: #222;
  font-family: Arial, sans-serif;
}
.vt-public-topbar {
  background: #fff;
  border-bottom: 1px solid #e7e8eb;
  padding: 18px max(20px, calc((100vw - 1180px) / 2));
}
.vt-public-topbar img {
  width: 112px;
  height: 32px;
  object-fit: contain;
}
.vt-public > main {
  padding: 38px 20px 60px;
}
.vt-wrap .vt-public-hero {
  background: #fff;
  padding: 30px;
  border: 1px solid #e3e4e7;
  border-radius: 16px;
  margin-bottom: 26px;
}
.vt-wrap .vt-public-hero h1 {
  font-size: 34px;
  margin: 9px 0;
  letter-spacing: -0.8px;
}
.vt-wrap .vt-public-hero p {
  font-size: 14px;
  color: #737780;
  margin: 0;
}
.vt-wrap .vt-cover {
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #20242b, #373c47);
  border-bottom: 1px solid #ddd;
}
.vt-wrap .vt-cover span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ed1c24;
  color: #fff;
  font-size: 22px;
}
/* Satu pemutar dialog agar daftar tidak memuat banyak video sekaligus. */
.vt-player-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 18px;
  border: 0;
  border-radius: 14px;
  overflow: auto;
  font-family: Arial, sans-serif;
}
.vt-player-dialog::backdrop {
  background: #000a;
}
.vt-player-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.vt-player-head h2 {
  font-size: 18px;
  margin: 0;
  overflow-wrap: anywhere;
}
.vt-player-head button {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.vt-player-dialog video {
  display: block;
  width: 100%;
  max-height: 65dvh;
  background: #111;
}
.vt-player-dialog p {
  font-size: 13px;
  color: #777;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .vt-wrap .vt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .vt-wrap .vt-grid {
    grid-template-columns: 1fr;
  }
  .vt-wrap .vt-public-hero {
    padding: 22px;
  }
  .vt-wrap .vt-public-hero h1 {
    font-size: 28px;
  }
  .vt-public > main {
    padding-top: 24px;
  }
}

/* Form dua kolom: informasi di kiri, file dan publikasi di kanan. */
#page-tutorials .vt-form {
  max-width: 100%;
  box-shadow: 0 6px 24px #00000005;
}
#page-tutorials .vt-form-heading {
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eceef1;
}
#page-tutorials .vt-form-heading h2 {
  margin-bottom: 6px;
}
#page-tutorials .vt-form-heading p {
  margin: 0;
  color: #777;
  font-size: 12px;
}
#page-tutorials .vt-form-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}
#page-tutorials .vt-upload-field {
  background: #f8f9fb;
  border: 1px dashed #ccd0d7;
  border-radius: 10px;
  padding: 18px;
}
#page-tutorials .vt-form input[type='file'] {
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 11px;
}
#page-tutorials input[type='file']::file-selector-button {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  margin-right: 10px;
  color: #333;
  background: #fff;
  cursor: pointer;
}
#page-tutorials .vt-publish-field {
  padding: 14px;
  border: 1px solid #eceef1;
  border-radius: 9px;
  font-weight: 400;
}
#page-tutorials .vt-form > .vt-actions {
  justify-content: flex-end;
  border-top: 1px solid #eceef1;
  padding-top: 18px;
  margin-top: 8px;
}
@media (max-width: 700px) {
  #page-tutorials .vt-form-columns {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
