/* Blog Details Page Styles */
.blog-details-page {
  background-color: #f0f8ff; /* Light blue background */
}

/* Blog Header Styles */
.blog-header {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/blog/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 120px 0;
  margin-bottom: 60px;
}

.blog-header-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.blog-header-content h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.blog-header-content p {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Blog Content Styles */
.blog-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.community-details {
  text-align: center;
  margin-bottom: 30px;
}

.community-details .section-header {
  padding: 0 15px;
}

.community-details .section-title {
  font-size: 2rem;
  color: var(--heading-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.community-details .section-description {
  font-size: 1.1rem;
  color: var(--default-color);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.blog-post {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
}

.blog-post h2 {
  font-size: 2.5rem;
  color: var(--heading-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.blog-post h3 {
  font-size: 1.8rem;
  color: var(--heading-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.blog-post p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--default-color);
  margin-bottom: 25px;
}

.blog-post img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  margin: 15px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.blog-post img:hover {
  transform: scale(1.02);
}

.blog-post .quote {
  background: #f8f9fa;
  padding: 30px;
  border-left: 4px solid var(--accent-color);
  margin: 30px 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--heading-color);
}

.blog-post .quote p {
  margin: 0;
}

.blog-post .quote .author {
  text-align: right;
  font-weight: 600;
  color: var(--accent-color);
}

/* Blog Sidebar Styles */
.blog-sidebar {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.blog-sidebar h4 {
  font-size: 1.2rem;
  color: var(--heading-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.blog-sidebar .author-box {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.blog-sidebar .author-box img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-right: 20px;
  transition: transform 0.3s ease;
}

.blog-sidebar .author-box img:hover {
  transform: scale(1.05);
}

.blog-sidebar .author-info {
  flex: 1;
}

.blog-sidebar .author-info h4 {
  font-size: 1.1rem;
  color: var(--heading-color);
  margin: 0 0 5px 0;
  font-weight: 600;
}

.blog-sidebar .author-info p {
  margin: 0 0 5px 0;
  font-size: 0.9rem;
  color: var(--default-color);
}

.blog-sidebar .author-bio {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.blog-sidebar .social-links {
  margin-bottom: 30px;
}

.blog-sidebar .social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.blog-sidebar .social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.blog-sidebar .social-icons i {
  font-size: 1.2rem;
  color: #666;
}

.blog-sidebar .social-icons a:hover {
  transform: translateY(-2px);
}

.blog-sidebar .social-icons .instagram:hover {
  background: #e1306c;
  color: white;
}

.blog-sidebar .social-icons .facebook:hover {
  background: #1877f2;
  color: white;
}

.blog-sidebar .social-icons .twitter:hover {
  background: #1da1f2;
  color: white;
}

.blog-sidebar .social-icons .tiktok:hover {
  background: #000;
  color: white;
}

.blog-sidebar .related-posts {
  margin-top: 30px;
}

.blog-sidebar .related-post {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.blog-sidebar .related-post:hover {
  background: #f0f2f5;
  transform: translateX(5px);
}

.blog-sidebar .related-post h5 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--heading-color);
  font-weight: 500;
}

.blog-sidebar .related-post img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 15px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.blog-sidebar .related-post img:hover {
  transform: scale(1.05);
}

.blog-sidebar .author-info h4 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
  color: var(--heading-color);
}

.blog-sidebar .author-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--default-color);
}

.blog-sidebar .related-posts {
  margin-top: 30px;
}

.blog-sidebar .related-posts h4 {
  font-size: 1.2rem;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.blog-sidebar .related-post {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.blog-sidebar .related-post img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 15px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.blog-sidebar .related-post img:hover {
  transform: scale(1.05);
}

.blog-sidebar .related-post h5 {
  margin: 0;
  font-size: 1rem;
  color: var(--heading-color);
}

/* Blog Navigation Styles */
.blog-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0;
}

.blog-navigation a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--default-color);
  transition: color 0.3s ease;
}

.blog-navigation a:hover {
  color: var(--accent-color);
}

.blog-navigation a i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.blog-navigation .next {
  flex-direction: row-reverse;
}

.blog-navigation .next i {
  margin-left: 10px;
  margin-right: 0;
}

/* Blog Comments Styles */
.blog-comments {
  margin-top: 60px;
}

.blog-comments h3 {
  font-size: 1.8rem;
  color: var(--heading-color);
  margin-bottom: 30px;
}

.comment-item {
  background: white;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.comment-item .comment-author {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.comment-item .author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 15px;
  transition: transform 0.3s ease;
}

.comment-item .author-avatar:hover {
  transform: scale(1.1);
}

.comment-item .author-info h4 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  color: var(--heading-color);
}

.comment-item .author-info span {
  font-size: 0.9rem;
  color: var(--default-color);
}

.comment-item .comment-content {
  margin-bottom: 15px;
  color: var(--default-color);
}

.comment-item .comment-actions {
  color: var(--accent-color);
  font-size: 0.9rem;
}

/* Blog Comment Form Styles */
.comment-form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
}

.comment-form h4 {
  font-size: 1.5rem;
  color: var(--heading-color);
  margin-bottom: 30px;
}

.comment-form .form-group {
  margin-bottom: 20px;
}

.comment-form .form-control {
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
}

.comment-form textarea {
  height: 150px;
  resize: vertical;
}

.comment-form .btn-primary {
  background-color: #4CAF50;
  border-color: #4CAF50;
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.comment-form .btn-primary:hover {
  background-color: #45a049;
  border-color: #45a049;
}

/* Update all link colors */
.blog-post a,
.blog-sidebar a,
.comment-item a,
.comment-form a {
  color: #4CAF50;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: color 0.3s ease;
}

.blog-post a:hover,
.blog-sidebar a:hover,
.comment-item a:hover,
.comment-form a:hover {
  color: #45a049;
  text-decoration: underline;
}

/* Update font family for better readability */
.blog-post h2, .blog-post h3, .blog-post p {
  font-family: 'Inter', sans-serif;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.comment-item .comment-content,
.comment-form label {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-header {
    padding: 80px 0;
  }
  
  .blog-header-content h1 {
    font-size: 2rem;
  }
  
  .blog-content {
    padding: 0 15px;
  }
  
  .blog-navigation {
    flex-direction: column;
    gap: 20px;
  }
  
  .blog-sidebar {
    margin-top: 30px;
  }
}
