/* ========================================
   Архив мероприятий
   ======================================== */

.uae-archive-container {
	max-width: 1200px;
	margin: 40px auto 0;
	padding: 40px 20px;
    font-family: Helvetica,Arial,sans-serif;
    font-size: 1.1em;
    font-weight: 600;
}

.uae-archive-header {
    margin-bottom: 40px;
}

.uae-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.uae-header-text {
    flex: 1;
}

.uae-site-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333;
}

.uae-calendar-title {
    font-family: Helvetica,Arial,sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #e74c3c;
    text-transform: uppercase;
}

.uae-header-logo {
    flex-shrink: 0;
}

.uae-header-logo img {
    max-width: 150px;
    height: auto;
}

/* Сетка мероприятий */
.uae-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .uae-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .uae-events-grid {
        grid-template-columns: 1fr;
    }
    
    .uae-header-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Карточка мероприятия */
.uae-event-card {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
}

.uae-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.uae-event-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.uae-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uae-event-city {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(100, 100, 100, 0.75);
	color: #fff;
	padding: 8px 15px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
	line-height: 1.2;
}

.uae-event-dates {
	position: absolute;
	bottom: 15px;
	left: 15px;
	background: rgba(100, 100, 100, 0.75);
	color: #fff;
	padding: 8px 15px;
	border-radius: 6px;
	font-family: Helvetica,Arial,sans-serif;
	font-size: 1.1em;
	font-weight: 600;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
	line-height: 1.2;
}

.uae-event-content {
    padding: 20px;
}

.uae-event-title {
	margin: 0 0 15px 0;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.4;
	text-transform: uppercase;
	margin-bottom: 40px;
}

.uae-event-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.uae-event-title a:hover {
    color: #e74c3c;
}

.uae-event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.uae-event-tag {
	display: inline-block;
	padding: 5px 5px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 400;
	color: #222;
	background-color: #dfdfdf;
	line-height: 1.2;
}

.uae-event-deadline-closed {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	color: #666;
	justify-content: right;
	line-height: 1.2;
}

.uae-event-deadline-closed i {
    color: #e74c3c;
}

/* ========================================
   Одиночное мероприятие
   ======================================== */

.uae-single-event {
	margin-top: 50px;
}

/* Верхняя панель */
.uae-topbar {
	background: #ababab;
	padding: 15px 0;
	margin-bottom: 30px;
}

.uae-topbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.uae-topbar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgb(238, 0, 0);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 
                0 1px 3px rgba(0, 0, 0, 0.08);
}

