/*   
Theme Name: your-clean-template-3 (uncommented)
Theme URI: https://github.com/saxap/clean-wp-template
Version: 3.0
Tags: clean, development, html5, bootstrap
Description: Clean wordpress theme with minimal bootstrap3 markup for fast development starting
Author: saxa:p
Author URI: http://dontforget.pro
*/


@media (min-width: 979px) { 
	ul.nav li.dropdown.show-on-hover:hover > ul.dropdown-menu {
		display: block;
	}
	.comment-list .children {
		padding: 0;
		margin-left: 74px;
		padding-bottom: 15px;
	}
	.comment-list .media {
		margin-top: 0;
	}
}

/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

body {
	background: #fff;
	font-family: "Roboto", sans-serif;
  	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 17px;
	line-height: 23px;
	-webkit-font-smoothing: antialiased;
}
.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6 {
    font-family: inherit;
    font-weight: bold;
    line-height: 1.1;
    color: inherit
}
.h1,h1 {
    margin: 0 0 10px;
    font-size: 1.4em;
}
@media (min-width: 768px) {
    .h1,h1 {
        font-size:1.6em
    }
}
@media (min-width: 992px) {
    .h1,h1 {
        font-size:1.8em
    }
}
.h2,h2 {
    font-size: 1.3em
}
@media (min-width: 768px) {
    .h2,h2 {
        font-size:1.4em
    }
}
@media (min-width: 992px) {
    .h2,h2 {
        font-size:1.5em
    }
}
.h3,h3 {
    font-size: 1.2em
}
@media (min-width: 992px) {
    .h3,h3 {
        font-size:1.3em
    }
}
.h4,h4 {
    font-size: 1.1em
}
@media (min-width: 992px) {
    .h4,h4 {
        font-size:1.2em
    }
}
.h5,h5 {
    font-size: 1.1em
}
.h2,.h3,.h4,.h5,.h6,h2,h3,h4,h5,h6 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: bold;
}
section, .section {
	margin-bottom: 2em;
}
.cta-btn {
	color: #fff;
	background: #12b0c5;
	border: 1px solid #12b0c5;
	border-radius: 4px;
	padding: 10px 25px;
	display: inline-block;
	font-weight: 500;
	margin-top: 10px;
	text-align: center;
	min-width: 300px;
	width: 100%;
}
.cta-btn:hover,
.cta-btn:focus,
.cta-btn:focus:hover {
	color: #fff;
	text-decoration: none;
}
.info-btn {
	color: #000;
	background: #fff;
	border-radius: 4px;
	padding: 10px 25px;
	display: inline-block;
	margin-top: 10px;
	text-align: center;
	min-width: 300px;
	width: 100%;
	border: 1px solid #ddd;
}
.info-btn:hover,
.info-btn:focus,
.info-btn:focus:hover {
	color: #000;
	text-decoration: none;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}
