/* ==========================================================================
   TechMonarch Enterprise Blog & Publishing Styling
   ========================================================================== */

:root {
  --tm-navy: #091242;
  --tm-navy-dark: #060c2c;
  --tm-orange: #fc6736;
  --tm-orange-hover: #e55324;
  --tm-dark: #111827;
  --tm-text: #334155;
  --tm-heading: #091242;
  --tm-muted: #64748b;
  --tm-light-bg: #f8fafc;
  --tm-border: #e2e8f0;
  --tm-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --tm-hover-shadow: 0 16px 32px rgba(9, 18, 66, 0.1);
  --tm-radius: 12px;
  --tm-radius-lg: 16px;
}

/* Reading Progress Bar (Fixed Top) */
.tm-reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--tm-orange), #ff9f43);
  z-index: 99999;
  transition: width 0.1s linear;
}

/* Global button reset fix inside blog pages */
.tm-blog-single-page button,
.tm-blog-single-page a.tm-btn-primary,
.tm-blog-single-page a.tm-btn-outline,
.tm-blog-single-page a.tm-share-btn,
.tm-blog-archive-page button,
.tm-blog-archive-page a.tm-btn-primary {
  margin-top: 0 !important;
}

/* Wrapper */
.tm-blog-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Ensure the site global fixed header is always strictly on top with solid white background */
header:not(.tm-blog-hero) {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------------------------------
   1. Article & Archive Hero Section
   -------------------------------------------------------------------------- */
.tm-blog-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0 45px;
  color: #ffffff;
  overflow: hidden;
  margin-top: 80px !important;
  margin-bottom: 0 !important;
  z-index: 1;
}

.tm-blog-archive-hero {
  padding: 60px 0 45px;
  margin-bottom: 0 !important;
}

.tm-blog-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(9, 18, 66, 0.96) 0%, rgba(9, 18, 66, 0.88) 60%, rgba(6, 12, 44, 0.95) 100%);
  z-index: 1;
}

.tm-blog-hero .tm-blog-wrapper {
  position: relative;
  z-index: 2;
}

/* Breadcrumbs */
.tm-blog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 20px;
  font-family: "Outfit", sans-serif;
}

.tm-blog-breadcrumbs a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tm-blog-breadcrumbs a:hover {
  color: var(--tm-orange);
}

.tm-blog-breadcrumbs .tm-sep {
  color: #64748b;
  font-size: 11px;
}

.tm-blog-breadcrumbs .tm-current {
  color: #f1f5f9;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero Tags */
.tm-blog-hero-tags {
  margin-bottom: 16px;
}

.tm-blog-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(252, 103, 54, 0.16);
  border: 1px solid rgba(252, 103, 54, 0.45);
  color: #ffaa88;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: "Outfit", sans-serif;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tm-blog-cat-badge:hover {
  background: rgba(252, 103, 54, 0.3);
  color: #ffffff;
}

/* Main Article Title in Hero */
.tm-blog-hero-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(30px, 3.8vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 16px 0;
  max-width: 980px;
  letter-spacing: -0.5px;
}

.tm-blog-hero-excerpt {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 860px;
  margin: 0 0 24px 0;
}

.tm-blog-archive-sub {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 820px;
  margin: 0;
}

/* Editorial Metadata Strip */
.tm-blog-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #94a3b8;
  font-family: "Outfit", sans-serif;
}

.tm-blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tm-blog-meta-item i {
  color: var(--tm-orange);
  font-size: 14px;
}

.tm-blog-meta-item a {
  color: #cbd5e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.tm-blog-meta-item a:hover {
  color: var(--tm-orange);
}

.tm-meta-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tm-author-avatar-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-author-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-author-text {
  color: #cbd5e1;
}

.tm-author-text .tm-meta-by {
  color: #94a3b8;
  margin-right: 4px;
}

.tm-author-text .tm-author-name {
  color: #ffffff;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   2. Main Single Article Body & Layout
   -------------------------------------------------------------------------- */
.tm-blog-body-section {
  padding: 60px 0 80px;
  background-color: #f8fafc;
  margin-top: 0 !important;
}

.tm-blog-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}

