/* ==============================================================================
 * Cybernetics Imaging Systems (CIS) - Modern Web UI Enhancements
 * ============================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --cis-primary: #1e88e5;
  --cis-primary-hover: #1565c0;
  --cis-accent: #00acc1;
  --cis-bg-dark: #121212;
  --cis-card-bg: rgba(30, 30, 30, 0.85);
  --cis-text-light: #f5f5f5;
  --cis-text-muted: #9e9e9e;
  --cis-border-color: rgba(255, 255, 255, 0.12);
  --cis-radius: 8px;
  --cis-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Image Hover & Card Effects */
img.CENy8b {
  transition: var(--cis-transition);
  border-radius: 4px;
}

.t3iYD {
  overflow: hidden;
  border-radius: 6px;
}

.t3iYD:hover img.CENy8b {
  transform: scale(1.02);
}

/* Links & Buttons */
a {
  transition: var(--cis-transition);
}

a:hover {
  filter: brightness(1.15);
}

/* Clean scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* Selection */
::selection {
  background: rgba(30, 136, 229, 0.4);
  color: #fff;
}

/* ==============================================================================
 * Navigation Enhancements & Dropdown Hover Fix
 * ============================================================================== */

/* Eliminate gap between nav item and dropdown menu */
nav.plFg0c li.VsJjtf {
  position: relative !important;
}

nav.plFg0c li.VsJjtf > .oGuwee {
  margin-top: 0 !important;
  top: 100% !important;
}

/* Invisible hover bridge to prevent menu from disappearing during cursor transit */
nav.plFg0c li.VsJjtf > .oGuwee::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
  pointer-events: auto;
}

/* Ensure smooth hover and focus keep-alive */
nav.plFg0c li.VsJjtf:hover > .oGuwee,
nav.plFg0c li.VsJjtf:focus-within > .oGuwee,
nav.plFg0c li.VsJjtf > .oGuwee:hover {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Hide redundant "More" menu item completely */
[more-menu-item],
li.ZmrVpf.oXBWEc,
li.VsJjtf.ZmrVpf {
  display: none !important;
}

/* ==============================================================================
 * Modern Standalone Carousel Component
 * ============================================================================== */
.cis-auto-carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cis-carousel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.cis-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.cis-carousel-slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.cis-carousel-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 40%, rgba(0, 0, 0, 0.95) 100%);
  padding: 24px 20px 14px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  z-index: 3;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.cis-carousel-controls {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 4;
}

.cis-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(0,0,0,0.3);
}

.cis-carousel-dot.active {
  background: var(--cis-primary);
  width: 26px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(30, 136, 229, 0.8);
}

.cis-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.cis-carousel-btn:hover {
  background: rgba(30, 136, 229, 0.8);
  transform: translateY(-50%) scale(1.08);
}

.cis-carousel-btn.prev { left: 16px; }
.cis-carousel-btn.next { right: 16px; }
