/* ========== BLOG PAGE STYLING ========== */

/* Light background for the whole page */
body {
  background: radial-gradient(circle at top, #e0f7fa 0, #f5f7fb 45%, #ffffff 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Main blog article card */
.blog-article {
  max-width: 960px;
  margin: 90px auto 60px;
  padding: 2.5rem 2.25rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.10); /* teal border hint */
}

/* Top heading */
.blog-article > header h1 {
  font-size: 2.1rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #0f766e; /* teal */
}

.blog-article > header p {
  color: #64748b;
  font-size: 0.98rem;
  margin-bottom: 1.75rem;
}

/* Sections spacing */
.blog-article section {
  margin-bottom: 2.3rem;
}

/* H2 styling – section headings */
.blog-article h2 {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  margin-top: 0.5rem;
  color: #0f172a;
  position: relative;
  padding-left: 0.9rem;
}

.blog-article h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18rem;
  width: 4px;
  height: 1.6rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #0f766e, #14b8a6);
}

/* H3 and H4 styling */
.blog-article h3 {
  font-size: 1.15rem;
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  color: #0f766e;
}

.blog-article h4 {
  font-size: 1.02rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  color: #0369a1;
}

/* Paragraphs */
.blog-article p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: #1e293b;
  margin-bottom: 0.65rem;
}

/* Lists */
.blog-article ul {
  margin: 0.4rem 0 0.9rem 1.4rem;
  padding-left: 0;
}

.blog-article li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  color: #1f2933;
}

/* Nice bullet dots */
.blog-article li::marker {
  color: #0f766e;
}

/* Blockquote for definitions */
.blog-article blockquote {
  margin: 0.8rem 0 1rem;
  padding: 0.8rem 1rem;
  border-left: 4px solid #0f766e;
  background: #ecfeff;
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
  color: #134e4a;
}

/* Inline code style */
.blog-article code {
  font-family: "JetBrains Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 0.86rem;
  background: #0f172a0d;
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  color: #0f172a;
}

/* Tables */
.blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.3rem;
  font-size: 0.92rem;
  border-radius: 10px;
  overflow: hidden;
}

.blog-article table thead {
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  color: #ffffff;
}

.blog-article table th,
.blog-article table td {
  padding: 0.55rem 0.6rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.blog-article table tbody tr:nth-child(even) {
  background: #f8fafc;
}

/* Figures / images */
.blog-article figure {
  margin: 1.4rem 0;
  text-align: center;
}

.blog-article figure img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.20);
}

.blog-article figure figcaption {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.4rem;
}

/* Links */
.blog-article a {
  color: #0f766e;
  text-decoration: none;
  border-bottom: 1px dotted rgba(15, 118, 110, 0.6);
}

.blog-article a:hover {
  color: #0e7490;
  border-bottom-style: solid;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .blog-article {
    margin: 80px 12px 40px;
    padding: 1.4rem 1.2rem;
  }

  .blog-article > header h1 {
    font-size: 1.6rem;
  }

  .blog-article h2 {
    font-size: 1.2rem;
  }
}