/* Public Blog Stylesheet - Final Clean Version */
/* Centralized styles for all public blog pages - No Duplicates */

/* ============================
   RESET AND BASE STYLES 
   ============================ */

/* Safe area support for devices with notches */
:root {
  --safe-area-inset-top: env(safe-area-inset-top);
  --safe-area-inset-right: env(safe-area-inset-right);
  --safe-area-inset-bottom: env(safe-area-inset-bottom);
  --safe-area-inset-left: env(safe-area-inset-left);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #374151;
  margin: 0;
  padding: 0;
  background-color: #f9fafb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================
   HEADER STYLES 
   ============================ */
.blog-header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
  /* Safe area for notches */
  padding-top: var(--safe-area-inset-top);
}

.blog-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-logo {
  height: 2.25rem;
  width: auto;
  margin-right: 1rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #111827;
  text-decoration: none;
}

.blog-title:hover {
  color: #374151;
}

.blog-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.blog-nav a:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.blog-nav a.active {
  font-weight: 600;
}



/* ============================
   LAYOUT CONTAINERS 
   ============================ */
.blog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  line-height: 1.7;
  /* Safe area for horizontal insets */
  padding-left: calc(1rem + var(--safe-area-inset-left));
  padding-right: calc(1rem + var(--safe-area-inset-right));
}

.home-content {
  max-width: 100%;
}

.blog-content-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

.about-content {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  max-width: 900px;
  margin: 0 auto 2rem auto;
}

.about-content:last-child {
  margin-bottom: 0;
}

/* ============================
   FEATURED CAROUSEL STYLES (Embla)
   ============================ */
.featured-carousel-section {
  margin-bottom: 0.5rem;
  /* Prevent carousel from exceeding container bounds */
  overflow: hidden;
}

/* Embla carousel core structure */
.embla {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  /* Match blog-main's horizontal padding so carousel aligns with article list */
  padding-left: calc(1rem + var(--safe-area-inset-left));
  /* padding-right: calc(1rem + var(--safe-area-inset-right)); */
  box-sizing: border-box;
}

.embla__viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.embla__container {
  display: flex;
  backface-visibility: hidden;
  touch-action: pan-y;
  max-width: 100%;
}

.embla__slide {
  flex: 0 0 33.333%;
  min-width: 0;
  max-width: 33.333%;
  padding-right: 20px;
}

.embla__slide .article-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Navigation dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  border-color: #9ca3af;
  transform: scale(1.2);
}

.carousel-dot.active {
  background: #3b82f6;
  border-color: #3b82f6;
}

/* Responsive carousel */
@media (max-width: 1024px) {
  .embla__slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 640px) {

  /* Remove carousel on mobile - display as stacked articles */
  .featured-carousel-section {
    overflow: visible;
    margin-bottom: 0;
  }

  .embla {
    overflow: visible;
    padding-left: 0;
    padding-right: 0;
  }

  .embla__viewport {
    overflow: visible !important;
  }

  .embla__container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    transform: none !important;
    transition: none !important;
  }

  .embla__slide {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 0 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Hide carousel navigation on mobile */
  .carousel-dots {
    display: none !important;
  }
}

/* ============================
   ABOUT ME SECTION STYLES
   ============================ */
.author-intro-section {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.author-profile-image-large {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-avatar-placeholder-large {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: bold;
  color: #6b7280;
  flex-shrink: 0;
}

.author-intro-text {
  flex: 1;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #374151;
}

.about-me-facts h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 1rem 0;
}

.quick-facts-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-facts-list li {
  padding: 8px 0;
  padding-left: 35px;
  position: relative;
  margin-bottom: 1rem;
  color: #374151;
  line-height: 1.6;
  font-size: 1.125rem;
}

.fact-icon {
  width: 25px;
  height: 25px;
  background-image: url(/about-images/checkmark-icon.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 0.125rem;
  flex-shrink: 0;
  display: inline-block;
  position: absolute;
  left: 0;
  top: 8px;
}

/* Where to Start Section */
.where-to-start-section {
  display: none;
  margin: 3rem 0;
  padding: 2rem 0;
  text-align: center;
}

.where-to-start-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2rem;
}

.start-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.start-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.start-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.start-card-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.diamond-icon {
  width: 40px;
  height: 40px;
  transform: rotate(45deg);
  border-radius: 4px;
}

.diamond-icon.blue {
  background: #3b82f6;
}

.start-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.start-card p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.article-content {
  background: white;
  border-radius: 12px;
  padding: 0 3rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  max-width: 900px;
  margin: 0 auto;
  color: #374151;
  font-size: 20px;
  line-height: 1.7;
}

.article-body {
  margin: 2rem 0;
  line-height: 1.8;
  color: #374151;
}

/* ============================
   HERO SECTION 
   ============================ */
.hero-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  color: #111827;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.875rem;
  color: #6b7280;
  margin: 0 0 0.625rem 0;
}