/* Left Content Area */
.tm-blog-main-content {
  background: #ffffff;
  border-radius: var(--tm-radius-lg);
  padding: 45px 48px;
  border: 1px solid var(--tm-border);
  box-shadow: var(--tm-card-shadow);
}

.tm-blog-featured-image-wrapper {
  margin-bottom: 36px;
  border-radius: var(--tm-radius);
  overflow: hidden;
  box-shadow: var(--tm-card-shadow);
  border: 1px solid var(--tm-border);
  background: #f1f5f9;
}

.tm-blog-featured-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Executive Briefing / Key Takeaways Box */
.tm-blog-takeaways-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-left: 4px solid #10b981;
  border-radius: 0 12px 12px 0;
  padding: 22px 24px;
  margin-bottom: 34px;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  border-right: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.tm-takeaways-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tm-takeaways-header i {
  color: #10b981;
  font-size: 18px;
}

.tm-takeaways-header h3 {
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #065f46;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tm-takeaways-body p {
  font-family: "Manrope", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #047857 !important;
  margin: 0 !important;
}

/* In-Content Quick Table of Contents */
.tm-blog-inpage-toc {
  background: #f8fafc;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 20px 24px;
  margin-bottom: 36px;
}

.tm-inpage-toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--tm-navy);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tm-inpage-toc-header i {
  color: var(--tm-orange);
}

.tm-inpage-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tm-inpage-toc-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tm-inpage-toc-list a i {
  font-size: 10px;
  color: var(--tm-orange);
  transition: transform 0.2s ease;
}

