/* ============================================ */
/* ACADEMY — UDEMY-INSPIRED STYLES              */
/* ============================================ */

/* ============================================ */
/* COURSE CATALOG PAGE                          */
/* ============================================ */
.acad-catalog-hero {
  background: linear-gradient(135deg, #1c1d1f 0%, #0e2e5e 100%);
  padding: 50px 0 40px;
  text-align: center;
  margin-top: 100px;
}

.acad-catalog-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.acad-catalog-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.acad-category-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 24px 0;
  flex-wrap: wrap;
  background: var(--dp-card-bg);
  border-bottom: 1px solid var(--dp-border);
}

.acad-cat-btn {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 9px 22px;
  border: 2px solid var(--dp-border);
  background: var(--dp-card-bg);
  color: var(--dp-text-secondary);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.acad-cat-btn:hover {
  border-color: var(--dp-accent-blue);
  color: var(--dp-accent-blue);
}

.acad-cat-btn.active {
  background: var(--dp-accent-blue);
  color: #fff;
  border-color: var(--dp-accent-blue);
  box-shadow: 0 4px 15px var(--dp-accent-blue-glow);
}

/* Course Cards Grid */
.acad-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 30px 0 50px;
}

.acad-course-card {
  background: var(--dp-card-bg);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius);
  overflow: hidden;
  box-shadow: var(--dp-shadow);
  transition: all 0.35s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.acad-course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--dp-shadow-hover);
  border-color: var(--dp-accent-blue);
}

.acad-card-thumb {
  width: 100%;
  height: 170px;
  position: relative;
  overflow: hidden;
}

.acad-card-thumb-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.acad-card-thumb-bg.foundation { background: linear-gradient(135deg, #00bfa5, #2a5bd7); }
.acad-card-thumb-bg.advanced { background: linear-gradient(135deg, #7c4dff, #e91e63); }
.acad-card-thumb-bg.strategy { background: linear-gradient(135deg, #ff6b35, #ffc107); }
.acad-card-thumb-bg.ai { background: linear-gradient(135deg, #2a5bd7, #00bfa5); }

.acad-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.acad-badge-bestseller {
  background: #eceb98;
  color: #3d3c0a;
}

.acad-badge-new {
  background: linear-gradient(135deg, var(--dp-purple), var(--dp-pink));
  color: #fff;
}

.acad-badge-hot {
  background: var(--dp-orange);
  color: #fff;
}

.acad-card-body {
  padding: 18px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.acad-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dp-text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.acad-card-body .acad-card-instructor {
  font-size: 0.78rem;
  color: var(--dp-text-muted);
  margin-bottom: 8px;
}

.acad-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.acad-rating-num {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: #b4690e;
}

.acad-stars {
  color: #e59819;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.acad-rating-count {
  font-size: 0.75rem;
  color: var(--dp-text-muted);
}

.acad-card-meta {
  font-size: 0.75rem;
  color: var(--dp-text-muted);
  margin-bottom: 12px;
}

.acad-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--dp-border-light);
}

.acad-card-price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dp-text-primary);
}

.acad-card-price small {
  font-size: 0.72rem;
  color: var(--dp-text-muted);
  font-weight: 500;
}

.acad-card-level {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.acad-level-beginner {
  background: var(--dp-green-light);
  color: var(--dp-green);
}

.acad-level-advanced {
  background: var(--dp-purple-light);
  color: var(--dp-purple);
}

/* ============================================ */
/* COURSE DETAIL PAGE                           */
/* ============================================ */

/* Hero */
.acad-course-hero {
  background: #1c1d1f;
  padding: 40px 0;
  margin-top: 100px;
}

.acad-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.acad-hero-inner {
  max-width: 750px;
}

.acad-breadcrumb {
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.acad-breadcrumb a {
  color: #c0c4fc;
  text-decoration: none;
}

.acad-breadcrumb a:hover {
  text-decoration: underline;
}

.acad-breadcrumb span {
  color: rgba(255,255,255,0.4);
  margin: 0 8px;
}

.acad-course-hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.25;
}

.acad-course-hero .acad-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 16px;
}

.acad-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.acad-hero-badge {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  background: #eceb98;
  color: #3d3c0a;
  text-transform: uppercase;
}

.acad-hero-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.acad-hero-rating .acad-rating-num {
  color: #f3ca8c;
}

.acad-hero-rating .acad-stars { color: #f3ca8c; }

.acad-hero-rating .acad-rating-count {
  color: #c0c4fc;
  text-decoration: underline;
  font-size: 0.82rem;
}

.acad-hero-students {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}

.acad-hero-info {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* What You'll Learn */
.acad-learn-box {
  background: var(--dp-card-bg);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius);
  padding: 28px;
  margin: 30px 0;
}

.acad-learn-box h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dp-text-primary);
  margin-bottom: 18px;
}

.acad-learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.acad-learn-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--dp-text-primary);
  line-height: 1.5;
}

.acad-learn-check {
  color: var(--dp-green);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Requirements */
.acad-requirements {
  margin: 24px 0;
}

.acad-requirements h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dp-text-primary);
  margin-bottom: 14px;
}

.acad-requirements ul {
  list-style: none;
  padding: 0;
}

.acad-requirements li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--dp-text-secondary);
}

