* {
  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;
}

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

.sidebar {
  flex: 0 0 200px;
  padding: 0 0 0 0px;
  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:#cfc8c1;
  transition: background-color 0.5s ease, transform 0.5s ease;
}

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

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

.header-button {
  width: 100%;
  padding: 16px 18px;

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

  background: #fcfcfc;
  border: 1px solid #eee;
  border-radius: 10px;

  cursor: pointer;
  transition: background 0.2s ease;
  font-weight: 600;
}

.header-button:hover {
  background: #f7f7f7;
}

.casefile {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  transition: box-shadow 0.2s ease;
}

.hidden-text {
  max-height: 0;
  overflow: hidden;

  opacity: 0;

  transition: max-height 0.35s ease, opacity 0.2s ease;
  transition: 0.35s ease;
  padding: 0 16px;
}

.casefile.open .hidden-text {
  max-height: 1000px;
  opacity: 1;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(76, 111, 255, 0.12);
}

.arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.casefile.open .arrow {
  transform: rotate(90deg);
}

@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;
  }

}