/* =========================================================
   KnowledgeUpgrad — Fractal-inspired visual system
   Ref: fractal.ai — deep-tech, 3-D motion, enterprise feel
   ========================================================= */
:root {
  --ku-ink:    #111827;
  --ku-muted:  #627089;
  --ku-blue:   #4a4ae8;
  --ku-indigo: #6366f1;
  --ku-cyan:   #38bdf8;
  --ku-mint:   #b9efe3;
  --ku-cream:  #f6f7f3;
  --ku-line:   #dfe4ea;
  --ku-dark:   #080f1e;
  --ku-dark2:  #0d1a33;
}

body {
  background: #ffffff;
  color: var(--ku-ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mainHeader,
#mainNav {
  background: #060f1a !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(6, 15, 26, 0.28);
}

#mainNav {
  min-height: 78px;
}

.navbar-brand img {
  width: 280px;
  height: 66px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  overflow: visible;
}

nav#mainNav .nav-item {
  padding: 0 10px;
}

nav#mainNav .nav-item > a,
nav#mainNav .nav-link {
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: none;
}

nav#mainNav .nav-item > a:hover,
nav#mainNav .nav-link:hover {
  color: #38bdf8 !important;
}

/* ── Hero slider ──────────────────────────────────────── */
.ku-slider {
  position: relative;
  height: 740px;
  min-height: 740px;
  max-height: 740px;
  overflow: hidden;
  background: var(--ku-dark);
}

/* Particle canvas sits as the full background */
#ku-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
}

.ku-slide {
  position: absolute;
  top: 0;
  left: 52%;
  width: 48%;
  height: 100%;
  border-bottom-left-radius: 32px;
  border-top-left-radius: 32px;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1);
}

.ku-slide.ku-slide-active {
  opacity: 1;
}

.ku-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.68) brightness(0.84) contrast(1.06);
}

/* gradient seam between dark left and photo right */
.ku-slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    var(--ku-dark) 0%,
    var(--ku-dark) 44%,
    rgba(8,15,30,0.72) 56%,
    rgba(8,15,30,0.10) 72%,
    transparent 100%
  );
  pointer-events: none;
}

/* hero text */
.ku-hero-content {
  position: absolute;
  left: 7%;
  top: 50%;
  width: 50%;
  max-width: 680px;
  z-index: 10;
  text-align: left;
  transform: translateY(-50%);
  color: #ffffff;
}

.ku-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(99,102,241,0.45);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(99,102,241,0.12);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 20px;
}

.ku-hero-eyebrow span.ku-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ku-cyan);
  animation: kuDotPulse 2s ease-in-out infinite;
}

@keyframes kuDotPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

.ku-hero-content h1 {
  color: #ffffff;
  font-size: clamp(44px, 5.6vw, 74px);
  line-height: 1.0;
  letter-spacing: -0.055em;
  font-weight: 700;
  margin-bottom: 22px;
}

