:root {
  --blue-950: #07306f;
  --blue-900: #0a3b87;
  --blue-800: #1649a8;
  --blue-700: #2f58b8;
  --blue-600: #2367c8;
  --blue-500: #3b82f6;
  --cyan-500: #23c8ee;
  --green-500: #2fbf71;
  --coral-500: #ff6b5c;
  --amber-500: #f5a524;
  --ink: #17233c;
  --muted: #66738d;
  --line: #dbe5f4;
  --soft: #f1f7fc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(28, 73, 126, 0.12);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 70px;
  padding: 0 7vw;
  border-bottom: 1px solid rgba(219, 229, 244, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 245px;
  min-width: 220px;
}

.brand-logo {
  display: block;
  width: 60%;
  max-width: 245px;
  height: auto;
}

.main-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 26px;
  color: #263856;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 26px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  background: var(--blue-600);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn-primary {
  background: var(--blue-700);
  color: var(--white);
  box-shadow: 0 12px 22px rgba(47, 88, 184, 0.22);
}

.btn-light {
  border-color: var(--line);
  background: var(--white);
  color: var(--blue-800);
}

.btn-accent {
  background: var(--cyan-500);
  color: #042b4a;
  box-shadow: 0 12px 24px rgba(34, 199, 233, 0.26);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.48);
  color: var(--white);
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--blue-700);
  cursor: pointer;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue-800);
}

.section-dark {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(5, 37, 91, 0.96), rgba(8, 74, 154, 0.86)),
    radial-gradient(circle at 80% 20%, rgba(35, 200, 238, 0.34), transparent 28%),
    #07306f;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(34, 199, 233, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 199, 233, 0.35) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.hero::after {
  position: absolute;
  right: -12vw;
  bottom: -22vw;
  width: 54vw;
  height: 54vw;
  border: 1px solid rgba(34, 199, 233, 0.28);
  border-radius: 50%;
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.9fr);
  gap: 48px;
  align-items: center;
  width: min(1160px, 86vw);
  margin: 0 auto;
  padding: 86px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: var(--cyan-500);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.map-card {
  position: relative;
  overflow: hidden;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 45% 44%, rgba(35, 200, 238, 0.2), transparent 34%),
    linear-gradient(150deg, rgba(3, 16, 38, 0.62), rgba(7, 48, 111, 0.26)),
    #020b18;
  box-shadow: 0 28px 90px rgba(0, 19, 50, 0.32);
}

.map-card::before {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  content: "";
}

.map-card img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104%;
  height: 104%;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.map-caption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 2px;
  max-width: 180px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(4, 37, 79, 0.68);
  backdrop-filter: blur(12px);
}

.map-caption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.map-caption strong {
  color: var(--white);
  font-size: 20px;
  line-height: 1.2;
}

.hero-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  min-height: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(6, 52, 108, 0.76);
  box-shadow: 0 26px 80px rgba(0, 19, 50, 0.28);
  backdrop-filter: blur(18px);
}

.hero-panel::before {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  content: "";
  pointer-events: none;
}

.panel-top,
.panel-heading,
.exam-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-top span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
}

.panel-top strong {
  color: var(--cyan-500);
  font-size: 30px;
}

.ring-wrap {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 24px 0 22px;
}

.progress-ring {
  display: grid;
  width: 124px;
  height: 124px;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(var(--cyan-500) calc(var(--value) * 1%), rgba(255, 255, 255, 0.16) 0),
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 0 57%, transparent 58%);
}

.progress-ring span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: rgba(4, 37, 79, 0.82);
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
}

.ring-meta strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.ring-meta span {
  color: rgba(255, 255, 255, 0.72);
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

.mini-metrics div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-metrics dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.mini-metrics dd {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 800;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1160px, 86vw);
  margin: -46px auto 0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  margin-top: 5px;
}

.metric {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  display: block;
  color: var(--blue-700);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(1160px, 86vw);
  margin: 0 auto;
  padding: 92px 0;
}

.section-programs {
  padding-top: 68px;
  padding-bottom: 68px;
}

