.osce-hero {
  position: relative;
  height: 700px; /* Фиксированная высота для солидности */
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

/* Фон с легким зумом */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.8); /* Слегка приглушаем фото */
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
}

/* Белая или темно-синяя карточка с текстом */
.hero-card {
  background: rgba(27, 61, 119, 0.75); /* Глубокий синий с прозрачностью */
  padding: 30px 50px;
  max-width: 800px;
  backdrop-filter: blur(10px); /* Эффект матового стекла */
  border-left: 5px solid #c4343d; /* Красная линия слева */
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
  margin-left: -10px;
}

.hero-badge {
  display: inline-block;
  color: #c4343d;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero-title {
  color: #fff;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  margin: 0 0 30px 0;
}

.hero-line {
  width: 50px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  margin-bottom: 30px;
}

/* Кнопка */
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #c4343d;
  color: #fff;
  text-decoration: none;
  padding: 15px 35px;
  font-weight: 700;
  font-size: 15px;
  transition: 0.3s;
}

.hero-btn:hover {
  background: #fff;
  color: #1b3d77;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .osce-hero {
    height: 500px;
    min-height: auto;
  }
  .hero-card {
    padding: 20px 40px;
    margin: 20px;
  }
  .hero-title {
    font-size: 16px;
  }
}

/* Сетка */
.staff-full-rows {
  display: flex;
  flex-direction: column;
  gap: 25px; /* Чуть больше пространства между карточками */
}

.staff-wide-card {
  display: flex;
  align-items: stretch; /* Растягиваем на всю высоту */
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px; /* Более мягкие углы */
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.staff-wide-card:hover {
  box-shadow: 0 12px 30px rgba(27, 61, 119, 0.12);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* Фото */
.staff-wide-photo {
  width: 160px; /* Немного увеличим */
  height: auto;
  min-height: 160px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.5s ease;
}

.staff-wide-card:hover .staff-wide-photo {
  transform: scale(1.05); /* Легкий зум фото при наведении на карточку */
}

/* Основная информация */
.staff-wide-content {
  flex-grow: 1;
  padding: 25px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.staff-wide-name {
  font-family: "Geologica", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1b3d77;
  text-decoration: none;
  line-height: 1.2;
}

.staff-wide-pos {
  width: max-content;
  font-size: 11px !important;
  font-weight: 800;
  color: #c4343d !important;
  background-color: rgba(196, 52, 61, 0.08);
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 12px 0 18px 0;
  border: 1px solid rgba(196, 52, 61, 0.1);
}

/* Детали (Почта, Курсы) */
.staff-wide-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.staff-detail-link {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}

.staff-detail-link i {
  color: #1b3d77;
  font-size: 18px;
  margin-top: 2px; /* Выравниваем иконку по центру первой строки текста */
  flex-shrink: 0;
}

.staff-detail-link strong {
  color: #1b3d77;
  font-weight: 600;
}

.staff-detail-link:hover {
  color: #c4343d;
}

/* Кнопка Read More */
.staff-wide-action {
  display: flex;
  align-items: center;
  padding: 0 35px;
}

.staff-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; /* Сделаем её стильной круглой или компактной */
  height: 48px;
  background: #f8fafc;
  color: #1b3d77;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.staff-wide-card:hover .staff-profile-btn {
  background: #1b3d77;
  color: #fff;
  border-color: #1b3d77;
}

.staff-wide-card:hover .staff-profile-btn::before {
  margin-right: 10px;
  opacity: 1;
  width: auto;
}

/* Адаптивность */
@media (max-width: 768px) {
  .staff-wide-card {
    flex-direction: column;
  }
  .staff-wide-photo {
    width: 100%;
    height: 220px;
  }
  .staff-wide-action {
    padding: 0 25px 25px;
    justify-content: flex-start;
  }
  .staff-profile-btn {
    width: 100%;
    height: 45px;
  }
  .staff-profile-btn::before {
    content: "Read more";
    width: auto;
    opacity: 1;
    margin-right: 10px;
  }
}

/* Стили для внутренней страницы */

.single-staff {
  padding: 0;
  border: 0;
}

/* Общие настройки страницы */
.staff-single-page {
  padding: 60px 0 90px;
  font-family: "Geologica", sans-serif;
}

.staff-header-flex {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  margin-bottom: 50px;
}

/* Фотография */
.staff-single-photo-wrap {
  flex-shrink: 0;
  width: 300px; /* Солидный размер на странице профиля */
}

.staff-single-photo {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.staff-single-photo.placeholder {
  width: 300px;
  height: 350px;
  background: #f4f7f9;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: #1b3d77;
}

/* Инфо-блок */
.staff-single-info-block h1 {
  font-size: 42px;
  font-weight: 500;
  color: #1b3d77;
  margin: 0 0 10px 0;
  line-height: 1.1;
}

/* Используем наш новый стиль бейджа для должности */
.staff-single-info-block .staff-wide-pos {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #c4343d;
  background-color: rgba(196, 52, 61, 0.08);
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(196, 52, 61, 0.15);
  margin-bottom: 25px;
}

/* Контакты */
.staff-single-contacts {
  display: flex;
  flex-direction: column;
}

.staff-single-contact-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  line-height: 1.4;
  font-size: 16px;
  transition: 0.3s;
}

.staff-single-contact-link i {
  font-size: 24px;
  color: #1b3d77;
}

.staff-single-contact-link:hover {
  color: #1b3d77;
  transform: translateX(5px);
}

.bio-title {
  font-family: "Merriweather", serif;
  font-size: 28px;
  color: #1b3d77;
  margin-bottom: 25px;
  position: relative;
}

.bio-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #c4343d;
}

.bio-text {
  font-size: 17px;
  line-height: 1.8;
}

/* Адаптивность */
@media (max-width: 768px) {
  .staff-header-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }
  .staff-single-info-block h1 {
    font-size: 32px;
  }
  .staff-single-contact-link {
    justify-content: center;
  }
}

