.htu-wrap {
  background: transparent;
  padding: 4px 0 56px;
}

/* Remove Moodle default empty header area only on this page. */
#page-pages-howtouse #page-header,
#page-pages-howtouse .secondary-navigation,
#page-pages-howtouse .backlink_ar {
  display: none !important;
}

#page-pages-howtouse #page-content {
  padding-top: 0 !important;
}

.htu-underconstruction {
  max-width: 760px;
  margin: 0 auto 30px;
  background: #fff;
  border: 1px solid #0d0d0d1a;
  border-radius: 14px;
  text-align: center;
  padding: 30px 22px;
}

.htu-underconstruction h3 {
  margin: 0 0 10px;
  font-size: 28px;
  color: var(--secondary-color);
}

.htu-underconstruction p {
  margin: 0;
  font-size: 16px;
  color: var(--color-text);
}

.htu-container {
  max-width: 1080px;
}

.htu-head {
  text-align: center;
  margin-bottom: 16px;
}

.htu-head h1 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.htu-head p {
  color: var(--color-text);
  margin: 0 auto;
  max-width: 760px;
  font-size: 16px;
  text-align: center !important;
}

.htu-list {
  display: grid;
  gap: 18px;
}

.htu-card {
  background: #fff;
  border: 1px solid #0d0d0d1a;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr 42%;
  gap: 16px;
  align-items: center;
}

.htu-number {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--primary-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.htu-content h3 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--secondary-color);
}

.htu-content p {
  color: var(--color-text);
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.5;
}

.htu-watch {
  border: none;
  background: none;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0;
  font-size: 16px;
}

.htu-media {
  position: relative;
}

.htu-media img {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  object-fit: cover;
  background: #e5e7eb;
}

.htu-play {
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;
  transform: translate(-50%, -50%);
  margin: auto;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: var(--primary-color);
  font-size: 22px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

.htu-duration {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  border-radius: 6px;
  padding: 2px 6px;
}

.htu-help {
  margin-top: 28px;
  background: #d7e2f5;
  border-radius: 16px;
  text-align: center;
  padding: 28px 18px;
}

.htu-help h4 {
  font-size: 32px;
  margin: 0 0 6px;
  color: var(--secondary-color);
}

.htu-help p {
  margin: 0 0 14px;
  color: var(--color-text);
  font-size: 15px;
}

.htu-help-btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
}
.htu-help-btn:hover {
  color: #fff !important;
}

.htu-modal[hidden] {
  display: none !important;
}

.htu-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.htu-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.htu-modal-content {
  position: relative;
  width: min(92vw, 980px);
  background: #111827;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.htu-modal video {
  width: 100%;
  border-radius: 8px;
  max-height: 82vh;
  display: block;
}

.htu-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.htu-no-scroll {
  overflow: hidden;
}

@media (max-width: 1199px) {
  .htu-head h1 {
    font-size: 32px;
  }
  .htu-head p {
    font-size: 15px;
  }
  .htu-content h3 {
    font-size: 22px;
  }
  .htu-content p {
    font-size: 15px;
  }
  .htu-watch,
  .htu-help-btn {
    font-size: 20px;
  }
  .htu-help h4 {
    font-size: 24px;
  }
  .htu-help p {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .htu-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .htu-number {
    justify-self: start;
  }
  .htu-media {
    order: 2;
  }
  .htu-content {
    order: 1;
  }
}

@media (max-width: 576px) {
  .htu-wrap {
    padding: 2px 0 36px;
  }
  .htu-card {
    padding: 12px;
  }
  .htu-media img {
    height: 200px;
  }
  .htu-head h1 {
    font-size: 28px;
  }
  .htu-head p {
    font-size: 14px;
  }
  .htu-content h3 {
    font-size: 20px;
  }
  .htu-content p {
    font-size: 14px;
  }
  .htu-watch {
    font-size: 16px;
  }
  .htu-help h4 {
    font-size: 24px;
  }
  .htu-help p {
    font-size: 14px;
  }
  .htu-help-btn {
    font-size: 16px;
  }

  .htu-modal {
    padding: 8px;
  }

  .htu-modal-content {
    width: 100%;
    padding: 8px;
    border-radius: 10px;
  }

  .htu-modal video {
    max-height: 74vh;
    border-radius: 8px;
  }

  .htu-close {
    top: 8px;
    left: 8px;
    width: 34px;
    height: 34px;
    font-size: 24px;
  }
}

#page-footer .footer_data_am .infoarea p{
    text-align: right !important; 
}