/* ==========================================================================
   Cybernetics Lab. (사이버네틱스 연구실) Stylesheet
   Modern Premium Dark Theme with Glassmorphism
   ========================================================================== */

:root {
  --bg-main: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(59, 130, 246, 0.4);
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.35);
  
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.35);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Noto Sans KR', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

/* ==========================================================================
   Light Mode Theme Variables
   ========================================================================== */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --border-color: rgba(203, 213, 225, 0.8);
  --border-focus: rgba(37, 99, 235, 0.4);

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.2);

  --accent: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.2);
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

/* Reset & Basics */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Top Announcement Bar */
.top-bar {
  background: #060913;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.825rem;
  color: var(--text-dim);
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info span {
  margin-right: 12px;
}

.top-info .divider {
  color: #334155;
  margin-right: 12px;
}

.top-contact a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 16px;
  transition: var(--transition);
}

.top-contact a:hover {
  color: var(--primary);
}

/* Main Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.logo-subtitle {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-highlight {
  color: #38bdf8 !important;
  font-weight: 600;
}

.btn-contact {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary) !important;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 8px 18px !important;
  border-radius: var(--radius-full);
}

.btn-contact:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px var(--primary-glow);
}

.btn-contact::after {
  display: none !important;
}

/* Nav Actions & Theme Toggle Switch */
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  border-radius: 9999px;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
  transform: scale(1.06);
}

.theme-toggle:focus-visible {
  box-shadow: 0 0 0 2px var(--primary);
}

.theme-toggle-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 58px;
  height: 30px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
  transition: background 0.35s ease, border-color 0.35s ease;
}

[data-theme="light"] .theme-toggle-track {
  background: #e2e8f0;
  border-color: #cbd5e1;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.theme-toggle-icon {
  font-size: 0.8rem;
  z-index: 2;
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.theme-toggle-icon.icon-sun {
  color: #64748b;
}

.theme-toggle-icon.icon-moon {
  color: #93c5fd;
}

[data-theme="light"] .theme-toggle-icon.icon-sun {
  color: #d97706;
}

[data-theme="light"] .theme-toggle-icon.icon-moon {
  color: #94a3b8;
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 31px; /* Dark mode: thumb resting over moon */
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
  z-index: 1;
}

[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(-27px); /* Light mode: thumb sliding over sun */
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.45);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0 80px;
  background: radial-gradient(circle at 50% 30%, rgba(30, 58, 138, 0.25) 0%, rgba(10, 15, 29, 0.95) 70%);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="%23ffffff" fill-opacity="0.02" fill-rule="evenodd"><path d="M0 40L40 0H20L0 20M40 40V20L20 40"/></g></svg>');
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -1px;
  margin-bottom: 24px;
  line-height: 1.18;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-tags .tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.hero-tags .tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.scroll-down-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 1.25rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

/* Section Common */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 16px;
}

.section-bar {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 0 auto 16px;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  word-break: keep-all;
}

/* About Section */
.about-section {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.about-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-glow);
}

.about-card .card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}

.about-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  word-break: keep-all;
}

.about-summary-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.summary-text {
  flex: 1;
}

.summary-text h4 {
  font-size: 1.2rem;
  color: #38bdf8;
  margin-bottom: 10px;
}

.summary-text p {
  color: var(--text-muted);
  font-size: 0.98rem;
  word-break: keep-all;
}

.summary-stats {
  display: flex;
  gap: 32px;
  border-left: 1px solid var(--border-color);
  padding-left: 36px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--accent);
}

/* Professor Section */
.professor-section {
  background: var(--bg-main);
}

.prof-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(360px, auto) 1fr;
  gap: 48px;
  box-shadow: var(--shadow-subtle);
}

.prof-image-col {
  text-align: center;
  border-right: 1px solid var(--border-color);
  padding-right: 32px;
}