table {
    width: 100%;
    margin: 20px 0;
    border: 1px solid #ccc;
    background: #fff;
    border-spacing: 0;
    line-height: 1.3em;
    border-collapse: collapse;
}
table td, table th {
    border: 1px solid #ccc;
    padding: 8px 12px;
}
.event-chars tr td:first-child {
    width: 220px;
    background: #F7F9FB;
}
.event-chars tr td.adress-value span {
	display: block;
}
/*HEADER*/
header {
	background: #fff;
	padding: 5px 0;
	box-shadow: 0px 4px 15px rgba(120, 160, 190, 0.1);
}
.navbar-header {
	display: flex;
	width: 100%;
	justify-content: center;
}
.navbar-brand {
	padding: 0;
    height: auto;
    font-family: "Forum", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 25px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: #000 !important;
}
.navbar-brand img {
	height: 60px;
	width: auto;
}
.brand-name {
	display: inline-block;
    text-align: center;
    width: 145px;
    line-height: 25px;
}
/*Breadcrumbs*/
.breadcrumbs {
	padding-top: 15px;
	margin-bottom: 25px;
    font-size: 15px;
}
.breadcrumbs a {
	color: #12b0c5;
}
/*Mainpage*/
.mainpage-promo {
	text-align: center;
	margin-top: 2em;
}
#all-events h2 {
	text-align: center;
}
/*EVENT SINGLE*/
#intro {
    display: flex;
    justify-content: space-between;
}
.intro-text {
	width: calc(100% - 360px);
}
.intro-text .speaker-sm {
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 17px !important;
}
.intro-text .speaker-name-title {
	font-size: 14px;
	line-height: 17px;
}
#intro #pay-block {
	width: 320px;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #e9f2fd;
	padding: 25px 15px;
	border-radius: 8px;
}
.pay-disclamer {
	display: block;
	font-size: 14px;
    line-height: 19px;
    margin-top: 10px;
}
.intro-info {
	display: inline-flex;
	position: relative;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
	background: #ffbb004a;
	padding: 4px 10px;
	border-radius: 4px;
	margin-bottom: 15px;
}
.intro-info svg {
	width: 17px;
	height: 17px;
}
.intro-info span {
	display: block;
	font-weight: bold;
}
#intro .cta-btn {
	max-width: 300px;
}
.event-desc {
	max-width: 80%;
	margin-bottom: 0;
}
.prices {
	display: flex;
	gap: 30px;
	font-size: 30px;
	font-weight: bold;
}
.prices>div {
	text-align: center;
}
.prices span {
	display: block;
	font-size: 14px;
	line-height: 16px;
	padding-top: 3px;
	font-weight: normal;
	opacity: .7;
}
.wish-list-text {
	text-align: left !important;
}
.wish-list-text .h4 {
	margin-top: 0;
}
/*CONTENT AREA*/
#content {
	display: flex;
	justify-content: space-between;
}
#content a {
	color: #12b0c5;
}
.page-content {
	width: calc(100% - 360px);
}
.page-content h2:first-child {
	margin-top: 0;
}
/*ASIDE*/
aside {
	width: 320px;
}
.aside-block {
	width: 100%;
	background: #eee;
	padding: 25px 15px;
	border-radius: 8px;	
}
.aside-block .cta-btn {
	width: 100%;
	min-width: auto!important;
}
/*MAINPAGE GRID*/
#events-list,#past-list {
	margin: 20px auto;
}
.items-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.items-grid li {
	flex: 1 1 calc(33.333% - 14px);
	min-width: 200px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #fff;
	box-shadow: 0px 2px 8px rgba(120, 160, 190, 0.3);
}
.items-grid li a {
	position: relative;
	color: #000;
}
.items-grid li a:hover,
.items-grid li a:focus,
.items-grid li a:focus:hover {
	text-decoration: none;
}
.items-grid li .prices {
	font-size: 22px;
	justify-content: center;
	text-align: center;
	margin: 10px auto;
	min-height: 45px;
	align-items: center;
}
.items-grid li .prices.wish-list {
	font-size: 17px;
}
.items-grid li .prices span {
	padding: 0;
	line-height: 16px;
}
.event-item-btns {
	display: flex;
	gap: 20px;
	padding: 0 15px 15px 15px;
}
.items-grid li .cta-btn,
.items-grid li .info-btn {
	margin: 0;
	padding: 12px;
	min-width: auto;
}
.item-badge {
	position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: gold;
    color: #000;
    border-radius: 4px;
    padding: 3px 5px;
    font-size: 14px;
}
.event-thumb {
	position: relative;
	overflow: hidden;
	border-radius: 8px 8px 0 0;
}
.event-thumb:after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .4);
}
.event-thumb>*{
	z-index: 10;
}
.event-thumb>img {
	border-radius: 8px 8px 0 0;
	width: 100%;
	height: auto;
}
.event-thumb .speaker-sm {
	margin-top: 10px;
}
.event-headline {
	position: absolute;
    padding: 15px;
    bottom: 0;
    color: #fff;
    width: 100%;
}
.event-item-name {
	display: block;
	font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, .3);
    padding-bottom: 10px;
}
.speaker-block {
	display: flex;
	gap: 25px;
}
.speaker-block h3 {
	margin-top: 0;
}
.speaker-block img {
	max-height: 300px;
	width: auto;
}
.speaker-sm {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.speaker-sm img {
	margin-bottom: 0!important;
}
.speaker-round {
	width: 40px;
    border-radius: 50%;
}
.speaker-sm-name {
	display: flex;
    flex-direction: column;
}
.speaker-name-title {
    opacity: .7;
    line-height: 14px;
}
/*LAST EVENT*/
.last-event {
	padding: 0 !important;
	border: 1px dashed #666 !important;
	background: #e9f2fd !important;
	box-shadow: none !important;
}
.last-event a {
	height: 100%;
	padding: 15px;
	display: flex;
	color: #1D2F3C !important;
	justify-content: center;
	align-items: center;
	position: relative;
}
.cta-icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 15px;
	font-weight: bold;
}
/*MODAL*/
.modal-header .h4,
.modal-body h4:first-child {
	margin-top: 0;
}
.modal-header .h4 {
	display: inline-block;
	margin-bottom: 0;
}
/*TG*/
#telegram {
	padding: 15px;
    background: #e9f2fd;
    border-radius: 8px;
    border: 1px solid #e9f2fd;
}
#telegram .h3 {
	margin-top: 0;
}
.tg-cta {
	background: #24A1DE;
	border: 1px solid #24A1DE;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.tg-cta:hover,
.tg-cta:focus,
.tg-cta:focus:hover {
	color: #fff;
	background: #1c8fc7;
	text-decoration: none;
}
.tg-cta svg {
	width: 24px;
	height: 24px;
}
/*FOOTER*/
footer {
	background: #F7F9FB;
	padding: 25px 0;
}
.bottom-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}
.bottom-menu a {
	color: #1D2F3C;
}
.forms-area {
	display: flex;
	gap: 30px;
	width: 100%;
	margin-top: 25px;
}
.forms-area .wpcf7 {
	width: 50%;
}
.form-block {
	background: #fff;
	border-radius: 4px;
	padding: 15px;
	box-shadow: 0px 2px 8px rgba(120, 160, 190, 0.3);
}
.form-block .h3 {
	margin-top: 0;
}
.form-control {
	height: 40px;
	font-size: 17px;
	margin-bottom: 8px;
}
.wpcf7-spinner {
	display: none;
}
footer .small {
	display: block;
	text-align: center;
}
.ym-display-none {
	display: none;
}
.ym-product-line {
	display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #F7F9FB;
    margin-bottom: 15px;
    border-radius: 4px;
}
.ym-block-with-hint .form-control {
	border-color: red;
}
.ym-hint {
	font-size: 13px;
	color: red;
}
.legal-yookassa {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 25px;
}
.legal-yookassa-text {
	white-space: nowrap;
}
.pay-form {
	max-width: 600px;
	margin: 25px 0;
}
form .alert {
    line-height: 20px;
    background: #fefde5;
    color: #000;
    border-radius: 4px;
}
.alert {
    background: #fefde5;
    color: #000;
    border-radius: 4px;
}
.alert-tg {
	background: #ffd3ac;
    color: #000;
    border-radius: 4px;
}

