/* Course show page — /course/{category}/{course}/.
   Geometry mirrors the legacy eshko.css rules: the content text wraps
   around the floated cover (left) and actions box (right), so this stays a
   float layout on purpose. */

.course-banner {
  clear: both;
  margin-top: 15px;
}

.course-main {
  clear: both;
  position: relative;
  float: left;
  width: 100%;
  margin-top: 15px;
}

.course-main p {
  margin-top: 15px;
}

/* Bulleted lists inside the raw-HTML blocks only — scoped to __content so
   the rule cannot leak into the .course-links buttons (the legacy
   equivalent, #course-description ul, was overridden for the buttons by a
   later ul#course-files rule; caught on dev as narrowed buttons). */
.course-main__content ul,
.course-extras ul {
  list-style: circle;
  margin-left: 20px;
  margin-top: 15px;
}

.course-main__cover {
  margin: 20px 20px 0 0;
  float: left;
}

.course-main__side {
  float: right;
  width: 30%;
  margin-left: 1em;
}

/* Yellow «Записаться на курс» block (legacy #subscribe). */
.course-subscribe {
  color: #fff;
  display: block;
  margin-top: 19px;
  padding: 0.3em 0;
  text-align: center;
  border-radius: 0.2em;
  background: linear-gradient(to bottom, #ffe000 0%, #fbb41a 100%);
  box-shadow: 0 1px 2px #000;
}

.course-subscribe a {
  text-decoration: none;
  text-align: center;
  font-size: 16px;
  display: block;
  color: #333;
}

/* Blue action buttons (legacy #course-files li), red for demo/buy. */
.course-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.course-links__item {
  color: #fff;
  display: block;
  margin-top: 19px;
  padding: 0.3em 0;
  text-align: center;
  border-radius: 0.2em;
  background: linear-gradient(to bottom, #028bc1 0%, #1a558b 100%);
  box-shadow: 0 1px 2px #000;
}

.course-links__item--demo {
  background: linear-gradient(to bottom, #ef1c24 0%, #be241c 100%);
}

.course-links__item a,
.course-links__item span {
  color: #fff;
  display: block;
  font-size: 16px;
  text-decoration: none;
}

.course-links__item span {
  cursor: pointer;
}

.course-structure {
  clear: none;
  position: relative;
  float: left;
  margin-top: 30px;
  width: 100%;
}

.course-structure__heading,
.course-methods h3,
.course-extras h3 {
  font-size: 18px;
}

.course-structure p,
.course-methods p,
.course-extras p,
.course-extras h3 {
  margin-top: 15px;
}

/* Green discount/prices box (legacy #course-discount). */
.course-prices {
  position: relative;
  float: right;
  width: 46%;
  margin-left: 1em;
  background: #060;
  color: #fff;
  padding-bottom: 8px;
}

.course-prices p {
  margin: 15px 10px 0;
}

.course-prices__title {
  margin-top: 5px !important;
  font-size: 18px;
}

.course-prices__strike {
  text-decoration: line-through;
}

.course-methods {
  position: relative;
  float: left;
  width: 100%;
  margin-top: 20px;
}

.course-extras {
  position: relative;
  float: left;
  margin-top: 15px;
  width: 54%;
}

.course-extras__block {
  width: 90%;
}

.course-extras__block + .course-extras__block {
  margin-top: 15px;
}

.course-related {
  clear: both;
}

.course-related__list {
  list-style: none;
  margin: 25px 0 0;
  padding: 0;
}

.course-related__item {
  float: left;
  height: 50px;
  margin: 5px 5px 0 0;
  width: 230px;
}

.course-related__item img {
  float: left;
  margin-right: 5px;
}

@media (max-width: 760px) {
  /* Un-floated boxes must also clear: a block box after a float runs
     underneath it, so the floated cover sat on top of the actions box
     and swallowed taps on «Записаться на курс». The cover stacks too
     (legacy adaptive.css #course-cover did the same). */
  .course-main__cover {
    float: none;
    margin: 10px 0 0;
    text-align: center;
  }

  .course-main__side {
    float: none;
    clear: both;
    width: 100%;
    margin-left: 0;
  }

  .course-prices,
  .course-extras {
    float: none;
    width: 100%;
    margin-left: 0;
  }

  /* Un-floated after floated siblings, the positioned box would start at
     the top of .course-main and sit over it, eating taps on the
     "Записаться на курс" button. */
  .course-extras {
    clear: both;
  }
}
