.blog-hero-image {
    height: 350px;
    object-fit: cover;
    object-position: center;
}

.blog-title {
    font-size: 2rem;
    font-weight: 700;
}

.blog-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.engagement-stats span {
    cursor: pointer;
}

.engagement-stats span:hover {
    text-decoration: underline;
}

/* Nested comments styling */
.comment-replies {
    margin-left: 40px;
    border-left: 2px solid #e9ecef;
    padding-left: 20px;
}

/* Blur effect for guest users */
.action-blur-container {
    position: relative;
}

.action-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 123, 255, 0.7);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 5px;
}

.action-blur-container:hover .action-blur-overlay {
    opacity: 1;
}

/* Blog Detail Page Styles */

/* Blog header with author avatar positioning */
.blog-header {
  position: relative;
  margin-bottom: 30px;
}

/* Main blog image container */
.news-details-hero .image {
  max-height: 500px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* Main blog image */
.news-details-hero .image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: center;
}

/* Author info */
.author-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
  border: 2px solid #fff;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-size: 14px;
  margin-bottom: 0;
  color: #333;
}

.author-position {
  font-size: 12px;
  margin-bottom: 0;
  color: #666;
}

/* Similar blog grid layout */
.similar-articles .row {
  display: flex;
  flex-wrap: wrap;
}

.similar-articles .col-md-4 {
  margin-bottom: 25px;
}

/* Similar blog cards */
.similar-articles .blog-card-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.similar-articles .blog-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.similar-articles .blog-card-item .image {
  height: 200px;
  overflow: hidden;
}

.similar-articles .blog-card-item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.similar-articles .blog-card-item:hover .image img {
  transform: scale(1.05);
}

.similar-articles .blog-card-item .info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.similar-articles .blog-card-item .title {
  font-size: 18px;
  margin-bottom: 10px;
}

.similar-articles .blog-card-item .text {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Action buttons */
.actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
}

.actions button:hover {
  opacity: 0.8;
}

/* Like button when active */
.like-button.liked svg path {
  fill: #2F87C7;
}

/* User images in comments */
.comment-item .user-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

/* Reply user images */
.comment-replies .user-img {
  width: 30px;
  height: 30px;
  object-fit: cover;
}

/* Modal styling for likers and sharers */
.likers-modal-content, .sharers-modal-content {
  max-height: 400px;
  overflow-y: auto;
}

.likers-list-item, .sharers-list-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.liker-avatar, .sharer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

/* Comment form and reply form */
.comment-form textarea, .reply-form textarea {
  resize: vertical;
  border-radius: 8px;
}

.comment-form button, .reply-form button {
  border-radius: 8px;
}

/* Media queries */
@media (max-width: 768px) {
  .news-details-hero .image,
  .news-details-hero .image img {
    max-height: 350px;
  }

  .author-info {
    bottom: 10px;
    left: 10px;
    padding: 5px 10px;
  }

  .author-avatar {
    width: 30px;
    height: 30px;
  }

  .similar-articles .blog-card-item .image {
    height: 160px;
  }
}

/* Blog Header */
.news-details-hero {
    background-color: #f8f9fa;
    padding-bottom: 1rem;
}

.blog-header {
    position: relative;
    margin-bottom: 2rem;
}

.blog-header .image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.blog-header .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    color: #333;
}

.author-name {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 600;
}

.author-position {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 1.5rem;
    color: #212121;
}

/* Actions */
.actions {
    padding: 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-top: 20px;
}

.actions button {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
    color: #363535;
    font-weight: 500;
    transition: all 0.3s ease;
}

.actions button:hover {
    color: var(--bs-primary);
}

.actions button span {
    margin-right: 5px;
}

.like-button.liked {
    color: var(--bs-primary);
}

/* Article Content */
.article {
    padding: 2rem 0;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1.5rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Comments Section */
.comments {
    background-color: #f8f9fa;
    padding: 2rem 0;
}

.comment-form-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comment-item {
    margin-bottom: 15px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-item .user-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.comment-replies .user-img {
    width: 30px;
    height: 30px;
}

.comment-replies {
    margin-left: 20px;
    padding-left: 15px;
    border-left: 2px solid #eee;
}

.comment-actions button {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0;
    background: none;
    border: none;
}

.comment-actions button:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

/* Similar Articles Section */
.similar-articles {
    padding: 3rem 0;
    background-color: #fff;
}

.blog-card-item {
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-card-item .image {
    height: 200px;
    overflow: hidden;
}

.blog-card-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card-item:hover .image img {
    transform: scale(1.05);
}

.blog-card-item .info {
    padding: 20px;
    background-color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-item .date {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.blog-card-item .title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #212121;
    transition: color 0.3s ease;
}

.blog-card-item .title:hover {
    color: var(--bs-primary);
}

.blog-card-item .text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.blog-card-item .actions {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 0;
    margin-top: auto;
    border-top: 1px solid #eee;
    border-bottom: none;
}

.blog-card-item .actions a {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.blog-card-item .actions a:hover {
    color: var(--bs-primary);
}

.blog-card-item .actions a span {
    margin-right: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-header .image {
        height: 300px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .author-info {
        bottom: 10px;
        right: 10px;
        padding: 5px 10px;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
    }

    .blog-card-item {
        margin-bottom: 20px;
    }
}
