:root {
  --brand-ink: #132a3f;
  --brand-sky: #2f7ccf;
  --brand-sand: #f9f3e7;
  --brand-mint: #b8f3df;
  --text-main: #102437;
  --text-soft: #57677a;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 8% 12%, #ecfff6 0, #f7fbff 30%, #fff5e8 100%);
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(2px);
}

.bg-orb-left {
  width: 280px;
  height: 280px;
  background: linear-gradient(120deg, #c6f7e4, #d8ecff);
  left: -110px;
  top: 100px;
}

.bg-orb-right {
  width: 340px;
  height: 340px;
  background: linear-gradient(120deg, #ffe8c5, #ffd7db);
  right: -140px;
  top: 260px;
}

.navbar-brand {
  font-weight: 800;
  color: var(--brand-ink);
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--brand-sky), #2ad9ab);
}

.nav-link {
  font-weight: 500;
  color: #31465a;
}

.btn-brand {
  background: linear-gradient(135deg, #1a6ac3, #1c8fbc);
  color: #fff;
  border: 0;
}

.btn-brand:hover {
  color: #fff;
  filter: brightness(1.03);
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #167f7e;
  background: #dcfbf4;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(14, 31, 49, 0.08);
}

.phase-list {
  margin: 0;
  padding-left: 1.1rem;
}

.exam-card,
.metric-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(16, 36, 55, 0.08);
}

.exam-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.exam-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(16, 36, 55, 0.14);
}

.bg-soft {
  color: #0f6574;
  background: #d7f4f8;
}

.metric-label {
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.admin-body {
  background: #f4f8fb;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: #0f2438;
  color: #e9f1fb;
  padding: 1.5rem;
}

.admin-sidebar .nav-link {
  color: #d0e3f9;
  border-radius: 0.5rem;
}

.admin-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-content {
  flex: 1;
  padding: 1.5rem;
}

.admin-content .sortable-header {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.admin-content .sortable-header::after {
  content: " \2195";
  color: #8ca0b5;
  font-size: 0.82rem;
}

.admin-content .sortable-header[data-sort-direction="asc"]::after {
  content: " \2191";
  color: #1a6ac3;
}

.admin-content .sortable-header[data-sort-direction="desc"]::after {
  content: " \2193";
  color: #1a6ac3;
}

.admin-content .sort-disabled {
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .admin-shell {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
  }
}

.test-engine-page .timer-badge {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #204f89, #1a86a2);
  padding: 0.45rem 0.85rem;
  border-radius: 0.6rem;
}

.question-panel {
  display: none;
}

.question-panel.active {
  display: block;
}

.question-rich-content p,
.question-rich-content ol,
.question-rich-content ul,
.question-rich-content blockquote,
.question-rich-content pre {
  margin-bottom: 0.5rem;
}

.question-rich-content p:last-child,
.question-rich-content ol:last-child,
.question-rich-content ul:last-child,
.question-rich-content blockquote:last-child,
.question-rich-content pre:last-child {
  margin-bottom: 0;
}

.option-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d7deeb;
  border-radius: 0.75rem;
  background: #fff;
}

.option-row:hover {
  background: #f4fbff;
}

.question-palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}

.palette-item {
  border: 0;
  border-radius: 0.5rem;
  padding: 0.4rem;
  background: #e5ebf4;
  color: #16314d;
  font-weight: 600;
}

.palette-item.current {
  background: #1a6ac3;
  color: #fff;
}

.palette-item.answered {
  background: #c2f0df;
}

.palette-item.review {
  background: #ffe5b8;
}

.palette-item.unanswered {
  background: #e7ecf5;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.legend-current { background: #1a6ac3; }
.legend-answered { background: #79dcb2; }
.legend-review { background: #f5c470; }
.legend-unanswered { background: #ced8e8; }

/* =========================================================
   HOME PAGE
   ========================================================= */

/* --- Hero --- */
.hp-hero {
  padding: 5rem 0 4rem;
}

.hp-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d6e51;
  background: #d5f5ea;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
}

.hp-hero-heading {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand-ink);
}

.hp-heading-accent {
  background: linear-gradient(120deg, #1a6ac3, #12b07e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-hero-sub {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 540px;
  line-height: 1.65;
}

.hp-btn-ghost {
  border: 2px solid var(--brand-ink);
  color: var(--brand-ink);
  background: transparent;
}

.hp-btn-ghost:hover {
  background: var(--brand-ink);
  color: #fff;
}

.hp-trust-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hp-trust-item {
  display: flex;
  flex-direction: column;
}

.hp-trust-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-ink);
  line-height: 1;
}

.hp-trust-label {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

.hp-trust-sep {
  width: 1px;
  height: 36px;
  background: #d0dae8;
}

/* Hero card mock preview */
.hp-hero-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 215, 235, 0.7);
  border-radius: 1.25rem;
  box-shadow: 0 16px 40px rgba(14, 31, 52, 0.1);
  overflow: hidden;
}

