/* Blog Content Styles - Centralized for all pages */

/* Base styles */
.blog-content {
  color: #001874;
  line-height: 1.75;
  font-size: 1.125rem;
  max-width: none;
}

/* Headings */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  color: #001874;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.blog-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  border-bottom: 3px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.blog-content h2 {
  font-size: 2rem;
  font-weight: 700;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 0.5rem;
}

.blog-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #001874;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.blog-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
}

.blog-content h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #4b5563;
}

.blog-content h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Paragraphs */
.blog-content p {
  margin-bottom: 1.75rem;
  line-height: 1.8;
  color: #374151;
}

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

/* Links */
.blog-content a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  font-weight: 500;
}

.blog-content a:hover {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

/* Dark mode support for links */
@media (prefers-color-scheme: dark) {
  .blog-content a {
    color: #60a5fa;
  }
  
  .blog-content a:hover {
    color: #93c5fd;
    border-bottom-color: #93c5fd;
  }
}

/* Tailwind dark mode support */
.dark .blog-content a {
  color: #60a5fa;
}

.dark .blog-content a:hover {
  color: #93c5fd;
  border-bottom-color: #93c5fd;
}

.blog-content a:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* External links */
.blog-content a[href^="http"]:not([href*="manager.samsuntso.org.tr"])::after {
  content: " ↗";
  font-size: 0.875em;
  opacity: 0.7;
}

/* File download links (before they get processed) */
.blog-content a[href*="/file/"],
.blog-content a[href*="/download/"] {
  color: #059669;
  font-weight: 600;
}

.blog-content a[href*="/file/"]:hover,
.blog-content a[href*="/download/"]:hover {
  color: #047857;
  border-bottom-color: #047857;
}

/* Dark mode support for focus and special links */
@media (prefers-color-scheme: dark) {
  .blog-content a:focus {
    outline: 2px solid #60a5fa;
  }
  
  .blog-content a[href*="/file/"],
  .blog-content a[href*="/download/"] {
    color: #34d399;
  }
  
  .blog-content a[href*="/file/"]:hover,
  .blog-content a[href*="/download/"]:hover {
    color: #6ee7b7;
    border-bottom-color: #6ee7b7;
  }
}

/* Tailwind dark mode support for focus and special links */
.dark .blog-content a:focus {
  outline: 2px solid #60a5fa;
}

.dark .blog-content a[href*="/file/"],
.dark .blog-content a[href*="/download/"] {
  color: #34d399;
}

.dark .blog-content a[href*="/file/"]:hover,
.dark .blog-content a[href*="/download/"]:hover {
  color: #6ee7b7;
  border-bottom-color: #6ee7b7;
}

/* Lists */
.blog-content ul,
.blog-content ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
  line-height: 1.8;
  list-style-position: outside;
}

.blog-content ul {
  list-style-type: disc;
}

.blog-content ol {
  list-style-type: decimal;
}

.blog-content li {
  margin-bottom: 0.5rem;
  color: #374151;
  padding-left: 0.5rem;
  line-height: 1.8;
  display: list-item;
}

.blog-content li::marker {
  color: #6b7280;
  font-weight: 500;
}

/* Ensure list items with nested content align properly */
.blog-content li > *:first-child {
  display: inline;
}

.blog-content ul ul,
.blog-content ol ol,
.blog-content ul ol,
.blog-content ol ul {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

/* Blockquotes */
.blog-content blockquote {
  border-left: 4px solid #3b82f6;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #475569;
  position: relative;
}

.blog-content blockquote::before {
  content: '"';
  font-size: 4rem;
  color: #3b82f6;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-family: Georgia, serif;
  opacity: 0.3;
}

.blog-content blockquote p {
  margin-bottom: 0;
  font-size: 1.125rem;
  line-height: 1.7;
}

.blog-content blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #64748b;
  font-style: normal;
  font-weight: 500;
}

