/* Professional Design System - TrumpRx Inspired */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,400&display=swap');

:root {
  --cream: #F5F2ED;
  --cream-dark: #EDE8E1;
  --white: #FFFFFF;
  --white-soft: #FAF8F5;
  --charcoal: #2D2A26;
  --charcoal-light: #4A4642;
  --muted: #6B665F;
  --forest: #2D5A3D;
  --forest-light: #4A7C59;
  --forest-pale: #E8F0E9;
  --teal: #3D6B6B;
  --ochre: #B8956B;
  --rose: #A67C7C;
  --purple: #7A6B8A;
  --coral: #C48B7A;
  --pastel-green: #D4E4D4;
  --pastel-teal: #CFE4E4;
  --pastel-ochre: #E8DDD0;
  --pastel-rose: #E8D4D4;
  --pastel-purple: #DDD4E8;
  --pastel-coral: #E8D4CC;
  --border-light: #E5E0D8;
  --border-medium: #D5CFC5;
  --font-display: 'Newsreader', 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'Space Grotesk', 'Inter', sans-serif;
  --max-width: 1200px;
  --content-width: 720px;
  --shadow-sm: 0 1px 2px rgba(45, 42, 38, 0.04);
  --shadow-md: 0 4px 12px rgba(45, 42, 38, 0.08);
  --shadow-lg: 0 12px 40px rgba(45, 42, 38, 0.12);
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 100px;
}

[data-theme="dark"], html.dark {
  --cream: #0D120F;
  --cream-dark: #141A16;
  --white: #1A211C;
  --white-soft: #212A24;
  --charcoal: #E8EDE9;
  --charcoal-light: #C5D0C8;
  --muted: #8A9A8A;
  --forest: #7AB88A;
  --forest-light: #9FD4AD;
  --forest-pale: #1E3A28;
  --pastel-green: #2A3D30;
  --pastel-teal: #2D4A45;
  --pastel-ochre: #4A3D2A;
  --pastel-rose: #4A3030;
  --pastel-purple: #3D3045;
  --pastel-coral: #4A3530;
  --border-light: #2A3530;
  --border-medium: #3D4A40;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pro-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pro-headline-xl { font-size: clamp(3rem, 8vw, 5.5rem); }
.pro-headline-lg { font-size: clamp(2.5rem, 6vw, 4rem); }

/* Hero */
.pro-hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.pro-hero-avatar {
  display: block;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  animation: pro-fade-in 0.8s ease forwards;
  animation-delay: 0.05s;
  opacity: 0;
}

.pro-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.pro-hero-avatar:hover .pro-avatar-img {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--forest);
}

.pro-hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse, var(--forest-pale) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
  animation: pro-float 8s ease-in-out infinite;
}

.pro-hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 35%;
  height: 50%;
  background: radial-gradient(ellipse, var(--pastel-purple) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
  animation: pro-float 10s ease-in-out infinite reverse;
}

@keyframes pro-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(10px, -15px) scale(1.05); }
  50% { transform: translate(-5px, 10px) scale(0.95); }
  75% { transform: translate(15px, 5px) scale(1.02); }
}

.pro-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
  animation: pro-fade-in 0.8s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.pro-hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--forest);
  border-radius: 50%;
  animation: pro-pulse 2s ease-in-out infinite;
}

