/* General Reset */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* Header Styles */
.blog-header {
  text-align: center;
  padding: 50px 20px;
  background-color: #282c34;
  color: white;
}

.blog-header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.blog-header h2 {
  font-size: 1.5rem;
  font-weight: lighter;
  color: #61dafb;
}

/* Blog List Styles */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.blog-block {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 300px;
  text-decoration: none;
  color: inherit;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-block:hover {
  transform: translateY(-5px);
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

.blog-block h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  color: #282c34;
}

.blog-block p {
  font-size: 1rem;
  color: #555;
}

/* Blog Content Styles */
.blog-content {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #ddd;
}


/* Single Bar Footer Styles */
.single-bar-footer {
  background-color: #282c34; /* Dark bar background */
  color: white; /* White text */
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
}

.single-bar-footer a {
  color: #61dafb; /* Light blue links */
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
  transition: color 0.3s;
}

.single-bar-footer a:hover {
  color: #ffffff; /* White on hover */
}


/* published date and comments */

.blog-header .blog-date {
  font-size: 1.05rem;
  color: #bbb;
  margin-top: 10px;
  margin-bottom: 0;
}


.blog-date {
  text-align: center;
  color: #555;
  margin: 20px 0 -10px 0;
  font-size: 1rem;
}

.blog-comments {
  max-width: 800px;
  margin: 40px auto 20px auto;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 24px 20px;
}
.blog-comments h3 {
  margin-bottom: 16px;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.comment-form .form-control {
  font-size: 1rem;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #bbb;
}
.comment-form .btn {
  width: fit-content;
  align-self: flex-end;
  margin-top: 6px;
  background-color: #61dafb;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.comment-form .btn:hover {
  background: #282c34;
}

.comments-list {
  margin-top: 15px;
}
.comment {
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}
.comment:last-child {
  border-bottom: none;
}
.comment-author {
  font-weight: bold;
  margin-right: 10px;
}
.comment-date {
  color: #888;
  font-size: 0.93rem;
  margin-right: 5px;
}

/* Table of contents */
.blog-toc {
  max-width: 800px;
  margin: 30px auto 20px auto;
  background: #f5faff;
  border-radius: 8px;
  border: 1px solid #dde5ea;
  padding: 20px 25px;
  box-shadow: 0 2px 12px rgba(34, 71, 140, 0.04);
}
.blog-toc h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #2357c2;
  margin-bottom: 10px;
}
.blog-toc ul {
  margin: 0;
  padding-left: 18px;
}
.blog-toc li {
  margin-bottom: 8px;
  font-size: 1rem;
}
.blog-toc a {
  color: #1870d5;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-toc a:hover {
  color: #113e7e;
  text-decoration: underline;
}

html {
  scroll-behavior: smooth;
}


/* About the author */

.about-author {
  max-width: 800px;
  margin: 40px auto 32px auto;
  background: #f4f7fa;
  border-radius: 8px;
  border: 1px solid #dde5ea;
  padding: 28px 24px 18px 24px;
}
.about-author h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: #29538a;
}
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.author-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(34,71,140,0.08);
}
.author-box p {
  margin: 6px 0;
  color: #333;
}
.author-box a {
  color: #1870d5;
  text-decoration: none;
  font-weight: 500;
}
.author-box a:hover {
  text-decoration: underline;
  color: #113e7e;
}

/* blog images and caption */

.blog-img {
  display: block;
  margin: 24px auto;
  max-width: 100%;
  border-radius: 7px;
  box-shadow: 0 2px 12px rgba(34,71,140,0.08);
}

.blog-img-caption {
  text-align: center;
  font-size: 0.98rem;
  color: #777;
  margin-top: 8px;
}


/* ------- */

/* Headings in blog content */
.blog-content h2 {
  font-size: 2rem;
  margin-top: 32px;
  margin-bottom: 14px;
  color: #29538a;
}
.blog-content h3 {
  font-size: 1.28rem;
  margin-top: 22px;
  margin-bottom: 10px;
  color: #2357c2;
}
.blog-content h1 {
  /* Only use for main page title! */
  font-size: 2.3rem;
  margin-bottom: 20px;
  color: #222f3e;
}

/* Nested bullets */
.blog-content ul,
.blog-content ol {
  margin-left: 1.5em;
  margin-bottom: 18px;
}
.blog-content ul ul,
.blog-content ol ul,
.blog-content ul ol,
.blog-content ol ol {
  margin-top: 6px;
  margin-bottom: 6px;
}
.blog-content li {
  margin-bottom: 7px;
  font-size: 1.04em;
}

/* Code block */
.blog-code {
  background: #181c25;
  color: #f8f8f2;
  border-radius: 6px;
  padding: 16px 18px;
  margin: 22px 0 16px 0;
  font-size: 1.05em;
  overflow-x: auto;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(44,55,72,0.07);
}
.blog-code code {
  background: none;
  color: inherit;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
  font-size: inherit;
  padding: 0;
  border: none;
}

/* Separator */
.blog-separator {
  border: none;
  border-top: 2px solid #d1e1ee;
  margin: 36px auto 32px auto;
  width: 70%;
}


/* ---- */

.blog-table {
  width: 100%;
  max-width: 700px;
  margin: 28px auto 20px auto;
  border-collapse: collapse;
  background: none;
}
.blog-table td, .blog-table th {
  padding: 12px 14px;
  border: none;
  font-size: 1.03em;
  text-align: left;
  background: transparent;
}
.blog-table tr:nth-child(1) td,
.blog-table tr:nth-child(1) th {
  font-weight: bold;
  color: #29538a;
  background: #f7fbfd;
}
.blog-table tr:not(:first-child):hover {
  background: #f4f7fa;
}