

/* Start:/bitrix/templates/university_default/components/bitrix/news.list/news_event/style.css?177088393216536*/
/* ===== ОБЕРТКА НОВОСТЕЙ И СОБЫТИЙ ===== */
.news-events-wrapper-custom {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
}

.news-events-container-custom {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовок */
.news-events-header-custom {
    margin-bottom: 40px;
    text-align: center;
}

.news-events-title-link-custom {
    display: inline-block;
    text-decoration: none !important;
    padding: 10px 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-events-title-link-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-events-title-custom {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    transition: color 0.3s ease;
}

.news-events-title-link-custom:hover .news-events-title-custom {
    color: #3498db;
}

/* Основная сетка: 4 колонки × 2 ряда с правильным расположением */
.news-events-grid-custom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 25px;
    grid-template-areas:
        "news1 news2 news3 events"
        "news4 news5 news6 events";
}

/* ===== НОВОСТИ ===== */
.news-item-custom {
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.news-item-custom:nth-child(1) { grid-area: news1; animation-delay: 0.1s; }
.news-item-custom:nth-child(2) { grid-area: news2; animation-delay: 0.15s; }
.news-item-custom:nth-child(3) { grid-area: news3; animation-delay: 0.2s; }
.news-item-custom:nth-child(4) { grid-area: news4; animation-delay: 0.25s; }
.news-item-custom:nth-child(5) { grid-area: news5; animation-delay: 0.3s; }
.news-item-custom:nth-child(6) { grid-area: news6; animation-delay: 0.35s; }

.news-link-custom {
    text-decoration: none;
    width: 100%;
    display: block;
}

.news-card-custom {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.news-image-wrapper-custom {
    position: relative;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    height: 220px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f4 100%);
}

.news-image-custom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-custom:hover .news-image-custom {
    transform: scale(1.1);
}

.news-overlay-custom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
    display: flex;
    align-items: flex-end;
}

.news-card-custom:hover .news-overlay-custom {
    opacity: 1;
}

.news-overlay-text-custom {
    color: white;
    font-size: 14px;
    line-height: 1.6;
    max-height: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    transition: transform 0.4s ease;
    transform: translateY(10px);
    opacity: 0;
}

.news-card-custom:hover .news-overlay-text-custom {
    transform: translateY(0);
    opacity: 1;
}

.news-content-custom {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date-custom {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-weight: 500;
}

.news-name-custom {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link-custom:hover .news-name-custom {
    color: #3498db;
}

.news-empty-custom {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
    font-size: 18px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    grid-column: span 4;
}

/* ===== ПРАВЫЙ БЛОК: ОБЪЕДИНЕННЫЙ (1 колонка, 2 ряда) ===== */
.events-combined-block-custom {
    grid-area: events; /* Занимает правую колонку, оба ряда */
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%;
}

/* События на сегодня (верхняя часть) */
.today-events-section-custom {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #dee2e6;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    position: relative;
}

.today-events-title-custom {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.today-events-list-custom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.today-events-list-custom::-webkit-scrollbar {
    width: 6px;
}

.today-events-list-custom::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.today-events-list-custom::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

.today-event-item-custom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 13px;
    color: #2c3e50;
    padding: 8px 10px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 36px;
}

.today-event-item-custom:hover {
    background: #f8f9fa;
    transform: translateX(3px);
}

.event-time-wrapper-custom {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.event-time-custom {
    font-weight: 600;
    color: #0f61d9;
    min-width: 60px;
    white-space: nowrap;
    font-size: 12px;
}

.event-separator-custom {
    font-weight: 600;
    color: #7f8c8d;
    flex-shrink: 0;
}

.event-title-custom {
    color: #2c3e50;
    font-weight: 500;
    width: 100%;
    line-height: 1.4;
    overflow-wrap: break-word;
    font-size: 13px;
}

.no-events-custom {
    font-size: 13px;
    color: #95a5a6;
    text-align: center;
    padding: 20px 10px;
    font-style: italic;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.no-events-icon-custom {
    font-size: 48px;
    opacity: 0.5;
}

.no-events-text-custom {
    font-size: 14px;
    margin: 0;
}

/* ===== УМЕНЬШЕННЫЙ МИНИ-КАЛЕНДАРЬ (нижняя часть) ===== */
.mini-calendar-section-custom {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    height: auto;
}

.mini-calendar-card-custom {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.mini-calendar-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    font-size: 13px;
}

.mini-calendar-btn-custom {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 5px;
    width: 28px;
    height: 28px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-calendar-btn-custom:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.mini-calendar-title-custom {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
    margin: 0 4px;
}

.mini-calendar-grid-custom {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 6px 64px;
    background: white;
}

.mini-day-header-custom {
    font-size: 9px;
    font-weight: 600;
    color: #7f8c8d;
    text-align: center;
    padding: 3px 0;
}

.mini-calendar-day-custom {
    aspect-ratio: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #2c3e50;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    padding: 2px;
}

.mini-calendar-day-custom:hover:not(.empty-custom):not(.today-custom) {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.mini-calendar-day-custom.empty-custom {
    background: transparent;
    border: none;
    cursor: default;
}

.mini-calendar-day-custom.today-custom {
    background: #2ecc71;
    color: white;
    font-weight: 700;
    border-color: #27ae60;
}

.mini-calendar-day-custom.has-events-custom {
    background: #f39c12;
    color: white;
    font-weight: 600;
    border-color: #f1c40f;
}

.mini-calendar-day-custom.has-events-custom::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    background: #e74c3c;
    border-radius: 50%;
}

.mini-calendar-footer-custom {
    padding: 6px 12px;
    background: #ecf0f1;
    border-top: 1px solid #bdc3c7;
    font-size: 10px;
}

.mini-legend-custom {
    font-size: 10px;
    color: #7f8c8d;
    display: flex;
    gap: 8px;
    align-items: center;
}

.legend-dot-custom {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.today-dot-custom {
    background: #2ecc71;
}

.events-dot-custom {
    background: #f39c12;
    position: relative;
}

.events-dot-custom::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 4px;
    height: 4px;
    background: #e74c3c;
    border-radius: 50%;
}

/* ===== СТАНДАРТНАЯ КНОПКА БИТРИКС (появляется при наведении) ===== */
.bx-context-toolbar-custom {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.today-events-section-custom:hover .bx-context-toolbar-custom {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay-custom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-dialog-custom {
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.4s ease;
}

.modal-content-custom {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header-custom {
    padding: 20px 25px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title-custom {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.modal-title-custom span {
    font-weight: 500;
    opacity: 0.9;
}

.modal-close-custom {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close-custom:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body-custom {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body-custom::-webkit-scrollbar {
    width: 6px;
}

.modal-body-custom::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body-custom::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

.modal-loading-custom {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-size: 16px;
}

.modal-no-events-custom {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
    font-size: 16px;
}

.modal-event-item-custom {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 3px solid #3498db;
    transition: all 0.3s ease;
}

.modal-event-item-custom:hover {
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(3px);
}

.modal-event-time-custom {
    min-width: 70px;
    padding: 8px 12px;
    background: #3498db;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-event-content-custom {
    flex-grow: 1;
}

.modal-event-title-custom {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.modal-event-preview-custom {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
}

.modal-footer-custom {
    padding: 15px 25px;
    border-top: 1px solid #ecf0f1;
    text-align: right;
}

.modal-btn-close-custom {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-close-custom:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .news-events-grid-custom {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas:
            "news1 news2 news3"
            "news4 news5 news6"
            "events events events";
    }
    
    .events-combined-block-custom {
        grid-area: events;
    }
}

@media (max-width: 992px) {
    .news-events-grid-custom {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "news1 news2"
            "news3 news4"
            "news5 news6"
            "events events";
    }
}

@media (max-width: 768px) {
    .news-events-title-custom {
        font-size: 28px;
    }
    
    .news-events-grid-custom {
        grid-template-columns: 1fr;
        grid-template-areas:
            "news1"
            "news2"
            "news3"
            "news4"
            "news5"
            "news6"
            "events";
    }
    
    .news-image-wrapper-custom {
        height: 200px;
    }
    
    .today-event-item-custom {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .event-time-wrapper-custom {
        width: 100%;
        justify-content: flex-start;
    }
    
    .event-time-custom {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .news-events-wrapper-custom {
        padding: 30px 0;
    }
    
    .news-events-title-custom {
        font-size: 24px;
    }
    
    .news-events-container-custom {
        padding: 0 15px;
    }
    
    .news-image-wrapper-custom {
        height: 180px;
    }
    
    .news-name-custom {
        font-size: 16px;
    }
    
    .mini-calendar-grid-custom {
        gap: 1px;
    }
    
    .mini-day-header-custom {
        font-size: 8px;
        padding: 2px 0;
    }
    
    .mini-calendar-day-custom {
        font-size: 10px;
        aspect-ratio: 0.85;
    }
    
    .mini-calendar-section-custom {
        transform: scale(0.98);
        transform-origin: top right;
    }
}
/* End */


/* Start:/bitrix/templates/university_default/components/bitrix/news.list/priorities/style.css?1743416540949*/

.b-priority {
	height: 0;
	padding-top: calc(262 / 232 * 100%);
	background-color: var(--bs-gray-300);
	background-repeat: no-repeat;
	background-size: cover;
	overflow: hidden;
	position: relative;
}

.b-priority__inside {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	padding: 20px;

	display: flex;
	flex-direction: column;
	justify-content: flex-end;

	background-color: transparent;
	transition: .3s;
	color: #fff;
	text-decoration: none;
}

.b-priority__inside:hover,
.b-priority__inside:focus,
.b-priority__inside:active {
	text-decoration: none;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.1);
}

.b-priority__title {
	font-size: 1.25rem;
	line-height: 1.5rem;
	font-weight: bold;

}

.b-priority__subtitle {
	flex: 1 auto;
	font-size: 0.875rem;
	text-transform: uppercase;
	width: 50%;
	line-height: 1rem;
}

@media (min-width: 75rem) {
	.b-priority__title {
		font-size: 1.75rem;
		line-height: 1.875rem;
	}
}
/* End */
/* /bitrix/templates/university_default/components/bitrix/news.list/news_event/style.css?177088393216536 */
/* /bitrix/templates/university_default/components/bitrix/news.list/priorities/style.css?1743416540949 */
