/* =========================================
   Theme Variables (Light & Dark Mode)
========================================= */
:root {
  --bg-primary: #ffffff;
  --text-main: #334155;
  --text-heading: #0f172a;
  --primary-color: #0d6efd;
  --primary-hover: #0b5ed7;
  --accent-color: #ff6b6b;
  --info-bg: #f0f7ff;
  --info-border: #0d6efd;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --img-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  --caption-color: #64748b;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
  --bg-primary: #0f172a;
  --text-main: #cbd5e1;
  --text-heading: #f8fafc;
  --primary-color: #60a5fa;
  --primary-hover: #93c5fd;
  --accent-color: #ff6b6b;
  --info-bg: rgba(30, 41, 59, 0.7);
  --info-border: #60a5fa;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  --img-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  --caption-color: #94a3b8;
}

/* Custom Text Selection */
.blog-post ::selection {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* =========================================
   Blog Post Base Styling
========================================= */
.blog-post {
  line-height: 1.85;
  color: var(--text-main);
  transition: var(--transition);
}

/* Headings Styling */
.blog-post h1 {
  margin-bottom: 24px;
  color: var(--text-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.blog-post h2 {
  margin: 40px 0 18px;
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
  display: inline-block;
  transition: var(--transition);
}

/* Accent Line under H2 on Hover */
.blog-post h2::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 3px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
  border-radius: 2px;
}

.blog-post h2:hover {
  color: var(--accent-color);
}

.blog-post h2:hover::after {
  width: 100%;
}

.blog-post h3 {
  margin: 28px 0 14px;
  color: var(--text-heading);
  font-weight: 600;
  transition: var(--transition);
}

.blog-post h3:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

/* Paragraphs & Typography */
.blog-post p {
  margin-bottom: 20px;
  text-align: justify;
}

.blog-post strong {
  color: var(--text-heading);
  font-weight: 700;
}

/* Styled Interactive Links */
.blog-post a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  background-image: linear-gradient(var(--primary-color), var(--primary-color));
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: var(--transition);
  padding-bottom: 2px;
}

.blog-post a:hover {
  color: var(--accent-color);
  background-image: linear-gradient(var(--accent-color), var(--accent-color));
  background-size: 100% 2px;
}

/* Lists Styling */
.blog-post ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

.blog-post li {
  margin-bottom: 10px;
  text-align: justify;
  position: relative;
}

.blog-post li::marker {
  color: var(--primary-color);
}

/* =========================================
   Modern Callout / Info Box
========================================= */
.info-box {
  background: var(--info-bg);
  border-left: 5px solid var(--info-border);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.info-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Featured Post Images
========================================= */
.post-image {
  margin: 35px 0;
  text-align: center;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.post-image img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--border-radius);
  box-shadow: var(--img-shadow);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

/* Image Hover Zoom Effect */
.post-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.post-image figcaption {
  margin-top: 12px;
  color: var(--caption-color);
  font-style: italic;
  line-height: 1.5;
}