/*
Theme Name: My theme Colormag
Template: colormag
Description: Дочерняя тема для темы colormag
Author: Denis Povaga
Version: 2023
*/

/* =Фон принудительно, если не меняется темой
----------------------------------------------- */
body.custom-background {
    background-color: #ffffff;
}

/* Typography
--------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: normal !important;	
}

.cm-entry-title a:hover {
  text-decoration: none;
}


/* =TEXT ELEMENTS
----------------------------------------------- */
p {
	line-height: 1.6 !important;
	font-family: 'Open Sans', serif;
	font-size: 18px !important;
}

.cm-secondary .widget p {
    font-size: 1.4rem !important;
}

/* =ссылки возле заголовка
----------------------------------------------- */
.cm-below-entry-meta  a:hover {
   
	text-decoration: none;
}

/* tags*/
.taxonomy-description h1 {font-size: 32px;line-height: 1.2; }


/* =BLOCKQUOTE
----------------------------------------------- */
blockquote,
.wp-block-quote,
.wp-block-quote.is-style-large,
.wp-block-quote.has-text-align-right {
	padding: 30px 30px 20px 45px;		
background: #ffffff !important;
	border-left: 4px solid #e5e5e5 !important;
	border-right: 4px solid #e5e5e5 !important;
	border-radius: 14px !important;
	margin-bottom: 24px !important;		
	color: #333;
}

blockquote p,
.wp-block-quote p,
.wp-block-quote.is-style-large p,
.wp-block-quote.has-text-align-right p {
	font-size: 18px;
	font-family: 'Open Sans', serif;
	line-height: 1.4;
	position: relative;
	padding-top: 0;
	padding-left: 15px;
}

blockquote p::before,
.wp-block-quote p::before,
.wp-block-quote.is-style-large p::before,
.wp-block-quote.has-text-align-right p::before {
	content: "\f0e6";
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	text-decoration: inherit;
	color: #666;
	font-size: 32px;
	position: absolute;
	top: -27px;
	left: -27px;
}

blockquote a,
.wp-block-quote a,
.wp-block-quote.is-style-large a,
.wp-block-quote.has-text-align-right a {
	color: #fff;
	text-decoration: underline;
}

blockquote em,
blockquote i,
blockquote cite,
.wp-block-quote em,
.wp-block-quote i,
.wp-block-quote cite,
.wp-block-quote.is-style-large em,
.wp-block-quote.is-style-large i,
.wp-block-quote.is-style-large cite,
.wp-block-quote.has-text-align-right em,
.wp-block-quote.has-text-align-right i,
.wp-block-quote.has-text-align-right cite {
	font-style: normal;
}

blockquote cite,
.wp-block-quote cite,
.wp-block-quote.is-style-large cite,
.wp-block-quote.has-text-align-right cite {
	font: 12px "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 300;
	letter-spacing: 0.05em;
	float: right;
}

blockquote.wp-block-quote.has-text-align-right {
	border-right: 0;
}

/* ul li
----------------------------------------------- */

.cm-entry-summary ul,
.cm-entry-summary ol {
	padding: 0 0 0 35px;
	margin-bottom: 25px;
}

.cm-entry-summary li > ul,
.cm-entry-summary li > ol {
	margin-bottom: 0;
}

.cm-entry-summary ul li {
	position: relative;		
	line-height: 1.7;
    list-style-image: url(img/icon.jpg);
    padding-left: 5px !important;
	font-size: 18px;

}

/* ol li
----------------------------------------------- */

ol {
	list-style-type: none; 
	counter-reset: num;
	margin: 0 0 0 60px;
	padding: 15px 0 5px 0 !important;
	
	position: relative;	
	margin-bottom: 10px !important;
}
ol li {
	position: relative;	
	margin: 0 0 0 0;
	padding: 0 0 20px 0;
	line-height: 1.4  !important;
	font-size: 18px  !important;
}
ol li:before {
	content: counter(num); 
	counter-increment: num;
	display: inline-block;
	position: absolute;
	top: 0;
	left: -55px;
	width: 28px;
	height: 28px;
	background: #fff;
	color: #333;
	text-align: center;
	line-height: 25px;
	font-size: 18px;
	border-radius: 50%;
	border: 1px solid #33333359;
}

