/* ==========================================================================
   ALASSTER.SITE — NEUMORPHIC DESIGN SYSTEM
   Matching Личный кабинет theme & tokens
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --page: #e7ebf3;
  --surface: #e7ebf3;
  --surface-lift: #edf1f8;
  --surface-recess: #dfe3eb;
  
  --text: #263248;
  --text-dark: #1b2434;
  --muted: #748097;
  --text-muted: #748097;
  
  --primary: #536dfe;
  --primary-dark: #3e55d8;
  --primary-light: rgba(83, 109, 254, 0.12);
  --primary-glow: rgba(83, 109, 254, 0.32);
  
  --teal: #159f9a;
  --amber: #c98a22;
  --rose: #ef4444;
  --green: #10b981;
  --purple: #8b5cf6;
  
  --border-light: transparent;
  --border-subtle: rgba(163, 174, 195, 0.25);
  
  --font-main: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Neumorphic tactile shadows */
  --shadow-out: 8px 8px 18px rgba(163, 174, 195, 0.38), -8px -8px 18px rgba(255, 255, 255, 0.72);
  --shadow-out-hover: 12px 12px 24px rgba(163, 174, 195, 0.42), -12px -12px 24px rgba(255, 255, 255, 0.82);
  --shadow-soft: 4px 4px 10px rgba(163, 174, 195, 0.32), -4px -4px 10px rgba(255, 255, 255, 0.64);
  --shadow-soft-hover: 6px 6px 14px rgba(163, 174, 195, 0.36), -6px -6px 14px rgba(255, 255, 255, 0.74);
  --shadow-in: inset 4px 4px 9px rgba(163, 174, 195, 0.28), inset -4px -4px 9px rgba(255, 255, 255, 0.68);
  --shadow-pressed: inset 3px 3px 6px rgba(163, 174, 195, 0.35), inset -3px -3px 6px rgba(255, 255, 255, 0.7);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: space-between;
  padding-bottom: clamp(20px, 3.5vh, 44px);
  font-family: var(--font-main);
  color: var(--text);
  background-color: var(--page);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Hide legacy ambient orbs */
.ambient-orb {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   NEUMORPHIC CARDS & SURFACES
   ========================================================================== */
.neu-card, .glass-card, .beam-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-out);
  border: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.neu-card:hover, .glass-card:hover, .beam-card:hover {
  transform: scale(1.012);
  box-shadow: var(--shadow-out-hover);
}

/* ==========================================================================
   AIRY PILL NAVIGATION BAR
   ========================================================================== */
.nav-wrapper {
  flex: 0 0 auto;
  position: sticky;
  top: 12px;
  z-index: 100;
  padding: clamp(6px, 1.2vh, 14px) 0 0;
  margin-bottom: 0;
}

.nav-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 20px;
  background: var(--surface);
  border-radius:  16px;
  box-shadow: var(--shadow-out);
  border: 0;
}

.nav-auth-external {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  align-self: center;
}

/* Logo */
.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 0;
  transition: all 0.25s ease;
}

.brand-logo-group:hover .brand-icon-box {
  transform: scale(1.04);
  box-shadow: var(--shadow-soft-hover);
}

.brand-book-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-title-text {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.brand-title-prefix {
  color: var(--text-dark);
}

.brand-title-domain {
  color: var(--primary);
  font-weight: 700;
}

/* Desktop Navigation Menu */
.nav-links-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  margin-left: auto;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-pill-link:hover {
  transform: scale(1.018);
  color: var(--primary);
  box-shadow: var(--shadow-soft-hover);
}

.nav-pill-link:active {
  transform: scale(0.99);
  box-shadow: var(--shadow-pressed);
  color: var(--primary-dark);
}

.nav-pill-label {
  position: relative;
  z-index: 1;
}

/* Right Actions (Auth Button + Mobile Burger) */
.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   NEUMORPHIC AUTHENTICATION BUTTON & DROPDOWN
   ========================================================================== */
.neu-auth-wrapper {
  position: relative;
  display: inline-block;
}

.neu-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 53px;
  height: 53px;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-out);
  border: 0;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.neu-auth-btn:hover {
  transform: scale(1.04);
  color: var(--primary);
  box-shadow: var(--shadow-soft-hover);
}

