.swal2-container {
  z-index: 999999 !important;
}

.section {
  position: relative;
  width: 100%;
  /*aspect-ratio: 19.5 / 7;*/
  /*overflow: hidden;*/
  margin-top: 70px;
}

.header {
  /*position: absolute;*/
  /*top: 0;*/
  /*left: 0;*/
  /*width: 100%;*/
  /*height: 100%;*/
  /*overflow: hidden;*/
  position: relative;
  width: 100%;
  aspect-ratio: 19.5 / 7;
  overflow: hidden;
}

.header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dateandcover {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  display: grid;
  grid-template-columns: 50% 1fr;
  
  position: relative;
  z-index: 2;
}

.dateandcover > * {
  min-width: 0;
}

.subtitle {
  color: #000;
}
.mulai,
.selesai {
    margin-top: 0;
    text-align: center;
    color: #007bff;
    height: 42%;
}

.mulai {
  margin-bottom: 10px;
}

.loader {
  position: relative;
  width: 130px;
  height: 130px;
}

.loader .base {
  position: absolute;
  inset: 4px;
  border: 2px solid #ddd;
  border-radius: 50%;
  box-sizing: border-box;
}

.loader svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  z-index: 2;
}

.loader circle {
  fill: none;
  stroke: #007bff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: flow-once 1.5s ease-in-out forwards;
}

