/* Custom Single Post Styles - Based on PrintPark Theme */

/* Single Post Header - Clean and Professional */
.single-post-header {
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
}

/* Breadcrumb Styles */
.breadcrumb-wrapper {
  margin-bottom: 1.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.breadcrumb .separator {
  margin: 0 0.5rem;
  color: #999;
}

.breadcrumb .current {
  color: #333;
  font-weight: 500;
}

/* Post Title Styles */
.post-title-wrapper {
  margin-bottom: 1.5rem;
}

.post-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0;
  word-wrap: break-word;
}

/* Post Meta Styles */
.post-meta-wrapper {
  margin-bottom: 0;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: #555;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-meta strong {
  font-weight: 600;
  color: #333;
}

.post-meta a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-meta a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Responsive Design for Single Post Header */
@media (max-width: 767px) {
  .single-post-header {
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
  }

  .breadcrumb-wrapper {
    margin-bottom: 1rem;
  }

  .breadcrumb {
    font-size: 0.85rem;
  }

  .post-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .post-meta {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Main Content Area */
.content-wrapper {
  margin-top: 0;
}
.single-post-content {
  background: #ffffff;
  padding: 0;
  margin-bottom: 40px;
}

.post-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 40px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--tp-gray-900);
  font-weight: 700;
  margin: 30px 0 20px 0;
  line-height: 1.3;
}

.post-content h2 {
  font-size: 1.25rem;
}

.post-content h3 {
  font-size: 1.1rem;
}

.post-content h4 {
  font-size: 1rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: auto;
  width: 100%;
}