.prof-img-wrapper {
  width: 220px;
  height: 270px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.prof-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.prof-img:hover {
  transform: scale(1.03);
}

.prof-name {
  font-size: 1.55rem;
  margin-bottom: 4px;
}

.prof-eng-name {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.prof-title {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 3px;
  white-space: nowrap !important;
  letter-spacing: -0.2px;
}

.prof-sub-title {
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 16px;
  white-space: nowrap !important;
}

.prof-contact-mini {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.prof-contact-mini p {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prof-contact-mini p:last-child {
  margin-bottom: 0;
}

.prof-detail-block {
  margin-bottom: 28px;
}

.prof-detail-block:last-child {
  margin-bottom: 0;
}

.block-title {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.timeline-list {
  list-style: none;
}

.timeline-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 6px 0;
  font-size: 0.95rem;
}

.time-year {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  min-width: 90px;
  font-size: 0.9rem;
}

.time-desc {
  color: var(--text-muted);
}

.time-desc strong {
  color: var(--text-main);
}

.prof-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

/* Research Areas Section */
.research-section {
  background: var(--bg-secondary);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.research-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-glow);
}

.research-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
}

.research-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.research-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.research-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
  word-break: keep-all;
}

.research-points {
  list-style: none;
  font-size: 0.85rem;
  color: #cbd5e1;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.research-points li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.research-points li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Members Section */
.members-section {
  background: var(--bg-main);
}

.category-heading {
  font-size: 1.35rem;
  margin-bottom: 24px;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 10px;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
}

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.member-name {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.member-pos {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  margin-left: 4px;
}

.member-interest {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.member-email {
  color: var(--text-dim);
  font-size: 0.78rem;
}

/* Publications Section (연도별 체계화) */
.publications-section {
  background: var(--bg-secondary);
}

.pub-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.pub-search-wrapper {
  position: relative;
  max-width: 600px;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

#pub-search {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 14px 20px 14px 50px;
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

#pub-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.pub-year-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.pub-meta-info {
  margin-bottom: 30px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.highlight-num {
  color: #38bdf8;
  font-weight: 700;
}

.pub-grouped-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.pub-year-group {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.year-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.year-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #38bdf8;
  font-size: 0.85rem;
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.filter-btn .btn-count {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-left: 2px;
}

.pub-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pub-card-academic {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: var(--transition);
}

.pub-card-academic:hover {
  border-color: var(--border-focus);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.pub-year-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-right: 1px solid var(--border-color);
  padding-right: 18px;
  padding-top: 4px;
}

.pub-year-badge {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.1;
}

.pub-index-num {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 8px;
  font-weight: 600;
}

.pub-details-column {
  display: flex;
  flex-direction: column;
}

.pub-meta-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.pub-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.pub-badge.conference {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.pub-badge.patent {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.pub-year-tag {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
}

.pub-title {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #ffffff;
  line-height: 1.45;
  font-weight: 600;
}

.pub-authors {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.pub-journal {
  color: var(--accent);
  font-size: 0.85rem;
  font-style: italic;
}

.pub-links-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.pub-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: var(--transition);
}

.pub-link-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

.pub-link-btn.pdf {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.pub-link-btn.pdf:hover {
  background: #dc2626;
  color: #ffffff;
}

/* Member Portal Button & Banner */
.member-portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  width: 100%;
}

.member-portal-btn:hover {
  background: #38bdf8;
  color: #0b1120;
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.member-portal-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.45) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: var(--radius-lg);
  padding: 22px 30px;
  margin-top: 24px;
  margin-bottom: 36px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.member-portal-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #38bdf8 0%, #3b82f6 100%);
}

.portal-banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.portal-banner-icon {
  font-size: 2rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.28);
  flex-shrink: 0;
}

.portal-banner-text h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-banner-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.portal-banner-text code {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.member-portal-banner .member-portal-btn {
  width: auto;
  margin-top: 0;
  padding: 10px 22px;
  font-size: 0.92rem;
  white-space: nowrap;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.member-portal-banner .member-portal-btn:hover {
  background: #38bdf8;
  color: #0b1120;
  border-color: #38bdf8;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .member-portal-banner {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 20px;
  }
  .portal-banner-content {
    flex-direction: column;
    gap: 12px;
  }
  .portal-banner-text h3 {
    justify-content: center;
  }
  .member-portal-banner .member-portal-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Member DB Upload & Archive Section (신규)
   ========================================================================== */
.member-db-section {
  background: var(--bg-main);
  border-top: 1px solid var(--border-color);
}

.member-db-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 36px;
}

.db-upload-panel, .db-files-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-subtle);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.panel-icon {
  font-size: 1.8rem;
  color: #38bdf8;
  margin-top: 2px;
}

.panel-header h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.panel-header p {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.btn-refresh {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-refresh:hover {
  background: var(--primary);
  color: #ffffff;
}

.upload-form .form-group {
  margin-bottom: 20px;
}

.upload-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.upload-form select, .upload-form input[type="password"] {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.upload-form select:focus, .upload-form input[type="password"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.file-drop-area {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.file-drop-area:hover, .file-drop-area.dragover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.06);
}

.file-drop-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.drop-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.upload-status {
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 24px;
  text-align: center;
}

.upload-status.success {
  color: var(--success);
  font-weight: 600;
}

.upload-status.error {
  color: var(--danger);
  font-weight: 600;
}

/* Member Selector Tabs */
.member-selector-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.member-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.member-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.member-tab-btn.active {
  background: rgba(6, 182, 212, 0.18);
  border-color: var(--accent);
  color: #38bdf8;
  font-weight: 600;
}

.member-file-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.member-file-list::-webkit-scrollbar {
  width: 6px;
}

.member-file-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.file-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.file-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 41, 59, 0.7);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon {
  font-size: 1.4rem;
  color: #38bdf8;
}

.file-name {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 2px;
}

.file-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.file-download-btn {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.file-download-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}

.empty-state i {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: #475569;
}

/* Facilities Section */
.facilities-section {
  background: var(--bg-main);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.facility-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}

.facility-box:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
}

.fac-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 18px;
}

.facility-box h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.facility-box p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: keep-all;
}

/* Contact Section */
.contact-section {
  background: var(--bg-secondary);
}

.contact-card-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: #ffffff;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Map & Directions Panel */
.contact-map-panel {
  border-radius: var(--radius-lg);
  background: #080d1a;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease;
}

.contact-map-panel:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.contact-map-wrapper {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #111827;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.contact-map-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-app-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.map-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.map-app-btn.google {
  background: #4285f4;
  color: #ffffff;
}

.map-app-btn.google:hover {
  background: #3367d6;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(66, 133, 244, 0.45);
}

.map-app-btn.naver {
  background: #03c75a;
  color: #ffffff;
}

.map-app-btn.naver:hover {
  background: #02b350;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(3, 199, 90, 0.45);
}

.map-app-btn.kakao {
  background: #fee500;
  color: #191600;
}

.map-app-btn.kakao:hover {
  background: #fada0a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(254, 229, 0, 0.45);
}

/* Footer */
.footer {
  background: #050811;
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.footer-copy {
  text-align: right;
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--success);
  margin-top: 6px;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .about-grid, .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .members-grid, .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .member-db-layout {
    grid-template-columns: 1fr;
  }
  .prof-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .prof-image-col {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 30px;
  }
  .about-summary-box {
    flex-direction: column;
    text-align: center;
  }
  .summary-stats {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: 24px;
    width: 100%;
    justify-content: center;
  }
  .contact-card-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.35rem;
  }
  .top-bar {
    display: none;
  }
  .nav-list {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 29, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-120%);
    transition: var(--transition);
  }
  .nav-list.active {
    transform: translateY(0);
  }
  .mobile-toggle {
    display: block;
  }
  .about-grid, .research-grid, .members-grid, .facilities-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-copy {
    text-align: center;
  }
}


/* ==========================================================================
   Cybernetics Lab Additional Styles
   - PDF Buttons & Modal Viewer
   - Projects Section
   - News Section
   - Facilities & CIMES Equipment Intro
   - Map App Quick Links (Kakao, Naver, Google)
   ========================================================================== */

/* PDF Buttons */
.card-pdf-action {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.pdf-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: #60a5fa;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.pdf-btn.primary-glow {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 20px;
  font-size: 0.92rem;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.pdf-btn.primary-glow:hover {
  background: linear-gradient(135deg, #1d4ed8, #0369a1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}

.pdf-direct-link, .pdf-direct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

.pdf-direct-btn {
  width: auto;
  padding: 8px 14px;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.pdf-direct-link:hover, .pdf-direct-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* PDF Modal Overlay */
.pdf-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 8, 16, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pdf-modal-overlay.open {
  display: flex;
}

.pdf-modal {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.pdf-modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.pdf-open-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

.pdf-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.pdf-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

#pdf-modal-frame {
  width: 100%;
  flex: 1;
  border: none;
  background: #1e293b;
}

/* Projects Section */
.projects-section {
  background-color: var(--bg-main);
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.project-card--ongoing {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.85), rgba(6, 78, 59, 0.2));
}

.project-card--ongoing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #06b6d4);
}

.project-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.ongoing {
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.status-dot.completed {
  background-color: #64748b;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  line-height: 1.4;
}

.project-title-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-meta-item i {
  color: #38bdf8;
  width: 16px;
  text-align: center;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.project-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: var(--text-muted);
}

/* News Section */
.news-section {
  background-color: var(--bg-secondary);
  position: relative;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.news-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.news-cat-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-content {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}

.news-link {
  font-size: 0.85rem;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.news-link:hover {
  color: #fff;
  transform: translateX(4px);
}

/* Featured CIMES Equipment Card */
.cimes-featured-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 58, 138, 0.3));
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.cimes-featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
}

.cimes-featured-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cimes-featured-info {
  flex: 1;
  min-width: 320px;
}

.cimes-featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border-radius: 9999px;
  margin-bottom: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.cimes-featured-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.cimes-featured-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 700px;
}

.cimes-featured-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .projects-grid, .news-grid {
    grid-template-columns: 1fr;
  }
  .cimes-featured-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .map-app-links {
    grid-template-columns: 1fr;
  }
  .contact-map-wrapper {
    height: 270px;
  }
}

/* ==========================================================================
   Comprehensive Light Mode Component Overrides
   ========================================================================== */
[data-theme="light"] .top-bar {
  background: #f1f5f9;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #64748b;
}

[data-theme="light"] .top-info .divider {
  color: #94a3b8 !important;
}

[data-theme="light"] .top-info a {
  color: #475569;
}

[data-theme="light"] .top-info a:hover {
  color: #0f172a;
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .logo-title {
  color: #0f172a;
}

[data-theme="light"] .logo-img {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-link {
  color: #475569;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #0f172a !important;
}

[data-theme="light"] .nav-highlight {
  color: #1d4ed8 !important;
}

[data-theme="light"] .nav-list {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-contact {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb !important;
  border-color: rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .btn-contact:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

[data-theme="light"] .mobile-toggle {
  color: #0f172a;
}

/* Hero Section */
[data-theme="light"] .hero-section {
  background: radial-gradient(circle at 50% 30%, rgba(219, 234, 254, 0.55) 0%, rgba(248, 250, 252, 0.95) 70%);
}

[data-theme="light"] .hero-bg-overlay {
  background: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="%230f172a" fill-opacity="0.02" fill-rule="evenodd"><path d="M0 40L40 0H20L0 20M40 40V20L20 40"/></g></svg>');
  opacity: 0.8;
}

[data-theme="light"] .hero-badge {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
  color: #1d4ed8;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .gradient-text-alt {
  background: linear-gradient(135deg, #0284c7 0%, #047857 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .hero-desc {
  color: #475569 !important;
}

[data-theme="light"] .btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

[data-theme="light"] .tag {
  background: #ffffff;
  color: #475569;
  border-color: rgba(203, 213, 225, 0.8);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .hero-tags .tag:hover {
  color: #1d4ed8;
  border-color: #2563eb;
}

/* Card & Container Base Overrides */
[data-theme="light"] .prof-card,
[data-theme="light"] .about-card,
[data-theme="light"] .research-card,
[data-theme="light"] .project-card,
[data-theme="light"] .news-card,
[data-theme="light"] .member-card,
[data-theme="light"] .facility-box,
[data-theme="light"] .contact-card-wrap,
[data-theme="light"] .contact-map-panel,
[data-theme="light"] .cimes-featured-card,
[data-theme="light"] .about-summary-box,
[data-theme="light"] .file-item {
  background: #ffffff !important;
  border-color: rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .about-card:hover,
[data-theme="light"] .research-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .news-card:hover,
[data-theme="light"] .member-card:hover,
[data-theme="light"] .facility-box:hover {
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
}

/* Headings & Text Color Overrides (Fix White Text in Light Mode) */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] .prof-name,
[data-theme="light"] .prof-name-ko,
[data-theme="light"] .member-name,
[data-theme="light"] .member-name-ko,
[data-theme="light"] .contact-item h4,
[data-theme="light"] .facility-box h4,
[data-theme="light"] .cimes-featured-title,
[data-theme="light"] .pub-title,
[data-theme="light"] .pub-paper-title,
[data-theme="light"] .news-title,
[data-theme="light"] .project-title,
[data-theme="light"] .research-title,
[data-theme="light"] .research-card h3,
[data-theme="light"] .file-name,
[data-theme="light"] strong,
[data-theme="light"] b {
  color: #0f172a !important;
}

[data-theme="light"] .section-title {
  color: #0f172a !important;
}

[data-theme="light"] .section-subtitle,
[data-theme="light"] .about-card p,
[data-theme="light"] .research-desc,
[data-theme="light"] .project-desc,
[data-theme="light"] .news-content,
[data-theme="light"] .facility-box p,
[data-theme="light"] .contact-item p,
[data-theme="light"] .pub-authors,
[data-theme="light"] .member-interest {
  color: #475569 !important;
}

/* About & Vision Card */
[data-theme="light"] .about-summary-box {
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.8) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .summary-text h4 {
  color: #0284c7 !important;
}

[data-theme="light"] .summary-text p {
  color: #475569 !important;
}

[data-theme="light"] .summary-stats {
  border-left-color: rgba(203, 213, 225, 0.8) !important;
}

[data-theme="light"] .stat-num {
  color: #0f172a !important;
}

[data-theme="light"] .stat-label {
  color: #0284c7 !important;
  font-weight: 600;
}

/* Professor Section */
[data-theme="light"] .block-title {
  color: #1d4ed8 !important;
  border-bottom-color: rgba(226, 232, 240, 0.9) !important;
}

[data-theme="light"] .prof-sub-title {
  color: #0284c7 !important;
}

[data-theme="light"] .prof-contact-mini {
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  color: #475569 !important;
}

[data-theme="light"] .prof-contact-mini p {
  color: #475569 !important;
}

[data-theme="light"] .timeline-list .time-year {
  color: #1d4ed8 !important;
}

[data-theme="light"] .timeline-list .time-desc {
  color: #475569 !important;
}

[data-theme="light"] .timeline-list .time-desc strong {
  color: #0f172a !important;
}

[data-theme="light"] .pill {
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
  color: #1d4ed8 !important;
  font-weight: 600;
}

/* Universal Member Portal Buttons (Professor & Member Cards) */
[data-theme="light"] .member-portal-btn {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #1d4ed8 !important;
  border: 1px solid rgba(37, 99, 235, 0.3) !important;
  font-weight: 600;
}

[data-theme="light"] .member-portal-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

/* Research Areas */
[data-theme="light"] .research-icon {
  color: #0284c7 !important;
}

[data-theme="light"] .research-points {
  color: #475569 !important;
  border-top-color: rgba(226, 232, 240, 0.9) !important;
}

[data-theme="light"] .research-points li {
  color: #475569 !important;
}

[data-theme="light"] .research-num {
  color: rgba(15, 23, 42, 0.12) !important;
}

[data-theme="light"] .pdf-btn {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
  color: #1d4ed8 !important;
}

[data-theme="light"] .pdf-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

[data-theme="light"] .pdf-direct-link,
[data-theme="light"] .pdf-direct-btn {
  background: #f1f5f9 !important;
  border-color: rgba(203, 213, 225, 0.9) !important;
  color: #475569 !important;
}

[data-theme="light"] .pdf-direct-link:hover,
[data-theme="light"] .pdf-direct-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

/* Projects Section */
[data-theme="light"] .project-card--ongoing {
  background: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.06) !important;
}

[data-theme="light"] .project-title-sub {
  color: #64748b !important;
}

[data-theme="light"] .project-meta {
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  color: #475569 !important;
}

[data-theme="light"] .project-meta-item {
  color: #475569 !important;
}

[data-theme="light"] .project-meta-item i {
  color: #0284c7 !important;
}

[data-theme="light"] .project-tag {
  background: #f1f5f9 !important;
  border-color: rgba(203, 213, 225, 0.8) !important;
  color: #475569 !important;
}

[data-theme="light"] .project-card .pdf-btn.primary-glow {
  background: linear-gradient(135deg, #2563eb, #0284c7) !important;
  color: #ffffff !important;
}

/* News Section */
[data-theme="light"] .news-cat-badge {
  background: rgba(2, 132, 199, 0.1) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  color: #0284c7 !important;
}

[data-theme="light"] .news-link {
  color: #0284c7 !important;
  font-weight: 600;
}

[data-theme="light"] .news-link:hover {
  color: #0369a1 !important;
}

/* Members Section & Portal Banner */
[data-theme="light"] .category-heading {
  color: #1e3a8a !important;
}

[data-theme="light"] .member-pos {
  color: #0284c7 !important;
}

[data-theme="light"] .member-email a {
  color: #0284c7 !important;
}

[data-theme="light"] .member-portal-banner {
  background: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08) !important;
}

[data-theme="light"] .portal-banner-text h3 {
  color: #0f172a !important;
}

[data-theme="light"] .portal-banner-text p {
  color: #475569 !important;
}

[data-theme="light"] .portal-banner-text code {
  background: #e0f2fe !important;
  color: #0284c7 !important;
}

[data-theme="light"] .portal-banner-icon {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
}

[data-theme="light"] .member-portal-banner .member-portal-btn {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  font-weight: 600;
}

[data-theme="light"] .member-portal-banner .member-portal-btn:hover {
  background: #0369a1 !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
}

[data-theme="light"] .member-tab-btn {
  background: #ffffff !important;
  border-color: rgba(203, 213, 225, 0.9) !important;
  color: #475569 !important;
}

[data-theme="light"] .member-tab-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

[data-theme="light"] .member-tab-btn.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

[data-theme="light"] .file-download-btn {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
  color: #1d4ed8 !important;
}

[data-theme="light"] .file-download-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Publications Section - Comprehensive Light Mode Styling
   ========================================================================== */
[data-theme="light"] .pub-year-group {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .year-heading {
  color: #0f172a !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
}

[data-theme="light"] .year-badge {
  background: rgba(37, 99, 235, 0.1) !important;
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
  color: #1d4ed8 !important;
  font-weight: 600;
}

[data-theme="light"] #pub-search {
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] #pub-search::placeholder {
  color: #94a3b8 !important;
}

[data-theme="light"] #pub-search:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.15) !important;
}

[data-theme="light"] .pub-meta-info {
  color: #64748b !important;
}

[data-theme="light"] .highlight-num {
  color: #1d4ed8 !important;
}

/* Publication Year Filter Buttons (Fixed White Text on Hover & Contrast) */
[data-theme="light"] .filter-btn {
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  color: #475569 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .filter-btn .btn-count {
  color: #64748b !important;
}

[data-theme="light"] .filter-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

[data-theme="light"] .filter-btn:hover .btn-count {
  color: #0f172a !important;
}

[data-theme="light"] .filter-btn.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25) !important;
}

[data-theme="light"] .filter-btn.active .btn-count {
  color: #ffffff !important;
}

/* Publication Academic Cards */
[data-theme="light"] .pub-card-academic {
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .pub-card-academic:hover {
  background: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08) !important;
}

[data-theme="light"] .pub-year-column {
  border-right: 1px solid rgba(226, 232, 240, 0.9) !important;
}

[data-theme="light"] .pub-year-badge {
  color: #1d4ed8 !important;
}

[data-theme="light"] .pub-index-num {
  color: #64748b !important;
}

[data-theme="light"] .pub-journal {
  color: #0284c7 !important;
}

[data-theme="light"] .pub-year-tag {
  color: #64748b !important;
}

[data-theme="light"] .pub-badge {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #059669 !important;
}

[data-theme="light"] .pub-badge.conference {
  background: rgba(217, 119, 6, 0.12) !important;
  border-color: rgba(217, 119, 6, 0.35) !important;
  color: #b45309 !important;
}

[data-theme="light"] .pub-badge.patent {
  background: rgba(147, 51, 234, 0.12) !important;
  border-color: rgba(147, 51, 234, 0.35) !important;
  color: #7e22ce !important;
}

[data-theme="light"] .pub-link-btn {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  color: #1d4ed8 !important;
}

[data-theme="light"] .pub-link-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

[data-theme="light"] .pub-link-btn.pdf {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  color: #dc2626 !important;
}

[data-theme="light"] .pub-link-btn.pdf:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* Facilities Section */
[data-theme="light"] .cimes-featured-card {
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .cimes-featured-tag {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  color: #1d4ed8 !important;
}

[data-theme="light"] .cimes-featured-desc {
  color: #475569 !important;
}

[data-theme="light"] .fac-icon {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
}

/* Universal PDF Viewer Modal (Fixed Dark Navy Background in Light Mode) */
[data-theme="light"] .pdf-modal {
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .pdf-modal-header {
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
}

[data-theme="light"] .pdf-modal-title {
  color: #0f172a !important;
}

[data-theme="light"] .pdf-open-btn {
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
  color: #1d4ed8 !important;
}

[data-theme="light"] .pdf-open-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

[data-theme="light"] .pdf-modal-close {
  color: #64748b !important;
}

[data-theme="light"] .pdf-modal-close:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #dc2626 !important;
}

[data-theme="light"] #pdf-modal-frame {
  background: #f1f5f9 !important;
}

/* Contact & Footer */
[data-theme="light"] .icon-circle {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
}

[data-theme="light"] .contact-item a {
  color: #0284c7 !important;
}

[data-theme="light"] .contact-map-wrapper {
  border-color: rgba(203, 213, 225, 0.9) !important;
}

[data-theme="light"] .footer {
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

[data-theme="light"] .footer-brand h3 {
  color: #f8fafc !important;
}

[data-theme="light"] .footer-brand p {
  color: #94a3b8 !important;
}

[data-theme="light"] .footer-copy p {
  color: #64748b !important;
}

