:root {
  --primary: #00d3ff;
  --accent: #22c55e;
  --steel: #6c757d;
  --surface: #0a1220;
  --panel: #121a27;
  --border: #213041;
  --text: #cbd5e1;
  --muted: #94a3b8;
  --nav: #0a1220;
  --glow-cyan: #00e7ff;
  --glow-blue: #1a56ff;

  --bs-primary: var(--primary);
  --bs-primary-rgb: 0, 211, 255;
  --bs-secondary: var(--steel);
  --bs-dark: var(--nav);
  --bs-link-color: var(--primary);
  --bs-link-hover-color: #7deaff;
  --bs-border-color: var(--border);
}
html .site-body,
html body {
  font-family: "Sarabun", "Noto Sans SC", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
.text-primary { color: var(--primary) !important; }
.text-blue { color: var(--glow-blue) !important; }
.bg-dark { background-color: var(--nav) !important; }
.btn-outline-warning { color: var(--accent); border-color: var(--accent); }
.btn-outline-warning:hover { background-color: var(--accent); color: #fff; }
.btn-outline-info { color: var(--steel); border-color: var(--steel); }
.btn-outline-info:hover { background-color: var(--steel); color: #fff; }

.btn-login {
  color: #eaf7ff;
  border-color: rgba(255,255,255,0.32);
  background: linear-gradient(180deg, rgba(0,217,255,0.18), rgba(0,217,255,0.12));
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-login:hover,
.btn-login:focus {
  color: #fff;
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(0,231,255,0.26), rgba(0,231,255,0.16));
  box-shadow: 0 0 0 .12rem rgba(0,231,255,.25);
}
.btn-login:active {
  color: #fff;
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(0,231,255,0.36), rgba(0,231,255,0.24));
}

.btn-register {
  white-space: nowrap;
}

.site-body {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(0,217,255,.12), rgba(0,217,255,0) 38%),
              radial-gradient(1200px 600px at 0% 0%, #0e1b2d 0%, var(--surface) 45%) fixed;
  color: var(--text);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-body::after {
  content: "";
  position: fixed;
  left: 0;
  top: -200px;
  width: 100%;
  height: 200vh;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(99,102,241,0.8), rgba(168,85,247,0.6), rgba(0,0,0,0)) 10% 0/2px 120px no-repeat,
    linear-gradient(to top, rgba(99,102,241,0.8), rgba(168,85,247,0.6), rgba(0,0,0,0)) 25% 0/2px 160px no-repeat,
    linear-gradient(to top, rgba(99,102,241,0.8), rgba(168,85,247,0.6), rgba(0,0,0,0)) 40% 0/2px 90px no-repeat,
    linear-gradient(to top, rgba(99,102,241,0.8), rgba(168,85,247,0.6), rgba(0,0,0,0)) 55% 0/2px 140px no-repeat,
    linear-gradient(to top, rgba(99,102,241,0.8), rgba(168,85,247,0.6), rgba(0,0,0,0)) 70% 0/2px 110px no-repeat,
    linear-gradient(to top, rgba(99,102,241,0.8), rgba(168,85,247,0.6), rgba(0,0,0,0)) 85% 0/2px 180px no-repeat,
    linear-gradient(to top, rgba(99,102,241,0.8), rgba(168,85,247,0.6), rgba(0,0,0,0)) 95% 0/2px 150px no-repeat;
  animation: beams-fall 16s linear infinite;
  opacity: .35;
}

.navbar {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  position: relative;
  z-index: 1040;
}
.navbar-brand {
  color: #fff;
  letter-spacing: .6px;
  font-weight: 700;
  background: linear-gradient(90deg, #f5d78b, #ffd36f 40%, #f5b64f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
}
.navbar-brand .brand-logo-img {
  height: 32px;
  width: auto;
  display: block;
}
@media (max-width: 1199.98px) {
  .navbar .container-xl {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: .75rem;
    justify-content: space-between;
  }
  .navbar-brand {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin-left: .25rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 64px);
    font-size: 1.05rem;
  }
  .navbar-toggler {
    margin-left: auto;
    position: relative;
    z-index: 1;
    align-self: center;
  }
  #navbarsExample {
    width: 100%;
    margin-top: .25rem;
  }
}

@media (max-width: 360px) {
  .navbar-brand {
    font-size: .95rem;
  }
}
@media (min-width: 1200px) {
  .navbar .container-xl {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .navbar-brand .brand-logo-img {
    height: 40px;
  }
  .navbar-brand {
    font-size: 1.35rem;
    margin-left: 10%;
  }
  .navbar .navbar-nav.me-auto {
    flex-wrap: wrap;
    width: 100%;
    row-gap: .25rem;
    justify-content: center;
    column-gap: 1.75rem;
  }
  .navbar .navbar-nav.me-auto .nav-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.nav-link {
  position: relative;
  color: #cdd7e3 !important;
  padding-inline: .75rem;
  padding-block: .4rem;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .03em;
}
.nav-link:hover {
  color: #ffffff !important;
}
.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7e08a, #ffd36f 40%, #f5b64f);
  opacity: 0;
  transition: width .22s ease-out, opacity .22s ease-out;
}
.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  width: calc(100% - 1.2rem);
  opacity: 1;
}
.navbar-nav .nav-link.active {
  color: #ffffff !important;
  background: radial-gradient(circle at top, rgba(248, 250, 252, .12), transparent 55%);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, .45);
}

