/* Base Blog Post Styling */
.blog-post, #post-content {
    max-width: 100%; /* Using full width of the screen */
    margin: 0 auto;
    padding: 2rem 3rem;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  }
  
  .blog-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
  }
  
  .blog-description {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 1.75rem;
    line-height: 1.3;
    font-weight: 400;
  }
  
  .blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
    align-items: center;
  }
  
  .author-badge {
    background: #9333ea;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(147, 51, 234, 0.3);
  }
  
  .date-badge {
    background: #f8f8f8;
    color: #4b5563;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
  }
  
  /* Blog Content Typography */
  #post-content {
    line-height: 1.5; /* Further reduced line spacing */
    color: #2d3748;
    font-size: 1.1rem;
    box-shadow: none;
    padding: 0;
  }
  
  #post-content p {
    margin-bottom: 1.5rem; /* Reduced paragraph spacing */
  }
  
  #post-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem;
    color: #1a1a1a;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.75rem;
  }
  
  #post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.25rem 0 1rem;
    color: #2a2a2a;
  }
  
  #post-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.75rem 0 0.75rem;
    color: #3a3a3a;
  }
  /* Add specific styling for ql-indent-1 class */
#post-content ol li.ql-indent-1 {
  margin-left: 1.5rem; /* Increase left margin for better indentation */
  padding-left: 0.75rem; /* Add some padding */
}

/* If you need more levels of indentation */
#post-content ol li.ql-indent-2 {
  margin-left: 3rem;
  padding-left: 0.75rem;
}

