@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --background: #faf8ff;
  --foreground: #151b29;
  --card: #ffffff;
  --card-foreground: #151b29;
  --primary: #00237c;
  --primary-hover: #102e8c;
  --primary-foreground: #ffffff;
  --secondary: #e9edff;
  --secondary-foreground: #102663;
  --muted: #f1f3ff;
  --muted-foreground: #444652;
  --accent: #ffd54f;
  --accent-hover: #f5c42a;
  --accent-foreground: #151b29;
  --destructive: #ba1a1a;
  --destructive-foreground: #ffffff;
  --border: #c5c5d4;
  --input-background: #f8fafc;
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 1.75rem;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 20px -2px rgba(18, 24, 38, 0.05);
  --shadow-lg: 0 20px 30px -18px rgba(0, 35, 124, 0.15);
  
  --font-display: "Hanken Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography classes */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-mono { font-family: var(--font-mono); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #102663;
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
}

/* Main Layout & Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 768px) {
  .container {
    padding-left: 64px;
    padding-right: 64px;
  }
}

.min-h-screen {
  min-height: 100vh;
}
.flex-col-between {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Grid helper */
.grid { display: grid; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }

.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
}

/* Header & Navigation */
.site-header {
  height: 81px;
  border-bottom: 1px solid var(--border);
  background-color: rgba(250, 248, 255, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .header-container {
    padding: 0 64px;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 8px;
  border-radius: var(--radius);
}
.logo-img {
  height: 100%;
  width: auto;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 28px;
}
@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #444652;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.mobile-menu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--primary);
}
@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav {
  position: absolute;
  top: 81px;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 99;
}
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-transform: uppercase;
}

/* Hero Section */
.hero-section {
  padding-top: 80px;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-section {
    grid-template-columns: 1.15fr 0.85fr;
    padding-top: 112px;
    padding-bottom: 112px;
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #102663;
  margin-top: 20px;
  line-height: 1.1;
}
@media (min-width: 768px) {
  .hero-title {
    font-size: 56px;
  }
}
@media (min-width: 1024px) {
  .hero-title {
    font-size: 64px;
  }
}

.hero-copy {
  font-size: 18px;
  line-height: 28px;
  color: #444652;
  margin-top: 24px;
  max-width: 576px;
}

.hero-graphic {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: radial-gradient(circle at 20% 20%, #ffffff 0, #e9edff 45%, #c9d4ff 100%);
  box-shadow: 0 20px 30px -18px rgba(0, 35, 124, 0.35);
  overflow: hidden;
}
.hero-graphic-inset {
  position: absolute;
  inset: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.hero-graphic-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  border-radius: var(--radius-md);
  background-color: var(--primary);
  padding: 20px 24px;
  color: #ffffff;
}
.badge-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.badge-text {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  max-width: 192px;
}
.hero-graphic-dot {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn-lg {
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: var(--radius);
}
.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 35, 124, 0.15);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
}
.btn-primary.active {
  background-color: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--accent);
  box-shadow: none;
}
.btn-primary.active:hover {
  background-color: var(--accent-hover);
  color: var(--accent-foreground);
}
.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background-color: var(--secondary);
}
.btn-outline.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.btn-accent {
  background-color: var(--accent);
  color: #151b29;
}
.btn-accent:hover {
  background-color: var(--accent-hover);
}
.btn-block {
  display: flex;
  width: 100%;
}

/* Foundation Cards */
.card-section {
  margin-top: 96px;
}
.card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: #ffffff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}
.card-title {
  margin-top: 40px;
  font-size: 28px;
  font-weight: 700;
}
.card-copy {
  margin-top: 12px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Dynamic Content Card (Media/Publications) */
.content-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.content-card-image-placeholder {
  height: 160px;
}
.bg-gradient-blue {
  background: linear-gradient(135deg, #e9edff, #a8b8f9);
}
.bg-gradient-gold {
  background: linear-gradient(135deg, #ffd54f, #f5df99);
}
.content-card-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.content-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.content-card-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  text-transform: uppercase;
}
.content-card-title {
  margin-top: 16px;
  font-size: 24px;
  line-height: 1.3;
}
.content-card-excerpt {
  margin-top: 12px;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.5;
  flex-grow: 1;
}
.content-card-link {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
}

/* Publication List Item */
.pub-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  overflow: hidden;
}
.pub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}
.pub-item:last-child {
  border-bottom: none;
}
.pub-item:hover {
  background-color: rgba(233, 237, 255, 0.4);
}
.pub-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-foreground);
  text-transform: uppercase;
}
.pub-title {
  margin-top: 8px;
  font-size: 20px;
  color: #102663;
}

