.wd-content-layout {
  padding-block: 0 !important;
  padding-top: 40px;
}

html {
  scroll-behavior: smooth;
}

.single-post-wrapper {
  margin: 40px 0;
}

/* ===========================
   LAYOUT CONTAINER - GRID ONLY, NO WIDTH CONSTRAINTS
   =========================== */
.single-layout-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.single-content-column {
  width: 100%;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.single-sidebar-content {
  position: sticky;
  top: 20px;
  align-self: start;
  z-index: 3;
  margin-top: -115px;
}

/* ===========================
   TOP CONTENT SECTION
   =========================== */
.single-top-content {
  position: relative;
  overflow: visible !important;
}

.single-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  overflow: visible !important;
}

.single-blog-logo {
  width: 150px;
  height: auto;
  flex-shrink: 0;
}

/* Content Tabs for Single Post */
.single-content-tabs {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 28px;
  overflow: visible !important;
}

.single-content-tab-first,
.single-content-tab {
  padding: 0px 10px;
  background: #a7a9ac;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: visible !important;
}

.single-content-tab-first {
  background-color: #fff;
  border: none;
  padding: 0;
}

.single-content-tab::before {
  content: "";
  width: 30px;
  height: 30px;
  background-image: url(../../template/images/asterisk-crop.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  filter: brightness(0) saturate(100%) invert(28%) sepia(96%) saturate(6539%)
    hue-rotate(320deg) brightness(100%) contrast(105%);
  animation: rotate-icon-single 3s linear infinite;
  position: absolute;
  top: -15px;
  left: -15px;
  z-index: 10;
}

@keyframes rotate-icon-single {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===========================
   MARQUEE SECTION - FULL WIDTH
   =========================== */
.single-marquee-container {
  background: #ff1f8f;
  padding: 6px 0;
  overflow: visible;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  z-index: 1;
}

.single-marquee-container.single-marquee-container-footer {
  background: #000;
  padding: 6px 0;
  overflow: visible;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  z-index: 1;
}

.single-marquee-content {
  position: relative;
  z-index: 2;
  display: flex;
  animation: single-marquee 20s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.single-marquee-text {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  padding: 0 40px;
  display: inline-block;
}

.single-marquee-container-footer .single-marquee-text {
  color: #ff1f8e !important;
}

.single-marquee-text span {
  margin: 0 15px;
}

@keyframes single-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===========================
   AUTHOR BOX
   =========================== */
.single-author-box {
  background: #e8e8e8;
  padding: 30px 20px;
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.single-author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-author-name {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  margin-top: 5px;
}

.single-author-posts-btn {
  background: #8b0000;
  color: #fff;
  padding: 8px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 5px;
}

.single-author-posts-btn:hover {
  background: #ff1f8f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #fff;
}

/* ===========================
   BLOG CONTENT AREA
   =========================== */
.single-blog-content {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.single-blog-content > * {
  max-width: 100%;
}

/* Breadcrumb */
.blog-breadcrumb {
  font-size: 14px;
  margin: 30px 0;
  font-family: inherit;
}

.blog-breadcrumb a {
  color: #ff1f8e;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
  color: #000;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #999;
}

.breadcrumb-current {
  color: #000;
}

/* Post Title */
.blog-post-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 40px;
  color: #000;
}

/* Post Meta Info */
.single-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #555;
  margin: -20px 0 30px;
}

.single-post-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.single-post-meta-label {
  color: #000;
  font-weight: 600;
}

.single-post-meta-value {
  color: #555;
}

.single-post-meta-icon {
  font-size: 15px;
}

.single-post-meta-divider {
  width: 1px;
  height: 18px;
  background: #ddd;
}

.single-post-fontsize {
  gap: 6px;
}

.single-font-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: #fff;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}

.single-font-btn:hover {
  border-color: #ff1f8f;
  color: #ff1f8f;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 31, 143, 0.2);
}

.single-font-btn[data-font-action="decrease"] {
  font-size: 12px;
}

.single-font-btn[data-font-action="increase"] {
  font-size: 18px;
}

/* Post Content */
.blog-post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  overflow-x: hidden;
}

/* ===========================
   TABLE OF CONTENTS
   =========================== */
.single-toc {
  background: #f3f3f3;
  padding: 0;
  border: 1px solid #e0e0e0;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 6px;
}

.single-toc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #ff1f8f, #ff6bb5);
}

.single-toc-title {
  font-weight: 700;
  font-size: 16px;
  color: #ff1f8f;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 0;
  transition: all 0.2s ease;
  background: #f3f3f3;
}
.single-toc-title > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #000;
}
.single-toc-title > span::before {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url(../../template/images/asterisk-crop.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    filter: brightness(0) saturate(100%) invert(28%) sepia(96%) saturate(6539%) hue-rotate(320deg) brightness(100%) contrast(105%);
    animation: rotate-icon-single 3s linear infinite;
    margin-right: 0;
}

.single-toc-toggle {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: auto;
}

.single-toc-toggle:hover {
  border-color: #ff1f8f;
  color: #ff1f8f;
  transform: translateY(-1px);
}

.single-toc-toggle-icon {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.single-toc.is-collapsed .single-toc-toggle-icon {
  transform: rotate(-90deg);
}

.single-toc.is-collapsed .single-toc-list {
  display: none;
}


.single-toc-list {
  list-style: none;
  margin: 0;
  padding: 12px 16px 16px;
  background: #fff;
}

.single-toc-item.level-2 {
  margin: 12px 0;
}

.single-toc-item.level-2 > a {
  font-weight: 600;
  font-size: 15px;
  color: #111;
  text-decoration: none;
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: #fff;
}

.single-toc-item.level-2 > a:hover {
  background: #fff5f9;
  color: #ff1f8f;
  transform: translateX(4px);
}

.single-toc-item.level-3 {
  margin: 6px 0 6px 22px;
}

.single-toc-item.level-3 > a {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  text-decoration: none;
  display: block;
  padding: 6px 10px;
  border-left: 2px solid rgba(255, 31, 143, 0.25);
  transition: all 0.2s ease;
}

.single-toc-item.level-3 > a:hover {
  color: #ff1f8f;
  border-left: 2px solid #ff1f8f;
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .single-toc {
    padding: 20px;
  }

  .single-toc-title {
    font-size: 18px;
  }

  .single-toc-item.level-2 > a,
  .single-toc-item.level-3 > a {
    font-size: 14px;
  }
}

/* Floating TOC toggle */
.single-toc-fab {
  position: fixed;
  left: 18px;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255, 31, 143, 0.35);
  background: #fff;
  color: #ff1f8f;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 1002;
  transform: translateY(-50%);
}

.single-toc-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.single-toc-fab:hover {
  transform: translateY(calc(-50% - 2px));
  background: #ff1f8f;
  color: #fff;
}

.single-toc-fab-icon {
  font-size: 20px;
  line-height: 1;
}

.single-toc-panel {
  position: fixed;
  left: 74px;
  top: 50%;
  width: 320px;
  max-height: 60vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid #eee;
  opacity: 0;
  transform: translateY(-50%) translateX(-10px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1002;
  display: flex;
  flex-direction: column;
}

.single-toc-panel.is-open {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.single-toc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  background: #f9f9f9;
}

.single-toc-panel-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ff1f8f;
}

.single-toc-panel-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #333;
}