/*--------------------------------------------------------------
link в статье
--------------------------------------------------------------*/

.cm-entry-summary a {
    color: #289dcc;
}

.cm-entry-summary a:hover {
   
	text-decoration: underline;
}
    
/*--------------------------------------------------------------
toc +
--------------------------------------------------------------*/

.toc_list {
    padding:0;
    list-style: none;
}
.toc_list li{
    padding:6px;
}
.toc_list li:before {
    padding-right:10px;
    font-weight: bold;
    color: #999;
    content: "\27A9";
    transition-duration: 0.5s;
}
.toc_list li:hover:before {
    color: #333;
content: "\27AA";
}


/*--------------------------------------------------------------
об авторе
--------------------------------------------------------------*/

.avatar {
	
	float: left;
}

/*--------------------------------------------------------------
футер
--------------------------------------------------------------*/

.copyright {
	color: #b1b6b6;
	float: left;
	font-size: 14px;
	line-height: 1.4;
}

/*--------------------------------------------------------------
комментарии
--------------------------------------------------------------*/

.comment-content {
	padding: 15px 15px 25px;
	background-color: #fff;
	border: 1px solid #e2e2e4;
	border-radius: 0px 2px 2px 2px;
	
	 position: relative;
}

.comment-content::before {
	content: "";
    position: absolute;
    top: -1px;
    left: -6px;
    z-index: 2;
    background: url(img/comments.png) no-repeat 0 0;
    background-size: 7px 8px;
    width: 7px;
    height: 10px;
}

.comment-list a:hover  {	
	text-decoration: none;	
}

.comment-reply-link {
	 margin-top: -5px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    float: right;
    color: #aaaaaa;
}

.comment .comment-reply-link::before {
	content: "\f0e5";
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	text-decoration: inherit;	
	font-size: 16px;
	padding-right: 7px;
}

.comment-content:hover {
background-color: #fcfcfc;
box-shadow: 1px 1px 3px rgba(0,0,0,.25);
}

.comments-area {
    margin-top: 40px;
}

.comments-area .fn {
    color: #666;
    font-size: 20px;
    font-weight: 500;
}


/* делаем посты в одну колонку  */
@media screen and (min-width: 48em) {	
	.cm-posts.cm-layout-2-style-2.col-2, .cm-posts.cm-layout-2-style-1.col-2 {
		--grid-column: 1;
	}
}

/* Стиль 1. Если нужно логотип по центру на темном меню */
.cm-header-1 .cm-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
	gap: 0px;
}


/* Стиль 2. Если нужно логотип по центру и темное меню. (Дополнительный стиль header, который действует для layout-2) 
.cm-layout-2 #cm-primary-nav {
	background-color: #333;
}
.cm-primary-nav a {
	color: #fff !important;	
}

.fa.search-top {
   color: #999 !important;  
}
.cm-home-icon svg {
	fill: #999 !important;	
}

.cm-icon {
    fill: #999 !important;
}

.cm-primary-nav ul li ul li a {
	color: var(--wp--preset--color--black) !important;
}

*/


/* Стили для кнопок соц. сетей внутри .ya-share2 */
.ya-share2 span {
  background-color: transparent; 
  padding: 0px;

}

/* Стили для всех виджетов с рубриками */
.widget_categories li a {
    text-decoration: none;
    height: 36px;
}

.widget_categories li a:link,
.widget_categories li a:visited {
    color: #333333;
    display: block;
    padding: 8px 0 0 20px;
}

.widget_categories li a:hover {
    color: #ffffff;
    background-color: #f7a131;
    padding: 8px 0 0 30px;
    font-weight: bold;
    font-family: 'Open Sans Bold', sans-serif;
    text-decoration: none;
}

.widget_categories li a:active {
    padding: 8px 0 0 25px;
}

/* сообщение на телеграм
----------------------------------------------- */

.send {
background-color: #fff; text-align: center; font-size: 20px; padding: 5px; margin: 5px 0px 5px 0px; border: 1px solid #999;
}

.breadcrumb-wrap {

	display: none !important;
}