/* Call to Action Banner */
.cta-banner {
  margin-top: 96px;
  border-radius: var(--radius-xl);
  background-color: var(--primary);
  padding: 48px 32px;
  text-align: center;
  color: #ffffff;
}
@media (min-width: 768px) {
  .cta-banner {
    padding: 64px 64px;
  }
}
.cta-banner .eyebrow {
  color: var(--accent);
}
.cta-banner h2 {
  color: #ffffff;
  font-size: 32px;
  margin-top: 16px;
}
@media (min-width: 768px) {
  .cta-banner h2 {
    font-size: 40px;
  }
}
.cta-banner .btn {
  margin-top: 28px;
}

/* Forms & Inputs */
.form-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--input-background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-textarea {
  height: 144px;
  padding: 16px;
  resize: vertical;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  background-color: #ffffff;
}

/* Alert Boxes & Flash */
.alert {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.alert-success {
  background-color: #def7ec;
  border-color: #31c48d;
  color: #03543f;
}
.alert-danger {
  background-color: #fde8e8;
  border-color: #f98080;
  color: #9b1c1c;
}
.alert-info {
  background-color: #e1effe;
  border-color: #76a9fa;
  color: #1e429f;
}

/* Split Layouts (Login/Register/Contact) */
.split-layout {
  padding-top: 96px;
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .split-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}
.contact-layout {
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 5fr 7fr;
  }
}

.login-form-container {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: #ffffff;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.login-form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--destructive) 100%);
}

.contact-info-card {
  display: flex;
  gap: 20px;
  margin-top: 32px;
}
.contact-info-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--secondary);
  color: var(--primary);
  flex-shrink: 0;
}
.contact-info-label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted-foreground);
}
.contact-info-value {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  word-break: break-all;
}

/* Footer */
.site-footer {
  margin-top: 96px;
  background-color: var(--primary);
  color: #ffffff;
}
.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  gap: 48px;
}
@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    padding: 64px 64px;
  }
}
@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo-box {
  display: inline-flex;
  background: var(--primary);
  padding: 8px;
  border-radius: var(--radius);
  height: 48px;
}
.footer-logo-box img {
  height: 100%;
}
.footer-copy {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 240px;
}
.footer-title {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #ffffff;
}
.footer-links {
  margin-top: 16px;
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}
.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}
@media (min-width: 768px) {
  .footer-bottom-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px 64px;
  }
}
.footer-socials {
  display: flex;
  gap: 24px;
}
.footer-socials a {
  color: rgba(255, 255, 255, 0.6);
}
.footer-socials a:hover {
  color: #ffffff;
}