.dropdown-menu {
  background: rgba(15,23,42,.98);
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.35);
  color: #e5e7eb;
  padding: .4rem 0;
  box-shadow: 0 18px 45px rgba(15,23,42,.9);
  z-index: 1060;
  transform-origin: top center;
  transform: translateY(10px) scale(.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease-out, transform .18s ease-out;
}
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.navbar .dropdown-menu {
  background:
    radial-gradient(circle at top, rgba(248,250,252,.12), transparent 55%),
    rgba(15,23,42,.98);
}
.dropdown-menu .form-label {
  color: #9ca3af;
}
.dropdown-menu .form-control {
  background: rgba(15,23,42,.9);
  border: 1px solid rgba(148,163,184,.6);
  color: #e5e7eb;
}
.dropdown-menu .form-control::placeholder {
  color: #6b7280;
}
.dropdown-menu .dropdown-item,
.dropdown-menu .dropdown-header {
  text-align: center;
  padding-inline: 1.25rem;
}
.dropdown-menu .dropdown-item {
  font-size: .9rem;
  color: #e5e7eb;
  letter-spacing: .01em;
  padding-block: .45rem;
  position: relative;
  transition: background-color .18s ease-out, color .18s ease-out, padding-left .18s ease-out;
}
.dropdown-menu .dropdown-item::before {
  content: "";
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: transparent;
  opacity: 0;
  transition: background-color .18s ease-out, transform .18s ease-out, opacity .18s ease-out;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background: linear-gradient(90deg, rgba(15,23,42,1), rgba(37,99,235,.94));
  color: #f9fafb;
  padding-left: 1.5rem;
}
.dropdown-menu .dropdown-item:hover::before,
.dropdown-menu .dropdown-item:focus::before {
  background: #7deaff;
  opacity: 1;
  transform: translateY(-50%) scale(1.4);
}

.bg-white {
  color: #212529 !important;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
}
.footer-tagline {
  color: #fff;
  font-weight: 600;
}

