:root {
  --primary: #0a1f44;
  --accent: #ff7a00;
  --accent-dark: #e26700;
  --text: #1d2736;
  --muted: #667085;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --border: #dbe3f0;
  --success: #0f9d58;
  --shadow: 0 16px 40px rgba(10, 31, 68, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--surface-soft);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

.site-header,
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 31, 68, 0.95);
  color: white;
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}
header.scrolled { box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18); }
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: clamp(58px, 7vw, 78px);
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  background: transparent;
}
.nav-link-list,
.auth-links {
  display: flex;
  align-items: center;
}
.nav-link-list {
  gap: 18px;
}
.nav-links a {
  color: white;
  font-weight: 600;
  opacity: 0.92;
}
.nav-links a:hover { color: #ffd5b1; }
.auth-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.header-cart {
  position: relative;
}
.header-cart-btn {
  position: relative;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.08);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}
.header-cart-icon { font-size: 1.1rem; }
.header-cart-count {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.header-cart-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  color: var(--text);
  z-index: 1001;
}
.header-cart-dropdown-inner {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.header-cart-header,
.header-cart-footer,
.header-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-cart-header,
.header-cart-footer {
  color: var(--muted);
}
.header-cart-items {
  display: grid;
  gap: 12px;
  max-height: 320px;
  overflow: auto;
  margin: 14px 0;
}
.header-cart-item {
  justify-content: flex-start;
  padding: 10px;
  border-radius: 16px;
  background: var(--surface-soft);
}
.header-cart-item img {
  width: 68px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}
.header-cart-item strong,
.header-cart-footer strong {
  display: block;
  color: var(--primary);
}
.header-cart-item span,
.header-cart-empty {
  color: var(--muted);
}
.checkout-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.checkout-select-all,
.checkout-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.checkout-sort select {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  background: white;
  color: var(--text);
}
.signup-link { color: white; }
.nav-cta, .primary-btn, .secondary-btn, .close-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.primary-btn {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 24px rgba(255, 122, 0, 0.26);
}
.primary-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.secondary-btn,
.nav-cta.secondary,
.close-btn {
  background: white;
  color: var(--primary);
}
.small-btn { padding: 10px 14px; font-size: 0.92rem; }
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: white;
  margin: 4px 0;
  border-radius: 999px;
}

.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 16px;
}
.hero-copy p,
.section-heading p,
.course-card p,
.feature-card p,
.timeline-card p,
.sidebar-note,
#captions {
  color: var(--muted);
  line-height: 1.7;
}
.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.hero-actions, .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.hero-stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.hero-stats div,
.glass-card,
.feature-card,
.course-card,
.timeline-card,
#videoSection,
aside,
.modal-box {
  background: var(--surface);
  border: 1px solid rgba(219, 227, 240, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-stats div {
  padding: 18px;
}
.hero-stats strong { display: block; color: var(--primary); margin-bottom: 8px; }
.hero-panel { display: flex; justify-content: flex-end; }
.hero-card { padding: 28px; }
.hero-card h2 { margin-top: 0; }
.hero-card ul { padding-left: 18px; color: var(--muted); line-height: 1.8; }

.info-section,
.courses-section,
.benefits-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}
.section-heading { margin-bottom: 28px; }
.split-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
}
.feature-grid,
.timeline-grid,
.landing-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.feature-grid-expanded {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature-card,
.timeline-card { padding: 24px; }
.timeline-card span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 31, 68, 0.08);
  color: var(--primary);
  font-weight: 800;
}
.cart-summary {
  min-width: 220px;
  padding: 20px;
}
.cart-summary span { color: var(--muted); }
.cart-summary strong { display: block; margin-top: 8px; font-size: 1.2rem; }
.cart-summary p { font-size: 1.4rem; color: var(--primary); font-weight: 800; margin: 10px 0 16px; }
.empty-state {
  padding: 20px;
  text-align: center;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  border: 1px dashed var(--border);
  color: var(--muted);
}
.course-card { overflow: hidden; }
.course-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.course-info { padding: 22px; }
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.course-tag {
  background: rgba(15, 157, 88, 0.12);
  color: var(--success);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}