/* Code */
.blog-content code {
  background-color: #f1f5f9;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #dc2626;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

.blog-content pre {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #f1f5f9;
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin: 2rem 0;
  border: 1px solid #475569;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.blog-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
  border: none;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Images - Base styles */
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem auto;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
  cursor: pointer;
  display: block;
  width: auto;
  max-height: 600px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.blog-content img:hover {
  transform: scale(1.02);
}

/* Normal içerikteki resimler */
.blog-content p img,
.blog-content div img:not(table img) {
  max-width: 600px !important;
  max-height: 700px !important;
  margin: 2rem auto;
  display: block !important;
}

/* Tiptap resimleri */
.blog-content img.tiptap-image {
  max-width: 600px !important;
  max-height: 700px !important;
  margin: 2rem auto !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
}

/* Çiftlenen resimleri gizle */
.blog-content img.lazy-processed {
  display: none !important;
}

/* Contact page specific image styles */
.blog-content img[src*="contact"],
.blog-content img[src*="iletisim"],
.blog-content img[src*="birim"],
.blog-content img[src*="person"],
.blog-content img[src*="photo"],
.blog-content img[src*="avatar"] {
  max-width: 500px !important;
  width: auto !important;
  height: auto !important;
  max-height: 600px !important;
  margin: 2rem auto !important;
  display: block !important;
  border-radius: 1rem !important;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.1) !important;
}

/* Picture elements */
.blog-content picture {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.blog-content picture img {
  margin: 0 auto;
  border-radius: 0.75rem;
  box-shadow: none;
  display: block;
  max-width: 100%;
  height: auto;
}

.blog-content picture img:hover {
  transform: none;
}

/* Image alignment styles */
.blog-content img[style*="float: left"] {
  float: left;
  margin: 0 1rem 1rem 0;
  max-width: 50%;
}

.blog-content img[style*="float: right"] {
  float: right;
  margin: 0 0 1rem 1rem;
  max-width: 50%;
}

.blog-content img[style*="text-align: center"] {
  display: block;
  margin: 1rem auto;
  text-align: center;
}

.blog-content img[style*="width: 100%"] {
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

/* Clear floats after images */
.blog-content img[style*="float"] + * {
  clear: both;
}

/* Enhanced image alignment styles */
.blog-content .quill-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

.blog-content .image-align-left {
  float: left !important;
  margin: 0 1rem 1rem 0 !important;
  max-width: 50% !important;
}

.blog-content .image-align-right {
  float: right !important;
  margin: 0 0 1rem 1rem !important;
  max-width: 50% !important;
}

.blog-content .image-align-center {
  display: inline-block !important;
  margin: 0 auto !important;
}

.blog-content .image-align-full {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 1rem 0 !important;
}

.blog-content .image-align-natural {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 1rem 0 !important;
}

.blog-content .image-container-center {
  text-align: center !important;
  margin: 1rem 0 !important;
}

/* Picture element alignment styles */
.blog-content p.ql-align-left picture {
  float: left !important;
  margin: 0 1rem 1rem 0 !important;
  max-width: 50% !important;
}

.blog-content p.ql-align-right picture {
  float: right !important;
  margin: 0 0 1rem 1rem !important;
  max-width: 50% !important;
}

.blog-content p.ql-align-center picture {
  display: block !important;
  margin: 1rem auto !important;
  text-align: center !important;
}

.blog-content p.ql-align-center picture img {
  display: inline-block !important;
  margin: 0 auto !important;
}

/* Full width picture elements */
.blog-content p.ql-align-center picture img[style*="width: 100%"] {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 1rem 0 !important;
}

/* Quill alignment classes support */
.blog-content .ql-align-center {
  text-align: center !important;
}

.blog-content .ql-align-center img {
  display: inline-block !important;
  margin: 0 auto !important;
}

.blog-content .ql-align-left {
  text-align: left !important;
}

.blog-content .ql-align-right {
  text-align: right !important;
}

.blog-content .ql-align-justify {
  text-align: justify !important;
}

/* Ensure images in aligned paragraphs are properly styled */
.blog-content p.ql-align-center img {
  display: inline-block !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  height: auto !important;
}

.blog-content p.ql-align-left img {
  float: left !important;
  margin: 0 1rem 1rem 0 !important;
  max-width: 50% !important;
}

.blog-content p.ql-align-right img {
  float: right !important;
  margin: 0 0 1rem 1rem !important;
  max-width: 50% !important;
}

/* Clear floats after aligned images and pictures */
.blog-content .image-align-left + *,
.blog-content .image-align-right + *,
.blog-content p.ql-align-left + *,
.blog-content p.ql-align-right + * {
  clear: both;
}

/* Responsive image styles with srcset */
.blog-content img[srcset] {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

/* Responsive image alignment styles */
.blog-content p.ql-align-left img[srcset] {
  float: left !important;
  margin: 0 1rem 1rem 0 !important;
  max-width: 50% !important;
}

.blog-content p.ql-align-right img[srcset] {
  float: right !important;
  margin: 0 0 1rem 1rem !important;
  max-width: 50% !important;
}

.blog-content p.ql-align-center img[srcset] {
  display: inline-block !important;
  margin: 0 auto !important;
}

/* Tables - Enhanced for publications page */
.blog-content table {
  width: 100% !important;
  min-width: 600px;
  border-collapse: collapse;
  margin: 2rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  font-size: 0.875rem;
  max-width: 100% !important;
}

/* CMS'den gelen colgroup ve col elementlerini override et */
.blog-content table colgroup,
.blog-content table col {
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
}

.blog-content th,
.blog-content td {
  border: 1px solid #e5e7eb;
  padding: 1rem;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
  max-width: 200px;
  width: auto !important;
  min-width: auto !important;
}

.blog-content th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.blog-content td {
  background-color: #ffffff;
  color: #374151;
}

.blog-content tr:nth-child(even) td {
  background-color: #f9fafb;
}

.blog-content tr:hover td {
  background-color: #f3f4f6;
}

/* Responsive tablo için horizontal scroll */
.blog-content .table-container {
  margin: 1rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

/* Tablo içeriğinin taşmasını engelle */
.blog-content table td,
.blog-content table th {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Contact page table styles - for contact cards */
.blog-content table img {
  max-width: 200px !important;
  width: auto !important;
  height: auto !important;
  max-height: 250px !important;
  margin: 1rem auto !important;
  display: block !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 10px -5px rgba(0, 0, 0, 0.05) !important;
}

/* Tablo hücrelerinde resimleri tam ortala */
.blog-content table td,
.blog-content table th {
  text-align: center !important;
  vertical-align: middle !important;
}

/* Tablo hücrelerindeki resimleri tam ortala */
.blog-content table td img,
.blog-content table th img {
  margin: 0 auto !important;
  display: block !important;
  text-align: center !important;
}

/* Tablo hücrelerindeki metinleri de ortala */
.blog-content table td p,
.blog-content table th p {
  text-align: center !important;
  margin: 0.5rem 0 !important;
}

/* Horizontal Rules */
.blog-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);
  margin: 3rem 0;
}

/* Strong and Emphasis */
.blog-content strong {
  font-weight: 700;
  color: #111827;
}

.blog-content em {
  font-style: italic;
  color: #4b5563;
}

/* Small text */
.blog-content small {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Mark/highlight */
.blog-content mark {
  background-color: #fef3c7;
  color: #92400e;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

/* Subscript and Superscript */
.blog-content sub,
.blog-content sup {
  font-size: 0.75rem;
  line-height: 0;
}

.blog-content sub {
  vertical-align: sub;
}

.blog-content sup {
  vertical-align: super;
}

/* Definition Lists */
.blog-content dl {
  margin: 2rem 0;
}

.blog-content dt {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.blog-content dd {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: #374151;
  line-height: 1.7;
}

/* Abbreviations */
.blog-content abbr {
  border-bottom: 1px dotted #6b7280;
  cursor: help;
  text-decoration: none;
}

/* Address */
.blog-content address {
  font-style: normal;
  color: #6b7280;
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  border-left: 4px solid #d1d5db;
}

/* Time */
.blog-content time {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Content Reference Header - bg-gray'i override et */
.blog-content .content-reference-header {
  background-color: transparent !important;
  background: none !important;
}

.blog-content .content-reference-header.bg-gray {
  background-color: transparent !important;
  background: none !important;
}

.blog-content .content-reference-wrapper + .content-reference-wrapper {
  margin-top: 1rem !important;
}



/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-content {
    font-size: 0.95rem;
    padding: 0;
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    line-height: 1.6;
  }
  
  .blog-content .content-reference-wrapper {
    margin: 1.5rem 0 !important;
    padding: 0.75rem 0 !important;
  }
  
  .blog-content .content-reference-wrapper + .content-reference-wrapper {
    margin-top: 1rem !important;
  }
  
  /* Mobilde tabloları satır satır, önce resim sonra bilgi olacak şekilde üst üste sıralar */
  /* Tablo kapsayıcısı yatay scroll yerine gizle */
  .blog-content .table-container {
    overflow-x: hidden;
  }

  /* Tablonun tamamını blok yap */
  .blog-content table {
    display: block;
    width: 100% !important;
    min-width: auto !important;
    border: none;
    box-shadow: none;
  }

  /* Başlık satırını gizle (isteğe bağlı) */
  .blog-content table thead {
    display: none;
  }

  /* Body'yi de blok yap */
  .blog-content table tbody {
    display: block;
  }

  /* Her bir satırı dikey blok haline getir */
  .blog-content table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
  }

  /* Hücreleri tam genişlikte ve blok olarak göster */
  .blog-content table th,
  .blog-content table td {
    display: block;
    width: 100% !important;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    white-space: normal;
  }

  .blog-content table tr td:first-child img {
    width: 50% !important;   
    max-width: 200px;       
    height: auto !important;
    margin: 0 auto 1rem;     
    display: block;
  }
  
  /* Mobilde yayınları alt alta göster */
  .blog-content > div,
  .blog-content > section,
  .blog-content > article {
    display: block !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
  }
  
  /* Grid layout'u mobilde tek sütun yap */
  .blog-content .grid,
  .blog-content [class*="grid"],
  .blog-content [class*="flex"] {
    display: block !important;
    flex-direction: column !important;
  }
  
  /* Flex container'ları mobilde dikey yap */
  .blog-content [class*="flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  /* Yayın kartlarını mobilde tam genişlik yap */
  .blog-content > * {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .blog-content h1 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }
  
  .blog-content h2 {
    font-size: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }
  
  .blog-content h3 {
    font-size: 1.125rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
  
  .blog-content h4 {
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
  
  .blog-content h5 {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
  
  .blog-content h6 {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
  
  .blog-content p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-size: 0.9rem;
  }
  
  .blog-content blockquote {
    padding: 0.75rem;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .blog-content pre {
    padding: 0.5rem;
    margin: 0.75rem 0;
    font-size: 0.75rem;
    overflow-x: auto;
    line-height: 1.4;
  }
  
  .blog-content table {
    font-size: 0.6rem;
    min-width: 200px;
    margin: 0.5rem 0;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    table-layout: fixed;
    width: 100%;
  }
  
  .blog-content th,
  .blog-content td {
    padding: 0.25rem 0.125rem;
    font-size: 0.6rem;
    word-break: break-word;
    line-height: 1.2;
    text-align: left;
    vertical-align: top;
  }
  
  /* First column (images) - smaller width */
  .blog-content table td:first-child,
  .blog-content table th:first-child {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
  }
  
  /* Second column (text content) - larger width */
  .blog-content table td:not(:first-child),
  .blog-content table th:not(:first-child) {
    width: calc(100% - 80px);
    min-width: 120px;
  }
  
  /* Ensure all images in tables have consistent size on mobile */
  .blog-content table img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 4px;
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  
  /* Mobilde tablo hücrelerini de ortala */
  .blog-content table td,
  .blog-content table th {
    text-align: center !important;
    vertical-align: middle !important;
  }
  
  .blog-content ul,
  .blog-content ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    list-style-position: outside;
  }
  
  .blog-content li {
    padding-left: 0;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
    list-style-position: outside;
  }
  
  /* Ensure list markers are visible on mobile */
  .blog-content ul li {
    list-style-type: disc;
    list-style-position: outside;
    display: list-item;
  }
  
  .blog-content ol li {
    list-style-type: decimal;
    list-style-position: outside;
    display: list-item;
  }
  
  .blog-content li::marker {
    color: #6b7280;
    font-weight: 500;
    display: inline-block;
  }
  
  /* Image mobile adjustments */
  .blog-content img {
    margin: 0.75rem 0;
    border-radius: 0.375rem;
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Mobilde tiptap resimleri */
  .blog-content img.tiptap-image {
    max-width: 400px !important;
    max-height: 500px !important;
    margin: 1rem auto !important;
  }
  
  /* Mobile adjustments for contact images */
  .blog-content img[src*="contact"],
  .blog-content img[src*="iletisim"],
  .blog-content img[src*="birim"],
  .blog-content img[src*="person"],
  .blog-content img[src*="photo"],
  .blog-content img[src*="avatar"] {
    max-width: 300px !important;
    max-height: 350px !important;
    margin: 1rem auto !important;
  }
  
  .blog-content table img {
    max-width: 180px !important;
    max-height: 220px !important;
    margin: 0.75rem auto !important;
  }
  
  .blog-content table td:first-child img,
  .blog-content table th:first-child img {
    max-width: 200px !important;
    max-height: 240px !important;
    margin: 1rem auto !important;
  }
  
  /* Ensure all content fits within container */
  .blog-content * {
    max-width: 100% !important;
    box-sizing: border-box;
  }
  
  /* Fix any overflow issues */
  .blog-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Reduce margins for mobile */
  .blog-content > *:first-child {
    margin-top: 0;
  }
  
  .blog-content > *:last-child {
    margin-bottom: 0;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .blog-content {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  
  .blog-content table {
    font-size: 0.75rem;
    min-width: 400px;
  }
  
  .blog-content th,
  .blog-content td {
    padding: 0.5rem 0.375rem;
    max-width: 150px;
  }
}

/* Print styles */
@media print {
  .blog-content {
    color: #000;
    line-height: 1.6;
  }
  
  .blog-content h1,
  .blog-content h2,
  .blog-content h3,
  .blog-content h4,
  .blog-content h5,
  .blog-content h6 {
    color: #000;
    page-break-after: avoid;
  }
  
  .blog-content img,
  .blog-content picture {
    page-break-inside: avoid;
    max-width: 100% !important;
  }
  
  .blog-content blockquote {
    border-left-color: #000;
    background: none;
  }
  
  .blog-content pre {
    background: #f5f5f5;
    color: #000;
    border: 1px solid #ccc;
  }
} 

.blog-content  a, .blog-content em {
  color: rgb(44, 108, 227) !important;
  position: relative;
  text-decoration: none;
}

.blog-content a::after {
  content: "↗";
  margin-left: 4px;
  font-size: 0.8em;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.blog-content a:hover::after {
  opacity: 1;
}