.acad-requirements li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: var(--dp-text-muted);
  font-size: 1.2rem;
}

/* ============================================ */
/* COURSE CONTENT ACCORDION                     */
/* ============================================ */
.acad-curriculum {
  margin: 30px 0;
}

.acad-curriculum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.acad-curriculum-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dp-text-primary);
}

.acad-curriculum-meta {
  font-size: 0.82rem;
  color: var(--dp-text-muted);
}

.acad-expand-all {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dp-accent-blue);
  background: none;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.acad-expand-all:hover {
  text-decoration: underline;
}

/* Section */
.acad-section {
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--dp-card-bg);
}

.acad-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--dp-bg);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
  user-select: none;
}

.acad-section-header:hover {
  background: #ebedf0;
}

.acad-section.open .acad-section-header {
  border-bottom-color: var(--dp-border);
}

.acad-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dp-text-primary);
}

.acad-section-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s;
  color: var(--dp-text-muted);
}

.acad-section.open .acad-section-arrow {
  transform: rotate(90deg);
}

.acad-section-info {
  font-size: 0.78rem;
  color: var(--dp-text-muted);
  white-space: nowrap;
}

/* Lessons */
.acad-section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.acad-section.open .acad-section-body {
  max-height: 1000px;
}

.acad-lesson-row {
  display: flex;
  align-items: center;
  padding: 12px 20px 12px 40px;
  border-bottom: 1px solid var(--dp-border-light);
  cursor: pointer;
  transition: background 0.2s;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.acad-lesson-row:last-child {
  border-bottom: none;
}

.acad-lesson-row:hover {
  background: rgba(42, 91, 215, 0.04);
}

.acad-lesson-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.acad-lesson-title {
  flex-grow: 1;
  font-size: 0.88rem;
  color: var(--dp-text-primary);
}

.acad-lesson-free {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--dp-accent-blue);
  padding: 2px 8px;
  border: 1px solid var(--dp-accent-blue);
  border-radius: 4px;
  text-transform: uppercase;
}

.acad-lesson-duration {
  font-size: 0.78rem;
  color: var(--dp-text-muted);
  white-space: nowrap;
}

.acad-lesson-lock {
  font-size: 0.85rem;
  color: var(--dp-text-muted);
}

/* Enroll Sidebar */
.acad-enroll-sidebar {
  position: sticky;
  top: 120px;
}

.acad-enroll-card {
  background: var(--dp-card-bg);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius);
  padding: 28px;
  box-shadow: var(--dp-shadow-hover);
}