.article-subtitle {
  font-size: 1.125rem;
  line-height: 1.5;
  color: #6b7280;
  margin: 1rem 0 2rem 0;
  font-weight: 400;
}

/* ============================
   ARTICLES GRID 
   ============================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}

.article-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.article-card-link:hover {
  text-decoration: none;
}

.article-card {
  background: white;
  border-radius: 12px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.article-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.article-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-image,
.article-featured-image {
  width: 100%;
  /* height: 180px; */
  max-height: 350px;
  object-fit: cover;
  border-bottom: 1px solid #e5e7eb;
}

/* ============================
   RESPONSIVE IMAGES 
   ============================ */
.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  box-shadow: none;
  border-radius: 0;
}

.author-profile-image {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
}

/* Mobile image optimizations */
@media (max-width: 767px) {

  /* Hero images use viewport-based sizing */
  .article-hero-image {
    height: clamp(40vh, 45vh, 50vh);
    max-height: 50vh;
    object-fit: cover;
  }

  /* Card images keep fixed sizing for consistency */
  .article-image,
  .article-featured-image {
    /* height: 130px; */
    max-height: 300px;
  }

  .article-content img:not(.author-avatar):not(.author-profile-image):not(.author-avatar-circle) {
    margin: 1rem auto;
    border-radius: 6px;
  }
}

.article-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.article-excerpt {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.article-meta-row {
  display: flex;
  /* align-items: center;
  justify-content: space-between; */
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.article-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.audience-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid;
}

.audience-tag.ai-power-users,
.audience-tag.audience-tag-blue {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.audience-tag.ai-leaders,
.audience-tag.audience-tag-purple {
  background: #f3e8ff;
  color: #7c3aed;
  border-color: #c4b5fd;
}

.audience-tag.ai-builders,
.audience-tag.audience-tag-green {
  background: #dcfce7;
  color: #16a34a;
  border-color: #bbf7d0;
}

.content-bucket-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid;
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.article-publish-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #9ca3af;
  font-size: 0.75rem;
}

.calendar-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.audience-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.bucket-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ============================
   INLINE SOCIAL ICONS
   ============================ */
.inline-social-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inline-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #6b7280;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.inline-social-icon:hover {
  background: #374151;
}

.inline-social-icon svg {
  width: 16px;
  height: 16px;
  color: white !important;
}

/* ============================
   AUTHOR META SECTION 
   ============================ */
.article-author-meta {
  margin-bottom: 0.5rem;
  border-top: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
  padding: 10px 0;
}

.author-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Co-authors section */
.co-authors-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.co-authors-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.co-authors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.co-author-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.co-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.co-author-avatar-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.co-author-name {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.inline-social-icons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.inline-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #374151;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.inline-social-icon:hover {
  background-color: #1f2937;
  color: #ffffff;
  transform: translateY(-1px);
}

.inline-social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  margin: 0 !important;
}

.author-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #6366f1;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.25rem;
}

.author-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 1rem;
}

.meta-separator {
  color: #d1d5db;
  font-size: 0.875rem;
}

.reading-time,
.publish-date {
  color: #6b7280;
  font-size: 0.875rem;
}

.article-meta {
  color: #6b7280;
  font-size: 1rem;
}

.article-main-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #111827;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

/* ============================
   ARTICLE CONTENT TYPOGRAPHY 
   ============================ */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: #111827;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.article-content h1 {
  font-size: 2.25rem;
}

.article-content h2 {
  font-size: 1.875rem;
}

.article-content h3 {
  font-size: 1.5rem;
}

.article-content h4 {
  font-size: 1.25rem;
}

.article-content h5 {
  font-size: 1.125rem;
}

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

