/* ===========================
   MLM Wire / Blog Styles
   =========================== */

/* ---------- Hero Section ---------- */
:root {
    --bg: #f6fbfd;
    --surface: #ffffff;
    --surface-soft: #eef8fb;
    --surface-muted: #f4f8fb;
    --ink: #122f3a;
    --ink-soft: #5c7380;
    --primary: #0888a7;
    --primary-strong: #178199;
    --primary-dark: #0a4b5b;
    --primary-deep: #083844;
    --accent: #b998df;
    --accent-soft: #eadcf9;
    --border: rgba(8, 136, 167, 0.14);
    --shadow: 0 24px 60px rgba(12, 55, 66, 0.12);
    --shadow-soft: 0 14px 30px rgba(12, 55, 66, 0.08);
    --radius: 36px;
    --radius-lg: 48px;
    --radius-sm: 24px;
    --container: 1300px;
}

.blog-hero {
  background: radial-gradient(at top center, var(--primary) 64%, #ffffff 100%);
  padding: 100px 0 60px;
  text-align: center;
  height: 75vh;
}
.blog-hero .hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  text-transform: capitalize;
  margin-bottom: 0;
}

/* ---------- Featured Post ---------- */
.featured-post {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  /* overflow: hidden; */
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  /* margin: -40vh auto 150px; */
  max-width: 1140px;
}
.featured-post .featured-thumb {
  width: 500px;
  min-width: 250px;
  padding-left: 20px;
  padding-top: 20px;
  /* overflow: hidden; */
}
.featured-post .featured-thumb a {
    width: 200px;
    height: 200px;
    display: block;
}

.featured-post .featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-post .featured-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-post .featured-body .entry-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}
.featured-post .featured-body .entry-title a {
  color: var(--primary);
  text-decoration: none;
  transition: color .25s;
}
.featured-post .featured-body .entry-title a:hover {
  color: var(--primary-strong);
}
.featured-post .featured-body .entry-excerpt {
  color: #353333;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.featured-post .featured-body .btn-read-more {
  display: inline-block;
  padding: 10px 28px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 5px;
  transition: background .25s;
  align-self: flex-start;
}
.featured-post .featured-body .btn-read-more:hover {
  background: var(--primary-strong);
  color: #fff;
}

/* ---------- Blog Section ---------- */
.blog-section {
  padding: 70px 0 40px;
}
.blog-section .section-title {
  font-family: 'Source Sans Pro', 'Source Sans 3', sans-serif;
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.blog-section .section-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  color: #555;
  max-width: 900px;
  margin-bottom: 40px;
}
.blog-section .section-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #7a7a7a;
  line-height: 30px;
}
/* ---------- Blog Grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
  margin-top: 40px;
}

/* ---------- Blog Card ---------- */
.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.blog-card .card-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}
.blog-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.blog-card:hover .card-thumb img {
  transform: scale(1.05);
}
.blog-card .card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card .card-body .entry-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}
.blog-card .card-body .entry-title a {
  color: var(--primary);
  text-decoration: none;
  transition: color .25s;
}
.blog-card .card-body .entry-title a:hover {
  color: var(--primary-strong);
}
.blog-card .card-body .entry-excerpt {
  color: #353333;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.blog-card .card-body .btn-read-more {
  display: inline-block;
  padding: 8px 22px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border-radius: 5px;
  transition: background .25s;
  align-self: flex-start;
}
.blog-card .card-body .btn-read-more:hover {
  background: var(--primary-strong);
  color: #fff;
}

/* ---------- Pagination ---------- */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 50px;
}
.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all .25s;
  border: 1px solid #ddd;
  color: #333;
  background: #fff;
}
.blog-pagination a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.blog-pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---------- Single Post Page ---------- */
.single-post-hero {
    position: relative;
    overflow: hidden;
    padding: 150px;
    background: var(--primary-dark);
}

.single-post-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(29 120 145 / 72%);
    z-index: 1;
    text-shadow: 0px 4px 1px black;
}

.single-post-hero .row {
    position: relative;
    z-index: 2;
}

.single-post-hero .post-title,
.single-post-hero .post-meta {
    color: #fff;
}
.single-post-hero .post-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  max-width: 900px;
  margin: 0 auto 16px;
  line-height: 1.25;
}
.single-post-hero .post-meta {
  color: rgba(255,255,255,.8);
  font-size: 14px;
}
.single-post-hero .post-meta .author-name {
  font-weight: 600;
  color: #fff;
}