.course-price { color: var(--primary); font-weight: 900; font-size: 1rem; }
.course-meta-list {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.layout {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}
aside { padding: 20px; }
.lesson { margin-bottom: 12px; }
.lesson-title {
  font-weight: 700;
  background: #eef3fb;
  color: var(--primary);
  padding: 14px 16px;
  border-radius: 16px;
  cursor: pointer;
}
.topic-list { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.lesson.active .topic-list { max-height: 1000px; }
.topic-item {
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 8px;
}
.topic-item:hover { background: #f4f7fc; }
.topic-locked { color: #9aa4b2; cursor: not-allowed; }
main { min-width: 0; }
.course-header h2 { margin: 0 0 8px; font-size: clamp(2rem, 3vw, 2.8rem); }
.course-meta { color: var(--muted); }
#videoSection { padding: 20px; }
.video-container { position: relative; }
.video-placeholder,
#videoPlayer {
  width: 100%;
  border-radius: 18px;
  background: #edf2fa;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.video-wrapper,
.video-wrapper iframe,
.video-wrapper video { width: 100%; height: 100%; border: 0; }
.video-loader {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.video-loader::after {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 5px solid var(--primary);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-wrapper {
  margin-top: 18px;
  height: 8px;
  background: #e5eaf3;
  border-radius: 999px;
  overflow: hidden;
}
#progress { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #ffb067); }
.topic-title { margin: 22px 0 8px; color: var(--primary); }
.video-error { padding: 48px 20px; text-align: center; color: var(--muted); }

.profile {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  cursor: pointer;
}
.profile-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  background: white;
  color: var(--text);
  min-width: 170px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.profile-dropdown a {
  display: block;
  padding: 12px 14px;
  color: var(--text);
}
.profile-dropdown a:hover { background: #f6f8fc; }

footer {
  margin-top: 32px;
  background: var(--primary);
  color: white;
  padding: 22px 24px;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  padding: 20px;
}
.modal.active { display: flex; }
.modal-box { padding: 28px; max-width: 420px; width: 100%; }

.dashboard-layout,
.dashboard-main,
.dashboard-sidebar,
.role-badge,
.course-grid,
.payment-card,
.profile-card,
.progress-bar,
.progress-fill,
.ribbon { }

.auth-body { min-height: 100vh; display: flex; flex-direction: column; }
.auth-card { background: white; padding: 32px; border-radius: 20px; box-shadow: var(--shadow); width: min(92vw, 420px); }
.auth-card input, .profile-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 8px 0 14px;
}
.auth-card button, .profile-card button, .pay-btn {
  width: 100%;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}
#signupBtn, .pay-btn { background: var(--accent); color: white; }
#loginBtn { background: var(--primary); color: white; }
#googleBtn { background: #4285F4; color: white; }

@media (max-width: 960px) {
  .hero-section,
  .split-heading,
  .feature-grid,
  .timeline-grid,
  .landing-course-grid { grid-template-columns: 1fr; display: grid; }
  .layout {
    display: flex;
    flex-direction: column;
  }
  .layout main {
    order: 1;
  }
  .layout aside {
    order: 2;
  }
  .hero-stats { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute;
    right: 16px;
    top: 78px;
    background: transparent;
    padding: 16px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
}


body.app-loading {
  overflow-x: hidden;
}

body.app-loading main,
body.app-loading .layout,
body.app-loading .dashboard-layout,
body.app-loading .detail-sticky-bar,
body.app-loading .modal,
body.auth-pending main,
body.auth-pending .layout,
body.auth-pending .dashboard-layout,
body.auth-pending .detail-sticky-bar,
body.auth-pending .modal {
  visibility: hidden;
}

body.app-loading #siteHeader,
body.app-loading #siteFooter,
body.auth-pending #siteHeader,
body.auth-pending #siteFooter {
  visibility: visible;
}

.global-site-loader {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.global-site-loader__content {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 28px 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--primary);
  min-width: min(280px, calc(100vw - 32px));
}

.global-site-loader__spinner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 6px solid rgba(10, 31, 68, 0.18);
  border-top-color: var(--accent);
  border-right-color: var(--primary);
  animation: spin 0.85s linear infinite;
}

html[data-theme="dark"] .global-site-loader__content {
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.28);
}

html[data-theme="dark"] .global-site-loader__spinner {
  border-color: rgba(148, 163, 184, 0.24);
  border-top-color: var(--accent);
  border-right-color: #f8fafc;
}

.auth-card-wrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.password-wrapper {
  position: relative;
}

#togglePassword {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--muted);
}

.modal-secondary-link {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.auth-card h2 { margin-top: 0; }
.auth-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 8px;
}
.auth-action-row .auth-btn {
  margin: 0;
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
  }

  .hamburger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 0 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link-list,
  .auth-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .header-cart,
  .header-cart-btn {
    width: 100%;
  }

  .header-cart-btn {
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
  }

  .header-cart-dropdown {
    position: static;
    width: 100%;
  }

  .header-cart-dropdown-inner {
    margin-top: 12px;
  }

  .nav-link-list a,
  .auth-links > a,
  .profile {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .auth-links > a {
    display: inline-flex;
    justify-content: center;
  }

  .profile-dropdown {
    position: static;
    margin-top: 12px;
  }

  .auth-action-row {
    grid-template-columns: 1fr;
  }
}

.course-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.checkout-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  gap: 24px;
}

.checkout-main,
.checkout-sidebar {
  padding: 24px;
}

.checkout-items {
  display: grid;
  gap: 16px;
}

.checkout-item {
  display: grid;
  grid-template-columns: auto 120px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}
.checkout-item.is-selected {
  border-color: rgba(255, 122, 0, 0.42);
  box-shadow: 0 14px 28px rgba(255, 122, 0, 0.12);
}
.checkout-item-select {
  display: grid;
  place-items: center;
}
.checkout-item-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.checkout-item img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 18px;
}

.checkout-item h3 { margin: 0; font-size: 1.05rem; }

.checkout-sidebar {
  position: sticky;
  top: 110px;
  height: fit-content;
  display: grid;
  gap: 16px;
}

.checkout-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-note { color: var(--muted); line-height: 1.6; }

.course-detail-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: 24px;
  padding: 24px;
}

.course-detail-copy h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.detail-meta-grid div {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

.detail-meta-grid strong,
.detail-meta-grid span {
  display: block;
}

.detail-meta-grid strong {
  margin-bottom: 8px;
  color: var(--primary);
}

.course-detail-media {
  padding: 0;
  overflow: hidden;
}

.detail-video-placeholder {
  min-height: 0;
}

.detail-description-block {
  display: grid;
  gap: 14px;
}

.detail-description-content {
  color: var(--muted);
  line-height: 1.7;
}

.detail-description-content.is-collapsed {
  max-height: 12rem;
  overflow: hidden;
  position: relative;
}

.detail-description-content.is-collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4rem;
  background: linear-gradient(180deg, rgba(247, 249, 253, 0) 0%, rgba(247, 249, 253, 1) 100%);
}

.course-detail-content {
  margin-top: 32px;
}

.course-detail-main {
  padding: 24px;
}

.detail-topic-groups {
  display: grid;
  gap: 18px;
}

.detail-lesson-block {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255,255,255,0.7);
}

.detail-lesson-block h3 {
  margin-top: 0;
}

.detail-topic-list {
  display: grid;
  gap: 12px;
}

.detail-topic-item {
  background: #eef3fb;
  border-radius: 14px;
  padding: 14px 16px;
}

@media (max-width: 860px) {
  .course-detail-page {
    padding: 24px 16px 40px;
  }

  .course-detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .course-detail-media {
    order: -1;
  }

  .course-detail-copy {
    order: 1;
  }
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--muted);
  margin: 6px 0 12px;
}

.remember-me input {
  width: auto;
  margin: 0;
}

.site-footer {
  margin-top: 48px;
  background: linear-gradient(135deg, #07142e 0%, #0a1f44 50%, #122e63 100%);
  color: white;
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.footer-column h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 16px;
}

.footer-logo {
  width: clamp(150px, 20vw, 210px);
  height: auto;
}

.footer-about,
.footer-links a,
.footer-socials a {
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-links a:hover,
.footer-socials a:hover {
  color: white;
}

.footer-enquiry-form {
  display: grid;
  gap: 12px;
}

.footer-enquiry-form input,
.footer-enquiry-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: white;
  border-radius: 14px;
  padding: 14px 16px;
}

.footer-enquiry-form input::placeholder,
.footer-enquiry-form textarea::placeholder {
  color: rgba(255,255,255,0.66);
}

.footer-submit-btn {
  width: 100%;
  justify-content: center;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  outline: 1px solid rgba(191, 219, 254, 0.2);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24), inset 0 1px 0 rgba(255,255,255,0.08);
}

.landing-card .course-card-link,
.landing-card .course-title-link {
  display: block;
}

.detail-topic-groups {
  gap: 10px;
}

.detail-lesson-block {
  border: none;
  padding: 0;
  background: transparent;
}

.detail-lesson-block .lesson-title {
  padding: 12px 14px;
  border-radius: 14px;
}

.detail-topic-list {
  gap: 6px;
}

.detail-topic-item {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
}

.detail-sticky-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(940px, calc(100% - 24px));
  z-index: 1100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(10, 31, 68, 0.96);
  color: white;
  box-shadow: 0 18px 40px rgba(10, 31, 68, 0.28);
}

.detail-sticky-bar strong,
.detail-sticky-bar span {
  display: block;
}

.detail-sticky-bar span {
  color: rgba(255,255,255,0.78);
  margin-top: 4px;
}

.course-detail-page {
  padding-bottom: 140px;
}

@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .detail-sticky-bar {
    bottom: 12px;
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
  }
}

#siteHeader {
  display: block;
  min-height: 96px;
}

.site-header,
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.footer-links-column,
.footer-links,
.footer-follow-block {
  text-align: left;
  align-items: flex-start;
}

