:root {
  --hca-ink: #2e2a22;
  --hca-title: #33280f;
  --hca-brown: #5c4a1e;
  --hca-muted: #8a7a4d;
  --hca-gold: #f6a81c;
  --hca-orange: #f49e17;
  --hca-pink: #f0546b;
  --hca-blue: #1b4b8f;
  --hca-sky: #2e86d6;
  --hca-line: #ebe0c9;
  --hca-soft: #fbf7ee;
  --hca-tab: #f6efe0;
}

body.hca-course-page {
  margin: 0;
  background: #fdb92c;
}

body.hca-course-page .wp-site-blocks > header,
body.hca-course-page .wp-site-blocks > footer,
body.hca-course-page .wp-block-post-title {
  display: none;
}

body.hca-course-page .wp-site-blocks,
body.hca-course-page .wp-site-blocks > main,
body.hca-course-page .entry-content.wp-block-post-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

body.hca-course-page .entry-content.wp-block-post-content > .hca-course-root,
body.hca-course-page .is-layout-constrained > .hca-course-root {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

body.hca-course-page .entry-content.wp-block-post-content > * {
  margin-block-start: 0;
}

.hca-course-root {
  min-height: 100vh;
  color: var(--hca-ink);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.hca-course-root *,
.hca-course-root *::before,
.hca-course-root *::after {
  box-sizing: border-box;
}

.hca-course-root h1,
.hca-course-root h2,
.hca-course-root h3,
.hca-course-root p,
.hca-course-root button,
.hca-course-root input,
.hca-course-root textarea,
.hca-course-root a {
  font-family: inherit;
}

.hca-shell {
  min-height: 100vh;
  background: linear-gradient(162deg, #ffd64f 0%, #fdb92c 52%, #f49e17 100%);
  background-attachment: fixed;
}

.hca-wrap {
  width: min(960px, calc(100% - 44px));
  margin: 0 auto;
}

.hca-auth {
  width: min(1380px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 64px;
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(340px, 0.92fr);
  grid-template-rows: auto auto auto;
  column-gap: 54px;
  row-gap: 20px;
  align-items: center;
  align-content: center;
}

.hca-auth-header {
  grid-column: 1 / -1;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.hca-teacher-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.hca-auth-visual {
  grid-row: 2 / span 2;
  position: relative;
  max-width: 760px;
  animation: hca-rise 0.5s ease both;
}

.hca-logo-showcase {
  position: relative;
  z-index: 0;
}

.hca-logo-showcase::before,
.hca-logo-showcase::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 96px;
  background: rgba(118, 70, 0, 0.16);
}

.hca-logo-showcase::before {
  width: 44%;
  aspect-ratio: 1;
  right: -5%;
  top: -8%;
}

.hca-logo-showcase::after {
  width: 58%;
  height: 32%;
  left: -7%;
  bottom: -6%;
}

.hca-logo-showcase img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 68px 68px 68px;
}

.hca-auth-copy {
  align-self: end;
  max-width: 560px;
  animation: hca-rise 0.5s ease both;
}

.hca-brand,
.hca-header-inner,
.hca-home,
.hca-progress,
.hca-card-title,
.hca-question-head,
.hca-quiz-top,
.hca-answer,
.hca-link-button,
.hca-button {
  display: flex;
  align-items: center;
}

.hca-brand {
  gap: 14px;
  margin-bottom: 26px;
}

.hca-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--hca-blue);
  box-shadow: 0 10px 26px rgba(150, 95, 0, 0.22);
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.hca-brand-title {
  margin: 0;
  color: #3a2e12;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
}

.hca-brand-subtitle {
  display: block;
  margin-top: 3px;
  color: #8a6a20;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
}

.hca-hero-title {
  max-width: 620px;
  margin: 0 0 22px;
  color: #fff;
  font-size: 72px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hca-hero-subtitle {
  margin: 0 0 34px;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
}

.hca-hero-cta {
  min-width: 315px;
  min-height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  border: 0;
  border-radius: 12px;
  background: #8a510a;
  color: #fff;
  box-shadow: 0 9px 15px rgba(94, 53, 4, 0.35);
  cursor: pointer;
  font-size: 27px;
  font-weight: 900;
}

.hca-hero-cta:hover {
  background: #744407;
}

.hca-hero-cta:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.hca-join-note {
  width: min(310px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 26px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
}

.hca-join-arrow {
  display: inline-block;
  font-size: 34px;
  font-style: normal;
  transform: rotate(-16deg);
}

.hca-hero-text,
.hca-copy {
  color: var(--hca-brown);
  line-height: 1.5;
}

.hca-hero-text {
  max-width: 520px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  font-weight: 700;
}

.hca-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hca-chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #3a2e12;
  font-size: 14px;
  font-weight: 800;
}

.hca-chip b,
.hca-level-he,
.hca-lesson-he {
  font-family: "Frank Ruhl Libre", Georgia, serif;
}

.hca-chip b {
  color: var(--hca-blue);
}

.hca-panel,
.hca-card,
.hca-lesson-hero,
.hca-test-card,
.hca-result-card,
.hca-level-card {
  background: #fff;
}

.hca-panel {
  border: 0;
  border-radius: 26px;
  box-shadow: 0 26px 60px rgba(140, 90, 0, 0.24);
}

.hca-auth-panel {
  align-self: start;
  max-width: 430px;
  padding: 32px 30px;
  animation: hca-pop 0.5s ease both;
}

.hca-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  margin-bottom: 24px;
  border: 0;
  border-radius: 14px;
  background: var(--hca-tab);
}

.hca-tab,
.hca-button,
.hca-icon-button,
.hca-level-card,
.hca-answer,
.hca-link-button,
.hca-back {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.hca-tab {
  min-height: 42px;
  border-radius: 10px;
  background: transparent;
  color: #a08a4e;
  font-size: 14px;
  font-weight: 900;
}

.hca-tab.is-active {
  background: #fff;
  color: var(--hca-title);
  box-shadow: 0 3px 10px rgba(140, 90, 0, 0.12);
}

.hca-field {
  display: block;
  margin: 12px 0 0;
}

.hca-label {
  display: block;
  margin-bottom: 6px;
  color: var(--hca-brown);
  font-size: 13px;
  font-weight: 800;
}

.hca-input,
.hca-textarea {
  width: 100%;
  border: 1.5px solid var(--hca-line);
  border-radius: 12px;
  background: var(--hca-soft);
  color: var(--hca-title);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
}

.hca-input::placeholder,
.hca-textarea::placeholder {
  color: #b8ac91;
}

.hca-input {
  height: 48px;
  padding: 0 15px;
}

.hca-textarea {
  min-height: 96px;
  padding: 13px 15px;
  resize: vertical;
}

.hca-input:focus,
.hca-textarea:focus,
.hca-tab:focus-visible,
.hca-button:focus-visible,
.hca-icon-button:focus-visible,
.hca-level-card:focus-visible,
.hca-answer:focus-visible,
.hca-link-button:focus-visible,
.hca-back:focus-visible {
  outline: 3px solid rgba(240, 84, 107, 0.22);
  outline-offset: 2px;
}

.hca-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hca-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 18px 0 4px;
  color: #7a6837;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}

.hca-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--hca-pink);
}

.hca-error {
  margin-top: 6px;
  color: #e0433e;
  font-size: 12.5px;
  font-weight: 700;
}

.hca-note {
  margin: 14px 0 0;
  padding: 12px 15px;
  border-radius: 12px;
  background: #eaf7ec;
  color: #2e8b57;
  font-size: 13.5px;
  font-weight: 800;
}

.hca-button {
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5c4514, #3e2f0e);
  color: #ffe9ae;
  box-shadow: 0 12px 26px rgba(70, 50, 10, 0.32);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.hca-button:hover {
  background: linear-gradient(135deg, #6a5017, #3e2f0e);
}

.hca-button.is-pink {
  background: linear-gradient(135deg, #f0546b, #e23a72);
  color: #fff;
  box-shadow: 0 12px 26px rgba(226, 58, 114, 0.4);
}

.hca-button.is-soft {
  border: 2px solid var(--hca-pink);
  background: #fff;
  color: var(--hca-pink);
  box-shadow: none;
}

.hca-button:disabled {
  background: #e7dcc4;
  color: #b3a582;
  box-shadow: none;
  cursor: not-allowed;
}

.hca-button.is-full {
  width: 100%;
  margin-top: 16px;
}

.hca-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(150, 100, 0, 0.15);
  background: rgba(255, 214, 74, 0.86);
  backdrop-filter: blur(12px);
}

.hca-header-inner {
  gap: 14px;
  min-height: 64px;
}

.hca-home {
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
}

.hca-home .hca-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(150, 95, 0, 0.2);
}

.hca-progress {
  gap: 8px;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--hca-brown);
  font-size: 12.5px;
  font-weight: 800;
}

.hca-progress-bar {
  width: 70px;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(120, 80, 0, 0.18);
}

.hca-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hca-pink), var(--hca-gold));
}