.ku-hero-content h1 span {
  background: linear-gradient(135deg, var(--ku-indigo) 0%, var(--ku-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ku-hero-content h3 {
  max-width: 580px;
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
}

.ku-hero-actions {
  justify-content: flex-start;
  margin-top: 36px;
}

/* hero stat pills */
.ku-hero-stats {
  display: flex;
  gap: 22px;
  margin-top: 38px;
  list-style: none;
  padding: 0;
}

.ku-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ku-hero-stat strong {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.ku-hero-stat small {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ku-stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.14);
  align-self: stretch;
}

/* Buttons */
.ku-line-btn,
.ku-color-btn {
  border-radius: 6px;
  min-width: 148px;
  min-height: 52px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 220ms ease;
}

.ku-line-btn {
  border: 1px solid rgba(255,255,255,0.35);
  color: #ffffff !important;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
}

.ku-line-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.6);
  color: #fff !important;
}

.ku-color-btn {
  background: linear-gradient(135deg, var(--ku-indigo) 0%, #3b82f6 100%);
  color: #fff !important;
  border: none;
  box-shadow: 0 8px 28px rgba(99,102,241,0.38);
}

.ku-color-btn:hover {
  background: linear-gradient(135deg, #5254f0 0%, #2563eb 100%);
  box-shadow: 0 12px 36px rgba(99,102,241,0.52);
  transform: translateY(-2px);
}

/* ── About section ────────────────────────────────────── */
.aboutUs {
  background: #ffffff;
  padding: 96px 0;
}

.aboutUsThumb {
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

.aboutUsThumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(99,102,241,0.14);
  pointer-events: none;
}

.aboutUsThumb img {
  border-radius: 16px;
  max-height: 520px;
  width: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.65,.25,1);
}

.aboutUsThumb:hover img {
  transform: scale(1.03);
}

.sectionHeading h3 {
  color: var(--ku-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sectionHeading h2 {
  max-width: 760px;
  color: var(--ku-ink);
  font-size: clamp(38px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 650;
}

.blueTxt {
  color: var(--ku-ink);
}

.para {
  color: #627089;
  font-size: 16px;
  line-height: 1.8;
}

.colorBtn,
.blueBtn {
  border-radius: 4px;
  background: var(--ku-ink);
  color: #fff !important;
  text-transform: none;
  font-weight: 700;
}

.ku-explore {
  background: var(--ku-cream);
  padding: 96px 0;
}

.ku-explore:nth-of-type(even) {
  background: #ffffff;
}

/* subtle top border accent for explore sections */
.ku-explore {
  border-top: 1px solid var(--ku-line);
}

.ku-color-card {
  background: #ffffff;
  border: 1px solid var(--ku-line);
  border-radius: 14px;
  color: var(--ku-ink);
  padding: 22px;
  box-shadow: none;
  transition:
    border-color 220ms ease,
    transform 320ms cubic-bezier(.2,.65,.25,1),
    box-shadow 320ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.ku-color-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: perspective(900px) rotateX(2deg) rotateY(-2deg) translateY(-8px);
  box-shadow:
    0 24px 56px rgba(17,24,39,0.10),
    0 0 0 1px rgba(99,102,241,0.14);
}

.ku-color-card img {
  width: 100%;
  height: 172px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(.2,.65,.25,1);
}

.ku-color-card:hover img {
  transform: scale(1.03);
}

.ku-color-card h3 {
  min-height: 62px;
  color: var(--ku-ink);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
}

.ku-color-card p {
  min-height: 76px;
  color: var(--ku-muted);
  font-size: 15px;
  line-height: 1.6;
}

.ku-card-date {
  color: #8791a1;
  border-top: 1px solid #edf0f3;
  padding-top: 13px;
}

.ku-card-links a {
  color: var(--ku-blue) !important;
  font-size: 14px;
}

/* ── Why Us ───────────────────────────────────────────── */
.ku-why {
  background: var(--ku-dark);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

/* subtle radial glow behind section */
.ku-why::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 820px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ku-why .sectionHeading h2,
.ku-why .sectionHeading h3 {
  color: #ffffff;
}

.ku-why-card {
  min-height: 215px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  transition:
    background 240ms ease,
    border-color 240ms ease,
    transform 320ms cubic-bezier(.2,.65,.25,1),
    box-shadow 320ms ease;
}

.ku-why-card:hover {
  background: rgba(99,102,241,0.11);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.3);
}

.ku-why-card img {
  filter: brightness(0) invert(1) opacity(0.75);
  transition: filter 240ms ease;
}

.ku-why-card:hover img {
  filter: brightness(0) invert(1) opacity(1);
}

.ku-why-card h3,
.ku-why-card p {
  color: #ffffff;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: #060f1a;
  border-top: 1px solid rgba(56, 189, 248, 0.16);
}

.footerLinks h3 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}

.footerLinks p,
.footerLinks a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  line-height: 1.9;
}

.footerLinks a:hover {
  color: #38bdf8;
}

.footerLinks .logo img {
  width: 280px;
  height: 66px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  overflow: visible;
  filter: none;
  opacity: 1;
}

.copyright {
  background: #040a12;
  color: rgba(255,255,255,0.55);
}

.footer_copy_content {
  color: rgba(255,255,255,0.55);
}

.navbar-toggler {
  filter: brightness(0) invert(1);
}

.navbar-toggler-icon {
  filter: none;
}

/* ── 3-D hero visual stage ────────────────────────────── */
.ku-visual-stage {
  position: absolute;
  z-index: 3;
  right: 4%;
  top: 50%;
  width: min(42vw, 560px);
  height: 530px;
  transform: translateY(-50%) perspective(1200px) rotateY(-8deg);
  transform-style: preserve-3d;
  pointer-events: none;
}

.ku-grid-plane {
  position: absolute;
  left: 8%;
  right: 0;
  bottom: 4%;
  height: 60%;
  border: 1px solid rgba(99,102,241,.18);
  background-image:
    linear-gradient(rgba(99,102,241,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.12) 1px, transparent 1px);
  background-size: 36px 36px;
  transform: rotateX(62deg) rotateZ(-7deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 8%, transparent 90%);
}

.ku-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .6;
}

.ku-orb-one {
  width: 300px;
  height: 300px;
  right: 7%;
  top: 5%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9) 0%, #c7c7ff 14%, #8b8df7 44%, rgba(99,102,241,.08) 70%);
  box-shadow: 0 40px 100px rgba(99,102,241,.36), 0 0 60px rgba(99,102,241,.18) inset;
  animation: kuOrbFloat 7s ease-in-out infinite;
}

/* depth ring around orb-one */
.ku-orb-one::after {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(99,102,241,.22);
  animation: kuRingPulse 3.5s ease-in-out infinite;
}

@keyframes kuRingPulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 0.2; transform: scale(1.07); }
}