.tm-inpage-toc-list a:hover {
  color: var(--tm-orange);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   3. Calibrated Professional Typography for Article Content
   -------------------------------------------------------------------------- */
.tm-blog-article-content {
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #334155;
  letter-spacing: -0.01em;
}

/* Safeguard: Hide duplicate leading H1 block if present inside post content */
.tm-blog-article-content > h1:first-child,
.tm-blog-article-content > .wp-block-heading:first-child:is(h1) {
  display: none !important;
}

/* Standard Paragraphs: STRICT left align, comfortable 1.8 line spacing, uniform typography */
.tm-blog-article-content p,
.tm-blog-article-content .wp-block-paragraph {
  font-family: "Manrope", sans-serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  color: #334155 !important;
  text-align: left !important;
  margin: 0 0 24px 0 !important;
  word-spacing: normal !important;
  hyphens: none !important;
}

.tm-blog-article-content strong,
.tm-blog-article-content b {
  color: #0f172a;
  font-weight: 700;
}

/* Heading 1 (Mid-article) */
.tm-blog-article-content h1,
.tm-blog-article-content .h1 {
  font-family: "Outfit", sans-serif !important;
  font-size: clamp(28px, 3.2vw, 34px) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  color: var(--tm-navy) !important;
  letter-spacing: -0.5px !important;
  margin-top: 48px !important;
  margin-bottom: 18px !important;
}

/* Heading 2: Major Section */
.tm-blog-article-content h2,
.tm-blog-article-content .h2,
.tm-blog-article-content .wp-block-heading:is(h2) {
  font-family: "Outfit", sans-serif !important;
  font-size: clamp(23px, 2.4vw, 28px) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: #091242 !important;
  letter-spacing: -0.3px !important;
  margin-top: 42px !important;
  margin-bottom: 16px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #edf2f7 !important;
  scroll-margin-top: 100px;
}

/* Heading 3: Sub-section */
.tm-blog-article-content h3,
.tm-blog-article-content .h3,
.tm-blog-article-content .wp-block-heading:is(h3) {
  font-family: "Outfit", sans-serif !important;
  font-size: clamp(19px, 2vw, 22px) !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
  letter-spacing: -0.2px !important;
  margin-top: 32px !important;
  margin-bottom: 12px !important;
  scroll-margin-top: 100px;
}

/* Heading 4: Specific topic */
.tm-blog-article-content h4,
.tm-blog-article-content .h4,
.tm-blog-article-content .wp-block-heading:is(h4) {
  font-family: "Outfit", sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  color: #1e293b !important;
  margin-top: 24px !important;
  margin-bottom: 10px !important;
}

/* Heading 5 & 6 */
.tm-blog-article-content h5,
.tm-blog-article-content h6 {
  font-family: "Outfit", sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  color: var(--tm-orange) !important;
  margin-top: 20px !important;
  margin-bottom: 8px !important;
}

/* Lists */
.tm-blog-article-content ul,
.tm-blog-article-content ol,
.tm-blog-article-content .wp-block-list {
  margin: 0 0 26px 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

.tm-blog-article-content ul li {
  position: relative !important;
  padding-left: 28px !important;
  margin-bottom: 12px !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #334155 !important;
  font-weight: 400 !important;
}

.tm-blog-article-content ul li::before {
  content: "" !important;
  position: absolute !important;
  left: 6px !important;
  top: 10px !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--tm-orange) !important;
}

.tm-blog-article-content ol {
  counter-reset: tm-blog-ol-count !important;
}

.tm-blog-article-content ol li {
  position: relative !important;
  padding-left: 36px !important;
  margin-bottom: 14px !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #334155 !important;
  counter-increment: tm-blog-ol-count !important;
  font-weight: 400 !important;
}

.tm-blog-article-content ol li::before {
  content: counter(tm-blog-ol-count) !important;
  position: absolute !important;
  left: 0 !important;
  top: 2px !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  background: rgba(9, 18, 66, 0.08) !important;
  color: var(--tm-navy) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  font-family: "Outfit", sans-serif !important;
}

/* Blockquotes */
.tm-blog-article-content blockquote,
.tm-blog-article-content .wp-block-quote {
  border-left: 4px solid var(--tm-orange) !important;
  background: #f8fafc !important;
  padding: 22px 26px !important;
  border-radius: 0 12px 12px 0 !important;
  margin: 32px 0 !important;
  font-family: "Outfit", sans-serif !important;
  font-size: 18px !important;
  font-style: italic !important;
  line-height: 1.65 !important;
  color: var(--tm-navy) !important;
}

.tm-blog-article-content blockquote p {
  font-family: "Outfit", sans-serif !important;
  font-size: 18px !important;
  font-style: italic !important;
  line-height: 1.65 !important;
  color: var(--tm-navy) !important;
  margin-bottom: 0 !important;
}

/* Tables */
.tm-blog-article-content table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 32px 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid var(--tm-border) !important;
  font-size: 14px !important;
}

.tm-blog-article-content th {
  background: var(--tm-navy) !important;
  color: #ffffff !important;
  font-family: "Outfit", sans-serif !important;
  font-weight: 700 !important;
  padding: 12px 16px !important;
  text-align: left !important;
}

.tm-blog-article-content td {
  padding: 12px 16px !important;
  border-top: 1px solid var(--tm-border) !important;
  color: #334155 !important;
  background: #ffffff !important;
}

.tm-blog-article-content tr:nth-child(even) td {
  background: #f8fafc !important;
}

/* Inline Code & Pre Blocks */
.tm-blog-article-content code {
  background: #f1f5f9;
  color: #0f172a;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 4px;
}

.tm-blog-article-content pre {
  background: #091242;
  color: #e2e8f0;
  padding: 18px 22px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  margin: 28px 0;
}

/* --------------------------------------------------------------------------
   4. Feedback Box & Social Share Bar
   -------------------------------------------------------------------------- */
.tm-blog-feedback-box {
  background: #f8fafc;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  padding: 18px 22px;
  margin: 36px 0 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.tm-feedback-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--tm-heading);
}

.tm-feedback-prompt i {
  color: var(--tm-orange);
}

.tm-feedback-actions {
  display: flex;
  gap: 10px;
}