/* Сетка страницы */
.staff-single-layout {
  display: grid;
  grid-template-columns: 1fr 320px; /* Сайдбар фиксированной ширины */
  gap: 60px;
}

/* Сайдбар */
.staff-sidebar {
  position: sticky;
  top: 100px; /* Расстояние от верха экрана при прокрутке */
  height: fit-content;
  border-left: 1px solid #eee;
  padding-left: 30px;
}

.sidebar-title {
  font-size: 20px;
  color: #1b3d77;
  margin-bottom: 25px;
  font-weight: 700;
}

.sidebar-staff-list {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Чуть плотнее, раз их много */
}

/* Контейнер для прокрутки */
.sidebar-staff-scroll {
  max-height: 850px; /* Высота, после которой появляется скролл */
  overflow-y: auto; /* Вертикальная прокрутка */
  padding-right: 10px; /* Отступ, чтобы скроллбар не налезал на текст */
}

/* Стилизация полосы прокрутки (Scrollbar) для Chrome/Safari */
.sidebar-staff-scroll::-webkit-scrollbar {
  width: 4px; /* Очень тонкий и аккуратный */
}

.sidebar-staff-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.sidebar-staff-scroll::-webkit-scrollbar-thumb {
  background: #1b3d77; /* Ваш фирменный синий */
  border-radius: 10px;
}

.sidebar-staff-scroll::-webkit-scrollbar-thumb:hover {
  background: #c4343d; /* Меняем на красный при наведении для интерактива */
}

/* Для Firefox */
.sidebar-staff-scroll {
  scrollbar-width: thin;
  scrollbar-color: #1b3d77 #f1f1f1;
}

.sidebar-staff-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.sidebar-staff-item:hover {
  background: #fff;
  border-color: #eef2f6;
  box-shadow: 0 4px 12px rgba(27, 61, 119, 0.05);
}

.sidebar-staff-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  margin-right: 12px;
  border: 1px solid #eee;
}

.sidebar-staff-meta {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0; /* Для обрезки длинного текста */
}

.sidebar-staff-name {
  font-size: 14px;
  font-weight: 600;
  color: #1b3d77;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-staff-pos {
  font-size: 12px;
  line-height: 1.4;
  color: #c4343d;
  font-weight: 500;
}