.hca-icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: #8a6a20;
  box-shadow: 0 6px 16px rgba(150, 95, 0, 0.18);
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

.hca-main {
  padding: 30px 0 70px;
}

.hca-kicker {
  margin-bottom: 8px;
  color: #8a6a20;
  font-size: 14px;
  font-weight: 800;
}

.hca-title {
  margin: 0 0 6px;
  color: var(--hca-title);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hca-copy {
  margin: 0 0 30px;
  font-size: 15.5px;
  font-weight: 600;
}

.hca-path {
  display: grid;
  gap: 16px;
}

.hca-path-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
}

.hca-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent, var(--hca-pink));
  color: #fff;
  box-shadow: 0 8px 18px rgba(140, 90, 0, 0.16);
  font-size: 18px;
  font-weight: 900;
}

.hca-level-card {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  min-height: 96px;
  padding: 16px 18px;
  border: 2px solid #fff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(140, 90, 0, 0.1);
  text-align: left;
}

.hca-level-card:hover:not([disabled]) {
  transform: translateY(-1px);
}

.hca-level-card[disabled] {
  opacity: 0.62;
  cursor: not-allowed;
}

.hca-level-main {
  display: grid;
  gap: 3px;
}

.hca-level-meta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.hca-level-title {
  color: var(--hca-title);
  font-size: 18px;
  font-weight: 900;
}