.acad-enroll-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--dp-text-primary);
  margin-bottom: 16px;
}

.acad-enroll-price small {
  font-size: 0.8rem;
  color: var(--dp-text-muted);
  font-weight: 500;
}

.acad-enroll-cta {
  display: block;
  width: 100%;
  padding: 14px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--dp-radius-sm);
  cursor: pointer;
  text-align: center;
  background: linear-gradient(135deg, var(--dp-purple), var(--dp-pink));
  color: #fff;
  margin-bottom: 12px;
  transition: all 0.3s;
}

.acad-enroll-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 77, 255, 0.3);
}

.acad-enroll-includes {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--dp-border);
}

.acad-enroll-includes h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dp-text-primary);
  margin-bottom: 12px;
}

.acad-enroll-includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--dp-text-secondary);
  margin-bottom: 8px;
  list-style: none;
}

.acad-enroll-includes li .acad-inc-icon {
  font-size: 1rem;
}

/* ============================================ */
/* LESSON PLAYER                                */
/* ============================================ */
.acad-player-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: calc(100vh - 120px);
  margin-top: 100px;
}

.acad-player-main {
  background: #1c1d1f;
  display: flex;
  flex-direction: column;
}

.acad-video-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
}

.acad-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.acad-pdf-container {
  width: 100%;
  flex-grow: 1;
  min-height: 600px;
  background: #fff;
}

.acad-pdf-container iframe {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border: none;
}

.acad-lesson-info-bar {
  padding: 20px 24px;
  background: var(--dp-card-bg);
  border-bottom: 1px solid var(--dp-border);
}

.acad-lesson-info-bar h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dp-text-primary);
  margin-bottom: 4px;
}

.acad-lesson-info-bar p {
  font-size: 0.85rem;
  color: var(--dp-text-muted);
}

/* Sidebar Curriculum (Player View) */
.acad-player-sidebar {
  background: var(--dp-card-bg);
  border-left: 1px solid var(--dp-border);
  overflow-y: auto;
  max-height: calc(100vh - 100px);
}

.acad-sidebar-header {
  padding: 16px 18px;
  background: var(--dp-bg);
  border-bottom: 1px solid var(--dp-border);
  position: sticky;
  top: 0;
  z-index: 2;
}

.acad-sidebar-header h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dp-text-primary);
}

.acad-sidebar-section {
  border-bottom: 1px solid var(--dp-border);
}

.acad-sidebar-section-title {
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dp-text-primary);
  background: var(--dp-bg);
  cursor: pointer;
}

.acad-sidebar-lesson {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 28px;
  font-size: 0.82rem;
  color: var(--dp-text-secondary);
  cursor: pointer;
  border-bottom: 1px solid var(--dp-border-light);
  transition: all 0.2s;
  text-decoration: none;
}

.acad-sidebar-lesson:hover {
  background: rgba(42, 91, 215, 0.06);
  color: var(--dp-accent-blue);
}

.acad-sidebar-lesson.active {
  background: rgba(42, 91, 215, 0.08);
  color: var(--dp-accent-blue);
  font-weight: 600;
  border-left: 3px solid var(--dp-accent-blue);
  padding-left: 25px;
}

.acad-sidebar-lesson .acad-sl-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.acad-sidebar-lesson .acad-sl-title {
  flex-grow: 1;
}

.acad-sidebar-lesson .acad-sl-dur {
  font-size: 0.72rem;
  color: var(--dp-text-muted);
}

/* ============================================ */
/* AI TUTOR CHAT PANEL                          */
/* ============================================ */
.acad-ai-toggle {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 300;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dp-accent-blue), var(--dp-purple));
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(42, 91, 215, 0.4);
  transition: all 0.3s;
}

.acad-ai-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(42, 91, 215, 0.5);
}