.sidebar-staff-item i {
  color: #ccc;
  font-size: 18px;
  transition: 0.2s;
}

.sidebar-staff-item:hover i {
  color: #1b3d77;
  transform: translateX(3px);
}

/* Адаптив: на мобилках сайдбар уходит вниз */
@media (max-width: 1024px) {
  .staff-single-layout {
    grid-template-columns: 1fr;
  }
  .staff-sidebar {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #eee;
    padding-top: 40px;
  }
}

.universal-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.u-file-card {
  display: flex;
  flex-direction: column;
}

.u-file-cover {
  position: relative;
  width: 100%;

  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: #eee;
}

.u-file-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Оверлей при наведении */
.u-file-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 61, 119, 0.85); /* Ваш фирменный синий */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 40px;
  opacity: 0;
  transition: 0.3s;
  text-decoration: none;
}

.u-file-card:hover .u-file-overlay {
  opacity: 1;
}
.u-file-card:hover img {
  transform: scale(1.1);
}

.u-file-info {
  padding-top: 15px;
  text-align: left;
}

.u-file-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1b3d77;
  margin: 0 0 5px 0;
  line-height: 1.3;
}

.u-file-link {
  font-size: 13px;
  font-weight: 600;
  color: #c4343d; /* Красный акцент */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.u-file-link:hover {
  text-decoration: underline;
}

.page-selected-posts-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.psp-item {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  padding: 12px;
  transition: 0.3s;
  text-decoration: none;
}

.psp-item:hover {
  border-color: #1b3d77;
  box-shadow: 0 5px 15px rgba(27, 61, 119, 0.05);
}

.psp-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  margin-right: 20px;
}

.psp-img.placeholder {
  background: #f4f7f9;
  color: #1b3d77;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.psp-content {
  flex-grow: 1;
}

.psp-date {
  display: block;
  font-size: 11px;
  color: #c4343d;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.psp-title {
  font-family: "Geologica", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1b3d77;
  text-decoration: none;
  line-height: 1.3;
}

.psp-content p {
  margin: 5px 0 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.psp-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 20px;
  transition: 0.3s;
}

.psp-item:hover .psp-arrow {
  color: #1b3d77;
  transform: translateX(5px);
}

.widget-recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wrp-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* Если картинка есть */
.wrp-thumb {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.wrp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Контентная часть */
.wrp-content {
  flex-grow: 1; /* Растягивается на всё оставшееся или полное пространство */
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Категория и Дата */
.wrp-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wrp-cat {
  color: #c4343d; /* Красный для категории */
}

.wrp-date {
  color: #94a3b8;
}

/* Заголовок */
.wrp-title {
  font-size: 15px;
  font-weight: 500;
  color: #1b3d77;
  text-decoration: none;
  line-height: 1.4;
  transition: 0.2s;
}

.wrp-title:hover {
  color: #c4343d;
}

/* Если картинки НЕТ (стили на всякий случай, хотя flex это сделает сам) */
.wrp-item.no-thumb .wrp-content {
  width: 100%;
}

/* MAIN WRAPPER */
.osce-faculties {
}

.of-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.of-title {
  font-family: "Merriweather", serif;
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 20px;
}

@media(max-width:768px){
  .of-title,.pub-title {
    font-size: 25px;
  }
}

.of-text {
  font-family: "Geologica", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  max-width: 450px;
  margin-bottom: 30px;
}

.of-right {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 50%;
  margin-left: auto;
}

.of-card {
  flex: 1 1 calc(50% - 10px); /* 50% ширины минус половина gap */
  height: 240px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;

  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.of-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* степень затемнения */
  transition: background 0.3s ease;
}

.of-card:hover::after {
  background: rgba(0, 0, 0, 0.55); /* затемнение при наведении */
}

.of-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.of-card span {
  font-family: "Merriweather", serif;
  text-align: left;
  font-size: 18px;
  line-height: 1.5;
  margin-top: auto;
  padding-bottom: 20px;
  padding-left: 20px;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  font-weight: 600;
  max-width: 250px;
  z-index: 2;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .of-container {
    flex-direction: column;
    text-align: center;
  }

  .of-right {
    width: 100%;
  }


}

@media (max-width: 768px) {
  .of-right {
    flex-direction: column;
  }

  .of-card {
    flex: auto;
    height: 280px;
  }
}

.rts__research--single--thumb img {
  height: 240px !important;
}

/* Сетка карточек */
.admission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Сама карточка */
.admission-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  padding: 40px 30px;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  border-radius: 4px; /* Академический стиль любит острые или слегка скругленные углы */
}

/* Иконка */
.ac-icon {
  font-size: 32px;
  color: #c4343d; /* Красный акцент */
  margin-bottom: 25px;
  transition: 0.4s;
}

/* Заголовок */
.ac-title {
  font-family: "Geologica", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1b3d77;
  line-height: 1.4;
  margin: 0 0 30px 0;
  transition: 0.4s;
}

/* Нижняя часть с кнопкой */
.ac-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c4343d;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ac-footer i {
  transition: transform 0.3s ease;
}

/* ЭФФЕКТЫ ПРИ НАВЕДЕНИИ */
.admission-card:hover {
  background: #1b3d77; /* Окрашивается в синий */
  border-color: #1b3d77;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(27, 61, 119, 0.15);
}

.admission-card:hover .ac-title,
.admission-card:hover .ac-icon,
.admission-card:hover .ac-footer {
  color: #ffffff; /* Всё становится белым на синем фоне */
}

.admission-card:hover .ac-footer i {
  transform: translateX(8px); /* Стрелочка дергается вправо */
}

/* Линия-индикатор, которая появляется сверху */
.admission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #c4343d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.admission-card:hover::before {
  transform: scaleX(1);
}

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

