/* Reading Progress Bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 9999;
}

.reading-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  width: 0%;
  transition: width 0.1s ease;
}

/* Article Header */
.article-header {
  position: relative;
  padding: 120px 0 60px;
  background-color: var(--secondary-color);
  color: var(--white-color);
  overflow: hidden;
}

.article-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(49, 129, 97, 0.8) 0%, rgba(20, 46, 56, 0.8) 100%);
  z-index: 1;
}

.article-header .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--white-color);
}

.separator {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.5);
}

.current {
  color: var(--accent-color);
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.category-badge {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-date,
.post-read-time {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.post-date i,
.post-read-time i {
  color: var(--accent-color);
}

.bookmark-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  padding: 0;
  margin-left: auto;
}

.bookmark-btn:hover,
.bookmark-btn.active {
  color: var(--accent-color);
  transform: scale(1.1);
}

.bookmark-btn.active i {
  font-weight: 900;
}

.article-title {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
  color: var(--white-color);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.author-info h3 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--white-color);
}

.author-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Article Content */
.article-content {
  padding: 80px 0;
  background-color: var(--background-color);
}

.article-layout {
  display: grid;
  grid-template-columns: 80px 1fr 300px;
  gap: 40px;
}

/* Social Share Sidebar */
.social-share-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.share-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 5px;
}

.share-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--white-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.share-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.share-icon:nth-child(2):hover {
  background-color: #3b5998;
  color: var(--white-color);
}

.share-icon:nth-child(3):hover {
  background-color: #1da1f2;
  color: var(--white-color);
}

.share-icon:nth-child(4):hover {
  background-color: #0077b5;
  color: var(--white-color);
}

.share-icon:nth-child(5):hover {
  background-color: #25d366;
  color: var(--white-color);
}

.share-icon:nth-child(6):hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.share-count {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* Main Content */
.main-content {
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.featured-image {
  position: relative;
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--white-color);
  padding: 10px 20px;
  font-size: 0.9rem;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
}

.article-body {
  padding: 40px;
}

.article-lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 30px;
  font-weight: 500;
}

.article-body p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-light);
}

.article-body h2 {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: var(--text-color);
  position: relative;
  padding-bottom: 10px;
}

.article-body h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.article-body li {
  margin-bottom: 10px;
  color: var(--text-light);
}

.article-quote {
  background-color: var(--light-green);
  padding: 30px;
  border-left: 5px solid var(--primary-color);
  margin: 30px 0;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.article-quote blockquote {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-color);
  position: relative;
}