.article-content strong {
  font-weight: 600;
  color: #111827;
}

.article-content em {
  font-style: italic;
}

.article-content a {
  color: #2563eb;
  text-decoration: underline;
}

.article-content a:hover {
  color: #1d4ed8;
}

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

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

.article-content blockquote {
  border-left: 4px solid #e5e7eb;
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: #f9fafb;
  font-style: italic;
  color: #6b7280;
}

.article-content pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875em !important;
}

.article-content code {
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875em;
}

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

.article-content img:not(.author-avatar):not(.author-profile-image):not(.author-avatar-circle) {
  max-width: 100%;
  /* max-height: 1225px; */
  object-fit: cover;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article-content th,
.article-content td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.article-content th {
  background: #f9fafb;
  font-weight: 600;
}

/* ============================
 ARTICLE FOOTER SNIPPETS 
 ============================ */

.ml-embedded {
  border: 1px solid #032F5B;
  padding: 1rem;
  margin: 0 0 2rem;
  border-radius: 8px;
  background-color: white;
}

.ml-embedded button {
  width: 70% !important;
}

.ml-embedded p {
  margin: 1.5rem 0 !important;
}

.ml-embedded img {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.ml-embedded h4 {
  color: #032F5B !important
}

.comment_heading {
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

/* ============================
   ABOUT PAGE CONTENT 
   ============================ */
.about-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.about-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #111827;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
}

.about-content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #111827;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.about-content h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 1rem 0;
}

.about-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1.5rem 0 0.75rem 0;
}

.about-content p {
  margin: 1.5rem 0;
  color: #374151;
  line-height: 1.7;
}

.about-content ul,
.about-content ol {
  margin: 1.5rem 0;
  /* padding-left: 2rem; */
}

.about-content li {
  margin: 0.5rem 0;
  color: #374151;
}

.about-content li p {
  margin: 0.25rem 0;
}

.about-content strong {
  font-weight: 600;
  color: #111827;
}

.about-content em {
  font-style: italic;
}

.about-content blockquote {
  border-left: 4px solid #e5e7eb;
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: #f9fafb;
  font-style: italic;
  color: #6b7280;
}

/* ============================
   AUTHOR PROFILE SECTION 
   ============================ */
.author-profile-section {
  margin: 4rem auto;
  max-width: 1000px;
  padding: 3rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.author-profile-section h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #111827;
  margin: 0 0 2rem 0;
  text-align: center;
}

.author-info-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.author-profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-profile-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #6366f1;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 2rem;
  flex-shrink: 0;
}

.author-details h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.author-details p {
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* ============================
   SOCIAL SHARING 
   ============================ */
.share-section {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.share-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem 0;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.share-button:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.share-icon {
  width: 18px;
  height: 18px;
}

.share-button.linkedin:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.share-button.twitter:hover {
  background: #000000;
  color: white;
  border-color: #000000;
}

.share-button.reddit:hover {
  background: #ff4500;
  color: white;
  border-color: #ff4500;
}

/* ============================
   FOOTER STYLES 
   ============================ */
.blog-footer {
  background: #1f2937;
  color: #d1d5db;
  margin-top: 1.5rem;
  padding: 3rem 0 2rem 0;
  /* Safe area for bottom home indicator */
  padding-bottom: calc(2rem + var(--safe-area-inset-bottom));
}

.blog-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-about h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f9fafb;
  margin: 0 0 1rem 0;
}

.footer-about p {
  color: #9ca3af;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.footer-about a {
  color: #3b82f6;
  text-decoration: none;
}

.footer-about a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid #374151;
}

.footer-disclaimer p {
  color: #9ca3af;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.5;
  font-style: italic;
}

.footer-copyright {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
}

.footer-copyright p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

/* ============================
   RELATED ARTICLES 
   ============================ */

.related-articles {
  max-width: 900px;
  margin: auto;
}

.read-more-section {
  margin: 3rem 0 0 0;
  padding: 2rem 0 0 0;
  border-top: 2px solid #e5e7eb;
}

.read-more-section h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ============================
   ERROR PAGE 
   ============================ */
.error-page {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.error-page h1 {
  font-size: 4rem;
  font-weight: bold;
  color: #dc2626;
  margin: 0 0 1rem 0;
}

.error-page h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem 0;
}