.section-soft {
  width: 100%;
  margin-top: 12px;
  padding-right: max(7vw, calc((100vw - 1160px) / 2));
  padding-left: max(7vw, calc((100vw - 1160px) / 2));
  background: linear-gradient(180deg, #f6fbff, #ffffff);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 8px 0 10px;
  color: var(--blue-900);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.14;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-heading.split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.program-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: stretch;
}

.program-layout>*,
.report-grid>*,
.learner-grid>*,
.exam-grid>*,
.ai-layout>*,
.section-register>* {
  min-width: 0;
}

.featured-course {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #eef8ff, #fff5fa);
  box-shadow: var(--shadow);
}

.course-visual {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  background:
    linear-gradient(145deg, rgba(9, 111, 205, 0.15), rgba(34, 199, 233, 0.34)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    #31aee4;
  background-size: auto, 34px 34px, 34px 34px, auto;
  color: var(--white);
}

.course-visual span {
  width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.course-visual strong {
  display: block;
  max-width: 290px;
  margin-top: 18px;
  font-size: 43px;
  line-height: 1.04;
}

.course-visual-image {
  display: flex;
  min-height: 300px;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  background: linear-gradient(180deg, #f7fcff, #eaf6ff);
}

.course-visual-image img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center top;
}

.course-visual-text {
  min-height: 300px;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(145deg, rgba(47, 88, 184, 0.22), rgba(35, 200, 238, 0.5)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    #28aee0;
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
}

.featured-copy {
  padding: 24px;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.featured-meta strong {
  color: var(--amber-500);
}

.featured-copy h3,
.report-snapshot h3,
.exam-box h3,
.history-box h3,
.ai-copy h2,
.register-copy h2 {
  margin: 0;
  color: var(--blue-900);
}

.featured-copy p,
.report-snapshot p,
.exam-top p,
.ai-copy p,
.register-copy p {
  color: var(--muted);
}

.featured-copy h3 {
  font-size: 20px !important;
  line-height: 1.35 !important;
}

.featured-copy p {
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  margin-top: 10px !important;
}

.exam-top p {
  max-width: 520px;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.program-facts {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.program-facts span {
  display: block;
  padding: 8px 12px;
  border: 1px solid rgba(20, 100, 189, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  color: #2d3d5f;
  font-size: 12px;
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: #2d3d5f;
  font-size: 12.5px;
  line-height: 1.45;
}

.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  background: rgba(47, 191, 113, 0.16);
  color: var(--green-500);
  content: "✓";
  font-size: 10px;
  font-weight: 900;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.course-list::-webkit-scrollbar {
  width: 6px;
}

.course-list::-webkit-scrollbar-track {
  background: var(--soft);
  border-radius: 99px;
}

.course-list::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}

.course-list::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.course-card,
.report-panel,
.report-snapshot,
.profile-panel,
.learning-panel,
.cert-panel,
.exam-box,
.history-box,
.ai-console,
.register-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.course-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 110px;
  height: auto;
  flex-shrink: 0;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.course-card:hover,
.course-card:focus-visible,
.course-card.is-active {
  border-color: var(--blue-700);
  box-shadow: 0 18px 40px rgba(47, 88, 184, 0.18);
  transform: translateY(-1px);
}

.course-card.is-active {
  background: linear-gradient(180deg, #f7fbff, #eef7fc);
}

.course-card .tag {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.course-card h3 {
  min-height: auto;
  margin: 2px 0 0;
  color: var(--blue-900);
  font-size: 14px;
  line-height: 1.25;
}

.course-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.course-card strong {
  display: block;
  margin-top: 2px;
  color: var(--amber-500);
  font-size: 11.5px;
  line-height: 1.25;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(20, 100, 189, 0.1);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
}

.tag-green {
  background: rgba(47, 191, 113, 0.12);
  color: #14804a;
}

.tag-coral {
  background: rgba(255, 107, 92, 0.14);
  color: #bf3325;
}

.tag-indigo {
  background: rgba(47, 88, 184, 0.12);
  color: var(--blue-800);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  max-width: 760px;
}

.filter-row select {
  flex: 1 1 190px;
}

#report .section-heading.split {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

#report .filter-row {
  justify-content: flex-start;
  max-width: none;
  width: 100%;
}

select,
input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

select {
  padding: 0 36px 0 14px;
}

input {
  width: 100%;
  padding: 0 14px;
}

select:focus,
input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(20, 100, 189, 0.12);
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 24px;
}

.report-panel {
  min-height: 460px;
  padding: 24px;
}

.tabs {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.tab {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.tab.is-active {
  background: var(--blue-700);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(20, 100, 189, 0.2);
}

.chart-title {
  margin: 24px 0 16px;
  color: var(--blue-900);
  font-size: 18px;
  font-weight: 800;
}

.bar-chart {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 64px;
  gap: 14px;
  align-items: center;
  min-height: 34px;
}

.bar-label {
  overflow: hidden;
  color: #334461;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: #e9f1fa;
}

.bar-fill {
  width: var(--width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-700), var(--cyan-500));
  transform-origin: left;
  animation: growBar 520ms ease both;
}

.bar-value {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

@keyframes growBar {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.report-snapshot {
  overflow: hidden;
}

.report-snapshot img {
  width: 100%;
  height: 266px;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
}

.report-snapshot div {
  padding: 24px;
}

.student-switch {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
}

.student-switch button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--blue-800);
  cursor: pointer;
  font-weight: 800;
}

.student-switch button.is-active {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: var(--white);
}

.learner-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(360px, 1.2fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.profile-panel,
.learning-panel,
.cert-panel {
  padding: 24px;
}

.student-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  display: grid;
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-700), var(--cyan-500));
  color: var(--white);
  font-weight: 800;
}

.student-card span,
.student-card p {
  color: var(--muted);
  font-size: 13px;
}

.student-card h3 {
  margin: 2px 0 4px;
  color: var(--blue-900);
}

.student-card p {
  margin: 0;
}

.student-stats {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}

.student-stats div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.student-stats dt {
  color: var(--muted);
}

.student-stats dd {
  margin: 0;
  color: var(--blue-900);
  font-weight: 800;
}

.panel-heading h3 {
  margin: 0;
  color: var(--blue-900);
}

.panel-heading span {
  color: var(--blue-700);
  font-weight: 800;
}

.course-progress {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.progress-item {
  display: grid;
  gap: 8px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #334461;
  font-size: 14px;
  font-weight: 700;
}

.progress-bar {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #e9f1fa;
}

.progress-bar span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-500), var(--cyan-500));
}

.certificate-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.certificate {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed #b8cbe2;
  border-radius: 6px;
  background: #f8fbff;
}

.certificate strong {
  color: var(--blue-900);
}

.certificate span {
  color: var(--muted);
  font-size: 13px;
}

.section-exam {
  padding-top: 46px;
}

.exam-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
}

.exam-box,
.history-box {
  padding: 24px;
}

.exam-program-select {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.exam-program-select label {
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 900;
}

.exam-program-select select {
  width: 100%;
}

.exam-top {
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.exam-top strong {
  display: grid;
  min-width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: #ecf8ff;
  color: var(--blue-700);
  font-size: 24px;
}

.quiz-area {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 16px 0;
}

.quiz-placeholder {
  display: grid;
  min-height: 210px;
  place-items: center;
  border: 1px dashed #b8cbe2;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.question {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
}

.question strong {
  color: var(--blue-900);
  font-size: 13px;
  line-height: 1.4;
}

.question label {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #334461;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.3;
}

.question label input[type="radio"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--blue-700);
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.quiz-pagination {
  display: flex;
  gap: 6px;
  align-items: center;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--blue-900);
}

.page-btn:hover {
  background: var(--blue-50);
  border-color: var(--blue-200);
}

.page-btn.is-active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 14px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: #2d3d5f;
  font-weight: 600;
}

.section-ai {
  width: 100%;
  padding-right: max(7vw, calc((100vw - 1160px) / 2));
  padding-left: max(7vw, calc((100vw - 1160px) / 2));
  background:
    linear-gradient(120deg, rgba(7, 54, 111, 0.94), rgba(8, 120, 216, 0.84)),
    #07366f;
  color: var(--white);
}

.ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 36px;
  align-items: center;
}

.ai-copy h2 {
  margin: 8px 0 14px;
  color: var(--white);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.12;
}

.ai-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.ai-copy .btn {
  margin-top: 26px;
}

.ai-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ai-feature-card {
  min-height: 236px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 48px rgba(0, 19, 50, 0.18);
  backdrop-filter: blur(14px);
}

.ai-feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: rgba(35, 200, 238, 0.18);
  color: var(--cyan-500);
  font-size: 13px;
  font-weight: 900;
}

.ai-feature-card h3 {
  margin: 18px 0 10px;
  color: var(--white);
  font-size: 18px;
}

.ai-feature-card p {
  min-height: 72px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.ai-feature-card button {
  min-height: 36px;
  margin-top: 18px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.ai-chips button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.ai-console {
  display: grid;
  min-height: 450px;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
}

.messages {
  display: grid;
  align-content: start;
  gap: 14px;
  max-height: 390px;
  overflow-y: auto;
  padding: 24px;
}

.message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: min(88%, 560px);
  padding: 12px 14px;
  border-radius: 12px;
  color: #263856;
}

.message.ai {
  background: #eef8ff;
  border-bottom-left-radius: 2px;
}

.message.user {
  justify-self: end;
  background: #eaf7ef;
  border-bottom-right-radius: 2px;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid #b8cbe2;
  padding: 2px;
}

.message-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.message-body {
  flex: 1;
  min-width: 0;
}

.message-body strong {
  display: block;
  margin-bottom: 2px;
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 700;
}

.message-body span {
  font-size: 14px;
  line-height: 1.5;
}

.ai-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.ai-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(22, 73, 168, 0.32);
  font-weight: 900;
  animation: aiPulse 2.4s infinite;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-launcher:hover {
  transform: scale(1.08) translateY(-3px);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  box-shadow: 0 22px 48px rgba(22, 73, 168, 0.42);
}

.ai-launcher:active {
  transform: scale(0.95) translateY(0);
}

.ai-launcher-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 2px;
  animation: botSayHi 6s infinite ease-in-out;
  transition: transform 0.3s ease;
}

.ai-launcher:hover .ai-launcher-img {
  transform: rotate(15deg) scale(1.1);
}

@keyframes aiPulse {
  0% {
    box-shadow: 0 18px 40px rgba(22, 73, 168, 0.32), 0 0 0 0 rgba(34, 199, 233, 0.6);
  }

  70% {
    box-shadow: 0 18px 40px rgba(22, 73, 168, 0.32), 0 0 0 12px rgba(34, 199, 233, 0);
  }

  100% {
    box-shadow: 0 18px 40px rgba(22, 73, 168, 0.32), 0 0 0 0 rgba(34, 199, 233, 0);
  }
}

@keyframes botSayHi {

  0%,
  88%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  91% {
    transform: rotate(-15deg) scale(1.15);
  }

  94% {
    transform: rotate(15deg) scale(1.15);
  }

  97% {
    transform: rotate(-10deg) scale(1.08);
  }
}

.ai-launcher svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ai-launcher svg path:first-child {
  fill: rgba(255, 255, 255, 0.14);
}

.ai-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 28px;
}