@media (max-width: 768px) {
  .admission-grid {
    grid-template-columns: 1fr;
  }
  .admission-card {
    padding: 30px;
  }
}

/* Кастомный виджет архива */
.osce-archive-widget {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 20px; /* Чтобы архив «прилипал» при скролле */
}

.archive-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #1b3d77;
}

.archive-header i {
  color: #c4343d;
  font-size: 20px;
}

.archive-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 0 !important;
  margin: 0;

  letter-spacing: 0.5px;
}

/* Компактный список-сетка */
.archive-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap; /* Года будут идти в ряд, если места хватит, или плотным списком */
    gap: 8px;
}

.archive-list li {
    flex: 1 1 45%; /* Два года в ряд */
    margin: 0 !important;
    border: none !important;
}

.archive-list li a {
    display: block;
    padding: 8px 12px;
    background: #f4f7f9;
    color: #444;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: none !important;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

/* Эффект при наведении */
.archive-list li a:hover {
    background: #1b3d77;
    color: #fff !important;
    border-color: #1b3d77;
    transform: translateY(-2px);
}

/* Если нужно в один столбик, но еще компактнее */
/* Просто удалите flex-wrap и flex: 1 1 45% выше, если хотите строгий список */

.archive-list li a:active {
    transform: translateY(0);
}

/* Пагинация */

.blog-pagination {
  margin-top: 40px;
}

.pagination .page-numbers {
  width: 35px;
  height: 35px;
  display: inline-flex;
  font-weight: 500;
  font-size: 15px;
  align-items: center;
  justify-content: center;

  background: #fff;
  border: 1px solid #e2e8f0;

  border-radius: 8px;
  margin: 0 5px;
  color: #1b3d77;
  text-decoration: none;
}

.reactheme-pagination-area .nav-links,
.pagination-area .nav-links {
  margin: 0;
}

.pagination .page-numbers.current {
  background: #1b3d77;
  color: #fff;
  border-color: #1b3d77;
}

.modern-blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.modern-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(27, 61, 119, 0.1);
  border-color: #1b3d77;
}