.hero-section {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 22, 36, .9), rgba(12, 22, 36, .95));
  min-height: 340px;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
}
.hero-section .hero-content {
  padding: 2.5rem;
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}
.hero-section h1 {
  color: #ffffff;
  font-weight: 700;
  font-size: 2.4rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 4px 22px rgba(0,0,0,.38);
}
.hero-section p.lead {
  color: #dbe7f4;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
.hero-section .hero-content .d-flex {
  justify-content: center;
}
.gradient-text {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 3px 12px rgba(0,0,0,.35);
  -webkit-text-stroke: 0.6px rgba(10,18,32,.25);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.blur-bg-text {
  display: inline;
  padding: .12em .35em;
  background: rgba(12, 22, 36, .32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: .4em;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.blur-bg-text-lg {
  padding: .18em .55em;
  border-radius: .5em;
}
.btn-ring {
  position: relative;
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: transparent;
  overflow: hidden;
}
.btn-ring::before {
  content: "";
  position: absolute;
  inset: -1000% 0 0 0;
  background: conic-gradient(from 90deg at 50% 50%, #f5d78b 0%, #ffd36f 50%, #f5d78b 100%);
  animation: spin 6s linear infinite;
}
.btn-ring .btn-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 2rem;
  color: #0b1224;
  background: linear-gradient(90deg, #f7e08a, #ffd36f 40%, #f5b64f);
  backdrop-filter: blur(6px);
}
.btn-shimmer {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  border: 1px solid #1e2631 !important;
  color: #a3b1c6 !important;
  background: linear-gradient(110deg,#000103 45%,#1e2631 55%,#000103);
  background-size: 200% 100%;
  animation: shimmer 4.8s ease-in-out infinite;
}
.btn-shimmer:hover {
  color: #e8eef7 !important;
}
.btn-accent {
  background: var(--accent);
  color: #111;
  border: none;
}
.btn-accent:hover {
  filter: brightness(1.05);
  color: #000;
}
.hero-visual {
  position: absolute;
  inset: 0;
  background: radial-gradient(1000px 480px at 110% -20%, rgba(0,217,255,.35), rgba(0,217,255,0) 45%),
              radial-gradient(800px 380px at 80% 100%, rgba(26, 86, 255,.25), rgba(26,86,255,0) 40%);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-visual::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background:
    linear-gradient(to top, rgba(99,102,241,0.8), rgba(168,85,247,0.6), rgba(0,0,0,0)) 0 0/2px 120px no-repeat,
    linear-gradient(to top, rgba(99,102,241,0.8), rgba(168,85,247,0.6), rgba(0,0,0,0)) 200px 0/2px 160px no-repeat,
    linear-gradient(to top, rgba(99,102,241,0.8), rgba(168,85,247,0.6), rgba(0,0,0,0)) 400px 0/2px 90px no-repeat,
    linear-gradient(to top, rgba(99,102,241,0.8), rgba(168,85,247,0.6), rgba(0,0,0,0)) 600px 0/2px 140px no-repeat,
    linear-gradient(to top, rgba(99,102,241,0.8), rgba(168,85,247,0.6), rgba(0,0,0,0)) 800px 0/2px 110px no-repeat,
    linear-gradient(to top, rgba(99,102,241,0.8), rgba(168,85,247,0.6), rgba(0,0,0,0)) 1000px 0/2px 180px no-repeat;
  animation: beams-fall 16s linear infinite;
  opacity: .4;
}

.feature-slider {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 22, 36, .92), rgba(12, 22, 36, .96));
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  overflow: hidden;
}
.feature-slider .slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.feature-slider .slider-track::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.feature-slider .slider-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  min-height: 360px;
  padding: 1.25rem;
  background: linear-gradient(180deg, #e7f6ff, #dbeafe);
  color: #212529;
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.feature-slider .slider-content h3 {
  color: #0f1826;
  font-weight: 700;
  font-size: 1.6rem;
}
.feature-slider .label-highlight {
  color: #ffd36f;
  font-weight: 600;
  letter-spacing: .2px;
}
.feature-slider .slider-content {
  display: flex;
  flex-direction: column;
}
.feature-slider .slider-content .btn {
  align-self: center;
}
.feature-slider .slider-content .muted {
  color: var(--muted);
}
.feature-slider .slider-media {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #e7f6ff, #d5ecff);
  min-height: 240px;
}
.feature-slider .slider-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-slider .slider-item .btn-outline-light {
  color: var(--glow-blue) !important;
  border-color: var(--glow-blue) !important;
}
.feature-slider .slider-item .btn-outline-light:hover {
  background: var(--glow-blue) !important;
  color: #fff !important;
}
.feature-slider .slider-controls {
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
}
.feature-slider .slider-controls .btn {
  pointer-events: auto;
  backdrop-filter: blur(6px);
}
.feature-slider .slider-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .5rem;
  padding: .75rem 1rem 1rem 1rem;
}
.feature-slider .empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 1rem;
  text-align: center;
}
.feature-slider .empty-state .tile-card {
  max-width: 780px;
  width: 100%;
}
.feature-slider .slider-tab {
  background: transparent;
  border: none;
  color: #cdd7e3;
  text-align: left;
  padding: .5rem .25rem;
  border-bottom: 2px solid rgba(255,255,255,.12);
  transition: color .2s ease, border-color .2s ease;
}
.feature-slider .slider-tab.active {
  color: #7deaff;
  border-bottom-color: #7deaff;
}
@media (max-width: 992px) {
  .feature-slider .slider-item {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .feature-slider .slider-media {
    min-height: 180px;
  }
  .feature-slider .slider-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 576px) {
  .feature-slider .slider-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

.careers-section {
  position: relative;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  border-radius: 0;
  background: #fff;
  border: 1px solid #e0e6eb;
  color: var(--glow-blue);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  overflow: hidden;
}
.careers-section .careers-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  min-height: 320px;
  padding: 1.25rem 0;
}
.careers-section .careers-content {
  max-width: 640px;
  padding-left: .75rem;
  padding-right: .75rem;
}
.careers-section .careers-content h3 {
  color: var(--glow-blue);
  font-weight: 700;
  font-size: 1.6rem;
}
.careers-section .careers-content .muted { color: #000; }
.careers-section .careers-content .btn {
  align-self: flex-start;
}
.careers-section .careers-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1421;
  min-height: 220px;
}
.careers-section .careers-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.careers-section .careers-media .accent-block {
  position: absolute;
  right: -12px;
  top: -12px;
  width: 120px;
  height: 60px;
  background: #1a56ff;
  opacity: .7;
  border-radius: 6px;
}
.careers-section .video-placeholder {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.careers-section .video-placeholder::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 18px solid var(--primary);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}
.careers-section .embed-video {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #0b1421, #0f1826);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
.careers-section .embed-video::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 0 0 1px rgba(255,255,255,.04);
}
.careers-section .embed-video:hover {
  border-color: #1d2d40;
  box-shadow: 0 12px 26px rgba(0,0,0,.32);
}
@media (max-width: 992px) {
  .careers-section .careers-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .careers-section .careers-media {
    min-height: 180px;
  }
}

.whyus-section {
  position: relative;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  background: #fff;
  border: 1px solid #e0e6eb;
  color: #111827;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  overflow: hidden;
}
.whyus-section .whyus-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  min-height: 340px;
  padding: 1.25rem 0;
}
.whyus-section .whyus-content {
  max-width: 640px;
  padding-left: .75rem;
  padding-right: .75rem;
}
.whyus-section .whyus-name {
  color: #000;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: .9rem;
}
.whyus-section .whyus-role {
  color: #6b7280;
  font-style: italic;
  margin-top: .15rem;
  margin-bottom: .75rem;
}
.whyus-section .whyus-heading {
  color: #000;
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.1;
}
.whyus-section .whyus-desc {
  color: #374151;
}
.whyus-section .whyus-link {
  color: #111827;
  text-decoration: underline;
  font-weight: 600;
}
.whyus-section .whyus-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1421;
  min-height: 260px;
}
.whyus-section .whyus-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.whyus-section .whyus-media-no-border {
  position: relative;
  border: none;
  background: transparent;
  min-height: 260px;
}
.whyus-section .whyus-media-no-border img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 992px) {
  .whyus-section .whyus-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .whyus-section .whyus-media,
  .whyus-section .whyus-media-no-border {
    min-height: 200px;
  }
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  justify-items: center;
  align-items: stretch;
}
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-12 { grid-column: 1 / -1; }
.row-span-2 { grid-row: span 2; }
.tile-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tile-card h5 {
  color: #fff;
  margin-bottom: .5rem;
}
.tile-card p,
.tile-card .muted {
  color: var(--muted);
  margin: 0;
}
.tile-card .d-flex {
  justify-content: center;
}
.tile-card .btn {
  align-self: center;
  margin-top: auto;
}
.article-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.wysiwyg-toolbar .btn {
  border-radius: 8px;
}
.wysiwyg-editor {
  background: #fff;
  color: #212529;
  border: 1px solid #e0e6eb;
  border-radius: 10px;
  min-height: 220px;
  padding: .75rem;
}
.wysiwyg-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.wysiwyg-editor:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,211,255,.25);
}
.color-chip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #e0e6eb;
  display: inline-block;
  margin-right: 6px;
  cursor: pointer;
}
.color-chip:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,211,255,.35);
}
 .helper-card {
  background: #0f1826;
  border: 1px solid var(--border);
  border-radius: 14px;
 }
 .helper-card-title {
  color: #cdd7e3;
  font-weight: 600;
  margin-bottom: .5rem;
 }
 .helper-preview {
  background: #0b1421;
  border-radius: 10px;
  padding: .5rem;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
 }
 .helper-guide li {
  margin-bottom: .25rem;
 }
