/* ==========================================
   BLOG DETAILS CSS - Article Layout
   ========================================== */

/* Blog Details Container */
.blog-details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
}

/* Blog Article Section (Left 75%) */
.blog-article {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

/* Article Header Image */
.article-header-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

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

.no-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #6c757d;
}

.no-image-placeholder i {
  font-size: 48px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.no-image-placeholder span {
  font-size: 16px;
  font-weight: 500;
}

/* Article Content */
.article-content {
  padding-top: 40px;
  width: 100%;
}

/* Article Title */
.article-title {
  font-family: 'Prompt', sans-serif;
  font-size: 32px;
  line-height: 38px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Article Meta */
.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.article-category {
  display: flex;
  gap: 10px;
}

.article-category a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.article-category a:hover {
  color: #333;
}

.article-date {
  color: #999;
  font-size: 14px;
}

/* Article Body */
.article-body {
  font-family: 'Prompt', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 40px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body h2 {
  font-family: 'Prompt', sans-serif;
  font-size: 24px;
  color: #333;
  margin: 30px 0 15px 0;
  font-weight: 600;
}

.article-body h3 {
  font-family: 'Prompt', sans-serif;
  font-size: 20px;
  color: #333;
  margin: 25px 0 12px 0;
  font-weight: 500;
}

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

.article-body li {
  margin-bottom: 8px;
  color: #555;
}

/* Article Image in Content */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Center aligned images */
.article-body .editor-image-container,
.article-body div[style*="text-align: center"] {
  text-align: center;
  margin: 30px 0;
}

.article-body .editor-image-container img {
  margin: 0 auto;
}

/* Responsive images */
@media (max-width: 768px) {
  .article-body img {
    margin: 15px 0;
    border-radius: 6px;
  }
}

/* Sidebar (Right 25%) */
.blog-sidebar {
  background: #fff;
  border-radius: 8px;
  height: fit-content;
}

.sidebar-widget {
  padding: 25px;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-widget:first-child {
  padding-top: 30px;
}

.sidebar-widget:last-child {
  border-bottom: none;
  padding-bottom: 30px;
}

.sidebar-widget h3 {
  font-family: 'Prompt', sans-serif;
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Product Categories */
.product-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-categories li {
  margin-bottom: 0;
}

.product-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.3s ease;
  border-bottom: 1px solid #f5f5f5;
}

.product-categories a:hover {
  color: #333;
}

.product-categories li:last-child a {
  border-bottom: none;
}

.category-count {
  color: #999;
  font-size: 12px;
}

/* Author Section */
.article-author {
  background: #f8f9fa;
  padding: 30px 40px;
  margin-top: 40px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-left: 0;
  margin-right: 0;
  transition: box-shadow 0.3s ease;
}

.article-author:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.author-info {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.avatar-placeholder {
  width: 100%;
  height: 100%;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  color: #fff;
  transition: transform 0.3s ease;
}

.author-avatar:hover .avatar-placeholder {
  transform: scale(1.05);
}

.author-details {
  flex: 1;
}

.author-meta {
  margin-bottom: 5px;
}

.author-label {
  font-family: 'Prompt', sans-serif;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.author-name {
  font-family: 'Prompt', sans-serif;
  font-size: 20px;
  color: #333;
  margin: 0 0 10px 0;
  font-weight: 600;
  line-height: 1.3;
}

.author-description {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  font-family: 'Prompt', sans-serif;
}

.author-details a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.author-details a:hover {
  color: #666;
}

/* Previous Post Section */
.previous-post-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #f1f3f4;
  position: relative;
}

.previous-post-section::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #333;
}

.previous-post-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #666;
  transition: all 0.3s ease;
  padding: 15px 0;
}

.previous-post-link:hover {
  color: #333;
  text-decoration: none;
}

.previous-post-icon {
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.previous-post-link:hover .previous-post-icon {
  background: #333;
  color: #fff;
  transform: translateX(-3px);
}

.previous-post-content {
  display: flex;
  flex-direction: column;
}

.previous-post-label {
  font-family: 'Prompt', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  transition: color 0.3s ease;
}

.previous-post-link:hover .previous-post-label {
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-details-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 15px;
  }
  
  .article-content {
    padding: 25px;
  }
  
  .article-title {
    font-size: 24px;
    line-height: 30px;
  }
  
  .article-body {
    font-size: 15px;
  }
  
  .article-author {
    padding: 20px 25px;
  }
  
  .author-info {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    align-items: center;
  }
  
  .author-avatar {
    width: 85px;
    height: 85px;
  }
  
  .avatar-placeholder {
    font-size: 24px;
  }
  
  .author-name {
    font-size: 18px;
  }
  
  .author-description {
    font-size: 13px;
  }
  
  .previous-post-section {
    margin-top: 20px;
    padding-top: 20px;
  }
  
  .previous-post-icon {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .sidebar-widget {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .article-header-image {
    height: 250px;
  }
  
  .article-content {
    padding: 20px;
  }
  
  .article-title {
    font-size: 20px;
    line-height: 26px;
  }
  
  .article-body {
    font-size: 14px;
  }
}