﻿:root {
  --bg: #ffffff;
  --card: #ffffff;
  --muted: #475569;
  --accent: #2563eb;
  --accent-2: #60a5fa;
  --portal: #0f172a;
  --accent-orange: #f59e0b;
  --accent-orange-2: #fbbf24;
  --cta-bg: #9ef1c9;
  --cta-text: #064e3b;
  --surface: #f8fafc;
  --card-border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --max-w: 1200px;
  --radius: 12px;
  --gap: 1.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-toggle {
  display: none;
}

.brand {
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  max-width: 70%;
  /* Prevent pushing toggle out */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand .muted {
  color: var(--muted);
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--portal);
  transform: translateY(-1px);
}

.main-nav .btn-primary {
  color: white !important;
}



.btn-portal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  color: var(--muted) !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.btn-portal:hover {
  color: var(--accent) !important;
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.1);
}

/* Hero Section */
.hero-premium {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: #0f172a;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  margin: 0 0 1.5rem;
  line-height: 1.1;
  color: #fff;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-premium {
  background: var(--accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
  text-decoration: none;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-portal {
  background: var(--portal);
  color: #fbbf24 !important;
  border: 1px solid #fbbf24;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-portal:hover {
  background: #fbbf24;
  color: var(--portal) !important;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

.btn-portal:hover svg {
  transform: scale(1.1) rotate(10deg);
}

.nav-library {
  background: var(--portal) !important;
  color: white !important;
  padding: 0.6rem 1.75rem !important;
  border-radius: 50px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.4), 0 0 20px rgba(37, 99, 235, 0.1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  position: relative;
  overflow: hidden;
}

.nav-library::before {
  content: '⚡';
  /* Changed to a more "energetic" icon */
  font-size: 1rem;
}

.nav-library:hover {
  background: var(--accent) !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4), 0 0 30px rgba(37, 99, 235, 0.2) !important;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.nav-library:hover::before {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* Sections */
.section {
  padding: 1rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 1rem;
  color: var(--text);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--muted);
}

/* Features/Value Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Paths Grid */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.path-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.path-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.path-header {
  padding: 2rem;
  color: white;
}

.path-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin: 0;
}

.path-body {
  padding: 2rem;
  flex-grow: 1;
}

.path-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.path-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
}

.path-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
}

.path-footer {
  padding: 1.5rem 2rem;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--card-border);
}

/* Trust Section */
.trust-section {
  background: #fff;
  padding: 4rem 0;
  border-bottom: 1px solid var(--card-border);
  text-align: center;
}

.trust-logos {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  opacity: 0.4;
}