.neu-auth-btn:active, .neu-auth-btn.is-active {
  transform: scale(0.98);
  box-shadow: var(--shadow-pressed);
}

.neu-auth-avatar {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--primary);
  flex-shrink: 0;
}

.neu-auth-name,
.neu-auth-chevron {
  display: none;
}

.neu-auth-initials {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--primary);
}

.neu-auth-login-mark {
  color: var(--primary);
}

.neu-auth-btn.is-logged .neu-auth-avatar {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  border: 0;
}

.neu-auth-chevron {
  font-size: 0.72rem;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.neu-auth-btn[aria-expanded="true"] .neu-auth-chevron {
  transform: rotate(180deg);
}

/* Neumorphic Dropdown Menu */
.neu-auth-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 250px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow-out);
  border: 0;
  padding: 12px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 6px;
  animation: neuDropIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.neu-auth-dropdown.is-open {
  display: flex;
}

@keyframes neuDropIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.neu-auth-dropdown-header {
  padding: 10px 14px 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.neu-auth-dropdown-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.neu-auth-dropdown-role {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.neu-auth-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
  width: 100%;
  text-align: left;
}

.neu-auth-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-soft);
  color: var(--primary);
}

.neu-auth-dropdown-item:active {
  box-shadow: var(--shadow-in);
}

.neu-auth-dropdown-item i {
  font-size: 1rem;
  color: var(--muted);
  width: 20px;
  text-align: center;
  transition: color 0.2s ease;
}

.neu-auth-dropdown-item:hover i {
  color: var(--primary);
}

.neu-auth-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 6px;
}

.neu-auth-logout-btn {
  color: var(--rose) !important;
}

.neu-auth-logout-btn i {
  color: var(--rose) !important;
}

.neu-auth-logout-btn:hover {
  background: rgba(239, 68, 68, 0.08) !important;
  color: var(--rose) !important;
}

/* Mobile burger button */
.mobile-burger-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
}

.mobile-burger-btn:hover {
  box-shadow: var(--shadow-soft-hover);
  color: var(--primary);
}

.mobile-burger-btn:active {
  box-shadow: var(--shadow-pressed);
}

.menu-toggle-icon {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: all 0.25s ease;
}

.menu-toggle-icon::before, .menu-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: all 0.25s ease;
}

.menu-toggle-icon::before { top: -5px; }
.menu-toggle-icon::after { top: 5px; }

/* ==========================================================================
   HERO SECTION WITH 3D MOTION STAGE
   ========================================================================== */
