*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* â”€â”€ BRAND COLORS SYNCED WITH LOGO â”€â”€ */
:root {
  --outer-bg: #f4f6f8;
  --box-bg: #ffffff;
  --box-bg2: #f0f4f8; 
  --text: #374151;
  --navy: #031b4e;     
  --cyan: #00b4d8;     
  --blue: #0066cc;     
  --text-heading: var(--navy);
  --muted: #6b7280;
  --muted2: #9ca3af;
  --border: rgba(3, 27, 78, 0.08);
  --border2: rgba(3, 27, 78, 0.15);
  
  --accent: var(--cyan);
  --accent-hover: #0096b4;
  --success: #10b981;
  
  --radius: 20px;
  --radius-sm: 12px;
  --home-box-max: 1100px;
}

/* Dashboard homepage refresh */
html,
body {
  min-height: 100%;
  height: auto;
}

body {
  background: #f7f9fc;
  background-image: none;
}

.outer-nav,
#main-stage,
.side-highlights,
.dots,
.scroll-hint,
#homeFooter {
  display: none !important;
}

.dashboard-shell {
  min-height: 100vh;
  padding-left: 280px;
  background:
    linear-gradient(90deg, rgba(0, 102, 204, 0.05), transparent 22%),
    #f8fafc;
  color: #111827;
}

.dashboard-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px 16px;
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid #dce5f3;
  overflow: hidden;
}

.sidebar-scrollable-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 20px;
  overflow-y: auto;
  margin-top: 8px;
  padding-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-scrollable-content::-webkit-scrollbar {
  display: none;
}

.dashboard-brand {
  display: block;
  width: 210px;
  max-width: 100%;
  text-decoration: none;
  margin-top: -6px; /* Push logo up slightly to align baseline with Welcome to Learnlytics */
}

.dashboard-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-nav-item {
  min-height: 48px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #101a36;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-nav-item:hover,
.dashboard-nav-item.active {
  color: #0059ff;
  background: linear-gradient(90deg, rgba(0, 89, 255, 0.14), rgba(85, 141, 255, 0.28));
  border-color: rgba(0, 89, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.dash-icon,
.dashboard-search svg,
.dashboard-help svg,
.stat-card svg,
.explore-handbooks svg,
.download-button svg,
.inside-files svg,
.dashboard-socials svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: currentColor;
}

.dash-icon svg {
  width: 22px;
  height: 22px;
}

.sidebar-illustration-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  width: 100%;
}

.sidebar-illustration {
  position: relative;
  min-height: 140px;
  width: 100%;
}

.sidebar-help-box {
  background: #f0f5ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(47, 111, 255, 0.03);
}

.sidebar-help-box h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px 0;
}

.header-stat-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--box-bg);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(3, 27, 78, 0.02);
}

.stat-badge-icon-svg {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-badge-icon-svg svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2px;
}

.stat-badge-icon-svg.badge-icon-blue { background: rgba(59, 130, 246, 0.08); }
.stat-badge-icon-svg.badge-icon-purple { background: rgba(168, 85, 247, 0.08); }
.stat-badge-icon-svg.badge-icon-pink { background: rgba(236, 72, 153, 0.08); }

.header-stat-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--box-bg);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(3, 27, 78, 0.02);
}

.stat-badge-icon-svg {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-badge-icon-svg svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2px;
}
.header-stat-badge-legacy {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--box-bg);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(3, 27, 78, 0.02);
}

.stat-badge-icon-legacy {
  font-size: 20px;
}

.stat-badge-info {
  display: flex;
  flex-direction: column;
}

.stat-badge-info strong {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.stat-badge-info span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.sidebar-help-box p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 10px 0;
}

.sidebar-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  background: #ffffff;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-help-btn:hover {
  background: var(--blue);
  color: #ffffff;
}

.sidebar-help-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.sidebar-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.sidebar-illustration-fallback {
  display: none;
  position: relative;
  width: 100%;
  height: 190px;
}

.paper-plane {
  position: absolute;
  right: 20px;
  top: 0;
  width: 0;
  height: 0;
  border-left: 32px solid #2f6fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  transform: rotate(-30deg);
}

.book-stack {
  position: absolute;
  left: 72px;
  width: 120px;
  height: 24px;
  border-radius: 8px 4px 4px 8px;
  background: #fff;
  border: 2px solid #2f6fff;
  box-shadow: inset 18px 0 0 #f59e0b;
}

