/* Outer carousel section */
.carousel-container {
  width: 100%;
}

/* Carousel viewport*/
.carousel,
.carousel-inner,
.cards {
  height: 800px;
}

.carousel {
  position: relative;
  width: 100vw; /* Full viewport width */
  margin-left: calc(-50vw + 50%); /* Center the carousel */

  background: linear-gradient(to bottom, #240e0e, #120606, #000000);
  overflow: hidden; /* Hide overflowing slides */
}

.carousel-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
}

/* Card Track*/
.cards {
  flex-direction: row; /* Horizontal layout*/
  align-items: center; /* Vertically align items*/
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
}

/* Cards */
.card {
  flex: 0 0 75%; /* Width of each card */
  height: 100%;

  /*Center cards*/
  display: flex;
  align-items: center;
  justify-content: center;

  /*Make cards smaller and lower opacity by default*/
  opacity: 0.25;
  transform: scale(0.75);
  transition: transform 300ms ease, opacity 300ms ease;
}

/* Highlight the center card*/
.card.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border: 3px solid #000000;
}

.card.is-active .card-divider {
  background-color: #d0bc4d;
}

/* Style cards*/

.carousel, .carousel-inner, .cards, .card {
  box-sizing: border-box;
}

.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 35px;
  font-weight: bold;
  color: #d0bc4d;
}

.card-content {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 2rem;
  gap: 2rem;
}

.card-image {
  flex: 0 0 40%;
}

.card-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.card-divider {
  width: 2px;
  height: 60%;
  background-color: #d0bc4d;
}

.card-text {
  flex: 1;
}

.card-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: #d0bc4d;
}

.card-text p {
  margin: 0;
  line-height: 1.6;
  opacity: 0.9;
  color: white;
}

.card-button {
  display: inline-block;
  margin-top: 1.25rem;
  
  padding: 0.625rem 1.25rem;
  border-radius: 900px;
  background-color: #d0bc4d;
  color: #381918;

  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;

  transition: transform 150ms ease, box-shadow 150ms ease, background0-color 150ms ease;
}

card-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0, 0.25);
  background-color: #f0d86a;
}

.card-button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Arrows*/

.carousel-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;

  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-arrow.left {
  left: 20px;
}

.carousel-arrow.right {
  right: 20px;
}

.carousel-arrow::before {
  content: '';
  width: 12px;
  height: 12px;

  border: solid #d0bc4d;
  border-width: 0 3px 3px 0;
}

.carousel-arrow.left::before {
  transform: rotate(135deg);
}

.carousel-arrow.right::before {
  transform: rotate(-45deg);
}

.carousel-arrow:hover {
  opacity: 0.85;
}

/* Responsive adjustments*/
@media (max-width: 768px) {
  .carousel {
    height: auto;
    min-height: 700px;
    overflow-x: hidden;
    overflow-y: visible;
    padding-top: 120px;
  }

  .carousel-inner,
  .cards {
    height: auto;
    min-height: 700px;
  }

  .card {
    height: auto;
    min-height: 700px;
    flex: 0 0 100%;
    padding: 24px 18px;
  }

  .card-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    gap: 16px;
  }

  .card-title {
    font-size: 24px;
  }

  .card-divider {
    width: 60%;
    height: 2px;
    margin: 12px auto;
  }

  .card-image {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .card-button {
    margin: 12px auto 0;
  }

  .carousel-arrow.left {
    left: 10px;
  }

  .carousel-arrow.right {
    right: 10px;
  }
}