:root {
  --primary-blue: #003366;
  --dark-blue: #001f3f;
  --light-blue: #e6f0ff;
  --mid-grey: #d3d3d3;
  --dark-grey: #444;
  --black: #000;
  --slide-duration: 6s;
}

.carousel-wrapper {
  display: flex;
  max-width: 800px;
  margin: 3rem auto;
  overflow: hidden;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--light-blue), #ffffff);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  justify-content: center;
  align-items: center;
}

.carousel-track {
  display: flex;
  width: calc(var(--slides) * 100%);
  animation: slide
             calc(var(--slides) * var(--slide-duration))
             steps(var(--slides))
             infinite;
  transform: translateX(0);
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
}

.carousel-slide img {
  display: flex;
  width: 100%;
  height: 350px;
  object-fit: contain;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* fix the caption to 80px tall: */
  max-height: 80px;      
  height: 80px;
  padding: 0.8rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  
  /* If the text is too long, scroll or truncate: */
  overflow-y: auto;       /* scroll bar if needed */
  box-sizing: border-box; /* include padding in that 80px */
}

/* Optional: truncate long descriptions with ellipsis */
.carousel-caption p {
  margin: 0;
  /* single-line ellipsis: */
  white-space: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Or for multi-line clamp: */
.carousel-caption p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  /* show only 2 lines then “…” */
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@keyframes slide {
  to {
    transform: translateX(calc(-100% * var(--slides)));
  }
}

.no-items {
  text-align: center;
  color: #888;
  padding: 2rem;
  font-size: 1.1rem;
}

.moreContent {
  max-width: 800px;
  margin: 1rem;
  padding: 2rem;
  background: linear-gradient(to bottom right, #bdbcbc, var(--light-blue));
  color: var(--black);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--mid-grey);
  border-radius: 16px;
  max-height: 100vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.moreContent h4 {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 0.5rem;
}

.moreContent p {
  margin: 1rem;
  line-height: 1.8;
}

.lorem {
  font-style: italic;
  color: var(--dark-grey);
}

.pageBox {
  max-width: 900px;
  margin: 4rem auto;
  background: linear-gradient(to bottom right, #fff, var(--light-blue));
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;

  /* Flexbox centering */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.boxHeader {
  background: linear-gradient(
    to right,
    rgba(0, 51, 102, 0.9),
    rgba(0, 51, 102, 0.6)
  );
  padding: 2rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--primary-blue);
  border-radius: 16px 0 0;
  width: 100%;
}

.site-welcome {
  color: #fff;
  font-size: 2.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1.8rem;
}

.contentBox.card {
  padding: 2rem;
  background: #fff;
  color: var(--dark-grey);
  font-size: 1.05rem;
  line-height: 1.8;
  border-top: 1px solid var(--mid-grey);
}

.contentBox.card p {
  margin-bottom: 1.5rem;
}

.boxContent{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-blue);
  border: 1px solid black;
  width: 100%;
  height: auto;
}
.boxContent * {
  border: 1px solid grey;
}
.btn2 {
  display: inline-block;
  padding: .5rem 1rem;
  background: var(--dark-blue);
  color: white;
  border-radius: 4px;
  text-decoration: none;
}
.btn2:hover {
  background: var(--primary-blue);
}
.env-commands {
  background: #f0f4f8;
  border: 1px solid #d3e0ee;
  padding: 0;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  height: max-content;
}
.pre {
  width: 250px;
  height: 100px;
}

.env-block{
  margin: 10px auto;
}
.env-commands pre {
  background: #ffffff;
  border: 1px solid #ccc;
 
  border-radius: 8px;

}
.quickStart {
  background: linear-gradient(
    to right,
    rgba(0, 51, 102, 0.9),
    rgba(0, 51, 102, 0.6)
  );
  text-align: center;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem;
  color: #fff;
  width: 100%;
}
.copy-btn {
  background: none;
  color: black;
}
@media (max-width: 768px) {
  .pageBox {
    margin: 2rem 1rem;
    border-left: none;
    border-top: 1px solid var(--primary-blue);
  }

  .contentBox.card {
    padding: 1.5rem;
  }
}