/* --------------------- */
/* КАРТОЧКА - ИНФОРМАЦИЯ */
/* --------------------- */

/* Добавить в начало ярлыка:

info-card-
info-border-card-

*/

/* ----------------- */
/* БЫСТРЫЕ НАСТРОЙКИ */
/* ----------------- */

:root {
	
	/* 1. Иконка над заголовком */
	--url-info-card: url("icons/warning-2.png");
	
	/* 2. Закругление карточки */
	--radius-card-info: 25px;
	
	/* 3. Основной фон карточки */
	--color-bg-card-info: #ffffff;
	
	/* 4. Цвет заголовка */
	--color-top-text-info: #ee2e2e;
	
	/* 5. Цвет основного текста */
	--color-main-text-info: #000;
	
	/* 6. Цвет фона индикаторов */
	--color-bg-indicator-info: #ffffff;
	
	/* 7. Цвет текста индикаторов */
	--color-indicator-info: #000;
	
	/* 8. Толшина рамки карточки */
    --width-border-info-border-card: 20px;
	
	/* 9. Цвет рамки карточки */
    --color-border-info-border-card: #fd4545;

}

/* 1. Расскомментировать 2 стиля ниже, чтобы убрать ИКОНКУ над ЗАГОЛОВКОМ */

.folders-row .col-xs-12 > a[href*="wpm-category/info-card-"] .label:before,
.folders-row .col-xs-12 > a[href*="wpm-category/info-border-card-"] .label:before {
	/* display: none!important; */
}

.folders-row .col-xs-12 > a[href*="wpm-category/info-card-"] .label,
.folders-row .col-xs-12 > a[href*="wpm-category/info-border-card-"] .label {
	/* top: 72px!important; */
}

/* 2. Раскомментировать, чтобы отключить ТЕНЬ при наведении на карточку */

.folders-row .col-lg-3 > a[href*="wpm-category/info-card-"][class*="folder-wrap"]:hover,
.folders-row .col-lg-3 > a[href*="wpm-category/info-border-card-"][class*="folder-wrap"]:hover {
	/* filter: none; */
}

/* --------------------- */
/* 1. БЛОК ВСЕЙ КАРТОЧКИ */



/* ------------------------- */
/* 2. БЛОК - ССЫЛКА КАРТОЧКИ */

/* Убираем рамку - ТЕНЬ вокруг карточки */

.folders-row a[href*="wpm-category/info-card-"][class*="folder-wrap"],
.folders-row a[href*="wpm-category/info-border-card-"][class*="folder-wrap"] {
	border: none;
	box-shadow: none;
}

/* Общие настройки блока карточки */

.folders-row .col-lg-3:has(a[href*="wpm-category/info-card-"][class*="folder-wrap"]),
.folders-row .col-lg-3:has(a[href*="wpm-category/info-border-card-"][class*="folder-wrap"]) {
	display: block!important;
	z-index: 501!important;
	/* 3 карточки в ряду на больших экранах */
    width: calc(100%/3)!important;
}

/* 2 карточки в ряду на средних экранах */

@media (min-width: 768px) and (max-width: 991px) {

.folders-row .col-lg-3:has(a[href*="wpm-category/info-card-"][class*="folder-wrap"]),
.folders-row .col-lg-3:has(a[href*="wpm-category/info-border-card-"][class*="folder-wrap"]) {
	width: calc(100%/2)!important;
}
}

/* 1 карточка в ряду на мобильных */

@media (min-width: 320px) and (max-width: 767px) {

.folders-row .col-lg-3:has(a[href*="wpm-category/info-card-"][class*="folder-wrap"]),
.folders-row .col-lg-3:has(a[href*="wpm-category/info-border-card-"][class*="folder-wrap"]) {
	width: 100%!important;
	/* Корректировка ширины карточки на узких экранах */
	padding-right: 0px;
    padding-left: 0px;
}
}

/* Высота карточки на разных экранах */

@media (min-width: 1400px) {

.folders-row a[href*="wpm-category/info-card-"][class*="folder-wrap"],
.folders-row a[href*="wpm-category/info-border-card-"][class*="folder-wrap"] {
	height: 349px;
}
}