.footer-follow-block {
  margin-top: 24px;
}

.footer-follow-block h4,
.footer-share-title {
  margin: 0 0 12px;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.88);
}

.social-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,0.14);
  font-weight: 800;
  flex-shrink: 0;
  outline: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.28);
}

.social-badge svg {
  width: 16px;
  height: 16px;
  display: block;
}

.social-badge-facebook { color: #93c5fd; }
.social-badge-youtube { color: #fca5a5; }
.social-badge-tiktok { color: #e9d5ff; }
.social-badge-instagram { color: #f9a8d4; }

.footer-socials a {
  gap: 10px;
}

.footer-share-socials,
.footer-follow-socials {
  justify-content: flex-start;
}

:root {
  --ci-sidebar-width: 320px;
  --ci-vscode-bg: #111827;
  --ci-vscode-surface: #1f2937;
  --ci-vscode-panel: #0f172a;
  --ci-vscode-border: rgba(148, 163, 184, 0.18);
  --ci-vscode-text: #e5eefc;
  --ci-vscode-muted: #94a3b8;
  --ci-vscode-accent: #3b82f6;
  --ci-vscode-terminal: #020617;
}

.ci-course-layout {
  grid-template-columns: var(--ci-sidebar-width) 10px 1fr;
  align-items: start;
}

.ci-course-sidebar,
.ci-course-main,
.ci-learning-tabs,
.ci-video-section,
.ci-ide-shell,
.ci-notes-shell {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.ci-course-sidebar { padding: 18px; position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow: auto; }
.ci-sidebar-header h3, .ci-panel-header-inline h3 { margin: 0; }
.ci-layout-resizer { width: 10px; cursor: col-resize; position: relative; }
.ci-layout-resizer::after { content: ""; position: absolute; inset: 0 3px; border-radius: 999px; background: rgba(10,31,68,0.12); }
.ci-course-main { min-width: 0; display: grid; gap: 18px; }
.ci-video-section { padding: 20px; }
.course-header.glass-card { padding: 20px 24px; }

.ci-learning-tabs { padding: 18px; display: grid; gap: 16px; }
.ci-tab-list { display: flex; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.ci-tab-btn { border: 1px solid var(--border); background: white; color: var(--primary); border-radius: 999px; padding: 10px 16px; cursor: pointer; font-weight: 700; min-width: 0; }
.ci-tab-label-short { display: none; }
.ci-tab-btn.active { background: var(--primary); color: white; }
.ci-tab-panel { display: none; }
.ci-tab-panel.active { display: block; }
.ci-mobile-only { display: none; }
.ci-description-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.ci-description-card { border: 1px solid var(--border); border-radius: 20px; padding: 18px; background: rgba(255,255,255,0.88); }
.ci-panel-header-inline { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.ci-topic-badge { padding: 8px 12px; border-radius: 999px; background: rgba(59,130,246,0.12); color: #1d4ed8; font-weight: 700; }

.ci-notes-shell, .ci-ide-shell { border: 1px solid var(--ci-vscode-border); border-radius: 24px; overflow: hidden; }
.ci-ide-shell { height: min(74vh, 860px); background: var(--ci-vscode-bg); }
.ci-pane-header, .ci-ide-topbar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 14px; background: var(--ci-vscode-panel); color: var(--ci-vscode-text); }
.ci-ide-title-group { display:flex; align-items:center; gap:12px; }
.ci-sidebar-toggle { width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--ci-vscode-text); cursor: pointer; }
.ci-ide-eyebrow { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: #93c5fd; }
.ci-ide-topbar h3 { margin:0; font-size: 1.05rem; color:white; }
.ci-ide-actions, .ci-terminal-actions { display:flex; gap:6px; flex-wrap: wrap; }
.ci-ide-actions .small-btn, .ci-terminal-actions .small-btn { min-width: 34px; padding: 6px 8px; display:inline-grid; place-items:center; font-size: 12px; border-radius: 8px; border-color: transparent; background: transparent; box-shadow: none; color: var(--ci-vscode-text); }
.ci-ide-actions .small-btn:hover, .ci-terminal-actions .small-btn:hover, .ci-sidebar-toggle:hover { background: rgba(148, 163, 184, 0.12); border-color: transparent; }
.ci-ide-actions [data-tooltip], .ci-terminal-actions [data-tooltip], .ci-sidebar-toggle[data-tooltip], #saveNotesBtn[data-tooltip] { position: relative; }
.ci-ide-actions [data-tooltip]::after, .ci-terminal-actions [data-tooltip]::after, .ci-sidebar-toggle[data-tooltip]::after, #saveNotesBtn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-4px);
  background: rgba(2, 6, 23, 0.96);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.34);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transition: opacity .18s ease, transform .18s ease;
}
.ci-ide-actions [data-tooltip]:hover::after, .ci-ide-actions [data-tooltip]:focus-visible::after,
.ci-terminal-actions [data-tooltip]:hover::after, .ci-terminal-actions [data-tooltip]:focus-visible::after,
.ci-sidebar-toggle[data-tooltip]:hover::after, .ci-sidebar-toggle[data-tooltip]:focus-visible::after,
#saveNotesBtn[data-tooltip]:hover::after, #saveNotesBtn[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ci-ide-body { display:grid; grid-template-columns: 220px 1fr; height: calc(100% - 66px); min-height: 0; background: var(--ci-vscode-bg); }
.ci-ide-sidebar { border-right: 1px solid var(--ci-vscode-border); background: #0b1220; color: var(--ci-vscode-text); display:grid; grid-template-rows: auto 1fr auto auto; min-width:0; transition: width .2s ease, opacity .2s ease; }
.ci-ide-sidebar.collapsed { width: 58px; overflow: hidden; }
.ci-ide-sidebar.collapsed .ci-pane-header span,
.ci-ide-sidebar.collapsed .ci-pane-header strong,
.ci-ide-sidebar.collapsed .ci-file-item span,
.ci-ide-sidebar.collapsed .ci-file-item small,
.ci-ide-sidebar.collapsed .ci-library-header,
.ci-ide-sidebar.collapsed .ci-library-name { display:none; }
.ci-file-list, .ci-library-list { padding: 10px; display:grid; gap:8px; align-content:start; overflow:auto; }
.ci-ide-sidebar, .ci-ai-drawer { overflow: auto; }
.ci-file-item { border:1px solid transparent; background:#111827; color: var(--ci-vscode-text); border-radius:12px; padding:10px 12px; text-align:left; cursor:pointer; display:grid; gap:3px; }
.ci-file-item.active { border-color:#60a5fa; background:#172036; }
.ci-file-item small, .ci-muted-copy { color: var(--ci-vscode-muted); }
.ci-library-list { padding-top: 0; }
.ci-library-item { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; border:1px solid transparent; border-radius:10px; background:transparent; color:var(--ci-vscode-text); padding:8px 10px; cursor:pointer; }
.ci-library-item:hover { background:#111827; border-color: var(--ci-vscode-border); }
.ci-library-item.installed { color:#86efac; }
.ci-library-icon { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; background:#172036; font-weight:800; }
.ci-editor-stack { display:grid; grid-template-rows: 1fr 8px 180px; min-width:0; min-height:0; }
.ci-ide-shell.terminal-collapsed .ci-editor-stack { grid-template-rows: 1fr 0 52px; }
.ci-editor-stage { display:grid; grid-template-columns: minmax(0,1fr) auto; min-height: 0; overflow:hidden; }
.ci-editor-frame { width:100%; height:100%; min-height:0; border:0; background:#1e1e1e; }
.ci-ai-drawer { width: 320px; border-left:1px solid var(--ci-vscode-border); background:#0b1220; color:var(--ci-vscode-text); display:grid; grid-template-rows:auto auto 1fr; }
.ci-ide-shell.right-sidebar-collapsed .ci-ai-drawer { display:none !important; }
.ci-ai-tabs { display:flex; gap:8px; padding:12px 16px 0; background:#0b1220; }
.ci-mini-tab { border:1px solid var(--ci-vscode-border); background:#111827; color:var(--ci-vscode-text); border-radius:999px; padding:8px 12px; cursor:pointer; }
.ci-mini-tab.active { background: var(--ci-vscode-accent); }
.ci-ai-panel-body { display:none; margin:0; padding:16px; overflow:auto; }
.ci-ai-panel-body.active { display:block; }
.ci-terminal-resize { background: linear-gradient(90deg, transparent, rgba(59,130,246,.7), transparent); cursor: row-resize; }
.ci-terminal { background: var(--ci-vscode-terminal); color: #dbeafe; overflow:auto; height:180px; min-height:140px; }
.ci-ide-shell.terminal-collapsed .ci-terminal { height:52px; min-height:52px; }
.ci-ide-shell.terminal-collapsed .ci-terminal pre { display:none; }
.ci-ide-shell.terminal-collapsed .ci-terminal-resize { display:none; }
.ci-terminal pre { margin:0; padding:14px 16px 18px; white-space:pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; max-height: calc(100% - 52px); overflow:auto; }
#notesEditorMount { min-height: 520px; background:white; }
#notesEditorMount .ql-toolbar.ql-snow, #notesEditorMount .ql-container.ql-snow { border-color: var(--border); }
#notesEditorMount .ql-container { min-height: 450px; }

.ci-mobile-topic-carousel { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(84%,1fr); gap:14px; overflow-x:auto; padding-bottom:6px; }
.ci-mobile-topic-card { border:1px solid var(--border); border-radius:20px; padding:16px; background: white; }
.ci-mobile-topic-list { display:grid; gap:10px; }
.topic-item { width: 100%; border: 0; display:flex; gap:12px; align-items:center; text-align:left; background:#f8fbff; }
.topic-item strong { font-size: .96rem; }

.ci-standalone-body { background: #020617; }
.ci-standalone-main { padding: 0; min-height: 100vh; }

@media (max-width: 1100px) {
  .ci-description-grid, .ci-ide-body, .ci-editor-stage { grid-template-columns: 1fr; }
  .ci-ide-sidebar { border-right: 0; border-bottom: 1px solid var(--ci-vscode-border); }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-sidebar { position: static; }
}

@media (max-width: 960px) {
  .ci-course-layout { display:flex; flex-direction:column; }
  .ci-course-sidebar, .ci-layout-resizer { display:none; }
  .ci-mobile-only { display:block; }
  .ci-tab-panel.ci-mobile-only { display:none; }
  .ci-tab-panel.ci-mobile-only.active { display:block; }
  .ci-tab-list { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ci-tab-list .ci-mobile-only { order: -1; }
  .ci-description-grid { grid-template-columns: 1fr; }
}

.theme-toggle-btn {
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.12);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}

.ci-editor-loading {
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  color: #cbd5e1;
  background: #111827;
  border-bottom: 1px solid var(--ci-vscode-border);
}

.ci-editor-fallback {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  resize: none;
  outline: none;
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #0f172a;
  color: #e2e8f0;
}

.ci-rich-fallback-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  background: #eef3fb;
  border-bottom: 1px solid var(--border);
}

.ci-rich-fallback-toolbar button {
  border: 1px solid var(--border);
  background: white;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.ci-rich-fallback-editor {
  min-height: 420px;
  padding: 18px;
  outline: none;
  background: white;
  color: var(--text);
}

html[data-theme="dark"] {
  --primary: #dbeafe;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --text: #e5eefc;
  --muted: #94a3b8;
  --surface: #0f172a;
  --surface-soft: #020617;
  --border: rgba(148,163,184,0.24);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .ci-course-sidebar,
html[data-theme="dark"] .ci-course-main,
html[data-theme="dark"] .ci-learning-tabs,
html[data-theme="dark"] .ci-video-section,
html[data-theme="dark"] .ci-description-card,
html[data-theme="dark"] .glass-card,
html[data-theme="dark"] .course-card,
html[data-theme="dark"] aside,
html[data-theme="dark"] .modal-box {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: var(--text);
}

html[data-theme="dark"] .lesson-title,
html[data-theme="dark"] .topic-item,
html[data-theme="dark"] .ci-mobile-topic-card,
html[data-theme="dark"] .ci-tab-btn,
html[data-theme="dark"] .secondary-btn,
html[data-theme="dark"] .close-btn,
html[data-theme="dark"] .ci-rich-fallback-toolbar button {
  background: #111827;
  color: var(--text);
  border-color: var(--border);
}

html[data-theme="dark"] .lesson-title {
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.34);
}

html[data-theme="dark"] .detail-lesson-block .lesson-title {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.94) 100%);
  color: #ffffff;
}

html[data-theme="dark"] #notesEditorMount,
html[data-theme="dark"] .ci-rich-fallback-editor {
  background: #0b1220;
  color: var(--text);
}

html[data-theme="dark"] .auth-card-wrap,
html[data-theme="dark"] .auth-card {
  color: #f8fafc;
}

html[data-theme="dark"] .auth-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(17, 24, 39, 0.96) 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.55);
}

html[data-theme="dark"] .auth-card h2,
html[data-theme="dark"] .auth-card small,
html[data-theme="dark"] .remember-me,
html[data-theme="dark"] #strengthText,
html[data-theme="dark"] .auth-message {
  color: #f8fafc;
}

html[data-theme="dark"] .auth-card input,
html[data-theme="dark"] .password-wrapper input {
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.35);
}

html[data-theme="dark"] .auth-card input::placeholder {
  color: #94a3b8;
}

html[data-theme="dark"] #togglePassword {
  color: #e2e8f0;
}

html[data-theme="dark"] #loginBtn,
html[data-theme="dark"] .nav-cta.secondary {
  background: #f97316;
  color: #ffffff;
  border: 1px solid rgba(249, 115, 22, 0.75);
}

html[data-theme="dark"] #signupBtn,
html[data-theme="dark"] .nav-cta.primary {
  color: #ffffff;
}

html[data-theme="dark"] .profile-dropdown {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.3);
}

html[data-theme="dark"] .profile-dropdown a {
  color: #f8fafc;
}

html[data-theme="dark"] .profile-dropdown a:hover {
  background: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] #lessonDescriptionTab,
html[data-theme="dark"] #lessonDescriptionTab *,
html[data-theme="dark"] #captions,
html[data-theme="dark"] #captions * {
  color: #ffffff;
}

.ci-editor-loading,
.ci-editor-frame,
.ci-editor-fallback {
  grid-column: 1;
  grid-row: 1;
}

.ci-ai-drawer {
  grid-column: 2;
  grid-row: 1;
}

#notesEditorMount .ci-rich-editor {
  min-height: 520px;
  display: grid;
  grid-template-rows: auto 1fr;
}

#notesEditorMount .ci-rich-editor .ql-editor {
  min-height: 420px;
}

.ci-ide-sidebar.collapsed + .ci-editor-stack { width: 100%; }

.ci-ide-shell.sidebar-collapsed .ci-ide-body { grid-template-columns: 58px 1fr; }

.ci-standalone-main .ci-ide-shell { height: 100vh; border-radius: 0; }

.ci-course-main .ci-ide-shell { height: min(72vh, 860px); }

@media (max-width: 1200px) { .ci-course-layout { grid-template-columns: minmax(240px, 300px) 10px 1fr; } .ci-ide-actions { justify-content: flex-end; } }
@media (max-width: 860px) { .header-inner { gap: 12px; } .auth-links { width: 100%; justify-content: center; } .theme-toggle-btn { order: -1; margin: 0 auto; } .course-header.glass-card { padding: 18px; } .ci-learning-tabs { padding: 14px; } .ci-ide-shell { height: auto; min-height: 620px; } .ci-ide-topbar { align-items: flex-start; flex-direction: column; } .ci-ide-actions { width: 100%; } #sidebar { display:none; } }
@media (max-width: 640px) { body { overflow-x: hidden; } .hero-section, .info-section, .courses-section, .benefits-section, .course-detail-page, .checkout-page, .layout { padding-left: 16px; padding-right: 16px; } .split-heading, .checkout-toolbar { align-items: stretch; flex-direction: column; } .cart-summary { width: 100%; } .checkout-item { grid-template-columns: 1fr; } .ci-tab-list { grid-template-columns: 1fr; } .ci-ide-actions { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); } .ci-ide-body { grid-template-columns: 1fr; } .ci-ide-sidebar { max-height: 180px; } .ci-editor-stack { grid-template-rows: minmax(340px, 48vh) 8px 140px; } .ci-editor-stage { grid-template-columns: 1fr; min-height: 340px; } .ci-ai-drawer { width: 100%; border-left: 0; border-top:1px solid var(--ci-vscode-border); } .ci-course-main .ci-ide-shell, .ci-ide-shell { height: auto; min-height: 640px; } .ci-mobile-topic-carousel { display: grid; grid-auto-flow: row; grid-auto-columns: 1fr; overflow: visible; } }


@media (max-width: 640px) {
  html { font-size: 14px; }
  .hero-copy h1, .course-detail-copy h1 { font-size: clamp(1.7rem, 8vw, 2.3rem); line-height: 1.1; }
  .hero-copy p, .section-heading p, .course-card p, .feature-card p, .timeline-card p, .sidebar-note, #captions, .detail-description-content, .topic-item strong { font-size: 0.92rem; line-height: 1.55; }
  .hero-section { padding-top: 36px; gap: 20px; }
  .hero-card, .feature-card, .timeline-card, .course-card, .ci-description-card, .course-header.glass-card, .ci-video-section { padding: 16px; }
  .hero-stats div { padding: 14px; }
  .course-meta, .ci-topic-badge, .eyebrow, .ci-ide-eyebrow { font-size: 0.72rem; }
  .ci-learning-tabs { gap: 12px; padding: 12px; }
  .ci-tab-list { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 8px; }
  .ci-tab-btn { flex: 0 0 auto; max-width: 120px; padding: 7px 10px; font-size: 12px; border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ci-tab-label-full { display: none; }
  .ci-tab-label-short { display: inline; }
  .ci-ide-shell-embedded { min-height: 0; border-radius: 18px; }
  .ci-ide-shell-embedded .ci-ide-topbar { padding: 8px 10px; align-items: center; flex-direction: row; }
  .ci-ide-shell-embedded .ci-sidebar-toggle,
  .ci-ide-shell-embedded .ci-ide-actions [data-action="toggle-right-sidebar"],
  .ci-ide-shell-embedded .ci-ide-actions [data-action="new-file"],
  .ci-ide-shell-embedded .ci-ide-actions [data-action="export-file"],
  .ci-ide-shell-embedded .ci-ide-actions [data-action="export-zip"],
  .ci-ide-shell-embedded .ci-terminal-actions [data-action="analyse"],
  .ci-ide-shell-embedded .ci-terminal-actions [data-action="save-db"] { display: none !important; }
  .ci-ide-shell-embedded .ci-ide-title-group > div { min-width: 0; }
  .ci-ide-shell-embedded .ci-ide-topbar h3 { font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ci-ide-shell-embedded .ci-ide-actions { margin-left: auto; display: flex; flex-wrap: nowrap; gap: 4px; }
  .ci-ide-shell-embedded .ci-ide-actions .small-btn,
  .ci-ide-shell-embedded .ci-terminal-actions .small-btn,
  .ci-ide-shell-embedded .ci-pane-header,
  .ci-ide-shell-embedded .ci-mini-tab { font-size: 12px; }
  .ci-ide-shell-embedded .ci-ide-actions .small-btn,
  .ci-ide-shell-embedded .ci-terminal-actions .small-btn { min-width: 30px; padding: 4px 6px; background: transparent; border-color: transparent; box-shadow: none; }
  .ci-ide-shell-embedded .ci-ide-body { grid-template-columns: 1fr; }
  .ci-ide-shell-embedded .ci-ide-sidebar { display: none; }
  .ci-ide-shell-embedded .ci-editor-stack { grid-template-rows: minmax(280px, 46vh) 6px auto; }
  .ci-ide-shell-embedded .ci-editor-stage { grid-template-columns: 1fr; grid-template-rows: minmax(280px, 46vh) auto; }
  .ci-ide-shell-embedded .ci-ai-drawer { grid-column: 1; grid-row: 2; width: 100%; border-left: 0; border-top: 1px solid var(--ci-vscode-border); max-height: 180px; }
  .ci-ide-shell-embedded.right-sidebar-collapsed .ci-ai-drawer { display: none !important; }
  .ci-ide-shell-embedded .ci-terminal { height: 120px; min-height: 52px; }
  .ci-ide-shell-embedded .ci-terminal pre { padding: 10px 12px 14px; font-size: 12px; }
  .ci-ide-shell-embedded.terminal-collapsed .ci-terminal { height: 44px; }
  .ci-hide-on-compact { display: none !important; }
}


.ci-assessment-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: min(72vh, 720px);
  padding: 24px;
  overflow: hidden;
}

.ci-assessment-header h3 {
  margin: 10px 0 0;
  color: var(--primary);
}

.ci-assessment-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 8px 8px 2px;
}

.ci-assessment-form,
.ci-practice-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 14px 20px;
  color: var(--text);
}

.ci-quiz-fieldset {
  margin: 0;
  padding: 24px 20px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.ci-quiz-question {
  padding-top: 16px;
  font-weight: 700;
  color: var(--primary);
}

.ci-quiz-options {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.ci-quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(219, 227, 240, 0.95);
  background: #fff;
}

.ci-assessment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.ci-assessment-feedback {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(10, 31, 68, 0.06);
  color: var(--primary);
  line-height: 1.6;
}

.ci-practice-prompt {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

@media (max-width: 960px) {
  .feature-grid,
  .feature-grid-expanded,
  .timeline-grid,
  .landing-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .feature-grid-expanded,
  .timeline-grid,
  .landing-course-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }
}


html[data-theme="dark"] .ci-assessment-shell,
html[data-theme="dark"] .ci-assessment-header h3,
html[data-theme="dark"] .ci-assessment-form,
html[data-theme="dark"] .ci-practice-view,
html[data-theme="dark"] .ci-quiz-question,
html[data-theme="dark"] .ci-quiz-option,
html[data-theme="dark"] .ci-practice-prompt,
html[data-theme="dark"] .ci-practice-prompt *,
html[data-theme="dark"] .ci-assessment-feedback {
  color: #f8fafc;
}

html[data-theme="dark"] .ci-quiz-fieldset,
html[data-theme="dark"] .ci-practice-prompt,
html[data-theme="dark"] .ci-quiz-option,
html[data-theme="dark"] .ci-assessment-feedback {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(17, 24, 39, 0.96) 100%);
  border-color: rgba(148, 163, 184, 0.3);
}

html[data-theme="dark"] .ci-quiz-option span,
html[data-theme="dark"] .ci-practice-prompt p,
html[data-theme="dark"] .ci-practice-prompt li,
html[data-theme="dark"] .ci-practice-prompt strong {
  color: #e5eefc;
}

html[data-theme="dark"] .ci-quiz-option:hover {
  background: rgba(30, 41, 59, 0.95);
}

html[data-theme="dark"] .ci-quiz-option input {
  accent-color: var(--accent);
}

/* Responsive navigation, footer, and IDE layout refinements */
body,
.site-header,
.site-footer,
.dashboard-layout,
.ci-course-layout,
.ci-course-main,
.ci-learning-tabs,
.ci-standalone-main,
.ci-standalone-body {
  max-width: 100%;
}

#siteHeader,
#siteFooter,
.site-footer,
.footer-inner,
.footer-column,
.footer-enquiry-form,
.footer-socials,
.nav-links,
.nav-link-list,
.auth-links,
.profile,
.profile-dropdown,
.ci-ide-shell,
.ci-ide-body,
.ci-editor-stage,
.ci-terminal,
.ci-pane-header,
.ci-ide-actions,
.ci-terminal-actions,
.ci-file-list,
.ci-library-list,
.ci-ai-panel-body,
.ci-mobile-topic-carousel,
.ci-tab-list {
  min-width: 0;
}

.nav-links a,
.profile,
.profile-dropdown a {
  transition: color 0.2s ease, background 0.2s ease;
}

@media (max-width: 860px) {
  .header-inner {
    padding-inline: 16px;
  }

  .nav-links {
    background: linear-gradient(180deg, rgba(10, 31, 68, 0.98) 0%, rgba(12, 37, 78, 0.98) 100%);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 44px rgba(2, 6, 23, 0.24);
  }

  .nav-link-list a,
  .auth-links > a,
  .profile {
    border-radius: 14px;
    padding: 12px 14px;
  }

  .nav-link-list a:hover,
  .nav-link-list a:focus-visible,
  .auth-links > a:hover,
  .auth-links > a:focus-visible,
  .profile:hover,
  .profile:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  .profile-dropdown {
    width: 100%;
    border-radius: 16px;
  }

  .profile-dropdown a {
    border-radius: 12px;
  }

  .site-footer {
    width: 100%;
    margin-inline: 0;
    overflow: clip;
  }

  .footer-inner {
    width: min(100%, 1200px);
  }
}

html[data-theme="dark"] .nav-links {
  background: transparent;
  border: none;
  box-shadow: none;
}

html[data-theme="dark"] .nav-link-list a,
html[data-theme="dark"] .auth-links > a,
html[data-theme="dark"] .profile {
  color: #f8fafc;
}

html[data-theme="dark"] .nav-link-list a:hover,
html[data-theme="dark"] .nav-link-list a:focus-visible,
html[data-theme="dark"] .profile:hover,
html[data-theme="dark"] .profile:focus-visible,
html[data-theme="dark"] .profile-dropdown a:hover,
html[data-theme="dark"] .profile-dropdown a:focus-visible {
  color: #ffffff;
  background: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .header-cart-dropdown-inner,
html[data-theme="dark"] .checkout-sort select {
  background: #0f172a;
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.24);
}

html[data-theme="dark"] .header-cart-item,
html[data-theme="dark"] .checkout-item {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .header-cart-item strong,
html[data-theme="dark"] .header-cart-footer strong,
html[data-theme="dark"] .checkout-item h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .header-cart-item span,
html[data-theme="dark"] .header-cart-header,
html[data-theme="dark"] .header-cart-footer,
html[data-theme="dark"] .header-cart-empty,
html[data-theme="dark"] .checkout-select-all,
html[data-theme="dark"] .checkout-sort,
html[data-theme="dark"] .checkout-note {
  color: #cbd5e1;
}

.ci-ide-shell {
  --ci-sidebar-pane-width: 220px;
  --ci-right-sidebar-width: 320px;
  --ci-terminal-height: 180px;
  position: relative;
}

.ci-ide-body {
  grid-template-columns: minmax(0, var(--ci-sidebar-pane-width)) 12px minmax(0, 1fr);
}

.ci-editor-stage {
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, var(--ci-right-sidebar-width));
}

.ci-editor-stack {
  grid-template-rows: minmax(0, 1fr) 12px minmax(96px, var(--ci-terminal-height));
}

.ci-ide-sidebar,
.ci-ai-drawer,
.ci-file-list,
.ci-library-list,
.ci-ai-panel-body,
.ci-terminal pre,
.ci-ide-actions,
.ci-terminal-actions,
.ci-tab-list,
.ci-mobile-topic-carousel {
  scrollbar-width: thin;
}

.ci-file-list,
.ci-library-list,
.ci-ai-panel-body,
.ci-terminal pre {
  overflow: auto;
}

.ci-file-item,
.ci-library-item,
.ci-mini-tab,
.ci-pane-header strong,
.ci-pane-header span,
.ci-terminal pre {
  overflow-wrap: anywhere;
}

.ci-editor-fallback,
.ci-terminal pre {
  white-space: pre;
  overflow-x: auto;
}

.ci-panel-resize {
  position: relative;
  background: transparent;
  touch-action: none;
}

.ci-panel-resize::before,
.ci-terminal-resize::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.34);
}

.ci-panel-resize-horizontal {
  cursor: col-resize;
}

.ci-panel-resize-horizontal::before {
  width: 4px;
  height: 54px;
}

.ci-panel-resize-vertical {
  cursor: col-resize;
}

.ci-panel-resize-vertical::before {
  width: 4px;
  height: 56px;
}

.ci-terminal-resize {
  position: relative;
  min-height: 12px;
}

.ci-terminal-resize::before {
  width: 72px;
  height: 4px;
}

.ci-mobile-sidebar-header {
  display: none;
}

@media (max-width: 1100px) {
  .ci-ide-body {
    grid-template-columns: 1fr;
  }

  .ci-panel-resize-horizontal {
    display: none;
  }
}

@media (max-width: 640px) {
  .ci-standalone-body,
  .ci-standalone-main {
    overflow-x: clip;
  }

  .ci-standalone-main .ci-ide-shell,
  .ci-standalone-main .ci-ide-topbar,
  .ci-standalone-main .ci-ide-body,
  .ci-standalone-main .ci-editor-stack,
  .ci-standalone-main .ci-editor-stage,
  .ci-course-main .ci-ide-shell,
  .ci-course-main .ci-ide-topbar,
  .ci-course-main .ci-ide-body,
  .ci-course-main .ci-editor-stack,
  .ci-course-main .ci-editor-stage {
    max-width: 100%;
  }

  .ci-ide-shell {
    border-radius: 20px;
  }

  .ci-ide-topbar {
    position: sticky;
    top: 0;
    z-index: 6;
  }

  .ci-ide-actions {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .ci-ide-actions .small-btn {
    flex: 0 0 auto;
  }

  .ci-ide-topbar,
  .ci-ide-title-group {
    min-width: 0;
  }

  .ci-course-main .ci-ide-shell,
  .ci-ide-shell {
    min-height: 680px;
  }

  .ci-ide-body {
    grid-template-columns: 1fr;
  }

  .ci-ide-shell.sidebar-collapsed .ci-ide-body {
    grid-template-columns: 1fr;
  }

  .ci-ide-sidebar {
    max-height: none;
    border-right: 0;
    border-bottom: 0;
    overflow-x: auto;
  }

  .ci-file-list,
  .ci-library-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, max-content);
    overflow-x: auto;
    overflow-y: hidden;
    align-items: stretch;
  }

  .ci-file-item,
  .ci-library-item {
    min-width: 180px;
  }

  .ci-editor-stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(300px, 52vh) auto;
  }

  .ci-right-panel-resize {
    display: none;
  }

  .ci-ai-drawer {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    border-left: 0;
    border-top: 1px solid var(--ci-vscode-border);
    max-height: 220px;
    overflow-x: auto;
  }

  .ci-terminal {
    min-height: 96px;
  }

  .ci-terminal pre {
    white-space: pre;
    overflow: auto;
  }

  .ci-standalone-main .ci-ide-shell {
    height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .ci-standalone-main .ci-ide-shell.sidebar-collapsed .ci-ide-sidebar {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
  }

  .ci-standalone-main .ci-ide-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(78vw, 320px);
    z-index: 8;
    border-right: 1px solid var(--ci-vscode-border);
    box-shadow: 18px 0 40px rgba(2, 6, 23, 0.42);
    transition: transform 0.24s ease, opacity 0.24s ease;
    overflow-y: auto;
  }

  .ci-standalone-main .ci-ide-shell.mobile-sidebar-visible .ci-ide-sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .ci-standalone-main .ci-panel-resize-horizontal {
    display: none;
  }

  .ci-mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 0;
  }
}

/* IDE sidebar refinement overrides */
.ci-ide-shell {
  --ci-activitybar-width: 54px;
  --ci-sidebar-pane-width: 260px;
}

.ci-ide-body {
  grid-template-columns: var(--ci-activitybar-width) minmax(0, var(--ci-sidebar-pane-width)) 12px minmax(0, 1fr);
}

.ci-ide-activitybar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px 8px;
  background: #09111f;
  border-right: 1px solid var(--ci-vscode-border);
}

.ci-activity-btn {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--ci-vscode-text);
  cursor: pointer;
  font-size: 1.1rem;
  position: relative;
}

