* {
  box-sizing: border-box;
  font-size: clamp(14px, 1vw, 16px);
}

body {
  margin: 0;
  font-family: inter, sans-serif;
  background-color: #e7e0e0;
}

.page {
  display: flex;
  justify-content: center;
  padding: 20px ;
}

.card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  width: 1000px;
  min-height: 600px;
}

.card-top {
  padding: 30px 0px 0 0;
}

.card-body {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.accent-line {
  height: 4px;
  background-color: #6C8EBF;
  width: 100%;
  display: block;
}

.sidebar {
  flex: 0 0 200px;
  border-radius: 0px 0px 0px 12px;
  position: sticky;
  background-color: #eceaea;
  box-sizing: border-box;
  font-family: 'inter';
  z-index: 1000;
  min-height: 600px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-button,
.active {
  text-decoration: none;
  padding: 15px;
  color: #2e2d2d;
  background-color:#c4c6c9;
  transition: background-color 0.5s ease, transform 0.5s ease;
}

.active {
  background-color: #6C8EBF;
  font-weight: bold;
}

.nav-button:hover {
  background-color: #AFC4E3 ;
  color: white
}

.timeline-item {
  min-width: 400px;
  max-width: 400px;
  background-color: #fcfcfc;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  flex-shrink: 0;
  scroll-snap-type: x mandatory;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.timeline-content {
  max-width: flex;
  flex: 1;
  padding: 20px;
  overflow: hidden;
}

.timeline-header {
  display: flex;
  flex-direction: column;
  gap: 5px;

}

.timeline-header h2 {
  font-weight: 600;
  font-size: 16px;
  color: #2f3742;
  margin: 0;
}

.timeline-header {
  font-size: 13px;
  font: italic;
  color: #6b7280;
  margin: 0;
}

.timeline-role {
  font-weight: 600;
  font-size: 14px;
  color: #6C8EBF;
  margin-top: 4px;
}

.timeline-description {
  display: flex;
  flex-direction: column;

  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}

.timeline-scroll {
  display: flex;
  gap: 24px;

  overflow-x: auto;
  overflow-y: hidden;

  padding-bottom: 10px;

  scroll-behavior: smooth;
}

.timeline-scroll::-webkit-scrollbar {
  height: 8px;
}

.timeline-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.timeline-scroll::-webkit-scrollbar-thumb {
  background: #d0d7e2;
  border-radius: 999px;
}


@media (max-width: 900px) {

  .page {
    padding: 10px;
  }

  .card {
    width: 100%;
    min-height: auto;
  }

  .card-body {
    flex-direction: column;
  }

  .sidebar {
    flex: none;
    width: 100%;
    min-height: auto;
    border-radius: 0;
  }

  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav-button,
  .active {
    flex: 1 1 auto;
    text-align: center;
  }

  .content {
    padding: 20px;
  }

}

