/* Main Post Content Layout */
.post-content-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px;
}

.post-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 110vw;
}

.share-post-section {
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: flex-start;
  flex-direction: column;
  max-width: 1200px;
  margin-bottom: 3rem;
}

.share-post-title {
  font-size: 1.5rem;
  margin: 0;
  color: #015caf;
  font-family: "Anek Bangla", sans-serif;
  font-weight: 500;
}

.post-social-media {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 0 auto;
}

.post-social-media a {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.other-social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 0 auto;
}

.the-post-body {
  font-family: var(--secondary-font-family);
  font-weight: 300;
}

.topics-section-text {
  display: none;
}

/* Topics Section */
.topics-section {
  margin-bottom: 20px;
  border: 1px solid var(--main-title-color);
  border-radius: 13.825px;
  padding: 0 2rem;
}

.topics-section h3 {
  font-style: normal;
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 41px;
  margin: 1rem 0;
  font-family: var(--main-font-family);
  color: var(--main-title-color);
}

.topics-section ul {
  list-style: decimal;
  padding: 0;
}

.topics-section ul li {
  margin-bottom: 10px;
  color: var(--main-subtext-color);
}

.topics-section ul li p {
  color: var(--main-subtext-color);
  font-family: var(--secondary-font-family);
  font-style: normal;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 30px;
  margin: 0;
}

/* Most Accessed Posts */
.most-accessed-posts {
  margin-bottom: 20px;
}

.most-accessed-posts-title {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.5rem;
}

.most-accessed-posts h3 {
  font-size: 2rem;
  background: linear-gradient(90deg, #26c997 0%, #015caf 70%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--main-font-family);
  font-style: normal;
  font-weight: 600;
  margin: 0 0 0 0.5rem;
  line-height: 30px;
}

/* Post Items List */
.most-accessed-posts-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Individual Post Item */
.most-accessed-post-item a {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.most-accessed-post-item:hover {
  transform: scale(1.02);
}

.most-accessed-post-thumbnail img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
}

.most-accessed-post-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.most-accessed-post-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--main-title-color);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit title to two lines */
  -webkit-box-orient: vertical;
}

.most-accessed-post-excerpt {
  font-size: 1rem;
  color: #555;
  margin: 0.5rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit excerpt to two lines */
  -webkit-box-orient: vertical;
}

.read-more {
  font-size: 0.9rem;
  color: var(--main-green-color);
  text-decoration: none;
  margin-top: 0.5rem;
}

.read-more:hover {
  color: #015caf;
  transition: color 0.3s ease;
}

/* Promotion Section */
.promotion-section svg {
  max-width: 100%;
  height: auto;
}

