:root {
  --navy-950: #08131d;
  --navy-900: #0d1d2d;
  --navy-800: #17324b;
  --slate-700: #496177;
  --slate-500: #7f96aa;
  --mist-100: #edf2f6;
  --mist-50: #f8fafc;
  --gold-500: #d19a2a;
  --gold-400: #e0b04f;
  --teal-400: #4fa0a0;
  --white: #ffffff;
  --shadow-soft: 0 1.4rem 3rem rgba(6, 18, 29, 0.12);
  --shadow-strong: 0 1.8rem 4.2rem rgba(2, 10, 18, 0.24);
}

html {
  scroll-padding-top: 5.5rem;
}

body {
  font-family: "Lexend", sans-serif;
  color: var(--navy-950);
  background:
    radial-gradient(circle at top left, rgba(79, 160, 160, 0.14), transparent 30%),
    linear-gradient(180deg, #f7f8fa 0%, #eef3f7 100%);
}

.translation-dot {
  display: inline-block;
  width: 0.58rem;
  height: 0.58rem;
  margin-left: 0.3rem;
  border: 0;
  border-radius: 50%;
  background: #cf202e;
  box-shadow: 0 0 0 0.18rem rgba(207, 32, 46, 0.18);
  vertical-align: middle;
}

td.reorder-handle,
.dt-reorder-handle {
  cursor: move;
}

.dropdown-menu {
  border: 0;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.menu-mega-dropdown {
  position: static;
}

.mega-menu-panel {
  width: min(72rem, calc(100vw - 2rem));
  margin-top: 1rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.98);
  overflow: hidden;
}

.mega-menu-heading {
  padding: 1.2rem 1.2rem 0;
}

.mega-menu-heading strong,
.mega-menu-heading span,
.mega-menu-card strong,
.mega-menu-card span {
  display: block;
}

.mega-menu-heading span,
.mega-menu-card span,
.submenu-summary {
  color: var(--slate-700);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  padding: 1.2rem;
}

.mega-menu-card {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  text-decoration: none;
  background: linear-gradient(180deg, #f8fbfd, #e8eff4);
  color: var(--navy-950);
}

.submenu-dropdown {
  min-width: 18rem;
  padding: 0.6rem;
}

.submenu-dropdown .dropdown-item {
  border-radius: 0.85rem;
  padding: 0.75rem 0.85rem;
  white-space: normal;
}

.site-body {
  min-height: 100vh;
}

.site-shell {
  min-height: 100vh;
}

.site-header .navbar {
  padding: 0.9rem 0;
  background: rgba(8, 19, 29, 0.92);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-lockup strong {
  display: block;
  letter-spacing: 0.02em;
}

.brand-lockup small {
  display: block;
  max-width: 18rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.9rem;
}

.brand-mark-image {
  display: block;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.brand-mark-image-public {
  width: 3.25rem;
  height: 3.25rem;
  filter: drop-shadow(0 0.55rem 1rem rgba(224, 176, 79, 0.26));
}

.navbar-nav .nav-link {
  font-size: 0.94rem;
  font-weight: 500;
}

.btn-highlight {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  border: 0;
  color: var(--navy-950);
  font-weight: 700;
}

.btn-highlight:hover,
.btn-highlight:focus {
  color: var(--navy-950);
  transform: translateY(-1px);
}

.hero-band,
.page-heading {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-950);
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.hero-band::before,
.page-heading::before {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 154, 42, 0.28), transparent 65%);
}

.hero-band-home {
  min-height: 100vh;
  padding: 7rem 0 4rem;
}

.hero-band-inner {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 7rem);
}

.page-heading {
  padding: 8.2rem 0 4rem;
}

.page-content {
  padding: 0 0 5rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title,
.content-surface h2,
.content-surface h3,
.content-surface h4,
.footer-title,
.metric-card strong {
  font-family: "Libre Baskerville", serif;
}

.hero-title {
  font-size: clamp(2.7rem, 4.3vw, 5.25rem);
  line-height: 1.04;
  max-width: 12ch;
}

.hero-title.small {
  max-width: 14ch;
  font-size: clamp(2.1rem, 3.3vw, 3.8rem);
}

.hero-copy {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-copy.narrow {
  max-width: 50rem;
}

.hero-proof-card,
.content-surface,
.metric-card,
.chatbot-card,
.feature-panel {
  border-radius: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.hero-proof-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.5rem;
}

.proof-item + .proof-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-item span {
  display: block;
  margin-bottom: 0.4rem;
  color: rgba(224, 176, 79, 0.9);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-surface {
  position: relative;
  margin-top: -2.5rem;
  background: rgba(255, 255, 255, 0.97);
  padding: 2rem;
}

.content-surface > * + * {
  margin-top: 1.6rem;
}

.content-surface p,
.content-surface li {
  color: #1c3040;
  line-height: 1.85;
}

.content-surface img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

.content-surface ul,
.content-surface ol {
  padding-left: 1.2rem;
}

.content-surface .content-section {
  padding: 1.75rem 0;
  border-top: 1px solid rgba(23, 50, 75, 0.08);
}

.content-surface .content-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.content-surface .section-tint {
  padding: 1.5rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, #f6f9fb, #edf3f7);
  border: 1px solid rgba(23, 50, 75, 0.08);
}

.content-surface .info-grid,
.content-surface .stats-grid,
.content-surface .card-grid {
  display: grid;
  gap: 1rem;
}

.content-surface .info-grid,
.content-surface .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.content-surface .stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.content-surface .info-card,
.content-surface .stats-card,
.content-surface .card-item {
  height: 100%;
  padding: 1.2rem;
  border-radius: 1rem;
  background: var(--mist-50);
  border: 1px solid rgba(23, 50, 75, 0.08);
}

.content-surface .stats-card strong,
.content-surface .info-card strong,
.content-surface .card-item strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--navy-900);
}

.site-footer {
  padding: 3rem 0 2rem;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.78);
}

.footer-brand {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--white);
  font-size: 1.1rem;
}

