/* ================================================
   MEDIUM-STYLE BLOG DESIGN FOR WORDPRESS POSTS
   ================================================ */

/* General Layout */
body.single-post {
  font-family: 'Georgia', serif;
  color: #1a1a1a;
  background-color: #fafafa;
  line-height: 1.85;
  font-size: 1.1rem;
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.single-post p,
.single p,
.entry-content p {
  font-family: 'Georgia', serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1a1a1a;
  margin-bottom: 1.5em;
  text-align: justify;
}

/* Headings */
.single-post h1,
.single-post h2,
.single-post h3 {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  margin: 2.2rem 0 1rem;
}

.single-post h1 {
  font-size: 2.4rem;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.single-post h2 {
  font-size: 1.7rem;
  border-left: 3px solid #000;
  padding-left: 0.6rem;
}

.single-post h3 {
  font-size: 1.3rem;
  color: #333;
}

/* Paragraphs */
.single-post p {
  margin-bottom: 1.4rem;
  text-align: justify;
  word-spacing: 0.05rem;
}

/* Unordered Lists */
.single-post ul {
  margin-left: 2rem;
  margin-bottom: 1.6rem;
  list-style: none;
}

.single-post ul li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.single-post ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #000;
}

/* Ordered Lists */
.single-post ol {
  margin-left: 2rem;
  margin-bottom: 1.6rem;
  counter-reset: number-counter;
  list-style: none;
}

.single-post ol li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.9rem;
  line-height: 1.6;
  counter-increment: number-counter;
}

.single-post ol li::before {
  content: counter(number-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: #000;
  font-family: 'Inter', sans-serif;
}

/* Images */
.single-post img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-post img:hover {
  transform: scale(1.015);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Centered Figures &amp; Captions */
.single-post figure {
  text-align: center;
  margin: 2rem 0;
}

.single-post figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.6rem;
  font-style: italic;
}

/* Quote Styling */
.single-post blockquote {
  border-left: 4px solid #000;
  padding-left: 1.2rem;
  margin: 2rem 0;
  color: #444;
  font-style: italic;
  background: #f6f6f6;
  border-radius: 4px;
}

/* Image Credits (like Unsplash credits) */
.single-post p:has(a[href*="unsplash.com"]) {
  font-size: 0.85rem;
  color: #888;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  text-align: right;
}

/* Links */
.single-post a {
  color: #000;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.single-post a:hover {
  color: #444;
}

/* Horizontal Rule */
.single-post hr {
  border: none;
  height: 1px;
  background: #ddd;
  margin: 2rem 0;
}

/* Drop Cap for First Paragraph */
.single-post p:first-of-type::first-letter {
  font-size: 3.2rem;
  float: left;
  line-height: 1;
  padding-right: 0.25rem;
  font-weight: bold;
  color: #000;
}

/* Reading Progress Bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #000;
  width: 0;
  z-index: 9999;
  transition: width 0.25s ease;
}
