/* Single Post Section */
@import url('../../blogs/header/assets/styles.css');
.single-post-section {
  padding: 4rem 0;
  background: #fff;
}

.single-post-header {
  margin-bottom: 2rem;
}

.single-post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.single-post-category {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: #f0f0f0;
  color: #666;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 1.5rem;
  transition: all 0.3s ease;

  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.single-post-category:hover {
  background: #df6951;
  color: #fff;
  transform: translateY(-0.0625rem);
}

.single-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.5rem 0;
  line-height: 1.3;

}

.single-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.0625rem solid #e8e8e8;
}

.single-post-meta-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.single-post-author {
  font-size: 0.9375rem;
  color: #666;
}

.single-post-author a {
  color: #df6951;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.single-post-author a:hover {
  color: #c55a42;
}

.single-post-date {
  font-size: 0.9375rem;
  color: #999;
  position: relative;
  padding-left: 1rem;
}

.single-post-date::before {
  content: '•';
  position: absolute;
  left: 0.25rem;
  color: #ccc;
}

.single-post-share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: #f8f9fa;
  border: 0.125rem solid #e8e8e8;
  border-radius: 0.5rem;
  color: #666;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;

}

.single-post-share-btn:hover {
  background: #df6951;
  color: #fff;
  border-color: #df6951;
}

.single-post-share-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.single-post-featured-image {
  width: 100%;
  margin-bottom: 3rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
}

.single-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.single-post-content-wrapper {
  display: grid;
  grid-template-columns: 18rem 1fr;
  gap: 3rem;
  align-items: start;
}

/* Table of Contents */
.single-post-toc {
  position: sticky;
  top: 6rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 0.125rem solid #e8e8e8;
  border-radius: 1rem;
  padding: 0;
  max-height: calc(100vh - 11rem);
  overflow: hidden;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
	padding-bottom:3rem;
}

.single-post-toc:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.single-post-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #df6951 0%, #c55a42 100%);
  border-bottom: 0.125rem solid rgba(255, 255, 255, 0.1);
}

.single-post-toc-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  margin: 0;

  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.single-post-toc-title::before {
  content: '';
  width: 0.25rem;
  height: 1rem;
  background: #fff;
  border-radius: 0.125rem;
}

.single-post-toc-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  width: 1.75rem;
  height: 1.75rem;
}

.single-post-toc-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.single-post-toc-toggle.active {
  transform: rotate(180deg) scale(1.1);
}

.single-post-toc-toggle svg {
  width: 0.875rem;
  height: 0.875rem;
}

.single-post-toc-nav {
  display: block;
  padding: 1rem 0;
  max-height: calc(100vh - 12rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #df6951 #f0f0f0;
	padding-bottom:3.5rem;
}

.single-post-toc-nav::-webkit-scrollbar {
  width: 0.375rem;
}

.single-post-toc-nav::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.single-post-toc-nav::-webkit-scrollbar-thumb {
  background: #df6951;
  border-radius: 0.1875rem;
}

.single-post-toc-nav::-webkit-scrollbar-thumb:hover {
  background: #c55a42;
}

.single-post-toc-nav.hidden {
  display: none;
}

.single-post-toc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.single-post-toc-nav > ul {
  padding: 0 1rem;
}

.single-post-toc-nav li {
  margin-bottom: 0.25rem;
}

.single-post-toc-nav a {
  display: flex;
  align-items: center;
  padding: 0.625rem 0.875rem;
  color: #666;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 0.1875rem solid transparent;
  position: relative;
  font-weight: 400;
}

.single-post-toc-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.375rem;
  height: 0.375rem;
  background: #ccc;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.single-post-toc-nav a:hover {
  background: linear-gradient(90deg, rgba(223, 105, 81, 0.08) 0%, rgba(223, 105, 81, 0.02) 100%);
  color: #df6951;
  border-left-color: #df6951;
  padding-left: 1.125rem;
  transform: translateX(0.125rem);
}

.single-post-toc-nav a:hover::before {
  opacity: 1;
  background: #df6951;
}

.single-post-toc-nav a.active {
  background: linear-gradient(90deg, rgba(223, 105, 81, 0.15) 0%, rgba(223, 105, 81, 0.05) 100%);
  color: #df6951;
  border-left-color: #df6951;
  font-weight: 600;
  padding-left: 1.125rem;
  box-shadow: 0 0.125rem 0.5rem rgba(223, 105, 81, 0.15);
}

.single-post-toc-nav a.active::before {
  opacity: 1;
  background: #df6951;
  width: 0.5rem;
  height: 0.5rem;
}

.single-post-toc-nav ul ul {
  margin-left: 1rem;
  margin-top: 0.25rem;
  padding-left: 0.5rem;
  border-left: 0.0625rem dashed #e0e0e0;
}

.single-post-toc-nav ul ul a {
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  color: #888;
}

