
/* =========================
   CAROUSEL CONTAINER
========================= */

.carousel {
  width: 100%;
  height: 320px;             
  background: #2b2b2b;     
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

/* track */
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

/* =========================
   CAROUSEL ITEM
========================= */

.carousel-item {
  min-width: 100%;
  height: 100%;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
}

/* dark overlay for readability */
.carousel-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.2),
    transparent
  );

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 24px 30px;
}

.carousel-overlay::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    transparent 60%
  );

  pointer-events: none;
}

/* =========================
   CAROUSEL BUTTON
========================= */

.carousel-btn {
  position: absolute;
  top: 50%;

  transform: translateY(-50%);

  background: rgba(0,0,0,0.3);
  color: white;

  border: none;
  cursor: pointer;

  padding: 8px 12px;

  font-size: 20px;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.5);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-readmore {
  position: absolute;
  right: 20px;
  bottom: 20px;

  background: rgba(255, 255, 255, 0.12);
  color: #f5f1e8;

  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 14px;

  font-size: 14px;
  cursor: pointer;

  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

.carousel-readmore:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* =========================
   TYPOGRAPHY (carousel-only)
========================= */

.carousel-overlay h2 {
  font-size: 26px;
  color: #f5f1e8;
  margin: 0 0 6px 0;

  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative; 
  z-index: 1;
}

.carousel-overlay p {
  font-size: 15px;
  color: #e6dcc8;
  margin: 0;

  line-height: 1.5;
  max-width: 700px;
  position: relative; 
  z-index: 1;
}