.uae-topbar-link:hover {
    background: rgb(238, 0, 0);
    color: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 
                0 3px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.uae-topbar-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.uae-back-link {
    padding: 10px 15px;
}

.uae-link-text {
    display: inline-block;
    line-height: 1.2;
    text-align: left;
}

@media (max-width: 768px) {
    .uae-topbar-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .uae-link-text {
        font-size: 1.3em;
    }
}

/* Главный контейнер */
.uae-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

@media (max-width: 992px) {
    .uae-single-container {
        grid-template-columns: 1fr;
    }
}

/* Содержание */
.uae-event-article {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.uae-event-article .uae-event-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: #333;
    line-height: 1.3;
}

.uae-event-article .uae-event-sub-title {
    font-family: Helvetica,Arial,sans-serif;
    font-size: 1.8em;
    font-weight: 300;
    text-transform: none;
	margin: 0 0 25px 0;
	color: #ee0000;
	line-height: 1.3;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.uae-event-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.uae-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.uae-meta-item i {
	color: #e74c3c;
	font-size: 24px;
	margin-top: 7px;
	flex-shrink: 0;
}

.uae-meta-item a {
    color: #0613d8;
    text-decoration: none;
}

.uae-meta-item a:hover {
    text-decoration: underline;
}

.uae-meta-item.uae-deadline-closed {
    color: #e74c3c;
    font-weight: 600;
}

.uae-meta-item .headline {
    font-size: 24px;
    font-weight: 600;
}

.uae-meta-item .sub-headline {
    font-size: 20px;
    color: #666;
}

/* Табы */
.uae-tabs {
    margin-top: 30px;
}

.uae-tabs-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 25px;
}

.uae-tab-button {
    padding: 12px 25px;
    background-color: #f8f9fa;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: "raleway",sans-serif;
    font-size: 0.9em;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.uae-tab-button:hover {
    color: #e74c3c;
}

.uae-tab-button.active {
    background-color: #ee0000;
    color: #fff;
    border-bottom-color: #e74c3c;
    font-family: "raleway",sans-serif;
    font-size: 0.9em;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.uae-tab-pane {
    display: none;
}

.uae-tab-pane.active {
    display: block;
}

/* Список дисциплин */
.uae-disciplines-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.uae-discipline-item {
    padding: 5px 10px;
    background: #f8f9fa;
    border-left: 4px solid #e74c3c;
    margin-bottom: 5px;
    border-radius: 4px;
    font-family: Helvetica,Arial,sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
}

/* Дополнительная информация */
.uae-additional-info {
    margin-bottom: 25px;
    line-height: 1.8;
}

.uae-additional-info p {
    margin-bottom: 15px;
}

.uae-additional-info ul,
.uae-additional-info ol {
    margin: 15px 0;
    padding-left: 30px;
}

.uae-additional-info li {
    margin-bottom: 8px;
}

/* Загрузка файлов */
.uae-download-file {
    margin-top: 25px;
}

.uae-file-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.uae-file-link:hover {
    background: #e9ecef;
    border-color: #e74c3c;
    color: #e74c3c;
}

.uae-file-link i {
    font-size: 24px;
    color: #e74c3c;
}

.uae-file-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.uae-file-name {
    font-weight: 600;
    font-size: 15px;
}

.uae-file-date {
    font-size: 13px;
    color: #666;
}

/* Сайдбар */
.uae-single-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.uae-single-sidebar .widget {
    padding: 0;
}

.uae-single-sidebar .widgettitle {
    color: #ee0000;
}

/* Сайдбар виджет для вывода мероприятий */
.uae-recent-event-item {
	border-bottom: 1px solid #e0e0e0;
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
}

.uae-recent-event-item:last-child {
    border-bottom: none;
}

.uae-recent-event-dates {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 1.2em;
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 8px;
    background: #f8f9fa;
    padding-left: 10px;
}

.uae-recent-event-title {
    margin: 0;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.4;
}

.uae-recent-event-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.uae-recent-event-title a:hover {
    color: #e74c3c;
}

/* Нет мероприятий */
.uae-no-events {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .uae-site-title {
        font-size: 28px;
    }
    
    .uae-calendar-title {
        font-size: 22px;
    }
    
    .uae-event-article {
        padding: 20px;
    }
    
    .uae-event-article .uae-event-title {
        font-size: 2em;
    }
    
    .uae-tabs-nav {
        flex-direction: column;
        gap: 0;
    }
    
    .uae-tab-button {
        text-align: left;
        border-left: 3px solid transparent;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 0;
    }
    
    .uae-tab-button.active {
        border-left-color: #e74c3c;
        border-bottom-color: #e0e0e0;
    }
}

/* ========================================
   Анимация
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.uae-event-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.uae-event-card:nth-child(1) { animation-delay: 0.1s; }
.uae-event-card:nth-child(2) { animation-delay: 0.2s; }
.uae-event-card:nth-child(3) { animation-delay: 0.3s; }
.uae-event-card:nth-child(4) { animation-delay: 0.4s; }
.uae-event-card:nth-child(5) { animation-delay: 0.5s; }
.uae-event-card:nth-child(6) { animation-delay: 0.6s; }

.uae-animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Загрузка */
.uae-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.uae-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}