.course-page {
  max-width: 920px;
  margin: 0 auto;
}

#body-wrapper {
  color: #374151;
  font-size: 1.08rem;
  line-height: 1.65;
}

#body-wrapper h1 {
  color: #1f2937;
  font-size: 2.4rem;
  line-height: 1.16;
  margin-top: 0;
}

#grav-login {
  max-width: 620px;
  margin: 0 auto;
}

#grav-login h1 {
  font-size: 2rem;
}

#grav-login .form-input,
#grav-login input {
  min-height: 3rem;
  font-size: 1.05rem;
}

#grav-login .btn,
#grav-login button {
  min-height: 2.85rem;
  padding: 0.55rem 1rem;
  font-size: 1rem;
}

.button_container {
  width: 3.2rem;
  height: 3.2rem;
}

.button_container span {
  height: 0.32rem;
}

.course-index-header h1 {
  color: #1f2937;
  font-size: 2.5rem;
  line-height: 1.12;
  margin-bottom: 0.45rem;
}

.course-index-header,
.lesson-content {
  color: #374151;
  font-size: 1.18rem;
  line-height: 1.72;
}

.course-index-header p,
.lesson-content p {
  margin: 0 0 1.1rem;
}

.lesson-content iframe,
.lesson-content video,
.lesson-content embed {
  max-width: 100%;
}

.lesson-content img {
  height: auto;
  max-width: 100%;
}

.course-lesson-list {
  margin-top: 2.25rem;
}

.course-lesson-list > h2 {
  margin: 0 0 1.5rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid #006b35;
  color: #006b35;
  font-size: 1.15rem;
  font-weight: 500;
}

.course-chapters {
  display: grid;
  gap: 1rem;
}

.course-chapter {
  padding: 1.15rem 1.5rem;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
}

.course-chapter h3 {
  margin: 0 0 1rem;
  color: #006b35;
  font-size: 1rem;
  font-weight: 700;
}

.course-lessons {
  list-style: none;
  margin: 0;
  padding: 0;
}

.course-lesson + .course-lesson {
  border-top: 1px solid #edf0f3;
}

.course-lesson-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.45rem;
  color: #111827;
  text-decoration: none;
}

.course-lesson-link:hover,
.course-lesson-link:focus {
  color: #006b35;
  text-decoration: none;
}

.course-lesson-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.45rem;
  border-radius: 4px;
  background: #006b35;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.course-lesson-title {
  line-height: 1.4;
}

.course-start {
  margin: 2.75rem 0 0;
  text-align: center;
}

.course-start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0 2rem;
  border-radius: 7px;
  background: #2876e6;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.course-start-button:hover,
.course-start-button:focus {
  background: #1f63c8;
  color: #fff;
  text-decoration: none;
}

.lesson-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  color: #6b7280;
  font-size: 0.82rem;
}

.lesson-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
}

.course-sidebar {
  padding: 1.25rem 1rem 1.25rem 0;
  border-right: 1px solid #e4e7ec;
}

.course-sidebar-index {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: #006b35;
  font-weight: 700;
  text-decoration: none;
}

.course-sidebar-index:hover,
.course-sidebar-index:focus {
  color: #004f28;
  text-decoration: none;
}

.course-sidebar-heading {
  margin: 0 0 0.7rem;
  color: #8a8f98;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
}

.course-sidebar-nav {
  display: grid;
  gap: 0.35rem;
}

.course-sidebar-link {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  color: #1f2937;
  line-height: 1.45;
  text-decoration: none;
}

.course-sidebar-link:hover,
.course-sidebar-link:focus {
  background: #f0faf4;
  color: #006b35;
  text-decoration: none;
}

.course-sidebar-link.is-active {
  background: #17733e;
  color: #fff;
  font-weight: 700;
}

.lesson-main {
  min-width: 0;
}

.lesson-breadcrumbs a {
  color: #006b35;
  text-decoration: none;
}

.lesson-title {
  color: #1f2937;
  font-size: 2.25rem;
  line-height: 1.16;
  margin-top: 0;
  margin-bottom: 1.35rem;
}

.lesson-content {
  margin-top: 1.8rem;
}

.lesson-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.4rem;
  margin-top: 4rem;
  padding: 2rem;
  border-top: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f8fafc;
  align-items: center;
}

.lesson-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.2rem;
  border: 2px solid #006b35;
  border-radius: 7px;
  background: #fff;
  color: #006b35;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.lesson-nav-button:hover,
.lesson-nav-button:focus {
  background: #006b35;
  color: #fff;
  text-decoration: none;
}