.blog-card-img {
  height: 100%;
  min-height: 220px;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.modern-blog-card:hover .blog-card-img img {
  transform: scale(1.08);
}

.blog-card-body {
  padding: 25px;
}

.blog-card-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #64748b;
}
.blog-card-meta i {
  color: #c4343d;
  margin-right: 5px;
}
.blog-card-meta a {
  color: #64748b;
  text-decoration: none;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  border: none;
  padding: 0;
}
.blog-card-title a {
  color: #1b3d77;
  text-decoration: none;
  transition: 0.2s;
}
.blog-card-title a:hover {
  color: #c4343d;
}

.blog-card-excerpt {
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c4343d;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
}
.blog-read-more:hover {
  gap: 12px;
  color: #1b3d77;
}

/* Фикс для адаптивности */
@media (max-width: 767px) {
  .blog-card-img {
    min-height: 200px;
    height: 200px;
  }
}

.custom-archive-h1 {
  font-size: 45px;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 768px) {
  .custom-archive-h1 {
    font-size: 25px;
  }
}

/* === ОБЩИЕ СТИЛИ (БЕЗ ПЕРЕМЕННЫХ) === */
.site-header a {
  transition: all 0.3s ease;
}

/* ROW 1: TOP BAR */
.header-top {
  background: rgba(27, 61, 121, 0.05);
  padding: 12px 0;
  border-bottom: 1px solid rgba(27, 61, 121, 0.1);
}