.error-page p {
  color: #6b7280;
  font-size: 1.125rem;
  margin: 0 0 2rem 0;
}

.error-page a {
  background: #3b82f6;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

.error-page a:hover {
  background: #2563eb;
}

/* ============================
   NOTEBOOK SECTION STYLES 
   ============================ */
.notebook-section {
  margin-top: 3rem;
  margin-bottom: 3.5rem;
}

.notebook-loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.notebook-loading-icon {
  margin-bottom: 1rem;
}

.notebook-item {
  margin: 1.5rem 0;
  border: 2px solid #3b82f6;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(to right, #eff6ff, #e0e7ff);
}

.notebook-header {
  background: #dbeafe;
  padding: 1rem;
  border-bottom: 1px solid #3b82f6;
}

.notebook-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.notebook-status-indicator {
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
}

.notebook-status-text {
  font-size: 1.75rem;
  font-weight: 500;
  color: #1e40af;
}

.notebook-title {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  /* color: #1e40af !important; */
  margin: 0.5rem 0 !important;
}

.notebook-description {
  font-size: 0.875rem;
  color: #1d4ed8;
  margin: 0;
}

.notebook-content {
  padding: 1rem;
}

.notebook-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.notebook-github-link,
.notebook-colab-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s;
  font-weight: 500;
}

.notebook-github-link {
  background: #1f2937;
  color: white !important;
  text-decoration: none !important;
}

.notebook-github-link:hover {
  background: #374151;
}

.notebook-colab-link {
  background: #f59e0b;
  color: white !important;
  text-decoration: none !important;
}

.notebook-colab-link:hover {
  background: #d97706;
}

.notebook-github-icon,
.notebook-colab-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.notebook-metadata {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #cbd5e1;
  font-size: 0.875rem;
  color: #64748b;
}

.notebook-metadata-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem 0;
}

/* ============================
   MOBILE-FIRST RESPONSIVE DESIGN 
   ============================ */

/* Base styles are mobile-first (320px+) */
/* Enhanced mobile navigation */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #374151;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.mobile-nav-toggle:hover {
  background-color: #f3f4f6;
}

.blog-nav.mobile-hidden {
  display: none;
}

.blog-nav.mobile-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  flex-direction: column;
  padding: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

/* Mobile navigation - hamburger menu */
.mobile-nav-toggle {
  display: none;
}

/* Show hamburger and hide nav on mobile */
@media (max-width: 767px) {
  .mobile-nav-toggle {
    display: block !important;
  }

  .blog-nav {
    display: none !important;
  }

  .blog-nav.mobile-open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }
}

/* Small phones and up (480px) */
@media (min-width: 480px) {
  body {
    font-size: 19px;
    line-height: 1.65;
  }

  .blog-header-container {
    padding: 1.25rem;
  }

  .blog-main {
    padding: 1.5rem;
  }

  .blog-content-card,
  .article-content,
  .about-content {
    /* padding: 2rem; */
  }

  .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  /* Typography improvements */
  .blog-title {
    font-size: 1.375rem;
  }

  .article-title,
  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.5;
  }

  .article-subtitle {
    font-size: 1.125rem;
    line-height: 1.5;
  }

  /* Article excerpts should match article body text size */
  .article-excerpt {
    font-size: 19px;
    line-height: 1.65;
  }
}

/* Tablets and large phones (768px) */
@media (min-width: 768px) {
  body {
    font-size: 20px;
    line-height: 1.7;
  }

  .mobile-nav-toggle {
    display: none;
  }

  .blog-nav.mobile-hidden {
    display: flex;
  }

  .blog-nav.mobile-open {
    position: static;
    background: none;
    border: none;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
  }

  .blog-header-container {
    padding: 1.5rem;
  }

  .blog-main {
    padding: 2rem 1rem;
  }

  .blog-content-card,
  .article-content,
  .about-content {
    /* padding: 2.5rem; */
    margin-top: 2.5rem;
  }

  .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
  }

  .related-articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .author-info-card {
    flex-direction: row;
    text-align: left;
  }

  /* Typography improvements */
  .blog-title {
    font-size: 1.5rem;
  }

  .article-title,
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .article-subtitle {
    font-size: 1.125rem;
  }

  /* Article excerpts should match article body text size */
  .article-excerpt {
    font-size: 20px;
    line-height: 1.7;
  }

  .article-content h1 {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .article-content h2 {
    font-size: 1.875rem;
    line-height: 1.3;
  }

  .article-content h3 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}