.ai-modal.is-open {
  display: flex;
}

.ai-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 18, 45, 0.48);
  backdrop-filter: blur(4px);
}

.ai-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(520px, calc(100vw - 40px));
  max-height: min(760px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid rgba(219, 229, 244, 0.8);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 19, 50, 0.28);
}

.ai-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f7fbff, #eef7fc);
}

.ai-dialog-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ai-header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
  border: 2px solid #b8cbe2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 2px;
}

.ai-dialog-header h2 {
  margin: 5px 0 0;
  color: var(--blue-900);
  font-size: 22px;
  line-height: 1.2;
}

.ai-close {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--blue-800);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.ai-dialog .ai-console {
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ai-dialog .messages {
  max-height: min(430px, calc(100vh - 250px));
}

body.ai-modal-open,
body.result-modal-open {
  overflow: hidden;
}

.locality-summary {
  display: grid;
  min-width: 220px;
  justify-items: end;
}

.locality-summary strong {
  color: var(--blue-700);
  font-size: 34px;
  line-height: 1;
}

.locality-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.locality-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(28, 73, 126, 0.08);
}

.locality-card::after {
  position: absolute;
  right: -24px;
  bottom: -30px;
  width: 84px;
  height: 84px;
  border: 12px solid rgba(34, 199, 233, 0.16);
  border-radius: 50%;
  content: "";
}