.single-post-toc-nav ul ul a:hover,
.single-post-toc-nav ul ul a.active {
  color: #df6951;
}

/* Post Content Typography */
.single-post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
  max-width: 100%;
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {

  font-weight: 700;
  color: #1a1a1a;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.single-post-content h1 {
  font-size: 2.25rem;
}

.single-post-content h2 {
  font-size: 1.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.125rem solid #e8e8e8;
}

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

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

.single-post-content h5 {
  font-size: 1.125rem;
}

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

.single-post-content p {
  margin-bottom: 1.5rem;
}

.single-post-content a {
  color: #df6951;
  text-decoration: underline;
  text-decoration-thickness: 0.125rem;
  text-underline-offset: 0.25rem;
  transition: all 0.3s ease;
}

.single-post-content a:hover {
  color: #c55a42;
  text-decoration-thickness: 0.1875rem;
}

.single-post-content strong,
.single-post-content b {
  font-weight: 700;
  color: #1a1a1a;
}

.single-post-content em,
.single-post-content i {
  font-style: italic;
}

.single-post-content ul,
.single-post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.single-post-content ul {
  list-style-type: disc;
}

.single-post-content ol {
  list-style-type: decimal;
}

.single-post-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.single-post-content li ul,
.single-post-content li ol {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.single-post-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: #f8f9fa;
  border-left: 0.25rem solid #df6951;
  border-radius: 0.5rem;
  font-style: italic;
  color: #555;
  position: relative;
}

.single-post-content blockquote p {
  margin-bottom: 0;
}

.single-post-content blockquote p:last-child {
  margin-bottom: 0;
}

.single-post-content blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: #999;
  font-style: normal;
}

.single-post-content blockquote cite::before {
  content: '— ';
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
}

.single-post-content figure {
  margin: 2rem 0;
}

.single-post-content figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #666;
  text-align: center;
  font-style: italic;
}

.single-post-content code {
  background: #f0f0f0;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.9375rem;
  font-family: 'Courier New', monospace;
  color: #df6951;
}

.single-post-content pre {
  background: #1a1a1a;
  color: #fff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.single-post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.single-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.single-post-content table th,
.single-post-content table td {
  padding: 0.75rem;
  border: 0.0625rem solid #e8e8e8;
  text-align: left;
}

.single-post-content table th {
  background: #f8f9fa;
  font-weight: 700;
  color: #1a1a1a;
}

.single-post-content table tr:nth-child(even) {
  background: #fafafa;
}

.single-post-content hr {
  border: none;
  border-top: 0.125rem solid #e8e8e8;
  margin: 2rem 0;
}

/* Share Popup */
.single-post-share-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(0.25rem);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.single-post-share-popup.active {
  opacity: 1;
  visibility: visible;
}

.single-post-share-popup-content {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 28rem;
  width: 90%;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.single-post-share-popup.active .single-post-share-popup-content {
  transform: scale(1);
}

.single-post-share-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.single-post-share-popup-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;

}

.single-post-share-popup-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.single-post-share-popup-close:hover {
  color: #1a1a1a;
}

.single-post-share-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.single-post-share-popup-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 0.125rem solid #e8e8e8;
  border-radius: 0.5rem;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;

}

.single-post-share-popup-btn:hover {
  border-color: #df6951;
  background: #f8f9fa;
  transform: translateY(-0.0625rem);
}

.single-post-share-popup-btn-fb {
  color: #1877f2;
}

.single-post-share-popup-btn-fb:hover {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}

.single-post-share-popup-btn-copy:hover {
  background: #df6951;
  color: #fff;
  border-color: #df6951;
}

.single-post-share-popup-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Related Posts */
.single-post-related {
  padding: 4rem 0;
  background: #f8f9fa;
}

.single-post-related-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 2rem 0;

  text-align: center;
}

.single-post-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: 2rem;
}

.single-post-related-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
}

.single-post-related-card:hover {
  transform: translateY(-0.375rem);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

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

.single-post-related-image {
  width: 100%;
  height: 12rem;
  overflow: hidden;
  background: #f0f0f0;
}

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

.single-post-related-card:hover .single-post-related-image img {
  transform: scale(1.08);
}

.single-post-related-content {
  padding: 1.5rem;
}

.single-post-related-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;

  transition: color 0.3s ease;
}

.single-post-related-link:hover .single-post-related-card-title {
  color: #df6951;
}

.single-post-related-card-date {
  font-size: 0.875rem;
  color: #999;
}

/* Responsive */
@media (max-width: 1024px) {
  .single-post-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .single-post-toc {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .single-post-section {
    padding: 2rem 0;
  }

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

  .single-post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .single-post-featured-image {
    margin-bottom: 2rem;
  }

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

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

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

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

  .single-post-related-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .single-post-share-popup-content {
    padding: 1.5rem;
  }
}