/* Desktop (1024px) */
@media (min-width: 1024px) {
  body {
    font-size: 20px;
    line-height: 1.7;
  }

  .blog-header-container {
    padding: 1.5rem 2rem;
  }

  .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .related-articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Desktop typography */
  .blog-title {
    font-size: 1.625rem;
  }

  .article-title,
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1.375rem;
  }

  .article-subtitle {
    font-size: 1.25rem;
  }

  /* Article excerpts should match article body text size */
  .article-excerpt {
    font-size: 20px;
    line-height: 1.7;
  }

  .article-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .article-content h2 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .article-content h3 {
    font-size: 1.625rem;
    line-height: 1.3;
  }
}

/* Large desktop (1200px) */
@media (min-width: 1200px) {
  body {
    font-size: 21px;
    line-height: 1.75;
  }

  /* Article excerpts should match article body text size */
  .article-excerpt {
    font-size: 21px;
    line-height: 1.75;
  }

  .blog-main {
    padding: 0rem 2rem;
  }

  /* Carousel padding matches blog-main on large screens */
  .embla {
    /* padding-left: 2rem;
    padding-right: 2rem; */
  }

  .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
  }

  /* Large desktop typography */
  .article-title,
  .hero-title {
    font-size: 1.5rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .article-subtitle {
    font-size: 1.375rem;
  }

  .article-content h1 {
    font-size: 2.75rem;
  }

  .article-content h2 {
    font-size: 2.25rem;
  }

  .article-content h3 {
    font-size: 1.75rem;
  }
}

/* Mobile-specific overrides (max-width: 767px) */
@media (max-width: 767px) {
  body {
    font-size: 18px;
  }

  /* Article excerpts should match article body text size on mobile */
  .article-excerpt {
    font-size: 18px;
    line-height: 1.65;
  }

  .blog-header-container {
    padding: 1rem;
    position: relative;
  }

  .blog-nav {
    gap: 0.5rem;
  }

  .blog-main {
    padding: 1rem;
  }

  .blog-content-card,
  .article-content,
  .about-content {
    /* padding: 1.5rem;
    margin-bottom: 1.5rem; */
    margin-top: 1.5rem;
    padding: 0 1.5rem;
  }

  .home-content {
    margin-top: -1.5rem;
  }

  /* Home page mobile layout */
  .home-main-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-articles-section {
    margin-bottom: 1.5rem;
  }

  .article-list-section {
    margin-top: 0;
  }

  .hero-title,
  .about-content h1,
  .article-main-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.6875rem;
    line-height: 1.5;
  }

  .article-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }

  .articles-grid,
  .related-articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .author-info-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  /* Keep date and audience on same line for carousel cards */
  .article-meta-row {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  /* Fix author meta section for mobile */
  .article-author-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .author-info {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .inline-social-icons {
    align-self: flex-start;
    margin-top: 0.25rem;
  }

  /* Touch-friendly improvements */
  .blog-nav a,
  .share-button {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
  }

  .mobile-nav-toggle {
    display: block;
    min-height: 44px;
    min-width: 44px;
  }

  /* Enhanced touch targets for mobile */
  .article-card-link {
    min-height: 44px;
  }

  .start-card {
    min-height: 44px;
    cursor: pointer;
  }

  /* Better button spacing on mobile */
  button,
  .share-button,
  .blog-nav a {
    margin: 0.25rem;
    touch-action: manipulation;
  }

  /* Mobile adjustments for new author layout */
  .authors-row {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .main-author,
  .co-author-inline {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0.5rem;
  }

  .co-authors-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .article-meta-info {
    margin-left: auto;
    margin-top: 0;
  }

  /* Hide reading time on mobile */
  .reading-time,
  .reading-time+.meta-separator {
    display: none;
  }

  .share-row {
    margin-top: 1rem;
    padding: 1rem 0;
  }

  /* About page mobile responsive */
  .about-content {
    padding: 1.5rem;
    margin: 0 1rem 1.5rem 1rem;
  }

  .author-intro-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .author-profile-image-large,
  .author-avatar-placeholder-large {
    width: 160px;
    height: 160px;
    margin: 0 auto;
  }

  .author-avatar-placeholder-large {
    font-size: 4rem;
  }

  .author-intro-text {
    text-align: left;
  }
}

/* ============================
   NEW AUTHOR META LAYOUT - TWO ROWS
   ============================ */

/* Override container borders - only second row should have borders */
.article-author-meta {
  border-top: 0 !important;
  border-bottom: 0 !important;
  padding: 0 !important;
}

/* First row: Authors with circular pictures and names (left-aligned) */
.authors-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.main-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.co-authors-inline {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.co-author-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Circular avatars for authors */
.author-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}

.author-avatar-circle-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #6366f1;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
}

/* Override generic image styles for avatars */
.article-content .author-avatar,
.article-content .author-avatar-circle,
.article-content .author-profile-image {
  border-radius: 50% !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.article-author-meta .author-name {
  font-weight: 500;
  color: #374151;
  font-size: 0.95rem;
}

.article-meta-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
  margin-left: auto;
}

.meta-separator {
  color: #d1d5db;
}

.reading-time,
.publish-date {
  color: #6b7280;
}

/* Second row: Share icons with light gray borders */
.share-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.share-label {
  font-weight: 500;
  color: #374151;
  font-size: 0.95rem;
}

.share-row .share-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.share-row .share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
}