.locality-card h3 {
  margin: 0 0 12px;
  color: var(--blue-900);
}

.locality-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.locality-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.locality-card dt {
  color: var(--muted);
  font-size: 13px;
}

.locality-card dd {
  margin: 0;
  color: var(--blue-700);
  font-weight: 800;
}

.section-register {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 48px;
  align-items: center;
  width: 100%;
  padding-right: max(7vw, calc((100vw - 1160px) / 2));
  padding-left: max(7vw, calc((100vw - 1160px) / 2));
  background: #eef7fc;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  color: #334461;
  list-style: none;
}

.contact-logo {
  width: min(245px, 78vw);
  margin-top: 28px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 24px rgba(22, 73, 168, 0.08);
}

.register-form {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.register-form h3 {
  margin: 0 0 4px;
  color: var(--blue-900);
}

.form-notice {
  min-height: 22px;
  margin: 0;
  color: #14804a;
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 24px;
  padding: 28px 7vw;
  border-top: 1px solid #d9e8f7;
  background: linear-gradient(180deg, #eef7fc, #dfeff8);
  color: #30405c;
  font-size: 13px;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-brand img {
  display: block;
  width: min(245px, 100%);
  height: auto;
}

.site-footer p {
  max-width: 680px;
  margin: 0;
  padding: 14px 18px;
  border-radius: 6px;
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.82);
  text-align: right;
}

@media (max-width: 1100px) {
  .site-header {
    padding: 0 5vw;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-header.menu-open {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-header.menu-open .main-nav,
  .site-header.menu-open .header-actions {
    display: flex;
    width: 100%;
    justify-content: flex-start;
  }

  .site-header.menu-open .main-nav {
    flex-wrap: wrap;
    gap: 8px 22px;
  }

  .site-header.menu-open .main-nav a {
    padding: 8px 0;
  }

  .hero-inner,
  .program-layout,
  .report-grid,
  .learner-grid,
  .exam-grid,
  .ai-layout,
  .section-register {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    width: min(900px, 90vw);
  }

  .hero-visual {
    gap: 14px;
  }

  .metric-band {
    grid-template-columns: repeat(2, 1fr);
    width: min(900px, 90vw);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section,
  .section-soft,
  .section-ai,
  .section-register {
    width: 100%;
    padding-right: 5vw;
    padding-left: 5vw;
  }

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

  .ai-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .course-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .brand {
    width: 210px;
    min-width: 0;
  }

  .brand-logo {
    max-width: 210px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    gap: 34px;
    padding-top: 54px;
    padding-bottom: 78px;
  }

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

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .quiz-actions,
  .ai-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-header.menu-open .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-panel {
    width: 100%;
    padding: 20px;
  }

  .hero-visual {
    gap: 12px;
  }

  .map-card {
    height: 320px;
  }

  .map-card img {
    width: 110%;
    height: 110%;
  }

  .ring-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .mini-metrics,
  .metric-band,
  .locality-grid {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .section-programs {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .section-heading.split {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-row,
  .student-switch {
    justify-content: flex-start;
  }

  .filter-row select,
  .course-list {
    width: 100%;
  }

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

  .course-card {
    min-height: 90px;
  }

  .exam-top {
    display: grid;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .bar-label {
    white-space: normal;
  }

  .bar-value {
    text-align: left;
  }

  table {
    min-width: 640px;
  }

  .course-visual {
    min-height: 240px;
  }

  .course-visual-image,
  .course-visual-text {
    min-height: 280px;
  }

  .course-visual-image img {
    height: 280px;
    min-height: 280px;
  }

  .course-visual strong {
    font-size: 32px;
  }

  .site-footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p {
    width: 100%;
    text-align: left;
  }

  .ai-launcher {
    right: 16px;
    bottom: 16px;
    min-height: 54px;
    padding: 0 16px;
  }

  .ai-modal {
    align-items: stretch;
    padding: 12px;
  }

  .ai-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
  }

  .ai-dialog-header {
    padding: 16px;
  }

  .ai-dialog-header h2 {
    font-size: 19px;
  }

  .ai-dialog .messages {
    max-height: calc(100vh - 226px);
    padding: 16px;
  }

  .message {
    width: 100%;
  }
}

/* Result Modal Styles */
.result-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.result-modal.is-open {
  display: flex;
}

.result-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 18, 45, 0.6);
  backdrop-filter: blur(6px);
}

.result-dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.result-header {
  padding: 24px 24px 12px;
  text-align: center;
  position: relative;
}

.result-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
  animation: trophyBounce 1s infinite alternate ease-in-out;
}

@keyframes trophyBounce {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-8px);
  }
}

.result-header h2 {
  font-size: 20px;
  color: var(--blue-900);
  margin: 0;
}

.result-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
  line-height: 1;
}

.result-close:hover {
  color: #dc2626;
}

.result-body {
  padding: 0 24px 20px;
  text-align: center;
}

.result-summary p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 12px 6px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-card.correct {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.stat-card.correct .stat-num {
  color: #16a34a;
}

.stat-card.incorrect {
  background: #fef2f2;
  border-color: #fecaca;
}

.stat-card.incorrect .stat-num {
  color: #dc2626;
}

.stat-card.time {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.stat-card.time .stat-num {
  color: #2563eb;
}

.stat-num {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.result-score-block {
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.score-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 6px;
}

.score-status-desc {
  font-size: 12px;
  color: var(--muted);
}

.result-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

.result-footer .btn {
  width: 100%;
  max-width: 180px;
}

/* Dashboard Premium Styles */
.main-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.dashboard-header {
  padding: 40px 0 24px;
}

.dashboard-header h1 {
  margin: 0 0 8px;
  color: var(--blue-900);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.dashboard-header p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Metric Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(28, 73, 126, 0.05);
  transition: all 300ms ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(28, 73, 126, 0.12);
  border-color: var(--blue-600);
}



.metric-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.metric-card-top span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--blue-700);
  font-size: 20px;
}

.metric-card.accent-cyan .metric-icon-wrapper {
  color: #0b93b0;
  background: rgba(35, 200, 238, 0.1);
}

.metric-card.accent-green .metric-icon-wrapper {
  color: #16a34a;
  background: rgba(47, 191, 113, 0.1);
}

.metric-card.accent-coral .metric-icon-wrapper {
  color: #e11d48;
  background: rgba(255, 107, 92, 0.1);
}

.metric-card-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.metric-card-value h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  color: var(--blue-950);
  line-height: 1;
}

.metric-trend {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.metric-trend.up {
  color: var(--green-500);
}

.metric-trend.down {
  color: var(--coral-500);
}

.metric-card-bottom {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-mini-bar {
  flex: 1;
  height: 6px;
  background: var(--soft);
  border-radius: 99px;
  overflow: hidden;
  margin-left: 12px;
}

.metric-mini-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--blue-700);
}

/* Control bar styling */
.dashboard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(28, 73, 126, 0.03);
  margin-bottom: 24px;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-export {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 180ms ease;
}

.btn-export:hover {
  background: var(--soft);
  border-color: var(--blue-600);
  color: var(--blue-700);
}

/* Charts Section */
.dashboard-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 24px;
  margin-bottom: 32px;
}

.chart-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(28, 73, 126, 0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chart-card-header h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 18px;
  font-weight: 800;
}

.pie-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 250px;
  gap: 16px;
}

