/* Single Blog Post - Tailwind-inspired */

.single-post-page {
  padding: 0;
}

/* Content Section */
.single-post-content-section {
  padding: 20px 0 40px 0;
}

.single-post-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

/* Content Area */
.single-post-content {
  min-width: 0;
}

/* Breadcrumb */
.single-post-breadcrumb {
  margin-bottom: 20px;
  padding: 15px 0;
  background: #f8f9fa;
  border-radius: 5px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Post Header */
.single-post-header {
  margin-bottom: 30px;
}

.single-post-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.single-post-meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: #6b7280;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.single-post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.single-post-meta i {
  color: var(--primary-color);
  font-size: 12px;
}

/* Post Article */
.single-post-article {
  background: #ffffff;
  border-radius: 5px;
  overflow: hidden;
}

.single-post-featured-image {
  margin-bottom: 30px;
}

.single-post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.single-post-content-text {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
}

.single-post-content-text h1,
.single-post-content-text h2,
.single-post-content-text h3,
.single-post-content-text h4 {
  color: #111827;
  margin-bottom: 16px;
  margin-top: 32px;
}

.single-post-content-text h1:first-child,
.single-post-content-text h2:first-child,
.single-post-content-text h3:first-child {
  margin-top: 0;
}

.single-post-content-text p {
  margin-bottom: 16px;
}

.single-post-content-text ul,
.single-post-content-text ol {
  margin: 16px 0;
  padding-left: 20px;
}

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

.single-post-content-text blockquote {
  background: #f9fafb;
  border-left: 4px solid var(--primary-color);
  padding: 16px 20px;
  margin: 24px 0;
  font-style: italic;
}

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

/* Post Tags */
.single-post-tags {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  color: #6b7280;
}

.single-post-tags a {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  padding: 4px 8px;
  border-radius: 3px;
  text-decoration: none;
  margin-right: 8px;
  margin-top: 4px;
  transition: all 0.2s ease;
}

.single-post-tags a:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Sidebar */
.single-post-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}


/* Related Posts Section */
.related-posts-section {
  padding: 40px 0;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.related-posts-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 30px;
  text-align: center;
}

.related-posts-slider {
  margin-bottom: 20px;
}

/* Related Post Items */
.related-post-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.related-post-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.related-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-post-image {
  height: 160px;
  overflow: hidden;
}

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

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

.related-post-content {
  padding: 16px;
}

.related-post-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

/* Contact Section */
.single-post-contact-section {
  padding: 40px 0;
}

/* Splide Navigation */
.splide__arrow {
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0px;
  min-height: unset !important;
}

.splide__arrow svg {
  fill: #ffffff;
}

.splide__arrow--prev {
  left: -50px;
}

.splide__arrow--next {
  right: -50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .single-post-grid {
    grid-template-columns: 1fr 280px;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .single-post-content-section {
    padding: 16px 0 30px 0;
  }

  .single-post-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .single-post-breadcrumb {
    margin-bottom: 16px;
    padding: 12px 16px;
  }

  .single-post-title {
    font-size: 1.75rem;
  }

  .single-post-meta {
    flex-direction: column;
    gap: 8px;
  }

  .single-post-sidebar {
    position: static;
    top: auto;
    height: auto;
  }

  .related-posts-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .related-post-image {
    height: 140px;
  }

  .splide__arrow--prev {
    left: 3px;
  }

  .splide__arrow--next {
    right: 3px;
  }
}

@media (max-width: 480px) {
  .single-post-content-section {
    padding: 12px 0 24px 0;
  }

  .single-post-title {
    font-size: 1.5rem;
  }

  .single-post-content-text {
    font-size: 15px;
  }

  .related-posts-section {
    padding: 30px 0;
  }

  .related-post-content {
    padding: 12px;
  }

  .related-post-title {
    font-size: 14px;
  }

  .splide__arrow {
    width: 35px;
    height: 35px;
  }
}
