.study-hub-main {
  width: min(100% - 2rem, 1100px);
  margin: clamp(5.5rem, 10vh, 7rem) auto 3rem;
}

.study-hub {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid #c8d8cc;
  border-radius: 20px;
  background: #fff;
  color: #1f3328;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.study-hub h1 {
  margin: 0.75rem 0 0.5rem;
  color: #137244;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.study-hub-intro {
  max-width: 700px;
  color: #52685a;
  line-height: 1.65;
}

.study-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.study-hub-card {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.1rem;
  border: 1px solid #c8d8cc;
  border-left: 4px solid #137244;
  border-radius: 12px;
  background: #f3f8f4;
  color: #1f3328;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.study-hub-card:hover,
.study-hub-card:focus-visible {
  transform: translateY(-2px);
  border-color: #137244;
  box-shadow: 0 6px 16px rgba(20, 83, 45, 0.14);
}

.study-hub-card:focus-visible,
.study-hub-back:focus-visible {
  outline: 3px solid #22a35a;
  outline-offset: 3px;
}

.study-hub-card strong {
  font-size: 1.1rem;
}

.study-hub-card span {
  color: #52685a;
  line-height: 1.5;
}

.study-hub-back {
  color: #137244;
  font-weight: 700;
}

[data-theme="dark"] .study-hub {
  border-color: #4c6553;
  background: #18251c;
  color: #e9f2eb;
}

[data-theme="dark"] .study-hub h1,
[data-theme="dark"] .study-hub-back {
  color: #69d98f;
}

[data-theme="dark"] .study-hub-intro,
[data-theme="dark"] .study-hub-card span {
  color: #b6c8ba;
}

[data-theme="dark"] .study-hub-card {
  border-color: #4c6553;
  border-left-color: #69d98f;
  background: #223329;
  color: #e9f2eb;
}

[data-theme="dark"] .study-hub-card:hover,
[data-theme="dark"] .study-hub-card:focus-visible {
  border-color: #69d98f;
}

@media (prefers-reduced-motion: reduce) {
  .study-hub-card {
    transition: none;
  }

  .study-hub-card:hover,
  .study-hub-card:focus-visible {
    transform: none;
  }
}