/* Event List Card */
.event-card {
  display: grid;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  .event-card {
    grid-template-columns: 120px 1fr auto;
  }
}
.event-date-box {
  background-color: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
}
.event-kind {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.event-title {
  margin-top: 8px;
  font-size: 28px;
}
.event-place {
  margin-top: 8px;
  color: var(--muted-foreground);
}

/* Admin Dashboard Layout */
.admin-layout {
  display: grid;
  min-height: 100vh;
}
@media (min-width: 1024px) {
  .admin-layout {
    grid-template-columns: 260px 1fr;
  }
}

.admin-sidebar {
  background-color: #102663;
  color: #ffffff;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}
.admin-logo {
  display: flex;
  background-color: #102663;
  padding: 6px;
  border-radius: var(--radius);
  height: 64px;
  align-self: flex-start;
}
.admin-logo img {
  height: 100%;
}
.admin-nav {
  margin-top: 40px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.admin-nav-link:hover, .admin-nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.admin-logout {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.admin-content {
  padding: 40px 24px;
  background-color: var(--background);
  overflow-y: auto;
}
@media (min-width: 768px) {
  .admin-content {
    padding: 40px 48px;
  }
}

.admin-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .admin-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Stat Cards */
.stat-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 40px;
}
.stat-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-foreground);
  text-transform: uppercase;
}
.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}
.data-table th {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  background-color: rgba(233, 237, 255, 0.2);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-pending { background-color: #fef08a; color: #854d0e; }
.badge-confirmed { background-color: #bbf7d0; color: #166534; }
.badge-suspended { background-color: #fecaca; color: #991b1b; }
.badge-post { background-color: #e0f2fe; color: #075985; }
.badge-press_release { background-color: #f3e8ff; color: #6b21a8; }
.badge-draft { background-color: #f3f4f6; color: #374151; }
.badge-published { background-color: #dcfce7; color: #166534; }

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tab {
  padding: 12px 16px;
  font-weight: 500;
  color: var(--muted-foreground);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Image Upload Preview */
.upload-preview-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.upload-preview {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 24, 38, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-overlay.active {
  display: flex;
  opacity: 1;
}
.modal-container {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}
.modal-overlay.active .modal-container {
  transform: translateY(0);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #102663;
}
.modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  font-size: 24px;
  line-height: 1;
}
.modal-close:hover {
  color: var(--foreground);
}
.modal-body {
  padding: 24px;
  font-size: 15px;
  color: var(--foreground);
  line-height: 1.6;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background-color: var(--secondary);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.scroll-reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Slideshow / Carousel */
.slideshow-section {
  position: relative;
  height: 380px;
  background-color: #121826;
  overflow: hidden;
}
@media (min-width: 768px) {
  .slideshow-section {
    height: 500px;
  }
}
.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}
.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.slide-content {
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 0 24px;
}
.slide-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}
@media (min-width: 768px) {
  .slide-title {
    font-size: 52px;
  }
}
.slide-copy {
  font-family: var(--font-body);
  font-size: 16px;
  margin-top: 16px;
  color: #e2e8f0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
@media (min-width: 768px) {
  .slide-copy {
    font-size: 20px;
  }
}
.brand-accent {
  color: var(--accent);
}
.slide-subtitle {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #ffffff;
  opacity: 0.92;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  z-index: 10;
  outline: none;
}
.slide-arrow:hover {
  background-color: rgba(255, 255, 255, 0.4);
}
.slide-arrow:active {
  transform: translateY(-50%) scale(0.95);
}
.prev-arrow {
  left: 20px;
}
.next-arrow {
  right: 20px;
}
.slide-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}
.slide-dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
}
.slide-dot.active {
  background-color: #ffffff;
  width: 28px;
  border-radius: 5px;
}

/* Partners Logo scroller */
.partners-section {
  background-color: #ffffff;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.partners-eyebrow {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.logo-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.logo-marquee-wrapper::before, .logo-marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.logo-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}
.logo-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.logo-marquee-container {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}
.logo-marquee-container:hover {
  animation-play-state: paused;
}
.logo-item {
  height: 64px;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-item img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}
.logo-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* About Grid Section */
.about-section {
  padding: 96px 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}
.about-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  background-color: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px;
}
@media (min-width: 768px) {
  .about-logo-wrapper {
    height: 384px;
  }
}
.about-logo-img {
  max-height: 100%;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.about-title {
  font-size: 32px;
  font-weight: 700;
  position: relative;
  margin-bottom: 16px;
  color: #102663;
}
@media (min-width: 768px) {
  .about-title {
    font-size: 40px;
  }
}
.about-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 96px;
  height: 4px;
  background-color: var(--accent);
}
.about-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* Workstreams Section */
.workstreams-section {
  padding: 96px 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  color: #102663;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 40px;
  }
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 4px;
  background-color: var(--accent);
}
.workstreams-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 768px) {
  .workstreams-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.workstream-card {
  background-color: #ffffff;
  border-radius: 24px;
  border: 2px solid var(--border);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}
.workstream-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.workstream-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(0, 35, 124, 0.08);
  display: grid;
  place-items: center;
  color: var(--primary);
  margin-bottom: 24px;
}
.workstream-icon {
  width: 28px;
  height: 28px;
}
.workstream-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #102663;
}

/* Media & Events Previews */
.media-preview-section, .events-preview-section {
  padding: 96px 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
}
.section-header-row {
  text-align: center;
  margin-bottom: 56px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--muted-foreground);
  margin-top: 12px;
}
.loading-placeholder {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 16px;
  padding: 48px;
}

/* Publications Bento & Bento Box */
.pub-bento-grid {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}
@media (min-width: 1024px) {
  .pub-bento-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}
.pub-featured-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow);
}
.pub-stats-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 16px;
}
.pub-stat-box {
  background-color: #f8fafc;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.pub-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
}
@media (min-width: 768px) {
  .pub-stat-num {
    font-size: 48px;
  }
}
.pub-stat-label {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-top: 8px;
  line-height: 1.4;
}
.pub-side-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pub-side-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}
.pub-side-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.pub-side-title {
  font-size: 20px;
  font-weight: 700;
  color: #102663;
}
.pub-side-text {
  font-size: 15px;
  color: var(--muted-foreground);
  line-height: 1.5;
}
.pub-side-btn {
  align-self: flex-start;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.pub-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
  margin-bottom: 24px;
}
.pub-filter-btn {
  padding: 8px 20px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--muted-foreground);
}
.pub-filter-btn:hover, .pub-filter-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.pub-search-box {
  position: relative;
  margin-bottom: 32px;
  max-width: 480px;
}
.pub-search-input {
  width: 100%;
  height: 48px;
  padding-left: 44px;
  padding-right: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: #f8fafc;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}
.pub-search-input:focus {
  border-color: var(--primary);
  background-color: #ffffff;
}
.pub-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
}

