/* Общие стили для мероприятий */
.event-container {
    max-width: 1200px;
    margin: 0 auto;
}

.event-schedule {
    padding: 30px 0;
    background-color: #fff;
    font-family: 'Montserrat', sans-serif;
}
/* Cтили для блоков */
.schedule-block {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.schedule-block:hover {
    transform: translateY(-5px);
}

.scientific-part {
    border-left: 4px solid #007bff;
}

.gala-dinner {
    border-left: 4px solid #ffd700;
}

.time-block {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.time-item {
    font-size: 1.2em;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
}

.dress-code {
    background: linear-gradient(145deg, #fff8e1 0%, #fff3e0 100%);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid #ffd700;
}

h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
    font-size: 1.1em;
}

.additional-info {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hotel-offer {
    text-align: center;
    margin-bottom: 20px;
}

.promo-code {
    display: inline-block;
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: bold;
    color: #2c3e50;
    border: 2px dashed #ffd700;
}

.important-notice {
    text-align: center;
    color: #856404;
    background-color: #fff3cd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .schedule-block {
        margin-bottom: 20px;
    }

    .time-item {
        font-size: 1.1em;
    }

    .content-block {
        padding: 15px 0;
    }
}

/* Стили для спикеров */
.speaker-section {
    padding: 40px 0;
}

.speaker-image-wrapper {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.speaker-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.speaker-image-wrapper:hover img {
    transform: scale(1.05);
}

.speaker-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    height: 100%;
    padding: 20px;
}

.speaker-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.speaker-topic {
    font-size: 18px;
    color: #0d6efd;
    margin-bottom: 15px;
}

.speaker-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.speaker-divider {
    border-top: 1px solid #dee2e6;
    margin: 30px 0;
}
/* Стили для блока места проведения */
.venue-section {
    padding: 0 0 60px;
    text-align: center;
}

.venue-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.venue-address {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}
/* Адаптивные стили для карты */
@media (max-width: 768px) {
    .venue-title {
        font-size: 28px;
    }

    .venue-address {
        font-size: 16px;
        padding: 0 15px;
    }

    .map-container {
        margin-bottom: 30px;
    }

    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .venue-title {
        font-size: 24px;
    }

    .map-container iframe {
        height: 300px;
    }
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .speaker-image-wrapper {
        width: 450px;
        height: 250px;
        margin-bottom: 20px;
    }

    .speaker-info {
        text-align: center;
    }

    /* Убираем reverse для мобильной версии */
    .row.flex-row-reverse {
        flex-direction: column !important;
    }

    /* Все блоки спикеров будут отображаться в одинаковом порядке */
    .row {
        flex-direction: column !important;
    }

    /* Центрируем изображение и текст */
    .col-md-4,
    .col-md-8 {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .speaker-image-wrapper {
        width: 2100px;
        height: 200px;
    }

    .speaker-name {
        font-size: 20px;
    }

    .speaker-topic {
        font-size: 16px;
    }
}

/* Добавьте эти стили к существующим */
.description-block {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}

.description-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.block-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.block-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gala-dinner-section .card {
    transition: transform 0.3s ease;
}

.gala-dinner-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Обновленная навигация */
.nav-pills {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    /*padding: 1rem 0;*/
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    margin-bottom: 2rem;
    border-radius: 15px;
}

.nav-pills .nav-link {
    color: #333;
    margin: 0 5px;
    border-radius: 20px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}
.btn-primary {
    --bs-btn-hover-bg: #fd4d0d;
    background-color: #fddd0d;
     color: black;
     box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}
.btn-primary:active {
    background-color: #e0c200; /* Change to your desired active color */
    color: black; /* Ensure the text color remains readable */
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2); /* Optional: adjust the shadow if needed */
}

.nav-pills .nav-link.active {
    background-color:#fddd0d;
    color: black;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}
/*.additional-menu{*/

/*}*/

/* Стили для метро-коллажа */
.gala-dinner-section {
    padding: 40px 0;
    background-color: #fff;
}

.dinner-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    grid-gap: 15px;
    padding: 15px;
    overflow: hidden;
}

.dinner-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.5s ease;
    will-change: transform, opacity;
    transform-origin: center center;
}

/* Разные размеры для создания эффекта метро */
.dinner-card:nth-child(6n+1) {
    grid-column: span 2;
    grid-row: span 2;
}

.dinner-card:nth-child(6n+2) {
    grid-row: span 2;
}

.dinner-card:hover {
    transform: scale(1.02);
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.dinner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dinner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dinner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.dinner-card:hover .dinner-text {
    transform: translateY(0);
}

.dinner-text h5 {
    margin: 0 0 5px 0;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.dinner-text p {
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    line-height: 1.4;
}

.dinner-description {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Адаптивность для планшетов */
@media (max-width: 992px) {
    .dinner-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .dinner-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    
    .dinner-card:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .nav-pills {
        padding: 0.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: start;
        -webkit-overflow-scrolling: touch;
    }

    .nav-pills::-webkit-scrollbar {
        display: none;
    }

    .nav-pills .nav-link {
        white-space: nowrap;
        margin: 0 3px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* Отступ для секций, чтобы не перекрывались навигацией */
section[id] {
    scroll-margin-top: 150px;
}

/* Добавьте эти стили к существующим стилям галереи */
@keyframes shuffleIn {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* Анимация для карусели */
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}