.share-row .share-icon:hover {
  background: #e5e7eb;
  color: #374151;
  transform: translateY(-1px);
}

.share-row .share-icon svg {
  width: 18px;
  height: 18px;
}

/* LinkedIn hover */
.share-row .share-icon[title*="LinkedIn"]:hover {
  background: #0077b5;
  color: white;
}

/* Twitter/X hover */
.share-row .share-icon[title*="Twitter"]:hover,
.share-row .share-icon[title*="X ("]:hover {
  background: #000000;
  color: white;
}

/* Reddit hover */
.share-row .share-icon[title*="Reddit"]:hover {
  background: #ff4500;
  color: white;
}

/* ============================
   MOBILE RESPONSIVE - AUTHOR META & SHARE SECTIONS
   ============================ */

/* Mobile responsive styles for author meta and share sections */
@media (max-width: 768px) {

  /* Author Meta Section Mobile Improvements */
  .authors-row {
    gap: 1rem;
    /* Reduce gap from 2rem to 1rem for mobile */
    margin-bottom: 0.75rem;
    /* Tighter bottom margin */
  }

  .co-authors-inline {
    gap: 1rem;
    /* Reduce gap from 1.5rem to 1rem for mobile */
  }

  .main-author,
  .co-author-inline {
    gap: 0.5rem;
    /* Reduce gap from 0.75rem to 0.5rem for mobile */
  }

  .article-author-meta .author-name {
    font-size: 0.875rem;
    /* Slightly smaller font on mobile */
  }

  .article-meta-info {
    font-size: 0.8rem;
    /* Smaller meta info text on mobile */
    gap: 0.375rem;
    /* Tighter spacing between elements */
    margin-left: 0;
    /* Remove auto margin on mobile */
    margin-top: 0.5rem;
    /* Add top margin to separate from authors */
    flex-wrap: wrap;
    /* Allow wrapping on very small screens */
  }

  /* Share Section Mobile Improvements */
  .share-row {
    gap: 0.75rem;
    /* Reduce gap from 1rem to 0.75rem for mobile */
    padding: 0.625rem 0;
    /* Slightly less padding */
    flex-wrap: wrap;
    /* Allow wrapping if needed */
  }

  .share-row .share-icons {
    gap: 0.5rem;
    /* Reduce gap from 0.75rem to 0.5rem for mobile */
    flex-wrap: wrap;
    /* Allow icons to wrap on very small screens */
  }

  .share-row .share-icon {
    width: 32px;
    /* Slightly smaller icons on mobile */
    height: 32px;
  }

  .share-row .share-icon svg {
    width: 16px;
    /* Smaller SVG icons */
    height: 16px;
  }

  .share-label {
    font-size: 0.875rem;
    /* Slightly smaller share label */
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .authors-row {
    gap: 0.75rem;
    /* Even tighter spacing on very small screens */
    flex-direction: column;
    /* Stack authors vertically on very small screens */
    align-items: flex-start;
  }

  .co-authors-inline {
    gap: 0.75rem;
  }

  .article-meta-info {
    margin-left: 0;
    justify-content: flex-start;
    /* Left align meta info on very small screens */
  }

  .share-row {
    flex-direction: column;
    /* Stack share label and icons vertically */
    align-items: flex-start;
    gap: 0.5rem;
  }

  .share-row .share-icons {
    justify-content: flex-start;
    /* Left align share icons */
  }
}

/* ============================
   MAGAZINE-STYLE HOME PAGE LAYOUT
   ============================ */

/* Featured Articles Section */
.featured-articles-section {
  margin-bottom: 3rem;
}

.featured-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 0;
}