/* Make sure the bullets/numbers align properly */
#post-content ol {
  list-style-position: outside;
}
  /* Improved Lists Styling - with better subpoints */
  #post-content ul, 
  #post-content ol {
    margin: 1.25rem 0 1.75rem 0.75rem;
    padding-left: 1.25rem;
  }

  
  #post-content ul li, 
  #post-content ol li {
    margin-bottom: 0.75rem; /* Reduced for tighter lists */
    position: relative;
    padding-left: 0.5rem;
  }
  
  #post-content ol {
    list-style-type: decimal;
    counter-reset: item;
  }
  
  #post-content ol li {
    counter-increment: item;
  }
  
  #post-content ul {
    list-style-type: none;
  }
  
  /* Main bullet points */
  #post-content ul > li:before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    background: #9333ea;
    border-radius: 50%;
  }
  
  /* First level subpoints */
  #post-content ul ul > li:before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 0.5rem;
    width: 0.4rem;
    height: 0.4rem;
    background: #e91e63;
    border-radius: 50%;
  }
  
  /* Second level subpoints (sub-sub points) */
  #post-content ul ul ul > li:before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 0.5rem;
    width: 0.35rem;
    height: 0.35rem;
    background: #2196f3;
    border-radius: 50%;
  }
  
  /* Third level and beyond */
  #post-content ul ul ul ul > li:before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 0.5rem;
    width: 0.3rem;
    height: 0.3rem;
    background: #4caf50;
    border-radius: 2px;
  }
  
  /* Nested lists indentation and spacing */
  #post-content ul ul, 
  #post-content ol ol,
  #post-content ul ol,
  #post-content ol ul {
    margin-top: 0.6rem;
    margin-bottom: 0;
    margin-left: 0.5rem;
  }
  
  /* Blockquotes */
  #post-content blockquote {
    border-left: 4px solid #e91e63;
    padding: 1.25rem 1.75rem;
    margin: 2rem 0;
    background: #fff8fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4a4a4a;
    font-size: 1.05rem;
  }
  
  #post-content blockquote p {
    margin-bottom: 0.5rem;
  }
  
  #post-content blockquote p:last-child {
    margin-bottom: 0;
  }
  
  /* Code blocks */
  #post-content pre {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.75rem 0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
  }
  
  #post-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    color: #e91e63;
  }
  
  /* Images */
  #post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  
  /* Image captions */
  .image-caption {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: -1.25rem;
    margin-bottom: 2rem;
    font-style: italic;
  }
  
  /* Tables */
  #post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  
  #post-content table th {
    background: #f3f4f6;
    padding: 0.85rem;
    text-align: left;
    font-weight: 600;
    color: #4a4a4a;
    border-bottom: 2px solid #e5e7eb;
  }
  
  #post-content table td {
    padding: 0.85rem;
    border-bottom: 1px solid #e5e7eb;
  }
  
  #post-content table tr:last-child td {
    border-bottom: none;
  }
  
  #post-content table tr:nth-child(even) {
    background: #f9fafb;
  }
  
  /* Content boxes */
  .content-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1.75rem;
    margin: 2rem 0;
  }
  
  /* Info, warning and tip boxes */
  .info-box, .warning-box, .tip-box {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem 1.5rem 3.5rem;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  
  .info-box {
    background: #e3f2fd;
    border-left: 5px solid #2196f3;
  }
  
  .warning-box {
    background: #fff3f0;
    border-left: 5px solid #ff5722;
  }
  
  .tip-box {
    background: #e8f5e9;
    border-left: 5px solid #4caf50;
  }
  
  .info-box:before, .warning-box:before, .tip-box:before {
    position: absolute;
    left: 1.25rem;
    top: 1.5rem;
    font-weight: bold;
    font-size: 1.1rem;
  }
  
  .info-box:before {
    content: "i";
    color: #2196f3;
  }
  
  .warning-box:before {
    content: "!";
    color: #ff5722;
  }
  
  .tip-box:before {
    content: "✓";
    color: #4caf50;
  }
  
  /* Call-to-action boxes */
  .cta-box {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    border: 1px solid #f48fb1;
    border-radius: 6px;
    padding: 2rem;
    margin: 2.5rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.12);
  }
  
  .cta-box h3 {
    color: #c2185b;
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .cta-box p {
    margin-bottom: 1.25rem;
  }
  
  .cta-button {
    display: inline-block;
    background: #e91e63;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(233, 30, 99, 0.25);
  }
  
  .cta-button:hover {
    background: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(233, 30, 99, 0.3);
  }
  
  /* Separator */
  hr {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 2.5rem 0;
  }
  
  /* Links styling - changed to pink (#e91e63) as requested */
  #post-content a {
    color: #e91e63;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
  }
  
  #post-content a:hover {
    border-bottom-color: #e91e63;
    color: #c2185b;
  }
  
  /* Additional Typography Refinements */
  #post-content strong {
    font-weight: 600;
    color: #1f2937;
  }
  
  #post-content em {
    font-style: italic;
    color: #4b5563;
  }
  
  /* Container width adjustments for different screen sizes */
  @media (min-width: 1440px) {
    .container {
      max-width: 1280px;
      margin: 0 auto;
    }
    
    .blog-post, #post-content {
      padding: 2.5rem 4rem;
    }
  }
  
  /* Responsive adjustments */
  @media (max-width: 1200px) {
    .blog-post, #post-content {
      padding: 2rem;
    }
  }
  
  @media (max-width: 1024px) {
    .blog-title {
      font-size: 2.2rem;
    }
    
    .blog-description {
      font-size: 1.15rem;
    }
    
    #post-content h2 {
      font-size: 1.7rem;
    }
    
    #post-content h3 {
      font-size: 1.4rem;
    }
  }
  
  @media (max-width: 768px) {
    .blog-post, #post-content {
      padding: 1.75rem;
    }
    
    .blog-title {
      font-size: 2rem;
    }
    
    #post-content {
      font-size: 1.05rem;
    }
  }
  
  @media (max-width: 640px) {
    .blog-post, #post-content {
      padding: 1.25rem;
      margin: 0;
    }
    
    .blog-meta {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.75rem;
    }
    
    .blog-title {
      font-size: 1.8rem;
    }
    
    .blog-description {
      font-size: 1.1rem;
    }
    
    #post-content h2 {
      font-size: 1.5rem;
    }
    
    #post-content h3 {
      font-size: 1.3rem;
    }
    
    #post-content h4 {
      font-size: 1.15rem;
    }
    
    .info-box, .warning-box, .tip-box {
      padding: 1.25rem 1.25rem 1.25rem 3rem;
    }
    
    #post-content ul, 
    #post-content ol {
      margin-left: 0.5rem;
      padding-left: 1rem;
    }
  }
  
  /* Dark mode support for better reading in low light */
  @media (prefers-color-scheme: dark) {
    body.dark-mode-enabled .blog-post,
    body.dark-mode-enabled #post-content {
      background: #1a1a1a;
      color: #e0e0e0;
    }
    
    body.dark-mode-enabled .blog-title {
      color: #f0f0f0;
    }
    
    body.dark-mode-enabled .blog-description {
      color: #c0c0c0;
    }
    
    body.dark-mode-enabled #post-content h2,
    body.dark-mode-enabled #post-content h3,
    body.dark-mode-enabled #post-content h4 {
      color: #f0f0f0;
      border-bottom-color: #333;
    }
    
    body.dark-mode-enabled #post-content a {
      color: #f48fb1;
    }
    
    body.dark-mode-enabled #post-content a:hover {
      color: #f8bbd0;
      border-bottom-color: #f48fb1;
    }
    
    body.dark-mode-enabled .info-box {
      background: #0d47a1;
      border-left-color: #2196f3;
    }
    
    body.dark-mode-enabled .warning-box {
      background: #b71c1c;
      border-left-color: #ff5722;
    }
    
    body.dark-mode-enabled .tip-box {
      background: #1b5e20;
      border-left-color: #4caf50;
    }
    
    body.dark-mode-enabled blockquote {
      background: #2d2d2d;
      border-left-color: #e91e63;
    }
  }
  
  /* Print styling for better document printing */
  @media print {
    .blog-post, #post-content {
      max-width: 100%;
      padding: 0;
      margin: 0;
      box-shadow: none;
      font-size: 12pt;
      line-height: 1.5;
    }
    
    .blog-title {
      font-size: 24pt;
    }
    
    .blog-description {
      font-size: 14pt;
    }
    
    #post-content h2 {
      font-size: 18pt;
      break-after: avoid;
    }
    
    #post-content h3 {
      font-size: 16pt;
      break-after: avoid;
    }
    
    #post-content h4 {
      font-size: 14pt;
      break-after: avoid;
    }
    
    #post-content a {
      color: #000;
      text-decoration: underline;
      border-bottom: none;
    }
    
    .cta-box, .info-box, .warning-box, .tip-box {
      break-inside: avoid;
      border: 1px solid #ddd;
      background: #f9f9f9 !important;
      color: #000 !important;
    }
    
    .author-badge, .date-badge {
      background: none;
      color: #000;
      padding: 0;
      box-shadow: none;
    }
  }