/* Footer */

.footer-columns-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    width: 100%;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.social-column {
    text-align: center;
}

.social-icons, .student-social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .footer-columns-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-columns-container {
        grid-template-columns: 1fr;
    }
}

/* Для копирайта */
.footer-module-wrapper {
    width: 100%;
}

/* --- Header Styles --- */
.header {
    background: #112855;
    padding-left: 30px;
    padding-right: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* ОСНОВНОЙ КОНТЕЙНЕР ДЛЯ ЛОГОТИПА И МЕНЮ */
.grid-child.container-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    height: 100px;
    margin: 0 auto;
    padding: 10px 0;
}

/* ЛОГОТИП СЛЕВА */
.grid-child.container-nav .navbar-brand {
    flex-shrink: 0;
    max-width: 350px;
    width: auto;
}

/* КОНТЕЙНЕР ДЛЯ МЕНЮ И ПОИСКА СПРАВА */
.grid-child.container-nav .nav-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}

/* ПОИСК В НАВИГАЦИИ */
.grid-child.container-nav .container-search {
    margin-left: 20px;
}

/* ВЕРХНИЕ ПАНЕЛИ */
.container-topbar {
    display: flex;
}

.container-below-top {
    display: flex;
    justify-content: flex-end;
   
}

/* ===== SEARCH MODULE STYLES ===== */
.js-finder-searchform label.finder {
    display: none !important;
}

.js-finder-searchform input::placeholder {
    color: #999 !important;
}

.js-finder-searchform .mod-finder__search {
    display: flex;
}

.js-finder-searchform .form-control {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 200px;
}

.js-finder-searchform .btn {
    border-radius: 0 4px 4px 0;
    margin-left: -1px;
    background-color: #495057;
    color: #ffffff;
    border-color: #495057;
}

/* Адаптивность для мобильных */
@media (max-width: 991px) {
    .grid-child.container-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .grid-child.container-nav .nav-content {
        justify-content: center;
        margin-top: 15px;
        flex-direction: column;
    }
    
    .grid-child.container-nav .navbar-brand {
        text-align: center;
    }
    
    .grid-child.container-nav .container-search {
        margin-left: 0;
        margin-top: 10px;
    }
}




/* Стили для модуля bottom-a (новостной слайдер) */
.container-bottom-a {
    margin: 30px 0;
    padding: 0 15px;
}

.container-bottom-a .card {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

/* Стили для JT Content Slider в позиции bottom-a */
.container-bottom-a {
    margin: 30px 0;
    padding: 0 15px;
}

/* Основной контейнер слайдера */
.jt-content-slider {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Заголовок "ПОСЛЕДНИЕ НОВОСТИ" */
.jt-content-slider .slider-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a6b 100%);
    color: #ffffff;
    padding: 20px 25px;
    font-family: 'Arial', sans-serif;
}

.jt-content-slider .slider-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

.jt-content-slider .slider-header .news-subtitle {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 5px;
    display: block;
    color: rgba(255, 255, 255, 0.9);
}

/* Контейнер слайдов */
.jt-content-slider .slider-container {
    padding: 0;
}

/* Отдельный слайд */
.jt-content-slider .slider-item {
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
    position: relative;
}

.jt-content-slider .slider-item:last-child {
    border-bottom: none;
}

.jt-content-slider .slider-item:hover {
    background-color: #f8f9fa;
}

/* Заголовки статей в слайдере */
.jt-content-slider .item-title {
    color: #2c5aa0;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.jt-content-slider .item-title a {
    color: inherit;
    text-decoration: none;
}

.jt-content-slider .item-title a:hover {
    color: #1e3a6b;
    text-decoration: underline;
}