.article-quote blockquote::before {
  content: """;
  font-size: 4rem;
  position: absolute;
  top: -20px;
  left: -10px;
  color: rgba(49, 129, 97, 0.2);
  font-family: Georgia, serif;
}

.article-quote cite {
  font-weight: 600;
  color: var(--primary-color);
  display: block;
  text-align: right;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.tag-label {
  font-weight: 600;
  color: var(--text-color);
}

.tag {
  background-color: var(--light-green);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
}

/* Author Box */
.author-box {
  display: flex;
  gap: 30px;
  background-color: var(--light-green);
  padding: 30px;
  border-radius: var(--border-radius-sm);
  margin: 40px;
}

.author-image {
  flex-shrink: 0;
}

.author-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-bio h3 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--text-color);
}

.author-bio h4 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.author-bio p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.author-social {
  display: flex;
  gap: 15px;
}

.author-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--white-color);
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.author-social a:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Comments Section */
.comments-section {
  padding: 0 40px 40px;
}

.comments-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments-count {
  color: var(--text-light);
  font-size: 1.2rem;
}

.comment {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comment:last-child {
  border-bottom: none;
}

.comment-avatar {
  flex-shrink: 0;
}

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

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.comment-header h4 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  color: var(--text-color);
}

.comment-date {
  color: var(--text-light);
  font-size: 0.9rem;
}

.comment-content p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.comment-actions {
  display: flex;
  gap: 15px;
}

.reply-btn,
.like-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  padding: 0;
}

.reply-btn:hover,
.like-btn:hover {
  color: var(--secondary-color);
}

.like-btn.active i {
  font-weight: 900;
  color: #e74c3c;
}

.comment-form-container {
  margin-top: 50px;
}

.comment-form-container h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-secondary);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(49, 129, 97, 0.1);
}

/* Article Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background-color: var(--white-color);
  border-radius: var(--border-radius-sm);
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.widget-title {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-color);
  position: relative;
  padding-bottom: 10px;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Table of Contents */
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-list a {
  color: var(--text-light);
  transition: all 0.3s ease;
  padding: 8px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  padding-left: 15px;
}

/* Recent Posts */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.post-list li a {
  display: flex;
  gap: 15px;
}

.post-image {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-list li a:hover .post-image img {
  transform: scale(1.1);
}

.post-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--text-color);
  transition: color 0.3s ease;
  line-height: 1.4;
}

.post-list li a:hover .post-info h4 {
  color: var(--primary-color);
}

.post-date {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Categories */
.category-list li {
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 10px;
}

.category-list li:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.category-list a:hover {
  color: var(--primary-color);
}

.category-list span {
  background-color: var(--light-green);
  color: var(--primary-color);
  padding: 2px 10px;
  border-radius: 30px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.category-list a:hover span {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* Newsletter Widget */
.newsletter-widget p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-newsletter-form input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-secondary);
  transition: all 0.3s ease;
}

.sidebar-newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(49, 129, 97, 0.1);
}

/* Related Articles */
.related-articles {
  padding: 5rem 0;
  background-color: #f9f9f9;
  position: relative;
}

.related-articles .section-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  color: var(--text-color);
}

.related-articles .section-divider {
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 0 auto 3rem;
  border-radius: 2px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.related-grid .blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: white;
  height: 100%;
  position: relative;
}

.related-grid .blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.related-grid .card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

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

.related-grid .blog-card:hover .card-image img {
  transform: scale(1.1);
}

.related-grid .category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.related-grid .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.related-grid .blog-card:hover .card-overlay {
  opacity: 1;
}

.related-grid .overlay-content {
  text-align: center;
  color: white;
  padding: 1rem;
}

.related-grid .read-time {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.related-grid .overlay-btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.related-grid .overlay-btn:hover {
  background: white;
  color: var(--primary-color);
  transform: scale(1.05);
}

.related-grid .card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.related-grid .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: #777;
}

.related-grid .post-title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-color);
}

.related-grid .post-excerpt {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.related-grid .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.related-grid .read-more {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.related-grid .read-more:hover {
  color: var(--primary-color-dark);
}

.related-grid .read-more i {
  transition: transform 0.3s ease;
}

.related-grid .read-more:hover i {
  transform: translateX(5px);
}

.related-grid .post-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #777;
}

.related-grid .post-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.related-grid .post-author {
  font-weight: 500;
}

.view-all-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-outline:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--primary-color);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn-outline:hover {
  color: white;
}

.btn-outline:hover:before {
  width: 100%;
}

.btn-outline i {
  transition: transform 0.3s ease;
}

.btn-outline:hover i {
  transform: translateX(5px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .article-layout {
    grid-template-columns: 60px 1fr 250px;
    gap: 30px;
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .social-share-sidebar {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 30px;
  }

  .share-label {
    display: none;
  }

  .share-count {
    display: none;
  }

  .article-sidebar {
    margin-top: 40px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .article-body {
    padding: 30px;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 40px 30px;
  }

  .author-social {
    justify-content: center;
  }

  .comment {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .comment-header {
    flex-direction: column;
    align-items: center;
  }

  .comment-actions {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .image-gallery {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 576px) {
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .bookmark-btn {
    margin-left: 0;
  }

  .article-body {
    padding: 20px;
  }

  .article-lead {
    font-size: 1.1rem;
  }

  .article-body h2 {
    font-size: 1.5rem;
  }
}

