.register-button {
    position: relative;
    display: inline-block;
    padding: 16px 24px;
    font-size: 1em;
    color: var(--shako-button-text-color, #fff); /* Цвет текста кнопки */
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    background-color: var(--shako-button-bg-color, #ff9800); /* Основной цвет фона кнопки */
    overflow: hidden;
    font-family: var(--shako-font-family, 'Arial', sans-serif); /* Шрифт кнопки */
    transition: background-color var(--shako-button-transition-time, 0.5s) ease, color var(--shako-button-transition-time, 0.5s) ease; /* Плавный переход фона и текста */
}

.register-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to right, var(--shako-button-bg-color, #ff9800), var(--shako-button-bg-color-gradient, #ff5722)); /* Градиент с использованием переменных */
    transition: opacity var(--shako-button-transition-time, 0.5s) ease; /* Время перехода из настроек плагина */
    opacity: 1; /* Градиент виден по умолчанию */
    z-index: 1;
}

.register-button:hover {
    background-color: var(--shako-button-bg-color-gradient, #ff5722); /* Цвет фона при наведении */
    color: var(--shako-button-hover-text-color, #fff); /* Цвет текста при наведении */
}

.register-button:hover::before {
    opacity: 0; /* Градиент исчезает при наведении */
}

.register-button span {
    position: relative;
    z-index: 2; /* Текст всегда поверх градиента */
}

/* Общие стили для элементов */
.single-event-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--shako-font-family, 'Arial', sans-serif); /* Шрифт кнопки */
}

.single-event-header h1 {
    font-size: 2.5em;
    margin: 0;
    color: #333; /* Стандартный цвет текста заголовков */
    margin-top: 30px;
    color: #333;
    text-align: center;
    margin-bottom: 48px;

}

.view-all-events-button {
    text-align: center;
    margin-top: 60px;
	margin-bottom: 60px;
}

.view-all-events-button .button {
        background-color: #ffffff;
    color: #000;
    padding: 16px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid grey;
}

.view-all-events-button .button:hover {
        background-color: #ffffff;
    box-shadow: 0px 0px 10px #b5b5b5;
}

.event-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
    flex-direction: row;
    align-items: flex-start;
}
.event-details:last-child {
	align-items: center!important;
}

.section-meta {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
	max-width: 33%;
}

.event-city, .event-speaker, .event-format, .event-type, .event-time, .event-duration, .event-location, .event-price {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.info-meta {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
}

.event-details svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-right: 16px;
}

.event-image img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    max-height: 400px;
    object-fit: scale-down;
}

.single-event-description {
    max-width: 800px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333; /* Стандартный цвет текста */
    margin-top: 30px;
    margin: auto;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto!important;
    background-color: rgba(0,0,0,0.4);
    transition: background-color var(--shako-button-transition-time, 0.5s) ease; /* Время перехода из настроек */
}

.modal-content {
    background-color: #00000099;
    margin: 0px;
    padding: 40px 0;
    border: 1px solid #888;
    width: 100%;
    transition: border-color var(--shako-button-transition-time, 0.5s) ease; /* Время перехода из настроек */
	background: #00000099!important;
	height: 100%;
    width: 100%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color var(--shako-button-transition-time, 0.5s) ease; /* Время перехода из настроек */
	top: 5px;
    right: 20px;
    position: absolute;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

div#thankYouMessage {
    color: #fff;
}

/* Архив */
.events-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
	margin-bottom:60px;
}

.events-archive h1{
	margin-top:30px;
	margin-bottom:30px;
}

.events-archive p{
	margin-bottom:30px;
}

.events-list {
    display: flex;
    flex-direction: column;
	margin-bottom:60px;
}

.event-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
	box-shadow: 0px 0px 8px #d9d9d9;
}

.event-date-type-price, .event-image{
	flex-basis: 25%;
}
.event-title-description{
	flex-basis: 50%;
}


.event-date-type-price,
.event-title-description,
.event-image {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Выравнивание по верхнему краю */
	padding: 15px;
}

.event-title-description {
    text-align: left;
	margin-bottom:30px;
}

.event-title-description h2 {
    margin-top: 0;
    font-size: 2em;
    line-height: 1.2;
}

.event-title-description p {
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Ограничиваем количество строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-image {
    justify-content: center; /* Картинка выравнивается по центру */
    text-align: center;
}

.event-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.event-buttons {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

.event-button{
    display: inline-block;
    margin-right: 5px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    background-color: #0073aa;
    transition: background-color 0.3s ease;
    margin-top: 16px;
    text-align: center;
	padding: 12px 18px;
	font-family: var(--shako-font-family, 'Arial', sans-serif); /* Шрифт кнопки */
}

.event-button:hover {
    background-color: #005177;
}

.details-button {
        background-color: #ffffff;
    color: #000;
    padding: 16px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid grey;
}

.details-button:hover {
        background-color: #ffffff;
    box-shadow: 0px 0px 10px #b5b5b5;
}

.event-button.register-button-archive{
	color: var(--shako-button-text-color, #fff); /* Цвет текста кнопки */
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    background-color: var(--shako-button-bg-color, #ff9800); /* Основной цвет фона кнопки */
    overflow: hidden;
    font-family: var(--shako-font-family, 'Arial', sans-serif); /* Шрифт кнопки */
    transition: background-color var(--shako-button-transition-time, 0.5s) ease, color var(--shako-button-transition-time, 0.5s) ease; /* Плавный переход фона и текста */
	border:none;
	padding: 18px 24px;
	font-size: 16px;
	background-image: linear-gradient(to right, var(--shako-button-bg-color, #ff9800), var(--shako-button-bg-color-gradient, #ff5722)); /* Градиент с использованием переменных */
}
.event-button.register-button-archive:hover {
    box-shadow: 0px 0px 10px #b5b5b5;
	background-color: var(--shako-button-bg-color-gradient, #ff5722); /* Цвет фона при наведении */
    color: var(--shako-button-hover-text-color, #fff); /* Цвет текста при наведении */
}


@media (max-width: 768px) {
    .event-item {
        flex-direction: column-reverse;
    }
	.single-event-header h2 {
    font-size: 1.5em;
	line-height:1.2em;
	}
	.event-title-description h2 {
    margin-top: 0;
	line-height: 1.5;
	font-size: 1.5em;
	}
	.event-image img {
	    width: 100%;
        height: 100%;
        object-fit: scale-down;
        max-height: 500px;
	}
	.single-event-header h1 {
    font-size: 1.5em;
	}
	.event-details {
		display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        margin-bottom: 20px;
        gap: 20px;
        flex-direction: row;
        align-items: flex-start;
}
}

.shako-events-archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.shako-event-item {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.shako-event-item h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.shako-event-item p {
    font-size: 16px;
    color: #555;
}
