/* Premium, compact styling for the Blog Details page */

/* Section background - soft off-white/grey to make the card float */
.blog-details-section {
  background-color: #f7f9fb;
  padding-top: 50px;
  padding-bottom: 55px;
}

/* Magazine-style white card container for the main blog content */
.blog-details-wrapper {
  background-color: var(--tl-color-common-white);
  border: 1px solid var(--tl-color-border-1);
  border-radius: 16px;
  padding: 40px !important;
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.03);
}

/* Article Header Area */
.article-header {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--tl-color-border-1);
}

.article-header .category-badge .badge-pill {
  display: inline-block;
  background-color: var(--tl-color-theme-secondary);
  color: var(--tl-color-common-white);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-left: 3px solid var(--tl-color-theme-primary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.article-header .category-badge .badge-pill:hover {
  background-color: var(--tl-color-theme-primary);
  color: var(--tl-color-heading-primary);
  transform: translateY(-1px);
}

.article-header .article-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--tl-color-theme-secondary);
  margin-top: 15px;
  margin-bottom: 15px;
  letter-spacing: 0.16rem;
}

.post-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 15px 0 !important;
  gap: 8px !important;
}

.post-meta li {
  display: inline-flex !important;
  align-items: center !important;
  color: var(--tl-color-text-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.post-meta li i {
  color: var(--tl-color-theme-secondary) !important; /* Deep Blue icons */
  margin-right: 8px !important;
  font-size: 14px !important;
}

.post-meta .meta-separator {
  color: var(--tl-color-grey-2) !important;
  margin: 0 10px !important;
  font-size: 12px !important;
  font-weight: 300 !important;
}

.post-meta .meta-author span {
  color: var(--tl-color-theme-primary) !important; /* Gold Admin */
  font-weight: 600 !important;
  margin-left: 4px !important;
}

/* Premium Cover Image Container with Accent Border & Shadows */
.article-cover {
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
  margin-top: 15px;
  border-radius: 12px;
  padding: 6px;
  background: linear-gradient(
    135deg,
    rgba(191, 153, 107, 0.15),
    rgba(10, 37, 64, 0.05)
  );
  border: 1px solid rgba(191, 153, 107, 0.2);
}

.cover-image-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.06);
}

.cover-image-container img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.article-cover:hover .cover-image-container img {
  transform: scale(1.02);
}

/* Summernote Content Editor Styling with Compact Spacing */
.blog-details-content {
  margin-top: 15px;
}

.blog-details-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #475569; /* Slate-600 for readability */
  margin-bottom: 16px;
}

.blog-details-content h2 {
  font-size: 24px;
  color: var(--tl-color-theme-secondary);
  font-weight: 800;
  margin-top: 30px;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 6px;
  letter-spacing: 0.08em !important; /* increased letter spacing */
}

.blog-details-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 3px;
  background-color: var(--tl-color-theme-primary);
  border-radius: 2px;
}

.blog-details-content h3 {
  font-size: 20px;
  color: var(--tl-color-theme-secondary);
  font-weight: 700;
  margin-top: 25px;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--tl-color-theme-primary);
  letter-spacing: 0.06em !important; /* increased letter spacing */
}

.blog-details-content h4 {
  font-size: 17px;
  color: var(--tl-color-theme-secondary);
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.06em !important; /* increased letter spacing */
}

.blog-details-content strong,
.blog-details-content b {
  color: var(--tl-color-theme-secondary);
  font-weight: 700;
}

/* Custom CSS Bullet Carets for Lists (Guaranteed to show without FontAwesome load issues) */
.blog-details-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.blog-details-content ul li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 10px;
}

.blog-details-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--tl-color-theme-primary);
  transition: transform 0.2s ease;
}

.blog-details-content ul li:hover::before {
  transform: translateX(3px);
}

.blog-details-content ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.blog-details-content ol li {
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 10px;
  padding-left: 4px;
}

.blog-details-content ol li::marker {
  color: var(--tl-color-theme-primary);
  font-weight: 700;
}

/* Premium Floating Icon Blockquotes with minimal spacing */
.blog-details-content blockquote {
  background-color: #faf8f5;
  border-left: 4px solid var(--tl-color-theme-primary);
  padding: 18px 24px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(191, 153, 107, 0.02);
}

.blog-details-content blockquote::before {
  content: "\f10d";
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "FontAwesome";
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 8px;
  font-size: 45px;
  color: rgba(191, 153, 107, 0.05);
  pointer-events: none;
}

.blog-details-content blockquote p {
  font-style: italic;
  font-size: 16px;
  line-height: 1.7;
  color: var(--tl-color-theme-secondary);
  font-weight: 600;
  margin-bottom: 0;
}

/* Premium Zebra-Striped Table Layout with Compact Margins */
.blog-details-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 25px 0;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--tl-color-border-1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.blog-details-content table th {
  background-color: var(--tl-color-theme-secondary);
  color: var(--tl-color-common-white);
  font-weight: 600;
  padding: 12px 15px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.8px;
  border-bottom: 2px solid var(--tl-color-theme-primary);
}

.blog-details-content table td {
  padding: 10px 15px;
  color: #475569;
  font-size: 16px;
  border-bottom: 1px solid var(--tl-color-border-1);
  border-right: 1px solid var(--tl-color-border-1);
  transition: background-color 0.2s ease;
}

.blog-details-content table td:last-child {
  border-right: none;
}

.blog-details-content table tr:last-child td {
  border-bottom: none;
}

.blog-details-content table tr:nth-child(even) {
  background-color: #f8fafc;
}

.blog-details-content table tr:hover td {
  background-color: rgba(191, 153, 107, 0.05);
}

@media (max-width: 767px) {
  .blog-details-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .blog-details-content table th,
  .blog-details-content table td {
    white-space: nowrap;
  }
}

/* Content Images */
.blog-details-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
}

/* Unique & Styled Conclusion Block Highlight (Italicized Callout Box) */
.blog-details-content h2:last-of-type {
  font-size: 22px;
  color: var(--tl-color-theme-secondary); /* Gold header for distinction */
  border-left: none;
  padding-left: 0;
  margin-top: 35px;
  border-bottom: 2px solid var(--tl-color-border-1);
  padding-bottom: 8px;
  letter-spacing: 0.1em !important; /* more spaced out */
}

.blog-details-content h2:last-of-type::after {
  display: none;
}

.blog-details-content h2:last-of-type ~ p {
  font-style: italic;
  font-size: 16px;
  line-height: 1.85;
  color: var(--tl-color-theme-secondary); /* Dark deep blue for contrast */
  background: linear-gradient(
    135deg,
    rgba(191, 153, 107, 0.06),
    rgba(10, 37, 64, 0.02)
  );
  padding: 20px 24px;
  border-left: 4px solid var(--tl-color-theme-primary);
  border-radius: 4px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(191, 153, 107, 0.04);
}



/* Responsive adjustments */
@media (max-width: 991px) {
  .blog-details-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .blog-details-wrapper {
    padding: 24px !important;
  }
  .article-cover {
    margin-top: 10px;
  }
  .cover-image-container img {
    max-height: 320px;
  }
  .article-header .article-title {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .article-header .article-title {
    font-size: 22px;
  }
}
