/* ================= BLOG POST PAGE ================= */

.blog-post {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* ---------- TITLE ---------- */
.blog-post h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #0f172a;
}

/* ---------- META ---------- */
.post-meta {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
}

/* ---------- FEATURED IMAGE ---------- */
.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;  /* center */
  border-radius: 12px;
}
/* ================= POST CONTENT BOX ================= */

.post-content {
  background: #ffffff;
  padding: 20px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  margin-top: 20px;

  font-size: 17px;
  line-height: 1.8;
  color: #1e293b;
}

/* ================= HEADINGS ================= */

.post-content h2 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #0f172a;

  border-left: 4px solid #0f766d;
  padding-left: 10px;
}

.post-content h3 {
  font-size: 20px;
  margin-top: 25px;
  margin-bottom: 8px;
}

/* ================= SPACING FIX ================= */

.post-content > *:first-child {
  margin-top: 0;
}

.post-content p:first-child {
  margin-top: 0;
}

/* ================= TOC ================= */

#toc-container {
  background: #f8fafc;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* ================= OPTIONAL HOVER FEEL ================= */

.post-content:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transition: 0.3s;
}

/* PARAGRAPH */
.post-content p {
  margin-bottom: 15px;
}

/* LIST */
.post-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.post-content li {
  margin-bottom: 6px;
}

/* ================= TOC ================= */

#toc-container {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 25px;
  border: 1px solid #e2e8f0;
}

#toc-container h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

#toc-list {
  list-style: none;
  padding: 0;
}

#toc-list li {
  margin-bottom: 8px;
}

#toc-list a {
  text-decoration: none;
  color: #0f766d;
  font-size: 14px;
}

#toc-list a:hover {
  text-decoration: underline;
}

/* ================= STRONG HIGHLIGHT ================= */

.post-content strong {
  color: #0f766d;
}

/* ================= RELATED POSTS SPACE ================= */

.related-posts {
  margin-top: 40px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

  .blog-post {
    padding: 15px;
  }

  .blog-post h1 {
    font-size: 26px;
  }

  .post-content {
    font-size: 15px;
  }

}

/* ================= CTA BOX ================= */

.cta-box {
  background: linear-gradient(135deg, #e0f2fe, #f0fdf4);
  border-left: 5px solid #0f766d;
  padding: 18px 20px;
  border-radius: 12px;
  margin: 25px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #0f172a;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}

/* subtle glow effect */
.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.cta-box:hover::before {
  right: 100%;
}

/* hover effect */
.cta-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* heading bold */
.cta-box b {
  color: #0f766d;
  font-size: 16px;
}

/* highlight text */
.cta-box strong {
  color: #16a34a;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .cta-box {
    font-size: 14px;
    padding: 15px;
  }
}

/* ================= Related Posts ================= */
.related-eclipse {
  background: linear-gradient(135deg, #fff7e6, #ffe9c7);
  border-left: 5px solid #ff9800;
  padding: 18px;
  margin: 25px 0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.related-eclipse h3 {
  margin-bottom: 12px;
  font-size: 18px;
  color: #e65100;
}

.related-eclipse ul {
  list-style: none;
  padding: 0;
}

.related-eclipse li {
  margin-bottom: 8px;
}

.related-eclipse a {
  text-decoration: none;
  font-weight: 600;
  color: #333;
  transition: 0.3s;
}

.related-eclipse a:hover {
  color: #d84315;
}

.related-eclipse li a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
}

.related-eclipse li a:hover {
  background: #ffe0b2;
}

.related-posts{
margin-top:50px;
}

.related-posts h2{
margin-bottom:20px;
font-size:22px;
}

.related-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:16px;
}

.related-card {
  display: block;
  text-decoration: none;
  color: #222;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: 0.25s;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

.related-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-card h3 {
  font-size: 15px;
  padding: 12px;
  line-height: 1.4;
}

.related-content {
    display: flex;
    flex-direction: column;
}

.related-desc {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

p.related-desc {
  padding-left: 12px;
}

/* Container */
.post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Title */
.post-title {
  font-size: 32px;
  line-height: 1.3;
  margin: 10px 0;
}

/* Meta */
.post-meta {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Image */
.post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Draft notice */
.draft-notice {
  background: #fff3cd;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* Breadcrumb */
.breadcrumb-wrap {
  margin-bottom: 10px;
}