/* Crypto learn / beginners page */

.learn-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.learn-bybit-spotlight {
  margin-bottom: 8px;
}
.learn-bybit-spotlight__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #fff7ed 0%, #f3effe 100%);
  border: 1px solid rgba(247, 166, 0, 0.25);
  border-radius: 20px;
  padding: 28px 32px;
}
.learn-bybit-spotlight__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  color: #f7a600;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 8px 24px -8px rgba(247, 166, 0, 0.35);
}
.learn-bybit-spotlight__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.learn-bybit-spotlight__inner > div { flex: 1; min-width: 200px; }
.learn-bybit-spotlight h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.learn-bybit-spotlight p { color: var(--hp-muted); font-size: 0.95rem; }

.learn-bybit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: #fff;
  border: 2px solid rgba(247, 166, 0, 0.35);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 28px 60px -32px rgba(247, 166, 0, 0.35);
  max-width: 900px;
  margin: 0 auto;
}
.learn-bybit-card__main {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex: 1;
  min-width: 260px;
}
.learn-bybit-card__main h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.learn-bybit-card__main p { color: var(--hp-muted); font-size: 0.95rem; max-width: 420px; }
.learn-bybit-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.learn-lessons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
}

.learn-lesson {
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.learn-lesson[open] {
  border-color: transparent;
  box-shadow: 0 18px 40px -26px rgba(60, 40, 120, 0.4);
}
.learn-lesson--featured {
  border-color: rgba(247, 166, 0, 0.3);
  background: linear-gradient(180deg, #fffdf9 0%, #fff 40%);
}
.learn-lesson__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 0.68rem;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.learn-lesson summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
}

.learn-lesson summary::-webkit-details-marker { display: none; }

.learn-lesson__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--hp-primary-soft);
  color: var(--hp-primary);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.learn-lesson__title { flex: 1; font-size: 1rem; }

.learn-lesson__chevron {
  color: var(--hp-muted);
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}
.learn-lesson[open] .learn-lesson__chevron { transform: rotate(180deg); }

.learn-lesson__body {
  padding: 0 20px 20px 64px;
}
.learn-lesson__body p { color: #3f3f46; font-size: 0.95rem; line-height: 1.6; }

.learn-steps {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #3f3f46;
  font-size: 0.93rem;
  line-height: 1.7;
}
.learn-steps li { margin-bottom: 4px; }

.learn-lesson__video {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hp-primary);
}
.learn-lesson__video i { color: inherit; }

.learn-lesson__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Exchanges */
.learn-exchanges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.learn-exchanges--alt {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.learn-exchange {
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: 18px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.learn-exchange:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 24px 50px -28px rgba(60, 40, 120, 0.35);
}
.learn-exchange--featured {
  border-color: rgba(247, 166, 0, 0.35);
  box-shadow: 0 24px 50px -32px rgba(247, 166, 0, 0.45);
}
.learn-exchange__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.learn-exchange__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--hp-soft);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.learn-exchange__logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.learn-exchange__logo--lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}
.learn-exchange__logo--lg img {
  width: 36px;
  height: 36px;
}
.learn-btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  margin-right: 4px;
}
.learn-exchange h3 { font-size: 1.1rem; font-weight: 700; }
.learn-exchange p {
  font-size: 0.9rem;
  color: var(--hp-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}
.learn-exchange__helper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--hp-primary);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.learn-disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--hp-muted);
  max-width: 620px;
  margin: 28px auto 0;
}

@media (max-width: 1024px) {
  .learn-exchanges { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .learn-lesson__body { padding-left: 20px; }
  .learn-exchanges { grid-template-columns: 1fr; }
  .learn-exchanges--alt { grid-template-columns: 1fr; }
  .learn-bybit-spotlight__inner { flex-direction: column; text-align: center; }
  .learn-bybit-card { flex-direction: column; text-align: center; }
  .learn-bybit-card__main { flex-direction: column; align-items: center; }
  .learn-hero__cta { flex-direction: column; }
  .learn-hero__cta .hp-btn { width: 100%; }
}
