/* =========================================================
   Mobile glass refinement
   Keep the Apple-inspired glass language, but let content breathe.
   ========================================================= */

@media (max-width: 760px) {
  .main-container { padding-top: 14px; padding-bottom: 48px; }
  .topbar-inner { height: 52px; }
  .brand { font-size: 15px; }

  /* Compact glass hero: one viewport should reveal real content below. */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 26px 21px 20px;
    border-radius: 26px;
    gap: 0;
  }
  .hero-copy { max-width: none; }
  .hero-eyebrow {
    margin-bottom: 14px;
    padding: 5px 9px;
    font-size: 9px;
    letter-spacing: .055em;
  }
  .hero h1 {
    max-width: 330px;
    font-size: clamp(33px, 9.3vw, 38px);
    line-height: 1.04;
    letter-spacing: -.06em;
  }
  .hero p {
    max-width: 320px;
    margin-top: 13px;
    font-size: 13px;
    line-height: 1.58;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .hero-actions {
    align-items: center;
    gap: 4px 12px;
    margin-top: 16px;
  }
  .hero-actions .btn { min-height: 38px; padding: 7px 17px; font-size: 12px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-light { flex: 0 0 auto; }
  .hero-actions .btn-ghost {
    min-height: 34px;
    padding: 5px 3px;
    background: transparent;
    color: #8bd7ff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .hero-actions .btn-ghost:hover { background: transparent; color: #a8e3ff; }
  .hero-proof { display: none; }

  /* The glass preview becomes a compact horizontal learning widget. */
  .hero-visual {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    margin-top: 17px;
  }
  .showcase-window {
    width: 100%;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .075);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .13);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    transform: none;
    animation: none;
  }
  .showcase-toolbar { display: none; }
  .showcase-main {
    min-height: 112px;
    padding: 14px 15px 15px;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(0, 113, 227, .78), rgba(51, 80, 190, .78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  }
  .showcase-kicker { font-size: 8px; }
  .showcase-title { max-width: none; margin-top: 5px; font-size: 19px; line-height: 1.12; }
  .showcase-sub { margin-top: 4px; font-size: 9px; }
  .showcase-progress { left: 15px; right: 15px; bottom: 11px; }
  .showcase-progress-row { font-size: 8px; }
  .showcase-progress-track { margin-top: 5px; }
  .showcase-lesson { display: none; }
  .floating-panel { display: none; }

  /* The desktop intro strip is secondary; hide it to surface courses sooner. */
  .feature-strip { display: none; }

  .section-title {
    margin: 30px 0 14px;
    font-size: 23px;
    letter-spacing: -.04em;
  }
  .section-title .small { font-size: 11px; }

  .category-pills.category-groups {
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .7);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .category-pills.category-groups .cat-group { padding: 0; border: 0; }
  .category-pills.category-groups .cat-parent {
    padding: 6px 11px;
    border: 1px solid rgba(0, 0, 0, .075);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    font-size: 11.5px;
  }
  .category-pills.category-groups .cat-parent.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
  }
  .category-pills.category-groups .cat-child { padding: 5px 9px; font-size: 10.5px; }

  /* Compact course cards on small screens. */
  .grid { gap: 11px; }
  .card { border-radius: 17px; }
  .card-cover { aspect-ratio: 16 / 9; }
  .card-body { gap: 5px; padding: 11px 11px 12px; }
  .card-eyebrow { font-size: 9px; }
  .card-title { min-height: 36px; font-size: 13px; line-height: 1.36; }
  .card-meta { font-size: 9.5px; }
  .play-glyph { width: 28px; height: 28px; left: 10px; bottom: 10px; }

  .search-bar { margin-bottom: 14px; }
  .pagination { margin-top: 20px; }
}

@media (max-width: 480px) {
  .hero { padding: 24px 18px 18px; border-radius: 24px; }
  .hero h1 { font-size: 33px; }
  .showcase-main { min-height: 105px; }
  .showcase-title { font-size: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn-primary,
  .hero-actions .btn-light,
  .hero-actions .btn-ghost { flex: 0 0 auto; width: auto; }
  .hero-actions .btn-ghost {
    align-self: center;
    min-height: 38px;
    margin-left: 2px;
    padding: 6px 4px;
    border-color: transparent;
  }
  .hero-actions .btn-ghost:hover { border-color: transparent; }
}
/* User-adjusted mobile hero: exactly the compact text block they marked. */
@media (max-width: 760px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 278px;
    min-height: 278px;
    padding: 25px 20px;
    overflow: hidden;
    border-radius: 24px;
  }
  .hero-copy { width: 100%; max-width: none; }
  .hero-eyebrow { margin-bottom: 13px; }
  .hero h1 {
    max-width: 330px;
    font-size: 33px;
    line-height: 1.04;
  }
  .hero p {
    max-width: 320px;
    margin-top: 13px;
    font-size: 13px;
    line-height: 1.6;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }
  .hero-actions,
  .hero-proof,
  .hero-visual { display: none; }
}

@media (max-width: 360px) {
  .hero { height: 270px; min-height: 270px; padding: 22px 17px; }
  .hero h1 { font-size: 31px; }
}