.pie-total-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-950);
  background: var(--soft);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 4px;
  box-shadow: 0 2px 8px rgba(28, 73, 126, 0.04);
}

.pie-svg-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
}

.pie-svg {
  transform: rotate(-90deg);
}

.pie-segment {
  fill: none;
  stroke-width: 31.83;
  transition: stroke-dasharray 0.5s ease;
}

.pie-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 4px;
}

.legend-item strong {
  font-size: 13px;
  color: var(--ink);
}

.legend-item span {
  font-size: 11px;
  color: var(--muted);
}

/* Detailed table section */
.table-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(28, 73, 126, 0.05);
  padding: 24px;
  margin-bottom: 32px;
}

.table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.table-card-header h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 18px;
  font-weight: 800;
}

.table-search-wrapper {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.table-search-input {
  width: 100%;
  padding-left: 36px;
}

.table-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}

.dashboard-table-container {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.dashboard-table th {
  background: var(--soft);
  color: var(--blue-950);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.dashboard-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: #334461;
  white-space: nowrap;
}

.dashboard-table tbody tr {
  transition: background 120ms ease;
}

.dashboard-table tbody tr:hover {
  background: rgba(241, 247, 252, 0.6);
}

.dashboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.status-badge.high {
  background: rgba(47, 191, 113, 0.1);
  color: #16a34a;
}

.status-badge.medium {
  background: rgba(245, 165, 36, 0.1);
  color: #d97706;
}

.status-badge.low {
  background: rgba(255, 107, 92, 0.1);
  color: #e11d48;
}

/* Pagination container */
.table-pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-controls {
  display: flex;
  gap: 6px;
}

.pagination-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 160ms ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--blue-600);
  color: var(--blue-700);
  background: var(--soft);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: var(--blue-700);
  color: var(--white);
  border-color: var(--blue-700);
  box-shadow: 0 4px 10px rgba(47, 88, 184, 0.2);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  max-width: 400px;
  padding: 16px;
  background: var(--white);
  border-left: 4px solid var(--blue-600);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  transform: translateX(-120%);
  opacity: 0;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-left-color: var(--green-500);
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.toast-message {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Responsive adjust for dashboard */
@media (max-width: 992px) {
  .dashboard-charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .controls-left,
  .controls-right {
    justify-content: space-between;
  }
}

/* Learner Profile Page Styles */
.learner-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}

.learner-sidebar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(28, 73, 126, 0.05);
  padding: 20px;
}

.sidebar-heading {
  font-size: 15px;
  font-weight: 800;
  color: var(--blue-900);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 200ms ease;
}

.sidebar-item:hover {
  border-color: var(--blue-600);
  background: var(--soft);
}

.sidebar-item.is-selected {
  background: linear-gradient(180deg, #f7fbff, #eef7fc);
  border-color: var(--blue-700);
  box-shadow: 0 4px 15px rgba(47, 88, 184, 0.1);
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-item:nth-child(2) .sidebar-avatar {
  background: var(--cyan-500);
  color: #042b4a;
}

.sidebar-item:nth-child(3) .sidebar-avatar {
  background: var(--coral-500);
}

.sidebar-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-950);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-role {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

/* Learner Profile Main Content */
.learner-main-profile {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.profile-hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(238, 248, 255, 0.8), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(219, 229, 244, 0.8);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(28, 73, 126, 0.05);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-hero-card::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 200, 238, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.profile-large-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  font-weight: 800;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(22, 73, 168, 0.2);
  flex-shrink: 0;
}

.profile-hero-info {
  flex-grow: 1;
}

.profile-hero-info h2 {
  margin: 0 0 6px;
  color: var(--blue-900);
  font-size: 24px;
  font-weight: 800;
}

.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  align-items: center;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-status-badge.active {
  background: rgba(47, 191, 113, 0.1);
  color: #16a34a;
}

/* Profile Section Card */
.profile-section-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(28, 73, 126, 0.05);
  padding: 24px;
}

.profile-section-card h3 {
  margin: 0 0 18px;
  color: var(--blue-900);
  font-size: 18px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

/* Joined Courses List */
.joined-courses-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.course-progress-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all 200ms ease;
  flex-wrap: wrap;
  gap: 16px;
}

.course-progress-card:hover {
  border-color: var(--blue-600);
  box-shadow: 0 4px 15px rgba(28, 73, 126, 0.05);
  transform: translateX(4px);
}

.course-progress-left {
  flex: 1;
  min-width: 250px;
}

.course-progress-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-950);
}