.trust-logos span {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

/* Modern Footer */
.site-footer {
  background: #0f172a;
  color: white;
  padding: 5rem 0 2rem;
  border-top: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1.25fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .brand {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 1rem;
  max-width: 320px;
}

.footer-column h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-newsletter h4 {
  color: #fff;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  margin-bottom: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.9rem;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a {
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-socials a:hover {
  color: #fff;
}

/* About Page Specific */
.about-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 8rem 0 6rem;
  text-align: center;
}

.about-content {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.stat-item p {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Restored Essential Styles */
.scroll-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.scroll-btn.show {
  opacity: 1;
  visibility: visible;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.topic-card {
  display: flex;
  flex-direction: column;
  background: #ffffff !important;
  /* Solid background for performance */
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px !important;
  padding: 2rem !important;
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.3s ease !important;
  position: relative !important;
  height: 100% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  will-change: transform;
  /* Hint for hardware acceleration */
}

.topic-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12) !important;
  border-color: var(--accent) !important;
}

/* Global Card Visual Indicators (Top Bars) - Optimized */
article.card.topic-card {
  position: relative !important;
  overflow: hidden !important;
}

article.card.topic-card::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 5px !important;
  background: #2563eb !important;
  /* Solid color for faster painting */
  z-index: 1 !important;
}

/* Gold Bar for Seminars */
article.card.topic-card[data-seminar="true"]::before {
  background: #fbbf24 !important;
  /* Solid color for faster painting */
}

/* Global Seminar Styling Enhancements - Optimized */
article.card.topic-card[data-seminar="true"] {
  background: #fffdf5 !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
}

.topic-card[data-seminar="true"] .topic-header h4::before {
  content: '🎙️';
  margin-right: 0.6rem;
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.topic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.topic-header h4 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
}

.topic-badges {
  display: flex;
  gap: 0.5rem;
}

.badge {
  background: var(--surface) !important;
  color: var(--portal) !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 8px !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
}

.topic-card[data-seminar="true"] .badge {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fde68a !important;
}

.topic-header h4 {
  margin: 0 !important;
  font-weight: 800 !important;
  color: var(--portal) !important;
  line-height: 1.3 !important;
}

.topic-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.topic-footer {
  margin-top: auto;
}

.topic-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.external-link {
  color: var(--accent) !important;
  text-decoration: none !important;
  font-weight: 300 !important;
  font-size: 0.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  padding: 0 !important;
  background: transparent !important;
  transition: opacity 0.2s !important;
  border: none !important;
}

.external-link:hover {
  background: transparent !important;
  opacity: 0.7 !important;
  color: var(--accent) !important;
  box-shadow: none !important;
}

.external-link::after {
  content: '→';
  transition: transform 0.3s !important;
}

.external-link:hover::after {
  transform: translateX(4px) !important;
}



.filter-chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.chip {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  background: white;
  border: 1px solid var(--card-border);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.chip:hover {
  background: var(--surface);
}

.chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.card strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-family: "Playfair Display", serif;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-status {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

ul li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

/* About Page Premium Styles */
.about-premium-hero {
  position: relative;
  padding: 1rem 0 1rem;
  background: #020617;
  overflow: hidden;
  color: white;
}

.about-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  z-index: 1;
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.2), #020617);
  z-index: 2;
}

.about-hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 254, 0.1);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.founder-section {
  padding: 1rem 0;
  background: white;
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.quote-box {
  font-style: italic;
  border-left: 4px solid var(--accent);
  padding-left: 2rem;
  margin: 2rem 0;
  color: #475569;
  font-size: 1.25rem;
  line-height: 1.8;
}

.value-card {
  padding: 2.5rem;
  border-radius: 20px;
  background: #f8fafc;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.value-card:hover {
  background: white;
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.nft-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .founder-grid {
    grid-template-columns: 1fr;
  }

  /* Mobil Menü Stilleri */
  .brand {
    font-size: 1.5rem;
    /* Increased to approx +2pt */
  }

  .brand .muted {
    font-size: 1.2rem;
    /* Increased as requested */
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
  }

  .hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: background 0.3s;
  }

  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    left: 0;
    transition: all 0.3s;
  }

  .hamburger::before {
    top: -8px;
  }

  .hamburger::after {
    bottom: -8px;
  }

  /* Open state (X icon) */
  .site-header.open .hamburger {
    background: transparent;
  }

  .site-header.open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }

  .site-header.open .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    visibility: hidden;
    display: flex;
    /* Always flex but hidden */
  }

  .site-header.open .main-nav {
    visibility: visible;
    transform: translateX(0);
  }

  /* Menu Overlay */
  .site-header::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .site-header.open::after {
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    font-size: 1.05rem;
    /* Reduced for better fit */
    padding: 1rem 3.5rem;
    /* Space for icons */
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 0.75rem;
    text-transform: none !important;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  /* Reset button styles in mobile menu to look like links */
  .main-nav .btn-portal,
  .main-nav .nav-library,
  .main-nav .btn-primary {
    background: none !important;
    color: var(--text) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1rem !important;
    width: 100%;
    text-align: center;
    font-size: 1.05rem !important;
    /* Match other links */
    font-weight: 500 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transform: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .main-nav .nav-library,
  .main-nav .btn-portal {
    color: var(--accent) !important;
    font-weight: 700 !important;
    background: none !important;
    border-radius: 0;
    margin: 0;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    text-transform: none !important;
  }

  .main-nav .nav-library::before {
    content: '📚';
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
  }

  .main-nav .btn-portal svg {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    stroke: var(--accent);
  }

  .main-nav .btn-primary:hover,
  .main-nav .nav-library:hover,
  .main-nav .btn-portal:hover {
    color: var(--accent) !important;
    background: rgba(37, 99, 235, 0.12) !important;
  }

  /* Hide search clear on mobile */
  #topicSearchClear {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
}