.video-title,
.photo-title,
.document-title {
    font-size: 40px;
    font-weight: bold;
    color: #0B2C5D;
    text-align: center;
}



.materials-title {
    color: var(--blue-700);
    margin-left: 20px;
    font-size: 40px;
    text-align: left;
    font-weight: bold;
    position: relative;
}

.materials-container {
    background-color: #0DA8CD;
    border-radius: 30px;
    color: white;
    width: 100%;
    height: 366px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    position: relative;
    box-shadow: var(--box-shadow), inset var(--box-shadow);
}

.photo-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 50px;
    /* Общий отступ снизу, если требуется для секции */
}

.photo-section img {
    width: 100px;
    height: 100px;
    margin-left: 12.5px;
    /* Половина от 25px между изображениями */
    margin-right: 12.5px;
    /* Половина от 25px между изображениями */
    border-radius: 15px;
    object-fit: cover;
}

.photo-section img:first-child {
    margin-left: 0;
    /* Чтобы убрать лишний левый отступ у первого изображения */
}

.photo-section img:last-child {
    margin-right: 0;
    /* Чтобы убрать лишний правый отступ у последнего изображения */
}

.photo-section p {
    margin-left: auto;
    font-size: 20px;
    color: #0B2C5D;
    font-weight: bold;
    text-transform: uppercase;
}


/* Позиционируем верхнюю границу */
.materials-container::before {
    top: -20px;
}

/* Позиционируем нижнюю границу */
.materials-container::after {
    bottom: -20px;
}

.materials-container img {
    max-width: 70%;
    height: 95%;
    margin-right: 60px;
}

.materials-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin-left: 20px;
    font-size: 40px;
    flex: 1;
    /* Дает возможность тексту и кнопке занимать больше пространства */
}

.materials-content p {
    font-weight: bold;
    margin: 0;
    font-size: 40px;
    line-height: 1.5;
    text-transform: uppercase;
}

.button-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    /* Используем space-around для равного распределения пространства */
    max-width: 1400px;
    /* Устанавливаем максимальную ширину контейнера */
    margin: 0 auto;
    /* Центрируем контейнер */
    padding: 20px;
    /* Добавляем отступы */
}

.section .button {
    margin-top: auto;
    /* Отодвигаем кнопку в самый низ секции */
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    background-color: #0DA8CD;
    transition: background-color 0.3s;
    font-size: 18px;
    /* Уменьшаем размер шрифта для лучшей адаптивности */
    text-align: center;
}

.section .button:hover {
    background-color: #009AC1;
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Три колонки одинаковой ширины */
    gap: 20px;
    /* Расстояние между секциями */
    margin-top: 20px;
    align-items: stretch;
    /* Растягиваем секции по высоте контейнера */
}

/* Обновленный стиль для каждой секции */
.section {
    color: #0B2C5D;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    /* При необходимости измените фон */
    display: flex;
    /* Используем Flexbox */
    flex-direction: column;
    /* Располагаем элементы сверху вниз */
    justify-content: space-between;
    /* Равномерное распределение пространства */

}

.section h2 {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 24px;
    margin-bottom: 10px;
}

.section hr {
    box-shadow: var(--box-shadow);
    margin: 20px auto;
    height: 2px;
    background-color: var(--blue-900);
    width: 100%;
}

.video-section,
.document-section {
    flex: 1;
    /* Позволяет содержимому занимать равное пространство */

}

.video-content {
    max-width: 600px;
    /* Установите желаемую максимальную ширину */
    width: 100%;
    /* Позволяет контейнеру адаптироваться к размерам родителя */
    margin: 0 auto;
    /* Центрирует контейнер внутри родительской секции */
    padding: 10px;
    /* Дополнительные отступы при необходимости */
    box-sizing: border-box;
    /* Учитывает отступы и границы в общей ширине */
}

/* Адаптивное масштабирование iframe или видео внутри .video-content */
.video-content-year {
    font-weight: bold;
    font-size: 20px;
}

.video-content-text {
    color: #1F4071;
    line-height: 25px;
    font-size: 18px;
    margin-bottom: 10px;
}

.video-content iframe,
.video-content video {

    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;

    aspect-ratio: 16/9;
    width: 100%;
    /* Видео занимает всю ширину контейнера */
    height: 100%;
    /* Автоматическая высота для сохранения пропорций */
    border: none;
    /* Убирает возможные рамки */
    /* Добавляет скругление углов при необходимости */
}


.document-card {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.year-box {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: #0DA8CD;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.document-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.document-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}


.document-square {
    width: 50px;
    height: 50px;
    background-color: #0DA8CD;
    margin-bottom: 10px;
}


.photo-card {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.photo-thumbnail-meta {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    overflow: hidden;
    object-fit: cover;
    position: relative;
}

.photo-thumbnail-img {
    height: 100px;
    width: auto;
    max-width: 100px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.photo-thumbnail-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: #0DA8CD;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
}

.photo-info {
    display: flex;
    flex-direction: column;
}

.photo-title-card {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: bold;
    color: #0B2C5D;
}

.photo-title-card a {
    text-decoration: none;
    text-transform: none;
    color: #0B2C5D;
}

.photo-date {
    margin: 0;
    color: #666;
    font-size: 14px;
}


.button {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    background-color: #0DA8CD;
}

.button-container .button {
    margin-right: 10px;
    flex: 1;
    /* Кнопки занимают равное пространство внутри контейнера */
}

.materials-title {
    font-size: 32px;
    font-weight: bold;
}

.materials-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.materials-content {
    max-width: 60%;
}