body{
    margin: 0px;
}

.post-hero {
  background: #E1E9FE;
  padding: 20px 3% 20px 10%;
}
.post-hero .post-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  font-family: Roboto;
}
.post-hero .post-title {
  font-size: 30px;
  font-weight: bold;
  max-width: 700px;
  font-family: Roboto;
}

.post-category a{
    text-decoration: none;
}

.post-category{
    background-color: white;
    padding: 3px 6px;
    border-radius: 10px;
    margin-right: 5px;
}

.divider {
    height: 2px;
    background-color: #E4E7E7;
    margin: 20px 0;
}

a {
    text-decoration: none;
}

.post-featured-images {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.post-featured-images img {
  width: 48%;
  border-radius: 10px;
}
.post-layout {
  display: flex;
  gap: 70px;
  margin: 40px 20px;
  padding: 0px 3% 0px 10%;
}

.toc-sidebar .toc-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-family: Roboto;
  color: #294B9E;
}
.toc-sidebar nav a {
  display: block;
  margin-bottom: 8px;
  color: #333;
}


.toc-sidebar {
  flex: 1;
  position: sticky;
  top: 100px;
  font-family: Roboto;
  font-size: 14px;
}
.toc-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-family: Roboto;
}
#table-of-contents a {
  display: block;
  color: #727375;
  margin-bottom: 8px;
  font-size: 14px;
  text-decoration: none;
}
#table-of-contents a:hover {
  text-decoration: underline;
}
.post-content {
  flex: 3;
  font-family: Roboto;
  line-height: 25px;
  margin-top: -20px;
}
.in-post-featured-image {
  width: 48%;
  margin: 20px 10px 30px 0;
  border-radius: 10px;
  display: inline-block;
}
.conclusion-box {
  background: #f6f7f9;
  padding: 20px;
  border-radius: 8px;
  font-family: Roboto;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.related-post {
  
  overflow: hidden;
}

.related-post img.related-thumb {
  width: 100%;
  height: 200px;      /* consistent height */
  object-fit: cover;  /* ensures same shape */
  display: block;
  border-radius: 8px;
}

.related-post img {
  width: 100%;
  border-radius: 10px;
}

.related-post h4 {
  font-size: 18px;
  margin: 12px 0 6px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* max 2 lines */
  -webkit-box-orient: vertical;
}

.related-post p {
  font-size: 15px;
  color: #444;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* max 3 lines */
  -webkit-box-orient: vertical;
}


.related-post .meta {
  font-size: 12px;
  color: #666;
  margin: 5px 0;
}

.post-share {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.post-share a img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.post-share a:hover img {
  transform: scale(1.1);
}



@media (max-width: 768px) {

 .post-layout {
    display: block;
   }
   
 .toc-sidebar {
    position: relative;
    top: 0px;
    margin-bottom: 60px;
 }
 
 .post-layout {
    display: block;
    margin: 40px 0px;
    padding: 0px 10px 0px 10px;
 }

.related-posts-grid {
    display: block;
 }
 
 .related-post {
    overflow: hidden;
    margin-bottom: 30px;
 }
 
 .in-post-featured-image {
    width: 100%;
 }
 
 .post-hero {
    padding: 20px 10px 20px 10px;
 }
 
 .post-hero .post-title {
    font-size: 20px;
 }

}