.single-toc-panel-body {
  padding: 12px 14px 16px;
  overflow-y: auto;
}

.single-toc-panel .single-toc-list {
  margin: 0;
}

.single-toc-panel .single-toc-item.level-2 > a {
  color: #111;
  background: #f7f7f7;
}

.single-toc-panel .single-toc-item.level-3 > a {
  color: #333;
}

@media (max-width: 768px) {
  .single-toc-panel {
    left: 12px;
    right: 12px;
    width: auto;
    top: auto;
    bottom: 80px;
    transform: translateY(10px);
  }

  .single-toc-panel.is-open {
    transform: translateY(0);
  }

  .single-toc-fab {
    left: auto;
    right: 15px;
    top: 43%;
    border-radius: 50%;
    width: 50px;
    height: 50px;
  }

  .single-toc-fab:hover {
    transform: translateY(calc(-50% - 2px));
  }
}

.blog-post-content * {
  max-width: 100% !important;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.blog-post-content div,
.blog-post-content section,
.blog-post-content article {
  max-width: 100% !important;
  width: auto !important;
}

.blog-post-content p {
  margin-bottom: 20px;
}

.blog-post-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    font-weight: 700;
    color: #333333;
    display: block;
    border-left: 5px solid #ff1f8f;
    padding-left: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 20px;
    margin-top: 30px;
    background: linear-gradient(to right, #ff1f8f42, /* MÃ u xanh nháº¡t (10% opacity) */ rgba(0, 123, 255, 0));
}

.blog-post-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 30px 0 15px;
  color: #000;
}