.hero-section {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: clamp(16px, 3vh, 44px) 0;
  position: relative;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.hero-grid > * {
  min-width: 0;
}

.hero-grid > :first-child {
  grid-column: 1;
  grid-row: 1;
}

.hero-heading {
  font-family: var(--font-main);
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
  font-weight: 800;
  line-height: 1.16;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Teacher Card */
.teacher-card {
  background: var(--surface);
  padding: 10px 14px;
  margin-top: 4px;
  border-radius: 18px;
  min-width: 0;
  height: auto;
  align-self: start;
  box-shadow: var(--shadow-out);
  border: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.teacher-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.teacher-monogram {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
  border: 0;
  flex-shrink: 0;
}

.teacher-role {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 3px;
}

.teacher-name {
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

/* 3D Motion Stage without outer contour */
.hero-3d-stage {
  position: relative;
  width: 100%;
  height: auto;
  background: transparent;
  box-shadow: none;
  border: none;
  overflow: visible;
  display: contents;
}

#three-canvas {
  width: 100%;
  height: clamp(340px, 46vh, 490px);
  display: block;
  grid-column: 2;
  grid-row: 1;
}

/* Information cards below the 3D stage */
.hero-glass-overlay {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  pointer-events: none;
  width: 100%;
  padding: 0;
  margin-top: clamp(20px, 3vh, 34px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.glass-voice-box {
  align-self: stretch;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(12px, 1.8vh, 18px) clamp(16px, 2vw, 22px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 0;
  max-width: none;
  height: auto;
  margin-top: 0;
  animation: none;
}

@keyframes neuFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.voice-play-icon {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.voice-title {
  font-weight: 800;
  font-size: clamp(0.96rem, 1.1vw, 1.14rem);
  color: var(--text-dark);
  margin-bottom: 3px;
}

.voice-desc {
  font-size: clamp(0.82rem, 0.92vw, 0.95rem);
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
}

/* Glass Stats Bar */
.glass-stats-bar {
  align-self: stretch;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.5vh, 16px) clamp(14px, 2vw, 20px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 0;
  gap: clamp(14px, 2vw, 24px);
  margin-bottom: 0;
  height: auto;
}

.stats-item {
  text-align: center;
  flex: 1 1 0;
}

.stats-item-digit {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  line-height: 1.15;
  margin-bottom: 2px;
}

.stats-item-digit.text-indigo { color: var(--primary); }
.stats-item-digit.text-teal { color: var(--teal); }
.stats-item-digit.text-amber { color: var(--amber); }

.stats-item-desc {
  font-size: clamp(0.78rem, 0.88vw, 0.9rem);
  color: var(--muted);
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================================
   NATIONAL MOTTO BANNER (ТУҒАН ЖЕР)
   ========================================================================== */
.motto-wrapper {
  clear: both;
  margin: clamp(16px, 2.5vh, 28px) auto clamp(28px, 4vh, 48px) auto;
}

.motto-contour-card {
  padding: 4px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-out);
  border: 0;
  height: auto;
  align-self: start;
}

.motto-glass-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 22px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-in);
  border: 0;
}

.motto-quote-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.88rem;
  flex-shrink: 0;
}

.motto-text {
  text-align: center;
  flex: 0 1 auto;
  min-width: 0;
}

.motto-label {
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 2px;
}

.motto-phrases-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
}

.motto-phrase {
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.4;
  font-style: normal;
  display: inline;
}

.motto-kz,
.motto-ru {
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.9;
}

.motto-divider {
  color: var(--primary);
  font-weight: 700;
  opacity: 0.6;
}

/* ==========================================================================
   MODAL DRAWER: LESSONS LIST
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(38, 50, 72, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.is-open,
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-glass-container {
  width: min(100%, 720px);
  max-height: 85vh;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: 16px 16px 36px rgba(163, 174, 195, 0.48), -16px -16px 36px rgba(255, 255, 255, 0.85);
  border: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-open .modal-glass-container,
.modal-backdrop.active .modal-glass-container {
  transform: scale(1);
}

.modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 18px 28px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface);
}

.modal-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.modal-heading-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
}

.modal-subtitle {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 2px;
}

.btn-close-modal {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  padding: 0;
}

.btn-close-modal:hover {
  transform: scale(1.18);
  opacity: 0.85;
}

.btn-close-modal:active {
  transform: scale(0.92);
}
.modal-close-icon {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2.0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-lessons-scroll {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-lessons-scroll::-webkit-scrollbar {
  width: 8px;
}
.modal-lessons-scroll::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 4px;
}
.modal-lessons-scroll::-webkit-scrollbar-thumb {
  background: #c3ccdb;
  border-radius: 4px;
}

.lesson-card-item, .lesson-row-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 0;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.lesson-card-item:hover, .lesson-row-card:hover {
  transform: scale(1.008);
  box-shadow: var(--shadow-soft-hover);
  color: var(--primary);
}

.lesson-card-item:active, .lesson-row-card:active {
  transform: scale(0.995);
  box-shadow: var(--shadow-pressed);
}

.lesson-num-badge, .lesson-badge-id {
  width: auto;
  min-width: 48px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-in);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
  flex-shrink: 0;
  border: 0;
  white-space: nowrap;
  padding-inline: 8px;
}

.lesson-title-text, .lesson-title-label {
  font-weight: 700;
  font-size: 0.96rem;
  flex: 1;
  color: var(--text-dark);
}

.lesson-arrow-icon, .btn-launch-lesson {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  border: 0;
}

.lesson-arrow-icon:focus-visible,
.btn-launch-lesson:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.lesson-card-item:hover .lesson-arrow-icon,
.lesson-row-card:hover .btn-launch-lesson {
  transform: translateX(3px);
  box-shadow: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & PHONES)
   ========================================================================== */
@media (max-width: 960px) {
  body {
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: flex-start;
  }

  .hero-section {
    flex: 1 0 auto;
    min-height: auto;
    align-items: stretch;
    padding-block: 20px 32px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-heading {
    max-width: 16ch;
  }

  .hero-3d-stage {
    width: 100%;
  }

  #three-canvas {
    height: 240px;
    grid-column: 1;
    grid-row: 2;
  }

  .hero-glass-overlay {
    grid-column: 1;
    grid-row: 3;
  }
  
  .hero-3d-stage {
    height: auto;
  }
  
  .nav-links-menu {
    display: none;
  }
  
  .nav-links-menu.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    background: var(--surface);
    border-radius: 18px;
    box-shadow: var(--shadow-out);
    border: 0;
    padding: 14px;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
  }
  
  .nav-links-menu.is-open .nav-pill-link {
    width: 100%;
    justify-content: flex-start;
  }
  
  .mobile-burger-btn {
    display: inline-flex;
  }

  .motto-wrapper {
    margin-bottom: 24px;
  }
}

/* Stable no-grid layout for the home page. */
body {
  display: block !important;
}

.hero-section {
  display: block !important;
  padding-block: clamp(18px, 3vh, 32px);
}

.hero-top-grid {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 56px);
}

.hero-top-grid > :first-child {
  flex: 1 1 55%;
  width: auto;
  min-width: 0;
}

.hero-top-grid > .hero-3d-stage {
  flex: 0 1 45%;
  width: auto;
  min-width: 0;
  height: 240px;
  display: block;
}

.hero-top-grid #three-canvas {
  width: 100%;
  height: 240px;
}