.post-content blockquote {
  background: #f8f9fa;
  border-left: 4px solid #007cba;
  padding: 20px 25px;
  margin: 30px 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

.post-content ul,
.post-content ol {
  padding-left: 30px;
  margin-bottom: 20px;
}

.post-content li {
  margin-bottom: 8px;
}

/* Post Pagination */
.post-pagination {
  margin: 30px 0;
  text-align: center;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.post-pagination .page-links-title {
  font-weight: 600;
  margin-right: 10px;
  color: #666;
}

.post-pagination a,
.post-pagination span {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 5px;
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.post-pagination a:hover {
  background: #007cba;
  color: #ffffff;
}

/* Post Tags */
.post-tags {
  margin: 40px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.post-tags h6 {
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
}

.post-tags .tag-links a {
  display: inline-block;
  background: #007cba;
  color: #ffffff;
  padding: 5px 12px;
  margin: 0 8px 8px 0;
  border-radius: 15px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.post-tags .tag-links a:hover {
  background: #005a87;
  transform: translateY(-1px);
}

/* Sidebar Styles */
.single-post-sidebar {
  padding-left: 30px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.single-post-sidebar .widget {
  background: #ffffff;
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.single-post-sidebar .widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.single-post-sidebar .widget h5 {
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--tp-primary);
  position: relative;
}

.single-post-sidebar .widget h5::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--tp-primary);
  border-radius: 2px;
}

.single-post-sidebar .widget p,
.single-post-sidebar .widget ul {
  color: #666;
  line-height: 1.6;
}

.single-post-sidebar .widget ul {
  list-style: none;
  padding: 0;
}

.single-post-sidebar .widget li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.single-post-sidebar .widget li:last-child {
  border-bottom: none;
}

.single-post-sidebar .widget a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.single-post-sidebar .widget a:hover {
  color: var(--tp-primary);
}

/* Latest Products Widget Styling */
.latest-products-widget {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.latest-products-widget .sidebar-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.latest-products-widget .sidebar-product-item:last-child {
  border-bottom: none;
}

.latest-products-widget .sidebar-product-item:hover {
  transform: translateX(5px);
  background: rgba(var(--tp-primary-rgb), 0.02);
  padding-left: 8px;
  margin-left: -8px;
  border-radius: 8px;
}

.latest-products-widget .sidebar-product-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.latest-products-widget .sidebar-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.latest-products-widget .sidebar-product-item:hover .sidebar-product-image img {
  transform: scale(1.05);
}

.latest-products-widget .product-info {
  flex: 1;
  min-width: 0;
  padding-top: 0px;
}

.latest-products-widget .product-info h4 {
  margin: 0 0 6px 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.latest-products-widget .product-info h4 a {
  color: #333;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.latest-products-widget .product-info h4 a:hover {
  color: var(--tp-primary);
}

.latest-products-widget .product-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tp-primary);
}

/* Latest Posts Widget Styling */
.latest-posts-widget {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.latest-posts-widget .post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.latest-posts-widget .post-item:last-child {
  border-bottom: none;
}

.latest-posts-widget .post-item:hover {
  transform: translateX(5px);
  background: rgba(var(--tp-primary-rgb), 0.02);
  padding-left: 8px;
  margin-left: -8px;
  border-radius: 8px;
}

.latest-posts-widget .post-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.latest-posts-widget .post-item:hover .post-image img {
  transform: scale(1.05);
}

.latest-posts-widget .post-info {
  flex: 1;
  min-width: 0;
}

.latest-posts-widget .post-info h4 {
  margin: 0 0 6px 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.latest-posts-widget .post-info h4 a {
  color: #333;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.latest-posts-widget .post-info h4 a:hover {
  color: var(--tp-primary);
}

.latest-posts-widget .post-date {
  font-size: 0.8rem;
  color: #999;
  font-weight: 500;
}

/* Placeholder image styling */
.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #999;
  font-size: 0.7rem;
  border-radius: 4px;
}

/* Related Posts Section */
.related-posts-section {
  padding: 2rem 0;
  border-top: 2px solid #f0f0f0;
}

.related-posts-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.related-posts-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--tp-primary);
  border-radius: 2px;
}

.related-posts-slider {
  position: relative;
  margin-top: 2rem;
}

.related-posts-slider .splide {
  width: 100%;
  position: relative;
  visibility: visible !important;
}

.related-posts-slider .splide__track {
  overflow: hidden;
}

.related-posts-slider .splide__list {
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-posts-slider .splide__slide {
  display: flex;
  align-items: stretch;
  height: auto;
}

/* Related Posts Card Styling - Using exact structure from blog-posts shortcode */
.related-posts-slider .tp-blog-post-card {
  background: #ffffff;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-posts-slider .tp-blog-post-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.related-posts-slider .tp-blog-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

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

.related-posts-slider .tp-blog-post-card:hover .tp-blog-post-image img {
  transform: scale(1.05);
}

.related-posts-slider .tp-blog-post-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-posts-slider .tp-blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.related-posts-slider .tp-blog-post-date {
  color: #666;
  font-weight: 500;
}

.related-posts-slider .tp-blog-post-category {
  position: relative;
}

.related-posts-slider .tp-blog-post-category a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.related-posts-slider .tp-blog-post-title {
  flex: 0 0 auto;
}

.related-posts-slider .tp-blog-post-title a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.related-posts-slider .tp-blog-post-title a:hover {
  color: var(--tp-primary);
}

.related-posts-slider .tp-blog-post-excerpt {
  color: #666;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-posts-slider .tp-blog-post-footer {
  margin-top: auto;
}

.related-posts-slider .tp-blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tp-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.related-posts-slider .tp-blog-read-more:hover {
  gap: 12px;
  color: rgba(var(--tp-primary-rgb), 0.8);
}

.related-posts-slider .tp-blog-read-more i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.related-posts-slider .tp-blog-read-more:hover i {
  transform: translateX(3px);
}

/* Splide Navigation for Related Posts */
.related-posts-slider .splide__arrows {
  display: flex;
}

.related-posts-slider .splide__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--tp-primary);
  font-size: 18px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-posts-slider .splide__arrow:hover {
  background: var(--tp-primary);
  color: white;
}

.related-posts-slider .splide__arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.related-posts-slider .splide__arrow--prev {
  left: -24px;
}

.related-posts-slider .splide__arrow--next {
  right: -24px;
}

/* Comments Section */
#comments {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 991px) {
  .single-post-sidebar {
    padding-left: 0;
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 767px) {
  .page-title .content-box h1 {
    font-size: 1.5rem;
  }

  .page-title.style-two {
    padding: 80px 0 60px;
    min-height: 300px;
  }

  .page-title .post-info {
    flex-direction: column;
    gap: 10px;
  }

  .page-title .post-info span {
    justify-content: center;
  }

  .single-post-sidebar .widget {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-title .content-box h1 {
    font-size: 1.25rem;
  }

  .page-title .auto-container {
    padding: 0 10px;
  }

  .container {
    padding: 0 10px;
  }
  .page-title .image-content {
    bottom: -110px;
  }
  .page-title .post-info {
    grid-template-columns: 1fr;
  }
  }