@media (min-width: 1200px) and (max-width: 1399px) {

.folders-row a[href*="wpm-category/info-card-"][class*="folder-wrap"],
.folders-row a[href*="wpm-category/info-border-card-"][class*="folder-wrap"] {
	height: 312px;
}
}

@media (min-width: 992px) and (max-width: 1199px) {

.folders-row a[href*="wpm-category/info-card-"][class*="folder-wrap"],
.folders-row a[href*="wpm-category/info-border-card-"][class*="folder-wrap"] {
	height: 274px;
}
}

@media (min-width: 768px) and (max-width: 991px) {

.folders-row a[href*="wpm-category/info-card-"][class*="folder-wrap"],
.folders-row a[href*="wpm-category/info-border-card-"][class*="folder-wrap"] {
    height: 303px;
}
}

@media (min-width: 460px) and (max-width: 767px) {

.folders-row a[href*="wpm-category/info-card-"][class*="folder-wrap"],
.folders-row a[href*="wpm-category/info-border-card-"][class*="folder-wrap"] {
    height: 299px;
}
}

@media (min-width: 320px) and (max-width: 459px) {

.folders-row a[href*="wpm-category/info-card-"][class*="folder-wrap"],
.folders-row a[href*="wpm-category/info-border-card-"][class*="folder-wrap"] {
	height: 312px;
}
}

/* -------------------- */
/* 3. СТИКЕР - НАЗВАНИЕ */

/* Превращаем СТИКЕР в ЗАГОЛОВОК */

a[href*="wpm-category/info-card-"] .label,
a[href*="wpm-category/info-border-card-"] .label {
	display: block;
    width: 90%!important;
    max-width: none;
	position: inherit;
    background: none!important;
	color: var(--color-top-text-info)!important;
	font-size: 21px;
	font-weight: bold;
	top: 0;
	left: 0;
    right: 0;
	margin: 0 auto;
}

/* ВАРИАНТ С РАМКОЙ */

a[href*="wpm-category/info-border-card-"] .label {

	top: calc(0px + var(--width-border-info-border-card))!important;
}

/* ИКОНКА над Заголовком */

.folders-row .col-xs-12 > a[href*="wpm-category/info-card-"] .label:before,
.folders-row .col-xs-12 > a[href*="wpm-category/info-border-card-"] .label:before {
	display: block;
	content: "";
	/* иконка  */
	background-image: var(--url-info-card);
	background-size: contain;
    background-repeat: no-repeat;
	position: relative;
	top: 7px;
    margin: 0 auto;
}

/* ИКОНКА на разных экранах */

@media (min-width: 1400px) {

.folders-row .col-xs-12 > a[href*="wpm-category/info-card-"] .label:before,
.folders-row .col-xs-12 > a[href*="wpm-category/info-border-card-"] .label:before {
	width: 60px;
    height: 60px;
    margin-bottom: 20px;
    margin-top: 20px;
}
}

@media (min-width: 1200px) and (max-width: 1399px) {

.folders-row .col-xs-12 > a[href*="wpm-category/info-card-"] .label:before,
.folders-row .col-xs-12 > a[href*="wpm-category/info-border-card-"] .label:before {
	width: 50px;
    height: 50px;
    margin-bottom: 16px;
    margin-top: 16px;
}
}

@media (min-width: 992px) and (max-width: 1199px) {

.folders-row .col-xs-12 > a[href*="wpm-category/info-card-"] .label:before,
.folders-row .col-xs-12 > a[href*="wpm-category/info-border-card-"] .label:before {
	width: 50px;
    height: 50px;
	margin-bottom: 15px;
	margin-top: 15px;
}
}

@media (min-width: 768px) and (max-width: 991px) {

.folders-row .col-xs-12 > a[href*="wpm-category/info-card-"] .label:before,
.folders-row .col-xs-12 > a[href*="wpm-category/info-border-card-"] .label:before {
	width: 50px;
    height: 50px;
	margin-bottom: 13px;
	margin-top: 13px;
}
}

