.carousel-block-container {
  padding: 2rem;
  text-align: center;
}
.carousel-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: bold;
}
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 80vw;
}
.carousel-track {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-item {
  position: relative;
  min-width: calc(100% / 3);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: 40vh;
  cursor: pointer;
  overflow: hidden;
}

.publication-time {
  position: absolute;
  bottom: 12%;
  right: 10%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
}

.carousel-img-wrapper {
  flex: 1.5;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 10px 10px 0 0;
}

.carousel-text {
  flex: 1;
  padding: 0.75rem;
  background-color: #fff;
  border-radius: 0 0 10px 10px;
  text-align: left;
}

.carousel-text h4 {
  font-size: 20px;
}

.carousel-arrow {
  background: #1a2a6c;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}
.carousel-arrow:hover {
  background: #31429d;
}
.carousel-arrow.left {
  margin-right: 1rem;
}
.carousel-arrow.right {
  margin-left: 1rem;
}

button:disabled,
.carousel-arrow:disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

@media (max-width: 768px) {
  .carousel-item {
    min-width: calc(100% / 2);
  }
  .carousel-block-container {
    padding: 0.5rem;
  }
  .carousel-arrow.left {
    margin-right: 0.3rem;
  }
  .carousel-arrow.right {
    margin-left: 0.3rem;
  }

  .carousel-text h4 {
    font-size: 16px;
  }
}

@media (max-width: 425px) {
  .carousel-item {
    min-width: calc(100% / 1);
  }
}
