html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Blog Content Styling */
.blog-content {
  line-height: 1.8;
  color: #374151;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  text-rendering: optimizeLegibility;
}

.blog-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #3b82f6;
  line-height: 1.2;
}

.blog-content h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
  line-height: 1.3;
}

.blog-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  margin: 1.25rem 0 0.75rem 0;
  line-height: 1.4;
}

.blog-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4b5563;
  margin: 1rem 0 0.5rem 0;
  line-height: 1.4;
}

.blog-content p {
  margin: 1rem 0;
  text-align: justify;
  line-height: 1.7;
  text-indent: 0;
}

.blog-content ul, .blog-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.blog-content li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.blog-content ul li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
}

.blog-content ol li {
  list-style-type: decimal;
  margin-bottom: 0.5rem;
}

.blog-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background-color: #f8fafc;
  border-left: 4px solid #3b82f6;
  font-style: italic;
  color: #475569;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.blog-content blockquote p {
  margin: 0;
}

.blog-content strong {
  font-weight: 600;
  color: #1f2937;
}

.blog-content em {
  font-style: italic;
  color: #4b5563;
}

.blog-content a {
  color: #3b82f6;
  text-decoration: underline;
  text-decoration-color: #dbeafe;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.blog-content a:hover {
  color: #1d4ed8;
  text-decoration-color: #3b82f6;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: block;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.blog-content th {
  background-color: #f9fafb;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.blog-content td {
  padding: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}

.blog-content tr:hover {
  background-color: #f9fafb;
}

.blog-content code {
  background-color: #f1f5f9;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875em;
  color: #dc2626;
  border: 1px solid #e2e8f0;
}

.blog-content pre {
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .blog-content h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .blog-content h3 {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  
  .blog-content {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}