.sidebar {
  position: sticky;
  top: 110px;
  height: fit-content;
}

.blog-page,
.blog-content-2,
#article-wrapper,
.col-lg-9,
.blog-single-content,
.wrapper {
  overflow: visible !important;
}
.content h1 {
  font-size: 35x;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: #111827;
}

/* Subtitle */
.content .subtitle {
  font-size: 16px;
  color: black;
  margin-bottom: 36px;
}

/* ---------- ARTICLE SECTIONS ---------- */
.content section {
  margin-bottom: 60px;
  scroll-margin-top: 140px; /* offset for fixed header */
}

.content section h2 {
  font-size: 24px;
    font-weight: 700;
    margin-bottom: 21px;
    color: #1f2937;
    position: relative;
    top: 15px;
}

.content p {
  font-size: 18px;
    line-height: 1.75;
    margin-bottom: 20px;
    color: black;
    top: 14px;
    position: relative;
}

/* ---------- BLOCKQUOTE ---------- */
.content blockquote {
  background: #eef2ff;
  border-left: 4px solid #6366f1;
  padding: 18px 22px;
  margin: 28px 0;
  font-style: italic;
  color: #1f2937;
  border-radius: 6px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
  .wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    border-right: none;
    margin-bottom: 30px;
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .content {
    padding: 30px 20px;
  }

  .content h1 {
    font-size: 30px;
  }

  .content section h2 {
    font-size: 22px;
  }
}
 


/* ---------- Wrapper Grid ---------- */
.wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  padding: 20px 0;
}

/* ---------- LEFT CONTENTS SIDEBAR ---------- */

.sidebar {
  position: sticky;
  top: 150px;
}

.sidebar h3 {
  background: #fee8a0;
    color: black;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.sidebar ul {
  padding: 10px;
  background: #f5f7f7;
  border-radius: 6px;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  display: block;
  padding: 10px;
  font-size: 14px;
  background: white;
  border-radius: 5px;
  text-decoration: none;
  color: #374151;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}


.sidebar a.active {
  background: #e6fffa;
  border-left: 4px solid #16a085;
  font-weight: 600;
}
.sidebar ul {
  background: #F6FCFA;
  padding: 10px;
  border-radius: 8px;
  padding-right: 16px;
}

.sidebar a {
  background: white;
  margin-bottom: 8px;
  border-radius: 6px;
  font-size: 13px;
}

/* ---------- MAIN CONTENT ---------- */
.content {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
/* ================= AUTHOR (HORIZONTAL) ================= */
.author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg,#f8fafc,#eef2ff);
  border: 1px solid #e5e7eb;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.author-img {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle,#6366f1,#4338ca);
  border-radius: 50%;
}

.author-text strong {
  font-size: 1rem;
}

.author-text span {
  font-size: 0.9rem;
  color: #4b5563;
}
.toc-container {
  align-self: flex-start;
}
.blog-header-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.date {
  font-size: 13px;
  color: #6b7280;
}

.author-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-mini .author-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #16a085;
}

.blog-image img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 25px;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f3f4f6;
  padding: 12px 16px;
  border-radius: 10px;
  margin: 15px 0;
  border: 1px solid #e5e7eb;
}

.author-card img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info strong {
  font-size: 14px;
  color: #111827;
}

.author-info span {
  display: block;
  font-size: 12px;
  color: #6b7280;
}
/* REMOVE outer white box */
#article-author .blog-single-sidebar {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}


/* HEADER styling (CORRECT SELECTOR) */
#article-author .blog-sidebar-title {
  background: #fee8a0;
    color: black;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* MAIN CONTAINER (grey box like left) */
#other-blog {
  list-style: none;
  padding: 10px !important;
  margin: 0;
  background: #F6FCFA;
  border-radius: 8px;
}

/* REMOVE BULLET COMPLETELY */
#other-blog li {
  list-style: none;
  margin-bottom: 8px;
}

/* CARD STYLE (same as left contents) */
#other-blog li a {
  display: block;
  padding: 10px;
  font-size: 13px;
  background: #ffffff;
  border-radius: 6px;
  color:  #3154B7;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  transition: background 0.2s ease;
}

/* HOVER EFFECT */
#other-blog li a:hover {
  background: #e6fffa;
}
#article-author .blog-single-sidebar {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.challenge-list {
    padding-left: 20px;
    margin-top: 15px;
}

.challenge-list li {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.challenge-list strong {
    color: #1d1d1d;
    font-weight: 600;
}
#challenge ol {
    list-style: decimal !important;
    padding-left: 20px;
    line-height: 1.75;
}

#jile ol {
    list-style: decimal !important;
    padding-left: 20px;
    line-height: 1.75;
}

#jile li {
    margin-bottom: 15px;
    line-height: 1.6;
}

#devsecops ul {
    list-style: disc !important;
    padding-left: 20px;
    line-height: 1.75;
}

#devsecops li {
    margin-bottom: 10px;
}