.lesson-nav-button.lesson-nav-disabled:hover,
.lesson-nav-button.lesson-nav-disabled:focus {
  background: #fff;
  color: #98a2b3;
}

.lesson-nav-button:active {
  transform: translateY(1px);
}

.mobile-container .overlay {
  background: rgba(12, 18, 28, 0.96);
}

.mobile-container .overlay .mobile-logo {
  padding: 2rem 2rem 1.25rem;
}

.overlay-menu {
  margin: 0 auto;
  max-width: 520px;
  padding: 0 1.5rem 2rem;
}

.overlay-menu .tree,
.overlay-menu .tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.overlay-menu .tree ul {
  display: block !important;
  margin: 0.2rem 0 0.65rem 1rem;
}

.overlay-menu .tree li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.overlay-menu .tree li li {
  border-bottom: 0;
}

.overlay-menu .tree a {
  display: inline-flex;
  align-items: center;
  min-height: 3.35rem;
  padding: 0.55rem 0;
  color: #dbeafe;
  font-size: 1.28rem;
  line-height: 1.25;
  text-decoration: none;
}

.overlay-menu .tree li li a {
  min-height: 2.8rem;
  color: #f8fafc;
  font-size: 1.08rem;
}

.overlay-menu .tree a:hover,
.overlay-menu .tree a:focus {
  color: #006b35;
  text-decoration: none;
}

.overlay-menu .toggler,
.overlay-menu .tree-toggler {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 3rem;
  margin-right: 0.45rem;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.activation-page {
  max-width: 720px;
  margin: 0 auto;
  color: #374151;
  font-size: 1.12rem;
  line-height: 1.65;
}

.activation-header {
  margin-bottom: 1.75rem;
}

.activation-eyebrow {
  margin: 0 0 0.3rem;
  color: #006b35;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.activation-header h1 {
  margin: 0 0 0.8rem;
  color: #1f2937;
  font-size: 2.25rem;
  line-height: 1.15;
}

.activation-errors {
  margin: 0 0 1.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #991b1b;
}

.activation-errors p {
  margin: 0;
}

.activation-errors p + p {
  margin-top: 0.35rem;
}

.activation-form {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.activation-form label {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 700;
}

.activation-form label em {
  color: #6b7280;
  font-style: normal;
  font-weight: 500;
}

.activation-form input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cfd6df;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-size: 1.05rem;
}

.activation-form input:focus {
  border-color: #006b35;
  box-shadow: 0 0 0 3px rgba(0, 107, 53, 0.14);
  outline: none;
}

.activation-form button {
  min-height: 3.35rem;
  margin-top: 0.3rem;
  border: 0;
  border-radius: 7px;
  background: #006b35;
  color: #fff;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 800;
}

.activation-form button:hover,
.activation-form button:focus {
  background: #00552b;
}

.activation-login-note {
  margin: 1rem 0 0;
  color: #6b7280;
  font-size: 0.98rem;
}

.lesson-nav-index {
  min-width: 5.4rem;
}

.lesson-nav-disabled {
  color: #98a2b3;
  border-color: #d0d5dd;
}

@media (max-width: 720px) {
  #body-wrapper.section {
    padding-top: 1.25rem;
  }

  .course-index-header h1,
  .lesson-title {
    font-size: 2rem;
    line-height: 1.15;
  }

  .course-index-header,
  .lesson-content {
    font-size: 1.22rem;
    line-height: 1.65;
  }

  .lesson-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .course-sidebar {
    padding: 0 0 1.25rem;
    border-right: 0;
    border-bottom: 1px solid #e4e7ec;
  }

  .course-chapter {
    padding: 1rem;
  }

  .course-lesson-link {
    align-items: flex-start;
    padding: 0.55rem 0;
  }

  .lesson-nav {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 3.25rem;
    padding: 1.15rem;
  }

  .lesson-nav-button {
    justify-content: center;
    min-height: 3.55rem;
    padding: 0.9rem 1rem;
    font-size: 1.04rem;
  }

  .lesson-nav-index {
    min-width: 0;
  }

  .course-sidebar-link {
    padding: 0.7rem 0.8rem;
    font-size: 1rem;
  }

  .course-sidebar-index {
    font-size: 1.02rem;
  }

  .activation-page {
    font-size: 1.13rem;
  }

  .activation-header h1 {
    font-size: 1.9rem;
  }

  .activation-form {
    padding: 1rem;
  }

  .activation-form input,
  .activation-form button {
    font-size: 1.08rem;
  }
}