.hero-info-grid {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  gap: clamp(24px, 4vw, 56px);
}

.hero-info-grid > .glass-voice-box,
.hero-info-grid > .glass-stats-bar {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 96px;
  min-height: 96px;
  align-self: stretch;
}

.motto-wrapper {
  display: block !important;
  width: 100%;
}

@media (max-width: 960px) {
  .hero-top-grid {
    flex-direction: column !important;
    gap: 18px;
  }

  .hero-top-grid > :first-child,
  .hero-top-grid > .hero-3d-stage {
    flex: 0 1 auto;
    width: 100%;
  }

  .hero-top-grid > .hero-3d-stage,
  .hero-top-grid #three-canvas {
    height: 160px;
  }

  .hero-info-grid {
    flex-direction: column !important;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }

  .nav-header-bar {
    padding-inline: 10px;
    gap: 8px;
  }

  .nav-wrapper {
    top: 10px;
    padding: 0;
  }
  
  .navbar {
    min-width: 0;
    padding: 7px 10px;
    border-radius:  16px;
    gap: 8px;
  }

  .brand-logo-group {
    min-width: 0;
    gap: 8px;
  }

  .brand-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .brand-title-text {
    font-size: 0.98rem;
  }

  .mobile-burger-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }

  .menu-toggle-label {
    display: none;
  }

  .neu-auth-btn {
    width: 44px;
    height: 44px;
  }
  
  .hero-heading {
    max-width: none;
    font-size: clamp(1.8rem, 9vw, 2.35rem);
    line-height: 1.12;
    margin-bottom: 14px;
  }

  .hero-section {
    padding-block: 16px 24px;
  }

  .teacher-card {
    padding: 10px 12px;
  }

  .teacher-heading {
    gap: 10px;
  }

  .teacher-name {
    font-size: 1rem;
    line-height: 1.25;
  }

  .teacher-role {
    font-size: 0.7rem;
  }
  
  .motto-glass-pill {
    padding: 16px 20px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .hero-3d-stage {
    height: auto;
  }

  #three-canvas {
    height: 160px;
  }

  .hero-glass-overlay {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
  }
  
  .glass-stats-bar {
    padding: 12px 14px;
    gap: 8px;
  }

  .glass-voice-box {
    padding: 12px 14px;
    border-radius: 18px;
  }

  .voice-title {
    font-size: 0.92rem;
  }

  .voice-desc {
    font-size: 0.78rem;
  }
  
  .stats-item-digit {
    font-size: 1.25rem;
  }

  .stats-item-desc {
    font-size: 0.7rem;
  }

  .motto-wrapper {
    margin-top: 12px;
    margin-bottom: 18px;
  }

  .motto-text {
    min-width: 0;
  }

  .motto-phrases-row {
    flex-direction: column;
    gap: 6px;
  }

  .motto-divider {
    display: none;
  }
}

