/* ===============================
   Blog custom styles - cleaned
   =============================== */

/* ---------- Container ---------- */
.container.blog-wrap {
 /* margin: 40px auto;*/
  padding: 5rem 0 0;
  box-sizing: border-box;
}

blockquote {
    margin: 0 0 1rem;
    /* border: 1px solid; */
    padding: 15px;
    border-left: 5px solid;
    background-color: #ebf2fd8c;
}



/* ================== HERO (single) ================== */
.blog-hero-min {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 36px;
 padding: 20px;
   border-bottom: 1px solid #e9e9e9;
}
.blog-hero-min .hero-left { flex: 1; }
.blog-hero-min .hero-right { width: 480px; flex: 0 0 480px; }

.blog-hero-min .eyebrow {
  font-size: 13px;
  color: #2a7dd5;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.blog-hero-min .hero-title {
  font-size: 34px;
  margin: 6px 0 8px;
  color: #072042;
  font-weight: 700;
  line-height: 1.12;
}
.blog-hero-min .hero-title a {
text-decoration:none;
}
.blog-hero-min .meta-line { color: #6f7a86; font-size: 13px; margin-bottom: 12px; }
.blog-hero-min .hero-desc { color: #4f5b6a; font-size: 15px; margin-bottom: 14px; }

/* hide hero CTA if still present */
.blog-hero-min .hero-cta { display: none !important; }

/* hero image */
.blog-hero-min .hero-right img { width: 100%; height: auto; border-radius: 10px; display: block; }

/* ================== Cards grid (4 posts) ================== */
.cards-grid-min {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 12px;
}

.card-min {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(11, 33, 60, 0.04);
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}
.card-min .thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.card-body { padding: 12px 14px; }
.card-min .title { font-size: 16px; margin: 4px 0 8px; color: #072042; font-weight: 600; }
.card-min .meta { color: #7b8793; font-size: 13px; }
.card-min .title a{text-decoration: none;}

/* ================== Grid + Sidebar layout ================== */

/* The wrapper that contains main column + sidebar */
.grid-with-sidebar {
  display: flex !important;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin-top: 18px;
  box-sizing: border-box;
}

/* main column (cards) ~75% */
.grid-with-sidebar .main-cards-column {
  flex: 0 0 75%;
  max-width: 75%;
  box-sizing: border-box;
}

/* internal cards grid should fill the main column */
.grid-with-sidebar .main-cards-column .cards-grid-min {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  box-sizing: border-box;
}

/* sidebar column ~25% */
.grid-with-sidebar .blog-side-column {
  flex: 0 0 25%;
  max-width: 25%;
  box-sizing: border-box;
  padding-left: 18px;
}

/* Sidebar card + content */
.sidebar-card {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(11,33,60,0.05);
  text-align: center;
}
.sidebar-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 14px;
}
.sidebar-help { text-align: left; }
.sidebar-help h4 { font-size: 16px; margin: 0 0 8px; color: #0b2a47; }
.help-list { list-style: none; padding: 0; margin: 0; }
.help-list li { margin-bottom: 8px; }
.help-list a { color: #0b5aa3; text-decoration: none; font-size: 14px; }
.help-list a:hover { text-decoration: underline; }

/* ================== Responsive: stack on smaller screens ================== */
@media (max-width: 992px) {
  .blog-hero-min { flex-direction: column; }
  .blog-hero-min .hero-right { width: 100%; }

  /* make the wrapper stack instead of flexing */
  .grid-with-sidebar {
    display: block !important;
  }

  .grid-with-sidebar .main-cards-column,
  .grid-with-sidebar .blog-side-column {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    box-sizing: border-box;
  }

  .grid-with-sidebar .main-cards-column .cards-grid-min {
    grid-template-columns: 1fr;
  }

  .blog-side-column { margin-top: 18px; }
}

/* ================== Small screens (extra small) ================== */
@media (max-width: 576px) {
  .container.blog-wrap { padding-left: 12px; padding-right: 12px; }
  .card-min .thumb img { height: 160px; } /* slightly smaller images on very small screens */
}

/* ---------- All Articles box (boxed list of links) ---------- */
.all-articles-box {
  background:#fff;
  border-radius:12px;
  padding:28px;
  box-shadow: 0 14px 30px rgb(11 33 60 / 18%);
  margin: 36px 0;
}

.all-articles-box h3 {
  margin: 0 0 18px;
  font-size:22px;
  color:#0b2a47;
  font-weight:700;
}

/* 3-column list */
.all-articles-box .list-columns {
  columns: 3;
  column-gap: 44px;
  -webkit-columns: 3;
  -moz-columns: 3;
}

.all-articles-box a.article-link {
  display: block;
  font-size: 14px;
  color: #2e3a45;
  margin-bottom: 14px;
  text-decoration: none;
}

.all-articles-box a.article-link:hover {
  color: #0b5aa3;
  text-decoration: underline;
}

/* Pagination container inside the box */
.all-articles-box .pagination { margin-top: 26px; text-align: center; }

/* Style the page numbers */
.all-articles-box .pagination .page-numbers {
  display:inline-block;
  padding:8px 12px;
  margin:0 6px;
  border-radius:6px;
  border:1px solid rgba(11,33,60,0.08);
  color:#253642;
  text-decoration:none;
  min-width:36px;
  text-align:center;
}

.all-articles-box .pagination .page-numbers.current {
  background:#fff;
  border:1px solid rgba(11,33,60,0.12);
  box-shadow: 0 6px 20px rgba(11,33,60,0.06);
  font-weight:700;
}

.all-articles-box .pagination .page-numbers.next,
.all-articles-box .pagination .page-numbers.prev {
  background: #0b84ff;
  color: #fff;
  border-color: #0b84ff;
}

/* Responsive columns */
@media (max-width: 992px) {
  .all-articles-box .list-columns { columns: 2; column-gap: 28px; }
}
@media (max-width: 576px) {
  .all-articles-box .list-columns { columns: 1; }
  .all-articles-box { padding:18px; }
  .blog-hero-min .hero-right {flex: 0;}
}

/* ---------- Categories section ---------- */
.categories-section { margin: 48px 0 70px; }
.categories-title { font-size:28px; margin: 0 0 22px; color:#0b2a47; font-weight:700; }

/* grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* card */
.category-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(11,42,71,0.06);
  box-shadow: 0 6px 18px rgba(11,33,60,0.03);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
  color: inherit;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(11,33,60,0.06);
}

/* icon box */
.category-card .cat-icon { width:56px; height:56px; min-width:56px; border-radius:8px; display:flex; align-items:center; justify-content:center; background: #f7fbff; }
.category-card svg { display:block; }

/* content */
.category-card .cat-content { flex:1; }
.category-card .cat-name { margin:0 0 8px; font-size:16px; color:#072042; font-weight:700; }
.category-card .cat-desc { margin:0; color:#5f6b74; font-size:14px; line-height:1.45; }

/* Responsive */
@media (max-width: 992px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .categories-grid { grid-template-columns: 1fr; }
  .category-card { padding:16px; gap:12px; }
  .category-card .cat-icon { width:48px; height:48px; min-width:48px; }
}
/* Single post layout adjustments (child) */
.single-post-wrap .main-content { padding-right: 24px; box-sizing: border-box; }
.post-sidebar .sticky-sidebar { position: -webkit-sticky; position: sticky; top: 120px; }

/* TOC card */
.toc-card { background:#fff; border-radius:10px; padding:20px; box-shadow:0 10px 20px rgba(11,33,60,0.05); margin-bottom:18px; border:1px solid rgba(11,33,60,0.03); }
.toc-card h4 { margin:0 0 10px; font-size:15px; color:#0b2a47; font-weight:700; }
.toc-card ol { margin:0; padding-left:18px; color:#4f5b6a; font-size:14px; line-height:1.5; }
.toc-card a { color:#0b5aa3; text-decoration:none; }
.toc-card a:hover { text-decoration:underline; }

/* Sidebar banner */
.sidebar-banner-card { background:#fff; border-radius:10px; padding:12px; box-shadow:0 10px 20px rgba(11,33,60,0.05); margin-bottom:18px; border:1px solid rgba(11,33,60,0.03); }
.sidebar-banner-card img { display:block; width:100%; height:auto; border-radius:8px; }

/* Responsive: collapse to single column under 992px */
@media (max-width: 992px) {
  .single-post-wrap .row { display:block !important; }
  .single-post-wrap .main-content, .single-post-wrap .post-sidebar { width:100%; max-width:100%; box-sizing:border-box; padding:0; }
  .post-sidebar .sticky-sidebar { position: static; top: auto; margin-top:18px; }
}

/* ================== SINGLE POST LAYOUT FIX ================== */
.single-post-wrap .row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

/* Main content column */
.single-post-wrap .main-content {
  flex: 0 0 70%;
  max-width: 70%;
  box-sizing: border-box;
}

/* Sidebar column */
.single-post-wrap .post-sidebar {
  flex: 0 0 30%;
  max-width: 30%;
  box-sizing: border-box;
}

/* Sticky sidebar */
.post-sidebar .sticky-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 120px;
}

/* Responsive: stack below 992px */
@media (max-width: 992px) {
  .single-post-wrap .row { display: block; }
  .single-post-wrap .main-content,
  .single-post-wrap .post-sidebar {
    width: 100%;
    max-width: 100%;
    flex: none;
  }
  .post-sidebar .sticky-sidebar { position: static; top: auto; margin-top: 18px; }
}
/* ---------- Sticky TOC: css-only approach ---------- */

/* Make sure the row is not creating a new stacking context or overflow */
.single-post-wrap .row,
.single-post-wrap .container,
.single-post-wrap .main-content,
.single-post-wrap .post-sidebar {
  transform: none !important;   /* remove transforms that break sticky */
  will-change: auto !important;
  overflow: visible !important; /* ensure sticky ancestor can work */
}

/* Ensure the sidebar is aligned to top of the row (so sticky works) */
.single-post-wrap .post-sidebar {
  align-self: flex-start;
  display: block;
}

/* Make the inner sidebar sticky */
.single-post-wrap .sticky-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: calc(120px + env(safe-area-inset-top)); /* 120px offset already used */
  z-index: 8;
}

/* If WP admin bar is present (logged-in), reduce top so it won't be hidden */
.admin-bar .single-post-wrap .sticky-sidebar {
  top: calc(160px + env(safe-area-inset-top)); /* adjust if needed */
}

/* Limit sidebar width so it doesn't overflow on small containers */
.single-post-wrap .post-sidebar { box-sizing: border-box; }

/* Make the sidebar content scroll inside itself if it's taller than viewport */
.single-post-wrap .sticky-sidebar {
  max-height: calc(100vh - 140px); /* viewport height minus top offset */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* On small screens, disable sticky */
@media (max-width: 992px) {
  .single-post-wrap .post-sidebar, .single-post-wrap .sticky-sidebar {
    position: static !important;
    width: auto !important;
    left: auto !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* ---------- Sticky sidebar refined styles ---------- */
/* Ensure container is positioned ancestor */
.single-post-wrap > .container {
  position: relative;
}

/* base sticky container */
.single-post-wrap .sticky-sidebar {
  box-sizing: border-box;
  will-change: transform, top, left;
  transition: none;
}

/* fixed state - match left/width set by JS */
.single-post-wrap .sticky-sidebar.is-fixed {
  position: fixed !important;
  top: 120px;               /* JS will keep this in sync if needed */
  z-index: 1 !important;
  overflow: auto;           /* allow inner scroll if content taller than viewport */
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 140px); /* leave some breathing room */
  /* hide scrollbar visuals while fixed (Chrome/Webkit + Firefox) */
  scrollbar-width: none;    /* Firefox */
}

/* hide WebKit scrollbar when fixed */
.single-post-wrap .sticky-sidebar.is-fixed::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* pinned (absolute) state inside container when reached bottom */
.single-post-wrap .sticky-sidebar.is-pinned {
  position: absolute !important;
  top: auto !important;     /* JS will set top inline relative to container */
  bottom: 30px;             /* small gap from footer / container bottom */
  left: auto !important;
  width: auto !important;
  max-height: none !important;
  overflow: visible !important;
  z-index: 3;
}

/* ensure sticky doesn't grow wider than its original column on resize */
.single-post-wrap .post-sidebar { box-sizing: border-box; }

/* ---------- Post Tags makeover ---------- */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.post-tags a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: #f0f6ff;   /* soft pill background */
  color: #0b5aa3;              /* brand-ish blue */
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(11, 90, 163, 0.12);
  transition: all 0.2s ease;
}

.post-tags a:hover {
  background-color: #0b5aa3;
  color: #fff;
  border-color: #0b5aa3;
  text-decoration: none;
}

.post-tags a:active {
  background-color: #09447d;
  border-color: #09447d;
}

/* =========================
   Mobile: TOC first + full width content
   ========================= */

/* Target screens <= 992px (tablet/phone) */
@media (max-width: 992px) {

  /* Make the row a flex column and place the sidebar BEFORE the main content
     NOTE: column-reverse shows the second HTML child first; it works because
     your markup has main-content first and post-sidebar second. */
  .single-post-wrap .row {
    display: flex !important;
    flex-direction: column-reverse;  /* sidebar will appear above main content */
    gap: 18px;
    align-items: stretch;
  }

  /* Ensure both main and sidebar take full width */
  
  .single-post-wrap .post-sidebar{
      display:none !important;
  }
  .single-post-wrap .main-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    box-sizing: border-box;
    padding: 0 !important;
  }

  /* Remove extra left padding applied to sidebar on desktop */
  .single-post-wrap .post-sidebar {
    padding-left: 0 !important;
    margin-top: 10px;
  }

  /* Disable sticky behavior on mobile (keeps TOC static and at top of stack) */
  .post-sidebar .sticky-sidebar,
  .single-post-wrap .sticky-sidebar {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    z-index: auto !important;
  }

  /* Make sure hero and featured image are full width */
  .blog-hero-min,
  .blog-hero-min .hero-right,
  .blog-hero-min .hero-left {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Reduce container side padding on small screens for better use of space */
  .container.blog-wrap {
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin: 28px auto !important;
  }

  /* Tweak TOC card and sidebar card spacing to suit mobile vertical layout */
  .toc-card,
  .sidebar-banner-card,
  .sidebar-card {
    margin-bottom: 14px !important;
  }

  /* Optional: increase the tap area of TOC links on mobile */
  .toc-card a {
    display: inline-block;
    padding: 8px 0;
  }
}

.all-articles-box ul {
  list-style-type: circle; /* circle, square, or custom image possible */
  padding-left: 20px;
}

.all-articles-box li {
  margin-bottom: 8px;
}


.sidebar-categories { background:#fff; border-radius:10px; padding:14px; box-shadow:0 10px 20px rgba(11,33,60,0.05); margin-bottom:18px; }
.sidebar-categories .categories-title { margin:0 0 12px; font-size:16px; color:#0b2a47; font-weight:700; }
.sidebar-categories .categories-grid { display:flex; flex-direction:column; gap:10px; }
.sidebar-categories .category-card { display:flex; gap:12px; align-items:flex-start; text-decoration:none; padding:10px; border-radius:10px; transition:all .18s ease; border:1px solid rgba(11,42,71,0.04); background: #fff; }
.sidebar-categories .category-card:hover { transform:translateY(-3px); box-shadow:0 6px 18px rgba(11,33,60,0.06); }
.sidebar-categories .cat-icon { flex:0 0 56px; display:flex; align-items:center; justify-content:center; border-radius:8px; background:rgba(11,42,71,0.03); width:56px; height:56px; }
.sidebar-categories .cat-content { flex:1; min-width:0; }
.sidebar-categories .cat-name { margin:0 0 6px; font-size:14px; color:#0b2a47; font-weight:700; }
.sidebar-categories .cat-desc { margin:0; color:#64727f; font-size:13px; line-height:1.35; }
@media (min-width: 768px) {
  /* If you ever want a 2-column layout in wider sidebars, you can adjust here */
}


article .card-body h2 {
    font-size:22px;
}

.share-icons a {
    border: 1px solid rgba(11, 90, 163, 0.12);
    background-color: #f0f6ff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
}

.share-icons i {
    color: #0b5aa3;
    font-size: 18px;
}

@media (max-width:767px) {
    .site-main article .entry-content img {
        width:100%;
        height:auto;
    }
        .single-post-wrap .main-content {
        padding: 16px !important;
    }
}


.sidebar-categories { background:#fff; border-radius:10px; padding:14px; box-shadow:0 10px 20px rgba(11,33,60,0.05); margin-bottom:18px; }
.sidebar-categories .categories-title { margin:0 0 12px; font-size:16px; color:#0b2a47; font-weight:700; }
.sidebar-categories .categories-grid { display:flex; flex-direction:column; gap:10px; }
.sidebar-categories .category-card { display:flex; gap:12px; align-items:flex-start; text-decoration:none; padding:10px; border-radius:10px; transition:all .18s ease; border:1px solid rgba(11,42,71,0.04); background: #fff; }
.sidebar-categories .category-card:hover { transform:translateY(-3px); box-shadow:0 6px 18px rgba(11,33,60,0.06); }
.sidebar-categories .cat-icon { flex:0 0 56px; display:flex; align-items:center; justify-content:center; border-radius:8px; background:rgba(11,42,71,0.03); width:56px; height:56px; }
.sidebar-categories .cat-content { flex:1; min-width:0; }
.sidebar-categories .cat-name { margin:0 0 6px; font-size:14px; color:#0b2a47; font-weight:700; }
.sidebar-categories .cat-desc { margin:0; color:#64727f; font-size:13px; line-height:1.35; }

@media (max-width: 576px) {
  .container.blog-wrap { padding-left: 12px; padding-right: 12px; }
  .card-min .thumb img { height: 160px; } 
  .container.blog-wrap {padding: 1rem 0 0;
  }
}


@media (max-width: 768px) {
  .single-post-wrap .main-content {
        padding: 18px !important;
    }
}

  
.share-icons a {
      border: 1px solid rgba(11, 90, 163, 0.12);
    background-color: #2dabe5;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-align: center;
    line-height: 42px;
}

.share-icons i {
    color: #fff;
    font-size: 18px;
}

.text-decoration-none {
    text-decoration:none;
}

.categories {
    border:1px solid #e5e5e5;
    padding:20px;
    border-radius:12px;
    text-align: center;
    background: #ffffff9c;
}

/*@media (max-width: 767px) {*/
/*    .site-main article .entry-content img {*/
/*        width: 100%;*/
/*        height: auto;*/
/*    }*/
/*}*/


.toc-sidebar {
  position: sticky;
  top: 10px;
  background: #fff;
  padding: 18px;
  border-radius: 12px;
    flex: 0 0 20%;
  box-shadow: 0 10px 30px rgb(0 0 0 / 11%);
}



.toc-box ol {
  padding-left: 18px;
}

.toc-box li {
  margin-bottom: 12px;
}

.toc-box a {
  text-decoration: none;
  color: #0b5aa3;
  font-size: 14px;
}

.toc-box a:hover {
  color: #ff3b3b;
}

/* ====== MAIN CONTENT ====== */
.main-content {
  flex: 0 0 60%;
}


.entry-meta {
  color: #007aff;
  font-size: 16px;
  margin-bottom: 25px;
}

.entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}


/* ====== RIGHT SIDEBAR ====== */
.right-sidebar {
  flex: 0 0 17%;
   position: sticky;
  top: 10px;
}



.banner-box {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.banner-box img {
  width: 100%;
  border-radius: 10px;
}

.categories-box {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.categories-box h4 {
  margin-bottom: 10px;
}

.categories-box a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

.categories-box a:hover {
  color: #ff3b3b;
}

/* ====== SHARE ====== */
.social-share {
  margin-top: 30px;
}

.share-icons a {
  margin-right: 12px;
  font-size: 18px;
}

.custom-blog ul {
list-style:circle;
}
/* ====== MOBILE ====== */
@media (max-width: 991px) {
  .blog-row {
    flex-direction: column;
  }

 
}




/* ============================================================
   SINGLE POST — Fixed & Redesigned CSS
   Uses original class names from single.php exactly
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600&display=swap');

/* ======================================================
   BASE CONTAINER
   ====================================================== */
.blog-container {
  padding: 0 50px;
  margin-top: 70px;
  margin-bottom: 80px;
}

/* ======================================================
   THREE-COLUMN ROW
   toc-sidebar | main-content | right-sidebar
   ====================================================== */
.blog-row {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 26px;
  align-items: flex-start;
}

/* ======================================================
   LEFT TOC SIDEBAR  (.toc-sidebar)
   ====================================================== */
.toc-sidebar {
  position: sticky;
  top: 100px;
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 18px;
  border: 1px solid #e4eaf2;
  box-shadow: 0 4px 20px rgba(7, 32, 66, 0.07);
  /* remove old flex from original */
  flex: unset;
}

.toc-box h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #2a7dd5;
  margin: 0 0 14px;
}

.toc-box ol {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: toc-c;
}

.toc-box ol li {
  counter-increment: toc-c;
  display: grid;
  grid-template-columns: 22px 1fr;   /* badge column fixed, text takes the rest */
  align-items: start;                /* badge top-aligns with first line, reliably */
  column-gap: 9px;
  margin-bottom: 11px;
  box-sizing: border-box;
}

.toc-box ol li::before {
  content: counter(toc-c);
  width: 22px;
  height: 22px;
  background: #eeb32f;
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.toc-box ol li a {
  font-size: 14px;
  color: #3d4f62;
  text-decoration: none;
  line-height: 1.45;
  padding-top: 2px;   /* nudges text so its cap-height lines up with the circle's center */
  transition: color 0.15s;
}

.toc-box ol li a:hover { color: #1560c0; }

/* Active state — added by JS scroll listener */
.toc-box ol li.toc-active::before {
  background: #080f2c;
  color: #fff;
}
.toc-box ol li.toc-active > a {
  color: #080f2c;
  font-weight: 600;
}

/* ======================================================
   MAIN CONTENT  (.main-content)
   ====================================================== */
.main-content {
  background: #ffffff;
  border-radius: 14px;
  padding: 34px 38px;
  border: 1px solid #e4eaf2;
  box-shadow: 0 4px 20px rgba(7, 32, 66, 0.05);
  min-width: 0;
  /* override any flex from old code */
  flex: unset;
  width: auto;
}

/* Post title */
.blog-row h1 {
  font-size: 32px;
  font-weight: 700;
  color: #072042;
  line-height: 1.25;
  margin: 0 0 14px;
}

/* Meta line */
.entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: #7b8a99;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef1f5;
}

/* Featured image */
.main-content .post-thumbnail img,
.main-content > div > img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* ---- Body typography (.entry-content .custom-blog) ---- */
.entry-content,
.custom-blog {
  font-family: 'DM Sans', sans-serif;
  font-size: 15.5px;
  line-height: 1.82;
  color: #344050;
}

.custom-blog p { margin-bottom: 18px;font-size: 18px; }

/* H2 inside content */
.custom-blog h2 {
  font-size: 21px;
  font-weight: 700;
  color: #072042;
  margin: 32px 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e4eef9;
  line-height: 1.3;
}

/* H3 inside content */
.custom-blog h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a3050;
  margin: 24px 0 8px;
}

/* Lists */
.custom-blog ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.custom-blog ul li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 16px;
  color: #344050;
  line-height: 1.65;
}

.custom-blog ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 7px;
  background: #eeb32f;
  border-radius: 50%;
}

/* Ordered lists */
.custom-blog ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.custom-blog ol li {
  font-size: 15px;
  color: #344050;
  line-height: 1.65;
  margin-bottom: 6px;
  padding-left: 4px;
}

/* Blockquote */
.custom-blog blockquote {
  margin: 22px 0;
    padding:1px 52px 30px;
    /* border-left: 4px solid #2a7dd5; */
    background: #283958;
    border-radius: 20px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.7;
	text-align:center;
}
.custom-blog blockquote h2,
.custom-blog blockquote a {
color:#fff
}

/* Links */
.custom-blog a {
  color: #1560c0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.custom-blog a:hover { color: #072042; }

/* Images inside content */

.custom-blog img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 22px 0;
}

/* Tables */

.custom-blog table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 22px;
}

.custom-blog table th {
  background: #e8f0fb;
  color: #072042;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #d4e4f5;
}

.custom-blog table td {
  padding: 9px 14px;
  border: 1px solid #eef1f5;
  color: #344050;
}

.custom-blog table tr:nth-child(even) td {
  background: #f8fafd;
}

/* ======================================================
   SOCIAL SHARE  (.social-share)
   ====================================================== */
.social-share {
  margin-top: 28px;
  padding: 18px 0 0;
  border-top: 1px solid #eef1f5;
}

.social-share h4 {
  font-size: 13px;
  font-weight: 600;
  color: #0b2a47;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.share-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.share-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
  border: none;
  line-height: 1;
}

.share-icons a:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

/* Individual platform colours */
.share-icons a:nth-child(1) { background: #1877f2; } /* Facebook  */
.share-icons a:nth-child(2) { background: #0a66c2; } /* LinkedIn  */
.share-icons a:nth-child(3) { background: #25d366; } /* WhatsApp  */
.share-icons a:nth-child(4) { background: #229ed9; } /* Telegram  */
.share-icons a:nth-child(5) { background: #e1306c; } /* Instagram */

.share-icons i { color: #fff; font-size: 15px; }

/* ======================================================
   POST TAGS  (.post-tags)
   ====================================================== */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.post-tags a {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  background: #f0f6ff;
  color: #0b5aa3;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(11, 90, 163, 0.14);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.post-tags a:hover {
  background: #0b5aa3;
  color: #fff;
  border-color: #0b5aa3;
}

/* ======================================================
   RIGHT SIDEBAR  (.right-sidebar)
   Fix: sidebar img was outside any wrapper in original PHP.
   The <img> tag sits directly in .blog-row after the row div.
   We target it here AND the .right-sidebar wrapper.
   ====================================================== */
.right-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* The banner image that was broken — now properly styled */
.right-sidebar img,
.blog-row > img {           /* catches the bare <img> in original PHP */
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 20px rgba(7, 32, 66, 0.10);
}

/* Banner box wrapper (if used) */
.banner-box {
  background: #fff;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e4eaf2;
  box-shadow: 0 4px 20px rgba(7, 32, 66, 0.07);
}

.banner-box img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Categories box in sidebar */
.categories-box {
  background: #fff;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #e4eaf2;
  box-shadow: 0 4px 20px rgba(7, 32, 66, 0.07);
}

.categories-box h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #2a7dd5;
  margin: 0 0 12px;
}

.categories-box a {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f3f7;
  text-decoration: none;
  color: #3d4f62;
  font-size: 13.5px;
  transition: color 0.15s;
  gap: 8px;
}

.categories-box a:last-child { border-bottom: none; }
.categories-box a:hover { color: #1560c0; }

/* ======================================================
   RESPONSIVE
   ====================================================== */

/* Tablet — drop right sidebar */
@media (max-width: 1100px) {
  .blog-row {
    grid-template-columns: 210px 1fr;
  }
  .right-sidebar,
  .blog-row > img { display: none; }
}

/* Mobile — single column, hide both sidebars */
@media (max-width: 991px) {
  .blog-row {
    display: block;
  }
  .toc-sidebar,
  .right-sidebar,
  .blog-row > img {
    display: none;
  }
  .main-content {
    padding: 20px 18px;
    border-radius: 10px;
    box-shadow: none;
    border: none;
  }
  .blog-container {
    margin-top: 80px;
    padding: 0 14px;
  }
  
  .custom-blog h2 { font-size: 18px; }
}



@media (max-width: 576px) {
  .main-content { padding: 16px 14px; }
  .entry-title { font-size: 20px; }
  .blog-container { margin-top: 70px; }
}

/* AI Summary Box */

.ai-summary-box{
    margin:30px 0;
    padding:20px 0;
    border-top:1px solid #eee;
    border-bottom:1px solid #eee;
}

.ai-summary-box h4{
    font-size:24px;
    font-weight:700;
    margin-bottom:15px;
    color:#111;
}

.ai-summary-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.ai-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 24px;
    border-radius:50px;
    text-decoration:none;
    color:#fff !important;
    font-weight:600;
    font-size:15px;
    transition:all .3s ease;
}

.ai-btn:hover{
    transform:translateY(-2px);
    color:#fff !important;
}

.chatgpt{
    background:#3858e9;
}

.perplexity{
    background:#7c4dff;
}

.claude{
    background:#dc6038;
}

.gemini{
    background:#4285f4;
}

@media(max-width:768px){

    .ai-summary-buttons{
        gap:10px;
    }

    .ai-btn{
        width:auto;
        padding:10px 18px;
        font-size:14px;
    }

}


.author-hero{
    padding:60px 0;
    background:#f8f9fc;
}

.author-box{
    text-align:center;
    align-items:center;
    gap:40px;
}

.author-image img{
    width:180px;
    height:180px;
    border-radius:50%;
    object-fit:cover;
}

.author-content h1{
    font-size:42px;
    margin-bottom:15px;
}

.author-bio{
    font-size:17px;
    line-height:1.8;
    color:#555;
    max-width:800px;
}

.author-meta{
    margin-top:20px;
    font-weight:600;
}

.author-posts{
    padding:80px 0;
}

.author-post-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    margin-top:40px;
}

.author-post-card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.author-post-card a{
    text-decoration:none;
}

.post-thumb img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.post-content{
    padding:25px;
}

.post-category{
    display:inline-block;
    background:#ede9fe;
    color:#6d28d9;
    padding:6px 14px;
    border-radius:50px;
    font-size:13px;
    font-weight:600;
    margin-bottom:15px;
}

.post-content h3{
    font-size:24px;
    margin-bottom:15px;
}

.post-content p{
    color:#666;
    line-height:1.8;
}

.post-meta{
    margin-top:20px;
    display:flex;
    gap:20px;
    font-size:14px;
    color:#777;
}

@media(max-width:991px){

    .author-box{
        flex-direction:column;
        text-align:center;
    }

    .author-post-grid{
        grid-template-columns:1fr;
    }

}

.authors {
    border: 1px solid #146EF5;
    padding: 5px 15px 5px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    text-decoration: none;
}
/* ======================================================
   STICKY TOC SCROLL HIGHLIGHT (JS helper class)
   ====================================================== */
/* Applied by the inline <script> in single.php */