.embed-video {
  position: relative;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  margin: .5rem 0;
}
.embed-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.embed-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
@media (max-width: 576px) {
  .article-thumb {
    height: 140px;
  }
}
.tile-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-right: .75rem;
}
.tile-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  border-color: #1d2d40;
}
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
}
.reveal-on-scroll.is-visible {
  animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both;
}
.animate-fade-in {
  animation: fadeIn .6s ease both;
}
.animate-scale-in {
  animation: scaleIn .5s ease both;
}

.ebook-shelf {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
}
.ebook-shelf .shelf-sidebar {
  background: #fff;
  border: 1px solid #e0e6eb;
  border-radius: 10px;
  padding: .75rem;
  color: #111827;
}
.ebook-shelf .shelf-sidebar .nav-link {
  color: #111827 !important;
}
.ebook-shelf .shelf-sidebar .nav-link.active {
  color: #0b1224 !important;
  background: #eaf2ff;
  border-radius: 8px;
}
.ebook-shelf .shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e0e6eb;
  border-radius: 10px;
  padding: .5rem .75rem;
  color: #111827;
}
.ebook-shelf .shelf-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .75rem;
}
.ebook-shelf .shelf-card {
  background: #fff;
  border: 1px solid #e0e6eb;
  border-radius: 8px;
  padding: .5rem;
}
.ebook-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.ebook-shelf .shelf-card .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .5rem;
}
@media (max-width: 1200px) {
  .ebook-shelf .shelf-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 992px) {
  .ebook-shelf { grid-template-columns: 1fr; }
  .ebook-shelf .shelf-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
  .ebook-shelf .shelf-grid { grid-template-columns: repeat(2, 1fr); }
  .ebook-cover { height: 160px; }
}