.acad-ai-panel {
  position: fixed;
  bottom: 150px;
  right: 24px;
  width: 380px;
  max-height: 520px;
  background: var(--dp-card-bg);
  border: 1px solid var(--dp-border);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 300;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: acadChatSlideUp 0.3s ease;
}

.acad-ai-panel.open {
  display: flex;
}

@keyframes acadChatSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.acad-ai-header {
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--dp-accent-blue), var(--dp-purple));
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.acad-ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.acad-ai-header-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.acad-ai-header-info span {
  font-size: 0.72rem;
  opacity: 0.8;
}

.acad-ai-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.acad-ai-close:hover {
  opacity: 1;
}

/* Chat Messages */
.acad-ai-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 350px;
}

.acad-ai-msg {
  max-width: 90%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.6;
  animation: acadMsgFade 0.3s ease;
}

@keyframes acadMsgFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.acad-ai-msg.bot {
  background: var(--dp-bg);
  color: var(--dp-text-primary);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.acad-ai-msg.user {
  background: linear-gradient(135deg, var(--dp-accent-blue), var(--dp-purple));
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.acad-ai-msg.typing {
  background: var(--dp-bg);
  color: var(--dp-text-muted);
}

.acad-typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--dp-text-muted);
  border-radius: 50%;
  margin: 0 2px;
  animation: acadDotBounce 1.4s ease-in-out infinite;
}