@media (min-width: 961px) {
  #three-canvas {
    height: 240px;
  }

  .hero-glass-overlay {
    margin-top: 12px;
  }
}

/* Compact desktop layout: the primary 1366x768 viewport */
@media (min-width: 961px) and (max-height: 820px) {
  body {
    padding-bottom: 12px;
  }

  .nav-wrapper {
    padding-top: 6px;
  }

  .hero-section {
    padding-block: 8px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-heading {
    font-size: clamp(2rem, 3.35vw, 2.85rem);
    margin-bottom: 14px;
  }

  #three-canvas {
    height: clamp(270px, 38vh, 330px);
  }

  .hero-glass-overlay {
    margin-top: 14px;
    gap: 18px;
  }

  .glass-voice-box {
    padding: 10px 14px;
  }

  .glass-stats-bar {
    padding-block: 9px;
    gap: 12px;
  }

  .voice-title {
    font-size: 0.98rem;
  }

  .voice-desc,
  .stats-item-desc {
    font-size: 0.78rem;
  }

  .motto-wrapper {
    margin-top: 10px;
    margin-bottom: 14px;
  }
}

@media (max-height: 700px) and (min-width: 961px) {
  .hero-section {
    padding: 8px 0;
  }
  .hero-3d-stage {
    height: auto;
  }
  .hero-heading {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }
  .motto-wrapper {
    margin-bottom: 12px;
  }
}

/* Final page structure: top row, information row, then the motto. */
.hero-top-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.hero-top-grid > :first-child {
  min-width: 0;
  grid-column: 1;
}

.hero-top-grid > .hero-3d-stage {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  display: block;
  height: 240px;
}

.hero-top-grid #three-canvas {
  width: 100%;
  height: 240px;
  display: block;
}

.hero-info-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(18px, 3vh, 28px);
  align-items: stretch;
}

.hero-info-grid > .glass-voice-box,
.hero-info-grid > .glass-stats-bar {
  min-width: 0;
  height: 100%;
}

@media (max-width: 960px) {
  .hero-top-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-top-grid > .hero-3d-stage {
    grid-column: 1;
    grid-row: 2;
    height: 160px;
  }

  .hero-top-grid #three-canvas {
    height: 160px;
  }

  .hero-info-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
  }
}

/* Override legacy grid rules with the explicit two-row flex layout. */
body { display: block !important; }
.hero-section { display: block !important; }
.hero-top-grid {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 56px);
}
.hero-top-grid > :first-child {
  flex: 1 1 55%;
  width: auto;
  min-width: 0;
}
.hero-top-grid > .hero-3d-stage {
  flex: 0 1 45%;
  width: auto;
  min-width: 0;
  height: 240px;
  display: block;
}
.hero-top-grid #three-canvas { width: 100%; height: 240px; }
.hero-info-grid {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  gap: clamp(24px, 4vw, 56px);
}
.hero-info-grid > .glass-voice-box,
.hero-info-grid > .glass-stats-bar {
  width: auto;
  min-width: 0;
}

.hero-info-grid > .glass-voice-box {
  flex: 1 1 55%;
}

.hero-info-grid > .glass-stats-bar {
  flex: 0 1 45%;
}
.motto-wrapper { display: block !important; width: 100%; }

@media (max-width: 960px) {
  .hero-top-grid { flex-direction: column !important; gap: 18px; }
  .hero-top-grid > :first-child,
  .hero-top-grid > .hero-3d-stage { flex: 0 1 auto; width: 100%; }
  .hero-top-grid > .hero-3d-stage,
  .hero-top-grid #three-canvas { height: 160px; }
  .hero-info-grid { flex-direction: column !important; gap: 14px; }
  .hero-info-grid > .glass-voice-box,
  .hero-info-grid > .glass-stats-bar {
    height: auto;
    min-height: 0;
  }

  .nav-links-menu.is-open {
    left: auto;
    right: 0;
    width: 176px;
    min-width: 0;
    padding: 8px;
    gap: 5px;
    border-radius: 16px;
  }

  .nav-links-menu.is-open li {
    width: 100%;
  }

  .nav-links-menu.is-open .nav-pill-link {
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.82rem;
    justify-content: center;
    border-radius: 10px;
  }
}

