/* public/style.css */

body {
    font-family: 'HSESans-Regular', sans-serif;
    margin: 0;
    padding: 0;
  }
  
  header {
    padding: 20px;
    text-align: center;
  }

  .header-shadow {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    background-color: white; /* чтобы не было прозрачности */
    position: relative; /* если нужно, чтобы тень перекрывала элементы ниже */
  }
  
  nav {
    display: flex;
    justify-content: flex-start; /* ← вместо center */
    gap: 20px;
    margin-bottom: 20px;
    padding-left: 40px; /* ← добавляет отступ слева */
  }
  
  .search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
  }
  
  input[type="text"] {
    width: 400px;
    padding: 10px;
    font-size: 16px;
  }
  
  button {
    padding: 10px 20px;
    background-color: #102E72;
    color: white;
    border: none;
    cursor: pointer;
  }
  
  p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.5;
  }
  
  .center-image {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    margin-bottom: 50px;
  }
  
  .center-image img {
    max-width: 45%;
    height: auto;
  }

  /* Мобильные (480px и меньше) */
  @media (max-width: 990px) {
    .center-image img {
      max-width: 100%;
      height: auto;
    }
  }

  nav a {
    color: black;
    text-decoration: none;
  }
  
  nav a:hover {
    color: #102E72;
    text-decoration: underline;
  }

  nav a:not(:last-child)::after {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
  }
  
  nav a:last-child {
    margin-left: auto;
    margin-right: 0;
    padding: 8px 55px;
    border-radius: 4px;
  }

  .journal-section {
    background-color: #192b65;
    color: white;
    padding: 5px 20px 30px 60px; /* сверху, справа, снизу, слева */
    margin: 50px 0; /* внешний отступ: сверху */
    text-align: left;
  }
  
  .journal-title {
    font-size: 60px;
    margin: 15px 0 10px 0; /* top, right, bottom, left */
  }
  
  .journal-subtitle {
    font-size: 20px;
    font-family: 'HSESans-Thin', sans-serif;
    margin: 0;
    text-align: left;
    max-width: 90%;
  }

  .journal-link {
    display: block;
    text-align: right;
    margin-top: 20px;
    margin-right: 50px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: normal;
  }
  
  .journal-link:hover {
    text-decoration: underline;
    color: white;
  }

  .upcoming-conferences {
    background-color: #f0f0f0;
    padding: 20px 20px;
    text-align: center;
  }
  
  .section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  /* Общий стиль для секции с карточками */
  .cards-section {
    display: flex;
    justify-content: center; /* Выравнивание по центру */
    gap: 30px; /* Отступы между карточками */
    margin: 40px auto 80px auto; /* Отступ сверху 40px, снизу 60px */
    flex-wrap: wrap; /* Если экран мал, карточки переходят на новую строку */
    max-width: 1200px; /* Максимальная ширина контейнера */
  }
  
  /* Стиль для карточек */
  .card {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 280px;
    height: 200px;
    background-image: url('/images/img.png'); /* Путь к изображению */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
  }
  
  /* Контент внутри карточки */
  .card-content {
    position: absolute;
    width: 280px;
    height: 200px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6); /* Затемнение фона */
    padding: 20px;
    border-radius: 10px;
  }

  .card-image {
    height: 230px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
  }

  .cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .fourth-card {
    display: block;
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 280px;
    height: 200px;
    background-image: url('/images/img.png'); /* Путь к изображению */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
  }
  
  @media (max-width: 1023px) {
    .fourth-card {
      display: none;
    }
  }

  @media (max-width: 1000px) {
    .sidebar-desktop {
      display: none;
    }
  }

  .conference-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start; /* По умолчанию выравниваем по левому краю */
  }

  .conference-cards.centered-cards {
      justify-content: center; /* Центрируем, если 1 или 2 карточки */
  }

  .conference-card {
      flex: 1 1 calc(33.333% - 20px); /* 3 карточки в ряд */
      min-width: 300px;
      max-width: 400px;
      box-sizing: border-box;
  }

  /* Адаптация для меньшего количества карточек */
  @media (max-width: 1200px) {
      .conference-card {
          flex: 1 1 calc(50% - 20px); /* 2 карточки в ряд */
      }
      
      .conference-cards:not(.centered-cards) {
          justify-content: center;
      }
  }

  @media (max-width: 768px) {
      .conference-card {
          flex: 1 1 100%; /* 1 карточка в ряд */
      }
  }

  .arrow {
    align-self: flex-end;
    font-size: 2rem;
    transition: transform 0.3s ease;
    position: absolute; /* Абсолютное позиционирование */
    right: 60px; /* Отступ от правого края карточки */
    bottom: 50px; /* Отступ от нижнего края карточки */
    color: white; /* Цвет стрелки */
  }
  
  .card:hover .card-image {
    transform: scale(1.1);
  }
  
  /* Заголовок и текст на карточке */
  .card h3, .card p {
    margin: 0;
    padding: 0;
    margin-right: 20px;
    text-align: left;
  }
  
  .card-content h3 {
    font-size: 1.3rem; /* Размер заголовка */
    line-height: 1.1; /* Межстрочный интервал */
  }
  
  .card-content p {
    font-size: 1rem; /* Размер текста */
    margin: 15px 0 0 0;
    line-height: 1.1;
  }
  
  
  .conference-cards {
    display: flex;
    justify-content: space-between; /* Равномерное распределение карточек */
    margin: 40px auto;
    max-width: 1200px; /* Максимальная ширина контейнера */
    gap: 30px; /* Отступы между карточками */
  }
  
  .conference-card {
    background-color: #ffffff; /* Белый фон карточек */
    padding: 20px;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px; /* Отступ снизу */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Плавное изменение трансформации и тени */
    text-align: left; /* Выравнивание текста по левому краю */
  }

  .conference-card:hover {
    transform: translateY(-10px); /* Поднимаем карточку вверх */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Увеличиваем тень для эффекта подъема */
  }  
  
  .conference-title {
    font-size: 1.2em;
    margin-bottom: 20px;
    text-align: left;
  }
  
  .conference-card p {
    font-size: 0.9em;
    margin: 5px 0;
    text-align: left;
  }  

  .journals-scroll-container {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    margin: 20px 0;
}