.course-progress-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.course-progress-bar-wrapper {
  width: 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-progress-bar-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-700);
  text-align: right;
}

.course-progress-bar-track {
  height: 6px;
  background: var(--soft);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.course-progress-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--blue-700);
  transition: width 0.4s ease;
}

.course-result-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.course-result-badge span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}

/* Upcoming Courses Section */
.upcoming-courses-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.upcoming-course-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 250ms ease;
  min-height: 180px;
}

.upcoming-course-card:hover {
  border-color: var(--blue-700);
  box-shadow: 0 10px 25px rgba(28, 73, 126, 0.08);
  transform: translateY(-2px);
}

.upcoming-course-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.upcoming-course-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-950);
  line-height: 1.35;
}

.upcoming-course-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.45;
  flex-grow: 1;
}

.upcoming-course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.upcoming-course-lessons {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Certificate Showcase */
.certificate-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.cert-card {
  border: 1px dashed var(--blue-600);
  border-radius: 12px;
  padding: 24px;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: all 200ms ease;
}

.cert-card:hover {
  border-style: solid;
  box-shadow: 0 8px 25px rgba(28, 73, 126, 0.06);
}

.cert-card-badge {
  font-size: 40px;
  filter: drop-shadow(0 4px 8px rgba(245, 165, 36, 0.2));
}

.cert-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-950);
}

.cert-card-meta {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--muted);
  gap: 2px;
}

.cert-card-code {
  font-family: monospace;
  font-weight: 700;
  color: var(--blue-700);
  background: var(--soft);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

.btn-cert-download {
  font-size: 12px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-800);
  cursor: pointer;
  font-weight: 700;
  transition: all 180ms ease;
  width: 100%;
}

.btn-cert-download:hover {
  background: var(--soft);
  border-color: var(--blue-700);
  color: var(--blue-700);
}

.cert-card-empty {
  grid-column: 1 / -1;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: #fdfdfd;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

/* Responsive adjust for learner profile */
@media (max-width: 992px) {
  .learner-page-layout {
    grid-template-columns: 1fr;
  }

  .learner-sidebar {
    position: sticky;
    top: 75px;
    z-index: 10;
  }
}

/* Roadmap program card styles */
.all-programs-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.program-roadmap-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr 120px;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all 220ms ease;
}

.program-roadmap-card:hover {
  border-color: var(--blue-600);
  box-shadow: 0 4px 15px rgba(28, 73, 126, 0.04);
}

.roadmap-card-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.program-num-badge {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--blue-800);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.program-roadmap-card.status-completed .program-num-badge {
  background: rgba(47, 191, 113, 0.1);
  color: #16a34a;
}

.program-roadmap-card.status-learning .program-num-badge {
  background: rgba(35, 200, 238, 0.1);
  color: #0b93b0;
}

.program-text-details h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-950);
}

.program-text-details p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.roadmap-card-middle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.roadmap-card-middle .status-badge {
  align-self: flex-start;
}

.roadmap-card-middle .exam-result {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.roadmap-progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.roadmap-progress-wrapper .progress-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-700);
}

.roadmap-progress-bar {
  height: 6px;
  background: var(--soft);
  border-radius: 99px;
  overflow: hidden;
}

.roadmap-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-700);
  transition: width 0.4s ease;
}

.roadmap-card-right {
  display: flex;
  justify-content: flex-end;
}

.cert-ready-icon {
  font-size: 12px;
  font-weight: 700;
  color: #d97706;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 768px) {
  .program-roadmap-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .roadmap-card-right {
    justify-content: flex-start;
  }
}

/* Dedicated AI Assistant Page Styles */
.ai-page-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: calc(100vh - 72px - 90px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.ai-sidebar {
  border-right: 1px solid var(--line);
  background: var(--soft);
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 18px;
  box-shadow: inset -5px 0 15px rgba(28, 73, 126, 0.02);
}

.ai-new-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(10, 59, 135, 0.15);
}

.ai-new-chat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10, 59, 135, 0.22);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
}

.ai-student-selector-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(28, 73, 126, 0.03);
}

.ai-student-selector-card label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-student-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--blue-900);
  font-weight: 700;
  outline: none;
  cursor: pointer;
  background-color: var(--white);
  transition: border-color 0.2s ease;
}

.ai-student-select:focus {
  border-color: var(--blue-700);
}

.ai-history-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 2px;
}

.ai-history-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.ai-thread-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-thread-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.25s ease;
}

.ai-thread-item:hover {
  background: var(--blue-50);
  border-color: var(--blue-200);
  transform: translateX(2px);
}

.ai-thread-item.is-active {
  background: #e9f1fa;
  border-color: var(--blue-600);
  border-left: 4px solid var(--blue-700);
}