.contact-card input,
.contact-card textarea {
  background: #0f1826;
  border: 1px solid var(--border);
  color: var(--text);
}
.contact-card input::placeholder,
.contact-card textarea::placeholder {
  color: #8aa0b8;
}
.contact-card .btn {
  width: 100%;
}

@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: clamp(280px, 32vw, 360px);
  }
  .hero-section .hero-content {
    padding: 1.5rem;
    max-width: 720px;
  }
  .hero-visual {
    background-position: right center !important;
    background-size: cover !important;
  }
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tile-grid .col-span-4 {
    grid-column: span 1;
  }
}
@media (max-width: 576px) {
  .hero-section {
    min-height: clamp(240px, 38vw, 320px);
    padding: 1.25rem 1rem;
    overflow: hidden;
  }
  .hero-section .hero-content {
    padding: 0;
    max-width: min(52ch, 68vw);
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    justify-self: center;
    align-self: center;
  }
  .hero-section h1 {
    font-size: clamp(1.35rem, 4.6vw, 1.85rem);
    margin-bottom: .25rem;
  }
  .hero-section p.lead {
    font-size: clamp(.9rem, 3.2vw, 1.05rem);
    line-height: 1.35;
    max-height: calc(1.35em * 2);
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-wrap: balance;
    margin-bottom: .5rem;
  }
  .hero-section .lead.mb-4 { margin-bottom: .5rem; }
  .hero-section h1.mb-2 { margin-bottom: .25rem; }
  .hero-section .hero-content .d-flex {
    margin-top: .25rem;
    justify-content: center;
  }
  .btn-ring .btn-inner {
    padding: .7rem 1.2rem;
  }
  .hero-visual {
    background-position: 80% 10% !important;
    background-size: cover !important;
  }
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .col-span-3,
  .col-span-2,
  .col-span-4 {
    grid-column: span 1;
  }
  .tile-card {
    padding: 0.5rem;
    min-width: 0;
    overflow: hidden;
  }
  .tile-card h6 {
    font-size: 0.85rem;
    line-height: 1.25;
    margin-bottom: 0.25rem !important;
    white-space: normal;
    word-break: break-word;
  }
  .tile-card h6 .badge {
    display: block;
    width: fit-content;
    margin: 0.25rem 0 0 0 !important;
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
  }
  .tile-card .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tile-card p.muted {
    font-size: 0.75rem;
    margin-bottom: 0.5rem !important;
  }
  .article-thumb {
    height: 90px;
    margin-bottom: 0.5rem !important;
  }
}

