/* ==========================================================================
   YAKINUSA (Yayasan Aksara Ilmiah Nusantara) Design System
   "Research with Integrity. Knowledge with Impact."
   ========================================================================== */

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Color Palette - Light Mode */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-inverted: #ffffff;

  --primary: #0f2c59;
  --primary-hover: #1e3a8a;
  --primary-light: #eff6ff;
  --secondary: #1e40af;
  --accent-gold: #c89528;
  --accent-gold-soft: #fef3c7;
  --accent-teal: #0d9488;
  --accent-emerald: #059669;

  --border-light: #e2e8f0;
  --border-accent: rgba(200, 149, 40, 0.35);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 25px rgba(200, 149, 40, 0.2);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --container-max: 1240px;
}

[data-theme="dark"] {
  --bg-primary: #080d1a;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #151e34;
  --bg-surface-alt: #131c31;
  --bg-card: #111a2f;
  --bg-glass: rgba(15, 23, 42, 0.88);

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-subtle: #94a3b8;
  --text-inverted: #0f172a;

  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: rgba(59, 130, 246, 0.15);
  --secondary: #60a5fa;
  --accent-gold: #fbbf24;
  --accent-gold-soft: rgba(251, 191, 36, 0.15);
  --accent-teal: #14b8a6;
  --accent-emerald: #10b981;

  --border-light: #1e293b;
  --border-accent: rgba(251, 191, 36, 0.3);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(251, 191, 36, 0.25);
}

/* Base Styles & Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.font-serif {
  font-family: var(--font-serif);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: var(--bg-surface);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0f2c59 0%, #1e40af 50%, #c89528 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.25);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Desktop Navigation Menu */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-arrow {
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.dropdown-link:hover {
  background-color: var(--bg-surface-alt);
}

.dropdown-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.dropdown-desc {
  font-size: 0.76rem;
  color: var(--text-subtle);
  margin-top: 2px;
}

/* Header Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  color: var(--primary);
  background-color: var(--bg-surface-alt);
  border-color: var(--border-accent);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0f2c59 0%, #1e3a8a 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.2);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-surface-alt);
  border-color: var(--accent-gold);
}

.btn-gold {
  background: linear-gradient(135deg, #c89528 0%, #eab308 100%);
  color: #0f172a;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(200, 149, 40, 0.3);
  transition: all var(--transition-fast);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 160px 0 100px;
  background: radial-gradient(circle at 80% 20%, rgba(200, 149, 40, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 10% 60%, rgba(30, 64, 175, 0.08) 0%, transparent 45%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-gold-soft);
  border: 1px solid var(--border-accent);
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #0f2c59 0%, #1e40af 40%, #c89528 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-title .highlight {
  background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 40%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-motto {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent-gold);
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-pillars-preview {
  display: flex;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.pillar-stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-weight: 600;
  text-transform: uppercase;
}

/* Hero Interactive Right Card */
.hero-visual-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0f2c59, #1e40af, #c89528);
}

.sitemap-badge-card {
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.sitemap-badge-card h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sitemap-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sitemap-chip {
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sitemap-chip:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.scope-box {
  border-left: 3px solid var(--accent-gold);
  padding-left: 16px;
  margin-top: 20px;
}

.scope-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-padding {
  padding: 100px 0;
}

.section-padding-alt {
  padding: 100px 0;
  background-color: var(--bg-surface-alt);
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.value-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.value-box:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.value-box .val-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.value-box h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.value-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Research Centers Section
   ========================================================================== */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.tab-content-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.research-center-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.research-center-card h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.research-center-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.focus-list {
  list-style: none;
}

.focus-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.focus-list li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.center-side-panel {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
}

.center-side-panel h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   Scholarly Publishing Section
   ========================================================================== */
.publishing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.pub-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-accent);
}

.pub-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
}

.pub-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pub-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.pub-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.pub-features {
  list-style: none;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-bottom: 24px;
}

.pub-features li {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Integrity & Ethics Section (COPE Aligned)
   ========================================================================== */
.ethics-hero-card {
  background: linear-gradient(135deg, #0f2c59 0%, #172554 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

.ethics-hero-card h3 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.ethics-hero-card p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.cope-badge-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.cope-logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.ethics-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.ethics-rule-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.ethics-rule-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.rule-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-gold);
  font-family: var(--font-heading);
}

.rule-content h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.rule-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Knowledge Hub Section
   ========================================================================== */
.knowledge-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.knowledge-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.knowledge-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.knowledge-header {
  padding: 24px 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.k-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.k-type.report { background: #dbeafe; color: #1e40af; }
.k-type.brief { background: #fef3c7; color: #92400e; }
.k-type.pub { background: #ccfbf1; color: #0f766e; }

.k-date {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.knowledge-body {
  padding: 0 24px 20px;
  flex-grow: 1;
}

.knowledge-body h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.knowledge-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.knowledge-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.doc-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.doc-link:hover {
  color: var(--secondary);
}

/* ==========================================================================
   Collaboration & International Outlook
   ========================================================================== */
.collab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.collab-text h3 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.collab-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.collab-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.collab-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.collab-mini-card h5 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.collab-mini-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Interactive Site Map Visualizer
   ========================================================================== */
.sitemap-visualizer-section {
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.tree-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 960px;
  margin: 0 auto;
}

.tree-root {
  text-align: center;
  margin-bottom: 30px;
}

.tree-node-root {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0f2c59 0%, #1e40af 100%);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
}

.tree-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.tree-branch {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.branch-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tree-leaves {
  list-style: none;
  padding-left: 12px;
  border-left: 2px dashed var(--border-accent);
}

.tree-leaves li {
  margin-bottom: 8px;
}

.tree-leaf-link {
  display: block;
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.tree-leaf-link:hover {
  background: var(--bg-surface);
  color: var(--primary);
  font-weight: 600;
  transform: translateX(4px);
}

/* ==========================================================================
   News & Announcements Section
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-banner {
  height: 140px;
  background: linear-gradient(135deg, #0f2c59 0%, #1e40af 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}

.news-badge {
  position: absolute;
  bottom: 12px;
  left: 16px;
  background: var(--accent-gold);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.news-content {
  padding: 24px;
  flex-grow: 1;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.news-content h4 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.news-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info-panel {
  background: linear-gradient(135deg, #0f2c59 0%, #172554 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-xl);
}

.contact-info-panel h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.contact-info-panel p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-details {
  list-style: none;
  margin-bottom: 40px;
}

.contact-details li {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-surface-alt);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #09111e;
  color: #cbd5e1;
  padding: 80px 0 30px;
  border-top: 1px solid #1e293b;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h4 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 20px;
}

.footer-col h5 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 16px;
}

/* Search Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-container {
  width: 100%;
  max-width: 620px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalSlide 0.25s ease-out;
}

@keyframes modalSlide {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
}

.search-input-wrapper input {
  flex-grow: 1;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  margin-left: 12px;
}

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-surface-alt);
}

.search-result-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.search-result-breadcrumb {
  font-size: 0.75rem;
  color: var(--accent-gold);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .collab-grid, .contact-grid, .research-center-card, .ethics-hero-card {
    grid-template-columns: 1fr;
  }
  .publishing-grid, .knowledge-grid, .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-motto {
    font-size: 1.25rem;
  }
  .publishing-grid, .knowledge-grid, .news-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .tree-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-surface);
  z-index: 1500;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 10px;
}

.mobile-sublink {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--border-light);
}
