/* Single Article Page Styles */

.single-article-section {
  padding: var(--space-3xl) 0;
  width: 95%;
  margin: 0 auto;
}

.article-title {
  font-size: var(--font-size-4xl); /* Adjust as needed */
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.article-hero-image {
  width: 100%;
  margin: 0 auto var(--space-3xl);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-hero-image img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
}

.article-content {
  max-width: 100%; /* Max width for content readability */
  margin: 0 auto;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--gray-700);
  text-align: justify;
}

.article-content h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
}

.article-content h4 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.article-content p {
  margin-bottom: var(--space-md);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.article-content ul li {
  list-style: disc;
  margin-bottom: var(--space-sm);
}

.article-content ol li {
  list-style: decimal;
  margin-bottom: var(--space-sm);
}

.article-section-highlight {
  background-color: var(--gray-50); /* Light background for highlighted sections */
  border-left: 4px solid var(--primary-color);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
  border-radius: var(--radius-card);
}

.article-section-highlight h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.back-to-blog {
  text-align: center;
  margin-top: var(--space-3xl);
}


/* Related Articles Section */
.related-articles-section {
  padding: var(--space-3xl) 0;
  background-color: var(--gray-50);
  text-align: center;
}

.related-articles-section .section-title {
  margin-bottom: var(--space-3xl);
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  max-width: 1000px; /* Adjust to fit 2 cards nicely */
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.related-articles-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.related-articles-nav .nav-arrow {
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}


.related-articles-nav .nav-arrow svg {
  color: var(--gray-700);
  transition: color var(--transition-fast);
}

.related-articles-nav .nav-arrow.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Blog Card styles (reused from blog-template.php, ensure consistency) */
.blog-card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.blog-card-image {
  width: 100%;
  height: 300px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.blog-card-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-date {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  margin-bottom: var(--space-sm);
}

.blog-card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.blog-card-description {
  font-size: var(--font-size-base);
  color: var(--gray-700);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
  flex-grow: 1; /* Allows description to take available space */
}

/* === Article Tags === */
.article-tags {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background-color: var(--gray-50);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.article-tags h4 {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
}

.article-tags ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: 0;
  margin: 0;
}

.article-tags li {
  display: inline-block;
}

.article-tags .tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-sm);
  background-color: var(--primary-light, #f0f4ff);
  color: #eaf3fc;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
}

.article-tags .tag:hover {
  background-color: var(--primary-color, #2563eb);
  color: var(--white);
}

/* === Social Sharing === */
.social-sharing {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background-color: var(--gray-50);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.social-sharing h4 {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
}

.social-sharing .share-btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  margin-right: var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.share-btn.facebook {
  background-color: #1877f2;
  color: #fff;
}

.share-btn.telegram {
  background-color: #0088cc;
  color: #fff;
}

.share-btn.viber {
  background-color: #7360f2;
  color: #fff;
}

.social-sharing .share-btn:hover {
  opacity: 0.85;
}
