* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #d7d7d7;
  color: #5b2ca0;
}

.section-title{
 font-family: "PT Serif", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 40px;
}
.app {
  width: 100%;
  max-width: 760px;
  min-height: 100vh;
  margin: 0 auto;
  background: #ede3f6;
  padding: 42px 38px 64px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #7a58a5;
}

.section-title {
  margin: 0 0 28px;
  font-size: 3rem;
  line-height: 1.08;
  font-style: italic;
  font-weight: 700;
  color: #5b2ca0;
}

.small-title {
  font-size: 2.1rem;
}

.intro-text {
  margin: 0 0 34px;
  font-size: 1.25rem;
  line-height: 1.35;
  font-style: italic;
  font-weight: 700;
  max-width: 560px;
}

.body-copy {
  margin: 0 0 22px;
  line-height: 1.65;
  color: #6a5c85;
  font-size: 1rem;
}

.start-link {
  display: inline-block;
  margin-bottom: 42px;
  background: none;
  border: none;
  padding: 0;
  color: #2f6cff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.question-group,
.quiz-block {
  margin-bottom: 34px;
}

.question-title,
.quiz-question,
.step-title {
  margin-bottom: 14px;
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 700;
  color: #5b2ca0;
}

.option-btn,
.quiz-option,
.continue-btn,
.action-btn {
  width: 100%;
  padding: 15px 16px;
  font-size: 1rem;
  border-radius: 0;
  transition: 0.2s ease;
}

.option-btn,
.quiz-option {
  display: block;
  margin-bottom: 10px;
  border: 1.5px solid #d1ace7;
  background: #ffffff;
  color: #5b2ca0;
  text-align: left;
  cursor: pointer;
}

.option-btn:hover,
.quiz-option:hover {
  background: #f6effb;
}

.option-btn.selected-answer {
  background: #b58ddb !important;
  color: #ffffff !important;
  border-color: #b58ddb !important;
}

.quiz-option.correct-answer {
  background: #dff5df !important;
  border-color: #4caf50 !important;
  color: #2e7d32 !important;
}

.quiz-option.wrong-answer {
  background: #fde0e0 !important;
  border-color: #e53935 !important;
  color: #b71c1c !important;
}

.continue-btn,
.action-btn {
  border: none;
  background: #cfb2e8;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.continue-btn:disabled,
.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.continue-btn.enabled,
.action-btn.enabled {
  background: #8e2de2;
}

.input-label {
  display: block;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
}

.name-input {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid #d1ace7;
  background: #ffffff;
  color: #5b2ca0;
  font-size: 1rem;
  margin-bottom: 18px;
}

.button-row {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.button-row .action-btn {
  flex: 1;
}

.helper-text {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: #7d6f97;
}

.info-card {
  background: #ffffff;
  border: 1.5px solid #d1ace7;
  padding: 18px;
  margin-bottom: 16px;
}

.dark-card {
  background: #6f2dbd;
  color: #ffffff;
  border: none;
}

.dark-card h2,
.dark-card p {
  color: #ffffff;
}

.info-card h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.info-card p {
  margin: 0;
  line-height: 1.6;
}

.content-box,
.tip-box {
  background: #ffffff;
  border: 1.5px solid #d1ace7;
  padding: 16px;
  margin-top: 14px;
}

.content-box p,
.content-box li,
.tip-box {
  color: #6a5c85;
  line-height: 1.6;
}

.content-box ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ead8f7;
  border: 1.5px solid #d1ace7;
  color: #9a74bd;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  margin-bottom: 16px;
}

.image-placeholder.tall {
  aspect-ratio: 1 / 1;
}

.image-placeholder.medium-box {
  aspect-ratio: 1 / 1;
}

.small-box {
  aspect-ratio: 1 / 1;
}

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


.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.certificate-box {
  margin-top: 18px;
  background: #fffaf0;
  border: 10px solid #c75626;
  padding: 42px 28px;
  text-align: center;
  color: #b37b46;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.certificate-heading {
  margin: 0 0 16px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.certificate-subheading {
  margin: 0 0 22px;
  font-size: 1rem;
}

.certificate-name {
  display: inline-block;
  min-width: 240px;
  margin: 14px 0 20px;
  padding: 0 14px 8px;
  font-size: 2rem;
  font-weight: 700;
  color: #6a2db7;
  border-bottom: 2px solid #d4b065;
}

.certificate-text {
  max-width: 520px;
  margin: 0 auto 22px;
  line-height: 1.6;
  font-size: 1rem;
}

.certificate-date {
  font-weight: 700;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .app {
    padding: 28px 20px 48px;
  }

  .section-title {
    font-size: 2.35rem;
  }

  .small-title {
    font-size: 1.7rem;
  }

  .intro-text {
    font-size: 1.08rem;
  }

  .button-row {
    flex-direction: column;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}
.video-box {
  width: 100%;
  border: 1.5px solid #d1ace7;
  background: #ead8f7;
  padding: 12px;
  margin-bottom: 16px;
}

.tutorial-video {
  width: 100%;
  display: block;
  border: none;
  background: #000;
  aspect-ratio: 16 / 9;
}
.certificate-box {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 700px;
  margin: 18px auto 0;
  background: #fffaf0;
  border: 10px solid #d45c1f;
  padding: 36px 24px;
}

.certificate-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  pointer-events: none;
  opacity: 0.08;
}

.certificate-watermark img {
  width: 220px;
  height: auto;
  display: block;
}
.certificate-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
}

.certificate-corner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.top-left {
  top: 12px;
  left: 12px;
  transform: rotate(-12deg);
}

.top-right {
  top: 12px;
  right: 12px;
  transform: scaleX(-1) rotate(-12deg);
}

.bottom-left {
  bottom: 12px;
  left: 12px;
  transform: rotate(12deg);
}

.bottom-right {
  bottom: 12px;
  right: 12px;
  transform: scaleX(-1) rotate(12deg);
}