.book-stack-one { bottom: 42px; }
.book-stack-two { bottom: 68px; left: 88px; border-color: #00a76f; box-shadow: inset 18px 0 0 #2563eb; }
.book-stack-three { bottom: 94px; left: 66px; border-color: #f59e0b; box-shadow: inset 18px 0 0 #0b2a6f; }

.plant-pot {
  position: absolute;
  left: 36px;
  bottom: 38px;
  width: 32px;
  height: 34px;
  border-radius: 4px 4px 12px 12px;
  background: #14b8a6;
}

.plant-pot::before,
.plant-pot::after {
  content: "";
  position: absolute;
  bottom: 28px;
  width: 30px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e;
}

.plant-pot::before {
  left: -13px;
  transform: rotate(-34deg);
}

.plant-pot::after {
  right: -13px;
  transform: rotate(34deg);
}

.dashboard-main {
  min-width: 0;
  padding: 32px 40px 24px;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  background: #f8fafc;
}

.dashboard-topbar h1 {
  margin: 0 0 8px;
  color: #050b1f;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 900;
}

.brand-lytics {
  color: var(--cyan);
}

.dashboard-topbar p {
  margin: 0;
  color: #3b475d;
  font-size: 15px;
  font-weight: 500;
}

.dashboard-topbar p strong {
  color: #0059ff;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dashboard-search {
  width: min(320px, 30vw);
  min-width: 220px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #d5deed;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #25324a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.dashboard-search svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.dashboard-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font: 600 14px 'DM Sans', sans-serif;
}

.dashboard-search input::placeholder {
  color: #667085;
}

.dashboard-socials {
  display: flex;
  gap: 10px;
}

.dashboard-socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  background: #fff;
  color: #0059ff;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dashboard-socials a:nth-child(1) { color: #d6249f; }
.dashboard-socials a:nth-child(2) { color: #ef233c; }
.dashboard-socials a:nth-child(3) { color: #0a66c2; }

.dashboard-socials a:hover {
  transform: translateY(-2px);
  border-color: currentColor;
}

.dashboard-socials svg {
  width: 20px;
  height: 20px;
}

.dashboard-help {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid #cbdcff;
  border-radius: 8px;
  background: #fff;
  color: #0059ff;
  font: 800 14px 'DM Sans', sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.dashboard-help svg {
  width: 20px;
  height: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.stat-card {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 8px;
  border: 1px solid #d6e2f5;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  text-align: left;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

button.stat-card {
  cursor: pointer;
}

.stat-card span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card strong {
  font-size: 14px;
  font-weight: 900;
}

.stat-card b {
  color: #050b1f;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.stat-card em {
  color: #536176;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.stat-card i {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex: 0 0 auto;
  opacity: 0.95;
}

.stat-card svg {
  width: 32px;
  height: 32px;
}

.stat-courses {
  color: #0059ff;
  background: linear-gradient(135deg, #eef4ff, #ffffff);
}

.stat-courses i {
  background: #dce9ff;
}

.stat-handbooks {
  color: #0f7f4f;
  background: linear-gradient(135deg, #f1fbf6, #ffffff);
}

.stat-handbooks i {
  background: #d8f5e6;
}

.stat-orders {
  color: #ea580c;
  background: linear-gradient(135deg, #fff4ed, #ffffff);
}

.stat-orders i {
  background: #ffeadb;
}

.stat-downloads {
  color: #7e22ce;
  background: linear-gradient(135deg, #f7f0ff, #ffffff);
}

.stat-downloads i {
  background: #eadcff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.dashboard-panel {
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.popular-panel {
  padding: 24px 28px 20px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-heading h2,
.placeholder-panel h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.panel-heading button {
  border: 0;
  background: transparent;
  color: #0059ff;
  font: 800 14px 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.handbook-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.handbook-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  gap: 10px;
  border: 0;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  text-align: left;
  cursor: pointer;
}

.handbook-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 205px;
  padding: 22px 22px 22px 32px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  color: #121826;
  overflow: hidden;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.handbook-cover::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 8px;
  background: repeating-linear-gradient(to bottom, #101827 0 5px, transparent 5px 11px);
  opacity: 0.82;
}

.handbook-cover::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border: 3px solid currentColor;
  border-radius: 8px;
  opacity: 0.38;
}

.handbook-cover b {
  position: relative;
  z-index: 1;
  max-width: 120px;
  color: #111827;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.handbook-cover em {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: #374151;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.cover-math { background: linear-gradient(135deg, #e8ddff, #f7f2ff); color: #6d28d9; }
.cover-python { background: linear-gradient(135deg, #d9f7e7, #eefdf5); color: #0f7f4f; }
.cover-ml { background: linear-gradient(135deg, #dceaff, #f3f7ff); color: #0059ff; }
.cover-dl { background: linear-gradient(135deg, #ffe5bd, #fff5df); color: #b45309; }

.handbook-cover-img {
  width: 100%;
  aspect-ratio: 77 / 89; /* Matches the natural book cover aspect ratio (~0.865) to prevent cropping */
  object-fit: fill; /* Ensures 100% of the cover (including spiral rings) is visible */
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.handbook-card:hover .handbook-cover-img {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.handbook-card strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

.handbook-card small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #536176;
  font-size: 13px;
  font-weight: 700;
}

.handbook-card small b {
  color: #0059ff;
  font-size: 16px;
}

.handbook-card small span {
  color: #b7791f;
}

.explore-handbooks {
  width: min(260px, 100%);
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px auto 0;
  border: 1px solid #b9d0ff;
  border-radius: 8px;
  background: #fff;
  color: #0059ff;
  font: 800 14px 'DM Sans', sans-serif;
  cursor: pointer;
}

.explore-handbooks svg {
  width: 18px;
  height: 18px;
}

.left-panel-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.inside-inline {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.side-panel-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.free-card {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0fff7, #ffffff);
}

.free-card .panel-heading {
  margin-bottom: 12px;
}

.free-card .panel-heading button {
  color: #0f7f4f;
}

.free-card-ml .panel-heading button {
  color: #7e22ce;
}

.free-card-body {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 16px;
}

.free-card-cover {
  width: 100%;
  max-width: 80px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
}

.free-card-ml {
  background: linear-gradient(135deg, #f7efff, #ffffff);
}

.free-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #c8f4da;
  position: relative;
}

.free-card-icon::before {
  content: "SQL";
  position: absolute;
  inset: 13px 10px;
  display: grid;
  place-items: center;
  border: 2px solid #0f7f4f;
  border-radius: 8px;
  color: #0f7f4f;
  font-weight: 900;
}

.ml-icon {
  background: #ead8ff;
}

.ml-icon::before {
  content: "ML";
  border-color: #7e22ce;
  color: #7e22ce;
}

.free-copy h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.free-copy p {
  margin: 0 0 6px;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.free-copy p span {
  display: block;
  margin-top: 4px;
  color: #536176;
  font-size: 13px;
  font-weight: 600;
}

.free-copy strong {
  color: #049242;
  font-size: 14px;
  font-weight: 900;
}

.download-button {
  width: 48px;
  height: 48px;
  border: 1px solid #cdd8e7;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.download-button svg {
  width: 24px;
  height: 24px;
}

.ml-download-button {
  color: #7e22ce;
}

.recent-orders {
  padding: 20px 24px 14px;
}

.order-row {
  display: grid;
  grid-template-columns: 32px minmax(120px, 1fr) 60px 110px 80px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border-top: 1px solid #e5ebf3;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.order-file {
  width: 26px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
}

.order-python { background: #dbeafe; color: #1d4ed8; }
.order-math { background: #dcfce7; color: #15803d; }
.order-dl { background: #fef3c7; color: #b45309; }
.order-ml { background: #ede9fe; color: #7e22ce; }

.order-row b {
  color: #0f8a5f;
}

.order-row time {
  color: #667085;
  font-weight: 600;
}

.order-row em {
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e3f8ed;
  color: #087a42;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.dashboard-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

.inside-panel,
.placeholder-panel,
.reviews-dashboard-panel {
  padding: 24px;
}

.inside-files {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.inside-files div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fbfdff;
}

.inside-files span {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0059ff;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.inside-files div:nth-child(2) span { background: #16a34a; }
.inside-files div:nth-child(3) span { background: #f59e0b; }

.inside-files i {
  color: #0b2a6f;
  font-style: normal;
}

.inside-files svg {
  width: 22px;
  height: 22px;
}

.inside-files strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.inside-files small {
  grid-column: 2;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.placeholder-panel p {
  margin: 12px 0 0;
  color: #536176;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.mini-reviews {
  display: grid;
  gap: 12px;
}

.mini-reviews p {
  margin: 0;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.mini-reviews b {
  color: #111827;
}

.dashboard-copyright {
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #dce5f3;
  color: #0b2a6f;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1320px) {
  .dashboard-shell {
    padding-left: 285px;
  }

  .dashboard-sidebar {
    width: 285px;
  }

  .stats-grid,
  .handbook-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar {
    flex-direction: column;
  }

  .dashboard-search {
    width: min(480px, 52vw);
  }
}

@media (max-width: 940px) {
  .dashboard-shell {
    padding-left: 0;
  }

  .dashboard-sidebar {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    z-index: auto;
    padding: 20px;
  }

  .dashboard-topbar {
    position: relative;
    z-index: auto;
    padding-bottom: 0;
  }

  .dashboard-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-illustration {
    display: none;
  }

  .dashboard-main {
    padding: 24px 18px;
  }

  .dashboard-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .dashboard-search {
    width: 100%;
    min-width: 0;
  }

  .stats-grid,
  .dashboard-bottom,
  .inside-files {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .dashboard-nav {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar h1 {
    font-size: 30px;
  }

  .stats-grid,
  .handbook-grid {
    grid-template-columns: 1fr;
  }

  .free-card-body {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .download-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .order-row {
    grid-template-columns: 30px minmax(0, 1fr) 64px;
    gap: 10px;
    padding: 12px 0;
  }

  .order-row time,
  .order-row em {
    grid-column: 2 / -1;
  }
}

html, body { 
  height: 100%; 
  overflow: hidden; 
  background-color: var(--outer-bg); 
  background-image: linear-gradient(rgba(3, 27, 78, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(3, 27, 78, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  color: var(--text); 
  font-family: 'DM Sans', sans-serif; 
}

/* -- PERSISTENT OUTER NAV -- */
.outer-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  padding-left: max(28px, calc(50vw - 920px));
  padding-right: 48px;
  background: var(--outer-bg); 
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.outer-logo {
  font-family: 'DM Sans', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: 0.02em; color: var(--navy); 
}
.outer-logo span { color: var(--cyan); }

.outer-links { display: flex; gap: 24px; align-items: center; }
.outer-links a.nav-link {
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700;
  color: var(--navy); text-decoration: none; transition: color .2s; 
  cursor: pointer;
}
.outer-links a.nav-link:hover { color: var(--cyan); }

.btn-help {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 99px; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700; background: var(--navy); color: #fff;
  text-decoration: none; transition: all 0.2s;
}
.btn-help:hover { background: var(--cyan); transform: translateY(-1px); }

/* -- FREE SQL,ML HANDBOOK BUTTON & DROPDOWN -- */
.handbook-dropdown-wrap {
  position: relative;
  display: inline-flex;
}

.btn-handbook {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 99px; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700; background: #27a844; color: #fff;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
  white-space: nowrap;
}
.btn-handbook:hover {
  background: #1e8e38; transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 168, 68, 0.35);
}

.handbook-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--border2);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(3, 27, 78, 0.14);
  padding: 8px;
  z-index: 9500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.handbook-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.handbook-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid var(--border2);
  border-top: 1px solid var(--border2);
}

.handbook-dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  color: var(--navy); text-decoration: none;
  cursor: pointer; transition: all 0.2s;
}
.handbook-dropdown-item:hover {
  background: rgba(39, 168, 68, 0.08);
  color: #27a844;
}
.handbook-dropdown-item .hd-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* -- MAIN STAGE -- */
#main-stage {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 96px 48px 80px; 
}

.central-box {
  position: relative; width: 100%; max-width: 1100px; height: 100%; max-height: 720px;
  background: var(--box-bg); border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(3, 27, 78, 0.05); overflow: hidden; display: flex; flex-direction: column;
  margin-left: 30px;
}
.box-body { flex: 1; position: relative; overflow: hidden; }

/* -- SLIDER -- */
.slides-track {
  display: flex; flex-direction: column; height: 100%; width: 100%;
  transition: transform 0.75s cubic-bezier(0.77, 0, 0.175, 1);
}
.slide {
  min-height: 100%; width: 100%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; overflow: hidden;
}
.slide::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(3, 27, 78, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(3, 27, 78, 0.03) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.slide-content {
  position: relative; z-index: 2; display: flex; flex-direction: column;
  align-items: flex-start; text-align: left; padding: 0 48px; max-width: 760px;
}
.slide-orb {
  position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(0, 180, 216, 0.08), transparent 60%);
  pointer-events: none; z-index: 1;
}
.slide-orb::after {
  content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(3, 27, 78, 0.15); top: 20%; right: 10%;
}

.slide-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--blue); text-transform: uppercase;
  margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.slide-eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--blue); }

.slide-heading {
  font-family: 'DM Sans', sans-serif; font-size: clamp(36px, 5vw, 64px); 
  font-weight: 800; line-height: 1.1; color: var(--navy); margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.slide-desc {
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 500;
  line-height: 1.7; color: var(--muted); max-width: 650px; margin-bottom: 32px;
}
.conversion-copy {
  max-width: 680px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.12), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(0, 180, 216, 0.28);
  border-left: 5px solid var(--cyan);
  border-radius: 10px;
  color: var(--navy);
  box-shadow: 0 10px 28px rgba(3, 27, 78, 0.08);
}
.conversion-copy strong {
  color: var(--blue);
  font-weight: 900;
}
.conversion-copy span {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

/* Identical Size Hero Buttons Stack */
.btn-stack {
  display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 400px;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 700; background: var(--cyan); color: #fff;
  border: none; cursor: pointer; transition: all .2s; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.3); width: 100%;
}
.btn-primary.btn-navy { background: var(--navy); box-shadow: 0 4px 14px rgba(3, 27, 78, 0.2); }
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(3, 27, 78, 0.2); }
.btn-primary.btn-navy:hover { background: var(--cyan); box-shadow: 0 6px 20px rgba(0, 180, 216, 0.3); }
.btn-primary svg { width: 20px; height: 20px; }

/* â”€â”€ DOT NAV & HINTS â”€â”€ */
.dots {
  position: fixed;
  right: max(16px, calc((100vw - min(var(--home-box-max), calc(100vw - 96px))) / 2 - 34px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 2000; display: flex; flex-direction: column; gap: 12px;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(3, 27, 78, 0.15); cursor: pointer; transition: all .3s; border: 1.5px solid transparent;
}
.dot.active { background: var(--cyan); border-color: var(--cyan); transform: scale(1.3); }

.scroll-hint {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; color: var(--muted2); letter-spacing: 0.1em;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2000; animation: fadeUpDown 2s ease-in-out infinite; text-transform: uppercase;
}
@keyframes fadeUpDown {
  0%,100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(-6px); }
}

/* â”€â”€ HOME FOOTER (SIDE-BY-SIDE LAYOUT) â”€â”€ */
.home-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  display: flex; flex-direction: row; justify-content: space-between; align-items: center;
  padding: 20px 48px; background: var(--outer-bg);
  border-top: 1px solid var(--border);
}
.footer-copy { font-size: 14px; color: var(--navy); font-weight: 700; }
.footer-socials { display: flex; gap: 24px; }
.footer-socials a { transition: transform 0.2s; display: flex; align-items: center; }
.footer-socials a:hover { transform: translateY(-2px); }
.footer-socials svg { width: 24px; height: 24px; }

/* ── COURSE BUNDLES PAGE ── */
.courses-menu-section {
  display: flex;
  flex-direction: column;
  gap: 38px;
  max-width: 100%;
  margin: 0;
  animation: fadeIn 0.4s ease-in-out;
}

.courses-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.courses-header-left h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.courses-header-left p {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}

.courses-header-right {
  display: flex;
  gap: 16px;
}

.header-stat-badge-legacy {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--box-bg);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(3, 27, 78, 0.02);
}

.stat-badge-icon {
  font-size: 20px;
}

.stat-badge-info {
  display: flex;
  flex-direction: column;
}

.stat-badge-info strong {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.stat-badge-info span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

/* 4 Column Cards Grid */
.courses-cards-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.course-bundle-card {
  position: relative;
  background: var(--box-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(3, 27, 78, 0.03);
}

.course-bundle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(3, 27, 78, 0.08);
}

.course-bundle-card.card-da { background: rgba(16, 185, 129, 0.03); }
.course-bundle-card.card-ds { background: rgba(0, 102, 204, 0.03); }
.course-bundle-card.card-de { background: rgba(124, 58, 237, 0.03); }
.course-bundle-card.card-mle { background: rgba(249, 115, 22, 0.03); }

.course-bundle-card.card-da:hover { border-color: #10b981; }
.course-bundle-card.card-ds:hover { border-color: var(--blue); }
.course-bundle-card.card-de:hover { border-color: #7c3aed; }
.course-bundle-card.card-mle:hover { border-color: #f97316; }

.bundle-badge {
  position: absolute;
  top: 14px;
  left: 24px;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.badge-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.badge-blue { background: rgba(0, 102, 204, 0.1); color: var(--blue); }

.bundle-card-top {
  margin-top: 16px;
  margin-bottom: 20px;
}

.bundle-card-illustration {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.bundle-card-illustration img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.course-bundle-card:hover .bundle-card-illustration img {
  transform: translateY(-4px) scale(1.02);
}

.illustration-green {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.02);
}
.illustration-blue {
  color: var(--blue);
  border-color: rgba(0, 102, 204, 0.2);
  background: rgba(0, 102, 204, 0.02);
}
.illustration-purple {
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.2);
  background: rgba(124, 58, 237, 0.02);
}
.illustration-orange {
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.2);
  background: rgba(249, 115, 22, 0.02);
}

.bundle-eyebrow {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 6px;
}

.eyebrow-green { color: #10b981; }
.eyebrow-blue { color: var(--blue); }
.eyebrow-purple { color: #7c3aed; }
.eyebrow-orange { color: #f97316; }

.course-bundle-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
}

.bundle-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bundle-features li {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  padding-left: 28px;
}

.bundle-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}

.features-green li::before { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.features-blue li::before { background: rgba(0, 102, 204, 0.10); color: var(--blue); }
.features-purple li::before { background: rgba(124, 58, 237, 0.10); color: #7c3aed; }
.features-orange li::before { background: rgba(249, 115, 22, 0.10); color: #f97316; }

.bundle-stats-row {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-radius: 10px;
  margin-top: auto;
  margin-bottom: 20px;
  gap: 8px;
}

.stats-green { background: rgba(16, 185, 129, 0.06); }
.stats-blue { background: rgba(0, 102, 204, 0.05); }
.stats-purple { background: rgba(124, 58, 237, 0.05); }
.stats-orange { background: rgba(249, 115, 22, 0.05); }

.bundle-stats-row div {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.bundle-stats-row div strong {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy);
}

.bundle-stats-row div span {
  font-size: 9px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

.bundle-price-area {
  margin-bottom: 16px;
  height: 32px;
}

.bundle-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bundle-price-large {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.bundle-price-strike {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
}

.bundle-discount-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.discount-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.bundle-coming-soon-badge-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  margin-top: auto;
  text-align: center;
  padding-top: 8px;
}

.bundle-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}

.btn-green { background: #10b981; color: #fff; }
.btn-green:hover { background: #059669; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #0052a3; }
.btn-purple { background: #7c3aed; color: #fff; }
.btn-purple:hover { background: #6d28d9; }
.btn-orange { background: #f97316; color: #fff; }
.btn-orange:hover { background: #ea580c; }

.btn-disabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.7;
}

.card-ds .btn-disabled {
  background: #eff6ff;
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.15);
}
.card-de .btn-disabled {
  background: #f5f3ff;
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.15);
}
.card-mle .btn-disabled {
  background: #fff7ed;
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.15);
}

/* Trust Badges Footer */
.courses-trust-footer-legacy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 16px;
}

.trust-footer-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.trust-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--box-bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--blue);
  flex-shrink: 0;
}

.trust-badge-text {
  display: flex;
  flex-direction: column;
}

.trust-badge-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.trust-badge-text span {
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .courses-cards-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
  .courses-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .courses-trust-footer {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .courses-cards-grid-4col {
    grid-template-columns: 1fr;
  }
}

/* ── COURSES OVERLAY MENU ── */
#courses-menu {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(244, 246, 248, 0.95); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
#courses-menu.open { opacity: 1; pointer-events: auto; }
.courses-menu-inner {
  width: 100%; max-width: 1200px; padding: 40px;
  max-height: 90vh; overflow-y: auto;
}
/* Scrollbar Styling */
.courses-menu-inner::-webkit-scrollbar { width: 6px; }
.courses-menu-inner::-webkit-scrollbar-track { background: transparent; }
.courses-menu-inner::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

.courses-menu-title {
  font-family: 'DM Sans', sans-serif; font-size: 36px; font-weight: 800; color: var(--navy);
  margin-bottom: 40px; text-align: center;
}
.course-cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.menu-card {
  background: var(--box-bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 40px 32px; text-align: center; cursor: pointer; transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(3, 27, 78, 0.04); display: flex; flex-direction: column; align-items: center;
}
.menu-card:hover { border-color: var(--cyan); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 180, 216, 0.1); }
.menu-card .c-icon { font-size: 40px; margin-bottom: 20px; }
.menu-card h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 8px; line-height: 1.2;}
.menu-card p { font-size: 15px; color: var(--muted); font-weight: 500; margin-bottom: 24px; }

.card-tech-logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: auto; margin-bottom: 24px;
}
.tech-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700;
  padding: 6px 12px; border-radius: 6px; background: var(--box-bg2);
  border: 1px solid var(--border2); color: var(--navy);
}
.tech-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.badge.live-now {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-family: 'DM Sans', sans-serif; font-weight: 700;
  background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 99px;
}
.badge.coming-soon {
  display: inline-block; font-size: 11px; font-family: 'DM Mono', monospace;
  background: var(--box-bg2); padding: 8px 16px; border-radius: 6px; color: var(--blue); font-weight: 700;
}

/* ── FULL WEBSITE COURSE DETAIL VIEW ── */
#detail-view {
  position: fixed; inset: 0; z-index: 5000;
  background: var(--outer-bg); overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
  padding-top: 88px; 
}
#detail-view.open { opacity: 1; pointer-events: auto; }

.detail-inner { 
  max-width: 1200px; margin: 0 auto; background: var(--box-bg); 
  min-height: 100vh; padding: 48px 64px 80px; 
  box-shadow: 0 0 40px rgba(3, 27, 78, 0.03);
}

.course-container { display: none; }
.course-container.active { display: block; }

/* Fixed Single Line Back Button */
.detail-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer;
  background: var(--box-bg2); padding: 10px 20px; border-radius: 99px;
  border: 1px solid var(--border); transition: all .2s; margin-bottom: 48px;
  font-family: 'DM Sans', sans-serif; white-space: nowrap; width: max-content;
}
.detail-back:hover { background: var(--border); color: var(--cyan); }

.detail-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.detail-left .eyebrow {
  font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; display: flex; align-items: center;
}
.detail-left h1 {
  font-family: 'DM Sans', sans-serif; font-size: clamp(40px, 5vw, 60px); 
  font-weight: 800; line-height: 1.1; margin-bottom: 20px;
}
.detail-left p {
  font-size: 17px; font-weight: 500; color: var(--muted); line-height: 1.7; max-width: 480px; margin-bottom: 24px;
}
.highlight-box {
  background: rgba(0, 180, 216, 0.05); border: 1px solid rgba(0, 180, 216, 0.2);
  padding: 16px 20px; border-radius: 8px; margin-top: 16px;
  font-weight: 700; color: var(--blue); font-size: 16px; max-width: 480px; line-height: 1.5;
}

.pdf-viewer-wrap {
  background: var(--box-bg2); border-radius: var(--radius-sm);
  padding: 32px; border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center;
}
.pdf-viewer-wrap h3 {
  font-family: 'DM Sans', sans-serif; font-size: 20px; font-weight: 800;
  color: var(--navy); margin-bottom: 8px; width: 100%; text-align: left;
}
.pdf-viewer-wrap p {
  font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 16px; width: 100%; text-align: left;
}
.video-section {
  width: 100%;
  margin-bottom: 24px;
}
.video-wrapper {
  position: relative;
  width: 100%;
  min-height: 180px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: #0f172a;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.preview-copy {
  font-weight: 700 !important;
  color: var(--navy) !important;
  margin-bottom: 12px !important;
}
.conversion-callout {
  width: 100%;
  margin-bottom: 20px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-top: 5px solid var(--cyan);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(3, 27, 78, 0.06);
}
.conversion-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--cyan);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.conversion-callout p {
  margin: 0 !important;
  color: var(--navy) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
}
.conversion-callout strong {
  color: var(--blue);
  font-weight: 900;
}
.conversion-callout p span {
  display: block;
  margin-top: 8px;
  color: #fff;
  background: var(--navy);
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}
.pdf-top-bar { width: 100%; display: flex; justify-content: flex-end; margin-bottom: 8px; }
.btn-fullscreen {
  background: var(--box-bg); border: 1px solid var(--border); padding: 6px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 700; color: var(--navy); cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px; font-family: 'DM Sans', sans-serif;
}
.btn-fullscreen:hover { border-color: var(--cyan); color: var(--cyan); }

.pdf-container {
  width: 100%; height: 400px; background: #e5e7eb; border-radius: 8px;
  margin-bottom: 24px; overflow: hidden; border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
}
/* â”€â”€ FULLSCREEN PDF FIX â”€â”€ */
.pdf-container:fullscreen { 
  width: 100vw !important; 
  height: 100vh !important; 
  max-width: 100% !important;
  max-height: 100% !important;
  background: #e5e7eb !important; 
  padding: 0 !important; 
  border: none !important; 
  border-radius: 0 !important; 
}
.pdf-container:-webkit-full-screen { 
  width: 100vw !important; 
  height: 100vh !important; 
  max-width: 100% !important;
  max-height: 100% !important;
  background: #e5e7eb !important; 
  padding: 0 !important; 
  border: none !important; 
  border-radius: 0 !important; 
}
.pdf-container:fullscreen iframe,
.pdf-container:-webkit-full-screen iframe {
  width: 100% !important;
  height: 100% !important;
}
.pdf-container iframe { width: 100%; height: 100%; border: none; }

.form-submit-full {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 24px; border-radius: 8px; width: 100%;
  font-size: 16px; font-weight: 700; border: none; text-decoration: none;
  background: var(--navy); color: #fff; cursor: pointer; transition: all .2s; font-family: 'DM Sans', sans-serif;
}
.form-submit-full:hover { background: var(--cyan); transform: translateY(-1px); }

.download-success {
  max-width: 760px;
  min-height: 520px;
  margin: 0 auto;
  padding: 96px 32px;
  text-align: center;
  background: var(--box-bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.download-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 24px;
}
.download-success h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 16px;
}
.download-success p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}
.download-btn {
  width: auto;
  justify-content: center;
  margin-top: 32px;
  padding: 20px 40px;
  font-size: 18px;
}
.download-help {
  margin-top: 32px;
  font-size: 15px !important;
}
.download-help a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.download-help a:hover {
  color: var(--cyan);
}

.phases-wrap { margin-top: 80px; }
.phases-title {
  font-family: 'DM Sans', sans-serif; font-size: 40px; font-weight: 800;
  color: var(--navy); margin-bottom: 32px; letter-spacing: -0.02em;
}
.phase-card {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 16px; overflow: hidden; transition: border-color .2s; background: var(--box-bg);
}
.phase-card:hover { border-color: var(--border2); box-shadow: 0 4px 12px rgba(3, 27, 78, 0.04); }
.phase-header {
  display: flex; align-items: center; gap: 20px; padding: 24px 28px; cursor: pointer; background: var(--box-bg2);
}
.phase-num { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 700; color: var(--cyan); min-width: 65px; }
.phase-icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(0, 102, 204, 0.1); border: 1px solid rgba(0, 102, 204, 0.2);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; color: var(--blue);
}
.phase-header-text { flex: 1; }
.phase-header-text h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; color: var(--navy); } 
.phase-header-text p { font-size: 14px; font-weight: 500; color: var(--muted); } 
.phase-chevron { font-size: 20px; color: var(--muted); transition: transform .3s; }
.phase-card.open .phase-chevron { transform: rotate(180deg); }

.phase-body { display: none; padding: 32px; border-top: 1px solid var(--border); }
.phase-card.open .phase-body { display: block; }

.phase-topics { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.topic-pill {
  font-size: 14px; font-weight: 500; padding: 10px 18px; border-radius: 99px; 
  background: var(--box-bg); border: 1px solid var(--border);
  color: var(--text); display: flex; align-items: center; gap: 8px;
  box-shadow: 0 2px 4px rgba(3, 27, 78, 0.02); transition: border-color .2s;
}
.topic-pill:hover { border-color: var(--cyan); }
.topic-pill .dot-lvl { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lvl-basic { background: var(--success); }
.lvl-inter { background: var(--blue); }
.lvl-adv { background: #e85d4a; }

/* â”€â”€ INTERVIEW LEVELS DESIGN â”€â”€ */
.interview-level {
  background: var(--box-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; margin-bottom: 16px;
}
.interview-level h4 {
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 16px;
}
.level-stats {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.stat-item {
  font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px;
  background: var(--box-bg2); padding: 8px 14px; border-radius: 99px; border: 1px solid var(--border2);
}
.stat-item .dot-lvl { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.unit-test {
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.05), rgba(0, 180, 216, 0.01));
  border: 1px solid rgba(0, 180, 216, 0.2); border-radius: 12px; padding: 24px; margin-top: 24px;
}
.unit-test-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.unit-test-header .badge {
  font-family: 'DM Mono', monospace; font-size: 12px; padding: 4px 12px; border-radius: 99px;
  letter-spacing: 0.1em; background: var(--blue); color: #fff; font-weight: 700; text-transform: uppercase;
}
.unit-test-header h4 { font-size: 16px; font-weight: 800; color: var(--blue); } 
.unit-test-grid { display: flex; gap: 48px; flex-wrap: wrap; align-items: center; }
.test-item { text-align: center; }
.test-item .count { font-family: 'DM Sans', sans-serif; font-size: 32px; font-weight: 800; color: var(--navy); line-height: 1; }
.test-item .type { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 6px; } 

/* â”€â”€ PRICING CARDS â”€â”€ */
.detail-footer {
  margin-top: 80px; text-align: center; padding: 64px 48px;
  background: var(--box-bg2); border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.detail-footer h2 { font-family: 'DM Sans', sans-serif; font-size: 36px; font-weight: 800; margin-bottom: 12px; color: var(--navy); }
.detail-footer p { color: var(--muted); margin-bottom: 48px; font-size: 18px; font-weight: 500; max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.6; } 

.price-block-container {
  display: flex; gap: 24px; justify-content: center; align-items: stretch; flex-wrap: wrap; margin-bottom: 0;
}
.price-card {
  background: var(--box-bg); border-radius: 16px; padding: 40px 24px;
  width: 100%; max-width: 320px; box-shadow: 0 10px 30px rgba(3, 27, 78, 0.03);
  display: flex; flex-direction: column; align-items: center; text-align: center; position: relative;
  /* 299 Navy Border Applied Here */
  border: 2px solid var(--navy);
}
.price-card.featured {
  /* 499 Cyan Border Applied Here */
  border: 2px solid var(--cyan); box-shadow: 0 16px 40px rgba(0, 180, 216, 0.12);
  transform: translateY(-8px); position: relative;
}
.price-card.featured::before {
  content: 'Best Value'; position: absolute; top: -12px; background: var(--cyan); color: #fff;
  font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.1em;
}

.price-strike {
  text-decoration: line-through; font-size: 22px; font-weight: 700; margin-bottom: 4px;
  color: var(--navy); opacity: 0.6;
}
.discount-tag {
  color: var(--success); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; background: rgba(16, 185, 129, 0.1); padding: 4px 10px; border-radius: 6px;
}

.price-card .amt { font-family: 'DM Sans', sans-serif; font-size: 48px; font-weight: 800; line-height: 1; margin-bottom: 16px; color: var(--navy); }
.price-card .note { font-size: 15px; font-weight: 600; line-height: 1.5; margin-bottom: 32px; flex: 1; color: var(--navy); } 
.price-card .note span { color: var(--navy); opacity: 0.85; }

.price-card.featured .amt { color: var(--cyan); }
.price-card.featured .note { color: var(--text); } 
.price-card.featured .note span { color: var(--muted); opacity: 1; }

/* â”€â”€ MODAL â”€â”€ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(3, 27, 78, 0.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--box-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px; width: 100%; max-width: 440px;
  box-shadow: 0 20px 40px rgba(3, 27, 78, 0.15);
}
.modal h2 { font-family: 'DM Sans', sans-serif; font-size: 24px; font-weight: 800; margin-bottom: 8px; color: var(--navy); } 
.modal .sub { font-size: 15px; color: var(--muted); margin-bottom: 32px; line-height: 1.6; } 
.modal-field { margin-bottom: 20px; text-align: left; }
.modal-field label { font-size: 12px; font-weight: 800; color: var(--muted); display: block; margin-bottom: 8px; letter-spacing: 0.05em; text-transform: uppercase; } 
.modal-field input {
  width: 100%; padding: 14px 16px; border-radius: 8px;
  background: var(--box-bg2); border: 1px solid var(--border);
  color: var(--navy); font-size: 15px; font-family: 'DM Sans', sans-serif; 
  outline: none; transition: border-color .2s;
}
.modal-field input:focus { border-color: var(--cyan); }
.modal-submit {
  width: 100%; padding: 16px; border-radius: 8px; border: none;
  background: var(--navy); color: #fff; font-size: 15px; font-weight: 700; 
  cursor: pointer; transition: all .2s; margin-top: 12px; font-family: 'DM Sans', sans-serif;
}
.modal-submit:hover { background: var(--cyan); }
.modal-privacy { font-size: 12px; color: var(--muted); text-align: center; margin-top: 16px; line-height: 1.5; } 
.modal-close {
  float: right; background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 24px; line-height: 1; margin-top: -8px; margin-right: -8px;
}
.modal-close:hover { color: var(--navy); }

.modal-success { display: none; text-align: center; padding: 12px 0; }
.modal-success .check { font-size: 48px; color: var(--success); margin-bottom: 16px; }
.modal-success h3 { font-family: 'DM Sans', sans-serif; font-size: 24px; font-weight: 800; margin-bottom: 8px; color: var(--navy); }
.modal-success p { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.modal-success .drive-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; border-radius: 8px;
  background: var(--cyan); color: #fff; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: all .2s;
}
.modal-success .drive-link:hover { background: var(--navy); transform: translateY(-1px); }

@media (max-width: 768px) {
  .outer-nav { padding: 16px 24px; }
  .outer-links .nav-link { display: none; }
  #main-stage { padding: 80px 16px 64px; }
  .central-box { max-height: none; border-radius: 14px; }
  .slide-content { padding: 0 24px; max-width: 100%; }
  .slide-orb { display: none; }
  .slide-heading { font-size: 36px; }
  .detail-inner { padding: 40px 24px 40px; }
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .phases-wrap { margin-top: 48px; }
  .phases-title { font-size: 32px; }
  .price-card.featured { transform: none; }
  .course-cards-grid { grid-template-columns: 1fr; }
  .dots { display: none; }
  .home-footer { padding: 16px 24px; flex-direction: column-reverse; gap: 16px; }
  .side-highlights { display: none !important; }
}

/* â”€â”€ REVIEWS SECTION â”€â”€ */
.reviews-section {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  /* Adds space at the bottom so it doesn't hit the footer */
  margin-bottom: 100px; 
}
.reviews-header { text-align: center; margin-bottom: 48px; }
.reviews-header h2 { font-family: 'DM Sans', sans-serif; font-size: 36px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.reviews-header p { color: var(--muted); font-size: 16px; margin-bottom: 24px; font-weight: 500; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--box-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(3, 27, 78, 0.03);
  display: flex;
  flex-direction: column;
}
.review-card .stars { color: #f59e0b; font-size: 20px; margin-bottom: 16px; letter-spacing: 2px; }
.review-text { font-size: 15px; color: var(--text); line-height: 1.6; margin-bottom: 24px; font-weight: 500; flex: 1; }
.review-author { font-weight: 800; color: var(--navy); font-size: 15px; }

/* Textarea styling for the modal */
textarea {
  width: 100%; padding: 14px 16px; border-radius: 8px;
  background: var(--box-bg2); border: 1px solid var(--border);
  color: var(--navy); font-size: 15px; font-family: 'DM Sans', sans-serif; 
  outline: none; transition: border-color .2s; resize: vertical;
}
textarea:focus { border-color: var(--cyan); }

/* â”€â”€ FIX FOR NAV BAR OVERLAP â”€â”€ */
#main-stage {
  padding-top: 110px; /* Creates a bumper to push the box below the logo */
  box-sizing: border-box; 
}

/* Extra adjustment for mobile phones */
@media (max-width: 768px) {
  #main-stage {
    padding-top: 90px;
  }
  .central-box {
    margin-top: 15px; /* Gives a little extra breathing room on small screens */
  }
}

/* â”€â”€ LAPTOP & SHORT SCREEN RESPONSIVENESS â”€â”€ */
@media (max-height: 850px), (max-width: 1366px) {
  /* Forces a safe breathing space at the top so it never hits the ceiling */
  .slide-content {
    padding-top: 40px !important; 
    padding-bottom: 40px !important;
  }
  
  /* Smoothly scales the giant text down a bit on smaller screens */
  .slide-heading {
    font-size: 44px !important; 
    line-height: 1.1 !important;
    margin-bottom: 16px !important;
  }
  
  /* Pulls the description up slightly */
  .slide-desc {
    font-size: 15px !important;
    margin-bottom: 24px !important;
  }
  
  /* Tucks the buttons a little closer together */
  .btn-stack {
    gap: 12px !important;
  }
}
/* â”€â”€ FIX FOR DETAIL VIEW OVERLAP â”€â”€ */
#detail-view {
  padding-top: 110px !important;
  box-sizing: border-box;
}

/* Matches the mobile spacing for phones */
@media (max-width: 768px) {
  #detail-view {
    padding-top: 90px !important;
  }
}

/* â”€â”€ RESPONSIVE LOGO FIX â”€â”€ */
.nav-logo {
  height: 60px;        /* Your preferred large size */
  width: auto;         /* Automatically calculates width so it never stretches */
  max-width: 100%;     /* Prevents it from breaking the screen horizontally */
  object-fit: contain; /* Keeps the image perfectly crisp */
}

/* â”€â”€ INDESTRUCTIBLE BUMPER FOR ALL PAGES â”€â”€ */
#main-stage, #detail-view {
  padding-top: 130px !important; /* A larger, safer gap for laptops and desktops */
}

/* â”€â”€ SMART ADJUSTMENTS FOR PHONES â”€â”€ */
@media (max-width: 768px) {
  .nav-logo {
    height: 42px; /* Slightly shrinks the logo ONLY on phones so buttons still fit beautifully */
  }
  #main-stage, #detail-view {
    padding-top: 100px !important; /* Perfect spacing for the slightly smaller phone logo */
  }
}

/* â”€â”€ LAPTOP ASPECT RATIO FIX (Targets 1080p Laptops) â”€â”€ */
@media (max-height: 950px), (max-width: 1440px) {
  :root {
    --home-box-max: 940px;
  }
  .central-box {
    max-width: 940px !important; /* Shrinks the box to restore perfect side margins */
  }
  .slide-orb {
    width: 250px !important; 
    height: 250px !important;
    right: -10px !important; /* Tucks the circular graphic neatly into the smaller box */
  }
}

/* Ensure it still looks good on smaller tablets/phones */
@media (max-width: 768px) {
  .central-box {
    width: 92% !important; /* Gives back the space on mobile so text fits */
  }
}

/* â”€â”€ MOBILE HERO REPAIR â”€â”€ */
@media (max-width: 768px) {
  /* Shrink the giant heading so it fits on 2-3 lines */
  .slide-heading {
    font-size: 30px !important; 
    line-height: 1.15 !important;
    margin-bottom: 12px !important;
  }
  
  /* Tighten up the description text */
  .slide-desc {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
  }

  /* Make the buttons slightly more compact */
  .btn-primary {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
  
  /* Bring the buttons closer together */
  .btn-stack {
    gap: 12px !important;
  }

  /* Hide the overlapping 'SCROLL' arrow on mobile (users naturally swipe anyway) */
  .scroll-hint {
    display: none !important;
  }
}

/* â”€â”€ NAV BUTTON UPGRADES â”€â”€ */
.btn-courses {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 99px; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700; background: var(--cyan); color: #fff;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
}
.btn-courses:hover { 
  background: var(--navy); transform: translateY(-1px); 
}

/* â”€â”€ FOOTER RESIZING (ALL VIEWS) â”€â”€ */
.footer-copy { 
  font-size: 12px !important; 
  font-weight: 600 !important; 
}
.footer-socials svg { 
  width: 18px !important; 
  height: 18px !important; 
}

/* â”€â”€ MOBILE SPECIFIC UPGRADES (STACKED BUTTONS & TINY FOOTER) â”€â”€ */
@media (max-width: 768px) {
  /* 1. Grid layout for Nav Buttons on mobile */
  .outer-links {
    display: grid !important;
    grid-template-areas: 
      "handbook handbook"
      "courses help" !important;
    gap: 6px !important;
    justify-content: end !important;
    align-items: center !important;
  }
  
  .btn-courses {
    grid-area: courses;
    padding: 6px 14px !important;
    font-size: 12px !important;
    width: 100px !important;           /* Forces them to be exactly the same width for a clean look */
    justify-content: center !important;
  }

  .btn-help {
    grid-area: help;
    padding: 6px 14px !important;
    font-size: 12px !important;
    width: 100px !important;           /* Forces them to be exactly the same width for a clean look */
    justify-content: center !important;
  }

  .handbook-dropdown-wrap {
    grid-area: handbook;
    display: inline-flex !important;
    position: relative !important;
  }

  .btn-handbook {
    padding: 6px 14px !important;
    font-size: 11px !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  .handbook-dropdown {
    right: 0 !important;
    left: auto !important;
    transform: translateY(-8px) !important;
    min-width: 260px !important;
  }
  .handbook-dropdown.open {
    transform: translateY(0) !important;
  }
  .handbook-dropdown::before {
    left: auto !important;
    right: 24px !important;
    transform: rotate(45deg) !important;
  }

  .central-box {
    margin-left: 0 !important;         /* Reset rightward shift on mobile */
  }

  /* 2. Forces the Footer to be small on Mobile */
  .footer-copy { 
    font-size: 11px !important;        /* Extra small for mobile */
    text-align: center !important;
  }
  
  .footer-socials {
    gap: 16px !important;              /* Brings icons closer together */
    justify-content: center !important;
  }
  
  .footer-socials svg { 
    width: 16px !important;            /* Shrinks the social icons */
    height: 16px !important; 
  }
}

/* â”€â”€ COURSES MENU SCROLL BUG FIX â”€â”€ */
#courses-menu {
  overflow-y: auto !important;           /* Unlocks vertical scrolling */
  justify-content: flex-start !important; /* Stops the top from getting cut off on small screens */
  padding-top: 120px !important;         /* Pushes the content down safely below the Navigation Bar */
  padding-bottom: 60px !important;       /* Gives some breathing room at the very bottom */
}

.courses-menu-inner {
  margin: 0 auto auto auto !important;   /* Keeps it perfectly centered on desktop, but scrollable on mobile */
}

/* Slightly reduce the padding on mobile so it looks tighter */
@media (max-width: 768px) {
  #courses-menu {
    padding-top: 100px !important;
  }
}

/* â”€â”€ MOBILE FOOTER HEIGHT FIX (SLIM CONTAINER) â”€â”€ */
@media (max-width: 768px) {
  .home-footer {
    padding: 12px 16px !important; /* Reduces the bulky top/bottom cushion */
    gap: 8px !important;           /* Brings the social icons and text closer together */
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CROSS-DEVICE FIXES  (appended â€” do not edit above this line)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ FIX 1: SCROLL HINT OVERLAP ON SHORT LAPTOP SCREENS â”€â”€â”€â”€â”€â”€
   Root cause: .scroll-hint is position:fixed; bottom:80px  
   On 768-850px-tall laptops the box grows tall enough that  
   bottom:80px lands inside the card, sitting on top of the  
   second CTA button (visible in Friend 2 & Friend 3 laptops).
   Solution: hide the hint below 780px viewport height.       
   Users can still navigate with side dots or arrow keys.     */
@media (max-height: 780px) {
  .scroll-hint {
    display: none !important;
  }
}

/* â”€â”€ FIX 2: NAV LOGO OVERFLOW ON ANDROID / SMALL PHONES â”€â”€â”€â”€â”€â”€
   Root cause: the logo <img> has an inline style="width:260px"
   Inline styles beat normal CSS, so the .nav-logo class rules 
   (width:auto) never apply. On a 375-400px Android screen:   
     logo 260px + 48px padding + 2Ã— button 100px = 508px      
   â†’ overflows the screen, clipping "Courses" and hiding      
     "Need Help?" entirely (visible in Friend 1 Android shot). 
   Solution: use !important to beat the inline style.         */
@media (max-width: 520px) {
  .outer-nav img {
    max-width: 148px !important;   /* overrides inline width:260px */
    width:     auto !important;
    height:    40px !important;
    object-fit: contain;
  }
  .outer-nav {
    padding: 10px 14px !important; /* reclaim horizontal space    */
  }
  .btn-courses, .btn-help {
    width: 90px !important;        /* slightly tighter pill width */
    font-size: 11px !important;
    padding: 5px 10px !important;
  }
  .btn-handbook {
    font-size: 10px !important;
    padding: 5px 10px !important;
  }
}

/* â”€â”€ FIX 3: GIANT EMPTY SPACE AT TOP OF MOBILE SLIDES â”€â”€â”€â”€â”€â”€â”€â”€
   Root cause: .slide uses align-items:center which vertically  
   centres content inside a full-viewport-height flex child.   
   Slide 3 (one button, shorter text) leaves ~200px of dead    
   space above the heading (visible in My Phone screenshot).   
   The (max-width:1366px) rule also forces padding-top:40px    
   with !important, compounding the empty gap on mobile.       
   Solution: switch to flex-start on mobile so content reads   
   naturally from the top, matching how images 2 & 4 look.    */
@media (max-width: 768px) {
  .slide {
    align-items: flex-start !important;
  }
  .slide-content {
    padding-top:    24px !important;  /* replaces the 40px !important */
    padding-bottom: 24px !important;
  }
}

/* â”€â”€ QUICK BUY BUTTONS (UNDER HIGHLIGHT BOX) â”€â”€ */
.quick-buy-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  max-width: 480px; /* Matches the width of the highlight box above it */
}

.quick-buy-row {
  display: flex;
  gap: 12px;
}

.btn-quick {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 99px; /* Pill shape matching Nav buttons */
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
}

.btn-quick.btn-navy {
  background: var(--navy);
  color: #fff;
  flex: 1; /* Forces both top buttons to be exactly 50% width */
}

.btn-quick.btn-navy:hover {
  background: var(--cyan);
  transform: translateY(-2px);
}

.btn-quick.btn-cyan {
  background: var(--cyan);
  color: #fff;
  width: 100%; /* Forces the bottom button to span the whole width */
}

.btn-quick.btn-cyan:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

/* â”€â”€ MOBILE FIX FOR QUICK BUY â”€â”€ */
@media (max-width: 768px) {
  .quick-buy-row {
    flex-direction: column; /* Stacks the top two buttons neatly on small phone screens */
  }
}

/* â”€â”€ DETAIL PAGE (OTHER PAGES) RESPONSIVE UPGRADE â”€â”€ */

/* 1. Make the Detail View a Floating Premium Card on Desktop */
.detail-inner {
  width: 94% !important; /* Forces safe margins on the sides for laptops */
  max-width: 1200px !important;
  margin: 0 auto 80px auto !important; /* Centers it and adds breathing room at the bottom */
  border-radius: 24px !important; /* Rounds the corners to perfectly match the Home Page */
  border: 1px solid var(--border) !important; 
  min-height: auto !important;
}

/* 2. Small Laptop & Tablet Failsafe (Prevents the PDF from getting squished) */
@media (max-width: 1024px) {
  .detail-inner {
    padding: 48px 40px 80px !important;
  }
  .detail-grid {
    grid-template-columns: 1fr !important; /* Stacks the text on top of the PDF viewer */
    gap: 56px !important;
  }
  .pdf-viewer-wrap {
    max-width: 700px; /* Keeps the PDF a nice readable size */
    margin: 0 auto; /* Centers the PDF block under the text */
  }
}

/* 3. Mobile Phone Perfection (Snaps to edges to maximize reading space) */
@media (max-width: 768px) {
  .detail-inner {
    width: 100% !important; /* Goes full width on phones */
    border-radius: 0 !important; /* Removes rounded corners to sit flush */
    border-left: none !important;
    border-right: none !important;
    padding: 40px 24px 80px !important; /* Shrinks the inner padding */
  }
}

/* â”€â”€ DETAIL PAGE FONT SIZE FIX (LAPTOPS, TABLETS & MOBILE) â”€â”€ */

/* 1. Laptops and Smaller Monitors */
@media (max-width: 1366px), (max-height: 850px) {
  .detail-left h1 {
    font-size: 38px !important; /* Overrides the massive 60px text */
    line-height: 1.15 !important;
    margin-bottom: 16px !important;
  }
  .detail-left p {
    font-size: 15px !important; /* Shrinks the description */
    max-width: 100% !important;
  }
  .phases-title {
    font-size: 32px !important; /* Shrinks the 'Curriculum Breakdown' title */
    margin-bottom: 24px !important;
  }
  .detail-footer h2 {
    font-size: 28px !important; /* Shrinks the bottom footer title */
  }
  .detail-footer p {
    font-size: 16px !important;
  }
}

/* 2. Mobile Phones (Extra Shrink) */
@media (max-width: 768px) {
  .detail-left h1 {
    font-size: 32px !important;
  }
  .phases-title {
    font-size: 26px !important;
    text-align: center !important;
  }
  .detail-footer h2 {
    font-size: 24px !important;
  }
}
/* â”€â”€ FAQ & POLICIES ACCORDION UPGRADES â”€â”€ */
.faq-legal-section {
  max-width: 800px;
  margin: 64px auto 80px auto; /* Centers the block below pricing */
  padding: 0 24px;
}

.faq-title {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 32px;
}

.faq-item {
  background: var(--box-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(3, 27, 78, 0.02);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--border2);
}

.faq-item[open] {
  border-color: var(--cyan);
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.08);
}

.faq-item summary {
  padding: 20px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* Hides default triangle */
}

/* Hide default marker for Safari/older browsers */
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Custom + / x Icon */
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--cyan);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg); /* Turns the + into an X */
  color: var(--navy);
}

.faq-content {
  padding: 0 24px 24px 24px;
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  font-weight: 500;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 20px;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .faq-legal-section { margin-top: 48px; padding: 0 16px; }
  .faq-title { font-size: 24px; margin-bottom: 24px; }
  .faq-item summary { font-size: 15px; padding: 16px 20px; }
  .faq-content { font-size: 14px; padding: 0 20px 20px 20px; }
}

/* ── HELP & FAQ PAGE (MODERN CARD LAYOUT) ── */
.help-faq-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.help-faq-hero {
  background: #fff;
  border: 1px solid rgba(3, 27, 78, 0.06);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(3, 27, 78, 0.02);
  text-align: center;
}

.help-faq-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 14px;
  font-family: 'DM Mono', monospace;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-faq-kicker span {
  width: 22px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
  flex-shrink: 0;
}

.help-faq-hero h1 {
  margin: 0 0 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
}

.help-faq-hero h1 strong {
  color: var(--blue);
}

.help-faq-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

.help-faq-section {
  background: #fff;
  border: 1px solid rgba(3, 27, 78, 0.06);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(3, 27, 78, 0.02);
}

.help-faq-section h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.help-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}

.help-faq-grid .faq-item {
  margin: 0;
}

.help-faq-grid-single {
  grid-template-columns: 1fr;
}

/* ── Help Contact Card ── */
.help-contact-card {
  background: #fff;
  border: 1px solid rgba(3, 27, 78, 0.06);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(3, 27, 78, 0.02);
  text-align: center;
}

.help-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 102, 204, 0.07);
  color: var(--blue);
  margin-bottom: 16px;
}

.help-contact-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}

.help-contact-card p {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

.help-contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.help-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
}

.help-btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.2);
}

.help-btn-whatsapp:hover {
  background: #1ebd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.help-btn-email {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(3, 27, 78, 0.15);
}

.help-btn-email:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.25);
}

/* ── Help FAQ Responsive ── */
@media (max-width: 900px) {
  .help-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .help-faq-page {
    gap: 16px;
  }

  .help-faq-hero,
  .help-faq-section,
  .help-contact-card {
    padding: 18px;
    border-radius: 12px;
  }

  .help-faq-hero h1 {
    font-size: clamp(22px, 5vw, 28px);
  }

  .help-faq-subtitle {
    font-size: 14px;
  }

  .help-contact-btn {
    width: 100%;
    padding: 14px 20px;
  }

  .help-contact-actions {
    flex-direction: column;
    gap: 10px;
  }
}


/* â”€â”€ DATA SCIENCE SUB-CHAPTER BOXES â”€â”€ */
.ds-sub-group {
  margin-bottom: 20px;
  padding: 24px;
  background: var(--box-bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.ds-sub-group:last-child {
  margin-bottom: 0;
}
.ds-sub-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ds-sub-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}

/* â”€â”€ PREVENT COURSES MENU FROM HANGING DOWN â”€â”€ */
#courses-menu {
  max-height: 100vh !important; 
  overflow-y: auto !important; /* Adds a scrollbar if the menu is taller than the screen */
  box-sizing: border-box !important;
  padding-bottom: 24px !important; /* Gives breathing room at the bottom */
}

.subject-brief-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding: 12px;
  background: var(--box-bg2);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  justify-content: center;
}

/* Course subject snapshot below quick-buy buttons */
.preview-detail-grid {
  align-items: stretch;
}

.preview-detail-grid .with-subject-map {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.subject-map {
  width: 100%;
  max-width: 480px;
  min-height: 180px;
  margin-top: 16px;
  padding: 14px;
  background: var(--box-bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  box-shadow: 0 4px 20px rgba(3, 27, 78, 0.03);
  flex: 1;
}

.subject-map-title {
  width: 100%;
  margin-bottom: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--navy);
}

.subject-map-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.subject-chip {
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: var(--box-bg);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.subject-chip:hover {
  background: rgba(0, 180, 216, 0.08);
  border-color: var(--cyan);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 180, 216, 0.12);
}

.subject-chip:active {
  transform: translateY(0);
}

.subject-chip span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subject-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.22);
  color: var(--blue);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 800;
}

.phase-mini-icon {
  width: 19px;
  flex-shrink: 0;
  text-align: center;
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 768px) {
  .preview-detail-grid .with-subject-map {
    min-height: auto;
  }
  .subject-map {
    min-height: auto;
    flex: none;
  }
}

/* Home slider controls: mobile swipe cue and card-adjacent dots */
@media (max-width: 768px) {
  #main-stage {
    padding: 100px 18px 70px !important;
  }

  .central-box {
    width: 92% !important;
    margin-top: 0 !important;
    touch-action: pan-y;
  }

  .dots {
    display: flex !important;
    right: 5px !important;
    top: 52% !important;
    gap: 8px !important;
    padding: 8px 5px;
    border-radius: 999px;
    background: rgba(244, 246, 248, 0.78);
    backdrop-filter: blur(8px);
    z-index: 2600;
  }

  .dot {
    width: 8px !important;
    height: 8px !important;
  }

  .scroll-hint {
    display: none !important;
    flex-direction: row !important;
    left: 50% !important;
    bottom: 96px !important;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border2);
    box-shadow: 0 8px 24px rgba(3, 27, 78, 0.08);
    color: var(--navy);
    font-size: 10px !important;
    gap: 6px !important;
    z-index: 2700;
    pointer-events: none;
  }

  .scroll-hint .arrow {
    line-height: 1;
  }
}

@media (max-width: 520px) {
  #main-stage {
    padding: 104px 10px 70px !important;
  }

  .dots {
    right: 2px !important;
  }

  .scroll-hint {
    bottom: 104px !important;
  }
}

/* Mobile detail pages must never create sideways drag */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden !important;
  }

  #detail-view {
    overflow-x: hidden !important;
  }

  .detail-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    overflow-x: hidden !important;
  }

  .detail-grid,
  .preview-detail-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .detail-left,
  .detail-right,
  .detail-left > *,
  .detail-right > *,
  .quick-buy-stack,
  .quick-buy-row,
  .highlight-box,
  .subject-map,
  .pdf-viewer-wrap,
  .price-block-container,
  .price-card,
  .reviews-section,
  .faq-legal-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .detail-left h1,
  .detail-left p,
  .highlight-box,
  .btn-quick,
  .subject-chip,
  .stat-item,
  .topic-pill {
    overflow-wrap: anywhere;
  }

  .detail-left .eyebrow {
    flex-wrap: wrap;
    gap: 8px;
  }

  .detail-back {
    max-width: 100%;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LEFT-SIDE "3 POWERFUL FILES" CARD (desktop-only)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.side-highlights {
  position: fixed;
  left: max(28px, calc((100vw - min(var(--home-box-max), calc(100vw - 96px))) / 2 - 370px));
  top: calc(50% + 25px);
  transform: translateY(-50%);
  z-index: 1500;
  width: 320px;
  height: min(720px, calc(100vh - 210px));
  max-width: calc(100vw - 56px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
  opacity: 0;
  animation: shFadeIn 1.2s ease 0.8s forwards;
}

@keyframes shFadeIn {
  to { opacity: 1; }
}

.sh-files-card {
  width: 100%;
  min-height: 0;
  flex: 1;
  padding: 26px 20px 22px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 8px;
  border: 1px solid var(--border2);
  box-shadow: 0 10px 32px rgba(3, 27, 78, 0.08);
  display: grid;
  grid-template-rows: auto repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sh-files-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border2);
}

.sh-files-title strong {
  font-weight: 900;
  color: var(--blue);
}

.sh-file-row {
  display: grid;
  grid-template-columns: 46px 48px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 9px 0;
}

.sh-file-num {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.sh-file-num-blue { background: #078bd7; }
.sh-file-num-green { background: #27a844; }
.sh-file-num-amber { background: #f5a800; }

.sh-file-icon {
  position: relative;
  width: 48px;
  height: 48px;
  color: var(--navy);
  flex-shrink: 0;
}

.sh-file-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sh-word-icon span {
  position: absolute;
  left: 1px;
  top: 19px;
  min-width: 22px;
  padding: 2px 3px;
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.sh-file-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sh-file-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.25;
}

.sh-file-name span {
  color: #19933a;
}

.sh-file-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

.sh-message-card {
  width: 100%;
  min-height: 96px;
  padding: 18px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--box-bg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(3, 27, 78, 0.06);
}

.sh-message-cyan {
  border-left: 4px solid var(--cyan);
}

.sh-message-navy {
  border-left: 4px solid var(--navy);
}

.sh-message-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sh-message-copy strong {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}

.sh-message-copy span {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
}

.sh-message-card > svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--muted);
}

@media (max-width: 1499px) and (min-width: 769px) {
  .side-highlights {
    display: none !important;
  }
  .central-box {
    margin-left: 0 !important;
  }
  .outer-nav {
    padding-left: max(48px, calc(50vw - min(var(--home-box-max), calc(100vw - 96px)) / 2)) !important;
    padding-right: 48px !important;
  }
}

@media (max-height: 700px) and (min-width: 769px) {
  .side-highlights {
    display: none !important;
  }
  .central-box {
    margin-left: 0 !important;
  }
  .outer-nav {
    padding-left: max(48px, calc(50vw - min(var(--home-box-max), calc(100vw - 96px)) / 2)) !important;
    padding-right: 48px !important;
  }
}

@media (max-width: 1700px) and (min-width: 1500px) {
  :root {
    --home-box-max: 940px;
  }
  .outer-nav {
    padding-left: 20px !important;
    padding-right: 48px !important;
  }
  .central-box {
    max-width: 940px !important;
  }
  .side-highlights {
    left: 20px;
    width: 240px;
  }
  .sh-files-card {
    padding: 20px 15px 17px;
    gap: 9px;
  }
  .sh-files-title {
    font-size: 14px;
    padding-bottom: 13px;
  }
  .sh-file-num {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  .sh-file-row {
    grid-template-columns: 38px 40px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 0;
  }
  .sh-file-icon {
    width: 40px;
    height: 40px;
  }
  .sh-file-name {
    font-size: 11px;
  }
  .sh-file-desc {
    font-size: 10px;
  }
  .sh-message-card {
    min-height: 88px;
    padding: 15px 14px;
  }
  .sh-message-copy strong {
    font-size: 13px;
  }
  .sh-message-copy span {
    font-size: 10px;
  }
}

/* Final dashboard overrides after legacy home styles */
html,
body {
  min-height: 100%;
  height: auto;
  overflow: auto;
  background: #f8fafc;
  background-image: none;
}

.outer-nav,
#main-stage,
.side-highlights,
.dots,
.scroll-hint,
#homeFooter {
  display: none !important;
}

/* ── PYTHON HANDBOOK STYLES ── */
.python-detail-section {
  padding: 0;
  background: #f8fafc;
  animation: fadeInPython 0.4s ease-out;
}

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

.py-grid-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Left Content Area */
.py-left-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero block */
.py-hero-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(3, 27, 78, 0.07);
  box-shadow: 0 4px 20px rgba(3, 27, 78, 0.02);
}

.py-hero-top-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
}

.py-hero-cover-box {
  width: 260px; /* Wider cover on desktop to support side-by-side buttons */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.py-cover-img {
  width: 100%;
  aspect-ratio: 77 / 89; /* Matches the natural book cover aspect ratio (~0.865) to prevent cropping */
  object-fit: fill; /* Ensures 100% of the cover (including spiral rings) is visible */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(3, 27, 78, 0.12);
  transition: transform 0.3s ease;
}

.py-cover-img:hover {
  transform: scale(1.02);
}

.py-cover-ctas {
  display: flex;
  flex-direction: row;
  gap: 8px;
  width: 100%;
}

.py-cover-ctas .py-btn {
  flex: 1;
  padding: 10px 8px;
}

.py-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.py-btn-primary {
  background: #0059ff;
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 89, 255, 0.2);
}

.py-btn-primary:hover {
  background: #0047cc;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 89, 255, 0.3);
}

.py-btn-outline {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.py-btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.py-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.py-cover-benefits {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 16px 24px;
  width: 100%;
  background: #f0edff;
  border: 1.5px dashed #7c89ff;
  border-radius: 10px;
  box-sizing: border-box;
}

.py-cover-benefits div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.py-cover-benefits div::before {
  content: "✓";
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  flex-shrink: 0;
}

.py-hero-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.py-tag-bestseller {
  background: #22c55e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.py-hero-info h1 {
  font-size: 28px;
  font-weight: 800;
  color: #031b4e;
  margin: 0 0 8px;
  line-height: 1.2;
}

.py-subtitle {
  font-size: 15px;
  color: #536176;
  margin: 0 0 16px;
  line-height: 1.45;
  font-weight: 500;
}

.py-meta-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.py-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.py-meta-item svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #64748b;
  stroke-width: 2.2;
}

.py-star-icon {
  color: #f59e0b;
  font-size: 16px;
}

.py-price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 18px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  width: max-content;
}

.py-price-strike {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 600;
}

.py-price-large {
  color: #0059ff;
  font-size: 24px;
  font-weight: 900;
}

.py-discount-badge {
  background: #dcfce7;
  color: #16a34a;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.py-hero-ctas-mobile {
  display: none;
  width: 100%;
  margin-top: 16px;
}

/* Sections General */
.py-section {
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(3, 27, 78, 0.07);
  box-shadow: 0 4px 20px rgba(3, 27, 78, 0.02);
}

.py-section h2 {
  font-size: 17px;
  font-weight: 800;
  color: #031b4e;
  margin: 0 0 16px;
}

.py-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  width: 100%;
}

.py-section-header h2 {
  margin-bottom: 0;
}

.py-btn-link {
  background: none;
  border: none;
  color: #0059ff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.py-btn-link:hover {
  background: #f0f6ff;
  color: #0044cc;
}

/* What You'll Learn Grid */
.py-learn-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.py-learn-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  height: 100%;
  min-height: 92px;
  padding: 12px 8px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.py-learn-card:hover {
  transform: translateY(-3px);
  border-color: #0059ff;
  box-shadow: 0 8px 20px rgba(0, 89, 255, 0.08);
}

.py-card-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.py-card-icon-wrapper svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Icon Colors mapping */
.py-icon-blue { background: rgba(0, 89, 255, 0.07); color: #0059ff; }
.py-icon-cyan { background: rgba(6, 182, 212, 0.07); color: #0891b2; }
.py-icon-indigo { background: rgba(99, 102, 241, 0.07); color: #4f46e5; }
.py-icon-teal { background: rgba(20, 184, 166, 0.07); color: #0d9488; }
.py-icon-orange { background: rgba(249, 115, 22, 0.07); color: #ea580c; }
.py-icon-purple { background: rgba(168, 85, 247, 0.07); color: #9333ea; }
.py-icon-red { background: rgba(239, 68, 68, 0.07); color: #dc2626; }
.py-icon-violet { background: rgba(139, 92, 246, 0.07); color: #7c3aed; }
.py-icon-green { background: rgba(34, 197, 94, 0.07); color: #16a34a; }

.py-learn-card span {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Detailed Curriculum Accordion */
.py-curriculum-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.py-accordion-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s;
}

.py-accordion-card:hover {
  border-color: #cbd5e1;
}

.py-accordion-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  cursor: pointer;
  background: #f8fafc;
  user-select: none;
  transition: background-color 0.2s;
}

.py-accordion-header:hover {
  background: #f1f5f9;
}

.py-acc-play-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 89, 255, 0.08);
  display: grid;
  place-items: center;
  color: #0059ff;
  flex-shrink: 0;
}

.courses-trust-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 16px;
}

.trust-footer-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.trust-badge-icon-svg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.trust-badge-icon-svg svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2px;
}

.trust-icon-blue {
  background: rgba(59, 130, 246, 0.06);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.1);
}

.trust-icon-green {
  background: rgba(16, 185, 129, 0.06);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.1);
}

.trust-icon-purple {
  background: rgba(99, 102, 241, 0.06);
  color: #6366f1;
  border-color: rgba(99, 102, 241, 0.1);
}

.py-acc-play-btn svg {
  width: 9px;
  height: 9px;
  fill: currentColor;
}

.py-acc-title-group {
  flex: 1;
}

.py-acc-title-group h3 {
  font-size: 14px;
  font-weight: 800;
  color: #031b4e;
  margin: 0 0 2px;
  line-height: 1.2;
}

.py-acc-title-group p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  font-weight: 600;
}

.py-acc-chevron {
  font-size: 10px;
  color: #94a3b8;
  transition: transform 0.25s ease;
}

.py-accordion-card.open .py-acc-chevron {
  transform: rotate(180deg);
}

.py-accordion-body {
  display: none;
  padding: 20px 24px;
  border-top: 1px solid #f1f5f9;
  background: #fff;
  animation: slideDownPy 0.25s ease-out;
}

@keyframes slideDownPy {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.py-accordion-card.open .py-accordion-body {
  display: block;
}

.py-acc-details-grid ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  padding: 0;
  margin: 0;
}

.py-acc-details-grid li {
  font-size: 13px;
  color: #334155;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.py-acc-details-grid li::before {
  content: "•";
  color: #00b4d8;
  font-weight: 900;
  font-size: 16px;
  line-height: 11px;
}

/* ── Python Syllabus PDF Viewer ── */
.py-syllabus-viewer-section {
  overflow: visible;
}

.py-syllabus-viewer-section h2 {
  margin: 0;
}

.py-syllabus-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: start;
}

.py-syllabus-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.py-syllabus-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}

.py-syllabus-meta {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin: 4px 0 0;
}

.py-syllabus-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #031b4e;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.py-syllabus-fullscreen-btn svg {
  flex-shrink: 0;
}

.py-syllabus-fullscreen-btn:hover {
  border-color: #0059ff;
  color: #0059ff;
  background: #f0f6ff;
}

.py-syllabus-pdf-frame {
  width: 100%;
  height: 480px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
}

.py-syllabus-pdf-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Right Info Card */
.py-syllabus-right {
  position: sticky;
  top: 24px;
}

.py-syllabus-info-card {
  background: linear-gradient(180deg, #f8fbff 0%, #f0f6ff 100%);
  border: 1px solid rgba(0, 89, 255, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.py-syllabus-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0059ff, #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 89, 255, 0.18);
}

.py-syllabus-info-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0059ff;
  line-height: 1.35;
  margin: 0 0 14px;
}

.py-syllabus-divider {
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: #0059ff;
  margin-bottom: 14px;
}

.py-syllabus-info-card > p {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 200px;
}

.py-syllabus-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.py-syllabus-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  text-align: left;
}

.py-syllabus-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.py-sf-blue {
  background: rgba(0, 89, 255, 0.07);
  color: #0059ff;
}

.py-sf-green {
  background: rgba(16, 185, 129, 0.07);
  color: #10b981;
}

.py-syllabus-feature span {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
}

/* Syllabus Viewer Responsive */
@media (max-width: 900px) {
  .py-syllabus-layout {
    grid-template-columns: 1fr;
  }

  .py-syllabus-right {
    position: static;
  }

  .py-syllabus-info-card {
    padding: 24px 20px;
  }
}

@media (max-width: 560px) {
  .py-syllabus-pdf-frame {
    height: 360px;
  }

  .py-syllabus-top-bar {
    flex-direction: column;
    gap: 10px;
  }

  .py-syllabus-fullscreen-btn {
    align-self: flex-start;
  }
}

/* What You'll Get Row */
.py-get-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.py-get-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 6px;
  height: 100%;
  min-height: 148px;
  padding: 16px 10px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #f8fafc;
}

.py-get-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.py-get-blue { background: #0059ff; }
.py-get-orange { background: #ea580c; }
.py-get-green { background: #16a34a; }
.py-get-purple { background: #7c3aed; }
.py-get-teal { background: #0d9488; }

.py-get-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.py-get-card h4 {
  font-size: 13px;
  font-weight: 800;
  color: #031b4e;
  margin: 0;
  line-height: 1.3;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.py-get-card p {
  font-size: 11px;
  color: #64748b;
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Student Reviews breakdown and quote */
.py-reviews-inner-box {
  display: flex;
  gap: 24px;
}

.py-reviews-left-rating {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 24px;
  border-right: 1px solid #f1f5f9;
}

.py-rating-number {
  font-size: 48px;
  font-weight: 900;
  color: #031b4e;
  line-height: 1;
}

.py-rating-stars {
  color: #f59e0b;
  font-size: 18px;
  margin-top: 6px;
  letter-spacing: 2px;
}

.py-rating-subtext {
  font-size: 12px;
  color: #64748b;
  margin: 4px 0 0;
  font-weight: 600;
}

.py-rating-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 16px;
}

.py-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.py-rating-row span:first-child {
  width: 32px;
  white-space: nowrap;
}

.py-rating-row span:last-child {
  width: 24px;
  text-align: right;
}

.py-bar-bg {
  flex: 1;
  height: 5px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.py-bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 3px;
}

.py-reviews-right-testimonial {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 12px 24px;
}

.py-testimonial-quote-icon {
  font-size: 80px;
  color: rgba(0, 180, 216, 0.08);
  font-family: Georgia, serif;
  position: absolute;
  top: -24px;
  left: 8px;
  line-height: 1;
  user-select: none;
}

.py-testimonial-text {
  font-size: 15px;
  font-style: italic;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.6;
  margin: 0 0 16px;
  position: relative;
  z-index: 2;
}

.py-testimonial-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  position: relative;
  z-index: 2;
}

.py-testimonial-footer strong {
  color: #031b4e;
  font-weight: 800;
}

.py-test-stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

/* Right Sidebar stack & Widgets */
.py-right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.py-widget {
  padding: 18px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(3, 27, 78, 0.07);
  box-shadow: 0 4px 20px rgba(3, 27, 78, 0.02);
  display: flex;
  flex-direction: column;
}

.py-widget h3 {
  font-size: 13px;
  font-weight: 900;
  color: #031b4e;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.py-widget-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.py-widget-strike {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
}

.py-widget-large {
  color: #0059ff;
  font-size: 24px;
  font-weight: 900;
}

.py-widget-saving {
  color: #16a34a;
  font-size: 11px;
  font-weight: 800;
  margin: 0 0 14px;
}

.py-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.py-highlights-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.py-highlights-list svg {
  width: 14px;
  height: 14px;
  stroke: #16a34a;
  stroke-width: 3;
  fill: none;
  flex-shrink: 0;
}

.py-safety-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.py-safety-header h3 {
  margin-bottom: 0;
}

.py-shield-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #16a34a;
  stroke-width: 2.2;
  color: #16a34a;
  flex-shrink: 0;
}

.py-safety-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.py-safety-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.py-safety-list svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #94a3b8;
  stroke-width: 2.2;
  flex-shrink: 0;
}

.py-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.py-reviews-header h3 {
  margin-bottom: 0;
}

.py-view-all-link {
  font-size: 11px;
  font-weight: 800;
  color: #0059ff;
  text-decoration: none;
}

.py-mini-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.py-mini-review-item {
  padding: 10px 12px;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  background: #f8fafc;
}

.py-review-avatar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.py-avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
}

.py-review-avatar-row strong {
  font-size: 11px;
  font-weight: 800;
  color: #031b4e;
}

.py-widget-stars {
  color: #f59e0b;
  font-size: 9px;
  letter-spacing: 0.5px;
}

.py-review-comment {
  font-size: 11px;
  color: #475569;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.py-share-widget p {
  font-size: 11px;
  color: #64748b;
  margin: -6px 0 12px;
  font-weight: 600;
}

.py-share-icons-row {
  display: flex;
  gap: 8px;
}

.py-share-icons-row a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  color: #64748b;
  transition: all 0.2s;
  background: #fff;
}

.py-share-icons-row a:hover {
  color: #0059ff;
  border-color: #0059ff;
  background: #f0f6ff;
  transform: translateY(-1px);
}

.py-share-icons-row svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* ── RESPONSIVE OVERRIDES ── */
@media (max-width: 1024px) {
  .py-grid-shell {
    grid-template-columns: 1fr;
  }
  
  .py-right-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .py-get-this-widget {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .py-hero-block {
    padding: 20px;
  }
  
  .py-hero-top-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  
  .py-hero-cover-box {
    width: 160px;
  }
  
  .py-cover-benefits {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    padding: 14px 16px;
  }
  
  .py-cover-ctas {
    display: none; /* Hide on mobile cover, show unified under price block */
  }
  
  .py-hero-ctas-mobile {
    display: block;
  }
  
  .py-hero-info {
    align-items: center;
    margin-top: 12px;
  }
  
  .py-hero-info h1 {
    font-size: 22px;
  }
  
  .py-subtitle {
    font-size: 13px;
  }
  
  .py-meta-row {
    flex-direction: column;
    gap: 6px;
  }
  
  .py-learn-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .py-get-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .py-get-card:last-child {
    grid-column: span 2;
  }
  
  .py-reviews-inner-box {
    flex-direction: column;
    gap: 20px;
  }
  
  .py-reviews-left-rating {
    flex: 1;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    padding-right: 0;
    padding-bottom: 20px;
  }
  
  .py-reviews-right-testimonial {
    padding: 0;
  }
  
  .py-right-sidebar {
    grid-template-columns: 1fr;
  }
  
  .py-get-this-widget {
    grid-column: span 1;
  }
  
  .py-acc-details-grid ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .py-learn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .py-get-row {
    grid-template-columns: 1fr;
  }
  
  .py-get-card:last-child {
    grid-column: span 1;
  }

  .py-cover-benefits {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

/* ── WHAT'S INSIDE HANDBOOK SECTION ── */
.inside-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
  margin-top: 10px;
}

.inside-card {
  background: var(--box-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(3, 27, 78, 0.02);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inside-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(3, 27, 78, 0.05);
}

.inside-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.inside-card .card-subtitle {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.inside-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inside-features-list li {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  padding-left: 28px;
  line-height: 1.4;
}

.inside-features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.inside-level-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 102, 204, 0.06);
  color: var(--blue);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
  margin-top: 16px;
  margin-bottom: 8px;
}

/* Bottom banner styles */
.inside-bottom-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0c2b6f 100%);
  color: #fff;
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 4px 20px rgba(3, 27, 78, 0.08);
}

.inside-bottom-banner .banner-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.inside-bottom-banner .banner-files {
  display: flex;
  gap: 16px;
}

.inside-bottom-banner .banner-file-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

@media (max-width: 768px) {
  .inside-cards-grid {
    grid-template-columns: 1fr;
  }
  .inside-bottom-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .inside-bottom-banner .banner-files {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
}

/* Data & BI Analyst bundle detail page */
#course-data-analyst,
#course-data-science {
  background: #f8fafc;
  animation: fadeInPython 0.4s ease-out;
}

.da-bundle-page,
.ds-bundle-page {
  --da-blue: #0059ff;
  --da-cyan: #00a9d6;
  --da-navy: #031b4e;
  --da-muted: #536176;
  --da-line: rgba(3, 27, 78, 0.07);
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--da-navy);
  max-width: 1200px;
  margin: 0 auto;
}

#detail-view:has(#course-data-analyst.active) {
  padding-top: 28px !important;
}

.detail-inner:has(#course-data-analyst.active) {
  max-width: 1240px;
  padding-top: 28px;
}

.detail-inner:has(#course-data-analyst.active) .detail-back {
  margin-bottom: 24px;
}

.da-hero-panel,
.da-section,
.da-trust-row {
  background: #fff;
  border: 1px solid var(--da-line);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(3, 27, 78, 0.02);
}

.da-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  overflow: hidden;
}

.da-hero-copy {
  min-width: 0;
}

.da-value-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 4px 8px;
  margin-bottom: 12px;
  border-radius: 4px;
  background: #dff8ec;
  color: #04a35f;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.da-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: 'DM Mono', monospace;
  color: var(--da-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.da-kicker span {
  width: 22px;
  height: 7px;
  border-radius: 2px;
  background: var(--da-blue);
  flex-shrink: 0;
}

.da-hero-copy h1 {
  margin: 0;
  max-width: 520px;
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.da-hero-copy h1 strong {
  display: block;
  color: var(--da-cyan);
}

.da-tagline {
  max-width: 480px;
  margin: 8px 0 0;
  color: var(--da-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.da-stats-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(60px, 1fr));
  gap: 6px;
  margin: 16px 0 14px;
}

.da-stats-row div {
  min-height: 48px;
  padding: 8px 6px;
  border-radius: 8px;
  background: #f8fbff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.da-stats-row strong {
  color: var(--da-blue);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.da-stats-row span {
  color: var(--da-muted);
  font-size: 10px;
  font-weight: 700;
}

.da-price-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 20px;
}

.da-price-strip > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.da-price-strip span,
.da-price-card > span {
  color: var(--da-muted);
  font-size: 13px;
  font-weight: 800;
}

.da-price-strip del,
.da-price-card del {
  color: #68748a;
  font-size: 18px;
  font-weight: 700;
}

.da-price-strip > div > strong {
  color: var(--da-blue);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.da-save-box {
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: #daf7eb;
}

.da-save-box strong {
  color: #07a666 !important;
  font-size: 14px !important;
}

.da-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.da-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.da-btn:hover {
  transform: translateY(-1px);
}

.da-btn-primary {
  background: var(--da-blue);
  color: #fff;
  box-shadow: 0 12px 22px rgba(0, 89, 255, 0.2);
}

.da-btn-outline {
  color: var(--da-blue);
  background: #fff;
  border-color: rgba(0, 89, 255, 0.45);
}

.da-hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.da-hero-art img {
  display: block;
  width: min(100%, 340px);
  height: auto;
  object-fit: contain;
}

.da-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 24px;
}

.da-trust-row div {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--da-navy);
  font-size: 13px;
  font-weight: 700;
}

.da-trust-row span {
  color: var(--da-blue);
  font-size: 16px;
}

.da-section {
  padding: 24px;
}

.da-section h2,
.da-section-heading h2 {
  margin: 0 0 16px;
  color: var(--da-navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.da-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.da-section-heading h2 span {
  color: var(--da-blue);
  font-size: 14px;
}

.da-handbook-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.da-handbook-card {
  min-width: 0;
}

.da-handbook-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border-radius: 7px;
  background: #f8fafc;
  box-shadow: 0 8px 16px rgba(3, 27, 78, 0.08);
}

.da-handbook-card h3 {
  margin: 10px 0 4px;
  color: var(--da-navy);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.da-handbook-card p,
.da-handbook-card span {
  margin: 0;
  color: var(--da-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.da-handbook-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.da-handbook-card span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
  flex-shrink: 0;
}

.da-get-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.da-get-grid div {
  min-height: 120px;
  padding: 16px 12px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.da-get-grid span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef5ff;
  color: var(--da-blue);
  font-size: 18px;
}

.da-get-grid h3 {
  margin: 0;
  color: var(--da-navy);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.da-get-grid p {
  margin: 0;
  color: var(--da-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.da-image-section {
  overflow: hidden;
}

.da-image-section img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.da-roadmap-section {
  text-align: center;
}

.da-roadmap-section img {
  width: 100%;
  max-width: 900px;
  max-height: 380px;
  margin: 0 auto;
  object-fit: contain;
}

.da-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.7fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.da-tools-section img {
  margin-top: 4px;
  max-width: 100%;
  max-height: 320px;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.da-price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.da-price-card del {
  margin-bottom: 20px;
}

.da-price-card > strong {
  color: var(--da-blue);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin: 4px 0 12px;
}

.da-price-card b {
  display: inline-flex;
  padding: 9px 22px;
  border-radius: 8px;
  background: #dff8ec;
  color: #06a162;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 18px;
}

.da-price-card ul,
.da-why-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.da-price-card ul {
  align-self: stretch;
  margin-bottom: 18px;
}

.da-price-card li,
.da-why-section li {
  position: relative;
  padding-left: 28px;
  color: var(--da-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: left;
}

.da-price-card li + li,
.da-why-section li + li {
  margin-top: 14px;
}

.da-price-card li::before,
.da-why-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #dff8ec;
}

.da-price-card li::after,
.da-why-section li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #06a162;
  border-bottom: 2px solid #06a162;
  transform: rotate(-45deg);
}

.da-price-card .da-btn {
  width: 100%;
  margin-top: auto;
}

.da-price-card small {
  display: block;
  margin-top: 12px;
  color: var(--da-muted);
  font-size: 12px;
  font-weight: 800;
}

.da-why-section {
  display: flex;
  flex-direction: column;
}

.da-why-section ul {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.da-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}

.da-faq-section .faq-item {
  margin: 0;
}

@media (max-width: 1180px) {
  .da-handbook-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .da-lower-grid {
    grid-template-columns: 1fr 1fr;
  }

  .da-tools-section {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .da-hero-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .da-kicker,
  .da-hero-actions,
  .da-price-strip {
    justify-content: center;
  }

  .da-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .da-stats-row,
  .da-get-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .da-trust-row,
  .da-lower-grid,
  .da-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .da-bundle-page,
  .ds-bundle-page {
    gap: 16px;
  }

  .da-hero-panel,
  .da-section {
    padding: 18px;
  }

  .da-hero-copy h1 {
    font-size: 24px;
  }

  .da-roadmap-section img {
    max-height: 260px;
  }

  .da-tagline {
    font-size: 15px;
  }

  .da-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .da-stats-row div:last-child {
    grid-column: 1 / -1;
  }

  .da-hero-actions .da-btn {
    width: 100%;
  }

  .da-handbook-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .da-get-grid {
    grid-template-columns: 1fr;
  }

  .da-trust-row {
    padding: 14px 18px;
  }
}




/* ── DATA SCIENCE BUNDLE DETAILS OVERRIDES ── */
.ds-bundle-page {
  --da-blue: #0066cc;      /* Slate/Blue for DS */
  --da-cyan: #00b4d8;      /* Cyan for DS */
  --da-navy: #031b4e;      /* Navy for DS */
  --da-muted: #6b7280;     /* Muted grey */
  --da-line: rgba(3, 27, 78, 0.07);
}

.ds-bundle-page .da-value-pill {
  background: #e0f2fe; /* Light blue sky */
  color: #0284c7;      /* Sky blue text */
}

.ds-bundle-page .da-save-box {
  background: #e0f2fe;
}

.ds-bundle-page .da-save-box strong {
  color: #0284c7 !important;
}

.ds-bundle-page .da-price-card b {
  background: #e0f2fe;
  color: #0284c7;
}

.ds-bundle-page .da-price-card li::before,
.ds-bundle-page .da-why-section li::before {
  background: #e0f2fe;
}

.ds-bundle-page .da-price-card li::after,
.ds-bundle-page .da-why-section li::after {
  border-left: 2px solid #0284c7;
  border-bottom: 2px solid #0284c7;
}

.ds-bundle-page .da-handbook-card span::before {
  background: #00b4d8;
}


/* ========================================================= */
/* EXPLORE ALL HANDBOOKS CATALOG PAGE                        */
/* ========================================================= */
.explore-all-section {
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'DM Sans', sans-serif;
}
.explore-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.explore-showing {
  color: #536176;
  font-size: 14px;
}
.explore-showing strong {
  color: #031b4e;
}
.explore-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #536176;
}
.explore-sort select {
  padding: 8px 12px;
  border: 1px solid #e1e4ed;
  border-radius: 6px;
  font-size: 14px;
  color: #031b4e;
  outline: none;
  cursor: pointer;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.explore-card {
  border: 1px solid #f1f3f7;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}
.explore-card:hover {
  box-shadow: 0 12px 24px rgba(3, 27, 78, 0.08);
  transform: translateY(-4px);
}
.explore-card-img {
  position: relative;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 280px;
}
.explore-num {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}
.explore-card-text {
  text-align: left;
  margin-top: 24px;
}
.explore-card-text h4 {
  font-size: 16px;
  font-weight: 800;
  color: #031b4e;
  margin-bottom: 6px;
  line-height: 1.2;
}
.explore-card-text p {
  font-size: 11px;
  color: #536176;
  margin: 0;
  line-height: 1.4;
}
.explore-card-img img {
  width: auto;
  max-height: 140px;
  margin: 0 auto;
  object-fit: contain;
  margin-top: auto;
}
.explore-cat {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}
.cat-da { background: #0059ff; }
.cat-ds { background: #4caf50; }
.cat-de { background: #7c3aed; }
.cat-mle { background: #f59e0b; }

.explore-card-info {
  padding: 24px 16px 16px;
}
.explore-card-info strong {
  display: block;
  font-size: 14px;
  color: #031b4e;
  margin-bottom: 8px;
}
.explore-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.explore-price {
  color: #0059ff;
  font-weight: 700;
  font-size: 16px;
}
.explore-rating {
  font-size: 12px;
  color: #536176;
  font-weight: 600;
}
.explore-strike {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 6px;
}

/* Coming Soon Badge & Overlay */
.explore-coming-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}
.explore-coming-soon {
  cursor: default;
}
.explore-coming-soon .explore-card-img {
  position: relative;
}
.explore-coming-soon .explore-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
}
.explore-coming-soon .explore-card-img img {
  opacity: 0.6;
}

/* Reviews Summary Bar */
.explore-reviews-bar {
  display: flex;
  background: #fcfdfd;
  border: 1px solid #f1f3f7;
  border-radius: 16px;
  padding: 24px;
  gap: 32px;
  align-items: center;
}
.explore-reviews-center {
  flex-grow: 1;
}
.explore-reviews-center h3 {
  font-size: 20px;
  color: #031b4e;
  margin-bottom: 16px;
}
.explore-reviews-score {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.explore-big-score {
  font-size: 48px;
  font-weight: 800;
  color: #031b4e;
  line-height: 1;
}
.explore-stars {
  font-size: 16px;
  margin-bottom: 4px;
}
.explore-reviews-score small {
  color: #536176;
  font-size: 13px;
}
.explore-reviews-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 320px;
}
.explore-reviews-bars > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #536176;
  width: 100%;
}
.explore-reviews-bars > div > span:first-child {
  width: 45px;
}
.explore-reviews-bars > div > span:last-child {
  width: 30px;
  text-align: right;
}
.bar-track {
  flex-grow: 1;
  width: auto;
  height: 6px;
  background: #f1f3f7;
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
}


/* ==========================================
   MOBILE SIDEBAR DRAWER & MENU RULES (ADDED)
   ========================================== */

/* -- Desktop / Default Styles -- */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #dce5f3;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  z-index: 500;
}

.mobile-header .dashboard-brand img {
  height: 32px;
  width: auto;
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: #0b2a6f;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.mobile-menu-btn:hover {
  color: #0059ff;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
}

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: #0b2a6f;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.sidebar-close-btn:hover {
  color: #ff3b30;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 27, 78, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* -- Mobile Responsive Overrides (Under 940px) -- */
@media (max-width: 940px) {
  .mobile-header {
    display: flex;
  }

  .sidebar-close-btn {
    display: flex;
  }

  .dashboard-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    z-index: 10000 !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.98) !important;
    border-right: 1px solid #dce5f3 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 24px 20px 16px !important;
    box-shadow: 10px 0 30px rgba(3, 27, 78, 0.15) !important;
    overflow-y: auto !important;
    height: 100% !important;
  }

  .dashboard-sidebar.active {
    transform: translateX(0) !important;
  }

  .dashboard-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  
  .dashboard-shell {
    padding-left: 0 !important;
  }
}


/* ==========================================
   MOBILE VIEW LAYOUT BUGFIXES (ADDED)
   ========================================== */

/* 1. Reorder Homepage Dashboard Grid Panels on Mobile */
@media (max-width: 940px) {
  .dashboard-main {
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Set a default order of 2 for all main children (sections, pages) */
  .dashboard-main > * {
    order: 2;
  }
  
  .dashboard-topbar {
    order: 1 !important;
  }
  .dashboard-grid {
    display: flex;
    flex-direction: column !important;
    gap: 24px !important;
    order: 2 !important;
  }
  .stats-grid {
    order: 3 !important;
    margin-top: 24px !important;
  }
  .dashboard-bottom {
    order: 4 !important;
  }
  .dashboard-copyright {
    order: 100 !important;
  }

  .left-panel-stack,
  .side-panel-stack {
    display: contents !important;
  }

  #insideHandbookPanel {
    order: 1 !important;
  }
  #freeHandbooksPanel {
    order: 2 !important;
  }
  #freeMLHandbookPanel {
    order: 3 !important;
  }
  #popularHandbooksPanel {
    order: 4 !important;
  }
  #recentOrdersPanel {
    order: 5 !important;
  }
}

/* 2. Responsive Stat Badges inside Course Bundles page to prevent cutting off */
@media (max-width: 940px) {
  .courses-header-right {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 16px !important;
  }
  .courses-header-right .header-stat-badge {
    margin: 0 !important;
  }
  .courses-header-right .header-stat-badge:nth-child(3) {
    grid-column: span 2 !important;
  }
}

@media (max-width: 480px) {
  .courses-header-right {
    grid-template-columns: 1fr !important;
  }
  .courses-header-right .header-stat-badge:nth-child(3) {
    grid-column: span 1 !important;
  }
}

/* 3. Responsive Explore Grid for All Handbooks to prevent column squeeze */
@media (max-width: 1024px) {
  .explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 620px) {
  .explore-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}


/* 4. Fix Mobile Body Scrolling Freeze */
@media (max-width: 940px) {
  html, body {
    overflow: auto !important;
    height: auto !important;
  }
}

/* 5. Make Explore Reviews Summary Bar Responsive on Mobile */
@media (max-width: 768px) {
  .explore-reviews-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
    padding: 20px !important;
  }
}
