.zme {
  margin: 2rem 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.zme-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.zme-header h2,
.zme-news h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.2;
}

.zme-link {
  text-decoration: none;
  color: #0a4a74;
  font-weight: 600;
}

.zme-carousel {
  position: relative;
  padding: 0 2.5rem;
}

.zme-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  gap: 1rem;
}

.zme-card {
  box-sizing: border-box;
  background: #f6f9fc;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  padding: 1rem;
  min-height: 210px;
  min-width: 260px;
  flex: 0 0 calc(25% - 0.75rem);
}

.zme-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.zme-date {
  margin: 0 0 0.4rem;
  color: #093f63;
  font-weight: 700;
}

.zme-location,
.zme-organizer,
.zme-stand {
  margin: 0.2rem 0;
  color: #2d3945;
}

.zme-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #0a4a74;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.zme-nav:disabled {
  cursor: default;
  opacity: 0.35;
}

.zme-nav.prev {
  left: 0;
}

.zme-nav.next {
  right: 0;
}

.zme-table-wrap {
  overflow-x: auto;
}

.zme-news-carousel {
  position: relative;
}

.zme-news-carousel > .zme-nav {
  display: none;
}

.zme-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.zme-table th,
.zme-table td {
  border-bottom: 1px solid #d9e1e8;
  padding: 0.75rem;
  text-align: left;
}

.zme-table th {
  background: #f4f7fa;
  color: #0d2c42;
}

@media (max-width: 1024px) {
  .zme-card {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

@media (max-width: 767px) {
  .zme {
    margin: 1.5rem 0;
  }

  .zme-header {
    align-items: flex-start;
  }

  .zme-header h2,
  .zme-news h2 {
    font-size: 1.45rem;
  }

  .zme-carousel {
    padding: 0 2.4rem;
  }

  .zme-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .zme-track::-webkit-scrollbar,
  .zme-table-wrap::-webkit-scrollbar {
    display: none;
  }

  .zme-card {
    min-width: 100%;
    flex: 0 0 100%;
    min-height: 200px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .zme-news h2 {
    margin-bottom: 1rem;
  }

  .zme-news-carousel {
    padding: 0 2.4rem;
  }

  .zme-news-carousel > .zme-nav {
    display: block;
  }

  .zme-table-wrap {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .zme-table {
    display: block;
    min-width: 0;
  }

  .zme-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .zme-table tbody {
    display: flex;
  }

  .zme-table tbody tr {
    box-sizing: border-box;
    display: block;
    flex: 0 0 100%;
    width: 100%;
    padding: 0.85rem 1rem;
    background: #f6f9fc;
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .zme-table td {
    display: grid;
    grid-template-columns: minmax(80px, 35%) 1fr;
    gap: 0.75rem;
    padding: 0.55rem 0;
    overflow-wrap: anywhere;
  }

  .zme-table td::before {
    content: attr(data-label);
    color: #0d2c42;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .zme-table td:first-child {
    display: block;
    padding-top: 0;
    color: #093f63;
    font-size: 1.08rem;
  }

  .zme-table td:first-child::before {
    display: none;
  }

  .zme-table td:last-child {
    border-bottom: 0;
  }
}