.single-post-content {
  padding: 60px 0 80px;
  overflow: visible;
}
.single-post-content > .container {
  overflow: visible;
}

/* ---- Two-column layout ---- */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
  overflow: visible;
}

/* ---- Main content column ---- */
.post-main {
  min-width: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}
.post-main .entry-content h2 {
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
  margin: 40px 0 16px;
  scroll-margin-top: 100px;
}
.post-main .entry-content h3 {
  color: var(--primary-strong);
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
  scroll-margin-top: 100px;
}
.post-main .entry-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
}
.post-main .entry-content ul li {
  margin-bottom: 8px;
}
.post-main .entry-content p {
  margin-bottom: 20px;
}
.post-main .entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 28px 0;
}
.post-featured-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.cta-block {
  display: grid;
  /* grid-template-columns: auto minmax(0, 1fr) auto; */
  grid-auto-flow: column;
  align-items: center;
  gap: 20px;
  background: #f6fbfd;
  color: #24343a;
  padding: 26px;
  border: 1px solid rgba(23, 129, 153, .16);
  border-left: 5px solid var(--primary);
  border-radius: 12px;
  text-align: left;
  margin: 40px 0;
  box-shadow: 0 14px 34px rgba(19, 71, 84, .08);
}
.cta-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(23, 129, 153, .24);
}
.cta-block-content {
  min-width: 0;
}
.cta-block-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
}
.cta-block p {
  margin: 0;
  color: #34454b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.cta-block-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.cta-block-button:hover,
.cta-block-button:focus {
  color: #fff;
  /* background: var(--primary-strong); */
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(23, 129, 153, .2);
}

/* Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid #eee;
  margin-top: 20px;
}
.post-navigation a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color .25s;
}
.post-navigation a:hover {
  color: var(--primary-strong);
}

/* ==============================
   SIDEBAR
   ============================== */
.post-sidebar {
  align-self: stretch;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Generic Widget Shell */
.sidebar-widget {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
  padding: 24px;
  border-top: 4px solid var(--primary);
}
.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.widget-title svg {
  flex-shrink: 0;
  color: var(--primary-strong);
}

/* ---- Search ---- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.blog-search-form {
  margin: 0;
}
.blog-search-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 44px;
  border: 1px solid #e4e8eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.blog-search-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 0,90,100), .1);
}
.blog-search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: #333;
  font-size: 14px;
  background: transparent;
}
.blog-search-field input::placeholder {
  color: #8b969c;
}
.blog-search-field button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  border: 0;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  transition: background .2s;
}
.blog-search-field button:hover,
.blog-search-field button:focus {
  background: var(--primary-strong);
}
.blog-search-field button svg {
  flex-shrink: 0;
}

/* ---- Table of Contents ---- */
/* .toc-widget {} */
.toc-empty {
  color: #999;
  font-size: 13px;
  margin: 0;
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc-counter;
}
.toc-list li.toc-h2 {
  counter-increment: toc-counter;
  margin-bottom: 4px;
}
.toc-list li.toc-h2 > a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 17px;
  /* font-weight: 600; */
  color: #333;
  text-decoration: none;
  line-height: 1.45;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.toc-list li.toc-h2 > a::before {
  content: counter(toc-counter) ".";
  color: var(--primary);
  font-weight: 700;
  min-width: 20px;
  flex-shrink: 0;
  font-size: 13px;
}
.toc-list li.toc-h2 > a:hover,
.toc-list li.toc-h2 > a.toc-active {
  background: rgba(var(--primary-rgb, 0,90,100), .08);
  color: var(--primary);
}
.toc-sub {
  list-style: none;
  margin: 2px 0 4px 20px;
  padding: 0;
}
.toc-sub li.toc-h3 a {
  display: block;
  font-size: 12.5px;
  color: #666;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 4px;
  transition: background .2s, color .2s;
  line-height: 1.4;
}
.toc-sub li.toc-h3 a::before {
  content: "– ";
  color: var(--primary-strong);
}
.toc-sub li.toc-h3 a:hover,
.toc-sub li.toc-h3 a.toc-active {
  background: rgba(var(--primary-rgb, 0,90,100), .06);
  color: var(--primary);
}

/* ---- Categories ---- */

.services-item:hover {
    background: rgba(23, 129, 153, 0.05);
    color: var(--primary);
    padding-left: 4px;
}
.categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.categories-list li {
  border-bottom: 1px solid #f4f4f4;
}
.categories-list li:last-child {
  border-bottom: none;
}
.categories-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 4px;
  text-decoration: none;
  transition: color .2s;
}
.categories-list li a:hover .cat-name {
  color: var(--primary);
}
.cat-name {
  font-size: 13.5px;
  font-weight: 500;
  color: #444;
  transition: color .2s;
}
.cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  background: #f0f4f8;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
}

