/* Blog container styling */
.blog-content {
  margin: 0 auto;
  font-family: 'Ageo', sans-serif;
  line-height: 1.75;
  color: #333;
}

/* Headings with Automatic Numbering */
.blog-content h1,
.blog-content h2,
.blog-content h3 {
  margin-bottom: 1.5rem;
  font-weight: bold;
  font-family: 'Ageo', sans-serif;
  color: #1c2833; /* Darker shade for contrast */
}



/* Styling Individual Headings */
.blog-content h1 {
  font-size: 2.5rem;
  border-bottom: 1px solid lightgray;
  padding-bottom: 0.5rem;
}

.blog-content h2 {
  font-size: 2rem;
  border-bottom: 1px solid lightgray;
  padding-bottom: 0.4rem;
}

.blog-content h3 {
  font-size: 1.5rem;
  border-bottom: 1px solid lightgray;
  padding-bottom: 0.3rem;
}

/* Step Headings (e.g., "Step 3: Run the Application") */
.blog-content h3 strong:first-child {
  color: #ff5733; /* Highlight step numbers */
  font-weight: bold;
  margin-right: 8px;
}

/* Paragraphs */
.blog-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: normal;
  font-family: 'Bellota-Text', sans-serif;
  text-indent: 20px; /* Adds proper indentation */
  text-align: justify;
}

/* Ordered & Unordered Lists */
.blog-content ul,
.blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

/* Ordered Lists - Numbers */
.blog-content ol {
  list-style-type: decimal;
}

/* Nested Ordered Lists */
.blog-content ol ol {
  list-style-type: lower-alpha; /* a, b, c */
}

.blog-content ol ol ol {
  list-style-type: lower-roman; /* i, ii, iii */
}

/* Unordered Lists */
.blog-content ul {
  list-style-type: disc; /* Default bullet */
}

/* Nested Unordered Lists */
.blog-content ul ul {
  list-style-type: circle;
}

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

/* List Items */
.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content p,
.blog-content li {
  font-size: 1rem;
  font-weight: normal;
  font-family: 'Bellota-Text', sans-serif;
  text-indent: 20px; /* Indentation for paragraphs */
  text-align: justify;
  line-height: 1.75;
}

/* Links */
.blog-content a {
  color: #27ae60; /* Light green */
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

.blog-content a:hover {
  color: #1abc9c; /* Brighter green on hover */
  text-decoration: none;
}

/* Code Block Styling */
.blog-content pre {
  background-color: #1e1e1e; /* Dark theme for code */
  color: #f8f8f2;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Fira Code', monospace;
  margin-bottom: 2rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
  position: relative;
}

/* Code Snippets */
.blog-content pre code {
  background: none;
  padding: 0;
  color: #50fa7b; /* Greenish color for contrast */
}

/* Inline Code */
.blog-content code {
  background-color: #282c34;
  padding: 0.2rem 0.4rem;
  font-size: 0.9rem;
  color: #ff79c6;
  font-family: 'Fira Code', monospace;
  border-radius: 4px;
}

/* Code Copy Button */
.copy-code {
  position: absolute;
  top: 8px;
  right: 10px;
  background-color: #50fa7b;
  color: #1e1e1e;
  border: none;
  padding: 5px 8px;
  font-size: 0.8rem;
  font-family: 'Fira Code', monospace;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.copy-code:hover {
  background-color: #66ff99;
}

/* Command snippets */
.blog-content .command-snippet {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 1rem;
  border-radius: 5px;
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.blog-content .command-snippet::before {
  content: '$ ';
  color: #1abc9c;
}

/* Tables */
.blog-content table {
  width: 100%;
  border-collapse: collapse;
}

.blog-content th,
.blog-content td {
  border: 1px solid #ddd;
  padding: 8px;
}

.blog-content th {
  background-color: #0077cc;
  color: white;
}

/* Blockquotes */
.blog-content blockquote {
  background: #f5f5f5;
  border-left: 5px solid lightgray;
  padding: 10px;
  margin: 1.5rem 0;
  font-style: italic;
}

/* Numbered Headings */
.blog-content h3 {
  font-size: 1.5rem;
  border-bottom: 1px solid lightgray;
  padding-bottom: 0.3rem;
  position: relative;
}

/* Fix for Numbered Headings */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  counter-reset: step-counter;
}

.blog-content .heading-number {
  font-weight: bold;
  color: #1c2833;
  margin-right: 6px;
  font-family: 'Fira Code', monospace; /* Use a consistent font */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-content h1 {
    font-size: 2rem;
  }
  .blog-content h2 {
    font-size: 1.75rem;
  }
  .blog-content h3 {
    font-size: 1.25rem;
  }
  .blog-content p,
  .blog-content li {
    font-size: 0.95rem;
    text-indent: 15px;
  }
  .blog-content pre {
    font-size: 0.9rem;
    padding: 0.9rem;
  }
  .copy-code {
    font-size: 0.75rem;
    padding: 4px 6px;
  }
}

@media (max-width: 768px) {
  .blog-content {
    padding: 0 1rem;
  }

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

  .blog-content h2 {
    font-size: 1.5rem;
  }

  .blog-content h3 {
    font-size: 1.2rem;
  }

  .blog-content p,
  .blog-content li {
    font-size: 0.9rem;
    text-indent: 10px;
  }

  .blog-content pre {
    font-size: 0.85rem;
    padding: 0.8rem;
  }

  .blog-content blockquote {
    padding: 8px;
  }

  .copy-code {
    font-size: 0.7rem;
    padding: 3px 5px;
  }
}

@media (max-width: 480px) {
  .blog-content {
    padding: 0 0.75rem;
  }

  .blog-content h1 {
    font-size: 1.5rem;
  }

  .blog-content h2 {
    font-size: 1.3rem;
  }

  .blog-content h3 {
    font-size: 1.1rem;
  }

  .blog-content p,
  .blog-content li {
    font-size: 0.85rem;
    text-indent: 5px;
  }

  .blog-content pre {
    font-size: 0.8rem;
    padding: 0.7rem;
  }

  .blog-content blockquote {
    padding: 6px;
  }

  .blog-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .copy-code {
    font-size: 0.65rem;
    padding: 2px 4px;
  }
}