/* Share Options */
.share-options {
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.share-options p {
  margin-bottom: 10px;
  font-weight: bold;
}

.share-btn {
  display: inline-block;
  margin-right: 10px;
  padding: 8px 15px;
  background-color: #015caf;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.share-btn:hover {
  background-color: #0269c9;
}

/* General Styles for Post Text */
.post-text {
  font-size: 1em;
  line-height: 1.6em;
}

.news-letter-button {
  background: linear-gradient(45deg, #00bfa6, #0073aa);
  padding: 2vh;
  border-radius: 15px;
  margin: 2vh auto;
  font-size: 3vh;
  color: white;
  border: solid 1px white;
  display: inline-block;
  text-align: center;
  line-height: normal;
}

.news-letter-button:hover {
  opacity: 0.9;
}

/* General Comments Section Container */
.comments-area,
.comments-section {
  margin-top: 5vh;
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Comment Form Styling */
.comment-respond {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.comment-reply-title {
  font-size: 2rem;
  color: #015caf;
  font-weight: bold;
  margin-bottom: 1.5rem;
  font-family: "Avenir", sans-serif;
}

.comment-notes,
.required-field-message {
  font-size: 1rem;
  color: #777;
  margin-bottom: 1rem;
  font-family: "Avenir", sans-serif;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
  margin-bottom: 1.5rem;
}

.comment-form label {
  font-size: 1.125rem;
  color: #333;
  font-family: "Avenir", sans-serif;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  border: 0.1rem solid #ccc;
  border-radius: 0.5rem;
  box-sizing: border-box;
  font-family: "Avenir", sans-serif;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #015caf;
}

/* Submit Button Styling */
.form-submit .submit {
  padding: 1rem 2rem;
  background-color: #015caf;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "Avenir", sans-serif;
}

.form-submit .submit:hover {
  background-color: #0269c9;
}

/* Comments List Styling */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  display: flex;
  margin-bottom: 3vh;
  padding-bottom: 2vh;
  border-bottom: 0.1rem solid #e0e0e0;
  align-items: flex-start;
  flex-direction: column;
  gap: 2rem;
}

.comment-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 5px;
}

.comment-author .fn {

  width: max-content;
}

/* Comment Avatar */
.comment-author img {
  border-radius: 50%;
  margin-right: 1rem;
  width: 4rem; /* Set avatar size */
  height: 4rem;
}

/* Comment Body Styling */
.comment-body {
  flex: 1;
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  font-family: "Avenir", sans-serif;
}

/* Comment Metadata (Author, Date) */
.comment-meta a {
  font-size: 0.875rem;
  color: var(--main-subtext-color);
  margin-bottom: 0.5rem;
  text-decoration: none;
}

/* Comment Text Styling */
.comment-content {
  font-size: 1rem;
  color: #333; /* Dark text color for readability */
}

/* Reply Link Styling */
.comment-reply-link {
  margin-top: 1rem;
  color: #015caf;
  text-decoration: none;
  font-weight: bold;
  font-family: "Avenir", sans-serif;
}

.comment-reply-link:hover {
  text-decoration: underline;
}

/* Nested Comments Styling */
.children {
  margin-left: 3vw; /* Indent nested comments */
  border-left: 0.2rem solid #f0f0f0;
  padding-left: 2vw;
}

/* No Comments Message */
.no-comments {
  font-size: 1rem;
  color: #777;
  margin-top: 2rem;
  font-family: "Avenir", sans-serif;
}

/* Comment Navigation (Previous/Next) */
.comment-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.comment-navigation .nav-previous,
.comment-navigation .nav-next {
  font-family: "Avenir", sans-serif;
}

.comment-navigation a {
  color: #015caf;
  text-decoration: none;
}

.comment-navigation a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .comments-title,
  .comment-reply-title {
    font-size: 1.5rem; /* Smaller title for mobile */
  }

  .comment {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-author img {
    width: 3rem; /* Reduce avatar size for smaller screens */
    height: 3rem;
    margin-bottom: 1rem; /* Add space below avatar for mobile */
  }

  .comment-body {
    width: 100%; /* Ensure comment body takes full width for mobile */
    padding: 1rem 1.5rem; /* Reduce padding for mobile */
  }

  .comment-meta {
    font-size: 0.8rem; /* Slightly smaller metadata text */
  }

  .comment-content {
    font-size: 0.9rem; /* Slightly smaller text for readability on mobile */
  }

  .comment-reply-link {
    font-size: 0.875rem; /* Slightly smaller reply link */
  }

  .form-submit .submit {
    padding: 0.8rem 1.6rem; /* Smaller padding for mobile */
  }
}

@media (max-width: 950px) {
  .post-content-container {
    flex-direction: column;
  }

  .post-sidebar {
    order: 2;
    width: 100%;
    align-items: center;
  }

  .post-content {
    order: 1;
  }
  .topics-section-text {
    display: block;
    width: 100%;
  }

  .topics-section-sidebar {
    display: none;
  }
}

@media (max-width: 430px) {
  .share-post-section {
    align-items: center;
  }

  .share-post-title {
    font-size: 1rem;
  }
  .post-social-media {
    flex-direction: column;
  }
}