.blog-post-content h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 25px 0 12px;
  color: #000;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.blog-post-content li {
  margin-bottom: 10px;
}

.blog-post-content img {
  max-width: 100% !important;
  height: auto !important;
  width: auto !important;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
}

.blog-post-content blockquote {
  border-left: 4px solid #ff1f8e;
  padding: 20px 30px;
  margin: 30px 0;
  background: #f9f9f9;
  font-style: italic;
  color: #555;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.blog-post-content a {
  color: #ff1f8e;
  text-decoration: underline;
  transition: opacity 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
}

.blog-post-content a:hover {
  opacity: 0.7;
}

.blog-post-content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 14px;
}

.blog-post-content pre {
  background: #f4f4f4;
  padding: 20px;
  border-radius: 6px;
  overflow-x: auto !important;
  max-width: 100% !important;
  margin: 20px 0;
  white-space: pre;
  word-wrap: normal;
}

.blog-post-content pre code {
  background: none;
  padding: 0;
  white-space: pre;
  word-wrap: normal;
}

.blog-post-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

.blog-post-content table td,
.blog-post-content table th {
  padding: 8px 12px;
  white-space: nowrap;
}

.blog-post-content iframe,
.blog-post-content embed,
.blog-post-content object,
.blog-post-content video {
  max-width: 100% !important;
  height: auto !important;
}

.blog-post-content figure {
  max-width: 100%;
  margin: 20px 0;
  overflow: hidden;
}

.blog-post-content figcaption {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===========================
   POST NAVIGATION
   =========================== */
.blog-post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 80px;
  gap: 40px;
  position: relative;
  overflow: visible !important;
}

.blog-nav-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  flex: 1;
  gap: 20px;
  overflow: visible !important;
}

.blog-nav-prev {
  align-items: flex-end;
  text-align: right;
}

.blog-nav-prev::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: #ff1f8f;
  transition: width 0.3s ease;
}

.blog-nav-prev::after {
  content: "";
  position: absolute;
  left: 1px;
  top: -6.5px;
  width: 15px;
  height: 15px;
  border-left: 2px solid #ff1f8f;
  border-bottom: 2px solid #ff1f8f;
  transform: rotate(45deg);
  transform-origin: center;
  transition: left 0.3s ease;
  z-index: 5;
}

.blog-nav-prev:hover::before {
  width: calc(100% + 10px);
}

.blog-nav-prev:hover::after {
  left: -5px;
}

.blog-nav-next {
  align-items: flex-start;
  text-align: left;
}

.blog-nav-next::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: #ff1f8f;
  transition: width 0.3s ease;
}