.hp-hero-card-header {
  background: #f1f5fb;
  border-bottom: 1px solid #e3eaf4;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hp-hero-card-title {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 600;
}

.hp-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.hp-dot-red    { background: #ff5f56; }
.hp-dot-yellow { background: #ffbd2e; }
.hp-dot-green  { background: #27c93f; }

.hp-mock-preview {
  padding: 1.25rem 1.5rem 1.5rem;
}

.hp-mock-q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.hp-mock-qnum {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.hp-mock-timer {
  font-size: 0.88rem;
  font-weight: 700;
  color: #c0392b;
}

.hp-mock-q-text {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--brand-ink);
  margin-bottom: 0.85rem;
}

.hp-mock-options {
  display: grid;
  gap: 0.45rem;
}

.hp-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid #dce5f0;
  font-size: 0.88rem;
  background: #f7faff;
  cursor: default;
}

.hp-option-selected {
  background: #e9f3ff;
  border-color: #1a6ac3;
  color: #1a4880;
  font-weight: 600;
}

.hp-option-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #aec3de;
  flex-shrink: 0;
}

.hp-option-selected .hp-option-dot {
  background: #1a6ac3;
  border-color: #1a6ac3;
}

.hp-btn-prev {
  border: 1px solid #cdd7e4;
  color: var(--text-soft);
  background: #fff;
}

.hp-btn-mark {
  border: 1px solid #f5c470;
  color: #9d6904;
  background: #fffbf0;
}

/* --- Section shared --- */
.hp-section-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a6ac3;
  background: #e5effd;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
}

.hp-section-heading {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--brand-ink);
}

.hp-section-sub {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto;
}

/* --- Features --- */
.hp-features-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #f4f8ff 0%, #fff 100%);
}

.hp-feature-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(14, 31, 52, 0.06);
  border: 1px solid #e9eff7;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hp-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(14, 31, 52, 0.12);
}

.hp-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.hp-feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-ink);
  margin-bottom: 0.5rem;
}

.hp-feature-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

/* --- How it works --- */
.hp-how-section {
  padding: 5rem 0;
}

.hp-step-card {
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e6edf7;
  box-shadow: 0 4px 18px rgba(14, 31, 52, 0.05);
}

.hp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a6ac3, #12b07e);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
}

.hp-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-ink);
}

.hp-step-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

/* --- CTA Banner --- */
.hp-cta-section {
  padding: 4rem 0 5rem;
}

.hp-cta-inner {
  background: linear-gradient(130deg, #0f2d56 0%, #134b8a 60%, #0d6e51 100%);
  border-radius: 1.5rem;
  padding: 3rem 3.5rem;
  box-shadow: 0 20px 50px rgba(15, 45, 86, 0.3);
}

.hp-cta-heading {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.hp-cta-sub {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

@media (max-width: 767.98px) {
  .hp-cta-inner {
    padding: 2rem 1.5rem;
  }
}

/* --- Footer --- */
.hp-footer {
  background: #0b1e31;
  color: #d0dde9;
  padding: 3.5rem 0 0;
  margin-top: 2rem;
}

.hp-footer .navbar-brand {
  color: #fff;
  font-size: 1.2rem;
}

.hp-footer-tagline {
  font-size: 0.88rem;
  color: #91a8bc;
  line-height: 1.65;
  max-width: 320px;
}

.hp-footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6b8aa0;
  margin-bottom: 0.9rem;
}

.hp-footer-links {
  margin: 0;
}

.hp-footer-links li {
  margin-bottom: 0.5rem;
}

.hp-footer-links a {
  color: #afc3d6;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.hp-footer-links a:hover {
  color: #fff;
}

.hp-footer-bottom {
  border-top: 1px solid #1a2f45;
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #5e7a90;
}

.hp-footer-made {
  font-style: italic;
}

/* =========================================================
   ADMIN AREA - TABLE TEXT COLORS
   ========================================================= */
.admin-content .badge {
  color: #000 !important;
}

.admin-content table tbody td span.badge {
  color: #000 !important;
}
