/* Accordion list container */
.list-dropdown {
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Accordion list items */
.list-dropdown>li {
  margin-bottom: 12px;
  background-color: #313537;
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.list-dropdown>li:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.list-dropdown>li.open {
  border-color: #0284c7;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.2);
}

/* Main clickable link block */
.list-dropdown .link {
  cursor: pointer;
  display: block;
  padding: 18px 24px;
  color: #f8fafc;
  font-family: sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
  user-select: none;
}

.list-dropdown .link:hover {
  background-color: #1e293b;
}

/* Chevron positioning and styling */
.list-dropdown li i {
  margin-right: 12px;
  color: #94a3b8;
  font-size: 1.2rem;
  vertical-align: middle;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Chevron down alignment and transition */
.list-dropdown li i.fa-chevron-down {
  position: absolute;
  top: 50%;
  right: 24px;
  margin-right: 0;
  transform: translateY(-50%);
  font-size: 0.95rem;
}

/* Open item state updates */
.list-dropdown li.open .link {
  color: #38bdf8;
  background-color: #1e293b;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.list-dropdown li.open i {
  color: #38bdf8;
}

.list-dropdown li.open i.fa-chevron-down {
  transform: translateY(-50%) rotate(180deg);
}

/* Dropdown Content Area */
.submenu {
  max-height: 0;
  overflow: hidden;
  background-color: #0f172a;
  padding: 0 24px;
  border-top: none;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

.list-dropdown li.open .submenu {
  max-height: 450px;
  padding: 24px;
}

.submenu li {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Submenu details text formatting */
.downdrop-text {
  font-size: 0.98rem;
  line-height: 1.6;
  text-align: left;
  padding: 0;
  margin: 0;
  color: #cbd5e1;
  font-family: sans-serif;
}

.downdrop-text b {
  color: #ffffff;
}

/* Add custom spacing for grades badge */
.downdrop-text b:last-of-type {
  display: inline-block;
  margin-top: 12px;
  background-color: #052e16;
  color: #4ade80;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid #14532d;
}