.ku-orb-two {
  width: 100px;
  height: 100px;
  right: 1%;
  bottom: 14%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #9ce9da 18%, #38bdf8 52%, rgba(56,189,248,.12) 72%);
  box-shadow: 0 20px 60px rgba(56,189,248,.32);
  animation: kuOrbFloat 5s ease-in-out infinite reverse;
}

.ku-visual-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.60);
  background: rgba(255,255,255,.85);
  box-shadow: 0 28px 80px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.12) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #111827;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ku-visual-card-main {
  left: 10%;
  top: 16%;
  width: 400px;
  height: 288px;
  justify-content: center;
  border-radius: 20px;
  transform: translateZ(80px) rotateY(-4deg) rotateX(3deg);
  animation: kuCardFloat 6s ease-in-out infinite;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 25%, rgba(99,102,241,.18), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.95), rgba(230,235,255,.85));
  border: 1px solid rgba(99,102,241,.18);
}

/* floating info cards */
.ku-visual-card-top,
.ku-visual-card-bottom {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  animation: kuCardFloatSmall 4s ease-in-out infinite;
  pointer-events: auto;
}

.ku-visual-card-top {
  right: 2%;
  top: 8%;
  animation-delay: 0s;
}

.ku-visual-card-bottom {
  left: 6%;
  bottom: 8%;
  animation-delay: 2s;
}

.ku-visual-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ku-indigo), var(--ku-cyan));
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}

.ku-visual-card strong {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.ku-visual-card small {
  font-size: 11px;
  color: #627089;
}

.ku-ai-image-stack,
.ku-ai-image {
  width: 100%;
  height: 100%;
}

.ku-ai-image-stack {
  position: relative;
  display: grid;
  place-items: center;
}

.ku-ai-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
  opacity: 0;
  transform: scale(.94) translateY(12px);
  transition: opacity 900ms cubic-bezier(.2,.65,.25,1), transform 900ms cubic-bezier(.2,.65,.25,1);
}