@keyframes shimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes scaleIn {
  0% { transform: scale(.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes beams-fall {
  0% { transform: translateY(-200px); }
  100% { transform: translateY(1800px); }
}

.admin-sidebar {
  background: var(--panel) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px;
}
.admin-sidebar .nav-link {
  color: #cdd7e3 !important;
}
.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
  color: #fff !important;
}
.admin-topbar {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-wrapper .content-wrapper {
  background: transparent;
}
.content-header .btn {
  border-radius: 10px;
}
.small-box {
  border-radius: 12px;
  position: relative;
  display: block;
  color: #fff;
  padding: 1rem 1rem 2.5rem 1rem;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
.small-box .inner h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}
.small-box .inner p {
  margin: 0;
  color: rgba(255,255,255,0.85);
}
.small-box .icon {
  position: absolute;
  right: 12px;
  top: 12px;
  opacity: .35;
  color: #fff;
}
.small-box-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .5rem 1rem;
  color: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  text-decoration: none;
  display: block;
}
@media (max-width: 1199.98px) {
  .navbar .navbar-collapse {
    text-align: center;
  }
  .navbar .navbar-nav {
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .navbar .nav-link {
    text-align: center;
  }
  .navbar .navbar-nav.me-auto {
    margin-right: 0 !important;
  }
  .navbar .actions-inline { flex-wrap: nowrap; justify-content: center; width: 100%; }
  .navbar .dropdown {
    width: auto;
    display: inline-flex;
    justify-content: center;
    position: relative;
  }
  .navbar .btn-group {
    display: inline-flex;
    justify-content: center;
    width: auto;
  }
  .navbar .dropdown > .dropdown-menu {
    text-align: center;
  }
  .navbar .dropdown > .dropdown-menu {
    text-align: center;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(10px) scale(0.96) !important;
    position: absolute !important;
    margin-top: .5rem;
  }
  .navbar .dropdown > .dropdown-menu.show {
    transform: translateX(-50%) translateY(0) scale(1) !important;
  }
  .navbar .dropdown-menu-end {
    right: auto !important;
  }
  .navbar .dropend .dropdown-menu {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid rgba(0,0,0,.12) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.12) !important;
  }
  .navbar .dropend .dropdown-menu .dropdown-item,
  .navbar .dropend .dropdown-menu .dropdown-header {
    color: #000 !important;
  }
  .navbar .dropend .dropdown-menu .form-label {
    color: #000 !important;
  }
  .navbar .dropend .dropdown-menu .form-control {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.2) !important;
    color: #000 !important;
  }
  .navbar .dropend .dropdown-menu .dropdown-item:hover,
  .navbar .dropend .dropdown-menu .dropdown-item:focus {
    background-color: rgba(0,0,0,.06) !important;
    color: #000 !important;
  }
}
html[lang="cn"] body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Slide In Right Animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  opacity: 0;
}

