.them {
    width: 100%;
    color: black;
    font-size: 20px;
    font-weight: bold;
}
.onethem {
    text-align: left;
}

.onethem a {
    color: #0d2d7b;
    font-size: 18px !important;
    font-weight: 600;
    padding: 0px;
    line-height: 20px;
}
.onethem {
    border-left: solid 3px #6ca0bf;
    margin-bottom: 10px;
	padding-left: 5px;
}

.onethem:hover {
    background-color: #f1f1f4;
}
.onethem:hover a{
     color: black;
}



.dircont {
    text-align: left;
    font-size: 15px;
    line-height: 20px;
    color: black;
    font-family: roboto;
    font-weight: 400;
	white-space: nowrap;
}

.form-check {
    background-color: #f7f7f7;
    margin: 4px;
    padding: 8px 15px;
    text-align: left;
    border-radius: 15px;
	overflow: hidden;
width: 100%;
position: relative;
white-space: nowrap;
}

.form-check-input {
    position: absolute;
    margin-top: 2px;
    margin-left: 0px;
    margin-right: 5px;
}
.form-check-label {
    margin-left: 25px;
}

.form-check-input {
    position: absolute;
    margin-top: 0px;
    margin-left: 0px !important;
}

.form-check-input[type="checkbox"] {
    border-radius: 0px !important;
    height: 20px;
    width: 20px;
}


.rd-navbar-static.rd-navbar--is-stuck, .rd-navbar-static.rd-navbar--is-clone {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    z-index: 1080;
    background: #5e58f8;
    display: none;
}
.rd-navbar-absolute {
    position: relative;
  
}

.form-check::after {
    background: linear-gradient(to left, rgb(247, 247, 247), rgba(0, 0, 0, 0));
    position: absolute;
    right: 0px;
    height: 20px;
    width: 40px;
    top: 8px;
    display: block;
    content: "";
}



.form-check-label {
    width: 100%;
    height: 100%;
	  cursor: pointer;
}

.trening_section {
  margin-bottom: 100px;
}


	#headslide {
  background-color: #fff;
  padding: 20px;
  margin-top: 50px;

  opacity: 92%;

}
#cname {
  font-size: 35px;
  line-height: 1;
  font-weight: bold;
}

#clabel{
	position: absolute;
top: -40px;
height: 30px;
width: 200px;
background: #3d4d58;
color: white;
left: 0;
padding: 5px;
font-size: 20px;
line-height: 1;
text-align: center;
}

#cdate {
  margin-top: 20px;
  font-size: 30px;
}

#headslide .arrow_button {
  margin-top: 30px;
  font-size: 20px;
}

.trening_section input[type="checkbox"], input[type="radio"] {
  display: block;
}


.trening_section a {
   text-decoration: none !important;
  color: black;

}

.trening_section .format {
  color: #4267b2;
}

.trening_section .title {
  font-size: 18px;
  line-height: 25px;
margin-bottom: 0px;
  font-weight: bold;
  white-space: normal;
}

.trening_section .speaker {
  font-size: 14px;
  line-height: 20px;
  color: #3D4D58;
}

.trening_section .content {
  padding: 0 13px 39px;
}




.img {
  position: relative;
  width: 250px;
  height: 250px;
  border: solid 2px #f3f3f3;
}

.img img {
  position: absolute;
  max-width: 250px;
}

.c0 {
max-height: 40px;
  z-index: 15;
  top: 0;
  left: 0;
  opacity: 0.9;
  filter: brightness(0.6);
}

.c1 {
  width: 80%;
  z-index: 5;
  top: 45px;
  left: 10%;
  filter: contrast(1.1);
  object-fit: cover;
  max-height: 125px;
}


.c3 {
  width: 74px;
  height: 74px;
  opacity: 0.9;
  margin-left: 10px;
}

.speakerCont {
  position: relative;
}
.speakerCont span {
  line-height: 120px;
  color: #646464;
}

#treningslist .speaker {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 9;
  background-color: white;
  padding: 10px;
 width: 174px;
  height: 74px;
}

#treningslist .speaker span {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 174px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#treningslist .content {
  border-radius: 8px;
  box-shadow: 1px 0 6px 0 #0003;
  margin-bottom: 25px;
  padding: 10px;
  height: calc(100% - 25px);
}
#treningslist  .speakerCont span {
  width: calc(100% - 90px);
}

.title_border {
  font-size: 30px;
  color: black;
}

input {

  -webkit-appearance: auto !important;

}



@media (max-width: 766px) {
	#catalog .col-12 {
  padding-left: 0px;
  padding-right: 0px;
}

h1 {
  font-size: 18px;
}
}

#add_more {
  white-space: normal;
}

.form-check a {
  font-weight: bold;
  width: 100%;
  display: inline-block;
  line-height: 1;
  margin: 0px !important;
  padding: 10px;
}

.form-check:hover {
  background-color: #16bd7e;
}

