/* YO! Academy — tutorials & demos */

.academy-hero {
  padding-top: clamp(40px, 8vw, 96px);
  padding-bottom: clamp(20px, 3vw, 40px);
  text-align: center;
}

.academy-eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b58a00;
}

.academy-title {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #111;
}

.academy-lead {
  margin: 0 auto;
  max-width: 64ch;
  color: #555;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
}

.academy-section {
  padding-top: clamp(16px, 3vw, 32px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.academy-group + .academy-group {
  margin-top: clamp(36px, 5vw, 56px);
}

.academy-group-head {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ececec;
}

.academy-group-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: #111;
}

.academy-subgroup + .academy-subgroup {
  margin-top: 28px;
}

.academy-subgroup-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
}

.academy-links {
  display: grid;
  gap: 10px;
}

.academy-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

a.academy-link-card:hover {
  border-color: #f1d275;
  background: #fffdf5;
}

.academy-link-card .academy-link-meta {
  font-size: 0.82rem;
  font-weight: 500;
  color: #777;
}

.academy-link-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: #b58a00;
}

.academy-video-list {
  display: grid;
  gap: 12px;
}

.academy-video-item {
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease;
}

.academy-video-item[open] {
  border-color: #f1d275;
  background: #fafafa;
}

.academy-video-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  color: #111;
  user-select: none;
}

.academy-video-item summary::-webkit-details-marker {
  display: none;
}

.academy-video-item summary:hover {
  background: #fafafa;
}

.academy-video-label {
  flex: 1;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.5;
}

.academy-video-toggle {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background-image: url('./static/faq/arrow.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px auto;
  transition: transform 0.2s ease;
}

.academy-video-item[open] .academy-video-toggle {
  transform: rotate(180deg);
}

.academy-video-body {
  padding: 0 20px 20px;
}

.academy-video-wrap {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
}

.academy-video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.academy-cta {
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff9e6 0%, #fff 60%);
  border: 1px solid #f1e0a8;
  text-align: center;
}

.academy-cta-title {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
}

.academy-cta p {
  margin: 0 0 18px;
  color: #555;
}

.academy-cta .btn {
  display: inline-flex;
}