/* --- ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ СЕТКИ КУРСОВ (ВЕРСИЯ 2) --- */

/* 1. Сетка и общие стили карточки */
.items-grid {
    display: grid;
    /* Адаптивные колонки: не меньше 320px */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.items-grid li {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Мягкая тень */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Растягиваем на всю высоту ячейки грида */
}

.items-grid li:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.items-grid li a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ссылка занимает всё пространство карточки */
}

/* 2. Блок с картинкой и затемнением */
.event-thumb {
    position: relative;
    height: 250px; /* Фиксированная высота картинки */
    width: 100%;
    overflow: hidden;
    flex-shrink: 0; /* Запрещаем сжиматься */
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Фокус на верхнюю часть (лица) */
    display: block;
    transition: transform 0.5s ease;
}

.items-grid li:hover .event-thumb img {
    transform: scale(1.03);
}

/* Усиленный градиент для читаемости текста */
.event-thumb:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Градиент от прозрачного к черному снизу */
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

/* Бейдж с датой */
.item-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    background: #FFD500;
    color: #000;
    font-weight: 600;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 3. Контент поверх картинки (Название и Спикер) */
.event-headline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Отступ между заголовком и спикером */
}

.event-item-name {
    display: block;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    /* Убираем лишние бордеры, которые были в старом стиле */
    border: none;
    padding: 0;
    margin: 0;
}