/* Main Layout with Sidebar */
.home-main-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  align-items: start;
}

/* Article List Section */
.article-list-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Horizontal Article Card */
.horizontal-article-card {
  display: flex;
  gap: 1.5rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  min-height: 200px;
  max-height: 325px;
}

.horizontal-article-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.horizontal-article-image-link {
  text-decoration: none;
  display: block;
  flex-shrink: 0;
  width: 300px;
  align-self: stretch;
}

.horizontal-article-image-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.horizontal-article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.horizontal-article-image-link:hover .horizontal-article-image {
  transform: scale(1.05);
}

.horizontal-article-content {
  flex: 1;
  padding: 1rem 1.5rem 1rem 0;
  display: flex;
  flex-direction: column;
}

.horizontal-article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.horizontal-article-date {
  color: #6b7280;
  font-weight: 500;
}

.horizontal-meta-separator {
  color: #d1d5db;
}

.horizontal-article-category {
  color: #6b7280;
  font-weight: 500;
}

.horizontal-article-audience {
  color: #6b7280;
  font-weight: 500;
}

.horizontal-article-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.horizontal-article-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.horizontal-article-title-link:hover .horizontal-article-title {
  color: #3b82f6;
}

.horizontal-article-excerpt {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.horizontal-read-more {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: #f3f4f6;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.horizontal-read-more:hover {
  background-color: #e5e7eb;
  color: #000000;
}

/* Author Bio Sidebar */
.author-bio-sidebar {
  position: static;
  top: 100px;
}

.author-bio-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
  text-align: center;
}

.author-bio-image-container {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.author-bio-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.author-bio-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: 700;
}

.author-bio-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem 0;
  letter-spacing: 0.05em;
}

.author-bio-text {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: left;
}

.author-bio-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.author-bio-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f3f4f6;
  color: #374151;
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.author-bio-link:hover {
  background-color: #e5e7eb;
  transform: translateY(-2px);
}

.author-bio-search {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-bio-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: #374151;
  background: transparent;
}

.author-bio-search-input::placeholder {
  color: #9ca3af;
}

