.learning-tabs {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* Left-side tab list */
.tablist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #cfd8e3;
  border-radius: 0.75rem;
  background: #f8fafc;
}

/* Vertical folder-tab style */
.tab {
  appearance: none;
  border: 1px solid #cfd8e3;
  background: linear-gradient(to bottom, #ffffff, #eef2f7);
  color: #334155;
  padding: 0.9rem 1rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.25;
  border-radius: 0.5rem;
  text-align: left;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.tab:hover {
  background: linear-gradient(to bottom, #ffffff, #dbeafe);
  color: #0f3ea8;
  border-color: #8fb3e8;
  transform: translateX(2px);
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.12);
}

.tab:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

.tab.is-active {
  background: linear-gradient(to bottom, #ffffff, #e0ecff);
  color: #0f3ea8;
  font-weight: 700;
  border-color: #5b8def;
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.14);
  transform: translateX(4px);
}

/* Right-side content area */
.tabpanel-wrap {
  border: 1px solid #cfd8e3;
  border-radius: 0.75rem;
  padding: 1.25rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tabpanel {
  color: #1f2937;
}

.tabpanel h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  line-height: 1.2;
  color: #0f172a;
}

.tabpanel p {
  margin: 0 0 1rem;
  line-height: 1.65;
}

/* Responsive: stack on smaller screens */
@media (max-width: 900px) {
  .learning-tabs {
    grid-template-columns: 1fr;
  }

  .tablist {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .tab {
    flex: 0 0 auto;
  }

  .tab.is-active {
    transform: none;
  }
}