@media (max-width: 640px) {
  .neu-auth-btn {
    width: 53px;
    height: 53px;
  }
}

/* Breathing room below the navigation before the hero heading. */
.hero-section {
  padding-top: clamp(30px, 5vh, 56px) !important;
}

@media (max-width: 640px) {
  .hero-section {
    padding-top: 30px !important;
  }

  .motto-glass-pill {
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
  }

  .motto-text {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Unified radius standard for all primary panels and cards. */
.navbar,
.teacher-card,
.glass-voice-box,
.glass-stats-bar,
.motto-contour-card,
.motto-glass-pill,
.neu-auth-btn,
.mobile-burger-btn,
.nav-links-menu.is-open {
  border-radius: 18px !important;
}

.brand-icon-box,
.teacher-monogram,
.nav-pill-link,
.neu-auth-dropdown,
.voice-play-icon {
  border-radius: 12px !important;
}

.teacher-monogram {
  background: var(--surface-recess) !important;
  box-shadow: var(--shadow-in) !important;
  transform: none !important;
}

/* More breathing room on the regular desktop quote card. */
.motto-contour-card {
  min-height: 112px;
}

.motto-glass-pill {
  min-height: 104px;
  padding: 22px !important;
}

@media (max-width: 640px) {
  .hero-info-grid > .glass-voice-box,
  .hero-info-grid > .glass-stats-bar {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .hero-info-grid > .glass-voice-box {
    min-height: 82px !important;
    padding: 14px 16px !important;
  }

  .hero-info-grid > .glass-stats-bar {
    min-height: 78px !important;
    padding: 12px 14px !important;
  }

  .motto-contour-card {
    min-height: 0;
  }

  .motto-glass-pill {
    min-height: 0;
    padding: 14px 12px !important;
  }

  .hero-info-grid > .glass-voice-box,
  .hero-info-grid > .glass-stats-bar {
    flex: 0 0 auto !important;
  }

  .teacher-card {
    min-height: 82px;
    display: flex;
    align-items: center;
  }
}

@media (min-width: 641px) {
  .teacher-card {
    min-height: 96px;
    display: flex;
    align-items: center;
  }

  .hero-info-grid > .glass-voice-box { flex: 1 1 55% !important; }
  .hero-info-grid > .glass-stats-bar { flex: 0 1 45% !important; }
}

/* Lesson palette themes */
.modal-backdrop[data-class-theme="c9"] { --lesson-bg:#eeebf8; --lesson-surface:#fcfaff; --lesson-soft:#c5bde0; --lesson-accent:#8067d8; --lesson-deep:#302a49; }
.modal-backdrop[data-class-theme="c10emn"] { --lesson-bg:#e3f0fa; --lesson-surface:#f6fbff; --lesson-soft:#b2cedf; --lesson-accent:#3289ce; --lesson-deep:#244761; }
.modal-backdrop[data-class-theme="c10ogn"] { --lesson-bg:#e5f2ec; --lesson-surface:#f7fffa; --lesson-soft:#b4d4c5; --lesson-accent:#299a78; --lesson-deep:#24483c; }
.modal-backdrop[data-class-theme="c11"] { --lesson-bg:#fff0e7; --lesson-surface:#fffaf6; --lesson-soft:#eac9b7; --lesson-accent:#ed906c; --lesson-deep:#593c36; }

.modal-backdrop[data-class-theme] .modal-glass-container,
.modal-backdrop[data-class-theme] .modal-header-bar,
.modal-backdrop[data-class-theme] .modal-lessons-scroll { background:var(--lesson-bg); }
.modal-backdrop[data-class-theme] .modal-glass-container { color:var(--lesson-deep); }
.modal-backdrop[data-class-theme] .modal-header-bar { border-bottom-color:color-mix(in srgb,var(--lesson-soft) 55%,transparent); }
.modal-backdrop[data-class-theme] .modal-eyebrow,
.modal-backdrop[data-class-theme] .modal-heading-text,
.modal-backdrop[data-class-theme] .modal-subtitle,
.modal-backdrop[data-class-theme] .modal-close-icon { color:var(--lesson-accent); }
.modal-backdrop[data-class-theme] .lesson-card-item,
.modal-backdrop[data-class-theme] .lesson-row-card { background:var(--lesson-surface); color:var(--lesson-deep); box-shadow:5px 5px 12px color-mix(in srgb,var(--lesson-soft) 55%,transparent),-5px -5px 12px color-mix(in srgb,white 80%,transparent); }
.modal-backdrop[data-class-theme] .lesson-card-item:hover,
.modal-backdrop[data-class-theme] .lesson-row-card:hover { color:var(--lesson-accent); box-shadow:7px 7px 15px color-mix(in srgb,var(--lesson-soft) 65%,transparent),-7px -7px 15px color-mix(in srgb,white 85%,transparent); }
.modal-backdrop[data-class-theme] .lesson-num-badge,
.modal-backdrop[data-class-theme] .lesson-badge-id { background:var(--lesson-bg); color:var(--lesson-accent); box-shadow:inset 4px 4px 8px color-mix(in srgb,var(--lesson-soft) 60%,transparent),inset -4px -4px 8px color-mix(in srgb,white 82%,transparent); }
.modal-backdrop[data-class-theme] .lesson-title-text,
.modal-backdrop[data-class-theme] .lesson-title-label { color:var(--lesson-deep); }
.modal-backdrop[data-class-theme] .lesson-arrow-icon,
.modal-backdrop[data-class-theme] .btn-launch-lesson { color:var(--lesson-accent); }
.modal-backdrop[data-class-theme] .modal-lessons-scroll::-webkit-scrollbar-track { background:var(--lesson-bg); }
.modal-backdrop[data-class-theme] .modal-lessons-scroll::-webkit-scrollbar-thumb { background:var(--lesson-soft); }

/* Calm modal shadows and themed scrollbar. */
.modal-backdrop {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.modal-glass-container {
  box-shadow: 10px 10px 24px rgba(120, 132, 155, 0.22),
    -8px -8px 20px rgba(255, 255, 255, 0.58) !important;
}

.lesson-card-item,
.lesson-row-card {
  box-shadow: 3px 4px 9px rgba(120, 132, 155, 0.18),
    -3px -3px 8px rgba(255, 255, 255, 0.48) !important;
}

.lesson-card-item:hover,
.lesson-row-card:hover {
  box-shadow: 4px 5px 11px rgba(120, 132, 155, 0.22),
    -4px -4px 10px rgba(255, 255, 255, 0.56) !important;
}

.modal-lessons-scroll {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--primary) 45%, var(--surface)) transparent;
}

.modal-lessons-scroll::-webkit-scrollbar {
  width: 10px;
}

.modal-lessons-scroll::-webkit-scrollbar-track {
  background: transparent !important;
  border-radius: 18px;
}

.modal-lessons-scroll::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary) 45%, var(--surface)) !important;
  border: 3px solid var(--surface);
  border-radius: 18px;
  min-height: 42px;
}

.modal-lessons-scroll::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--primary) 62%, var(--surface)) !important;
}