/* ================= MOBILE FIX ================= */
@media (max-width: 767px) {

/* Make layout single column */
.wrapper {
  display: block !important;
  padding: 0 12px;
}

/* Sidebar moves to top */
.sidebar {
  position: relative;
  top: 0;
  width: 100%;
  margin-bottom: 20px;
}

/* Make sidebar compact */
.sidebar ul {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 10px;
  white-space: nowrap;
}

.sidebar li {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.sidebar a {
  font-size: 12px;
  padding: 8px 10px;
}

/* Content full width */
.content {
  width: 100%;
  padding: 20px 15px;
}

/* Fix text alignment */
.content h1 {
  font-size: 24px;
  line-height: 1.3;
}

.content h2 {
  font-size: 20px;
}

.content p {
  font-size: 15px;
  line-height: 1.6;
}

/* Fix images overflowing */
.content img {
  max-width: 100%;
  height: auto;
}

/* Fix author card wrap */
.author-card {
  flex-direction: row;
  align-items: center;
}

/* Remove unnecessary spacing shifts */
.content p,
.content h2 {
  top: 0;
  position: static;
}
.article-blog1 ol, .article-blog1 ul {
  color: black;
  padding-left: 1em;
}
}
/* ================= MOBILE FIX (FINAL) ================= */
@media (max-width: 767px) {

/* Remove grid layout */
.wrapper {
  display: block;
  padding: 0 12px;
}

/* ✅ Make sidebar FIXED at top */
.sidebar {
  position: fixed;
  top: 60px; /* adjust based on header height */
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  padding: 8px 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Horizontal scrolling tabs */
.sidebar ul {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  white-space: nowrap;
  padding: 0;
  margin: 0;
}

.sidebar li {
  flex: 0 0 auto;
}

.sidebar a {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #f3f4f6;
}

.sidebar a.active {
  background: #16a085;
  color: white;
  border: none;
}

/* ✅ IMPORTANT: Push content DOWN so it does not hide */
.content {
  margin-top: 90px; /* prevents overlap */
  padding: 20px 12px;
  width: 100%;
}

/* Fix headings */
.content h1 {
  font-size: 24px;
  line-height: 1.3;
}

.content h2 {
  font-size: 20px;
}

.content p {
  font-size: 15px;
  line-height: 1.6;
}

/* Prevent overflow */
.content img {
  max-width: 100%;
  height: auto;
}

/* Fix bootstrap columns */
.col-lg-9,
.col-lg-3 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}
}
/* ================= REMOVE WHITE SPACE (MOBILE FIX) ================= */
@media (max-width: 767px) {

/* ✅ Force full width everywhere */
body,
html {
  overflow-x: hidden;
}

.container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* ✅ Wrapper full width */
.wrapper {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* ✅ Bootstrap column fix */
.col-lg-9,
.col-lg-3 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding: 0 !important;
}

/* ✅ Main content FULL WIDTH */
.content {
  width: 100%;
  max-width: 100%;
  padding: 15px;
  margin: 80px 0 0 0; /* space for fixed TOC */
  border-radius: 8px;
  box-shadow: none; /* optional cleaner look */
}

/* ✅ Remove extra spacing */
.content section {
  margin-bottom: 35px;
}

/* ✅ Text fit nicely */
.content h1 {
  font-size: 22px;
  line-height: 1.3;
}

.content h2 {
  font-size: 18px;
}

.content p {
  font-size: 14.5px;
  line-height: 1.6;
}

/* ✅ Image fit properly */
.content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ✅ Remove any accidental margins */
.blog-single-content,
.blog-container {
  margin: 0 !important;
  padding: 0 !important;
}
}
@media (max-width: 767px) {

.author-card {
  padding: 8px 10px;
  gap: 10px;
}

.author-card img {
  width: 36px;
  height: 36px;
}

.author-info strong {
  font-size: 12px;
}

.author-info span {
  font-size: 10.5px;
}


}

@media (max-width: 767px) {

/* ✅ FIXED TOP ELEMENT HEIGHT */
.sidebar {
  position: fixed;
  top: 60px;
  width: 100%;
  z-index: 1000;
}

/* ✅ MOVE BREADCRUMB BELOW SIDEBAR */

  .breadcrumbs {
    position: relative;
    margin-top: 85px;
    padding: 8px 12px;
    width: 107%;
    z-index: 1;
    margin-left: 6px;
}

/* ✅ CONTENT BELOW BREADCRUMB */
.content {
  margin-top: 10px; /* small gap only */
}

}

.content section {
scroll-margin-top: 140px; /* must match your fixed header + TOC */
}
/* ✅ Remove horizontal scrollbar (navigation line) */
.sidebar ul {
overflow-x: auto;
scrollbar-width: none;        /* Firefox */
-ms-overflow-style: none;     /* IE/Edge */
}

.sidebar ul::-webkit-scrollbar {
display: none;                /* Chrome, Safari */
}
