/* static/css/events.css */

.container-events {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    background-color: #dee2e6;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Вертикальное меню для десктопа */
.styled-list-group .list-group-item {
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    color: #333;
    background-color: transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 5px;
}

.styled-list-group .list-group-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
    transform: translateX(5px);
}

.styled-list-group .list-group-item.active {
    background-color: #007bff;
    color: white;
    border: none;
}

#section-title {
    color: #007bff !important;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Мобильный селект (показывается только на мобильных) */
.mobile-section-select {
    display: none; /* По умолчанию скрыт */
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.mobile-section-select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Контент события */
.event-content {
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.event-content img,
.event-content iframe,
.event-content video {
    max-width: 100% !important;
    height: auto !important;
}

.event-content table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    display: block;
}

/* Адаптивность */
@media (max-width: 991px) {
    .container-events {
        padding: 15px;
    }

    .main-content {
        padding: 15px;
    }

    /* Показываем мобильный селект на экранах < 992px */
    .mobile-section-select {
        display: block;
    }

    /* Скрываем вертикальное меню на мобильных */
    .d-none.d-md-block {
        display: none !important;
    }

    /* Показываем заголовок секции на мобильных */
    #section-title.d-none.d-md-block {
        display: block !important;
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    .container-events {
        padding: 10px;
    }

    .main-content {
        padding: 12px;
    }

    h3.mb-4 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1rem !important;
    }

    .mobile-section-select {
        padding: 10px;
        font-size: 15px;
        margin-bottom: 15px;
    }

    #section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 575px) {
    .container-events {
        padding: 5px;
    }

    .main-content {
        padding: 10px;
    }

    h3.mb-4 {
        font-size: 1.3rem;
    }

    .mobile-section-select {
        padding: 8px;
        font-size: 14px;
    }

    #section-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 375px) {
    .mobile-section-select {
        padding: 6px;
        font-size: 13px;
    }

    h3.mb-4 {
        font-size: 1.1rem;
    }
}

/* В static/css/events.css добавьте: */

.event-page-container {
    margin-top: 20px;
}

/* Для мобильного селекта сделаем его более заметным */
.mobile-select-wrapper {
    position: relative;
    z-index: 10;
}

.mobile-section-select {
    position: relative;
    z-index: 5;
    background-color: white;
    border: 2px solid #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

@media (max-width: 991px) {
    .event-page-container {
        margin-top: 15px;
    }

    .mobile-section-select {
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .event-page-container {
        margin-top: 10px;
    }
}