.tm-feedback-btn {
  background: #ffffff;
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  padding: 6px 14px;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--tm-text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tm-feedback-btn:hover {
  border-color: var(--tm-orange);
  color: var(--tm-orange);
  background: #ffffff;
}

.tm-feedback-yes:hover {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.tm-feedback-thanks {
  width: 100%;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #047857;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tm-blog-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--tm-border);
  border-bottom: 1px solid var(--tm-border);
  margin: 30px 0 35px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.tm-blog-share-label {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--tm-heading);
}

.tm-blog-share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tm-share-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  margin: 0 !important;
  border: none;
  cursor: pointer;
}

.tm-share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.tm-share-li {
  background: #0077b5;
}

.tm-share-tw {
  background: #000000;
}

.tm-share-wa {
  background: #25d366;
}

.tm-share-copy {
  background: #475569;
}

.tm-share-copy.copied {
  background: #10b981 !important;
}

/* --------------------------------------------------------------------------
   5. Author Bio Card
   -------------------------------------------------------------------------- */
.tm-blog-author-box {
  display: block;
  background: #f8fafc;
  border: 1px solid var(--tm-border);
  border-left: 4px solid var(--tm-orange);
  border-radius: var(--tm-radius);
  padding: 24px 28px;
  margin: 35px 0;
}

.tm-author-bio-col {
  display: flex;
  flex-direction: column;
}

.tm-author-badge {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--tm-orange);
  margin-bottom: 8px;
}

.tm-author-desc {
  font-family: "Manrope", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #475569 !important;
  margin: 0 !important;
}
  color: #475569;
  margin: 0;
}

/* --------------------------------------------------------------------------
   6. Post Navigation (Prev / Next)
   -------------------------------------------------------------------------- */
.tm-blog-post-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--tm-border);
  margin-top: 30px;
}

.tm-post-nav-item a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tm-post-nav-prev a {
  align-items: flex-start;
}

.tm-post-nav-next a {
  align-items: flex-end;
  text-align: right;
}

.tm-post-nav-item .tm-nav-dir {
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  color: var(--tm-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.tm-post-nav-item .tm-nav-title {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--tm-heading);
  line-height: 1.35;
  max-width: 340px;
  transition: color 0.2s ease;
}

.tm-post-nav-item a:hover .tm-nav-title {
  color: var(--tm-orange);
}

.tm-post-nav-all a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--tm-light-bg);
  border: 1px solid var(--tm-border);
  color: var(--tm-heading);
  text-decoration: none;
  transition: all 0.2s ease;
}

.tm-post-nav-all a:hover {
  background: var(--tm-navy);
  color: #ffffff;
  border-color: var(--tm-navy);
}

/* --------------------------------------------------------------------------
   7. Right Sticky Sidebar
   -------------------------------------------------------------------------- */
.tm-blog-sidebar {
  position: sticky;
  top: 105px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tm-blog-widget {
  background: #ffffff;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  padding: 26px 24px;
  box-shadow: var(--tm-card-shadow);
}

.tm-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tm-border);
  margin-bottom: 16px;
}

.tm-widget-header i {
  color: var(--tm-orange);
  font-size: 17px;
}

.tm-widget-header h3 {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--tm-heading);
  margin: 0;
}

/* Sticky Table of Contents Widget */
.tm-blog-toc-widget .tm-sidebar-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tm-blog-toc-widget .tm-toc-link {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #64748b;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.tm-blog-toc-widget .tm-toc-link:hover,
.tm-blog-toc-widget .tm-toc-link.active {
  color: var(--tm-orange);
  background: #fff8f5;
  border-left-color: var(--tm-orange);
  font-weight: 700;
}

/* MSP CTA Card */
.tm-blog-cta-widget {
  background: linear-gradient(135deg, #091242 0%, #0d1a58 100%);
  color: #ffffff;
  border: 1px solid rgba(252, 103, 54, 0.3);
  position: relative;
  overflow: hidden;
}

.tm-blog-cta-widget::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 103, 54, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.tm-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(252, 103, 54, 0.18);
  border: 1px solid rgba(252, 103, 54, 0.4);
  color: #ffaa88;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
  font-family: "Outfit", sans-serif;
}

.tm-cta-title {
  font-family: "Outfit", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.tm-cta-desc {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 20px 0;
}

.tm-cta-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--tm-orange);
  color: #ffffff !important;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(252, 103, 54, 0.35);
  margin-top: 0 !important;
}