.ai-thread-item.is-active .ai-thread-title-text {
  font-weight: 700;
  color: var(--blue-950);
}

.ai-thread-title-text {
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: left;
  font-weight: 600;
}

.ai-thread-delete-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s ease;
  line-height: 1;
}

.ai-thread-delete-btn:hover {
  color: var(--coral-500);
  background: rgba(255, 107, 92, 0.1);
}

.ai-clear-history-btn {
  background: transparent;
  border: 1px dashed #ffbcbc;
  color: var(--coral-500);
  padding: 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.ai-clear-history-btn:hover {
  background: rgba(255, 107, 92, 0.08);
  border-color: var(--coral-500);
  border-style: solid;
}

/* Chat Panel Area */
.ai-chat-panel {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px - 90px);
}

.ai-chat-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f7fbff, #eef7fc);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chat-header-info h2 {
  margin: 0;
  font-size: 18px;
  color: var(--blue-900);
}

.ai-chat-header-info p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.ai-chat-header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green-500);
  font-weight: 700;
}

.ai-chat-header-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green-500);
  animation: statusPulse 1.8s infinite;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 28px 24px;
  display: grid;
  align-content: start;
  gap: 16px;
  background: #fafbfe;
}

/* Suggested chips for welcome view */
.ai-welcome-container {
  max-width: 680px;
  margin: 40px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.ai-welcome-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid #b8cbe2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  padding: 4px;
  animation: botSayHi 6s infinite ease-in-out;
}

.ai-welcome-container h2 {
  color: var(--blue-900);
  font-size: 28px;
  margin: 0;
  font-weight: 800;
}

.ai-welcome-container p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.ai-suggestions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  margin-top: 15px;
}

.ai-suggestion-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(28, 73, 126, 0.04);
}

.ai-suggestion-card:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(28, 73, 126, 0.08);
}

.ai-suggestion-card strong {
  display: block;
  font-size: 14px;
  color: var(--blue-800);
  margin-bottom: 4px;
}

.ai-suggestion-card span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Chat input bar styling */
.ai-chat-input-bar {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.ai-chat-form {
  display: flex;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.ai-chat-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ai-chat-input:focus {
  background: var(--white);
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(35, 103, 200, 0.15);
}

.ai-chat-send-btn {
  padding: 0 26px;
  border-radius: 28px;
  border: none;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(10, 59, 135, 0.15);
}

.ai-chat-send-btn:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  box-shadow: 0 6px 16px rgba(10, 59, 135, 0.22);
}

.ai-chat-send-btn:active {
  transform: scale(0.97);
}

/* Responsive adjustment for AI page */
@media (max-width: 868px) {
  .ai-page-container {
    grid-template-columns: 1fr;
  }

  .ai-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    max-height: 250px;
    padding: 14px;
  }

  .ai-chat-panel {
    height: calc(100vh - 72px - 250px - 90px);
  }

  .ai-suggestions-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Dedicated Training Page Styles */
.training-hero {
  padding: 60px 7vw;
  background: linear-gradient(135deg, var(--blue-950), #0d4bb3);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.training-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(35, 200, 238, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(47, 191, 71, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.training-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.training-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
}

.training-hero p {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(14px, 1.2vw, 17px);
}

.training-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.training-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.training-search-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 15px;
  outline: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.training-search-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.training-search-input:focus {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.training-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.training-search-input:focus~.training-search-icon {
  color: var(--muted);
}

.training-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.filter-chip.is-active {
  background: var(--white);
  color: var(--blue-900);
  border-color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Course Grid Section */
.training-section {
  padding: 48px 7vw 80px;
  background: #f8fbff;
  min-height: 400px;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.training-course-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(28, 73, 126, 0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.training-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(28, 73, 126, 0.12);
}

.card-banner {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f7fcff, #eaf6ff);
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.card-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.card-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 10px;
}

.card-program-num {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--blue-800);
  text-transform: uppercase;
}

.card-rating {
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-rating::before {
  content: "⭐";
}

.card-body {
  padding: 0 24px 20px;
  flex: 1;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--blue-950);
  line-height: 1.35;
}

.card-description {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  min-height: 58px;
}

.card-bullets {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-bullets li {
  font-size: 13px;
  color: #334461;
  position: relative;
  padding-left: 20px;
  line-height: 1.4;
}

.card-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 800;
}

.card-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--line);
  background: #fafbfe;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.card-info-row strong {
  color: var(--blue-900);
}

.card-enroll-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(10, 59, 135, 0.12);
}

.card-enroll-btn:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  box-shadow: 0 6px 14px rgba(10, 59, 135, 0.2);
}

.card-enroll-btn:active {
  transform: scale(0.98);
}

.mode-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.mode-badge.direct {
  background: rgba(35, 103, 200, 0.08);
  color: var(--blue-700);
}

.mode-badge.online {
  background: rgba(47, 191, 113, 0.08);
  color: var(--green-500);
}

.mode-badge.hybrid {
  background: rgba(245, 165, 36, 0.08);
  color: var(--amber-500);
}

.training-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-weight: 600;
}

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

/* Audiences section styling */
.audiences-section {
  padding: 80px 7vw 48px;
  background: var(--white);
  max-width: 1200px;
  margin: 0 auto;
}

.audiences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 20px;
  margin: 32px auto 0;
}

.audience-card {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  text-align: left;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(28, 73, 126, 0.02);
  display: flex;
  flex-direction: column;
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(28, 73, 126, 0.08);
  border-color: #b8cbe2;
}

.audience-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-block;
}

