:root {
  --color-bg: #f6f4fb;
  --color-primary: #7c3aed;
  --color-primary-dark: #5b21b6;
  --color-text: #1f1f2e;
  --sidebar-width: 260px;
  --carousel-height: 360px;
  --gap: 16px;
  --transition: 600ms;
}

/* Reset-ish */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: var(--color-bg);
  color: var(--color-text);

  /* 🚫 prevent horizontal scrolling */
  overflow-x: hidden;
}

/* Sidebar (off-canvas using translateX) */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary-dark), var(--color-primary));
  color: white;
  padding: 18px;
  transform: translateX(-100%); /* hidden */
  transition: transform 0.28s cubic-bezier(.2,.9,.2,1);
  z-index: 1150;
  box-shadow: 2px 0 14px rgba(0,0,0,0.18);
}

/* When open */
#sidebar.open {
  transform: translateX(0);
}

/* Close button inside sidebar */
#close-btn {
  background: transparent;
  border: none;
  color: white;
  float: right;
  font-size: 18px;
  cursor: pointer;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 1100;
}
.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Content wrapper */
#content {
  padding: 28px;
  margin-left: 0;
}

/* Carousel viewport */
.carousel {
  width: 100%;             /* take full width */
  max-width: none;         /* remove the cap */
  height: var(--carousel-height);
  overflow: hidden;
  position: relative;
  border-radius: 0;        /* edge-to-edge */
  box-shadow: none;
  background: var(--color-bg);
}

/* Track holds slides in a row */
.carousel-track {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--gap);
  transition: transform var(--transition) cubic-bezier(.2,.9,.2,1);
  will-change: transform;
  padding: 0; /* set dynamically by JS */
}

/* Each slide image */
.carousel-track img {
  flex: 0 0 38%;          
  height: 100%;
  object-fit: contain;    
  background: var(--color-bg); 
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform var(--transition), opacity var(--transition);
  opacity: 0.45;          
  transform: scale(0.83);
  user-select: none;
  -webkit-user-drag: none;
}

/* Active slide */
.carousel-track img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Neighbors */
.carousel-track img.prev,
.carousel-track img.next {
  opacity: 0.72;
  transform: scale(0.9);
  z-index: 1;
}

/* Responsive tweak */
@media (max-width: 720px) {
  .carousel-track img { flex: 0 0 60% }
}

/* Page description */
.page-description {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  text-align: center;
  line-height: 1.6;
}
.page-description h2 {
  margin-bottom: 1rem;
  color: #6d28d9;
}