@keyframes flow-once {
  from {
    stroke-dashoffset: 283;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.loader .spin-once {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.spin-icon {
  display: block;
  font-size: 4vw;
  margin: 0 auto;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.title {
  font-weight: bold;
  display: block;
  font-size: 1.5rem;
}

.subtitle {
  font-size: 1.2rem;
  display: block;
  margin-top: 3px;
}

.date,
.cover {
  width: 100%;
  max-width: 1000px;
  position: relative;
  display: inline-block;
  padding: 10px 0;
  /* background-image: url("gambar.jpg"); */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-sizing: border-box;
  /*height: 400px;*/
  min-width: 0;
}

.date_training{
    padding: 0;
}

.cover {
    position: relative;
    width: 100%;
    /*aspect-ratio: 16 / 9; */
    overflow: hidden;
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pretest {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #007bff;
  color: white;
  padding: 15px 15px;
  width: 50%;
  border-radius: 0 15px 15px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.pretest a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  float: right;
  padding-right: 20px;
  position: relative;
  z-index: 2;
}

.pretest::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #0056b3;
  transition: all 0.3s ease;
  z-index: 1;
}

.pretest:hover::before {
  left: 0;
}

.pretest:hover a {
  color: #000;
}

html {
  scroll-behavior: smooth;
}

.hubungi_kami {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-bottom: 40px;
}

.hubungi_kami a {
  display: inline-block;
  padding: 20px;
  background-color: #000;
  width: 40%;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  text-align: center;
  transition: all 0.3s ease;
}

.hubungi_kami a:hover {
  background-color: #007bff;
  color: #fff;
  transform: scale(1.05);
}

.kendala {
  margin-bottom: 30px;
  justify-items: center;
  }

.headerkendala {
  padding: 0 40px;
  margin-bottom: 10px;
  text-align: center;
}

.headermateripelatihan h2,
.headerbelakang h2,
.headerpersyaratan h2,
.headerfasilitas h2,
.headerkendala h2 {
  font-size: 45px;
  font-family: Poppins, Arial, sans-serif;
  margin: 0;
}

.headerkendala h2 span {
  color: red;
}

.listkendala {
  display: grid;
  grid-template-columns: 50% 1fr;
  gap: 20px;
  width: 100%;
  padding: 0 0 20px 20px;
  box-sizing: border-box;
}

.wrapperkendala {
  position: relative;
  width: 100%;
  /* margin-bottom: 30px; */
  display: flex;
  align-items: center;
}

.itemkendala {
  background-color: #007bff;
  font-family: Poppins, Arial, sans-serif;
  height: auto;
  max-height: 130px;
  min-height: 100%;
  width: 90%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  margin: 20px 0 0 20px;
  padding: 5px 10px;
  color: white;
  font-size: 20px;
  border-radius: 5px;
  box-sizing: border-box;
}

.itemkendala span {
  margin-left: 50px;
  display: inline-block;
}

.wrapperkendala img {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
}

.infoharga,
.materipelatihan,
.Latar_belakang,
.persyaratan,
.fasilitas {
  margin-bottom: 30px;
}

.headermateripelatihan,
.headerbelakang,
.headerpersyaratan,
.headerfasilitas {
  padding: 0 40px;
  margin-bottom: 10px;
}

.headermateripelatihan h2 span,
.headerbelakang h2 span,
.headerpersyaratan h2 span,
.headerfasilitas h2 span {
  color: #007bff;
}

.fasilitasroom {
  padding: 20px 0;
  background-color: rgba(0, 0, 0, 0.15);
}

.listfasilitas {
  display: grid;
  grid-template-columns: 50% 1fr;
  width: 100%;
  padding: 0 40px;
  gap: 0px;
}

.checklistfasilitas {
  display: flex;
  align-items: center;
}

.checklistfasilitas img {
  width: 35px;
  height: 35px;
}

.checklistfasilitas p {
  font-size: 20px;
  margin-left: 20px;
  margin: 0;
}

.listpersyaratan {
  width: 100%;
  padding: 0 40px;
}

.checklistpersyaratan {
  display: flex;
  align-items: start;
  margin-bottom: 5px;
}

.checklistpersyaratan img {
  width: 25px;
  height: 25px;
}

.checklistpersyaratan p {
  font-size: 20px;
  margin-left: 10px;
}

.listmateripelatihan,
.listlatarbelakang {
  width: 100%;
  padding: 0 40px 0 40px;
}

.checklistmateripelatihan {
  display: flex;
  align-items: flex-start;
  /* gap: 10px; */
  margin-bottom: 10px;
}

.no {
  width: 30px;
  text-align: right;
  margin-right: 5px;
  font-size: 20px;
}

.noisi {
  font-size: 20px;
  width: 100%;
}

.listinfoharga {
  display: grid;
  grid-template-columns: 50% 1fr;
  width: 100%;
  padding: 0 0 20px 20px;
  gap: 10px;
}

.promo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.header-box {
  width: 100%;
  background-color: #007bff;
  color: #fff;
  text-align: center;
  height: 80px;
  align-content: center;
  font-size: 30px;
  font-weight: 600;
}

.hargacoret {
  color: red;
  font-size: 20px;
  margin: 10px 0;
}

.hargapromo {
  color: black;
  font-size: 50px;
  font-weight: bold;
  margin: 15px 0;
}

.harganote {
  font-size: 20px;
  margin: 10px 0 50px 0;
}

.ambilpromo {
  display: inline-block;
  padding: 20px;
  background-color: #000;
  width: 40%;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  text-align: center;
}

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

.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  /* overflow: auto; */
  z-index: 10000;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-pretest {
  width: 600px;
}

.modal-frm {
  width: 80%;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #007bff;
  color: #fff;
  padding: 15px;
}

.modal-header h2 {
  margin: 0;
  font-size: 25px;
}

.modal-header .close {
  font-size: 22px;
  border-radius: 5px;
  padding: 5px 10px;
  background: #ef4444;
  color: #fff;
  cursor: pointer;
}

.modal-header .close:hover {
  background: #dc2626;
}

.modal-body {
  padding: 20px;
}

.form-group {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
  margin-bottom: 5px;
}

.form-pretest-group {
  display: grid;
  grid-template-columns: 100px 1fr;
  margin-bottom: 15px;
}

.form-pretest-group label,
.form-group label {
  text-align: right;
  display: block;
  margin-right: 10px;
  font-weight: 600;
}

.form-pretest-group input,
.form-pretest-group select,
.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.span {
  color: red;
  /* font-size: ; */
}

.start-btn {
  width: 100%;
  padding: 12px;
  background: #007bff;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease;
}

.start-btn:hover {
  background: #0056b3;
}

/* Animasi muncul */
@keyframes fadeIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

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

.error-message {
  color: red;
  font-size: 13px;
  margin-top: 3px;
}
.cke_editable * {
  all: revert;
}

.cke_editable {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
@media (max-width: 1024px) {
  .section {
    aspect-ratio: 16 / 7;
    /* lebih ramping di tablet */
  }
}

@media (max-width: 768px) {
  .section {
    aspect-ratio: 9 / 3.5;
    /* lebih tinggi di HP */
  }

  .header img {
    object-position: center top;
    /* fokus bagian atas gambar */
  }

  .dateandcover {
    display: block;
  }

  .spin-once {
    width: 30vw;
    height: 30vw;
  }

  .spin-icon {
    font-size: 8vw;
  }

  .title {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .hubungi_kami {
    width: 80%;
  }

  .hubungi_kami a {
    width: 60%;
    padding: 15px;
    font-size: 18px;
  }

  .pretest {
    width: 70%;
    padding: 12px;
    font-size: 0.9rem;
  }

  .pretest a {
    padding-right: 10px;
  }

  .headermateripelatihan,
  .headerbelakang,
  .listpersyaratan,
  .headerpersyaratan,
  .headerfasilitas {
    padding: 0 20px;
  }

  .headermateripelatihan h2,
  .headerbelakang h2,
  .headerpersyaratan h2,
  .headerfasilitas h2,
  .headerkendala h2 {
    font-size: 32px;
  }

  .listkendala {
    grid-template-columns: 1fr;
    padding: 0 10px 20px 10px;
    font-size: 18px;
    width: 100%;
    margin: 10px;
  }

  .wrapperkendala img {
    width: 50px;
    height: 50px;
  }

  .itemkendala {
    padding: 2px 5px;
  }

  .itemkendala span {
    margin-left: 40px;
  }

  .listfasilitas {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .checklistpersyaratan img {
    width: 35px;
    height: 35px;
  }

  .checklistpersyaratan p {
    font-size: 18px;
    margin-left: 15px;
  }

  .listmateripelatihan,
  .listlatarbelakang {
    padding: 0 20px 0 20px;
  }

  .header-box {
    font-size: 26px;
  }

  .hargapromo {
    font-size: 40px;
  }

  .hargacoret,
  .harganote {
    font-size: 18px;
  }

  .ambilpromo {
    width: 60%;
    font-size: 18px;
    padding: 15px;
  }
  .modal-frm {
    width: 100%;
  }

  .modal-header h2 {
    margin: 0;
    font-size: 15px;
    text-align: center;
  }
  .form-group,
  .form-pretest-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 6px;
  }

  .form-pretest-group label,
  .form-group label {
    text-align: left;
    display: block;
    margin-right: 10px;
    font-weight: 600;
  }
}

/* ✅ Breakpoint 640px - Mobile sedang */
/* @media (max-width: 640px) {
  .section {
    aspect-ratio: 9 / 4;
  }

  .spin-icon {
    font-size: 10vw;
  }

  .title {
    font-size: 1.3rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .hubungi_kami a {
    width: 75%;
    padding: 14px;
    font-size: 17px;
  }

  .pretest {
    width: 85%;
    padding: 10px;
    font-size: 0.9rem;
  }

  .listkendala {
    padding: 0 10px;
  }

  .itemkendala {
    font-size: 16px;
    padding: 2px 5px;
  }

  .checklistpersyaratan p,
  .checklistfasilitas p {
    font-size: 17px;
  }

  .header-box {
    font-size: 24px;
  }

  .hargapromo {
    font-size: 36px;
  }

  .ambilpromo {
    width: 75%;
    font-size: 17px;
    padding: 14px;
  }
} */

@media (max-width: 480px) {
  .spin-icon {
    font-size: 12vw;
  }

  .cover {
    padding: 5px;
  }

  .hubungi_kami {
    width: 100%;
    margin-bottom: 30px;
  }

  .hubungi_kami a {
    width: 80%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
  }

  .pretest {
    width: 90%;
    padding: 10px;
    font-size: 0.85rem;
    border-radius: 0 10px 10px 0;
  }

  .pretest a {
    padding-right: 8px;
    font-size: 0.85rem;
  }

  .headermateripelatihan h2,
  .headerbelakang h2,
  .headerpersyaratan h2,
  .headerfasilitas h2,
  .headerkendala h2 {
    font-size: 26px;
  }

  .itemkendala span {
    margin-left: 25px;
  }

  .itemkendala {
    font-size: 14px;
    width: 90%;
    padding: 0;
  }

  .wrapperkendala {
    height: 45px;
    margin-bottom: 20px;
  }

  .wrapperkendala img {
    width: 40px;
    height: 40px;
  }

  .checklistpersyaratan img,
  .checklistfasilitas img {
    width: 30px;
    height: 30px;
  }

  .checklistfasilitas p {
    font-size: 18px;
    margin-left: 15px;
  }

  .checklistpersyaratan p {
    font-size: 16px;
    margin-left: 10px;
  }

  .listinfoharga {
    display: block;
  }

  .promo-box {
    padding-right: 20px;
  }

  .header-box {
    font-size: 22px;
  }

  .hargapromo {
    font-size: 32px;
  }

  .hargacoret,
  .harganote {
    font-size: 16px;
  }

  .ambilpromo {
    width: 80%;
    font-size: 16px;
    padding: 12px;
  }
}

/* ✅ Breakpoint 360px - Mobile extra kecil */
@media (max-width: 360px) {
  /* .section {
    aspect-ratio: 9 / 5;
  } */

  .spin-icon {
    font-size: 14vw;
  }

  .pretest {
    width: 95%;
    padding: 9px;
    font-size: 0.8rem;
    border-radius: 0 8px 8px 0;
  }

  .hubungi_kami {
    width: 100%;
  }

  .hubungi_kami a {
    width: 90%;
    padding: 10px;
    font-size: 15px;
    border-radius: 7px;
  }

  .headermateripelatihan h2,
  .headerbelakang h2,
  .headerpersyaratan h2,
  .headerfasilitas h2,
  .headerkendala h2 {
    font-size: 22px;
  }

  .listkendala {
    gap: 5px;
  }

  .itemkendala {
    font-size: 14px;
    padding: 5px 0;
  }

  .wrapperkendala img {
    width: 35px;
    height: 35px;
  }

  .checklistpersyaratan p,
  .checklistfasilitas p {
    font-size: 16px;
    margin-left: 5px;
  }

  .header-box {
    font-size: 20px;
  }

  .hargapromo {
    font-size: 30px;
  }

  .ambilpromo {
    width: 90%;
    font-size: 14px;
    padding: 10px;
  }
}
