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

/* =Фон принудительно, если не меняется темой
----------------------------------------------- */

body {
	background-color: #ffffff;
    padding-top: 5px;
    padding-bottom: 5px;
}



/* Post Format: Aside. Заметка
--------------------------------------------- */
.format-aside .cm-entry-header {
	 display: block; 
}

.single-format-aside .cm-header{
display:none;
}


.single-format-aside .cm-container {
    padding-left: 0; 
    padding-right: 0;
}

.single-format-aside .cm-content {
    padding-top: 0px;
	padding-bottom: 0px;
}



.single-format-aside .cm-entry-summary {
    margin-top: 0px;
}

.single-format-aside .post  {
-webkit-box-shadow: none;
box-shadow: none;
border-radius: 0;
}

.single-format-aside .cm-footer-bar {
background-color: transparent;
	padding-top: 10px;
    padding-bottom: 0;
	display:none;
}

.single-format-aside .cm-post-content {
    padding: 20px !important; 
}


/* Верхнее меню. Положение от логотипа
----------------------------------------------- */
@media screen and (min-width: 48em) {
/* Меню по умолчанию. Макет 1. Стиль 1 */
	.cm-primary-nav ul {
		justify-content: flex-end;
	}
	

	
/* Верхнее меню. Подчеркивание при наведении
----------------------------------------------- */

/* Убираем фон при наведении на элемент меню */
.cm-primary-nav li:hover {
    background-color: transparent !important;
}

	.fa.search-top:hover {
    background-color: transparent !important;
}
	
	
/* Подчеркивание при наведении на ссылки */
.cm-primary-nav ul > li:hover > a {
	border-bottom: 1px solid #dd9933;
}	
	
.cm-primary-nav ul li.current_page_item a {
	border-bottom: 1px solid #dd9933;
}	



/* Устанавливаем прозрачную границу в обычном состоянии */
.cm-primary-nav ul > li > a {
    border-bottom: 1px solid transparent;
}
	
	
.cm-primary-nav ul li.current-menu-item	{
     background-color: transparent !important;
	
}


    .cm-primary-nav ul li.focus > a {
     background-color: transparent !important;
}
	
	

	


/* Убираем верхний регистр для текста */
.cm-primary-nav a {
    text-transform: none;
}

	
	
	
	
/* Меню. Макет 1. Стиль 2 */
	.header_display_type_two .cm-primary-nav ul {	
		justify-content: center;
	}
/* Меню. Макет 1. Стиль 3 */	
	.header_display_type_one .cm-primary-nav ul {	
		justify-content: flex-start;
	}
/* Меню. Макет 2. Стиль 1 */	
	.cm-layout-2 .cm-primary-nav ul {	
		justify-content: center;
	}
}





/* Логотип
----------------------------------------------- */

/* Логотип. Макет 1. Стиль 1 */
.cm-header-1 .cm-row 
 {
    padding: 0;	
	float: left;
    position: relative;
    z-index: 9999;	 	
}

.cm-header-col-1 {
    gap: 10px;
} 

.cm-site-title {
    line-height: normal;
}


/* Логотип. Макет 1. Стиль 2 */
.header_display_type_two .cm-header-1 .cm-row 

 {
	float: none !important;
}

/* Логотип. Макет 1. Стиль 3 */
.header_display_type_one .cm-header-1 .cm-row {
    padding: 0;	
	float: right;
    position: relative;
    z-index: 9999;
}

/* Логотип. Макет 2. Стиль 1 */
.cm-layout-2 .cm-row {
    float: none !important;
}

.cm-layout-2 .cm-row .cm-site-title {
    line-height: 1.5 !important;
}




/* Логотип. Позиция на малых экранах */

@media screen and (max-width: 768px) 
{
.header_display_type_one #cm-site-branding {
    margin-bottom: 0px;
}
	
.cm-header-1 .cm-row 
 {
	position: absolute;
    left: 50%;
    transform: translateX(-50%);
}	

.header_display_type_one .cm-header-1 .cm-row { 
  position: absolute;

}	
}


/* иконка поиск
----------------------------------------------- */
.fa.search-top  {

	  font-size: 1.8rem;
}

/* Content.
--------------------------------------------- */
.cm-content {
	padding-top: 30px;
	padding-bottom: 30px !important;
}

/* Убираем отступы для полной записи поста */
.single-post .cm-post-content {
    padding: 0px;
}



/* Убираям рамку в постах post.
--------------------------------------------- */
.single-post .cm-posts .post {
    -webkit-box-shadow: none;
    box-shadow: none;
}














/* Дополнительные стили для типа записей ЧАТ
--------------------------------------------- */

/* Скрыть шапку для чата */
.single-format-chat .cm-header{
display:none;
}


.single-format-chat .cm-container {
    padding-left: 0; 
    padding-right: 0;
}

.single-format-chat .cm-content {
    padding-top: 0px;
	padding-bottom: 0px;
}

.single-format-chat .cm-post-content {
    padding: 0px; 
}

.single-format-chat .cm-entry-summary {
    margin-top: 0px;
}

.single-format-chat .post  {
-webkit-box-shadow: none;
box-shadow: none;
border-radius: 0;
}

.single-format-chat .cm-footer-bar {
background-color: transparent;
	padding-top: 10px;
    padding-bottom: 0;
	display:none;
}

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

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


.cm-entry-title {
    margin-bottom: 20px;
}


/* =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: #b1b6b68a;
	float: left;
	font-size: 12px;
	line-height: 1.4;
}

.copyright img{
vertical-align: baseline;
	}

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

.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;
	}
}





/* Стили для всех виджетов с рубриками */
.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: #293a4c;
    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;
}

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

.cm-footer-cols {
    display: none;
}

.cm-footer-bar-area {
	gap: 0px;
}


/* Стили для кнопки под статьей */
        .whatsapp-buttons {
            background-color: #25D366; /* Зеленый цвет WhatsApp */
            color: white !important;
            border: none;
            padding: 12px 24px;
            font-size: 20px;
            border-radius: 5px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            text-decoration: none;
        }

        .whatsapp-buttons:hover {
            background-color: #1ebe57; /* Более темный зеленый при наведении */
			text-decoration: none !important;
        }

        .whatsapp-buttons:active {
            background-color: #169e4a; /* Еще темнее при клике */
        }

        .whatsapp-buttons:focus {
            outline: none; /* Убираем рамку при фокусе */
        }

        .whatsapp-icons {
            width: 32px;
            height: 32px;
            margin-right: 10px;
        }