.ku-ai-image-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.ku-ai-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(74,74,232,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(74,74,232,.07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle, #000 35%, transparent 78%);
  pointer-events: none;
}

.ku-ai-scanline {
  position: absolute;
  z-index: 4;
  left: 8%;
  right: 8%;
  height: 2px;
  top: 10%;
  background: linear-gradient(90deg, transparent, #5eead4, #818cf8, transparent);
  box-shadow: 0 0 18px rgba(94,234,212,.7);
  animation: kuScan 4.8s ease-in-out infinite;
}

@keyframes kuOrbFloat {
  0%,100% { transform: translate3d(0,0,40px) scale(1); }
  50%      { transform: translate3d(0,-20px,80px) scale(1.05); }
}

@keyframes kuCardFloat {
  0%,100% { transform: translateZ(80px) rotateY(-4deg) rotateX(3deg) translateY(0); }
  50%      { transform: translateZ(100px) rotateY(-2deg) rotateX(1deg) translateY(-12px); }
}

@keyframes kuCardFloatSmall {
  0%,100% { margin-top: 0; }
  50%      { margin-top: -10px; }
}

@keyframes kuScan {
  0%,100% { top: 10%; opacity: 0; }
  12%      { opacity: 1; }
  70%      { opacity: 0.55; }
  88%      { top: 88%; opacity: 0; }
}

/* ── Progress bar ─────────────────────────────────────── */
#ku-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--ku-indigo), var(--ku-cyan));
  z-index: 9999;
  transition: width 60ms linear;
  pointer-events: none;
}

/* ── Reduced-motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ku-orb,
  .ku-orb-one::after,
  .ku-visual-card,
  .ku-ai-scanline { animation: none !important; }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 991px) {
  body { padding-top: 68px; }
  #mainNav { min-height: 68px; }
  #navbarSupportedContent {
    position: fixed;
    top: 68px;
    left: 0;
    width: min(320px, calc(100vw - 48px));
    height: calc(100dvh - 68px);
    padding: 18px 16px;
    transform: translateX(-105%);
    transition: transform 240ms ease;
    z-index: 1100;
  }

  #navbarSupportedContent.show,
  #navbarSupportedContent.active {
    display: block;
    transform: translateX(0);
  }

  #mainNav .navbar-brand img {
    max-width: 190px;
    max-height: 48px;
  }

  #mainNav .navbar-toggler {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 575px) {
  .ku-chatbot-panel {
    left: 12px;
    right: 12px;
    bottom: 76px;
    width: auto;
    max-width: none;
    height: min(620px, calc(100dvh - 88px));
  }

  .ku-chatbot-header {
    min-height: 64px;
    padding: 10px 12px;
  }

  .ku-chatbot-messages {
    min-height: 120px;
    max-height: none;
  }

  .ku-chatbot-form {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}

/* The shared brand artwork includes its complete KU mark and tagline; preserve the full image. */
.navbar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 4px 8px !important;
}

.footerLinks .logo {
  overflow: visible;
}

@media (max-width: 991px) {
  .navbar-brand img,
  .footerLinks .logo img {
    width: 230px;
    height: 58px;
  }
}

@media (max-width: 575px) {
  .navbar-brand img {
    width: 200px;
    height: 48px;
  }

  .footerLinks .logo img {
    width: 220px;
    height: 52px;
  }
}

/* Service and course hero pages */
.page-hero-dark {
  position: relative;
  min-height: 520px;
  padding: 95px 0;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #060f1a 0%, #092c62 70%, #0e3d78 100%);
  color: #ffffff;
  overflow: hidden;
}

.page-hero-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.16), transparent 22%),
    radial-gradient(circle at 70% 80%, rgba(48, 66, 251, 0.12), transparent 28%);
}

.page-hero-dark .container {
  position: relative;
  z-index: 1;
}

.page-hero-dark .section-eyebrow,
.page-hero-dark .text-info {
  color: #38bdf8 !important;
}

.page-hero-dark .section-title {
  color: #ffffff !important;
}

.page-hero-dark .lead {
  color: #dbe6ff !important;
}

.page-hero-dark .blueBtn {
  display: inline-flex;
  margin-top: 12px;
  padding: 13px 22px;
  border-radius: 999px;
  background: #38bdf8;
  color: #061d42 !important;
  text-decoration: none;
}

.page-hero-dark .blueBtn:hover {
  background: #7dd3fc;
  color: #061d42 !important;
}