.journals-scroll {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    align-items: flex-start;
}

.journal-card {
    flex: 0 0 auto;
    width: 180px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.journal-card:hover {
    transform: scale(1.05);
}

.journal-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    object-position: top;
}

/* Скрыть стандартный скроллбар */
.journals-scroll-container::-webkit-scrollbar {
    height: 8px;
}

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

.journals-scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.journals-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

  .site-footer {
    background-color: #192b65;
    color: white;
    padding: 40px 60px;
    font-family: 'HSESans-Regular', sans-serif;
    font-weight: 300;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
  }
  
  .footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 200px;
  }
  
  .footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
  }
  
  .footer-icons span {
    display: inline-block;
    margin-right: 12px;
    font-size: 24px;
    cursor: pointer;
  }
  
  .footer-copy {
    font-size: 14px;
    color: #ccc;
  }
  
  .footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
  }
  
  .footer-column {
    min-width: 180px;
  }
  
  .footer-heading {
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
  }
  
  .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-column li {
    margin-bottom: 10px;
  }
  
  .footer-column a {
    color: white;
    text-decoration: none;
    font-weight: 300;
    font-size: 15px;
  }
  
  .footer-column a:hover {
    text-decoration: underline;
  }

  .footer-image {
    display: flex;
    justify-content: center;
    margin: 5px 0;
    margin-left: 20px;
  }
  
  .footer-image img {
    max-width: 130%;
    height: auto;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    padding: 20px; /* Внутренний отступ для всего модального окна */
    box-sizing: border-box; /* Чтобы padding не влиял на общие размеры */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 40px 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    margin: -20px -10px 0 0;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: black;
}
  
  .typing-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    padding: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: auto;
    z-index: 9999;
  }
  
  .typing-text {
    display: inline-block;
  }
  
  .cursor {
    animation: blink 0.7s infinite;
  }
  
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  
  @font-face {
    font-family: 'HSESans-Regular';
    src: url('/fonts2/HSESans-Regular.woff2') format('woff2'), /* Приоритетный формат */
         url('/fonts2/HSESans-Regular.ttf') format('truetype'), /* Фолбэк */
         url('/fonts2/HSESans-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }
  
  body {
    font-family: 'HSESans-Regular', -apple-system, BlinkMacSystemFont, sans-serif;
  }
  
  p, main {
    font-family: 'HSESans-Regular', -apple-system, BlinkMacSystemFont, sans-serif;
  }

  @font-face {
    font-family: 'HSESans-Thin';
    src: url('/fonts2/HSESans-Thin.woff2') format('woff2'), /* Приоритетный формат */
         url('/fonts2/HSESans-Thin.ttf') format('truetype'), /* Фолбэк */
         url('/fonts2/HSESans-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'HSESans-Bold';
    src: url('/fonts2/HSESans-Bold.otf') format('opentype');
    font-weight: bold;
    font-display: swap;
  }