.ci-activity-btn:hover,
.ci-activity-btn.active {
  background: rgba(96, 165, 250, 0.18);
  border-color: rgba(96, 165, 250, 0.3);
}

.ci-activity-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(2, 6, 23, 0.96);
  color: #fff;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 20;
}

.ci-activity-btn:hover::before,
.ci-activity-btn:focus-visible::before {
  opacity: 1;
}

.ci-ide-sidebar {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.ci-sidebar-panel {
  display: none;
  min-height: 0;
}

.ci-sidebar-panel.active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.ci-ide-shell.sidebar-collapsed .ci-ide-body {
  grid-template-columns: var(--ci-activitybar-width) 0 0 minmax(0, 1fr);
}

.ci-ide-shell.sidebar-collapsed .ci-ide-sidebar,
.ci-ide-shell.sidebar-collapsed .ci-panel-resize-horizontal {
  opacity: 0;
  pointer-events: none;
}

.ci-ide-shell.right-sidebar-collapsed .ci-editor-stage {
  grid-template-columns: minmax(0, 1fr) 0 0;
}

.ci-ide-shell.right-sidebar-collapsed .ci-right-panel-resize,
.ci-ide-shell.right-sidebar-collapsed .ci-ai-drawer {
  opacity: 0;
  pointer-events: none;
}

.ci-ide-shell.right-sidebar-collapsed .ci-ai-drawer {
  display: none;
}

@media (max-width: 1100px) {
  .ci-ide-body {
    grid-template-columns: var(--ci-activitybar-width) minmax(0, var(--ci-sidebar-pane-width)) 12px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body,
  .ci-course-layout,
  .ci-course-main,
  .ci-learning-tabs {
    overflow-x: clip;
  }

  .ci-ide-shell {
    overflow: hidden;
  }

  .ci-ide-body {
    grid-template-columns: var(--ci-activitybar-width) minmax(0, 1fr);
  }

  .ci-ide-shell.sidebar-collapsed .ci-ide-body {
    grid-template-columns: var(--ci-activitybar-width) minmax(0, 1fr);
  }

  .ci-ide-activitybar {
    padding-inline: 6px;
  }

  .ci-panel-resize-horizontal {
    display: none !important;
  }

  .ci-ide-sidebar {
    position: absolute;
    top: 0;
    left: var(--ci-activitybar-width);
    bottom: 0;
    width: min(78vw, 320px);
    max-width: calc(100% - var(--ci-activitybar-width));
    z-index: 8;
    border-right: 1px solid var(--ci-vscode-border);
    box-shadow: 18px 0 40px rgba(2, 6, 23, 0.42);
    transition: transform 0.24s ease, opacity 0.24s ease;
    background: #0b1220;
    transform: translateX(-105%);
    opacity: 0;
    pointer-events: none;
  }

  .ci-ide-shell.mobile-sidebar-visible .ci-ide-sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .ci-ai-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82vw, 340px);
    max-width: min(82vw, 340px);
    z-index: 8;
    border-left: 1px solid var(--ci-vscode-border);
    border-top: 0;
    box-shadow: -18px 0 40px rgba(2, 6, 23, 0.42);
    transition: transform 0.24s ease, opacity 0.24s ease;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    max-height: none;
    background: #0b1220;
  }

  .ci-ide-shell:not(.right-sidebar-collapsed) .ci-ai-drawer {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .ci-file-list,
  .ci-library-list {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .ci-file-item,
  .ci-library-item {
    min-width: 0;
  }

  .ci-standalone-main .ci-ide-shell,
  .ci-standalone-main .ci-ide-shell.sidebar-collapsed .ci-ide-sidebar,
  .ci-standalone-main .ci-ide-shell.mobile-sidebar-visible .ci-ide-sidebar {
    border-radius: 0;
  }

  .ci-ide-shell.right-sidebar-collapsed .ci-editor-stage {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .ci-ide-shell-embedded .ci-ide-sidebar,
  .ci-ide-shell .ci-ide-sidebar {
    display: grid;
  }
}

@media (max-width: 640px) {
  .ci-course-main .ci-ide-shell.ci-ide-shell-embedded {
    height: auto;
    min-height: clamp(420px, 72vh, 560px);
  }

  .ci-ide-shell-embedded .ci-ide-body {
    grid-template-columns: 1fr !important;
  }

  .ci-ide-shell-embedded .ci-ide-activitybar,
  .ci-ide-shell-embedded .ci-ide-sidebar,
  .ci-ide-shell-embedded .ci-panel-resize-horizontal,
  .ci-ide-shell-embedded .ci-right-panel-resize,
  .ci-ide-shell-embedded .ci-ai-drawer {
    display: none !important;
  }

  .ci-ide-shell-embedded .ci-editor-stage {
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(240px, 48vh);
  }

  .ci-ide-shell-embedded .ci-editor-stack {
    grid-template-rows: minmax(0, 1fr) 10px minmax(80px, var(--ci-terminal-height, 140px));
  }

  .ci-ide-shell-embedded .ci-terminal-resize {
    min-height: 10px;
    touch-action: none;
    cursor: row-resize;
  }

  .ci-ide-shell-embedded .ci-terminal {
    min-height: 80px;
    max-height: 42vh;
  }

  .ci-ide-shell-embedded .ci-ide-topbar {
    gap: 8px;
    padding-inline: 10px;
  }

  .ci-ide-shell-embedded .ci-ide-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .ci-ide-shell-embedded .ci-ide-actions .small-btn {
    flex: 0 0 auto;
  }
}

/* Explorer file actions */
.ci-pane-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ci-new-file-form {
  padding: 10px;
  padding-top: 0;
}

.ci-new-file-input {
  width: 100%;
  border: 1px solid var(--ci-vscode-border);
  border-radius: 10px;
  background: #111827;
  color: var(--ci-vscode-text);
  padding: 10px 12px;
  outline: none;
}

.ci-new-file-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.ci-file-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.ci-file-item-row .ci-file-item {
  width: 100%;
}

.ci-file-delete-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, background .18s ease, transform .18s ease;
}

.ci-file-item-row:hover .ci-file-delete-btn,
.ci-file-item-row:focus-within .ci-file-delete-btn {
  opacity: 1;
  pointer-events: auto;
}

.ci-file-delete-btn:hover,
.ci-file-delete-btn:focus-visible {
  background: rgba(248, 113, 113, 0.24);
  transform: scale(1.04);
}

@media (max-width: 640px) {
  .ci-file-delete-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Personal classes page */
.personal-classes-body {
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

.personal-classes-page {
  width: min(1200px, 92vw);
  margin: 2.8rem auto 5rem;
  display: grid;
  gap: 2rem;
}

.personal-hero {
  padding: 2.3rem;
  border-radius: 24px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.personal-plan-summary {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.personal-plan-summary article {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.2rem;
  background: var(--surface-muted);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.personal-course-section {
  padding-top: .4rem;
  padding-bottom: .4rem;
}

.personal-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.personal-course-card {
  padding: 1.2rem 1.1rem 1.15rem;
  display: grid;
  gap: .9rem;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.11);
}

.personal-course-card h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.45;
}

.course-details,
.course-duration,
.course-hours {
  margin: 0;
  color: var(--text-muted);
  font-size: .94rem;
}

.schedule-buttons {
  display: flex;
  gap: .55rem;
}

.schedule-btn {
  border: 1px solid color-mix(in srgb, var(--primary-color) 24%, var(--glass-border));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.9));
  color: #0f172a;
  border-radius: 12px;
  padding: .58rem .7rem;
  cursor: pointer;
  font-weight: 700;
  flex: 1;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.schedule-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.16);
}

.schedule-btn.active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 88%, white), var(--primary-color));
  border-color: var(--primary-color);
  color: #0b1220;
  box-shadow: 0 12px 20px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