.hca-level-he {
  color: var(--accent, var(--hca-pink));
  font-size: 17px;
  font-weight: 700;
}

.hca-level-topic {
  color: #4a3c18;
  font-size: 15px;
  font-weight: 800;
}

.hca-level-desc {
  color: var(--hca-muted);
  font-size: 13px;
  font-weight: 600;
}

.hca-pill {
  margin-left: 0;
  margin-top: 10px;
  align-self: flex-start;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--soft, #fdecee);
  color: var(--accent, var(--hca-pink));
  font-size: 12.5px;
  font-weight: 900;
  white-space: nowrap;
}

.hca-card,
.hca-lesson-hero,
.hca-test-card,
.hca-result-card {
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(140, 90, 0, 0.12);
}

.hca-lesson-hero {
  position: relative;
  overflow: hidden;
  padding: 26px;
  margin-bottom: 18px;
  border-radius: 24px;
}

.hca-lesson-he {
  position: absolute;
  top: -36px;
  right: -20px;
  color: rgba(240, 84, 107, 0.1);
  font-size: 150px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.hca-lesson-pill {
  display: inline-flex;
  padding: 6px 13px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--soft, #fdecee);
  color: var(--accent, var(--hca-pink));
  font-size: 13px;
  font-weight: 900;
}

.hca-back {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 0;
  background: transparent;
  color: #8a6a20;
  font-size: 14px;
  font-weight: 800;
}

.hca-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.hca-card {
  padding: 20px;
  margin-bottom: 16px;
}

.hca-card-title {
  gap: 9px;
  margin-bottom: 14px;
  color: var(--hca-title);
  font-size: 15px;
  font-weight: 900;
}

.hca-card-title span {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fdecee;
  color: var(--hca-pink);
  font-size: 12px;
  font-weight: 900;
}

.hca-video {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: repeating-linear-gradient(135deg, #22252b, #22252b 14px, #1c1f25 14px, #1c1f25 28px);
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.hca-play {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--hca-pink);
  box-shadow: 0 10px 26px rgba(240, 84, 107, 0.5);
}

.hca-material-title {
  margin-bottom: 4px;
  color: #4a3c18;
  font-size: 15px;
  font-weight: 800;
}

.hca-muted {
  color: var(--hca-muted);
  font-size: 13px;
  font-weight: 600;
}

.hca-task-list {
  display: grid;
  gap: 6px;
  margin: 12px 0 16px;
  color: var(--hca-brown);
  font-size: 13.5px;
  font-weight: 600;
}

.hca-link-button {
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  background: #eef4fc;
  color: var(--hca-sky);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.hca-link-button.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.hca-audio {
  width: 100%;
  margin-top: 14px;
}

.hca-infographic {
  display: grid;
  min-height: 210px;
  place-items: center;
  overflow: hidden;
  border: 2px dashed #e4d3a6;
  border-radius: 16px;
  background: repeating-linear-gradient(135deg, #fbf3e2, #fbf3e2 12px, #f5e9ce 12px, #f5e9ce 24px);
}

.hca-infographic img {
  width: 100%;
  height: auto;
  display: block;
}

.hca-question-head {
  gap: 12px;
  justify-content: space-between;
}

.hca-test-cta {
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--hca-title), #4a3813);
  box-shadow: 0 20px 46px rgba(70, 50, 10, 0.3);
  text-align: center;
}

.hca-test-cta h2 {
  margin: 0 0 6px;
  color: #ffe9ae;
  font-size: 22px;
  font-weight: 900;
}

.hca-test-cta p {
  margin: 0 0 18px;
  color: #e0cf9e;
  font-size: 14.5px;
  font-weight: 600;
}

.hca-quiz-top {
  gap: 12px;
  margin-bottom: 18px;
}

.hca-test-card {
  padding: 28px 26px;
}

.hca-quiz-question {
  margin: 0 0 22px;
  color: var(--hca-title);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.25;
  text-wrap: pretty;
}

.hca-answer-list {
  display: grid;
  gap: 11px;
}

.hca-answer {
  gap: 13px;
  width: 100%;
  min-height: 60px;
  padding: 15px 16px;
  border: 2px solid #eee4cc;
  border-radius: 14px;
  background: var(--hca-soft);
  color: var(--hca-title);
  text-align: left;
  font-size: 15.5px;
  font-weight: 700;
}

.hca-answer.is-selected {
  border-color: var(--hca-pink);
  background: #fdecee;
}

.hca-answer-letter {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: #f1e8d2;
  color: #a08a4e;
  font-size: 14px;
  font-weight: 900;
}

.hca-answer.is-selected .hca-answer-letter {
  background: var(--hca-pink);
  color: #fff;
}

.hca-result-card {
  width: min(560px, 100%);
  margin: 40px auto 0;
  padding: 38px 30px;
  text-align: center;
}

.hca-result-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #eaf7ec;
  color: #2e8b57;
  font-size: 42px;
  font-weight: 900;
}

.hca-result-score {
  margin: 16px 0 24px;
  color: #2e8b57;
  font-size: 44px;
  font-weight: 900;
}

@keyframes hca-pop {
  0% { transform: scale(0.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes hca-rise {
  0% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1040px) {
  .hca-auth {
    grid-template-columns: 1fr;
    width: min(100% - 36px, 760px);
    padding: 18px 0 44px;
    row-gap: 28px;
  }

  .hca-auth-header,
  .hca-auth-visual,
  .hca-auth-copy,
  .hca-auth-panel {
    grid-column: 1;
  }

  .hca-auth-visual {
    grid-row: auto;
    width: min(100%, 640px);
    margin: 0 auto;
  }

  .hca-auth-copy,
  .hca-auth-panel {
    width: min(100%, 520px);
    max-width: none;
    margin: 0 auto;
  }

  .hca-auth-copy {
    text-align: center;
  }

  .hca-hero-title,
  .hca-hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hca-join-note {
    margin-left: auto;
    margin-right: auto;
  }

  .hca-chips {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .hca-wrap,
  .hca-auth {
    width: min(100% - 28px, 1080px);
  }

  .hca-field-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hca-auth {
    min-height: auto;
    padding: 14px 0 40px;
    row-gap: 22px;
  }

  .hca-auth-header {
    min-height: 56px;
    gap: 10px;
    padding-bottom: 12px;
    font-size: 22px;
  }

  .hca-teacher-avatar {
    width: 50px;
    height: 50px;
  }

  .hca-logo {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .hca-hero-title {
    max-width: 340px;
    margin-bottom: 14px;
    font-size: 38px;
    line-height: 1.08;
  }

  .hca-hero-subtitle {
    margin-bottom: 22px;
    font-size: 22px;
  }

  .hca-hero-cta {
    min-width: 0;
    width: min(100%, 300px);
    min-height: 60px;
    font-size: 22px;
  }

  .hca-join-note {
    margin-bottom: 16px;
    font-size: 18px;
  }

  .hca-hero-text {
    max-width: 360px;
    font-size: 16px;
  }

  .hca-logo-showcase::before,
  .hca-logo-showcase::after {
    border-radius: 54px;
  }

  .hca-auth-panel {
    padding: 24px 20px;
  }

  .hca-header-inner {
    gap: 8px;
  }

  .hca-progress {
    display: none;
  }

  .hca-brand-title {
    font-size: 16px;
  }

  .hca-question-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hca-pill {
    margin-left: 0;
    margin-top: 8px;
  }

  .hca-path-row {
    grid-template-columns: 42px 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hca-course-root *,
  .hca-course-root *::before,
  .hca-course-root *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