.blog-nav-next::after {
  content: "";
  position: absolute;
  right: 1px;
  top: -6.5px;
  width: 15px;
  height: 15px;
  border-right: 2px solid #ff1f8f;
  border-bottom: 2px solid #ff1f8f;
  transform: rotate(-45deg);
  transform-origin: center;
  transition: right 0.3s ease;
  z-index: 5;
}

.blog-nav-next:hover::before {
  width: calc(100% + 10px);
}

.blog-nav-next:hover::after {
  right: -5px;
}

.blog-nav-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ff1f8f;
  text-transform: uppercase;
  margin-top: 20px;
}

.blog-nav-title {
  font-size: 16px;
  font-weight: 400;
  color: #666;
  line-height: 1.4;
  transition: color 0.3s ease;
  max-width: 300px;
}

.blog-nav-item:hover .blog-nav-title {
  color: #000;
}

.blog-post-navigation:has(.blog-nav-item:only-child) {
  justify-content: flex-start;
}

.blog-post-navigation:has(.blog-nav-next:only-child) {
  justify-content: flex-end;
}

/* ===========================
   SIDEBAR CONTENT
   =========================== */
 .single-author-bio p {
    font-size: 13px;
}
.single-sidebar-content .blog-sidebar-section {
  margin-bottom: 40px;
}

