/**
 * KachiTech premium polish: light off-white canvas, frosted glass, blue · orange · green accents.
 * Load after theme CSS (kachi-boxed / main / color / dashboard-pro).
 */

:root {
  /* Light off-white canvas */
  --kachi-sand-base: #F5F5F3;
  --kachi-sand-mid: #F2F2F0;
  --kachi-sand-highlight: #FAFAF8;
  /* Brand accents — light elegant palette */
  --kachi-blue-900: #5AA3C8;
  --kachi-blue-600: #6BB6DB;
  --kachi-blue-100: #E8F0F5;
  --kachi-orange-600: #6BB6DB;
  --kachi-orange-100: #E8F0F5;
  --kachi-green-600: #5A9E6F;
  --kachi-green-100: #E8F5EB;
  /* Glass */
  --kachi-glass-bg: rgba(255, 255, 255, 0.80);
  --kachi-glass-bg-strong: rgba(255, 255, 255, 0.92);
  --kachi-glass-border: rgba(200, 200, 195, 0.50);
  --kachi-glass-edge: rgba(44, 44, 44, 0.04);
  --kachi-elev-glass: 0 4px 16px rgba(44, 44, 44, 0.04), 0 1px 4px rgba(44, 44, 44, 0.02);
  --kachi-radius-lg: 16px;
  --kachi-radius-xl: 22px;
  --kachi-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --kachi-brand-glow: rgba(91, 141, 184, 0.12);
}

@keyframes kachi-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kachi-soft-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--kachi-brand-glow);
  }
  50% {
    box-shadow: 0 0 0 12px transparent;
  }
}

@keyframes kachi-shimmer-sheen {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* Same shifting mesh as admin workspace (kachi-admin-pro body.kachi-admin-body) */
@keyframes kachiAdminGlassShift {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0% 50%;
  }

  50% {
    background-position: 12% 18%, 82% 12%, 56% 86%, 100% 50%;
  }

  100% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0% 50%;
  }
}