.page-hero-dark img {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.why-item {
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(9, 44, 98, 0.08);
}

.why-item h4 {
  color: #092c62;
}

.module-card {
  height: 100%;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 16px;
  background: linear-gradient(145deg, #182b55, #0b1f43);
  box-shadow: 0 16px 42px rgba(4, 10, 18, 0.24);
}

@media (max-width: 991px) {
  .page-hero-dark {
    min-height: auto;
    padding: 72px 0;
  }
}

/* =========================================================
   KnowledgeUpgrad Chatbot — Clean Alignment & No Extra Space
   ========================================================= */
.ku-chatbot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  margin: 0;
  padding: 0;
}

.ku-chatbot-toggle {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #0e4a92;
  color: #fff;
  box-shadow: 0 12px 28px rgba(4, 10, 18, 0.35);
  font-size: 21px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ku-chatbot-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: 380px;
  max-width: calc(100vw - 40px);
  max-height: calc(100dvh - 108px);
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: 0 20px 44px rgba(4, 10, 18, 0.32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ku-chatbot-panel[hidden] {
  display: none !important;
}

.ku-chatbot-header {
  margin: 0 !important;
  padding: 14px 16px;
  min-height: 72px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0b3b75, #0e4a92);
  color: #fff;
}

.ku-chatbot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ku-chatbot-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: #2699fb;
  color: #0b2545;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.ku-chatbot-brand div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ku-chatbot-header strong {
  font-size: 15px;
  line-height: 1.25;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ku-chatbot-online {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.2;
}

.ku-chatbot-online b {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

.ku-chatbot-header button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ku-chatbot-messages {
  flex: 1 1 auto;
  min-height: 180px;
  max-height: 360px;
  padding: 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  overflow-y: auto;
}

.ku-chatbot-bot-row,
.ku-chatbot-time,
.ku-chatbot-suggestions,
.ku-chatbot-welcome {
  display: none;
}

.message-row {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  margin: 0;
}

.message-row.bot {
  align-self: flex-start;
}

.message-row.user {
  align-self: flex-end;
}

.message-bubble {
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.45;
  border-radius: 14px;
  word-wrap: break-word;
}

.message-row.bot .message-bubble {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 4px;
}

.message-row.user .message-bubble {
  background: #0e4a92;
  color: #ffffff;
  border-top-right-radius: 4px;
}

.ku-chatbot-form {
  flex: 0 0 auto;
  padding: 10px 12px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.ku-chatbot-form input {
  flex: 1 1 auto;
  height: 40px;
  min-width: 0;
  padding: 0 12px;
  margin: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 14px;
  outline: none;
}

.ku-chatbot-form input:focus {
  background: #ffffff;
  border-color: #0e4a92;
  box-shadow: 0 0 0 3px rgba(14, 74, 146, 0.12);
}

.ku-chatbot-form button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  margin: 0;
  border: none;
  border-radius: 10px;
  background: #0e4a92;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 575px) {
  .ku-chatbot {
    right: 12px;
    bottom: 12px;
  }

  .ku-chatbot-toggle {
    width: 52px;
    height: 52px;
  }

  .ku-chatbot-panel {
    left: 12px;
    right: 12px;
    bottom: 76px;
    width: auto;
    max-width: none;
    height: min(620px, calc(100dvh - 88px));
  }

  .ku-chatbot-header {
    min-height: 64px;
    padding: 10px 12px;
  }

  .ku-chatbot-messages {
    min-height: 120px;
    max-height: none;
  }

  .ku-chatbot-form {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}

/* Rich-text blog content */
.blog-content {
  font-size: 18px;
  line-height: 1.82;
  color: #334155;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin: 36px 0 14px;
  color: #111827;
  line-height: 1.25;
}

.blog-content h2 { font-size: 34px; }
.blog-content h3 { font-size: 26px; }
.blog-content h4 { font-size: 21px; }

.blog-content p { margin: 0 0 20px; }
.blog-content a { color: #3042fb; text-decoration: underline; }
.blog-content ul,
.blog-content ol { margin: 0 0 22px; padding-left: 24px; }
.blog-content li { margin-bottom: 8px; }

.blog-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid #38bdf8;
  border-radius: 0 12px 12px 0;
  background: #f5f7fb;
  color: #475569;
}

.blog-content img,
.blog-content table,
.blog-content iframe,
.blog-content video {
  max-width: 100%;
  height: auto;
}

.blog-content img { border-radius: 14px; }
.blog-content table { width: 100%; margin: 24px 0; border-collapse: collapse; }
.blog-content th,
.blog-content td { padding: 10px 12px; border: 1px solid #dfe4ea; }

.blog-content pre,
.blog-content code {
  border-radius: 8px;
  background: #111827;
  color: #e2e8f0;
}

.blog-content code { padding: 2px 5px; }
.blog-content pre { padding: 16px; overflow-x: auto; }
.blog-content pre code { padding: 0; }

@media (max-width: 575px) {
  .blog-content { font-size: 16px; }
  .blog-content h2 { font-size: 28px; }
  .blog-content h3 { font-size: 23px; }
}