.slide-in-right.is-visible {
  animation: slideInRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Slide In Left Animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  opacity: 0;
}

.slide-in-left.is-visible {
  animation: slideInLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#searchModal .modal-title {
  color: #000;
}
#searchModal .form-control {
  color: #000;
}
#searchModal .form-control::placeholder {
  color: #000;
  opacity: 1;
}

.home-cst-section .cst-img { pointer-events: none; }

@media (min-width: 768px) and (max-width: 1199.98px) {
  .home-cst-section .position-relative {
    padding: 48px 0 !important;
  }
  .home-cst-section .cst-img {
    max-width: 160px !important;
    width: 26% !important;
    z-index: 2 !important;
  }
  .home-cst-section .cst-left {
    transform: translate(-12%,-50%) !important;
  }
  .home-cst-section .cst-right {
    transform: translate(12%,-50%) !important;
  }
  .home-cst-section .tile-card {
    padding: 1rem !important;
  }
  .home-cst-section .tile-card img {
    max-width: 220px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .home-cst-section .cst-img {
    max-width: 140px !important;
    width: 22% !important;
  }
  .home-cst-section .tile-card .h4 {
    font-size: 1.1rem;
  }
}

.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.page-content iframe,
.page-content video {
  width: 100%;
  max-width: 100%;
}
.page-content .image-row {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  padding: .5rem 0;
}
.page-content .image-row > * {
  flex: 0 0 auto;
  display: inline-block;
  margin: 0;
  width: auto !important;
}
.page-content .image-row img {
  flex: 0 0 auto;
  height: auto;
  max-height: 160px;
  margin: 0;
  display: inline-block;
  object-fit: contain;
  width: auto !important;
}
.page-content .image-row.image-row-sm img {
  max-height: 72px;
}
.page-content .row.g-4.align-items-start {
  margin-bottom: 2rem;
}
.page-content .row.g-4.align-items-start + .row.g-4.align-items-start {
  margin-top: 2rem;
}
.page-content h1 {
  font-size: 2rem;
  line-height: 1.2;
}
.page-content h2 {
  font-size: 1.75rem;
  line-height: 1.25;
}
.page-content h3 {
  font-size: 1.3rem;
  line-height: 1.3;
}
@media (max-width: 576px) {
  .page-content {
    padding: 1rem !important;
  }
  .page-content .row.g-4.align-items-start > .col-md-5 {
    order: 1;
  }
  .page-content .row.g-4.align-items-start > .col-md-7 {
    order: 2;
  }
  .page-content .row.g-4.align-items-start {
    margin-bottom: 1.25rem;
  }
  .page-content h1 {
    font-size: 1.4rem;
  }
  .page-content h2 {
    font-size: 1.3rem;
  }
  .page-content h3 {
    font-size: 1.1rem;
  }
  .page-content .btn {
    font-size: .85rem;
    padding: .375rem .75rem;
  }
}