@keyframes pro-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.pro-hero-title {
  max-width: 900px;
  margin-bottom: 1.5rem;
  animation: pro-fade-in-up 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.pro-hero-title .highlight {
  color: var(--forest);
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* Glow effect on entire h1 title - Expanded */
.pro-hero-title {
  position: relative;
}

.pro-hero-title::before {
  content: '';
  position: absolute;
  width: 160%;
  height: 200%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(193, 225, 193, 0.9) 0%, rgba(167, 199, 231, 0.6) 50%, transparent 80%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.pro-hero-title::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 240%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(193, 225, 193, 0.4) 0%, rgba(167, 199, 231, 0.2) 40%, transparent 70%);
  filter: blur(120px);
  z-index: -2;
  pointer-events: none;
}

/* Dark Mode Safety Override */
@media (prefers-color-scheme: dark) {
  .pro-hero-title::before {
    background: radial-gradient(ellipse at center, rgba(45, 90, 61, 0.5) 0%, rgba(63, 107, 107, 0.3) 50%, transparent 80%);
    filter: blur(60px);
    opacity: 0.6;
  }
  .pro-hero-title::after {
    background: radial-gradient(ellipse at center, rgba(45, 90, 61, 0.2) 0%, rgba(63, 107, 107, 0.1) 40%, transparent 70%);
    filter: blur(80px);
    opacity: 0.4;
  }
}

[data-theme="dark"] .pro-hero-title::before,
html.dark .pro-hero-title::before {
  background: radial-gradient(ellipse at center, rgba(45, 90, 61, 0.5) 0%, rgba(63, 107, 107, 0.3) 50%, transparent 80%);
  filter: blur(60px);
  opacity: 0.6;
}

[data-theme="dark"] .pro-hero-title::after,
html.dark .pro-hero-title::after {
  background: radial-gradient(ellipse at center, rgba(45, 90, 61, 0.2) 0%, rgba(63, 107, 107, 0.1) 40%, transparent 70%);
  filter: blur(80px);
  opacity: 0.4;
}

@keyframes pro-glow-pulse {
  0%, 100% { opacity: 0.75; filter: blur(18px); transform: scale(1); }
  50% { opacity: 0.95; filter: blur(24px); transform: scale(1.05); }
}

@keyframes pro-glow-pulse-outer {
  0%, 100% { opacity: 0.35; filter: blur(30px); transform: scale(1); }
  50% { opacity: 0.55; filter: blur(40px); transform: scale(1.1); }
}

.pro-hero-subtitle {
  max-width: 600px;
  font-size: 1.25rem;
  color: var(--charcoal-light);
  margin-bottom: 2.5rem;
  animation: pro-fade-in-up 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.pro-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
  animation: pro-fade-in-up 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

/* Buttons */
.pro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.pro-btn-primary {
  background: var(--charcoal);
  color: var(--cream);
}

.pro-btn-primary:hover {
  background: var(--forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pro-btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--border-medium);
}

.pro-btn-secondary:hover {
  border-color: var(--forest);
  color: var(--forest);
  transform: translateY(-2px);
}

/* Feature Cards */
.pro-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: var(--max-width);
  padding: 0 1.5rem;
  margin-bottom: 4rem;
}

.pro-feature-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pro-fade-in-up 0.8s ease forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.pro-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(45, 90, 61, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pro-feature-card:nth-child(1) { animation-delay: 0.5s; }
.pro-feature-card:nth-child(2) { animation-delay: 0.6s; }
.pro-feature-card:nth-child(3) { animation-delay: 0.7s; }

.pro-feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px -15px rgba(45, 90, 61, 0.15);
  border-color: var(--forest);
}

.pro-feature-card:hover::before {
  opacity: 1;
}

.pro-feature-card:hover .pro-feature-icon {
  transform: scale(1.1) rotate(3deg);
}

.pro-feature-card:hover .pro-feature-meta {
  transform: translateX(4px);
}

.pro-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pro-feature-icon.green { background: var(--pastel-green); }
.pro-feature-icon.teal { background: var(--pastel-teal); }
.pro-feature-icon.ochre { background: var(--pastel-ochre); }
.pro-feature-icon.purple { background: var(--pastel-purple); }

.pro-feature-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pro-feature-desc {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.pro-feature-meta {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--forest);
  font-weight: 500;
  transition: transform 0.3s ease;
  display: inline-block;
}

/* Posts List */
.pro-section {
  width: 100%;
  max-width: var(--max-width);
  padding: 4rem 1.5rem;
  margin: 0 auto;
  text-align: center;
}

.pro-section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  justify-content: center;
}

.pro-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pro-posts-list .pro-post-item {
  animation: pro-fade-in-left 0.5s ease forwards;
  opacity: 0;
}

.pro-posts-list .pro-post-item:nth-child(1) { animation-delay: 0.05s; }
.pro-posts-list .pro-post-item:nth-child(2) { animation-delay: 0.1s; }
.pro-posts-list .pro-post-item:nth-child(3) { animation-delay: 0.15s; }
.pro-posts-list .pro-post-item:nth-child(4) { animation-delay: 0.2s; }
.pro-posts-list .pro-post-item:nth-child(5) { animation-delay: 0.25s; }
.pro-posts-list .pro-post-item:nth-child(6) { animation-delay: 0.3s; }
.pro-posts-list .pro-post-item:nth-child(7) { animation-delay: 0.35s; }
.pro-posts-list .pro-post-item:nth-child(8) { animation-delay: 0.4s; }
.pro-posts-list .pro-post-item:nth-child(9) { animation-delay: 0.45s; }
.pro-posts-list .pro-post-item:nth-child(10) { animation-delay: 0.5s; }