/* About Convenor Layout */
.convenor-section {
  padding: 96px 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.convenor-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .convenor-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}
.convenor-image-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.convenor-bio {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-top: 16px;
}
.convenor-bio p {
  margin-bottom: 16px;
}
.convenor-credentials-box {
  background-color: #f1f3ff;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.convenor-credentials-title {
  font-size: 20px;
  font-weight: 700;
  color: #102663;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}
.convenor-credential-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.convenor-credential-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.convenor-credential-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--foreground);
}

/* Events Layout */
.event-major-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
  margin-top: 32px;
  display: grid;
  gap: 32px;
}
.event-meta-grid {
  display: grid;
  gap: 24px;
  margin-top: 16px;
}
@media (min-width: 768px) {
  .event-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.event-meta-item {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
}
.event-meta-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
}
.event-meta-value {
  font-size: 20px;
  font-weight: 700;
  color: #102663;
  margin-top: 4px;
}
.event-details-section {
  display: grid;
  gap: 48px;
  margin-top: 64px;
}
@media (min-width: 1024px) {
  .event-details-section {
    grid-template-columns: 1.4fr 1fr;
  }
}
.event-schedule-box {
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}
.event-schedule-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #102663;
}
.event-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.event-schedule-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.event-schedule-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.event-schedule-label {
  font-weight: 600;
  color: var(--foreground);
}
.event-schedule-time {
  font-family: var(--font-mono);
  color: var(--primary);
  font-weight: 500;
}
.event-price-box {
  background-color: #102663;
  color: #ffffff;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: fit-content;
}
.event-price-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 12px;
}
.event-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255,255,255,0.2);
  padding-bottom: 12px;
}
.event-price-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.event-price-label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}
.event-price-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}
.event-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.event-badge-policy {
  background-color: #eff6ff;
  color: #1d4ed8;
}
.event-badge-mixer {
  background-color: #fdf2f8;
  color: #be185d;
}
.event-badge-gov {
  background-color: #f0fdf4;
  color: #15803d;
}

/* Default Horizontal Rule Styling */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
  display: block;
  width: 100%;
}