.tm-cta-btn:hover {
  background: var(--tm-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 103, 54, 0.45);
}

.tm-cta-guarantee {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: #94a3b8;
  font-family: "Manrope", sans-serif;
}

.tm-cta-guarantee i {
  color: #10b981;
  margin-right: 4px;
}

/* Recent Articles Widget */
.tm-recent-articles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tm-recent-article-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.tm-recent-article-item:hover {
  background: var(--tm-light-bg);
}

.tm-recent-thumb-wrap {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.tm-recent-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-recent-text {
  display: flex;
  flex-direction: column;
}

.tm-recent-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tm-orange);
  letter-spacing: 0.5px;
  font-family: "Outfit", sans-serif;
  margin-bottom: 2px;
}

.tm-recent-title {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--tm-heading);
  line-height: 1.35;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.tm-recent-article-item:hover .tm-recent-title {
  color: var(--tm-orange);
}

.tm-recent-date {
  font-size: 11px;
  color: var(--tm-muted);
  font-family: "Manrope", sans-serif;
}

/* Categories Widget */
.tm-cats-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tm-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--tm-heading);
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: var(--tm-light-bg);
  border: 1px solid #edf2f7;
  transition: all 0.2s ease;
}

.tm-cat-link:hover {
  background: #ffffff;
  border-color: var(--tm-orange);
  color: var(--tm-orange);
  transform: translateX(3px);
}

.tm-cat-count {
  font-size: 11px;
  background: #ffffff;
  border: 1px solid var(--tm-border);
  color: var(--tm-muted);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

.tm-cat-link:hover .tm-cat-count {
  background: var(--tm-orange);
  color: #ffffff;
  border-color: var(--tm-orange);
}

/* Search Widget */
.tm-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tm-search-input {
  width: 100%;
  padding: 11px 44px 11px 16px;
  border: 1px solid var(--tm-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: "Manrope", sans-serif;
  color: var(--tm-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tm-search-input:focus {
  border-color: var(--tm-navy);
  box-shadow: 0 0 0 3px rgba(9, 18, 66, 0.1);
}

.tm-search-btn {
  position: absolute;
  right: 6px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--tm-navy);
  color: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tm-search-btn:hover {
  background: var(--tm-orange);
}

/* --------------------------------------------------------------------------
   8. Related Articles Section
   -------------------------------------------------------------------------- */
.tm-blog-related-section {
  padding: 65px 0 70px;
  background: #ffffff;
  border-top: 1px solid var(--tm-border);
}

.tm-related-header {
  margin-bottom: 36px;
}

.tm-subtag {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--tm-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.tm-related-heading {
  font-family: "Outfit", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--tm-heading);
  margin: 0;
  letter-spacing: -0.4px;
}

.tm-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tm-related-card {
  background: #ffffff;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  overflow: hidden;
  box-shadow: var(--tm-card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tm-related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--tm-hover-shadow);
}

.tm-related-card-media {
  position: relative;
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f1f5f9;
}

.tm-related-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tm-related-card:hover .tm-related-card-media img {
  transform: scale(1.05);
}

.tm-related-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(9, 18, 66, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Outfit", sans-serif;
}

.tm-related-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tm-related-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--tm-muted);
  margin-bottom: 10px;
  font-family: "Manrope", sans-serif;
}

.tm-related-card-title {
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 16px 0;
  flex: 1;
}

.tm-related-card-title a {
  color: var(--tm-heading);
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tm-related-card-title a:hover {
  color: var(--tm-orange);
}

.tm-related-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tm-orange);
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  transition: gap 0.2s ease;
}

.tm-related-read-more:hover {
  gap: 10px;
}

/* --------------------------------------------------------------------------
   9. Blog Archive Listing & Card Grid
   -------------------------------------------------------------------------- */
.tm-blog-filter-section {
  background: #ffffff;
  border-bottom: 1px solid var(--tm-border);
  padding: 26px 0 22px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.tm-blog-filter-container {
  overflow: visible;
  padding: 0;
}

.tm-blog-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 10px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 680px;
  white-space: normal;
}

.tm-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 30px;
  background: var(--tm-light-bg);
  border: 1px solid var(--tm-border);
  color: var(--tm-heading);
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.tm-filter-pill:hover {
  border-color: var(--tm-orange);
  color: var(--tm-orange);
}

.tm-blog-filter-tabs li.active .tm-filter-pill {
  background: var(--tm-navy);
  border-color: var(--tm-navy);
  color: #ffffff;
}

.tm-blog-grid-section {
  padding: 45px 0 80px;
  background: #f8fafc;
  margin-top: 0 !important;
}

.tm-blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.tm-blog-card {
  background: #ffffff;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  overflow: hidden;
  box-shadow: var(--tm-card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tm-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--tm-hover-shadow);
  border-color: rgba(252, 103, 54, 0.4);
}

.tm-blog-card-media {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f1f5f9;
}

.tm-blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tm-blog-card:hover .tm-blog-card-media img {
  transform: scale(1.06);
}

.tm-blog-card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(9, 18, 66, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-family: "Outfit", sans-serif;
}

.tm-blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tm-blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--tm-muted);
  margin-bottom: 12px;
  font-family: "Manrope", sans-serif;
}