/* Modal Quarter Divider for Classes with Multiple Quarters */
.modal-quarter-divider .quarter-label { flex: 0 0 auto; white-space: nowrap; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.modal-quarter-divider .quarter-section-title { flex: 1 1 0; min-width: 0; margin-left: auto; text-align: right; font-size: .8rem; font-weight: 500; line-height: 1.4; text-transform: none; letter-spacing: normal; overflow-wrap: anywhere; }
.modal-quarter-divider::after { content: none; }
@media (max-width: 480px) {
  #modal-lessons-list .modal-quarter-divider { gap: 8px; padding-inline: 0; }
  .modal-quarter-divider .quarter-label { font-size: .68rem; }
  .modal-quarter-divider .quarter-section-title { font-size: .72rem; }
}
.modal-quarter-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
  padding: 4px 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary, #4f46e5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  user-select: none;
}

.modal-quarter-divider:first-child {
  margin-top: 4px;
}

.modal-quarter-divider span {
  display: inline-block;
  background: rgba(79, 70, 229, 0.1);
  padding: 3px 12px;
  border-radius: 8px;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.modal-quarter-divider::after {
  content: none;
}

.modal-backdrop[data-class-theme] .modal-quarter-divider {
  color: var(--lesson-accent, #4f46e5);
}

.modal-backdrop[data-class-theme] .modal-quarter-divider span {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.modal-quarter-divider .quarter-label,
.modal-quarter-divider .quarter-section-title {
  font-family: inherit;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
}
.modal-quarter-divider .quarter-section-title { flex: 0 1 auto; max-width: 65%; margin-left: 0; }
.modal-quarter-divider .quarter-label { order: 0; }
.modal-quarter-divider::after { content: ''; order: 1; flex: 1 1 16px; min-width: 12px; height: 1px; background: var(--border, rgba(0,0,0,.12)); }
.modal-quarter-divider .quarter-section-title { order: 2; }
.modal-backdrop[data-class-theme] .modal-quarter-divider .quarter-label,
.modal-quarter-divider .quarter-label { background: none; border: 0; border-radius: 0; padding: 0; }
@media (max-width: 480px) {
  .modal-quarter-divider .quarter-label,
  .modal-quarter-divider .quarter-section-title { font-size: .72rem; }
}
.modal-backdrop[data-class-theme="cextra"] {
  --lesson-bg: #e7ebf3;
  --lesson-surface: #f4f7fc;
  --lesson-soft: #b8c4db;
  --lesson-accent: #4c6ef5;
  --lesson-deep: #1e293b;
  --lesson-accent-rgb: 76, 110, 245;
  --lesson-accent-soft: rgba(76, 110, 245, 0.12);
}

/* ==========================================================================
   PYTHON BASICS COURSE CARD (BELOW MOTTO BANNER)
   ========================================================================== */
.python-banner-wrapper {
  margin-top: 14px;
}

.python-course-card {
  padding: 8px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-out);
}

.python-course-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-radius: 13px;
  background: linear-gradient(145deg, #ecf0f7 0%, #e2e7f0 100%);
  box-shadow: var(--shadow-in);
}

.python-course-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.python-course-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-out);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  flex-shrink: 0;
  user-select: none;
  transition: transform 0.25s var(--ease);
}

