/* Comment Section Styles */
.comment-section {
  margin: 40px auto;
  padding: 20px;
  font-size: 12px;
}

.comment-count {
  font-size: 24px;
  color: #333;
  margin-bottom: 30px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-item {
  position: relative;
  margin-bottom: 20px;
}

.comment-main {
  display: flex;
  align-items: flex-start;
}

.comment-photo {
  margin-right: 15px;
  flex-shrink: 0;
}

.comment-photo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-bubble {
  position: relative;
  background: #fffbda; /* Main comment background color */
  border-radius: 10px;
  padding: 15px;
  flex: 1;
}

.comment-bubble:after {
  content: "";
  position: absolute;
  top: 15px;
  left: -15px; /* Arrow on the left */
  border-width: 10px;
  border-style: solid;
  border-color: transparent #fffbda transparent transparent; /* Arrow color matches background */
}

.reply-comment .comment-bubble {
  background: #fffdef; /* Sub-comment background color */
}

.reply-comment .comment-bubble:after {
  border-color: transparent #fffdef transparent transparent; /* Arrow color matches background */
}
/*
.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}*/

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Distributes space between items */
  margin-bottom: 10px;
}

.comment-date {
  font-size: 14px;
  color: #aaa;
  margin-left: auto; /* Pushes the date to the far right */
}

.comment-number {
  font-weight: bold;
  color: #999;
  margin-right: 10px;
}

.comment-author {
  font-weight: bold;
  color: #007bff;
  margin-right: 10px;
}

.comment-text {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}

.comment-reply-to {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  padding: 6px 10px;
  background-color: #f0e7d8;
  color: #a76b35;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.comment-reply {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  margin-top: 10px;
  display: inline-block;
}

.comment-reply:hover {
  text-decoration: underline;
}

/* Nested Children Comments */
.children {
  list-style: none;
  padding: 0;
  margin: 0;
}

.children .comment-item {
  margin-bottom: 15px;
}

.reply-comment {
  margin-left: 60px;
}

.reply-comment:first-child {
  margin-top: 20px;
}

/* Mobile Responsive Styles */
@media (max-width: 600px) {
  .comment-main {
    flex-direction: row;
    align-items: flex-start;
  }

  .comment-photo {
    margin-right: 10px;
  }

  .comment-photo img {
    width: 40px;
    height: 40px;
  }

  .comment-bubble {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    flex: 1;
  }

  .comment-bubble:after,
  .reply-comment .comment-bubble:after {
    display: none;
  }

  .reply-comment {
    margin-left: 0;
    padding-left: 15px;
  }

  .comment-item {
    margin-bottom: 15px;
  }

  .comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Distributes space between items */
    margin-bottom: 10px;
    font-size: 10px;
  }

  .comment-author,
  .comment-date {
    margin-right: 5px;
    overflow: hidden;
    font-size: 11px !important;
  }
}
