/* Article Page Styles */

/* 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: var(--gradient-primary);
  width: 0%;
  transition: width 0.1s ease;
}

/* Article Header */
.article-header-section {
  padding: 3rem 0 2rem;
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.article-header-section::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--primary-color-light);
  opacity: 0.1;
  z-index: 0;
}

.article-header-section::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--secondary-color-light);
  opacity: 0.1;
  z-index: 0;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}

.category-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.3);
  color: white;
}

.category-badge i {
  margin-right: 0.5rem;
}

.category-badge.small {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.reading-time {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(var(--dark-rgb), 0.05);
  color: var(--text-color);
  border-radius: 50px;
  font-weight: 500;
}

.reading-time i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.article-author {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1rem;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}

.author-info h5 {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.article-date {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-date span {
  display: flex;
  align-items: center;
}

.article-date i {
  margin-right: 0.5rem;
}

/* Social Share Sticky */
.social-share-sticky {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 99;
  background: white;
  padding: 1rem 0.5rem;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.share-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.share-btn.facebook {
  background-color: #3b5998;
}

.share-btn.twitter {
  background-color: #1da1f2;
}

.share-btn.linkedin {
  background-color: #0077b5;
}

.share-btn.line {
  background-color: #00c300;
}

.share-btn.email {
  background-color: #ea4335;
}

.share-btn.copy-link {
  background-color: #6c757d;
  border: none;
  cursor: pointer;
}

/* Featured Image */
.article-featured-image {
  margin-bottom: 2rem;
}

.featured-image-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-image-container img,
.featured-image-wrapper .article-featured-img {
  width: 100%;
  max-height: 380px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.image-credit {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-top-left-radius: 10px;
}

/* Article Content */
.article-content-section {
  position: relative;
  background-color: white;
}

.article-excerpt {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: rgba(var(--primary-rgb), 0.05);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 10px 10px 0;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 3rem;
}

.article-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(var(--primary-rgb), 0.1);
  transition: color 0.3s ease;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1.25rem;
  transition: color 0.3s ease;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background-color: rgba(var(--primary-rgb), 0.05);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 10px 10px 0;
  font-style: italic;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content code {
  background-color: rgba(var(--dark-rgb), 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

.article-content pre {
  background-color: #282c34;
  color: #abb2bf;
  padding: 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article-content th,
.article-content td {
  padding: 0.75rem;
  border: 1px solid rgba(var(--dark-rgb), 0.1);
}

.article-content th {
  background-color: rgba(var(--primary-rgb), 0.05);
  font-weight: 600;
}

.article-content .table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Highlight effect for headings when clicked from TOC */
.article-content h2.highlight,
.article-content h3.highlight {
  color: var(--primary-color);
  animation: highlight-pulse 2s ease-out;
}

@keyframes highlight-pulse {
  0% {
    background-color: rgba(var(--primary-rgb), 0.2);
  }
  100% {
    background-color: transparent;
  }
}

/* Table of Contents */
.toc-mobile {
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(var(--dark-rgb), 0.1);
}

.toc-header {
  padding: 1rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.toc-toggle-icon {
  transition: transform 0.3s ease;
}

.toc-toggle-icon.rotate {
  transform: rotate(180deg);
}

.toc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: white;
}

.toc-content.show {
  max-height: 500px;
}

.toc-list {
  list-style: none;
  padding: 1.5rem;
  margin: 0;
}

.toc-item {
  margin-bottom: 0.75rem;
}

.toc-item:last-child {
  margin-bottom: 0;
}

.toc-level-2 {
  font-weight: 600;
}

.toc-level-3 {
  padding-left: 1.5rem;
  font-weight: normal;
  font-size: 0.95rem;
}

.toc-link {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.toc-link:hover {
  color: var(--primary-color);
  background-color: rgba(var(--primary-rgb), 0.05);
  padding-left: 0.5rem;
}

/* Article Tags */
.article-tags {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--dark-rgb), 0.1);
}

.article-tags h5 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.article-tags h5 i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(var(--dark-rgb), 0.05);
  color: var(--text-color);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.tag-badge:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Social Share Section */
.social-share-section {
  margin: 3rem 0;
  padding: 2rem;
  background-color: rgba(var(--primary-rgb), 0.02);
  border-radius: 15px;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.social-share-section h5 {
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.social-share-section h5 i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.social-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-share-button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.social-share-button:hover {
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-share-button.facebook {
  background-color: #3b5998;
}

.social-share-button.twitter {
  background-color: #1da1f2;
}

.social-share-button.linkedin {
  background-color: #0077b5;
}

.social-share-button.line {
  background-color: #00c300;
}

.social-share-button.copy-link {
  background-color: #6c757d;
  border: none;
  cursor: pointer;
}

.social-share-button i {
  margin-right: 0.5rem;
}

/* Author Bio Card */
.author-bio-card {
  background-color: white;
  border-radius: 15px;
  padding: 2rem;
  margin: 3rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(var(--dark-rgb), 0.05);
}

.author-bio-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.author-bio-content {
  color: var(--text-color);
  line-height: 1.6;
}

.author-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Article Navigation */
.article-navigation {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(var(--dark-rgb), 0.1);
  border-bottom: 1px solid rgba(var(--dark-rgb), 0.1);
}

.article-navigation .nav-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: white;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(var(--dark-rgb), 0.05);
}

.article-navigation .nav-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
}

.article-navigation .prev-link {
  justify-content: flex-start;
}

.article-navigation .next-link {
  justify-content: flex-end;
  text-align: right;
}

.article-navigation .nav-link i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.article-navigation .prev-link i {
  margin-right: 1rem;
}

.article-navigation .next-link i {
  margin-left: 1rem;
}

.article-navigation .nav-link span {
  font-size: 0.9rem;
}

.article-navigation .nav-link strong {
  display: block;
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* Related Articles */
.related-articles {
  margin: 3rem 0;
}

.section-title {
  margin-bottom: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.section-title i {
  margin-right: 0.75rem;
  color: var(--primary-color);
}

.article-card {
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background-color: white;
  border: 1px solid rgba(var(--dark-rgb), 0.05);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.article-card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.no-image {
  width: 100%;
  height: 100%;
  background-color: rgba(var(--dark-rgb), 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(var(--dark-rgb), 0.2);
}

.article-card-content {
  padding: 1.5rem;
}

.article-card-title {
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.article-card-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-card-title a:hover {
  color: var(--primary-color);
}

.article-card-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.article-card-meta span {
  display: flex;
  align-items: center;
}

.article-card-meta i {
  margin-right: 0.5rem;
}

.article-card-excerpt {
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.read-more i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: var(--primary-color-dark);
}

.read-more:hover i {
  transform: translateX(3px);
}

/* Comments Section */
.comments-section {
  margin: 3rem 0;
}

.comment-form-card {
  background-color: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(var(--dark-rgb), 0.05);
}

.comment-form-card h4 {
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.comment-form-card h4 i {
  margin-right: 0.75rem;
  color: var(--primary-color);
}

.comments-list {
  margin-top: 2rem;
}

.comment-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background-color: white;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(var(--dark-rgb), 0.05);
}

.comment-avatar {
  flex-shrink: 0;
}

.comment-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.comment-content {
  flex-grow: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.comment-header h5 {
  margin-bottom: 0;
  font-weight: 600;
}

.comment-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.comment-date i {
  margin-right: 0.5rem;
}

.comment-text {
  color: var(--text-color);
  line-height: 1.6;
}

.no-comments {
  text-align: center;
  padding: 3rem 0;
}

.no-comments-icon {
  font-size: 3rem;
  color: rgba(var(--dark-rgb), 0.2);
  margin-bottom: 1rem;
}

.no-comments p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(var(--dark-rgb), 0.05);
}

.widget-title {
  padding: 1.25rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.widget-title i {
  margin-right: 0.75rem;
}

.widget-content {
  padding: 1.5rem;
}

/* TOC Widget */
.toc-widget .widget-content {
  padding: 1rem 0;
}

.toc-widget .toc-list {
  padding: 0 1.5rem;
}

/* Author Widget */
.author-card {
  text-align: center;
}

.author-card .author-avatar {
  margin: 0 auto 1rem;
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

.author-card h5 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.author-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.author-card .author-social {
  justify-content: center;
}

/* Search Widget */
.search-widget .input-group {
  position: relative;
}

.search-widget .form-control {
  padding-right: 50px;
  height: 50px;
  border-radius: 50px;
  border: 1px solid rgba(var(--dark-rgb), 0.1);
  padding-left: 1.5rem;
}

.search-widget .btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  z-index: 5;
}

/* Popular Articles Widget */
.popular-article {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(var(--dark-rgb), 0.05);
}

.popular-article:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-article-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
}

.popular-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-article-image .no-image {
  font-size: 1.5rem;
}

.popular-article-content {
  flex-grow: 1;
}

.popular-article-content h6 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.4;
}

.popular-article-content h6 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.popular-article-content h6 a:hover {
  color: var(--primary-color);
}

.popular-article-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.popular-article-meta span {
  display: flex;
  align-items: center;
}

.popular-article-meta i {
  margin-right: 0.25rem;
}

/* Categories Widget */
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-item {
  margin-bottom: 0.5rem;
}

.category-item:last-child {
  margin-bottom: 0;
}

.category-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.category-link:hover,
.category-link.active {
  background-color: rgba(var(--primary-rgb), 0.05);
  color: var(--primary-color);
  transform: translateX(5px);
}

.category-link i {
  margin-right: 0.75rem;
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

/* Recent Articles Widget */
.recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(var(--dark-rgb), 0.05);
}

.recent-item:first-child {
  padding-top: 0;
}

.recent-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.recent-item.active {
  background-color: rgba(var(--primary-rgb), 0.05);
  padding: 1rem;
  margin: 0 -1.5rem;
  border-left: 3px solid var(--primary-color);
}

.recent-item-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
}

.recent-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-item-image .no-image {
  font-size: 1.25rem;
}

.recent-item-content {
  flex-grow: 1;
}

.recent-item-title {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.recent-item-title:hover {
  color: var(--primary-color);
}

.recent-item-date {
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
}

.recent-item-date i {
  margin-right: 0.5rem;
}

.recent-item.active .recent-item-title {
  color: var(--primary-color);
}

/* CTA Widget */
.cta-card {
  text-align: center;
  padding: 2rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 15px;
}

.cta-card h4 {
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-card p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta-card .btn {
  background-color: white;
  color: var(--primary-color);
  border: none;
  font-weight: 600;
}

.cta-card .btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
}

/* Tags Widget */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* CTA Section */
.cta-section {
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--primary-color-light);
  opacity: 0.1;
}

.cta-section::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--secondary-color-light);
  opacity: 0.1;
}

.cta-card {
  position: relative;
  z-index: 1;
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
}

/* Reading Mode Button */
.reading-mode-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--dark-color);
  color: white;
  border: none;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.reading-mode-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Reading Mode */
body.reading-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.reading-mode .article-header-section,
body.reading-mode .article-content-section,
body.reading-mode .cta-section {
  background-color: #121212;
}

body.reading-mode .article-title,
body.reading-mode .article-content h2,
body.reading-mode .article-content h3,
body.reading-mode .article-content h4,
body.reading-mode .article-content h5,
body.reading-mode .article-content h6 {
  color: #ffffff;
}

body.reading-mode .article-content {
  color: #e0e0e0;
}

body.reading-mode .article-content a {
  color: #64b5f6;
}

body.reading-mode .article-excerpt {
  background-color: rgba(255, 255, 255, 0.05);
  border-left-color: var(--primary-color);
}

body.reading-mode .article-content blockquote {
  background-color: rgba(255, 255, 255, 0.05);
}

body.reading-mode .article-content code {
  background-color: rgba(255, 255, 255, 0.1);
}

body.reading-mode .article-sidebar,
body.reading-mode .sidebar-widget,
body.reading-mode .comment-form-card,
body.reading-mode .comment-card,
body.reading-mode .author-bio-card,
body.reading-mode .article-card,
body.reading-mode .article-navigation .nav-link {
  background-color: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.05);
}

body.reading-mode .article-card-title a,
body.reading-mode .recent-item-title,
body.reading-mode .popular-article-content h6 a,
body.reading-mode .category-link {
  color: #e0e0e0;
}

body.reading-mode .article-card-excerpt,
body.reading-mode .comment-text {
  color: #b0b0b0;
}

body.reading-mode .social-share-sticky {
  background-color: #1e1e1e;
}

/* Copy Link Toast */
.copy-link-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.copy-link-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.copy-link-toast i {
  color: #4caf50;
}

/* Image Lightbox */
.image-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.img-zoomable {
  cursor: zoom-in;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .article-title {
    font-size: 2rem;
  }

  .social-share-sticky {
    display: none;
  }

  .article-sidebar {
    margin-top: 3rem;
  }
}

@media (max-width: 767.98px) {
  .article-title {
    font-size: 1.75rem;
  }

  .article-excerpt {
    font-size: 1.1rem;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }

  .article-content h3 {
    font-size: 1.3rem;
  }

  .comment-card {
    flex-direction: column;
    gap: 1rem;
  }

  .comment-avatar {
    align-self: flex-start;
  }
}

@media (max-width: 575.98px) {
  .article-title {
    font-size: 1.5rem;
  }

  .article-author {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .article-date {
    flex-direction: column;
    gap: 0.5rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-navigation .nav-link span {
    display: none;
  }

  .article-navigation .nav-link strong {
    font-size: 0.9rem;
  }
}