@media (min-width: 460px) and (max-width: 767px) {

.folders-row .col-xs-12 > a[href*="wpm-category/info-card-"] .label:before,
.folders-row .col-xs-12 > a[href*="wpm-category/info-border-card-"] .label:before {
	width: 45px;
    height: 45px;
    margin-bottom: 11px;
	margin-top: 11px;
}
}

@media (min-width: 320px) and (max-width: 459px) {

.folders-row .col-xs-12 > a[href*="wpm-category/info-card-"] .label:before,
.folders-row .col-xs-12 > a[href*="wpm-category/info-border-card-"] .label:before {
	width: 50px;
    height: 50px;
    margin-bottom: 16px;
	margin-top: 16px;
}
}

/* --------------------------- */
/* 4. БЛОК СОДЕРЖАНИЯ КАРТОЧКИ */

/* Общие настройки */

a[href*="wpm-category/info-card-"] > .folder-content,
a[href*="wpm-category/info-border-card-"] > .folder-content {
	background-color: var(--color-bg-card-info);
	height: 100%;
	border-radius: var(--radius-card-info);
}

/* ВАРИАНТ С РАМКОЙ */

a[href*="wpm-category/info-border-card-"] > .folder-content {
	border: var(--width-border-info-border-card) solid var(--color-border-info-border-card);
}

/* -------------------- */
/* 5. ОПИСАНИЕ КАРТОЧКИ */

/* Общие настройки */

a[href*="wpm-category/info-card-"] .folder-content .title,
a[href*="wpm-category/info-border-card-"] .folder-content .title {
	position: absolute!important;
	background: none;
	color: var(--color-main-text-info)!important;
    text-align: center;
	min-height: 150px;
	overflow: hidden;
	padding: 12px 28px 12px;
    width: 100%;
}

/* ВАРИАНТ С РАМКОЙ */

a[href*="wpm-category/info-border-card-"] .folder-content .title {
	padding: calc(12px + var(--width-border-info-border-card)*2.3) calc(18px + var(--width-border-info-border-card)/6) 0!important;
}

/* Запрещаем скрывать длинное описание */

a[href*="wpm-category/info-card-"] .folder-content .title,
a[href*="wpm-category/info-border-card-"] .folder-content .title {
	text-wrap: inherit;
	white-space: normal;
}

a[href*="wpm-category/info-card-"] .folder-content .title .js-shave-char,
a[href*="wpm-category/info-border-card-"] .folder-content .title .js-shave-char {
	display: none;
}

a[href*="wpm-category/info-card-"] .folder-content .title .js-shave,
a[href*="wpm-category/info-border-card-"] .folder-content .title .js-shave {
	display: inline-block!important;
    position: relative;
	top: 0px;
	color: var(--color-main-text-info)!important;
}

/* Описание карточки на разных экранах на Страницах и в Активации */

@media (min-width: 1400px) {

a[href*="wpm-category/info-card-"] > .folder-content .title {
	bottom: 65px!important;
}

a[href*="wpm-category/info-border-card-"] > .folder-content .title {
	bottom: 62px!important;
    min-height: 155px;
    height: 155px;
}
}

@media (min-width: 1200px) and (max-width: 1399px) {

a[href*="wpm-category/info-card-"] > .folder-content .title {
	bottom: 50px!important;
}

a[href*="wpm-category/info-border-card-"] > .folder-content .title {
	bottom: 63px!important;
	min-height: unset;
    height: 136px;
}
}

@media (min-width: 992px) and (max-width: 1199px) {

a[href*="wpm-category/info-card-"] > .folder-content .title {
	bottom: 61px!important;
	height: 137px;
    min-height: unset;
	padding: 40px 18px 12px!important;
}

a[href*="wpm-category/info-border-card-"] > .folder-content .title {
	height: 137px;
    bottom: 57px!important;
    min-height: unset;
    padding-top: calc(40px + var(--width-border-info-border-card)*2)!important;
}
}