.audience-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--blue-950);
  font-weight: 800;
  line-height: 1.3;
}

.audience-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.audience-card strong {
  display: block;
  font-size: 11px;
  color: var(--blue-700);
  text-transform: uppercase;
  margin-top: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Course Detail Page Split Screen Layout styles */
.detail-sub-header {
  background: var(--blue-950);
  color: var(--white);
  padding: 16px 7vw;
  text-align: center;
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 17px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.detail-content-area {
  background: #f4f7f9;
  padding: 24px 7vw 80px;
}

.detail-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 7.2fr) minmax(320px, 2.8fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.detail-left-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-right-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mock Video Player */
.detail-player-wrapper {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.detail-player-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: filter 0.3s ease;
}

.detail-player-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.detail-play-btn-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.detail-play-btn-circle:hover {
  transform: scale(1.1);
  background: var(--white);
}

.detail-play-icon-symbol {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid var(--blue-900);
  margin-left: 5px;
}

.detail-player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  font-size: 13px;
  z-index: 2;
}

.player-bar-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.player-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 35%;
  background: var(--cyan-500);
  border-radius: inherit;
}

/* Lesson Navigation Bar */
.detail-lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 15px rgba(28, 73, 126, 0.03);
}

.detail-lesson-title {
  margin: 0;
  font-size: 16px;
  color: var(--blue-950);
  font-weight: 800;
  flex: 1;
  line-height: 1.4;
}

.detail-lesson-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.detail-nav-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  color: #334461;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.detail-nav-btn:hover:not(:disabled) {
  background: var(--soft);
  border-color: #b8cbe2;
}

.detail-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Auto shift slide switch */
.detail-auto-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.toggle-switch-wrapper {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.toggle-switch-wrapper input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 20px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked+.toggle-slider {
  background-color: var(--blue-700);
}

input:checked+.toggle-slider:before {
  transform: translateX(18px);
}

/* Tabs & Overview box */
.detail-info-tabs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  border-bottom: 2px solid var(--line);
}

.detail-tab-btn {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.detail-tab-btn.is-active {
  color: var(--blue-700);
}

.detail-tab-btn.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue-700);
}

.detail-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(28, 73, 126, 0.03);
}

.detail-info-card h3 {
  margin: 0 0 12px;
  color: var(--blue-950);
  font-size: 18px;
  font-weight: 800;
}

.detail-info-card p {
  margin: 0;
  color: #334461;
  font-size: 14px;
  line-height: 1.6;
}

/* Sidebar Tab structure */
.sidebar-tabs-header {
  display: flex;
  background: #e2ecf5;
  border-radius: 6px;
  padding: 3px;
  border: 1px solid var(--line);
}

.sidebar-tab-btn {
  flex: 1;
  padding: 8px;
  border: none;
  background: transparent;
  color: var(--blue-800);
  font-weight: 700;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.sidebar-tab-btn.is-active {
  background: #f5a524;
  color: var(--white);
  box-shadow: 0 2px 6px rgba(245, 165, 36, 0.2);
}

/* Sidebar List panel */
.sidebar-content-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(28, 73, 126, 0.03);
  overflow: hidden;
  max-height: 520px;
  display: flex;
  flex-direction: column;
}

.sidebar-content-list {
  overflow-y: auto;
  flex: 1;
}

.sidebar-list-group {
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  color: var(--blue-950);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sidebar-list-group:first-child {
  border-top: none;
}

.sidebar-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-list-item:hover {
  background: var(--soft);
}

.sidebar-list-item.is-active {
  background: #eef5fc;
  border-left: 4px solid var(--blue-700);
}

.sidebar-list-item.is-active .item-title {
  color: var(--blue-800);
  font-weight: 700;
}

.item-left-info {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex: 1;
}

.item-icon {
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--muted);
}

.sidebar-list-item.is-active .item-icon {
  color: var(--blue-700);
}

.item-title {
  font-size: 13px;
  color: #334461;
  line-height: 1.45;
}

.item-duration {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  margin-top: 2px;
}

/* Documents tab */
.sidebar-doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-doc-item:last-child {
  border-bottom: none;
}

.doc-info {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
}

.doc-title {
  font-size: 13px;
  color: #334461;
  font-weight: 600;
  line-height: 1.4;
}

.doc-dl-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-700);
  background: transparent;
  border: 1px solid var(--blue-600);
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.doc-dl-btn:hover {
  background: var(--blue-700);
  color: var(--white);
}

/* Exams Tab */
.sidebar-exam-panel {
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.sidebar-exam-icon {
  font-size: 40px;
  margin-bottom: 4px;
}

.sidebar-exam-panel h4 {
  margin: 0;
  font-size: 15px;
  color: var(--blue-950);
  font-weight: 800;
}

.sidebar-exam-panel p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.sidebar-exam-btn {
  width: 100%;
  min-height: 40px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(10, 59, 135, 0.15);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-exam-btn:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
}

/* Card Action Row inside Catalog cards */
.card-action-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.card-enroll-btn {
  flex: 1 !important;
}

.card-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 44px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--blue-700);
  color: var(--blue-700);
  background: transparent;
  transition: all 0.2s ease;
  box-shadow: none;
}

.card-detail-link:hover {
  background: rgba(35, 103, 200, 0.05);
  border-color: var(--blue-600);
}

/* Responsive detail layout */
@media (max-width: 868px) {
  .detail-layout-grid {
    grid-template-columns: 1fr;
  }

  .detail-content-area {
    padding: 16px 14px 60px;
  }
}

.user-greeting {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-900);
  white-space: nowrap;
}

.user-avatar-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}