.blog-main {
  padding-top: 100px;
  min-height: 100vh;
}

.blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
}

.blog-article {
  max-width: 100%;
  /* max-width: 800px; */
}

.print-logo {
  display: none;
}

.blog-header {
  margin-bottom: 32px;
}

.blog-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light-blue);
  margin-bottom: 16px;
}

.blog-header h1 {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.blog-meta {
  display: flex;
  gap: 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.blog-featured-image {
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
}

.blog-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-content {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.8;
}

.blog-content p {
  margin-bottom: 24px;
}

.blog-content p a {
  color: var(--primary-light-blue);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.blog-content ol {
  list-style-type: decimal;
  margin-block-start: 1em;
  margin-block-end: 1em;
  padding-inline-end: 40px;
  padding-inline-start: 40px;
}

.blog-content ul {
  margin-block-start: 1em;
  margin-block-end: 1em;
  padding-inline-end: 40px;
  padding-inline-start: 40px;
}

.blog-lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  border-left: 3px solid var(--primary-light-blue);
  padding-left: 20px;
  margin-bottom: 32px;
}

.blog-content h2 {
  font-family: Georgia, serif;
  font-size: 1.75rem;
  color: #ffffff;
  margin: 48px 0 24px;
  padding-top: 0;
}

.blog-content h3 {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  color: #ffffff;
  margin: 32px 0 16px;
}

.blog-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.blog-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.print-btn,
.copy-btn {
  display: flex;
  align-items: center;
  /* gap: 8px; */
  background: transparent;
  border: 0px solid rgba(14, 150, 216, 0.3);
  color: var(--primary-light-blue);
  padding: 8px 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.print-btn:hover,
.copy-btn:hover {
  background: rgba(14, 150, 216, 0.25);
  border-color: rgba(14, 150, 216, 0.5);
}

.blog-share {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.share-link {
  color: var(--primary-light-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.share-link:hover {
  color: #a5b4fc;
}

.blog-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}

.blog-sidebar::-webkit-scrollbar {
  width: 4px;
}

.blog-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.blog-sidebar::-webkit-scrollbar-thumb {
  background: rgba(14, 150, 216, 0.3);
  border-radius: 2px;
}

.blog-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 150, 216, 0.5);
}

.sidebar-title {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(14, 150, 216, 0.3);
}

.sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-post {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(26, 95, 180, 0.1) 0%,
    rgba(42, 157, 143, 0.1) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar-post:hover {
  background: linear-gradient(
    135deg,
    rgba(26, 95, 180, 0.2) 0%,
    rgba(42, 157, 143, 0.2) 100%
  );
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

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

.sidebar-date {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light-blue);
  margin-bottom: 4px;
}

.sidebar-post h4 {
  font-family: Georgia, serif;
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 6px;
}

.sidebar-author {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.sidebar-read-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.about-pilotlaunch {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--primary-light-blue);
  font-weight: 700;
  margin-top: 48px;
  padding-top: 32px;
}

.about-pilotlaunch-description {
  font-size: 0.9rem;
}

.ai_delegation_table {
  border-collapse: collapse;
  margin-bottom: 2em;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}

.ai_delegation_table TR:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

.ai_delegation_table TH,
.ai_delegation_table TD {
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  padding: 0.5rem 0.5rem;
}

.ai_delegation_table TH {
  background-color: rgba(80, 80, 80, 0.3);
  color: #ffffff;
}

.ai_delegation_table TD {
  color: rgba(255, 255, 255, 0.85);
  vertical-align: top;
}

.ai_delegation_table CAPTION {
  caption-side: top;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-style: italic;
  margin-bottom: 8px;
  text-align: left;
}

@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .blog-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .sidebar-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .blog-main {
    padding-top: 80px;
  }

  .blog-layout {
    padding: 24px 16px;
  }

  .blog-header h1 {
    font-size: 1.75rem;
  }

  .blog-meta {
    flex-direction: column;
    gap: 8px;
  }

  .blog-content {
    font-size: 1rem;
  }

  .blog-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar-posts {
    grid-template-columns: 1fr;
  }

  .ai_delegation_table TH,
  .ai_delegation_table TD {
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
    padding: 0.5rem 0.5rem;
  }
}

@media print {
  body {
    background: white !important;
    color: #000 !important;
  }

  .print-logo {
    display: block !important;
    margin-bottom: 24px;
  }

  .print-logo img {
    max-width: 200px;
    height: auto;
  }

  body::before {
    display: none !important;
  }

  .navbar,
  .blog-sidebar,
  .blog-actions,
  .footer {
    display: none !important;
  }

  .blog-main {
    padding-top: 0;
  }

  .blog-layout {
    display: block;
    max-width: 100%;
    padding: 0;
  }

  .blog-article {
    max-width: 100%;
  }

  .blog-header h1 {
    color: #000 !important;
    font-size: 2rem;
  }

  .blog-category {
    color: #333 !important;
  }

  .blog-meta {
    color: #666 !important;
  }

  .blog-featured-image {
    margin-bottom: 24px;
  }

  .blog-featured-image img {
    max-width: 100%;
    height: auto;
  }

  .blog-content {
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.6;
  }

  .blog-content h2,
  .blog-content h3 {
    color: #000 !important;
    page-break-after: avoid;
  }

  .blog-content p {
    orphans: 3;
    widows: 3;
  }

  .blog-lead {
    color: #333 !important;
    border-left-color: #333 !important;
  }

  .blog-footer {
    border-top-color: #ccc !important;
  }

  a {
    color: #000 !important;
    text-decoration: none !important;
  }
}