@media (min-width: 768px) and (max-width: 991px) {

a[href*="wpm-category/info-card-"] > .folder-content .title {
    bottom: 47px!important;
}

a[href*="wpm-category/info-border-card-"] > .folder-content .title {
    bottom: 50px!important;
    height: 156px;
    min-height: 156px;
}
}

@media (min-width: 460px) and (max-width: 767px) {

a[href*="wpm-category/info-card-"] > .folder-content .title {
	bottom: 50px!important;
}

a[href*="wpm-category/info-border-card-"] > .folder-content .title {
	bottom: 63px!important;
	min-height: 136px;
    height: 136px;
}
}

@media (min-width: 320px) and (max-width: 459px) {

a[href*="wpm-category/info-card-"] > .folder-content .title {
	bottom: 45px!important;
}

a[href*="wpm-category/info-border-card-"] > .folder-content .title {
	bottom: 61px!important;
    min-height: 136px;
    height: 136px;
}
}

/* ИКОНКА возле описания */

.folders-row .col-xs-12 > a[href*="wpm-category/info-card-"] > .folder-content .title:before,
.folders-row .col-xs-12 > a[href*="wpm-category/info-border-card-"] > .folder-content .title:before {
	display: none;
}

/* ------------------- */
/* 6. БЛОК ИНДИКАТОРОВ */

.folders-row .col-xs-12 a[href*="wpm-category/info-card-"] .folder-content .bottom-icons,
.folders-row .col-xs-12 a[href*="wpm-category/info-border-card-"] .folder-content .bottom-icons {
    background: none!important;
    bottom: 12px;
    position: absolute;
    width: inherit;
	color: var(--color-indicator-info)!important;
    padding-left: calc(7px + var(--radius-card-info)/2);
    padding-right: calc(-3px + var(--radius-card-info)/2);
    display: block;
	height: auto;
}

/* Статус */

a[href*="wpm-category/info-card-"] .folder-content .bottom-icons .status,
a[href*="wpm-category/info-border-card-"] .folder-content .bottom-icons .status {
    background: #fff;
    padding: 0px 7px;
    border-radius: 10px;
}

a[href*="wpm-category/info-card-"] .folder-content .bottom-icons .status .icon-unlock,
a[href*="wpm-category/info-border-card-"] .folder-content .bottom-icons .status .icon-unlock {
    top: 2px;
    position: relative;
}

/* Комментарии и Просмотры */

a[href*="wpm-category/info-card-"] .folder-content .bottom-icons .comments,
a[href*="wpm-category/info-card-"] .folder-content .bottom-icons .views,

a[href*="wpm-category/info-border-card-"] .folder-content .bottom-icons .comments,
a[href*="wpm-category/info-border-card-"] .folder-content .bottom-icons .views {
	background: var(--color-bg-indicator-info);
    padding: 4px 7px;
    border-radius: 10px;
	margin-right: 0;
}

/* Убираем Шкалу прогресса */

a[href*="wpm-category/info-card-"] > .folder-content > .bottom-icons .course-progress-wrap,
a[href*="wpm-category/info-border-card-"] > .folder-content > .bottom-icons .course-progress-wrap {
    display: none;
}

/* ------------------- */
/* 7. ОБЛОЖКА КАРТОЧКИ */

/* Убираем фоновую картинку */

a[href*="wpm-category/info-card-"] .folder-front,
a[href*="wpm-category/info-card-"] .folder-sub-front,

a[href*="wpm-category/info-border-card-"] .folder-front,
a[href*="wpm-category/info-border-card-"] .folder-sub-front

{
	display: none!important;
}

/* ----------- */
/* 8. АНИМАЦИИ */


/* Убираем увеличение и цветокоррекцию */

a[href*="wpm-category/info-card-"]:hover .folder-sub-front pattern image,
a[href*="wpm-category/info-card-"]:hover .folder-front pattern image,

a[href*="wpm-category/info-border-card-"]:hover .folder-sub-front pattern image,
a[href*="wpm-category/info-border-card-"]:hover .folder-front pattern image {
	filter: none;
}