/* Public outer field: subtle drift in sand space (low contrast vs boxed layout) */
@keyframes kachi-sand-field-drift {
  0%,
  100% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0 0;
  }

  50% {
    background-position: 5% 4%, 95% 6%, 48% 96%, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Dashboard: outer field stays transparent (shell provides chrome) --- */
body.kachi-dashboard-body {
  background-color: transparent;
  background-image: none;
  background-attachment: scroll;
}

/* --- Public site: outer field matches light sand boxed layout (balls + soft wash) --- */
body.kachi-frontend-body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  color: #2C2C2C;
  background-color: #FAFAF8;
  background-image:
    radial-gradient(ellipse 130% 90% at 10% -8%, rgba(255, 255, 255, 0.95), transparent 52%),
    radial-gradient(ellipse 120% 85% at 92% 6%, rgba(248, 248, 246, 0.50), transparent 48%),
    radial-gradient(ellipse 90% 70% at 48% 100%, rgba(240, 240, 238, 0.20), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #FAFAF8 45%, #F8F8F6 100%);
  background-size: 120% 120%, 118% 118%, 110% 110%, 100% 100%;
  background-attachment: fixed;
  background-position: 0 0, 100% 0, 50% 100%, 0 0;
  animation: kachi-sand-field-drift 32s ease-in-out infinite;
}

body.kachi-frontend-body .kachi-login-bg-ball {
  opacity: 0.85 !important;
  filter: saturate(1.2) brightness(1.05);
}

body.kachi-frontend-body.kachi-dark-mode {
  color: #E8E8E5;
  background-color: #1A1A18;
  background-image:
    radial-gradient(ellipse 120% 80% at 12% 0%, rgba(91, 141, 184, 0.12), transparent 45%),
    radial-gradient(ellipse 100% 70% at 88% 12%, rgba(26, 26, 24, 0.40), transparent 48%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(44, 44, 44, 0.30), transparent 52%),
    linear-gradient(180deg, #2C2C2A 0%, #1A1A18 55%, #141412 100%);
  background-size: 115% 115%, 112% 112%, 108% 108%, 100% 100%;
  background-attachment: fixed;
  background-position: 0 0, 100% 0, 50% 100%, 0 0;
  animation: kachi-sand-field-drift 36s ease-in-out infinite;
}

body.kachi-frontend-body .site-boxed-layout {
  position: relative;
  z-index: 1;
  animation: kachi-rise 0.6s var(--kachi-ease-out) both;
  /* Very light cream background */
  background: #fefdf8 !important;
  box-shadow:
    var(--kt-shadow, 0 22px 70px rgba(25, 39, 89, 0.14)),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
}

body.kachi-frontend-body.kachi-dark-mode .site-boxed-layout {
  background: var(--kt-shell, #111827);
  background-image: none;
  box-shadow: var(--kt-shadow);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Inner route wrapper: content sits on light sand off-white background */
body.kachi-frontend--inner .kachi-frontend-inner-canvas {
  position: relative;
  z-index: 0;
  background: #fefdf8;
  border-radius: 0;
  box-shadow: none;
}

/* Keep primary nav / dropdowns above inner canvas */
body.kachi-frontend-body .workspace-header {
  z-index: 120;
}

.workspace-menu__dropdown {
  z-index: 2;
}

.workspace-menu__panel {
  z-index: 130;
}

/* Student / instructor: sand only in primary scroll column */
body.kachi-dashboard-body .kachi-dashboard-content {
  position: relative;
  border-radius: var(--kachi-radius-lg);
  background-color: var(--kachi-sand-base);
  background-image: linear-gradient(
    180deg,
    var(--kachi-sand-highlight) 0%,
    var(--kachi-sand-base) 42%,
    var(--kachi-sand-mid) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* ===================== INDEX / HOME (premium glass hero) ===================== */
.course-home {
  background: #fefdf8 !important;
}

.course-home__intro {
  padding: 20px 0 14px;
}

body.kachi-frontend-body .course-home__panel {
  position: relative;
  gap: clamp(16px, 3vw, 28px);
  min-height: 280px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--kachi-radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.30) 100%),
    var(--kachi-hero-cover, url("/assets/images/frontend/works/686da58132b4f1752016257.jpg")) center/cover;
  animation: kachi-rise 0.7s var(--kachi-ease-out) 0.06s both;
}

body.kachi-frontend-body .course-home__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.30) 100%);
  z-index: 0;
  pointer-events: none;
}

body.kachi-frontend-body .course-home__panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 280px;
  height: 280px;
  border: 44px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.course-home__copy h1 {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.course-home__copy p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.course-home__eyebrow {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.course-home__primary {
  background: #ffffff !important;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  color: #1e3a8a !important;
}

.course-home__primary:hover {
  background: #f0f4f8 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.course-home__secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.30) !important;
  color: #ffffff !important;
}

.course-home__secondary:hover {
  background: rgba(255, 255, 255, 0.20) !important;
}

.course-home__metrics div {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.course-home__metrics strong {
  color: #ffffff;
  font-size: 26px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.course-home__metrics span {
  color: rgba(255, 255, 255, 0.80) !important;
  font-weight: 800;
}

.course-slider-section {
  padding: 16px 0 48px;
}

.course-section-head > span {
  background: rgba(255, 255, 255, 0.70) !important;
  border: 1px solid rgba(196, 154, 60, 0.15) !important;
  color: #6BB6DB !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(44, 44, 44, 0.04);
}

.course-section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 12px;
  color: #2C2C2C;
}

.course-section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(160px, 40%);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #6BB6DB, #7FC4E0);
}

.course-section-head p {
  color: #6B6B6B;
  font-size: 15px;
  line-height: 1.6;
}

/* Bootstrap 5 modals: keep dialog above .modal-backdrop (backdrop is on body; nested modals
   were trapped under it — see kachi-bs-modal-fix.js). Stay above compose dock (~10860). */
.modal {
  z-index: 12100 !important;
}

.modal-backdrop {
  z-index: 12050 !important;
}

/* --- All Bootstrap modals: viewport-centered, compact, colorful chrome --- */
body .modal:not(.modal-fullscreen).show {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: max(8px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
}

body .modal:not(.modal-fullscreen) .modal-dialog {
  margin: auto !important;
  position: relative;
  width: min(100%, calc(100vw - 24px));
  flex-shrink: 0;
}

body .modal:not(.modal-fullscreen) .modal-content {
  position: relative;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(135, 206, 235, 0.25);
  box-shadow:
    0 0 0 1px rgba(135, 206, 235, 0.08),
    0 12px 48px rgba(135, 206, 235, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.06);
}

body .modal:not(.modal-fullscreen) .modal-content::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #6BB6DB, #5AA3C8, #48C9B0, #6BB6DB);
  background-size: 200% 100%;
  animation: kachiModalShimmer 4s ease infinite;
}

@keyframes kachiModalShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

body .modal:not(.modal-fullscreen) .modal-header {
  padding: 0.7rem 1rem;
}

body .modal:not(.modal-fullscreen) .modal-header:not([class*="bg-"]) {
  border-bottom: 1px solid rgba(135, 206, 235, 0.20);
  background: linear-gradient(180deg, rgba(230, 243, 250, 0.60) 0%, rgba(255, 255, 255, 0.80) 100%);
}

body .modal:not(.modal-fullscreen) .modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1A5276;
}

body .modal:not(.modal-fullscreen) .modal-body {
  padding: 0.75rem 1.1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #2C3E50;
  background: rgba(255, 255, 255, 0.70);
}

body .modal:not(.modal-fullscreen) .modal-footer {
  padding: 0.6rem 0.9rem;
  gap: 0.5rem;
  border-top: 1px solid rgba(135, 206, 235, 0.20);
  background: rgba(230, 243, 250, 0.40);
  flex-wrap: wrap;
  justify-content: flex-end;
}

body .modal:not(.modal-fullscreen) .modal-footer .btn,
body .modal:not(.modal-fullscreen) .modal-footer a.btn {
  border-radius: 12px;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
}

body.kachi-dark-mode .modal:not(.modal-fullscreen) .modal-content {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(135, 206, 235, 0.25);
  box-shadow:
    0 0 0 1px rgba(135, 206, 235, 0.08),
    0 12px 48px rgba(135, 206, 235, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.06);
}

body.kachi-dark-mode .modal:not(.modal-fullscreen) .modal-header:not([class*="bg-"]) {
  background: linear-gradient(180deg, rgba(230, 243, 250, 0.60) 0%, rgba(255, 255, 255, 0.80) 100%);
  border-bottom-color: rgba(135, 206, 235, 0.20);
}

body.kachi-dark-mode .modal:not(.modal-fullscreen) .modal-title {
  color: #1A5276;
}

body.kachi-dark-mode .modal:not(.modal-fullscreen) .modal-body {
  color: #2C3E50;
  background: rgba(255, 255, 255, 0.70);
}

body.kachi-dark-mode .modal:not(.modal-fullscreen) .modal-footer {
  background: rgba(230, 243, 250, 0.40);
  border-top-color: rgba(135, 206, 235, 0.20);
}

/* Homepage hero slider (4 slides) */
.kachi-hero-slider {
  position: relative;
}

.kachi-hero-slider .slick-list {
  border-radius: var(--kachi-radius-xl);
  overflow: hidden;
}

.kachi-hero-slider .slick-dots {
  bottom: 14px;
  z-index: 4;
}

.kachi-hero-slider .slick-dots li button:before {
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.45;
  font-size: 10px;
}

.kachi-hero-slider .slick-dots li.slick-active button:before {
  opacity: 1;
}

.kachi-hero-slider .kachi-hero-slick-arrow,
.kachi-hero-slider .slick-prev,
.kachi-hero-slider .slick-next {
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.kachi-hero-slider .slick-prev {
  left: 12px;
}

.kachi-hero-slider .slick-next {
  right: 12px;
}

/* What we do / how we operate */
.kachi-home-pillars {
  padding: 8px 0 32px;
}

.kachi-home-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.kachi-home-pillar {
  padding: 22px 20px;
  border-radius: var(--kachi-radius-lg);
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(200, 200, 195, 0.25);
  box-shadow: var(--kachi-elev-glass);
}

.kachi-home-pillar__icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 12px;
    color: #fff;
    background: linear-gradient(135deg, #6BB6DB, #5AA3C8);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.30);
}

/* Colorful cycling icons for pillars */
.kachi-home-pillars__grid .kachi-home-pillar:nth-child(7n+1) .kachi-home-pillar__icon {
    background: linear-gradient(135deg, #6BB6DB, #5AA3C8);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.30);
}
.kachi-home-pillars__grid .kachi-home-pillar:nth-child(7n+2) .kachi-home-pillar__icon {
    background: linear-gradient(135deg, #FF6B6B, #EE5A5A);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.30);
}
.kachi-home-pillars__grid .kachi-home-pillar:nth-child(7n+3) .kachi-home-pillar__icon {
    background: linear-gradient(135deg, #48C9B0, #1ABC9C);
    box-shadow: 0 4px 12px rgba(72, 201, 176, 0.30);
}
.kachi-home-pillars__grid .kachi-home-pillar:nth-child(7n+4) .kachi-home-pillar__icon {
    background: linear-gradient(135deg, #58D68D, #2ECC71);
    box-shadow: 0 4px 12px rgba(88, 214, 141, 0.30);
}
.kachi-home-pillars__grid .kachi-home-pillar:nth-child(7n+5) .kachi-home-pillar__icon {
    background: linear-gradient(135deg, #BB8FCE, #A569BD);
    box-shadow: 0 4px 12px rgba(187, 143, 206, 0.30);
}
.kachi-home-pillars__grid .kachi-home-pillar:nth-child(7n+6) .kachi-home-pillar__icon {
    background: linear-gradient(135deg, #F4D03F, #F5B041);
    box-shadow: 0 4px 12px rgba(244, 208, 63, 0.30);
}
.kachi-home-pillars__grid .kachi-home-pillar:nth-child(7n+7) .kachi-home-pillar__icon {
    background: linear-gradient(135deg, #A29BFE, #8B5CF6);
    box-shadow: 0 4px 12px rgba(162, 155, 254, 0.30);
}

.kachi-home-pillar h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #2C2C2C;
  margin-bottom: 8px;
}

.kachi-home-pillar p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4A4A4A;
}

.kachi-home-operate {
  padding: 8px 0 40px;
}

.kachi-home-operate__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: kachi-step;
}

.kachi-home-operate__steps li {
  position: relative;
  padding: 18px 18px 18px 56px;
  border-radius: var(--kachi-radius-lg);
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(200, 200, 195, 0.25);
  box-shadow: var(--kachi-elev-glass);
}

.kachi-home-operate__steps li::before {
    counter-increment: kachi-step;
    content: counter(kachi-step);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, #6BB6DB, #7FC4E0);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.30);
}

/* Colorful step numbers */
.kachi-home-operate__steps li:nth-child(1)::before {
    background: linear-gradient(135deg, #6BB6DB, #5AA3C8);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.30);
}
.kachi-home-operate__steps li:nth-child(2)::before {
    background: linear-gradient(135deg, #FF6B6B, #EE5A5A);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.30);
}
.kachi-home-operate__steps li:nth-child(3)::before {
    background: linear-gradient(135deg, #48C9B0, #1ABC9C);
    box-shadow: 0 4px 12px rgba(72, 201, 176, 0.30);
}
.kachi-home-operate__steps li:nth-child(4)::before {
    background: linear-gradient(135deg, #F4D03F, #F5B041);
    box-shadow: 0 4px 12px rgba(244, 208, 63, 0.30);
}

.kachi-home-operate__steps strong {
  display: block;
  font-size: 0.95rem;
  color: #2C2C2C;
  margin-bottom: 4px;
}

.kachi-home-operate__steps span {
  font-size: 0.88rem;
  color: #4A4A4A;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .kachi-home-pillars__grid {
    grid-template-columns: 1fr;
  }
}

/* Index pages: dark footer band */
body.kachi-frontend-body .workspace-footer {
  background: #111827 !important;
  color: #f3f4f6 !important;
  border-top: none !important;
}

body.kachi-frontend-body .workspace-footer a,
body.kachi-frontend-body .workspace-footer__text p,
body.kachi-frontend-body .workspace-footer__links a {
  color: #d1d5db !important;
}

body.kachi-frontend-body .workspace-footer a:hover {
  color: #6BB6DB !important;
}

body.kachi-frontend-body .workspace-footer h5,
body.kachi-frontend-body .workspace-footer__newsletter p,
body.kachi-frontend-body .workspace-footer__text {
  color: #ffffff !important;
}

body.kachi-frontend-body .workspace-footer input[type="email"] {
  background: #1f2937 !important;
  border-color: #374151 !important;
  color: #ffffff !important;
}

body.kachi-frontend-body .workspace-footer .workspace-social a {
  color: #ffffff !important;
  background: #1f2937 !important;
}

body.kachi-frontend-body .workspace-footer__bottom {
  color: #9ca3af !important;
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

/* GTranslate in header */
.workspace-language--gtranslate {
  min-height: 38px;
}

.workspace-language--gtranslate .gtranslate_wrapper {
  display: inline-flex;
  align-items: center;
}

.workspace-language--gtranslate .gtranslate_wrapper select {
  max-width: min(200px, 46vw);
  font-size: 12px;
  font-weight: 700;
  border: 0;
  background: transparent;
  color: var(--kt-muted, #64748b);
}

/* Student / instructor enrolled courses horizontal slider */
.kachi-enrolled-slider-wrap {
  position: relative;
  padding: 0 8px 8px;
}

.kachi-enrolled-courses-slider .kachi-enrolled-slide {
  padding: 0 10px;
  height: 100%;
}

.kachi-enrolled-courses-slider .base-card {
  height: 100%;
}

.kachi-enrolled-courses-slider .slick-prev,
.kachi-enrolled-courses-slider .slick-next {
  width: 42px;
  height: 42px;
  z-index: 4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(200, 200, 195, 0.30);
  color: #6BB6DB;
}

.kachi-enrolled-courses-slider .slick-prev:hover,
.kachi-enrolled-courses-slider .slick-next:hover {
  background: #6BB6DB;
  color: #fff;
}

.kachi-enrolled-courses-slider .slick-prev {
  left: -4px;
}

.kachi-enrolled-courses-slider .slick-next {
  right: -4px;
}

.kachi-enrolled-courses-slider .slick-prev::before,
.kachi-enrolled-courses-slider .slick-next::before {
  display: none;
}

@media (max-width: 767.98px) {
  .kachi-enrolled-courses-slider .slick-prev {
    left: 2px;
  }

  .kachi-enrolled-courses-slider .slick-next {
    right: 2px;
  }
}

.kachi-course-slider .kachi-course-slide {
  padding: 0 10px;
}

.kachi-course-card {
  border-radius: var(--kachi-radius-lg);
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(200, 200, 195, 0.25);
  box-shadow: var(--kachi-elev-glass);
  transition: transform 0.28s var(--kachi-ease-out), box-shadow 0.28s ease;
}

.kachi-course-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 12px 32px rgba(44, 44, 44, 0.06),
    0 0 0 1px rgba(91, 141, 184, 0.08);
}

/* ===================== STUDENT / INSTRUCTOR DASHBOARD ===================== */
.kachi-dashboard-main .dashboard-body {
  background: transparent;
}

.kachi-dashboard-main.dashboard-container-wrap {
  overflow: visible !important;
}

body.kachi-dashboard-body .kachi-dashboard-header.dashboard-header {
  position: relative;
  z-index: 80;
}

body.kachi-dashboard-body .kachi-dashboard-header .dropdown-menu {
  z-index: 2000 !important;
}

.kachi-dashboard-summary {
  position: relative;
  border-radius: var(--kachi-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(91, 141, 184, 0.12);
  background: linear-gradient(135deg, #FFFFFF, #F8F8F6);
  box-shadow: var(--kachi-elev-glass);
  animation: kachi-rise 0.55s var(--kachi-ease-out) both !important;
}

.kachi-dashboard-summary::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  height: 3px !important;
  width: 100% !important;
  background: linear-gradient(90deg, #6BB6DB, #7FC4E0) !important;
  opacity: 1 !important;
  animation: none !important;
  pointer-events: none;
}

.kachi-dashboard-summary span {
  color: #5AA3C8 !important;
  background: linear-gradient(135deg, #E8F0F5, rgba(255, 255, 255, 0.9)) !important;
  border: 1px solid rgba(91, 141, 184, 0.12) !important;
}

.kachi-dashboard-summary h1 {
  color: #2C2C2C !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
}

.kachi-dashboard-summary p {
  color: #6B6B6B !important;
  font-weight: 500;
}

.kachi-dashboard-summary a {
  color: #fff !important;
  background: linear-gradient(135deg, #6BB6DB, #7FC4E0) !important;
  border: 1px solid rgba(91, 141, 184, 0.20) !important;
  box-shadow: 0 4px 12px rgba(91, 141, 184, 0.15);
}

.kachi-dashboard-summary a:hover {
  filter: brightness(1.05);
}

.kachi-dashboard-shell .dash-box {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 246, 0.90)) !important;
  border: 1px solid rgba(200, 200, 195, 0.30) !important;
  box-shadow: var(--kachi-elev-glass) !important;
}

.kachi-dashboard-shell .dash-box::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: auto 12px 12px 12px !important;
  height: 2px !important;
  width: auto !important;
  border-radius: 99px !important;
  background: linear-gradient(90deg, transparent, rgba(91, 141, 184, 0.15), rgba(196, 154, 60, 0.15), transparent) !important;
  opacity: 1 !important;
  animation: none !important;
  pointer-events: none;
}

.kachi-dashboard-shell .dash-box h2 {
  color: #2C2C2C !important;
  font-weight: 900 !important;
}

.kachi-dashboard-shell .dash-box h2 span {
  background: linear-gradient(90deg, #6BB6DB, #7FC4E0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.kachi-dash-notice {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #4A4A4A;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(200, 200, 195, 0.30);
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-weight: 600;
  max-width: min(36rem, 100%);
  box-shadow: 0 2px 8px rgba(44, 44, 44, 0.03);
}

/* CMS strip above dashboards (student / instructor): compact, light-aligned */
.kachi-dashboard-shell .discover-box {
  padding: 9px 14px !important;
  border-radius: var(--kachi-radius-lg) !important;
  background: rgba(255, 255, 255, 0.70) !important;
  border: 1px solid rgba(200, 200, 195, 0.25) !important;
  box-shadow: 0 2px 8px rgba(44, 44, 44, 0.03) !important;
}

.kachi-dashboard-shell .discover-box .title {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin-bottom: 0 !important;
  color: #2C2C2C !important;
}

.kachi-dashboard-shell .discover-box .btn {
  font-size: 0.72rem;
  padding: 0.32rem 0.7rem;
}

/* Student: missing attendance — quiet inline strip */
.kachi-attendance-nudge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 14px;
  border-radius: var(--kachi-radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(248, 248, 246, 0.90));
  border: 1px solid rgba(200, 200, 195, 0.25);
  box-shadow: 0 2px 8px rgba(44, 44, 44, 0.03);
}

.kachi-attendance-nudge__label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B6B6B;
}

.kachi-attendance-nudge__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2C2C2C;
}

.kachi-attendance-nudge__btn {
  flex-shrink: 0;
}

.kachi-dashboard-shell .sidebar-menu {
  background:
    radial-gradient(ellipse 120% 80% at 10% 0%, rgba(91, 141, 184, 0.06), transparent 42%),
    linear-gradient(168deg, #FAFAF8 0%, #F8F8F6 28%, #F0F0EE 58%, #E8E8E5 100%) !important;
  background-size: 140% 140%, 100% 100% !important;
  animation: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(200, 200, 195, 0.40) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.60),
    0 8px 24px rgba(44, 44, 44, 0.06) !important;
}

.kachi-dashboard-shell .sidebar-menu-list__link {
  color: #4A4A4A !important;
}

.kachi-dashboard-shell .sidebar-menu-list__link:hover,
.kachi-dashboard-shell .sidebar-menu-list__link.active,
.kachi-dashboard-shell .sidebar-menu-list__item.has-dropdown.active > a {
  color: #FFFFFF !important;
  background: linear-gradient(90deg, #6BB6DB, #7FC4E0) !important;
  border-left: 3px solid #6BB6DB !important;
  box-shadow: 0 2px 8px rgba(91, 141, 184, 0.15) !important;
  border-color: transparent !important;
}

/* Stat cards: equal column stretch */
.kachi-dashboard-shell .kachi-dashboard-content .row[class*="gy-"] > [class*="col-"]:not(.col-12) {
  display: flex;
}

.kachi-dashboard-shell .kachi-dashboard-content .row[class*="gy-"] > [class*="col-"]:not(.col-12) > a.d-block {
  display: flex !important;
  width: 100%;
  height: 100%;
}

.kachi-dashboard-shell .kachi-dashboard-content .row[class*="gy-"] > [class*="col-"]:not(.col-12) .dashboard-card {
  flex: 1;
  width: 100%;
  min-height: 132px;
  display: flex;
  flex-direction: column;
}

.kachi-dashboard-shell .kachi-dashboard-content .row[class*="gy-"] > [class*="col-"]:not(.col-12) .dashboard-card__content {
  flex: 1;
}

.kachi-dashboard-content .card,
.kachi-dashboard-content .tbl-wrap,
.kachi-dashboard-content .dash-box {
  border-radius: var(--kachi-radius-lg) !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.kachi-dashboard-content .card {
  background: rgba(255, 255, 255, 0.90) !important;
  border: 1px solid rgba(200, 200, 195, 0.25) !important;
  box-shadow: var(--kachi-elev-glass) !important;
}

.kachi-dashboard-content .card:hover {
  box-shadow:
    0 8px 24px rgba(44, 44, 44, 0.06),
    0 0 0 1px rgba(91, 141, 184, 0.06) !important;
}

.dashboard-card {
  transition: transform 0.22s var(--kachi-ease-out), box-shadow 0.22s ease;
  border-left: 4px solid transparent !important;
}

.dashboard-card:hover {
  transform: translateY(-3px);
}

/* ============================================================
   Colorful Welcome Box (dash-box)
   ============================================================ */

body.kachi-dashboard-body .kachi-dashboard-shell .dash-box,
body.kachi-dashboard-body .kachi-dashboard-content .dash-box {
  position: relative;
  overflow: hidden;
  border: none !important;
  background: linear-gradient(135deg, #ff6b6b 0%, #feca57 20%, #ff9ff3 40%, #54a0ff 60%, #5f27cd 80%, #00d2d3 100%) !important;
  background-image: linear-gradient(135deg, #ff6b6b 0%, #feca57 20%, #ff9ff3 40%, #54a0ff 60%, #5f27cd 80%, #00d2d3 100%) !important;
  background-size: 200% 200% !important;
  animation: kachiWelcomeGradient 8s ease infinite !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(255, 107, 107, 0.3), 0 8px 24px rgba(95, 39, 205, 0.2) !important;
  padding: 28px 32px !important;
  color: #ffffff !important;
}

@keyframes kachiWelcomeGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

body.kachi-dashboard-body .kachi-dashboard-shell .dash-box::before,
body.kachi-dashboard-body .kachi-dashboard-content .dash-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

body.kachi-dashboard-body .kachi-dashboard-shell .dash-box::after,
body.kachi-dashboard-body .kachi-dashboard-content .dash-box::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

body.kachi-dashboard-body .kachi-dashboard-shell .dash-box > *,
body.kachi-dashboard-body .kachi-dashboard-content .dash-box > * {
  position: relative;
  z-index: 1;
}

body.kachi-dashboard-body .kachi-dashboard-shell .dash-box h2,
body.kachi-dashboard-body .kachi-dashboard-content .dash-box h2 {
  color: #ffffff !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.kachi-dashboard-body .kachi-dashboard-shell .dash-box h2 span,
body.kachi-dashboard-body .kachi-dashboard-content .dash-box h2 span {
  display: inline-block;
  background: linear-gradient(90deg, #fff700, #ffaa00, #ff6600) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 900;
  margin-left: 8px;
  text-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

body.kachi-dashboard-body .kachi-dashboard-shell .dash-box .kachi-dash-notice,
body.kachi-dashboard-body .kachi-dashboard-content .dash-box .kachi-dash-notice {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.82rem;
}

body.kachi-dashboard-body .kachi-dashboard-shell .dash-box .btn--base,
body.kachi-dashboard-body .kachi-dashboard-content .dash-box .btn--base {
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  font-weight: 700;
}

body.kachi-dashboard-body .kachi-dashboard-shell .dash-box .btn--base:hover,
body.kachi-dashboard-body .kachi-dashboard-content .dash-box .btn--base:hover {
  background: rgba(255, 255, 255, 0.45) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

body.kachi-dashboard-body .kachi-dashboard-shell .dash-box .btn-outline--base,
body.kachi-dashboard-body .kachi-dashboard-content .dash-box .btn-outline--base {
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  font-weight: 700;
}

body.kachi-dashboard-body .kachi-dashboard-shell .dash-box .btn-outline--base:hover,
body.kachi-dashboard-body .kachi-dashboard-content .dash-box .btn-outline--base:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
}

body.kachi-dashboard-body .kachi-dashboard-shell .dash-box .dash-thumb-top img,
body.kachi-dashboard-body .kachi-dashboard-content .dash-box .dash-thumb-top img {
  border: 4px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Colorful dashboard card accents */
body.kachi-dashboard-body .col-sm-6:nth-child(1) .dashboard-card,
body.kachi-dashboard-body .col-xxl-3:nth-child(1) .dashboard-card,
body.kachi-dashboard-body .col-xl-6:nth-child(1) .dashboard-card {
  border-left-color: #6366f1 !important;
}

body.kachi-dashboard-body .col-sm-6:nth-child(2) .dashboard-card,
body.kachi-dashboard-body .col-xxl-3:nth-child(2) .dashboard-card,
body.kachi-dashboard-body .col-xl-6:nth-child(2) .dashboard-card {
  border-left-color: #f59e0b !important;
}

body.kachi-dashboard-body .col-sm-6:nth-child(3) .dashboard-card,
body.kachi-dashboard-body .col-xxl-3:nth-child(3) .dashboard-card,
body.kachi-dashboard-body .col-lg-6:nth-child(3) .dashboard-card {
  border-left-color: #06b6d4 !important;
}

body.kachi-dashboard-body .col-sm-6:nth-child(4) .dashboard-card,
body.kachi-dashboard-body .col-xxl-3:nth-child(4) .dashboard-card,
body.kachi-dashboard-body .col-lg-6:nth-child(4) .dashboard-card {
  border-left-color: #ec4899 !important;
}

/* Colorful icon backgrounds */
body.kachi-dashboard-body .col-sm-6:nth-child(1) .dashboard-card__icon,
body.kachi-dashboard-body .col-xxl-3:nth-child(1) .dashboard-card__icon {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
}

body.kachi-dashboard-body .col-sm-6:nth-child(2) .dashboard-card__icon,
body.kachi-dashboard-body .col-xxl-3:nth-child(2) .dashboard-card__icon {
  background: linear-gradient(135deg, #f59e0b, #f97316) !important;
}

body.kachi-dashboard-body .col-sm-6:nth-child(3) .dashboard-card__icon,
body.kachi-dashboard-body .col-xxl-3:nth-child(3) .dashboard-card__icon {
  background: linear-gradient(135deg, #06b6d4, #0ea5e9) !important;
}

body.kachi-dashboard-body .col-sm-6:nth-child(4) .dashboard-card__icon,
body.kachi-dashboard-body .col-xxl-3:nth-child(4) .dashboard-card__icon {
  background: linear-gradient(135deg, #ec4899, #f43f5e) !important;
}

/* Colorful stat amounts */
body.kachi-dashboard-body .col-sm-6:nth-child(1) .dashboard-card__amount,
body.kachi-dashboard-body .col-xxl-3:nth-child(1) .dashboard-card__amount {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

body.kachi-dashboard-body .col-sm-6:nth-child(2) .dashboard-card__amount,
body.kachi-dashboard-body .col-xxl-3:nth-child(2) .dashboard-card__amount {
  background: linear-gradient(90deg, #f59e0b, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

body.kachi-dashboard-body .col-sm-6:nth-child(3) .dashboard-card__amount,
body.kachi-dashboard-body .col-xxl-3:nth-child(3) .dashboard-card__amount {
  background: linear-gradient(90deg, #06b6d4, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

body.kachi-dashboard-body .col-sm-6:nth-child(4) .dashboard-card__amount,
body.kachi-dashboard-body .col-xxl-3:nth-child(4) .dashboard-card__amount {
  background: linear-gradient(90deg, #ec4899, #f43f5e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* --- Compose dock --- */
.kachi-compose-dock {
  position: fixed;
  z-index: 10850;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(100%, 420px);
  font-family: inherit;
  pointer-events: none;
}

.kachi-compose-dock.is-active {
  pointer-events: auto;
}

.kachi-compose-dock__backdrop {
  position: fixed;
  inset: 0;
  z-index: 10840;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.kachi-compose-dock.is-expanded .kachi-compose-dock__backdrop {
  opacity: 1;
  visibility: visible;
}

.kachi-compose-dock.is-minimized .kachi-compose-dock__backdrop {
  opacity: 0;
  visibility: hidden;
}

.kachi-compose-dock__shell {
  position: relative;
  z-index: 10860;
  border-radius: 16px;
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.3s var(--kachi-ease-out), opacity 0.3s ease, max-height 0.3s ease;
  max-height: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 246, 0.94)) !important;
  border: 1px solid rgba(200, 200, 195, 0.30) !important;
  box-shadow:
    0 0 0 1px rgba(91, 141, 184, 0.08),
    0 12px 32px rgba(44, 44, 44, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.60) !important;
  color: #2C2C2C;
}

.kachi-compose-dock.is-active .kachi-compose-dock__shell {
  transform: translateY(0);
  opacity: 1;
}

.kachi-compose-dock.is-expanded .kachi-compose-dock__shell {
  max-height: 520px;
}

.kachi-compose-dock.is-minimized .kachi-compose-dock__shell {
  max-height: 52px;
}

.kachi-compose-dock__minibar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 0.82rem;
}

.kachi-compose-dock.is-minimized .kachi-compose-dock__minibar {
  display: flex;
}

.kachi-compose-dock.is-minimized .kachi-compose-dock__panel {
  display: none;
}

.kachi-compose-dock.is-expanded .kachi-compose-dock__minibar {
  display: none;
}

.kachi-compose-dock.is-expanded .kachi-compose-dock__panel {
  display: flex;
  flex-direction: column;
}

.kachi-compose-dock__panel {
  display: none;
  max-height: min(70vh, 440px);
}

.kachi-compose-dock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(200, 200, 195, 0.25);
  background: rgba(248, 248, 246, 0.50);
}

.kachi-compose-dock__head h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #2C2C2C;
}

.kachi-compose-dock__head-actions {
  display: flex;
  gap: 6px;
}

.kachi-compose-dock__icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(200, 200, 195, 0.25);
  background: rgba(255, 255, 255, 0.50);
  color: #6BB6DB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.kachi-compose-dock__icon-btn:hover {
  background: rgba(91, 141, 184, 0.10);
}

.kachi-compose-dock__body {
  padding: 12px 14px 14px;
  overflow-y: auto;
}

.kachi-compose-dock__body textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(200, 200, 195, 0.30);
  background: rgba(255, 255, 255, 0.60);
  color: #2C2C2C;
  padding: 10px 12px;
  font-size: 0.9rem;
  min-height: 120px;
  resize: vertical;
}

.kachi-compose-dock__body textarea::placeholder {
  color: rgba(44, 44, 44, 0.35);
}

.kachi-compose-dock__body label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B6B6B;
}

.kachi-compose-dock__body input[type="file"] {
  font-size: 0.8rem;
  color: #4A4A4A;
}

.kachi-compose-dock__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(200, 200, 195, 0.20);
}

.kachi-compose-dock__foot .btn {
  border-radius: 10px;
  font-weight: 700;
}

.kachi-compose-dock--pulse .kachi-compose-dock__shell {
  animation: kachi-soft-pulse 1.4s ease-out 2;
}

.kachi-compose-dock__badge {
  background: linear-gradient(135deg, rgba(196, 154, 60, 0.12), rgba(196, 154, 60, 0.08)) !important;
  border-color: rgba(196, 154, 60, 0.20) !important;
  color: #6BB6DB !important;
}

.kachi-msgs-index .card {
  border-radius: var(--kachi-radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(200, 200, 195, 0.25);
  box-shadow: var(--kachi-elev-glass);
}

.kachi-msgs-index .table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: #6B6B6B;
}

.kachi-msgs-index .tbl-wrap {
  padding-bottom: 0.25rem;
}

/* ===================== Responsive foundation (mobile → desktop) ===================== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.kachi-frontend-body,
body.kachi-dashboard-body,
body.kachi-admin-body {
  overflow-x: hidden;
}

body.kachi-frontend-body .site-boxed-layout,
body.kachi-dashboard-body .kachi-dashboard-shell.dashboard,
body.kachi-admin-body .kachi-admin-shell {
  box-sizing: border-box;
}

img,
video,
canvas {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

body.kachi-frontend-body .site-boxed-layout .container,
body.kachi-frontend-body .site-boxed-layout .container-fluid {
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}

body.kachi-frontend--inner .kachi-frontend-inner-canvas {
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

.course-home__actions {
  flex-wrap: wrap;
}

.course-home__copy h1 {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.workspace-nav {
  flex-wrap: wrap;
  row-gap: 8px;
}

.workspace-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 8px;
}

.workspace-mobile-drawer .offcanvas-body {
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.kachi-dashboard-content .table,
.kachi-dashboard-content .table td,
.kachi-dashboard-content .table th,
body.kachi-admin-body .table,
body.kachi-admin-body .table td,
body.kachi-admin-body .table th {
  word-break: break-word;
}

.kachi-dashboard-header .navigator-text {
  min-width: 0;
  flex: 1;
}

.kachi-dashboard-header .navigator-text h6 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(100%, 56vw);
}

@media (max-width: 575.98px) {
  .kachi-dashboard-header .navigator-text h6 {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
  }

  .kachi-dashboard-shell .dashboard-card__amount {
    font-size: clamp(1.15rem, 5vw, 1.65rem) !important;
  }

  .btn,
  .btn--sm {
    min-height: 40px;
  }
}

@media (max-width: 991.98px) {
  body.kachi-frontend-body .site-boxed-layout .container {
    max-width: 100%;
  }

  .course-home__panel {
    gap: 18px;
  }
}

@media (max-width: 767.98px) {
  body.kachi-frontend-body .course-home__panel {
    min-height: 0;
  }

  .workspace-language select,
  .workspace-language .gtranslate_wrapper select {
    max-width: min(160px, 42vw);
  }
}

@media (max-width: 374.98px) {
  .workspace-brand img {
    max-width: 112px !important;
  }

  .site-boxed-layout .container {
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
  }
}

/* ============================================================
   DARK GREY FOOTER THEME
   ============================================================ */

.workspace-footer,
.kachi-dashboard-footer {
  background: #111827 !important;
  color: #f3f4f6 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.workspace-footer h5,
.workspace-footer h4,
.workspace-footer h3,
.workspace-footer h2,
.kachi-dashboard-footer h5 {
  color: #ffffff !important;
}

.workspace-footer p,
.workspace-footer span,
.workspace-footer a,
.workspace-footer li,
.kachi-dashboard-footer p,
.kachi-dashboard-footer span,
.kachi-dashboard-footer a {
  color: #d1d5db !important;
}

.workspace-footer a:hover,
.kachi-dashboard-footer a:hover {
  color: #6BB6DB !important;
}

.workspace-footer input,
.workspace-footer .form-control {
  background: #1f2937 !important;
  border-color: #374151 !important;
  color: #ffffff !important;
}

.workspace-footer input::placeholder {
  color: #9ca3af !important;
}

.workspace-footer .workspace-social a {
  background: #1f2937 !important;
  color: #ffffff !important;
}

.workspace-footer .workspace-social a:hover {
  background: #6BB6DB !important;
  color: #ffffff !important;
}

.workspace-footer__bottom {
  border-top-color: #374151 !important;
}

/* Dashboard Footer Specifics */
.kachi-dashboard-footer {
  background: linear-gradient(135deg, #111827 0%, #0f172a 100%) !important;
  padding: 40px 0;
}

.kachi-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.kachi-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kachi-footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.kachi-footer-brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: 0.5px;
}

.kachi-footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.kachi-footer-link {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
}

.kachi-footer-link:hover {
  color: #6BB6DB !important;
}

.kachi-footer-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #6BB6DB;
  transition: width 0.2s ease;
}

.kachi-footer-link:hover::after {
  width: 100%;
}

.kachi-footer-copyright span {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .kachi-footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .kachi-footer-brand {
    justify-content: center;
  }
  
  .kachi-footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ============================================================
   BREADCRUMB HEADER IMAGE FIX
   ============================================================ */

.kachi-page-header {
  position: relative;
  padding: 60px 0;
  background-color: #1a1a2e;
}

.kachi-page-header__panel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.kachi-page-header__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--kachi-page-header-cover);
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}

.kachi-page-header__body {
  position: relative;
  z-index: 1;
  padding: 40px;
  color: #fff;
}

.kachi-page-header__title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff !important;
  margin: 0 0 12px 0;
}

.kachi-page-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6BB6DB !important;
  margin-bottom: 12px;
}

.kachi-page-header__lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85) !important;
  margin: 0 0 16px 0;
}

.kachi-page-header__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.kachi-page-header__crumb a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
}

.kachi-page-header__crumb a:hover {
  color: #6BB6DB !important;
}

.kachi-page-header__crumb-sep {
  color: rgba(255, 255, 255, 0.4);
}

.kachi-page-header__crumb span:last-child {
  color: #fff !important;
  font-weight: 600;
}

/* ============================================================
   Student & Instructor Dashboard Hero Slider
   Shared styles matching admin dashboard hero slider
   ============================================================ */

.kachi-user-hero-slider,
.kachi-instructor-hero-slider {
    position: relative;
    margin-bottom: 24px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.kachi-hero-slider-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.kachi-hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.kachi-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.kachi-hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.kachi-hero-slide-bg {
    position: absolute;
    inset: 0;
}

.kachi-hero-slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

.kachi-hero-slide-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 50px;
    color: #fff !important;
}

.kachi-hero-slide-content * {
    color: #fff !important;
}

.kachi-hero-slide-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.kachi-hero-slide-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #fff !important;
    line-height: 1.2;
}

.kachi-hero-slide-desc {
    font-size: 0.88rem;
    margin: 0 0 14px 0;
    color: rgba(255, 255, 255, 0.95) !important;
    max-width: 500px;
    line-height: 1.4;
}

.kachi-hero-slide-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.kachi-hero-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.kachi-hero-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #fff !important;
}

.kachi-hero-action-btn i {
    font-size: 1.1rem;
}

.kachi-hero-slide-stat {
    display: flex;
    flex-direction: column;
}

.kachi-hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff !important;
    line-height: 1;
}

.kachi-hero-stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-top: 4px;
}

/* Slider Navigation */
.kachi-hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.kachi-hero-slider-nav:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.05);
}

.kachi-hero-slider-prev {
    left: 16px;
}

.kachi-hero-slider-next {
    right: 16px;
}

/* Slider Dots */
.kachi-hero-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.kachi-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kachi-hero-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.kachi-hero-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 991px) {
    .kachi-hero-slider-wrapper {
        height: 240px;
    }
    
    .kachi-hero-slide-content {
        padding: 20px 36px;
    }
    
    .kachi-hero-slide-title {
        font-size: 1.3rem;
    }
    
    .kachi-hero-slide-desc {
        font-size: 0.82rem;
    }
}

@media (max-width: 768px) {
    .kachi-hero-slider-wrapper {
        height: 260px;
    }
    
    .kachi-hero-slide-content {
        padding: 18px 28px;
    }
    
    .kachi-hero-slide-actions {
        flex-direction: column;
    }
    
    .kachi-hero-action-btn {
        justify-content: center;
    }
    
    .kachi-hero-slider-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .kachi-hero-slider-wrapper {
        height: 300px;
    }
    
    .kachi-hero-slide-content {
        padding: 16px 20px;
    }
    
    .kachi-hero-slide-title {
        font-size: 1.2rem;
    }
    
    .kachi-hero-slide-desc {
        font-size: 0.78rem;
    }
    
    .kachi-hero-stat-number {
        font-size: 2rem;
    }
}

/* ============================================================
   Shared Hero Slider for Student & Instructor Dashboards
   (Same concept as admin dashboard hero slider)
   ============================================================ */

.kachi-user-hero-slider,
.kachi-instructor-hero-slider {
    position: relative;
    margin: 0 12px 24px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.kachi-hero-slider-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.kachi-hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.kachi-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.kachi-hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.kachi-hero-slide-bg {
    position: absolute;
    inset: 0;
}

.kachi-hero-slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

.kachi-hero-slide-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 50px;
    color: #fff !important;
}

.kachi-hero-slide-content * {
    color: #fff !important;
}

.kachi-hero-slide-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.kachi-hero-slide-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #fff !important;
    line-height: 1.2;
}

.kachi-hero-slide-desc {
    font-size: 0.88rem;
    margin: 0 0 14px 0;
    color: rgba(255, 255, 255, 0.95) !important;
    max-width: 500px;
    line-height: 1.4;
}

.kachi-hero-slide-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.kachi-hero-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.kachi-hero-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #fff !important;
}

.kachi-hero-action-btn i {
    font-size: 1.1rem;
}

.kachi-hero-slide-stat {
    display: flex;
    flex-direction: column;
}

.kachi-hero-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff !important;
    line-height: 1;
}

.kachi-hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-top: 4px;
}

/* Slider Navigation */
.kachi-hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.kachi-hero-slider-nav:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.1);
}

.kachi-hero-slider-prev {
    left: 16px;
}

.kachi-hero-slider-next {
    right: 16px;
}

/* Slider Dots */
.kachi-hero-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.kachi-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kachi-hero-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.kachi-hero-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 991px) {
    .kachi-user-hero-slider,
    .kachi-instructor-hero-slider {
        margin: 0 12px 20px;
    }

    .kachi-hero-slider-wrapper {
        height: 280px;
    }

    .kachi-hero-slide-content {
        padding: 20px 36px;
    }

    .kachi-hero-slide-title {
        font-size: 1.3rem;
    }

    .kachi-hero-slide-desc {
        font-size: 0.82rem;
    }

    .kachi-hero-stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .kachi-user-hero-slider,
    .kachi-instructor-hero-slider {
        margin: 0 8px 16px;
        border-radius: 16px;
    }

    .kachi-hero-slider-wrapper {
        height: 300px;
    }

    .kachi-hero-slide-content {
        padding: 18px 28px;
    }

    .kachi-hero-slide-actions {
        flex-direction: column;
    }

    .kachi-hero-action-btn {
        justify-content: center;
    }

    .kachi-hero-slider-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .kachi-hero-slider-wrapper {
        height: 340px;
    }

    .kachi-hero-slide-content {
        padding: 16px 20px;
    }

    .kachi-hero-slide-title {
        font-size: 1.2rem;
    }

    .kachi-hero-slide-desc {
        font-size: 0.78rem;
    }

    .kachi-hero-stat-number {
        font-size: 1.8rem;
    }
}
