.goldenplace {
  align-items: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1rem 0;
}

.projects_title {
  font-size: 5rem;
  margin-bottom: 0.8rem;
padding:5rem;
}

.carousel-track {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 500px;
  overflow: hidden;
  border: 4px solid #000;
  border-radius: 10px;
  background-color: var(--clr6);
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  flex-direction: row;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
  transform: translateX(0);
  opacity: 1;
}

.carousel-item.active {
  display: flex;
}

/* Slide animations  CSS */
.carousel-item.slide-out-left {
  transform: translateX(-100%);
  opacity: 0.3;
}

.carousel-item.slide-out-right {
  transform: translateX(100%);
  opacity: 0.3;
}

.carousel-item.slide-in-left {
  transform: translateX(-100%);
  opacity: 1;
  animation: slideInFromLeft 0.6s ease-in-out forwards;
}

.carousel-item.slide-in-right {
  transform: translateX(100%);
  opacity: 1;
  animation: slideInFromRight 0.6s ease-in-out forwards;
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.carousel-content,
.content {
  border-radius: 10px;
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
}


.carousel-image {
  border-radius: 10px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-left: none;
}

.carousel-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.year {
  width: fit-content;
  background: #000;
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
}

.year p {
  color: white;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.card_title {
  text-align: left;
  font-size: 2rem;
  margin: 0;
  padding: 0;
  overflow: hidden;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.carousel-content .text {
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow: visible;

}

.carousel-controls {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel-btn {
  padding: 0.8rem 2rem;
  border: 2px solid #000;
  background: var(--clr6);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  color:#333;
  /*text-transform: lowercase;*/
}

.carousel-btn:hover {
  background: #000;
  color: white;
}

.subtitle {
  font-size: 0.8em;
  font-style: italic;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

@media (max-width: 1024px) {

  .projects_title {
    font-size: 4rem;
  }

  .carousel-track {
    width: 94%;
    height: 460px;
  }

  .carousel-content {
    padding: 1.5rem;
  }

  .card_title {
    font-size: 1.8rem;
  }

  .more-link {
    width: auto;
    min-width: 120px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .goldenplace {
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .projects_title {
    font-size: 3rem;
    margin-bottom: 0.8rem;
  }

  .carousel-track {
    width: 95%;
    height: auto;
    min-height: 500px;
  }

  .carousel-item {
    flex-direction: column;
  }

  .carousel-image {
    padding: 1rem;
    min-height: 220px;
  }

  .carousel-content {
    padding: 1.25rem;
    max-height: 320px;
    overflow-y: auto;
  }

  .carousel-controls {
    justify-content: center;
    flex-wrap: wrap;
  }

  .carousel-btn {
    padding: 0.7rem 1.4rem;
  }

  .more-link {
    width: auto;
  }
}

@media (max-width: 576px) {
  .projects_title {
    font-size: 2.4rem;
  }

  .carousel-track {
    width: 96%;
    min-height: 460px;
  }

  .carousel-content {
    padding: 1rem;
    max-height: 300px;
  }

  .card_title {
    font-size: 1.5rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .carousel-content .text {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .year p {
    font-size: 0.85rem;
  }

  .carousel-btn {
    width: 100%;
    max-width: 220px;
  }

  .more-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 110px;
  }
}

@media (max-width: 420px) {
  .projects_title {
    font-size: 2rem;
  }

  .carousel-track {
    min-height: 430px;
  }

  .carousel-image {
    min-height: 180px;
  }

  .carousel-content {
    max-height: 280px;
  }

  .carousel-controls {
    gap: 0.6rem;
  }
}