/* ==== Global Styles ==== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
  color: #333;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==== Category Links Section ==== */
.category-links-section {
  max-width: 1100px;
  margin: 50px auto;
  padding: 5px 15px;
  background-color: #f5f5f5;
  border-radius: 6px;
  font-size: 1rem;
  color: #555;
  border-bottom: 2px solid #ccc;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.category-links a {
  color: #555;
  transition: color 0.3s ease;
}

.category-links a:hover {
  color: #000;
}

/* ==== Main Container ==== */
.container {
  max-width: 1200px;
  margin: 10px auto;
  padding: 0px;
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.1);
}

.container h1{
      font-size: 2.5rem;

}
/* ==== Post and Sidebar Layout ==== */
.post-container {
  flex: 3 1 0%;
  min-width: 0; /* Prevents overflow from long words/images */
  background: #fff;
  padding: 15px 10px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.1);
}

.sidebar {
  flex: 1;
  min-width: 0;
  height: fit-content;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  position: sticky;
  top: 20px;
}

.sidebar h3, .sidebar h4 {
  margin-top: 0;
  font-family: 'Montserrat', serif;
  font-size: 1.3rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #2196f3;
  padding-bottom: 8px;
  display: block;
}

.sidebar h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  padding-bottom: 2px;
}
.sidebar a {
  display: block;
  margin: 6px 0;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}

.sidebar a i {
  color: #888;           /* subtle grey tone */
  margin-right: 6px;     /* space between icon & text */
  font-size: 0.9rem;
}



/* ==== Post Content ==== */
.post-title {
  font-size: 2.8rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 25px;
}

.post-meta span {
  margin-right: 12px;
}

.post-rating i {
  margin-right: 3px;
}

.featured-image {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
  margin-bottom: 30px;
}

.post-content {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #444;
  overflow-wrap: break-word;
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}

.post-content h2, .post-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-family: 'Lora', serif;
}