.author-bio-search-button {
  background: #111827;
  border: none;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.author-bio-search-button:hover {
  background: #000000;
}

.author-bio-search-button svg {
  width: 18px;
  height: 18px;
  color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .home-main-layout {
    grid-template-columns: 1fr;
  }

  .author-bio-sidebar {
    position: static;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .featured-articles-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-article-card {
    flex-direction: column;
    max-height: 700px;
  }

  .horizontal-article-image-container {
    width: 100%;
    height: 300px;
  }

  .horizontal-article-content {
    padding: 1.5rem;
  }

  .horizontal-article-title {
    font-size: 1.25rem;
  }

  .horizontal-article-image-link {
    width: 100%;
  }

}

/* ============================
   POST IMAGE CARD STYLES
   ============================ */
.post-image-card {
  /* max-width: 42rem; */
  margin: 0 auto;
}

.post-image-card-content {
  padding: 0;
}

.post-image-header-wrapper {
  position: relative;
}

.post-image-logo-section {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 10;
}

.post-image-logo {
  height: 2.95rem;
  width: auto;
  object-fit: contain;
}

.post-image-logo-fallback {
  display: inline-block;
  background: white;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  color: #374151;
  font-weight: 600;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.post-image-title-section {
  padding: 5.65rem 1.5rem 0 1.5rem;
  /* background-color: #C62741; */
}

.post-image-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin: 0;
  background-color: #C62741;
  display: inline;
  padding: 1px 8px 5px 5px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-clip: padding-box;
  font-style: italic;
}

.post-image-description-section {
  padding: 1rem 1.5rem 1.5rem;
}

.post-image-description {
  color: #374151;
  font-size: 1.5rem;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
  font-style: italic;
  display: none;
}

.post-image-feature-wrapper {
  /* margin: 0 -1.5rem 1rem -1.5rem; */
  overflow: hidden;
}

.post-image-feature-frame {
  aspect-ratio: 2 / 1;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.post-image-feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-image-feature-placeholder {
  width: 100%;
  height: 16rem;
  background: #e5e7eb;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-image-feature-placeholder svg {
  width: 4rem;
  height: 4rem;
  color: #9ca3af;
}

.post-image-cta-section {
  padding: 1rem 1.5rem;
  background: #f9fafb;
  display: none;
}

.post-image-cta-text {
  font-size: 1.85rem;
  line-height: 1.85rem;
  color: var(--color-text-secondary);
  /* text-align: center; */
  margin: 0;
  padding: 0;
}

.post-image-domain {
  color: #C62641;
  font-weight: 700;
}

/* Dark mode support for Post Image */
@media (prefers-color-scheme: dark) {
  .post-image-logo-fallback {
    background: #1f2937;
    color: #e5e7eb;
  }

  .post-image-description {
    color: #d1d5db;
  }

  .post-image-feature-placeholder {
    background: #374151;
  }

  .post-image-cta-section {
    background: #1f2937;
  }

  .post-image-cta-text {
    color: white;
  }
}

/* Responsive adjustments for Post Image */
@media (min-width: 768px) {
  .post-image-title {
    font-size: 3rem;
    line-height: 4.70rem;
  }
}

/* ============================
   SEARCH BOX STYLES 
   ============================ */
.search-box-container {
  /* margin-top: 1.5rem; */
}

.search-form {
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 1.5rem;
  border: 1px solid #1f2937;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  background: white;
  color: #374151;
}

.search-input:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-button {
  position: absolute;
  right: 0.75rem;
  padding: 0.5rem;
  background: transparent;
  color: #1f2937;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.search-button:hover {
  color: #111827;
}

.search-button:active {
  color: #374151;
}

.search-icon {
  width: 20px;
  height: 20px;
}

/* ============================
   SEARCH RESULTS PAGE STYLES 
   ============================ */
.search-results-container {
  /* max-width: 800px; */
  margin: 1rem auto;
}

.search-results-header {
  margin-bottom: 2rem;
}

.search-results-title {
  font-size: 2rem;
  font-weight: bold;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.search-results-query {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}

.search-results-query strong {
  color: #111827;
}


.search-no-results {
  text-align: center;
  padding: 4rem 2rem;
}

.search-no-results-icon {
  color: #d1d5db;
  margin: 0 auto 1.5rem;
}

.search-no-results h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.75rem 0;
}

.search-no-results p {
  color: #6b7280;
  font-size: 1rem;
  margin: 0 0 1.5rem 0;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.search-back-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.search-back-link:hover {
  background: #e5e7eb;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .search-input-wrapper {
    flex-direction: column;
  }

  .search-button {
    width: 100%;
  }

  .search-result-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-result-score {
    align-self: flex-start;
  }
}

/* ============================
   PAGINATION STYLES 
   ============================ */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem 0 2rem 0;
  padding: 1rem;
}

.pagination-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f3f4f6;
  padding: 0.75rem 1rem;
  border-radius: 50px;
}

.pagination-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #e5e7eb;
  border: none;
  border-radius: 50%;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination-arrow:hover:not(.pagination-disabled) {
  background: #d1d5db;
  color: #374151;
}

.pagination-arrow.pagination-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0 0.5rem;
}

.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 0.5rem;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination-number:hover:not(.pagination-active) {
  background: #e5e7eb;
  color: #111827;
}

.pagination-number.pagination-active {
  background: #3b82f6;
  color: white;
  font-weight: 600;
  cursor: default;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #9ca3af;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .pagination-container {
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
  }

  .pagination-arrow {
    width: 40px;
    height: 40px;
  }

  .pagination-arrow svg {
    width: 18px;
    height: 18px;
  }

  .pagination-numbers {
    gap: 0.25rem;
    margin: 0 0.25rem;
  }

  .pagination-number {
    min-width: 40px;
    height: 40px;
    font-size: 0.9375rem;
    padding: 0 0.375rem;
  }

  .pagination-ellipsis {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}