.footer-title {
  margin-bottom: 0.85rem;
  color: var(--white);
  font-size: 1rem;
}

.footer-stack {
  display: grid;
  gap: 0.55rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--gold-400);
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.chatbot-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1050;
}

.chatbot-toggle {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  background: var(--white);
  color: var(--navy-950);
  font-weight: 700;
  box-shadow: var(--shadow-strong);
}

.chatbot-card {
  width: min(28rem, calc(100vw - 2rem));
  margin-top: 0.75rem;
  overflow: hidden;
  background: var(--white);
}

.chatbot-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--navy-950);
  color: var(--white);
}

.chatbot-card-body {
  padding: 1rem;
}

.chatbot-messages {
  display: grid;
  gap: 0.8rem;
  max-height: 18rem;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.chatbot-message {
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  font-size: 0.95rem;
}

.chatbot-message.user {
  background: var(--navy-950);
  color: var(--white);
}

.chatbot-message.bot {
  background: #f1f5f7;
}

.chatbot-citations {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(16, 20, 24, 0.1);
}

.chatbot-citations a {
  display: block;
  color: var(--teal-400);
  font-weight: 700;
  text-decoration: none;
}

.chatbot-citations small {
  display: block;
  color: var(--slate-700);
}

.chatbot-form {
  display: grid;
  gap: 0.75rem;
}

.admin-body {
  background: #0d1419;
  color: #ecf0f3;
}

.admin-shell {
  display: grid;
  grid-template-columns: 18rem 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  padding: 1.5rem;
  background: linear-gradient(180deg, #10181f, #15222c);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 2rem;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.9rem;
}

.admin-main {
  background: #eef1f2;
  color: var(--navy-950);
  padding-bottom: 5.5rem;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #15222c, #27404d);
  color: var(--white);
}

.admin-content {
  padding: 2rem;
}

.admin-footer {
  position: fixed;
  left: 18rem;
  right: 0;
  bottom: 0;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid rgba(16, 20, 24, 0.08);
  background: #10181f;
  z-index: 1030;
}

.admin-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.admin-footer-logo {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.metric-card {
  background: linear-gradient(135deg, #fffdf8, #efe3cf);
  padding: 1.5rem;
}

.metric-card span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--slate-700);
}

.metric-card strong {
  display: block;
  font-size: 2.2rem;
}

.login-body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(13, 18, 22, 0.56), rgba(13, 18, 22, 0.56)),
    url("../images/eXsiteCMS-logo-02.jpeg") center center / cover no-repeat;
  color: var(--white);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.login-panel {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.login-orb-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.login-shell > .position-absolute {
  z-index: 2;
}

.login-copy h1 {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy-950);
  padding: 2rem;
}

@media (max-width: 991px) {
  .admin-shell,
  .login-panel {
    grid-template-columns: 1fr;
  }

  .menu-mega-dropdown {
    position: relative;
  }

  .mega-menu-panel {
    width: 100%;
  }

  .admin-sidebar {
    padding-bottom: 0;
  }

  .admin-footer {
    left: 0;
  }

  .hero-band-home,
  .hero-band-inner {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 4.7rem;
  }

  .admin-content,
  .admin-topbar {
    padding: 1rem;
  }

  .admin-footer {
    padding: 1rem;
  }

  .admin-footer-brand {
    align-items: flex-start;
  }

  .brand-lockup small {
    max-width: 12rem;
  }

  .brand-mark {
    width: 2.4rem;
    height: 2.4rem;
  }

  .brand-mark-image-public {
    width: 2.9rem;
    height: 2.9rem;
  }

  .page-heading {
    padding-top: 6.8rem;
  }

  .hero-band-home {
    padding-top: 6.3rem;
  }

  .content-surface {
    padding: 1.4rem;
  }

  .site-footer-bottom {
    flex-direction: column;
  }
}