.acad-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.acad-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes acadDotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Quick Questions */
.acad-ai-questions {
  padding: 12px 16px;
  border-top: 1px solid var(--dp-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.acad-ai-q-btn {
  text-align: left;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--dp-accent-blue);
  background: rgba(42, 91, 215, 0.06);
  border: 1px solid rgba(42, 91, 215, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  line-height: 1.4;
}

.acad-ai-q-btn:hover {
  background: rgba(42, 91, 215, 0.12);
  border-color: var(--dp-accent-blue);
}

.acad-ai-q-btn.used {
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */
@media (max-width: 960px) {
  .acad-player-layout {
    grid-template-columns: 1fr;
  }

  .acad-player-sidebar {
    border-left: none;
    border-top: 1px solid var(--dp-border);
    max-height: 400px;
  }

  .acad-learn-grid {
    grid-template-columns: 1fr;
  }

  .acad-ai-panel {
    width: 340px;
    right: 12px;
  }

  .acad-courses-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 700px) {
  /* Catalog Hero */
  .acad-catalog-hero {
    padding: 30px 0 24px;
    margin-top: 90px;
  }

  .acad-catalog-hero h1 {
    font-size: 1.5rem;
  }

  .acad-catalog-hero p {
    font-size: 0.9rem;
    padding: 0 12px;
  }

  /* Category bar */
  .acad-category-bar {
    padding: 14px 10px;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .acad-category-bar::-webkit-scrollbar {
    display: none;
  }

  .acad-cat-btn {
    font-size: 0.68rem;
    padding: 7px 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Course Cards */
  .acad-courses-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0 40px;
  }

  .acad-card-thumb {
    height: 140px;
  }

  .acad-card-body h3 {
    font-size: 1rem;
  }

  .acad-card-price {
    font-size: 1rem;
  }

  /* Course Hero — stack grid to single column */
  /* Course Hero — stack grid to single column */
  .acad-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .acad-course-hero {
    padding: 24px 0;
    margin-top: 90px;
  }

  .acad-course-hero h1 {
    font-size: 1.4rem;
  }

  .acad-course-hero .acad-hero-subtitle {
    font-size: 0.9rem;
  }

  .acad-hero-meta {
    gap: 10px;
  }

  .acad-hero-info {
    font-size: 0.78rem;
    gap: 10px;
  }

  /* Enroll Sidebar */
  .acad-enroll-sidebar {
    position: static;
  }

  .acad-enroll-card {
    padding: 20px 16px;
  }

  .acad-enroll-price {
    font-size: 1.5rem;
  }

  /* What You'll Learn */
  .acad-learn-box {
    padding: 20px 16px;
    margin: 20px 0;
  }

  .acad-learn-box h2 {
    font-size: 1.2rem;
  }

  .acad-learn-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .acad-learn-item {
    font-size: 0.85rem;
  }

  /* Curriculum */
  .acad-curriculum {
    margin: 20px 0;
  }

  .acad-curriculum-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .acad-curriculum-header h2 {
    font-size: 1.2rem;
  }

  .acad-expand-all {
    font-size: 0.72rem;
  }

  .acad-section-header {
    padding: 12px 14px;
  }

  .acad-section-title {
    font-size: 0.85rem;
    gap: 8px;
  }

  .acad-section-info {
    font-size: 0.7rem;
  }

  .acad-lesson-row {
    padding: 10px 14px 10px 28px;
    gap: 8px;
  }

  .acad-lesson-title {
    font-size: 0.8rem;
  }

  .acad-lesson-duration {
    font-size: 0.7rem;
  }

  .acad-lesson-free {
    font-size: 0.58rem;
    padding: 2px 6px;
  }

  /* Requirements */
  .acad-requirements h2 {
    font-size: 1.2rem;
  }

  /* Player Layout */
  .acad-player-layout {
    grid-template-columns: 1fr;
    margin-top: 90px;
  }

  .acad-player-sidebar {
    max-height: 300px;
  }

  .acad-lesson-info-bar {
    padding: 14px 16px;
  }

  .acad-lesson-info-bar h2 {
    font-size: 1.1rem;
  }

  .acad-sidebar-lesson {
    padding: 8px 14px 8px 22px;
    font-size: 0.75rem;
  }

  /* AI Chat */
  .acad-ai-panel {
    width: calc(100% - 24px);
    right: 12px;
    bottom: 80px;
    max-height: 65vh;
  }

  .acad-ai-toggle {
    bottom: 60px;
    right: 14px;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .acad-ai-messages {
    padding: 12px;
    max-height: 250px;
  }

  .acad-ai-msg {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .acad-ai-questions {
    padding: 10px 12px;
    max-height: 150px;
  }

  .acad-ai-q-btn {
    font-size: 0.72rem;
    padding: 7px 10px;
  }

  .acad-ai-header {
    padding: 12px 14px;
  }

  .acad-ai-header-info h4 {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .acad-catalog-hero h1 {
    font-size: 1.3rem;
  }

  .acad-catalog-hero p {
    font-size: 0.82rem;
  }

  .acad-course-hero h1 {
    font-size: 1.2rem;
  }

  .acad-course-hero .acad-hero-subtitle {
    font-size: 0.82rem;
  }

  .acad-hero-badge {
    font-size: 0.6rem;
    padding: 3px 8px;
  }

  .acad-enroll-price {
    font-size: 1.3rem;
  }

  .acad-enroll-cta {
    font-size: 0.82rem;
    padding: 12px;
  }

  .acad-card-thumb {
    height: 120px;
  }

  .acad-card-thumb-bg {
    font-size: 2.5rem;
  }

  .acad-player-layout {
    margin-top: 80px;
  }

  .acad-ai-panel {
    bottom: 60px;
    max-height: 60vh;
    border-radius: 12px;
  }

  .acad-ai-toggle {
    bottom: 50px;
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .acad-catalog-hero {
    padding: 20px 0 16px;
  }

  .acad-catalog-hero h1 {
    font-size: 1.1rem;
  }

  .acad-course-hero h1 {
    font-size: 1.05rem;
  }

  .acad-card-body h3 {
    font-size: 0.9rem;
  }

  .acad-section-title {
    font-size: 0.78rem;
  }

  .acad-lesson-row {
    padding: 8px 10px 8px 22px;
  }

  .acad-lesson-title {
    font-size: 0.75rem;
  }
}