/* Текст статьи */
.jt-content-slider .item-introtext {
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.jt-content-slider .item-introtext p {
    margin-bottom: 10px;
}

/* Даты и метки */
.jt-content-slider .item-date {
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
}

/* Категории */
.jt-content-slider .item-category {
    background: #28a745;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

/* Кнопка "Подробнее" */
.jt-content-slider .readmore {
    color: #2c5aa0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}

.jt-content-slider .readmore:hover {
    color: #1e3a6b;
    text-decoration: underline;
}

/* Особый стиль для выделенных статей */
.jt-content-slider .featured-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #28a745;
}

.jt-content-slider .featured-item .item-title {
    color: #28a745;
}

/* Кнопки навигации слайдера */
.jt-content-slider .slick-prev,
.jt-content-slider .slick-next {
    background: #2c5aa0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    z-index: 1;
}

.jt-content-slider .slick-prev:hover,
.jt-content-slider .slick-next:hover {
    background: #1e3a6b;
}

.jt-content-slider .slick-prev:before,
.jt-content-slider .slick-next:before {
    color: #ffffff;
}

/* Точки (индикаторы) слайдера */
.jt-content-slider .slick-dots {
    bottom: -30px;
}

.jt-content-slider .slick-dots li button:before {
    color: #2c5aa0;
    font-size: 10px;
}

.jt-content-slider .slick-dots li.slick-active button:before {
    color: #1e3a6b;
}

/* Стили для изображений в слайдере */
.jt-content-slider .item-image {
    margin-bottom: 15px;
}

.jt-content-slider .item-image img {
    border-radius: 4px;
    width: 100%;
    height: auto;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container-bottom-a {
        margin: 20px 0;
        padding: 0 10px;
    }
    
    .jt-content-slider .slider-header {
        padding: 15px 20px;
    }
    
    .jt-content-slider .slider-header h2 {
        font-size: 20px;
    }
    
    .jt-content-slider .slider-item {
        padding: 20px;
    }
    
    .jt-content-slider .item-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .jt-content-slider .slider-header h2 {
        font-size: 18px;
    }
    
    .jt-content-slider .slider-item {
        padding: 15px;
    }
    
    .jt-content-slider .slider-header .news-subtitle {
        font-size: 12px;
    }
}
/* Стиль для блоков персоналий */
@media (width >= 577px){
  .blockrow {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  }
}
@media (width <= 576px){
  .blockrow {
  display: block;
  flex-direction: column;
  flex-wrap: nowrap;
}
}
@media (width >= 992px){
.blockimg{
  float: left;
  width:30%; 
  padding: 20px; 
  text-align: center; 
  }
.blocktext{
  float: left;
  width:70%; 
  padding: 20px; 
  text-align: left; 
  }
}
@media (width <= 991px){
.blockimg{
  float: left;
  width:50%; 
  padding: 20px; 
  text-align: center; 
  }
.blocktext{
  float: left;
  width:50%; 
  padding: 20px; 
  text-align: left; 
  }
}
@media (width <= 576px){
.blockimg{
  float: left;
  width:100%; 
  padding: 20px; 
  text-align: center; 
  }
.blocktext{
  float: left;
  width:100%; 
  padding: 20px; 
  text-align: left; 
  }
}

/* Стиль для блоков истории */
@media (width >= 577px){
  .history-block {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
  }
}
@media (width <= 576px){
  .history-block {
    display: block;
    flex-direction: column;
    flex-wrap: nowrap;
    margin-bottom: 30px;
  }
}

/* Изображения одинакового размера */
.history-img img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #ddd;
}

/* Адаптивность для изображений */
@media (width >= 992px){
  .history-img{
    float: left;
    width:30%; 
    padding: 20px; 
    text-align: center; 
  }
  .history-text{
    float: left;
    width:70%; 
    padding: 20px; 
    text-align: left; 
  }
}
@media (width <= 991px) and (width >= 577px){
  .history-img{
    float: left;
    width:50%; 
    padding: 20px; 
    text-align: center; 
  }
  .history-img img {
    width: 180px;
    height: 180px;
  }
  .history-text{
    float: left;
    width:50%; 
    padding: 20px; 
    text-align: left; 
  }
}
@media (width <= 576px){
  .history-img{
    float: left;
    width:100%; 
    padding: 20px; 
    text-align: center; 
  }
  .history-img img {
    width: 150px;
    height: 150px;
  }
  .history-text{
    float: left;
    width:100%; 
    padding: 20px; 
    text-align: left; 
  }
}

/* Стиль ссылок */
.history-text h3 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.history-text h3 a:hover {
  color: #e74c3c;
  text-decoration: underline;
}

/* Стиль описания */
.history-text p {
  color: #666;
  line-height: 1.5;
  margin-top: 10px;
}

/*--style table--*/
table {
    width: 100%; 
    border-collapse: collapse;
    border: 1px solid #999;
   }
   td, th {
    padding: 5px; 
    border: 1px solid #999; 
    text-align: center;
   }
   tbody tr:nth-child(even) {
    background: #fcf8e3; /* Зебра */
   }
   table tr:first-child {
    background-color: #dff0d8;
}