[data-theme='dark'] .schedule-btn {
  background: linear-gradient(180deg, #253045, #151d2f);
  color: #e5efff;
  border-color: #3f4d6a;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme='dark'] .schedule-btn.active {
  background: linear-gradient(180deg, #3d78ff, #1f56d3);
  border-color: #5f8fff;
  color: #f8fbff;
  box-shadow: 0 12px 21px rgba(49, 93, 205, 0.54);
}

.personal-course-card .course-price {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-color);
}

.bootcamp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 1.2rem;
  align-items: start;
}

.bootcamp-highlight {
  grid-column: 1 / span 1;
  padding: 1.2rem;
  display: grid;
  gap: .75rem;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.11);
}

.bootcamp-meta {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.bootcamp-price {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 800;
}

.bootcamp-link {
  color: inherit;
  text-decoration: none;
}

.bootcamp-video-shell {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: #111;
  overflow: hidden;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.bootcamp-video-shell iframe,
.bootcamp-video-shell video {
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.personal-form-section {
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 20px 30px rgba(15, 23, 42, 0.12);
}

.personal-enrollment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: .7rem 1rem;
}

.personal-enrollment-form label {
  font-weight: 600;
  color: var(--text-primary);
}

.personal-enrollment-form input {
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--glass-border));
  background: color-mix(in srgb, var(--surface-muted) 85%, white);
  color: var(--text-primary);
  border-radius: 12px;
  padding: .8rem .9rem;
  margin-bottom: .35rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.personal-enrollment-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.personal-enrollment-form button {
  grid-column: 1 / -1;
  width: fit-content;
  margin-top: .4rem;
}

.form-note {
  margin: .9rem 0 0;
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .bootcamp-grid {
    grid-template-columns: 1fr;
  }

  .bootcamp-highlight {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .personal-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .personal-hero,
  .personal-form-section {
    padding: 1.3rem;
  }

  .personal-enrollment-form {
    grid-template-columns: 1fr;
  }
}