.post-content a {
  color: #2196f3;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

hr {
  border: none;
  border-bottom: 1px solid #eee;
  margin: 40px 0;
}

/* ==== Breadcrumbs and Tags ==== */
.breadcrumbs {
  font-size: 0.9rem;
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 10px 15px;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.breadcrumbs a {
  color: #0077cc;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  color: #555;
}

.post-tags {
  margin-top: 15px;
}

.tag-pill {
  display: inline-block;
  padding: 6px 12px;
  background: #f0f0f0;
  color: #333;
  border-radius: 20px;
  font-size: 14px;
  margin: 0 6px 6px 0;
  transition: background 0.3s, color 0.3s;
}

.tag-pill:hover {
  background: #333;
  color: #fff;
}

/* ==== Share Section ==== */
.share-section {
  margin-top: 30px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
}

.share-section h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  color: #fff !important;
  border-radius: 5px;
  font-size: 14px;
  text-decoration: none !important;
  transition: .3s;
}

.share-btn:hover {
  opacity: .85;
}

.share-btn i {
  font-size: 14px;
}

.facebook { background: #2d0ea7ff; }
.twitter { background: #1da1f2; }
.linkedin { background: #0077b5; }
.whatsapp { background: #25d366; }

/* ==== Related Posts ==== */
.related-posts {
  margin-top: 40px;
}

.related-posts h3 {
  font-family: 'Lora', serif;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.related-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.related-card {
  background: #fff;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.1);
  border-radius: 8px;
  width: 30%;
  overflow: hidden;
  color: #333;
  transition: box-shadow 0.3s ease;
}

.related-card:hover {
  box-shadow: 0 8px 25px rgb(0 0 0 / 0.15);
}

.related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.related-card-title {
  padding: 12px 15px;
  font-weight: 600;
}

/* ==== Author Box & Comments ==== */
.author-box {
  text-align: center;
  margin: 40px 0;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  border: 2px solid #8888884f;
  box-shadow: 0 4px 15px rgb(0 0 0 / 0.08);
}

.author-pic {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
}

.author-name {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  margin: 10px 0;
  color: #222;
}

.author-bio {
  font-size: 1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 10px;
  line-height: 1.6;
  padding: 0 10px;
}

.author-email a {
  color: #2196f3;
  text-decoration: none;
}

.author-email a:hover {
  text-decoration: underline;
}

.comments-section {
  margin-top: 50px;
}

.comments-section h3 {
  font-family: 'Lora', serif;
  margin-bottom: 20px;
}

.comment-form textarea {
  width: 100%;
  height: 120px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
  font-size: 1rem;
}

.comment-form button {
  background: #2196f3;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 12px;
  font-size: 1rem;
}

.comment-form button:hover {
  background: #1e88e5;
}
/* === Featured & Trending Common Styles === */
.featured-list a, 
.trending-list a {
  display: flex;              
  align-items: center;              
  gap: 6px;                          
  margin-bottom: 10px;
  color: #0077cc;
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.3s ease-in-out;
}

.featured-list a:hover, 
.trending-list a:hover {
  text-decoration: underline;
  color: #0b7cd5;
  transform: translateX(3px);        /* subtle horizontal slide instead of scale */
}

/* === Trending Icon Styling === */
.trending-list a i.fa-fire-alt {
  color: #ff5722;
  font-size: 1rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.trending-list a:hover i.fa-fire-alt {
  color: #ff3300;
  text-shadow: 0 0 6px #ff6600;
}
/* ==== Responsive Design ==== */
@media (max-width: 992px) {
  
  .container {
    flex-direction: column;
    
    margin: 0; 
    max-width: 100%; 
    padding: 0; 
  }
  
  .sidebar, .post-container {
    width: 100%;
    margin: 0;
    padding: 0px;
    box-shadow: none; 
  }
  
  .sidebar {
    position: static;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
   .container {
    /* We are relying on the 992px rule for padding, so we can remove this line */
    /* If you still want a bit more padding on very small screens, keep it, but the 992px rule should fix the issue */
  }
.post-container {
 /* Remove the whole block, or ensure the shadow is set to none */
 box-shadow: none; 
} 
  
  
  .category-links-section {
    display: none;
  }
  .related-list {
    flex-direction: column;
  }
  .related-card {
    width: 100%;
  }
  .author-pic {
    width: 120px;
    height: 120px;
  }
  .author-name {
    font-size: 1.3rem;
  }
  .author-bio {
    font-size: 0.95rem;
  }
  .post-title {
    font-size: 26px;
  }
  .post-content {
    font-size: 17px;
  }
}

@media (max-width: 600px) {
  
  .post-meta {
  font-size: 0.85rem;
  line-height: 1.8;
}
.post-meta span {
  display: inline-block;
  margin-bottom: 3px;
}
  
  
  .share-buttons {
    flex-direction: column;
    width: 100%;
  }
  .share-btn {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
 
   .container {
    /* No changes needed here, as the 992px rule now handles the layout correctly */
   }
.post-container {
 /* Remove the whole block, or ensure the shadow is set to none */
 box-shadow: none; 
}
 .sidebar {
    padding: 8px;  /* minimal inner padding */
  }
  .author-pic {
    width: 120px;
    height: 120px;
  }
  .author-name {
    font-size: 1.2rem;
  }
  .author-bio {
    font-size: 0.9rem;
  }
  .sidebar h3 {
    font-size: 1.1rem;
  }
}


/* ==== Contribute Sidebar Section ==== */
.contribute-sidebar {
  background: #f9f9f9;
  padding: 25px 20px;
  margin-top: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #e5e5e5;
}

.contribute-sidebar h3 {
  font-family: 'Montserrat', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #222;
  margin-bottom: 10px;
}

.contribute-sidebar p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.contribute-sidebar .contribute-btn {
  background: #111;
  color: #fff;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-family: 'Montserrat', serif;
  transition: 0.3s;
  display: inline-block;
}

.contribute-sidebar .contribute-btn:hover {
  background: #333;
}

.like-btn {
  background: none;
  border: none;
  color: #e63946;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 8px;
  transition: transform 0.2s ease;
}
.like-btn:hover {
  transform: scale(1.1);
}
.like-btn.liked {
  color: #b71c1c;
  font-weight: bold;
}