@keyframes pro-fade-in-left {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.pro-post-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pro-post-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--forest);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.pro-post-item:hover {
  border-color: var(--forest);
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(45, 90, 61, 0.08);
}

.pro-post-item:hover::before {
  transform: scaleY(1);
}

.pro-post-date {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
  min-width: 80px;
}

.pro-post-content {
  flex: 1;
  min-width: 0;
}

.pro-post-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-post-meta {
  font-size: 0.875rem;
  color: var(--muted);
}

.pro-post-arrow {
  color: var(--border-medium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pro-post-item:hover .pro-post-arrow {
  color: var(--forest);
  transform: translateX(6px);
}

/* Tags */
.pro-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pro-tags-cloud .pro-tag {
  animation: pro-pop-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: scale(0.8);
}

@keyframes pro-pop-in {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.pro-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--charcoal);
  text-decoration: none;
  transition: all var(--transition-base);
}

.pro-tag:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(45, 90, 61, 0.12);
}

/* Light Mode - 12 Pastel Colors for Tags */
.pro-tag-0 { background-color: #D4E4D4 !important; color: #2D5A3D !important; }
.pro-tag-1 { background-color: #CFE4E4 !important; color: #3D6B6B !important; }
.pro-tag-2 { background-color: #DDD4E8 !important; color: #7B6B8F !important; }
.pro-tag-3 { background-color: #E8D4D4 !important; color: #A67B7B !important; }
.pro-tag-4 { background-color: #E8D4CC !important; color: #C48B7A !important; }
.pro-tag-5 { background-color: #E8DDD0 !important; color: #B8954A !important; }
.pro-tag-6 { background-color: #D4E0E8 !important; color: #3D5A6B !important; }
.pro-tag-7 { background-color: #E0D4E4 !important; color: #6B3D5A !important; }
.pro-tag-8 { background-color: #E4E4D4 !important; color: #5A5A3D !important; }
.pro-tag-9 { background-color: #D8E4DC !important; color: #3D5A4A !important; }
.pro-tag-10 { background-color: #E4D8DC !important; color: #5A3D4A !important; }
.pro-tag-11 { background-color: #DCE4E8 !important; color: #3D4A5A !important; }

.pro-tag-count {
  background: rgba(255, 255, 255, 0.5);
  color: var(--charcoal);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  transition: all var(--transition-base);
  font-weight: 500;
}

/* Dark Mode - 12 Pastel Colors for Tags */
[data-theme="dark"] .pro-tag-0, .dark .pro-tag-0 { background-color: #3A3A2A !important; color: #F5F5DC !important; }
[data-theme="dark"] .pro-tag-1, .dark .pro-tag-1 { background-color: #4A3A3A !important; color: #FFE4E1 !important; }
[data-theme="dark"] .pro-tag-2, .dark .pro-tag-2 { background-color: #2A4A48 !important; color: #E0F2F1 !important; }
[data-theme="dark"] .pro-tag-3, .dark .pro-tag-3 { background-color: #3A2A4A !important; color: #F3E5F5 !important; }
[data-theme="dark"] .pro-tag-4, .dark .pro-tag-4 { background-color: #4A3A2A !important; color: #FFF3E0 !important; }
[data-theme="dark"] .pro-tag-5, .dark .pro-tag-5 { background-color: #2A4A2A !important; color: #E8F5E9 !important; }
[data-theme="dark"] .pro-tag-6, .dark .pro-tag-6 { background-color: #2A3A4A !important; color: #E3F2FD !important; }
[data-theme="dark"] .pro-tag-7, .dark .pro-tag-7 { background-color: #4A302A !important; color: #FBE9E7 !important; }
[data-theme="dark"] .pro-tag-8, .dark .pro-tag-8 { background-color: #2A4A5A !important; color: #E0F7FA !important; }
[data-theme="dark"] .pro-tag-9, .dark .pro-tag-9 { background-color: #3A4A2A !important; color: #F1F8E9 !important; }
[data-theme="dark"] .pro-tag-10, .dark .pro-tag-10 { background-color: #4A402A !important; color: #FFF8E1 !important; }
[data-theme="dark"] .pro-tag-11, .dark .pro-tag-11 { background-color: #4A2A3A !important; color: #FCE4EC !important; }

[data-theme="dark"] .pro-tag:hover,
html.dark .pro-tag:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Categories */
.pro-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pro-category-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pro-fade-in-up 0.6s ease forwards;
  opacity: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pro-category-card:nth-child(1) { animation-delay: 0.05s; }
.pro-category-card:nth-child(2) { animation-delay: 0.1s; }
.pro-category-card:nth-child(3) { animation-delay: 0.15s; }
.pro-category-card:nth-child(4) { animation-delay: 0.2s; }
.pro-category-card:nth-child(5) { animation-delay: 0.25s; }
.pro-category-card:nth-child(6) { animation-delay: 0.3s; }
.pro-category-card:nth-child(7) { animation-delay: 0.35s; }
.pro-category-card:nth-child(8) { animation-delay: 0.4s; }
.pro-category-card:nth-child(9) { animation-delay: 0.45s; }
.pro-category-card:nth-child(10) { animation-delay: 0.5s; }
.pro-category-card:nth-child(11) { animation-delay: 0.55s; }
.pro-category-card:nth-child(12) { animation-delay: 0.6s; }

.pro-category-card:hover {
  box-shadow: 0 20px 40px -15px rgba(45, 90, 61, 0.12);
  transform: translateY(-6px);
  border-color: var(--forest);
}

.pro-category-card:hover .pro-category-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pro-category-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  display: block;
}

.pro-category-header.green { background: var(--pastel-green); }
.pro-category-header.teal { background: var(--pastel-teal); }
.pro-category-header.ochre { background: var(--pastel-ochre); }
.pro-category-header.rose { background: var(--pastel-rose); }
.pro-category-header.purple { background: var(--pastel-purple); }
.pro-category-header.coral { background: var(--pastel-coral); }

.pro-category-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pro-category-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.pro-category-count {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--muted);
}

.pro-category-posts {
  padding: 1rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 120px;
}

.pro-category-post {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9375rem;
}

.pro-category-post:last-child {
  border-bottom: none;
}

.pro-category-post a {
  color: var(--charcoal);
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pro-category-post a:hover {
  color: var(--forest);
}

.pro-category-footer {
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.pro-category-view-all {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  color: var(--forest);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.875rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  background: var(--white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pro-category-view-all::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--forest-pale) 0%, var(--pastel-teal) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.pro-category-view-all:hover {
  color: var(--forest);
  border-color: var(--forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pro-category-view-all:hover::before {
  opacity: 1;
}

/* Article */
.pro-article {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.pro-article-header {
  margin-bottom: 3rem;
}

.pro-article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.pro-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--muted);
}

.pro-article-meta a {
  color: var(--forest);
  text-decoration: none;
}

.pro-article-meta a:hover {
  text-decoration: underline;
}

.pro-article-description {
  font-size: 1.25rem;
  color: var(--charcoal-light);
  font-style: italic;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.pro-article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.pro-article-content h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.pro-article-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.pro-article-content p {
  margin-bottom: 1.5rem;
}

.pro-article-content a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pro-article-content a:hover {
  background: var(--forest-pale);
}

.pro-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.pro-article-content ul,
.pro-article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.pro-article-content li {
  margin-bottom: 0.5rem;
}

.pro-article-content blockquote {
  border-left: 3px solid var(--forest);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--charcoal-light);
}

.pro-article-content code {
  background: var(--cream-dark);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.pro-article-content pre {
  background: var(--charcoal);
  color: var(--cream);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 2rem 0;
}

.pro-article-content pre code {
  background: none;
  padding: 0;
}

.pro-article-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pro-article-tag {
  padding: 0.375rem 0.875rem;
  background: var(--cream-dark);
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--charcoal);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pro-article-tag:hover {
  background: var(--forest);
  color: white;
}

/* Archives */
.pro-archives {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.pro-year {
  margin-bottom: 3rem;
}

.pro-year-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pro-year-text {
  font-family: 'Space Grotesk', var(--font-ui);
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
}

.pro-year-line {
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.pro-year-posts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pro-archive-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

.pro-archive-item:hover {
  border-color: var(--forest);
  transform: translateX(4px);
}

.pro-archive-date {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
  min-width: 100px;
}

.pro-archive-title {
  flex: 1;
  font-size: 1rem;
  color: var(--charcoal);
}

.pro-archive-arrow {
  color: var(--border-medium);
  transition: all var(--transition-base);
}

.pro-archive-item:hover .pro-archive-arrow {
  color: var(--forest);
  transform: translateX(4px);
}

/* Footer */
.pro-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border-light);
  margin-top: 4rem;
}

/* Animations */
@keyframes pro-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pro-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .pro-hero {
    min-height: 80vh;
    padding: 5rem 1rem 3rem;
  }
  
  .pro-hero-subtitle {
    font-size: 1.125rem;
  }
  
  .pro-hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  
  .pro-btn {
    width: 100%;
  }
  
  .pro-features {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .pro-post-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .pro-post-title {
    white-space: normal;
  }
  
  .pro-post-arrow {
    display: none;
  }
  
  .pro-categories-grid {
    grid-template-columns: 1fr;
  }
  
  .pro-archive-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .pro-hero {
    min-height: 70vh;
    padding: 2rem 1rem;
  }
  
  .pro-hero-title .highlight::before {
    filter: blur(12px);
    opacity: 0.7;
  }
  
  .pro-hero-title .highlight::after {
    filter: blur(20px);
    opacity: 0.3;
  }
  
  .pro-features {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .pro-section {
    padding: 2rem 1rem;
  }
  
  .pro-archives {
    padding: 2rem 1rem;
  }
  
  .pro-year-text {
    font-size: 1.5rem;
  }
}

/* Global Image Fixes */
img {
  max-width: 100%;
  height: auto;
}

svg {
  max-width: 100%;
  max-height: 100%;
}

.prose img,
article img,
.content img,
.post-content img,
.entry-content img {
  max-width: 100%;
  height: auto;
}

.taxonomy-icon,
.term-icon,
.category-icon,
.tag-icon {
  display: none !important;
}

/* --- UI CLEANUP --- */

/* 1. HIDE THE BOTTOM FLOATING BAR (TOC/Search Pill) */
.post-bottom-nav, 
#footer-post-nav, 
.bottom-menu,
.floating-bottom-bar,
#reading-progress-container + div:not(.post-with-sidebar),
[class*="bottom"][class*="nav"],
[id*="bottom"][id*="nav"] { 
    display: none !important; 
}

/* 2. HIDE THE MAC SHORTCUT (⌘ K) hints */
.search-keys, 
.search-shortcut, 
.search-widget-shortcut,
.search-key-hint { 
    display: none !important; 
}

/* 3. FIX LEFT SIDEBAR SEARCH INPUT */
/* Brings the input to the front so it is clickable */
.search-widget input, 
#search-widget-input,
.sidebar-search input {
    z-index: 9999;
    cursor: text !important;
    pointer-events: auto !important;
}

/* ============================================
   RELATED POSTS STYLING
   ============================================ */

/* Related Posts Section - Extra spacing from previous content */
.related-posts {
  margin-top: 4rem !important;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

/* Related Posts Title - Centered, no icon */
.related-posts h2 {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--charcoal);
  margin-bottom: 2rem;
}

/* Related Posts Grid Container - Centered */
.related-posts .grid {
  justify-content: center;
}

/* Related Post Cards - Consistent styling */
.related-posts article {
  width: 100%;
}

.related-posts article a {
  text-decoration: none;
}

.related-posts article h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--charcoal);
  transition: color 0.3s ease;
}

.related-posts article:hover h3 {
  color: var(--forest);
}

/* Dark mode adjustments */
[data-theme="dark"] .related-posts,
html.dark .related-posts {
  border-top-color: var(--border-medium);
}

[data-theme="dark"] .related-posts h2,
html.dark .related-posts h2 {
  color: var(--charcoal);
}

[data-theme="dark"] .related-posts article h3,
html.dark .related-posts article h3 {
  color: var(--charcoal-light);
}

[data-theme="dark"] .related-posts article:hover h3,
html.dark .related-posts article:hover h3 {
  color: var(--forest);
}

/* ============================================
   DOCK HIDING - Using sidebars instead
   ============================================ */

/* Hide the bottom dock completely */
#dock,
.dock,
[data-dock-mode],
[id="dock"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hide dock float trigger */
#dock-float-trigger,
[id="dock-float-trigger"] {
  display: none !important;
  visibility: hidden !important;
}

/* Hide TOC card popup (using sidebar instead) */
#toc-card,
#toc-overlay,
[id="toc-card"],
[id="toc-overlay"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================
   RELATED POSTS - IMPROVED DESIGN
   ============================================ */

/* Related Posts Section - Better spacing from previous content */
.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  position: relative;
}

/* Header with decorative line */
.related-posts-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.related-posts-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--charcoal);
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.related-posts-line {
  width: 60px;
  height: 3px;
  background: var(--forest);
  margin: 0 auto;
  border-radius: 2px;
}

/* Grid Container */
.related-posts-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Single post - centered */
.related-posts-count-1 {
  grid-template-columns: minmax(300px, 500px);
  justify-content: center;
}

/* Two posts - side by side, centered */
.related-posts-count-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
}

/* Three posts */
.related-posts-count-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
  .related-posts-grid {
    grid-template-columns: 1fr !important;
    max-width: 400px;
  }
}

/* Related Post Card - Cleaner Design */
.related-post-card {
  position: relative;
}

.related-post-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-post-link:hover {
  border-color: var(--forest);
  box-shadow: 0 8px 24px rgba(45, 90, 61, 0.12);
  transform: translateY(-3px);
}

/* Image */
.related-post-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: var(--cream-dark);
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-post-link:hover .related-post-image img {
  transform: scale(1.05);
}

/* Content */
.related-post-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-post-content h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--charcoal);
  margin: 0 0 0.5rem 0;
  transition: color 0.2s ease;
}

.related-post-link:hover .related-post-content h3 {
  color: var(--forest);
}

.related-post-summary {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-read {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--forest);
  transition: all 0.2s ease;
}

.related-post-link:hover .related-post-read {
  color: var(--forest-light);
}

/* Dark mode adjustments */
[data-theme="dark"] .related-posts,
html.dark .related-posts {
  border-top-color: var(--border-medium);
}

[data-theme="dark"] .related-posts-header h2,
html.dark .related-posts-header h2 {
  color: var(--charcoal);
}

[data-theme="dark"] .related-post-link,
html.dark .related-post-link {
  background: var(--white);
  border-color: var(--border-light);
}

[data-theme="dark"] .related-post-link:hover,
html.dark .related-post-link:hover {
  border-color: var(--forest);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .related-post-image,
html.dark .related-post-image {
  background: var(--cream-dark);
}

[data-theme="dark"] .related-post-content h3,
html.dark .related-post-content h3 {
  color: var(--charcoal);
}

[data-theme="dark"] .related-post-link:hover .related-post-content h3,
html.dark .related-post-link:hover .related-post-content h3 {
  color: var(--forest);
}

[data-theme="dark"] .related-post-summary,
html.dark .related-post-summary {
  color: var(--muted);
}

[data-theme="dark"] .related-post-read,
html.dark .related-post-read {
  color: var(--forest);
}

/* ============================================
   FOOTER COPYRIGHT - GREEN COLOR
   ============================================ */

footer .text-muted-foreground,
footer p {
  color: var(--forest) !important;
  font-weight: 500;
}

[data-theme="dark"] footer .text-muted-foreground,
[data-theme="dark"] footer p,
html.dark footer .text-muted-foreground,
html.dark footer p {
  color: var(--forest) !important;
}

/* ============================================
   POST NAVIGATION SPACING
   ============================================ */

/* Add more space after post navigation before related posts */
.post-navigation {
  margin-bottom: 4rem !important;
}

/* ============================================
   DOCK HIDING - Using sidebars instead
   ============================================ */

/* Hide the bottom dock completely */
#dock,
.dock,
[data-dock-mode],
[id="dock"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hide dock float trigger */
#dock-float-trigger,
[id="dock-float-trigger"] {
  display: none !important;
  visibility: hidden !important;
}

/* Hide TOC card popup (using sidebar instead) */
#toc-card,
#toc-overlay,
[id="toc-card"],
[id="toc-overlay"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================
   FOOTER COPYRIGHT - FOREST GREEN
   ============================================ */

.footer-copyright,
.footer-copyright p {
  color: var(--forest) !important;
  font-weight: 500;
}

[data-theme="dark"] .footer-copyright,
[data-theme="dark"] .footer-copyright p,
html.dark .footer-copyright,
html.dark .footer-copyright p {
  color: var(--forest) !important;
}
