/* Hide Table of Contents on single posts */
.ez-toc-container,
.ez-toc-widget-container,
.toc,
.toc-container,
.toc_widget,
.toc-widget,
.toc-sidebar,
.toc__wrapper,
.toc-list,
.lwptoc,
.lwptoc_i,
.lwptoc_item,
.lwptoc_header,
.toc-block,
.table-of-contents,
.toc__sticky,
.toc-sticky,
.tocbot,
#toc_container,
#ez-toc-container,
#toc,
div[id^="toc"],
section[class*="toc"],
nav[class*="toc"] {
  display: none !important;
}

/* Single Post Template Styles */
.single-post-article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 40px;
}

/* Breadcrumb */
.breadcrumb-container {
  margin-bottom: 30px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
}

.breadcrumb-nav a {
  color: #956a4a;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-nav a:hover {
  color: #7a5a3d;
}

.breadcrumb-nav .separator {
  color: #ccc;
}

.breadcrumb-nav .current {
  color: #333;
  font-weight: 500;
}

/* Hero Section */
.post-hero-section {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.hero-background {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(149, 106, 74, 0.9),
    rgba(122, 90, 61, 0.8)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.post-categories {
  margin-bottom: 20px;
}

.category-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  margin: 0 5px;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.post-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.meta-item i {
  color: rgba(255, 255, 255, 0.8);
}

/* Content Wrapper */
.post-content-wrapper {
  padding: 40px 0;
}

.post-content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Main Content */
.post-main-content {
  line-height: 1.8;
}

.post-excerpt {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  border-left: 4px solid #956a4a;
}

.excerpt-content {
  position: relative;
}

.excerpt-content i {
  color: #956a4a;
  font-size: 24px;
  margin-bottom: 15px;
  display: block;
}

.excerpt-content p {
  font-size: 18px;
  font-style: italic;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.post-content h2 {
  color: #956a4a;
  font-size: 28px;
  margin: 40px 0 20px 0;
  font-weight: 600;
}

.post-content h3 {
  color: #7a5a3d;
  font-size: 24px;
  margin: 30px 0 15px 0;
  font-weight: 600;
}

.post-content h4 {
  color: #956a4a;
  font-size: 20px;
  margin: 25px 0 12px 0;
  font-weight: 600;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content blockquote {
  background: #f8f9fa;
  border-left: 4px solid #956a4a;
  padding: 20px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tags */
.post-tags {
  margin: 40px 0;
}

.post-tags h3 {
  color: #956a4a;
  margin: 0 0 20px 0;
  font-size: 20px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #956a4a;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s, transform 0.3s;
}

.tag-item:hover {
  background: #7a5a3d;
  color: white;
  transform: translateY(-2px);
}

/* Navigation */
.post-navigation {
  margin: 50px 0;
}

.nav-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e9ecef;
}

.nav-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  color: inherit;
}

.nav-arrow {
  color: #956a4a;
  font-size: 20px;
}

.nav-content {
  flex: 1;
}

.nav-label {
  display: block;
  color: #956a4a;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.nav-title {
  display: block;
  color: #333;
  font-weight: 600;
  line-height: 1.4;
}

.nav-next .nav-link {
  text-align: right;
}

.nav-next .nav-arrow {
  order: 2;
}

/* Related Posts */
.related-posts-section {
  background: #f8f9fa;
  padding: 50px 0;
  border-radius: 12px;
  margin-top: 50px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  color: #956a4a;
  font-size: 32px;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.section-header p {
  color: #666;
  font-size: 16px;
  margin: 0;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.related-post-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.related-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-image {
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.related-post-card:hover .post-image img {
  transform: scale(1.05);
}

.no-image {
  width: 100%;
  height: 100%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 24px;
}

.post-details {
  padding: 25px;
}

.post-title {
  margin: 0 0 15px 0;
  font-size: 20px;
  line-height: 1.4;
}

.post-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.post-title a:hover {
  color: #956a4a;
}

.post-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.post-date {
  color: #999;
  display: flex;
  align-items: center;
  gap: 5px;
}

.read-more a {
  color: #956a4a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.read-more a:hover {
  color: #7a5a3d;
}

.no-related-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #666;
}

.no-related-posts i {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 20px;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .post-hero-section {
    height: 300px;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-meta {
    flex-direction: column;
    gap: 15px;
  }

  .nav-container {
    grid-template-columns: 1fr;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .post-hero-section {
    height: 250px;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .hero-content {
    padding: 0 15px;
  }

  .post-content-container {
    padding: 0 15px;
  }
}

/* Comments modern UI */
.mc-comments {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 !important;
}
.mc-comments-header {
  margin-bottom: 16px;
}
.mc-comments-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}
.mc-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mc-comment {
  margin: 0 0 16px 0;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
}
.mc-comment .children {
  margin-top: 12px;
  margin-left: 24px;
  padding-left: 0;
  border-left: 2px solid #f0f0f0;
}
.mc-comment-body {
  display: block;
}
.mc-comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.mc-comment-author img {
  border-radius: 50%;
}
.mc-comment-author .fn {
  font-weight: 600;
}
.mc-comment-time {
  color: #888;
  font-size: 12px;
}
.mc-comment-content {
  color: #333;
  line-height: 1.6;
}
.mc-comment-actions a {
  font-size: 13px;
  color: #7a5a3d;
  text-decoration: none;
}
.mc-comment-actions a:hover {
  text-decoration: underline;
}
.mc-comment-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}
.mc-comment-respond {
  margin-top: 24px;
}
.comment-respond {
  padding: 0 !important;
  border: none !important;
  background: none !important;
}
.mc-comment-form {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
}
.mc-field {
  margin-bottom: 12px;
}
.mc-field-half {
  width: 100%;
}
@media (min-width: 600px) {
  .mc-field-half {
    display: inline-block;
    width: calc(50% - 6px);
  }
  .mc-field-half + .mc-field-half {
    margin-left: 12px;
  }
}
.mc-field label {
  display: block;
  margin-bottom: 6px;
  color: #555;
  font-size: 13px;
}
.mc-field input,
.mc-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  color: #333;
  outline: none;
}
.mc-field input:focus,
.mc-field textarea:focus {
  border-color: #c2a68b;
  box-shadow: 0 0 0 3px rgba(149, 106, 74, 0.15);
}
.mc-submit {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mc-btn-primary {
  background: #7a5a3d;
  color: #fff;
}
.mc-btn-primary:hover {
  background: #6b4e34;
}

/* Download countdown + disabled state */
.download_layout .btn_download.disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}
.download_layout .modradar-countdown {
  color: #d9534f;
  font-weight: 600;
  margin-left: 8px;
}