.top-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img {
  max-height: 70px;
  width: auto;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Соцсети */
.social-circles {
  display: flex;
  gap: 10px;
}

.social-item {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b3d77;
  border: 1px solid rgba(27, 61, 121, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-item:hover {
  background: #1b3d77;
  color: #fff;
  transform: translateY(-3px);
}

/* Поиск */
.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-form input {
  border: 1px solid rgba(27, 61, 121, 0.2);
  border-radius: 20px;
  padding: 6px 15px 6px 35px;
  font-size: 14px;
  outline: none;
  width: 180px !important;
  transition: all 0.3s ease;
}

.header-search-form input:focus {
  width: 220px !important;
  border-color: #1b3d77;
}

.header-search-form i {
  position: absolute;
  left: 12px;
  color: #1b3d77;
}

/* Язык */
.lang-box {
  font-weight: 700;
  color: #1b3d77;
  cursor: pointer;
  font-size: 14px;
}

/* === DESKTOP MENU (ROW 2) === */
.header-nav {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 100%;
  z-index: 999;
  transition: top 0.3s ease;
}

/* STICKY STYLES */
.header-nav.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  animation: slideDown 0.4s ease forwards;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ADMIN BAR FIX (PROBLEM 4) */
.admin-bar .header-nav.is-sticky {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .header-nav.is-sticky {
    top: 46px;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  margin-left: -22px;
}

.main-menu > li {
  position: relative;
}

.main-menu > li > a {
  display: block;
  padding: 18px;
  color: #1b3d77;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.main-menu > li:hover > a {
  color: #c4343d;
}

/* Level 2 Sub-menu */
.main-menu li ul {
  position: absolute;
  margin-left: 0;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 240px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-top: 3px solid #c4343d;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  padding: 10px 0;
  list-style: none;
  z-index: 1000;
}

.main-menu li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-menu ul li {
  position: relative;
}

/* Нужно для позиционирования 3 уровня */
.main-menu ul li a {
  padding: 10px 20px;
  display: block;
  color: #1b3d77;
  text-decoration: none;
  
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

.main-menu ul li:last-child a {
  border-bottom: none;
}

.main-menu ul li a:hover {
  background: rgba(27, 61, 121, 0.05);
  color: #c4343d;
}

/* LEVEL 3 MENU (PROBLEM 5 FIX) */
.main-menu ul li ul {
  top: 0;
  /* На одном уровне с родителем */
  left: 100%;
  /* Сдвиг вправо */
  margin-left: 0;
  /* Убираем отступы если есть */
  transform: translateX(10px);
  /* Анимация сбоку */
}

.main-menu ul li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Стрелочки только для десктопа */
@media (min-width: 992px) {
/*   .menu-item-has-children > a::after {
    content: "\ea4c";
    font-family: "remixicon";
    margin-left: 5px;
    font-size: 12px;
    vertical-align: middle;
    display: inline;
  } */

/*   .main-menu ul .menu-item-has-children > a::after {
    content: "\ea6e";
    float: right;
    margin-top: 3px;
  } */
}

/* Стрелка вправо для подменю */

/* === MOBILE STYLES (PROBLEMS 1 & 2) === */
.mobile-bar {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1001;
}

.mobile-logo img {
  max-height: 40px;
  width: auto;
}

.menu-toggle {
  font-size: 28px;
  color: #1b3d77;
  cursor: pointer;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
}

.mobile-menu-container {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 2001;
  transition: 0.4s ease;
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.mobile-menu-container.active {
  right: 0;
}

.mobile-close {
  text-align: right;
  margin-bottom: 20px;
  font-size: 24px;
  color: #1b3d77;
  cursor: pointer;
}

/* Mobile Nav Items */
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  border-bottom: 1px solid #eee;
}

.mobile-nav li a {
  display: block;
  padding: 12px 0;
  color: #1b3d77;
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
}

/* Mobile Submenu Toggle */
.mobile-nav .menu-item-has-children {
  position: relative;
}

.mobile-nav .sub-menu {
  display: none;
  background: #f9f9f9;
  padding-left: 15px;
  border-top: 1px solid #eee;
}

.dropdown-toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #1b3d77;
  cursor: pointer;
}

.dropdown-toggle.active {
  transform: rotate(180deg);
}

@media (max-width: 991px) {
  .header-top,
  .header-nav {
    display: none;
  }

  .mobile-bar {
    display: flex;
  }

  .mobile-nav .menu-item-has-children > a::after {
    display: none !important;
  }
}

.staff-single-page {
  padding: 60px 0;
}
.staff-single-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
}

.staff-header-flex {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
}
.staff-single-photo-wrap {
  flex: 0 0 280px;
}
.staff-single-photo {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.staff-single-info-block h1 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 32px;
  font-weight: 800;
}
.staff-wide-pos {
  font-size: 18px;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.staff-single-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.staff-single-contact-link i {
  color: var(--secondary);
  font-size: 20px;
}
.staff-single-contact-link:hover {
  color: var(--primary);
}

.staff-main-content .entry-content {
  background: #fdfdfd;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #eee;
}
.bio-title {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
  padding-bottom: 5px;
}

.courses-block {
  margin-top: 30px;
  padding: 20px;
  background: var(--top-bg);
  border-left: 4px solid var(--primary);
}
.courses-title {
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 5px;
}

/* Сайбар */
.sidebar-title {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 20px;
}
.sidebar-staff-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.sidebar-staff-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  padding: 10px;
  border-radius: 6px;
  transition: 0.3s;
  border: 1px solid transparent;
}
.sidebar-staff-item:hover {
  background: #fff;
  border-color: #eee;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.sidebar-staff-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.sidebar-staff-meta {
  flex-grow: 1;
}
.sidebar-staff-name {
  display: block;
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}

@media (max-width: 991px) {
  .staff-single-layout {
    grid-template-columns: 1fr;
  }
  .staff-header-flex {
    flex-direction: column;
  }
  .staff-single-photo-wrap {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .staff-single-info-block {
    text-align: center;
    width: 100%;
  }
  .staff-single-contacts {
    align-items: center;
  }
}





.footer-menu-title p{
	margin:0 !important;
	padding:0 !important;
}


.react-copyright .description p{
  margin-bottom: 20px !important;
}

.reactheme-blog-details .news-details-inner,.reactheme-blog-details .type-post .single-content-full .bs-desc{
  padding-bottom: 0 !important;
}



/* Общий контейнер */
.pub-container {
    display: flex;
    width: 100%;
    min-height: 400px;
    background: #fff;
    font-family: serif; /* Или ваш шрифт */
}

/* Общие стили колонок */
.pub-column {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Синяя центральная колонка */
.pub-column.central {
    background-color: #1e3a6d; /* Ваш темно-синий цвет */
    color: #ffffff;
}

/* Заголовки */
.pub-title {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 30px;
    font-weight: normal;
}

.central .pub-title {
    color: #ffffff;
}

/* Контейнер для ссылок */
.pub-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Стили кнопок-ссылок */
.pub-link {
    font-family: "Geologica";
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border: 1px solid #333;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    width: fit-content;
    min-width: 220px;
    font-size: 16px;
}

/* Ссылки в синей колонке */
.central .pub-link {
    border-color: #ffffff;
    color: #ffffff;
}

/* Эффект при наведении */
.pub-link:hover {
    background-color: rgba(0,0,0,0.05);
    padding-left: 25px;
}

.central .pub-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.arrow {
    margin-left: 15px;
    font-size: 18px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .pub-container {
        flex-direction: column;
    }
    .pub-column {
        padding: 40px 20px;
    }
}


/* ВАЖНО: Делаем колонку относительной, чтобы позиционировать фон внутри неё */
.pub-column {
    position: relative;
    z-index: 1; /* Контент выше фона */
    overflow: hidden; /* Чтобы картинка не вылезала за края */
    transition: background-color 0.3s; /* Плавный переход цвета самой колонки, если надо */
}

/* Слой для фоновой картинки */
.pub-column-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    
    /* Скрыт по умолчанию */
    opacity: 0;
    z-index: -1; /* Позади текста */
    transition: opacity 0.4s ease-in-out, transform 0.4s ease;
    
    /* Небольшое увеличение при появлении для красоты */
    transform: scale(1.05);
    pointer-events: none;
}

/* Затемнение картинки, чтобы текст читался */
.pub-column-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Градиент или цвет поверх фото.  */
    background: rgba(0, 0, 0, 0.6); 
    /* Если в синей колонке нужно синее затемнение, можно добавить специфичность */
}

/* Когда JS добавляет класс .is-active */
.pub-column-bg.is-active {
    opacity: 1;
    transform: scale(1); /* Возвращаем к нормальному размеру плавно */
}

/* Чтобы текст точно был белым при появлении картинки во ВСЕХ колонках, 
   можно добавить это, если картинки темные */
.pub-column:has(.pub-column-bg.is-active) .pub-title,
.pub-column:has(.pub-column-bg.is-active) .pub-link {
    color: #fff !important;
    border-color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Тень для читаемости */
}


.wrp-cat{
  display: none;
}





  .oa-year {
    font-size: 20px;
    margin: 36px 0 18px;

    border-left: 4px solid #e6e6e6;
    padding-left: 12px;
  }

  .oa-publication {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    align-items: flex-start;
  }

  .oa-publication img {
    width: 170px;
    height: auto;
    object-fit: cover;
    border: 1px solid #dcdcdc;
    background: #fff;
    flex-shrink: 0;
  }

  .oa-publication .meta {
    flex: 1 1 auto;
  }

  .oa-publication .title {
    display: inline-block;
    font-weight: 600;

    text-decoration: none;
    margin-bottom: 6px;
  }

  .oa-publication .title:hover { text-decoration: underline; }

  .oa-publication .author {
    font-size: 14px;
    color: #444;
    margin-top: 6px;
  }

  .oa-publication .excerpt {
    margin-top: 8px;
    color: #3b3b3b;
    font-size: 14px;
  }

  /* responsive */
  @media (max-width: 640px) {
    .oa-publication {
      flex-direction: column;
      align-items: stretch;
    }

    .oa-publication img {
      width: 100%;
      max-width: 320px;
      margin: 0 auto;
    }
  }

  .oa-print {
    margin-top: 30px;
  }

  .oa-print a {
    color: #0b57a4;
    text-decoration: none;
    font-weight: 600;
  }




  /* Стили для изображений только на страницах публикаций */
.is-publication-page .entry-content img, 
.is-publication-page .elementor-widget-theme-post-content img {
    float: left;
    height: 280px !important;
    width: auto !important;
    object-fit: cover;
    margin-right: 25px;
    margin-bottom: 15px;
    border-radius: 12px;
    display: inline-block;
}

/* Адаптивность: на мобилках убираем обтекание, чтобы картинка не была слишком узкой */
@media (max-width: 768px) {
    .is-publication-page .entry-content img {
        float: none;
        display: block;
        margin: 0 auto 15px;
        width: 100% !important;
        height: auto !important;
    }
}