.form-check:hover::after {
  background: linear-gradient(to left, #16bd7e, #16bd7e);
}

.form-check:hover a {
  color: white;
}

.form-check {
  padding: 2px 10px !important;
}
.font14{

font-size: 14px;
}

.trening_section a {
      position: relative;
}
.isnewtrening {
    position: absolute;
    right: 30px;
    bottom: 30px;
    font-size: 14px;
    color: #ff4747;
    font-weight: bold;
}
#treningslist .content:hover > .isnewtrening {
    color: #fff;
}
/* «Вже пройдено»: полупрозрачный баннер поверх карточки пройденного курса
   (логика: certs status=1 у залогиненного, см. tgMarkPassed в trenings_lib) */
.passedover {
  position: absolute;
  top: 0;
  bottom: 25px; /* нижний отступ карточки (#treningslist .content margin-bottom) */
  left: 15px;   /* боковые паддинги bootstrap-колонки */
  right: 15px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  z-index: 19;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* карточка остаётся кликабельной */
}
.passedover span {
  background: rgba(22, 189, 126, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 7px 20px;
  border-radius: 20px;
  white-space: nowrap;
}
@media (max-width: 766px) {
  .passedover { left: 0; right: 0; } /* на мобильном у колонок нет паддингов */
}

/* маркетинговый рейтинг в карточке: «4,8 ★★★★★ — 131 відгук» */
.ratingline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 2px 0;
  font-size: 14px;
  line-height: 20px;
}
.ratingline .rnum { color: #212121; }
.ratingline .rstars {
  position: relative;
  display: inline-block;
  color: #d9d9d9;
  letter-spacing: 2px;
  line-height: 1;
}
.ratingline .rfill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #f5a623;
  letter-spacing: 2px;
}
.ratingline .rcnt { color: #838383; font-size: 13px; }

/* на hover карточки (фон задаёт сайт: --card-hover-* из sites/<KEY>/config.php через inheader.html) подписи рейтинга
   как текст названия; золотые звёзды остаются, серая подложка - полупрозрачная белая */
#treningslist .content:hover .ratingline .rnum,
#treningslist .content:hover .ratingline .rcnt {
  color: var(--card-hover-text, #fff);
}
#treningslist .content:hover .ratingline .rstars {
  color: var(--card-hover-stars, rgba(255, 255, 255, 0.45));
}

/* --- редизайн карточки (стандарт маркетплейса): атрибуты серым, цена жирно,
   организатор служебным серым, «Новинка» - янтарная пилюля --- */
.cardattrs {
  font-size: 13px;
  color: #838383;
  margin: 2px 0 0 0;
}
.cardprice {
  /* цена одинакова на всех карточках - не акцентируем (решение владельца);
     скидочный вид (.newprice красным) остаётся заметным */
  font-size: 14px;
  font-weight: 600;
  color: #212121;
  margin: 6px 0 2px 0;
}
.cardorg {
  font-size: 13px;
  color: #838383;
}
/* пилюля вместо красного КАПСА: зелёная, на верхнем ребре карточки
   (не пересекается с длинными названиями; белая окантовка отделяет от фона) */
.isnewtrening {
  top: -7px;
  right: 20px;
  bottom: auto;
  background: #16bd7e;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.04em;
  line-height: 1.3;
  padding: 1px 8px;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* на hover карточки (синий фон) тексты белеют, пилюля остаётся читабельной */
#treningslist .content:hover .cardattrs,
#treningslist .content:hover .cardorg {
  color: var(--card-hover-muted, rgba(255, 255, 255, 0.85));
}
#treningslist .content:hover .cardprice {
  color: var(--card-hover-text, #fff);
}
#treningslist .content:hover > .isnewtrening {
  color: #fff;
}

/* цена со скидкой в карточке: старая серым зачёркнута, новая красным (паттерн транкеты) */
.cardprice s.oldprice {
  color: #949494;
  font-weight: normal;
}
.cardprice .newprice {
  color: #d91b1b;
  font-weight: bold;
}
#treningslist .content:hover .cardprice s.oldprice {
  color: var(--card-hover-old, rgba(255, 255, 255, 0.6));
}
#treningslist .content:hover .cardprice .newprice {
  color: var(--card-hover-new, #ffd7a1);
}

/* у карточек с пилюлей «Новинка» название отступает от верхнего ребра,
   чтобы первая строка не уходила под пилюлю */
.content.hasnew .title {
  padding-top: 7px;
}

/* «Збірний курс» - плашка на картці каталогу */
.unionbadge { display: inline-block; margin: 4px 0 6px; padding: 2px 10px; border-radius: 12px; background: #eef3ff; color: #2c4fd8; font-size: 12px; font-weight: 600; line-height: 18px; }

/* картка каталогу для підписника: стара ціна закреслена сірим, коротка назва тарифу зеленим */
.cardprice-sub s.oldprice { text-decoration: line-through; color: #888; font-weight: normal; }
.cardprice .subtag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #e1f5ee; color: #0f6e56; font-size: 12px; font-weight: 600; vertical-align: 1px; }

/* довгі слова без пробілів (напр. «Інформатика+Математика+Англійська») переносяться всередині слова,
   а не вилазять за межі картки; стосується назви і всіх підписів картки */
#treningslist .content,
#treningslist .content .title {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