/* ---- Featured Posts ---- */
.featured-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fp-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  transition: opacity .25s;
}
.fp-item:hover {
  opacity: .85;
}
.fp-thumb {
  width: 70px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.fp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.fp-item:hover .fp-thumb img {
  transform: scale(1.07);
}
.fp-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.fp-title {
  font-size: 13px;
  font-weight: 600;
  color: #2c2c2c;
  line-height: 1.4;
  display: -webkit-box;
  /* -webkit-line-clamp: 3; */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fp-date {
  font-size: 11.5px;
  color: #999;
}

/* ---- Contact / Social / Support Widgets ---- */
.sidebar-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-contact-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #333;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  word-break: break-word;
  transition: color .2s;
}
.sidebar-contact-list a:hover {
  color: var(--primary);
}
.sidebar-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--primary);
  background: rgba(var(--primary-rgb, 0,90,100), .08);
  flex-shrink: 0;
}
.sidebar-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sidebar-social-links a,
.sidebar-social-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid #e4e8eb;
  border-radius: 8px;
  color: #333;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.sidebar-social-links span {
  color: #777;
  background: #f8f9fa;
}
.sidebar-social-links a:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb, 0,90,100), .08);
  color: var(--primary);
}
.sidebar-cta-widget {
  position: -webkit-sticky;
  position: sticky;
  top: 110px;
  z-index: 4;
  overflow: hidden;
  border-top: 0;
  /* background: linear-gradient(135deg, var(--primary), var(--primary-strong)); */
  color: var(--ink);
}

/* Related Posts */
.related-posts {
  padding: 60px 0;
  background: #f8f9fa;
}
.related-posts .section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.related-posts .section-heading h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .featured-post {
    margin: -30px 20px 40px;
  }
  .featured-post .featured-thumb {
    width: 255px;
    min-width: 255px;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .blog-section .section-title {
    text-align: center;
  }
  /* Sidebar: collapse to narrower column */
  .post-layout {
    grid-template-columns: 1fr 290px;
    gap: 32px;
  }
}
@media (max-width: 900px) {
  /* Stack sidebar below content on tablet/mobile */
  .blog-hero{

    height: auto;
}

  .single-post-hero {
    padding: 110px 32px;
  }
  .single-post-hero .row {
    margin-right: 0;
    margin-left: 0;
  }
  .single-post-hero .col-8 {
    width: 100%;
  }
  .post-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-sidebar {
    position: static;
    align-self: auto;
    overflow: visible;
  }
  .sidebar-cta-widget {
    position: static;
  }
}
@media (max-width: 767px) {
  .single-post-hero {
    padding: 84px 18px;
  }
  .single-post-content {
    padding: 44px 0 60px;
    overflow-x: hidden;
  }
  .single-post-content > .container {
    width: auto;
    max-width: 100%;
    margin-right: 16px;
    margin-left: 16px;
    padding-right: 0;
    padding-left: 0;
  }
  .blog-hero .hero-title {
    font-size: 28px;
  }
  .featured-post {
    flex-direction: column;
    margin: -20px 16px 30px;
  }
  .featured-post .featured-thumb {
    width: 100%;
    min-width: unset;
    height: 220px;
  }
  .featured-post .featured-body {
    padding: 24px;
  }
  .featured-post .featured-body .entry-title {
    font-size: 20px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .blog-section .section-title {
    font-size: 26px;
    padding-left: 15px;
  }
  .blog-section .section-subtitle {
    padding-left: 20px;
    max-width: 325px;
  }
  .single-post-hero .post-title {
    font-size: 26px;
    padding: 0;
  }
  .cta-block {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .cta-block p,
  .cta-block-button span {
    overflow-wrap: break-word;
  }
  .cta-block-button {
    width: 100%;
  }
  .post-layout,
  .post-main,
  .post-sidebar,
  .sidebar-widget {
    width: 100%;
    min-width: 0;
  }
  .post-main {
    max-width: 100%;
    overflow-x: hidden;
    padding: 0;
  }
  .post-main > *,
  .post-main .entry-content,
  .post-sidebar > * {
    max-width: 100%;
    box-sizing: border-box;
  }
  .post-featured-image {
    margin-bottom: 28px;
  }
  .post-navigation {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .post-navigation a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
