/* ==========================================================================
   Explore Knowledge (Figma: Dashboard / Explore Knowledge)
   ========================================================================== */

/* ---------- Categories ---------- */
.categories { display: flex; flex-direction: column; gap: 16px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.category {
  min-height: 229px; padding: 28px; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
}
.category h3 { margin-bottom: -8px; } /* title + description sit 8px apart, as in the design */
.category p { flex: 1; }
.category .ico-box { transition: transform .35s var(--ease-out), box-shadow .35s; }
.category:hover {
  transform: translateY(-4px);
  border-color: rgba(129,140,248,.9);
  box-shadow: 0 28px 60px -22px rgba(79,70,229,.45), inset 0 1px 0 rgba(255,255,255,.1);
}
.category:hover .ico-box { transform: rotate(-6deg) scale(1.06); box-shadow: 0 8px 22px rgba(99,102,241,.5); }
.category:hover .link-brand img { transform: translateX(4px); }

/* ---------- Ask banner ---------- */
.ask-banner {
  min-height: 248px; padding: 40px 520px 40px 40px; border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: center;
}
.ask-banner__glow { position: absolute; pointer-events: none; animation: breathe 6s ease-in-out infinite; }
.ask-banner__glow--1 { right: -171px; top: -141px; width: 800px; height: 560px; }
.ask-banner__glow--2 { right: -61px;  top: 59px;   width: 480px; height: 340px; animation-delay: -3s; }

.ask-banner__copy { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.ask-banner__title { font-family: var(--f-display); font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: -.68px; }

.ask-form {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
  padding: 6px 6px 6px 18px; border-radius: var(--radius-pill);
  background: var(--bg-subtle); border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.ask-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(103,232,249,.15); }
.ask-form__input {
  flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none;
  font-size: 14px; color: var(--text);
}
.ask-form__input::placeholder { color: var(--muted); }
.ask-form__submit { width: 44px; height: 44px; border-radius: 22px; }
.ask-form.is-sent .ask-form__submit { animation: sendNudge .5s var(--ease-out); }
@keyframes sendNudge { 40% { transform: translateX(6px) scale(1.05); } }

/* Stage illustration (shared component) — pinned near the banner's right edge */
.ask-banner .stage { position: absolute; right: 25px; top: 19px; }

/* ---------- Responsive ---------- */
@container content (max-width: 1000px) {
  .ask-banner { padding-right: 400px; }
  .stage { transform: scale(.78); transform-origin: right center; right: 10px; }
}

@container content (max-width: 900px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
}

/* Banner stacks: copy on top, stage underneath */
@container content (max-width: 760px) {
  .ask-banner { flex-direction: column; align-items: stretch; padding: 32px 28px 0; }
  .ask-banner__copy { order: -1; }
  .stage { position: relative; right: auto; top: auto; align-self: center; margin-top: 12px; transform: none; }
}

@container content (max-width: 560px) {
  .category-grid { grid-template-columns: 1fr; }
  .category { min-height: 0; padding: 24px; }
  .ask-banner { padding: 28px 20px 0; }
  .ask-banner__title { font-size: 28px; }
  .stage { transform: scale(.8); transform-origin: top center; margin-bottom: -44px; }
}
