/*
 * Blocks of the English training programme page
 * (/teenused/teacher-training-outcome-based-vet-education/).
 *
 *   .yb-box          pale rounded box with a heading (__title, --center)
 *   .yb-check-list   list with round blue check marks
 *   .yb-trainers     heading, two trainer cards, a pale details box
 *   .yb-course       course facts, schedule, included, yellow note
 */
.yb-box {
  margin-block: 40px;
  padding: 40px;
  border-radius: var(--yb-radius-card);
  background: var(--yb-color-surface);
}

.yb-box.yb-container {
  max-width: var(--yb-width-content);
}

.yb-box__title {
  margin: 0 0 30px;
  color: var(--yb-color-primary-kit);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

h2.yb-box__title:first-child:not(.yb-box__title--center) {
  color: var(--yb-color-primary);
  font-size: var(--yb-size-h2);
}

.yb-box__title--center {
  margin-bottom: 20px;
  text-align: center;
}

.yb-box > p {
  margin: 20px 0 0;
  line-height: 1.6;
}

.yb-box b,
.yb-box > p strong {
  color: var(--yb-color-black);
  font-weight: 700;
}

.yb-box a {
  color: var(--yb-color-primary-kit);
  font-weight: 600;
}

.yb-check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-check-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 30px;
  line-height: 1.8;
}

.yb-check-list li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--yb-color-primary-kit) url("../../icons/check-yellow.svg") center / 12px no-repeat;
}

/* Trainers */
.yb-trainers {
  padding-block: 60px;
}

.yb-trainers__title {
  margin: 0 0 50px;
  color: var(--yb-color-primary-kit);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0;
}

.yb-trainers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 0 20px 50px;
  padding: 0;
  list-style: none;
}

.yb-trainer {
  padding: 30px;
  border-radius: 12px;
  background: var(--yb-color-white);
  box-shadow: 0 4px 20px rgba(0, 128, 200, 0.1);
  text-align: center;
}

.yb-trainer img {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border: 4px solid var(--yb-color-accent);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.yb-trainer h3 {
  margin: 0 0 15px;
  color: var(--yb-color-text);
  font-family: var(--yb-font-body);
  font-size: 24px;
  font-weight: 700;
}

.yb-trainer p {
  margin: 0;
  color: #7e7e7e;
  line-height: 1.6;
}

.yb-trainers__details {
  margin-inline: 20px;
  padding: 40px;
  border-radius: 12px;
  background: var(--yb-color-surface);
  line-height: 1.8;
}

.yb-trainers__details p {
  margin: 0 0 20px;
}

.yb-trainers__details p:last-child {
  margin-bottom: 0;
}

.yb-trainers__details strong {
  color: var(--yb-color-primary-kit);
  font-weight: 600;
}

.yb-trainers__details .yb-check-list {
  margin-block: 20px;
}

/* Course layout */
.yb-band-fade:has(> .yb-course) {
  margin-inline: var(--yb-edge, 0);
  border-radius: var(--yb-radius-panel) var(--yb-radius-panel) 0 0;
}

.yb-course {
  margin-top: 0;
}

.yb-course__intro {
  max-width: 760px;
  margin: 0 auto 30px !important;
  line-height: 1.7 !important;
  text-align: center;
}

.yb-course__facts {
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 10px;
  margin: 0;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--yb-color-border);
  line-height: 1.6;
}

.yb-course__facts dt {
  font-weight: 700;
}

.yb-course__facts dd {
  margin: 0;
}

.yb-course__part {
  margin-top: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--yb-color-border);
  line-height: 1.7;
}

.yb-course__part h3 {
  margin: 0 0 15px;
  color: var(--yb-color-primary-kit);
  font-family: var(--yb-font-body);
  font-size: 18px;
  font-weight: 700;
}

.yb-course__part p {
  margin: 0;
}

.yb-course__part strong {
  color: var(--yb-color-primary-kit);
}

.yb-course__part ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.yb-course__part li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 30px;
  line-height: 1.8;
}

.yb-course__part li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yb-color-primary-kit);
}

.yb-course__note {
  margin-top: 25px;
  padding: 20px;
  border-radius: 8px;
  background: var(--yb-color-accent);
  line-height: 1.6;
  text-align: center;
}

.yb-course__note p {
  margin: 0 0 20px;
}

.yb-course__note strong {
  display: block;
  margin-bottom: 15px;
  font-weight: 700;
}

.yb-box a.yb-course__button {
  display: inline-block;
  padding: 16px 32px;
  border-radius: var(--yb-radius-pill);
  background: var(--yb-color-primary-kit);
  color: var(--yb-color-white);
  font-weight: 600;
  transition: background-color 0.2s;
}

.yb-box a.yb-course__button:hover,
.yb-box a.yb-course__button:focus-visible {
  background: var(--yb-color-light, #28ade2);
  color: var(--yb-color-white);
}

@media (max-width: 767px) {
  .yb-box {
    padding: 25px;
  }

  .yb-box__title,
  h2.yb-box__title:first-child:not(.yb-box__title--center) {
    font-size: 28px;
  }

  .yb-trainers__title {
    margin-bottom: 30px;
    font-size: 32px;
  }

  .yb-trainers__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-inline: 0;
  }

  .yb-trainers__details {
    margin-inline: 0;
    padding: 25px;
  }

  .yb-course__facts {
    grid-template-columns: 100px 1fr;
  }
}
