:root {
  --color-bg: #F8FAFC;
  --color-card: #FFFFFF;
  --color-border: #E5E7EB;
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-accent: #06B6D4;
  --color-text: #0F172A;
  --color-muted: #64748B;
  
  --font-heading: 'Space Grotesk', 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
}

/* Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input {
  font-family: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-layout { grid-template-columns: 2fr 1.2fr 1fr; }
}

/* UI Elements */
.card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.card-content {
  padding: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
}
.btn-outline:hover {
  color: var(--color-text);
  border-color: var(--color-muted);
}

.badge {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: #F1F5F9;
  color: var(--color-primary);
  border: 1px solid #E2E8F0;
}

.text-gradient {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header */
.top-bar {
  background-color: var(--color-text);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  overflow: hidden;
  text-align: center;
}

.site-header {
  background-color: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  height: 4rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
}
.nav-link:hover {
  color: var(--color-primary);
}

/* Spotlight Search Modal */
.spotlight-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.spotlight-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.spotlight-modal {
  background: var(--color-bg);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}
.spotlight-overlay.active .spotlight-modal {
  transform: scale(1);
}
.spotlight-form {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  gap: 1rem;
}
#spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.25rem;
  color: var(--color-text);
  font-family: var(--font-body);
}
.spotlight-escape {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
}
.spotlight-results {
  padding: 1rem 0;
  max-height: 400px;
  overflow-y: auto;
}
.spotlight-group-title {
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.spotlight-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}
.spotlight-item:hover, .spotlight-item.active {
  background-color: rgba(37, 99, 235, 0.05);
  color: var(--color-primary);
}

/* Form Components */
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--color-text);
  outline: none;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}
.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Typography styles */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.font-bold { font-weight: 700; }
.text-muted { color: var(--color-muted); }
.text-primary { color: var(--color-primary); }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }

.w-full { width: 100%; }

/* Sections */
.section-title {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.section-title::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  margin-right: 0.5rem;
}

/* Banner Carousel */
.top-banner {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #e2e8f0;
  margin-bottom: 2rem;
}
.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 80%);
  color: white;
  background-size: cover;
  background-position: center;
}
.banner-title {
  color: white;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  max-width: 800px;
}
.banner-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 1rem;
}

/* Video Card Overlay */
.video-card {
  position: relative;
}
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background-color 0.2s;
}
.video-card:hover .play-overlay {
  background-color: var(--color-primary);
}

/* Category Tabs */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  border-bottom: none;
}
.tab-btn {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tab-btn:hover {
  background: white;
  color: var(--color-text);
}
.tab-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* Timeline Feed */
.news-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}
.news-timeline::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-border);
  z-index: 0;
}
.timeline-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.timeline-time {
  width: 72px;
  flex-shrink: 0;
  text-align: right;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
  padding-top: 0.25rem;
  position: relative;
}
.timeline-time::after {
  content: '';
  position: absolute;
  top: 0.5rem;
  right: -1.7rem;
  width: 10px;
  height: 10px;
  background: white;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
}
.timeline-content {
  flex: 1;
}

/* Newsletter section */
.newsletter-section {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
  box-shadow: var(--shadow-sm);
}
.newsletter-form {
  display: flex;
  max-width: 400px;
  margin: 1rem auto 0;
}
.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-right: none;
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  outline: none;
}
.newsletter-btn {
  background-color: var(--color-text);
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background-color: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
  margin-top: auto;
}
.footer-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--color-text);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.5rem;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}