.python-course-card:hover .python-course-icon {
  transform: translateY(-2px) scale(1.03);
}

.python-course-info {
  min-width: 0;
  flex: 1;
}

.python-course-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 6px;
}

.python-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-in);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.python-chip.accent {
  color: #4c6ef5;
}

.python-course-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 4px;
}

.python-course-title span {
  color: #4c6ef5;
}

.python-course-title span.py-orange {
  color: #f76707;
}

.python-course-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 720px;
}

.python-course-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.python-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.python-btn-primary {
  background: var(--surface);
  color: #4c6ef5;
  box-shadow: var(--shadow-soft);
}

.python-btn-primary:hover {
  transform: translateY(-2px);
  color: #3b5bdb;
  box-shadow: var(--shadow-out);
}

.python-btn-secondary {
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: var(--shadow-in);
}

.python-btn-secondary:hover {
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.python-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-in);
}

@media (max-width: 900px) {
  .python-course-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 14px;
  }
  .python-course-left {
    align-items: flex-start;
  }
  .python-course-actions {
    width: 100%;
    flex-direction: row;
  }
  .python-btn-primary {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .python-course-left {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 12px;
    row-gap: 10px;
    align-items: center;
  }
  .python-course-icon {
    width: 52px;
    height: 52px;
    font-size: 1.65rem;
    grid-column: 1;
    grid-row: 1;
  }
  .python-course-info {
    display: contents;
  }
  .python-course-badges {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    gap: 6px;
    align-content: center;
  }
  .python-chip {
    font-size: 0.66rem;
    padding: 3px 8px;
  }
  .python-course-title {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-bottom: 2px;
  }
  .python-course-desc {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .python-course-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .python-btn-primary {
    flex: 1;
    min-height: 44px;
  }
  .python-btn-secondary {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
  }
  .python-btn-list-label {
    display: none;
  }
}