.tm-blog-card-meta i {
  color: var(--tm-orange);
  margin-right: 4px;
}

.tm-blog-card-title {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 12px 0;
  letter-spacing: -0.3px;
}

.tm-blog-card-title a {
  color: var(--tm-heading);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.tm-blog-card:hover .tm-blog-card-title a {
  color: var(--tm-orange);
}

.tm-blog-card-excerpt {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #64748b;
  margin: 0 0 20px 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tm-blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #edf2f7;
  font-size: 12px;
}

.tm-card-author {
  color: var(--tm-muted);
  font-family: "Manrope", sans-serif;
}

.tm-card-author strong {
  color: var(--tm-heading);
}

.tm-card-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--tm-orange);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.tm-card-read-link:hover {
  gap: 10px;
}

/* Pagination */
.tm-blog-pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.tm-blog-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tm-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--tm-border);
  color: var(--tm-heading);
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tm-blog-pagination .page-numbers:hover {
  border-color: var(--tm-orange);
  color: var(--tm-orange);
  transform: translateY(-2px);
}

.tm-blog-pagination .page-numbers.current {
  background: var(--tm-navy);
  border-color: var(--tm-navy);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   10. Global Bottom CTA Banner
   -------------------------------------------------------------------------- */
.tm-blog-bottom-banner {
  background: linear-gradient(135deg, #060c2c 0%, #091242 100%);
  color: #ffffff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
  margin-top: 0 !important;
}

.tm-bottom-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.tm-bottom-text {
  max-width: 680px;
}

.tm-bottom-text h2 {
  font-family: "Outfit", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.tm-bottom-text p {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
}

.tm-bottom-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tm-bottom-actions .tm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tm-orange);
  color: #ffffff;
  padding: 14px 26px;
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(252, 103, 54, 0.3);
}

.tm-bottom-actions .tm-btn-primary:hover {
  background: var(--tm-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 103, 54, 0.45);
}

.tm-bottom-actions .tm-btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 14px 24px;
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.tm-bottom-actions .tm-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   11. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .tm-blog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tm-blog-sidebar {
    position: static;
  }

  .tm-blog-cards-grid,
  .tm-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tm-blog-hero {
    padding: 100px 0 60px;
  }

  .tm-blog-hero-title {
    font-size: 26px;
  }

  .tm-blog-main-content {
    padding: 30px 20px;
  }

  .tm-blog-cards-grid,
  .tm-related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tm-bottom-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .tm-bottom-actions {
    justify-content: center;
    width: 100%;
  }

  .tm-blog-post-nav {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tm-post-nav-next a {
    align-items: flex-start;
    text-align: left;
  }

  .tm-post-nav-all {
    text-align: center;
  }

  .tm-blog-author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