/* Блок спикера */
.event-headline .speaker-sm {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    border-top: none; /* Убираем, если было */
    padding-top: 0;
}

.event-headline .speaker-round {
    width: 32px !important;  /* Принудительный размер */
    height: 32px !important;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    object-fit: cover;
    margin: 0 !important;
}

.event-headline .speaker-sm-name {
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.2;
}

.event-headline .speaker-name-title {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 2px;
}

/* 4. Цены и информация */
.items-grid li .prices {
    padding: 20px 20px 0 20px; /* Отступ сверху и по бокам */
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    min-height: auto;
}

.price-regular, .price-sale {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.price-regular {
    align-items: flex-start;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.price-sale {
    align-items: flex-end;
    font-size: 22px;
    font-weight: 700;
    color: #1D2F3C;
}

.items-grid li .prices span {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    font-weight: 500;
    margin-top: 4px;
    letter-spacing: 0.5px;
    padding: 0;
    opacity: 1; /* Перекрываем старую прозрачность */
}

/* 5. Кнопки */
.event-item-btns {
    padding: 20px;
    margin-top: auto; /* Прижимаем кнопки к низу */
    display: flex;
    gap: 12px;
}

.items-grid li .cta-btn,
.items-grid li .info-btn {
    flex: 1;
    margin: 0;
    padding: 12px 0;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    min-width: 0; /* Фикс для флекс-контейнеров */
}

/* Стиль для кнопки подробнее, чтобы она сочеталась */
.items-grid li .info-btn {
    border: 1px solid #ddd;
    color: #333;
}

/* 6. Карточка "Предложить семинар" (Пустая) */
.items-grid .last-event {
    background: #F4F8FB !important; /* Светло-голубой фон */
    border: 2px dashed #B0C4DE !important; /* Пунктирная граница */
    box-shadow: none !important;
}

.last-event a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 400px; /* Чтобы карточка не сплющивалась */
    color: #1D2F3C !important;
}

.cta-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-icon svg {
    width: 64px;
    height: 64px;
    stroke: #1D2F3C;
    margin-bottom: 15px;
    opacity: 0.8;
}

.cta-icon span {
    font-size: 18px;
    font-weight: 600;
    color: #1D2F3C;
}


/**MEDIA**/

@media (max-width: 992px) {
	.container {
		width: 100%;
	}
	#intro,#content,.speaker-block {
		flex-direction: column;
		gap: 25px;
	}
	.intro-text,#intro #pay-block,#intro .cta-btn,.page-content,aside {
		width: 100%;
		max-width: 100%;
	}
	.speaker-block img {
		max-width: 280px;
	}
	table {
		font-size: 100%;
	}
	.event-chars tr td:first-child {
		width: auto;
	}
}
@media (max-width: 960px) {
	.items-grid li {
		flex: 1 1 calc(50% - 10px);
	}
}
@media (max-width: 650px) {
	.mainpage-promo,#all-events h2 {
		text-align: left;
	}
	.items-grid {
		gap: 15px;
	}
	.items-grid li {
		flex: 1 1 100%;
	}
	.intro-info {
		font-size: 14px;
	}
}