.single-sidebar-content .blog-sidebar-title {
  background: #000;
  color: #fff;
  padding: 12px 15px;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.single-sidebar-content .blog-sidebar-title::before {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("../../template/images/asterisk-crop.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  filter: brightness(0) saturate(100%) invert(28%) sepia(96%) saturate(6539%)
    hue-rotate(320deg) brightness(100%) contrast(105%);
  animation: rotate-icon-single 3s linear infinite;
}

.single-sidebar-content .blog-sidebar-list {
  background: #f5f5f5;
  border: 1px solid #787878;
  border-top: none;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.single-sidebar-content .blog-sidebar-item {
  padding: 12px 15px;
  border-bottom: 1px solid #787878;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
  position: relative;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
}

.single-sidebar-content .blog-sidebar-item:hover {
  background: #fff;
}

.single-sidebar-content .blog-sidebar-item.active {
  background-color: #ff1f8f;
  color: #fff;
  font-weight: 600;
}

.single-sidebar-content .blog-sidebar-item.active .blog-sidebar-item-arrow {
  color: #fff;
}

.single-sidebar-content .blog-sidebar-item:last-child {
  border-bottom: none;
}

.single-sidebar-content .blog-sidebar-item-arrow {
  font-size: 18px;
  color: #666;
  padding: 12px 15px;
  margin: -12px -15px -12px 15px;
  border-left: 1px solid #787878;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  transition: transform 0.3s ease;
}

.single-sidebar-content .blog-sidebar-item:hover .blog-sidebar-item-arrow {
  transform: translateX(5px);
}

.single-sidebar-content .blog-sidebar-featured-posts {
  background: #f5f5f5;
  border: 1px solid #787878;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.single-sidebar-content .blog-sidebar-post-item {
  padding: 15px;
  border-bottom: 1px solid #787878;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.single-sidebar-content .blog-sidebar-post-item:hover {
  background: #fff;
}

.single-sidebar-content .blog-sidebar-post-item:last-child {
  border-bottom: none;
}

.single-sidebar-content .blog-sidebar-post-thumbnail {
  width: 60px;
  height: 60px;
  background: #ccc;
  border-radius: 4px;
  flex-shrink: 0;
  overflow: hidden;
}

.single-sidebar-content .blog-sidebar-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.single-sidebar-content
  .blog-sidebar-post-item:hover
  .blog-sidebar-post-thumbnail
  img {
  transform: scale(1.1);
}

.single-sidebar-content .blog-sidebar-post-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.single-sidebar-content .blog-sidebar-post-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #000;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.single-sidebar-content .blog-sidebar-post-date {
  font-size: 11px;
  color: #666;
  margin-top: auto;
  padding-top: 4px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.single-sidebar-content .blog-sidebar-lab-grid {
  background: #f5f5f5;
  border: 1px solid #787878;
  padding: 15px;
}

.single-sidebar-content .blog-sidebar-lab-grid.lab-masonry-grid {
  display: block !important;
  column-count: 2;
  column-gap: 10px;
}

.single-sidebar-content .lab-masonry-grid .blog-sidebar-lab-item {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 10px;
  display: inline-block;
  width: 100%;
  background: transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  aspect-ratio: unset !important;
}

.single-sidebar-content .lab-masonry-grid .blog-sidebar-lab-item:hover {
  transform: translateY(-3px);
}

.single-sidebar-content .lab-masonry-grid .blog-sidebar-lab-item img {
  width: 100%;
  height: auto !important;
  display: block;
  border-radius: 6px;
  object-fit: contain !important;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.single-sidebar-content .lab-masonry-grid .blog-sidebar-lab-item:hover img {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.single-sidebar-content .blog-sidebar-newsletter {
  background: #f5f5f5;
  border: 1px solid #787878;
  padding: 15px;
}

.single-sidebar-content .blog-sidebar-newsletter-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 0 !important;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.single-sidebar-content .blog-sidebar-newsletter-input:focus {
  border-color: #ff1f8e;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1024px) {
  .single-layout-container {
    grid-template-columns: 1fr !important;
  }

  .blog-post-title {
    font-size: 36px;
  }

  .single-content-tabs {
    font-size: 24px;
  }

  .single-content-tab::before {
    width: 26px;
    height: 26px;
  }

  .single-author-avatar {
    width: 100px;
    height: 100px;
  }

  .single-author-name {
    font-size: 18px;
  }

  .single-sidebar-floating-toggle.show {
    display: flex;
  }

  .single-sidebar-content {
    position: fixed !important;
    top: 0 !important;
    right: -340px !important;
    width: 320px !important;
    height: 100vh !important;
    overflow-y: auto !important;
    z-index: 999 !important;
    background: #f5f5f5 !important;
    transition: right 0.3s ease !important;
    padding: 60px 20px 20px 20px !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1) !important;
    margin-top: 0 !important;
  }

  .single-sidebar-content.active {
    right: 0 !important;
  }

  .single-sidebar-close {
    display: flex !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .single-sidebar-floating-toggle {
    top: 25%;
  }
}

@media (max-width: 768px) {
  .single-layout-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .single-sidebar-content {
    position: static;
    z-index: auto;
    margin-top: 0;
  }

  .blog-post-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .blog-post-content {
    font-size: 15px;
    line-height: 1.7;
  }

  .blog-post-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
  }

  .blog-post-content h3 {
    font-size: 20px;
    margin: 25px 0 12px;
  }

  .blog-post-content h4 {
    font-size: 18px;
  }

  .blog-post-content table {
    font-size: 14px;
  }

  .blog-post-content pre {
    padding: 15px;
    font-size: 13px;
    margin: 20px -15px;
    border-radius: 0;
  }

  .blog-post-content code {
    font-size: 13px;
  }

  .blog-post-content img {
    margin: 20px auto;
  }

  .blog-post-content ul,
  .blog-post-content ol {
    padding-left: 20px;
  }

  .blog-post-content blockquote {
    padding: 15px 20px;
    margin: 20px 0;
    font-size: 14px;
  }

  .blog-post-content .alignleft,
  .blog-post-content .alignright {
    float: none;
    max-width: 100%;
    margin: 20px auto;
  }

  .blog-post-content .wp-block-columns {
    display: block !important;
  }

  .blog-post-content .wp-block-column {
    width: 100% !important;
    margin: 10px 0;
  }

  .blog-nav-next {
    align-items: flex-start;
    text-align: left;
  }

  .blog-nav-next::before {
    left: 0;
    right: auto;
  }

  .blog-nav-next:hover::after {
    transform: translateY(-50%) rotate(45deg) translateX(-5px);
  }

  .single-sidebar-content .lab-masonry-grid {
    column-count: 1;
  }

  .single-content-tabs {
    font-size: 20px;
  }

  .single-content-tab::before {
    width: 24px;
    height: 24px;
    top: -12px;
    left: -12px;
  }

  .single-marquee-text {
    font-size: 14px;
    padding: 0 30px;
  }

  .single-author-box {
    padding: 25px 15px;
  }

  .single-sidebar-floating-toggle {
    right: 15px;
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .single-sidebar-content {
    right: -100% !important;
    width: 90% !important;
    max-width: 350px !important;
  }
}

@media (max-width: 480px) {
  .blog-post-title {
    font-size: 24px;
  }

  .blog-post-content {
    font-size: 14px;
  }

  .blog-post-content h2 {
    font-size: 22px;
  }

  .blog-post-content h3 {
    font-size: 18px;
  }

  .blog-post-content h4 {
    font-size: 16px;
  }

  .blog-post-content table {
    font-size: 12px;
  }

  .blog-post-content pre {
    font-size: 12px;
    padding: 12px;
  }

  .blog-post-content blockquote {
    padding: 12px 15px;
    font-size: 13px;
  }

  .blog-nav-title {
    font-size: 14px;
  }

  .blog-nav-label {
    font-size: 11px;
  }

  .blog-post-navigation {
    margin-top: 50px;
    gap: 30px;
  }

  .single-content-tabs {
    font-size: 18px;
  }

  .single-content-tab::before {
    width: 20px;
    height: 20px;
    top: -10px;
    left: -10px;
  }

  .single-marquee-text {
    font-size: 12px;
    padding: 0 20px;
  }

  .single-author-avatar {
    width: 90px;
    height: 90px;
  }

  .single-author-name {
    font-size: 16px;
  }

  .single-author-posts-btn {
    font-size: 13px;
    padding: 7px 20px;
  }

  .single-top-header {
    margin: 0;
  }

  .single-sidebar-floating-toggle {
    right: 12px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .single-sidebar-content {
    right: -100% !important;
    width: 85% !important;
    max-width: 300px !important;
  }
}

/* ===========================
   RESPONSIVE SIDEBAR TOGGLE
   =========================== */
.single-sidebar-floating-toggle {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: #ff1f8f;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 998;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.single-sidebar-floating-toggle:hover {
  background: #ff1f8f;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.single-sidebar-floating-toggle.show {
  display: flex;
}

.single-sidebar-floating-toggle.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.8);
}

.single-sidebar-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: #ff1f8f;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.single-sidebar-close:hover {
  background: #ff1f8f;
  transform: rotate(90deg);
}

.single-sidebar-content::-webkit-scrollbar {
  width: 8px;
}

.single-sidebar-content::-webkit-scrollbar-track {
  background: #e0e0e0;
}

.single-sidebar-content::-webkit-scrollbar-thumb {
  background: #ff1f8f;
  border-radius: 4px;
}

.single-sidebar-content::-webkit-scrollbar-thumb:hover {
  background: #ff1f8f;
}

/* ===========================
   WORDPRESS SPECIFIC FIXES
   =========================== */
.blog-post-content .alignleft,
.blog-post-content .alignright {
  max-width: 50%;
}

.blog-post-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.blog-post-content .wp-block-gallery,
.blog-post-content .gallery {
  max-width: 100%;
  overflow: hidden;
}

.blog-post-content .wp-block-image figure {
  max-width: 100%;
}

.blog-post-content .wp-block-columns {
  flex-wrap: wrap;
}

.blog-post-content div,
.blog-post-content span {
  max-width: 100%;
}

.blog-post-content svg {
  max-width: 100%;
  height: auto;
}
