.course-section {
  min-width: 0;
  margin-block: clamp(3.5rem, 7vw, 6rem);
}
.course-heading {
  max-width: 48rem;
  margin-bottom: 1.65rem;
}
.course-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.55rem, 3vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.45;
  text-wrap: balance;
}
.course-heading h2 span {
  color: #2563eb;
}
.course-heading p, .course-resources figcaption p, .course-faq details p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.8;
}
.course-heading p {
  margin: .6rem 0 0;
}
.course-package {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: start;
}
.course-values {
  width: 100%;
  padding: .9rem clamp(.85rem, 2vw, 1.6rem);
  border: 1px solid #d7e2ef;
  border-radius: 1rem;
  border-spacing: 0;
  background: #fff;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}
.course-values th, .course-values td {
  padding: .33rem 0;
}
.course-values thead th {
  padding-bottom: .6rem;
  color: #475569;
  font-size: .9rem;
}
.course-values tbody th {
  font-weight: 500;
}
.course-values tbody tr:nth-child(n+5) th {
  color: #1d4ed8;
}
.course-values tr > :last-child {
  padding-left: .7rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.course-values tbody tr:last-child > * {
  padding-bottom: .9rem;
}
.course-values tfoot tr > * {
  border-top: 1px solid #d7e2ef;
  padding-top: .75rem;
  font-size: 1.125rem;
  font-weight: 800;
}
.course-arrangements {
  display: grid;
  gap: .85rem;
}
.course-arrangements > * {
  margin: 0;
  padding: 1.25rem;
  border-radius: 1rem;
  background: #eff6ff;
}
.course-arrangements h3 {
  margin: 0;
  font-size: 1.15rem;
}
.course-arrangements p {
  margin: .55rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
}
.course-hours {
  margin: .75rem 0;
}
.course-hours > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1rem;
  margin: .4rem 0;
}
.course-hours dt {
  min-width: 4.4rem;
}
.course-hours dd {
  margin: 0;
  font-weight: 700;
}
.course-arrangements .course-guarantee {
  background: #0f172a;
  color: #fff;
}
.course-guarantee h3 {
  color: #bfdbfe;
}
.course-resources, .course-demos {
  display: grid;
  gap: clamp(.8rem, 1.75vw, 1.5rem);
}
.course-resources {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.course-section figure {
  min-width: 0;
  margin: 0;
}
.course-resources img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: .75rem;
}
.course-resources figcaption h3 {
  margin: .75rem 0 .25rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.course-resources figcaption p {
  margin: 0;
}
.course-demos {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.course-demos video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 37 / 71;
  object-fit: contain;
  border-radius: .85rem;
  background: #f4f5ef;
}
.course-demos video:fullscreen {
  background: #0f172a;
  border-radius: 0;
}
.course-demos figcaption {
  margin-top: .625rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}
.course-scroll-hint {
  display: none;
}
.course-faq {
  max-width: 54rem;
  margin-inline: auto;
}
.course-faq details {
  border-bottom: 1px solid #d7e2ef;
}
.course-faq details:first-of-type {
  border-top: 1px solid #d7e2ef;
}
.course-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
}
.course-faq summary::-webkit-details-marker {
  display: none;
}
.course-faq summary::after {
  content: "";
  flex: none;
  width: .5rem;
  height: .5rem;
  margin-right: .3rem;
  border: solid #2563eb;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.course-faq details[open] summary::after {
  transform: rotate(225deg);
}
.course-faq details p {
  margin: 0;
  padding: 0 1.5rem 1rem 0;
}
.course-deposit-link {
  display: inline-flex;
  justify-content: center;
  margin-top: 1.6rem;
  padding: .8rem 1.4rem;
  background: #2563eb;
  border-radius: .75rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.course-deposit-link:hover {
  background: #1d4ed8;
}
.course-section :focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}
@media (max-width: 58rem) {
  .course-demos {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(10rem, 40vw, 13rem);
    overflow-x: auto;
    padding-bottom: .9rem;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-color: #94b5e6 #eff5ff;
  }
  .course-demos figure {
    scroll-snap-align: start;
  }
  .course-scroll-hint {
    display: block;
    margin: .45rem 0 0;
    color: #475569;
    font-size: .875rem;
  }
}
@media (max-width: 43rem) {
  .course-package {
    grid-template-columns: minmax(0, 1fr);
    gap: .85rem;
  }
  .course-resources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.5rem;
  }
  .course-heading {
    margin-bottom: 1.2rem;
  }
}
