/* ==========================================================================
   vInnovate Global - Healthcare AI Blog & Article Detail Page Styles
   ========================================================================== */

/* Page Container & Background */
.blog-detail-page {
  background-color: #fafbfe;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 100px 0 40px 0;
}

/* Article Hero Header */
.blog-article-hero {
  position: relative;
  margin-bottom: 40px;
}

.blog-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(116, 68, 253, 0.08);
  border: 1px solid rgba(116, 68, 253, 0.2);
  color: #7444fd;
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
}

.blog-article-title {
  font-size: 37px;
  font-weight: 700;
  color: #000000;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 15px;
}

.blog-article-title .gradient-text {
  background: linear-gradient(135deg, #7444fd 0%, #4f46e5 50%, #384bff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 35px;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: #000000;
  font-weight: 500;
}

.blog-meta-item i {
  color: #7444fd;
}

.blog-meta-author img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #7444fd;
}

/* Share Buttons */
.blog-share-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.blog-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 14px;
}

.blog-share-btn:hover {
  background: #7444fd;
  color: #ffffff;
  border-color: #7444fd;
  transform: translateY(-2px);
}

/* Featured Hero Image / Banner Graphic */
.blog-featured-banner {
  background: linear-gradient(135deg, #000000 0%, #1e1b4b 100%);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  margin-bottom: 45px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-featured-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(116, 68, 253, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-banner-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #a5b4fc;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.blog-banner-heading {
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 14px;
}

.blog-banner-desc {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.6;
  max-width: 750px;
  margin-bottom: 0;
}

/* Sticky Article TOC Sidebar */
.blog-sidebar-sticky {
  position: sticky;
  top: 100px;
  z-index: 10;
}

.blog-sidebar-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  margin-bottom: 24px;
}

.blog-sidebar-title {
  font-size: 18px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-bottom: 4px;
}

.blog-toc-link:hover,
.blog-toc-link.active {
  background: #f5f3ff;
  color: #7444fd;
}

.blog-toc-link i {
  font-size: 11px;
  opacity: 0.5;
  transition: transform 0.25s ease;
}

.blog-toc-link:hover i,
.blog-toc-link.active i {
  opacity: 1;
  transform: translateX(3px);
}

/* Sidebar Callout Card */
.blog-sidebar-callout {
  background: linear-gradient(135deg, #7444fd 0%, #4f46e5 100%);
  border-radius: 20px;
  padding: 24px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(116, 68, 253, 0.25);
}

.blog-sidebar-callout h5 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.blog-sidebar-callout p {
  color: #e0e7ff;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.blog-sidebar-callout .btn-white {
  background: #ffffff;
  color: #4f46e5;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  width: 100%;
  text-align: center;
}

.blog-sidebar-callout .btn-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Main Content Area */
.blog-content-body {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  padding: 45px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.blog-section-block {
  margin-bottom: 15px;
  scroll-margin-top: 120px;
  margin-top: 20px;

}

.blog-section-block:last-child {
  margin-bottom: 0;
}

.blog-section-tag {
  color: #7444fd;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.blog-section-title {
  font-size: 28px;
  font-weight: 800;
  color: #000000;
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: -0.4px;
}

.blog-text-lead {
  font-size: 17.5px;
  line-height: 1.75;
  color: #334155;
  font-weight: 500;
  margin-bottom: 20px;
}

.blog-text-paragraph {
  font-size: 18px;
  font-weight:500;
  line-height: 1.6;
  color: #000000;
}

/* Callout Quote Boxes */
.blog-callout-box {
  background: #f8fafc;
  border-left: 4px solid #7444fd;
  border-radius: 0 16px 16px 0;
  padding: 22px 28px;
  margin: 28px 0;
  position: relative;
}

.blog-callout-box.purple-gradient {
  background: linear-gradient(135deg, rgba(116, 68, 253, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border-left-color: #7444fd;
}

.blog-callout-box.emerald {
  background: #f0fdf4;
  border-left-color: #10b981;
}

.blog-callout-box.amber {
  background: #fffbeb;
  border-left-color: #f59e0b;
}

.blog-callout-text {
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  line-height: 1.6;
  margin: 0;
}

/* Interactive Grid Cards */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.blog-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.blog-item-card:hover {
  background: #ffffff;
  border-color: #7444fd;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(116, 68, 253, 0.08);
}

.blog-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(116, 68, 253, 0.1);
  color: #7444fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.blog-item-card:hover .blog-item-icon {
  background: #7444fd;
  color: #ffffff;
}

.blog-item-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 4px;
}

.blog-item-desc {
  font-size: 16px;
  color: #000000;
  line-height: 1.5;
  margin: 0;
}

/* Horizontal Workflow Process Bar */
.blog-workflow-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  margin: 30px 0;
}

.blog-workflow-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000000;
  margin-bottom: 20px;
  text-align: center;
}

.blog-workflow-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-step-node {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14.5px;
  font-weight: 700;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  flex: 1 1 auto;
  justify-content: center;
  min-width: 140px;
  text-align: center;
}

.blog-step-node.active-ai {
  background: linear-gradient(135deg, #7444fd 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: #7444fd;
  box-shadow: 0 8px 20px rgba(116, 68, 253, 0.25);
}

.blog-step-arrow {
  color: #7444fd;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vertical Bed Availability Cascade */
.blog-cascade-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 28px auto;
}

.blog-cascade-step {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15.5px;
  font-weight: 700;
  color: #000000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: all 0.25s ease;
}

.blog-cascade-step:hover {
  border-color: #7444fd;
  transform: translateX(4px);
  background: #f5f3ff;
}

.blog-cascade-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(116, 68, 253, 0.1);
  color: #7444fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.blog-cascade-arrow {
  text-align: center;
  color: #7444fd;
  font-size: 18px;
  margin: -4px 0;
}

/* ROI Section Grid */
.blog-roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.blog-roi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.blog-roi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #7444fd, #384bff);
}

.blog-roi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}

.blog-roi-num {
  font-size: 32px;
  font-weight: 900;
  color: rgba(116, 68, 253, 0.2);
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: sans-serif;
}

.blog-roi-title {
  font-size: 17px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 8px;
}

.blog-roi-desc {
  font-size: 14px;
  color: #000000;
  line-height: 1.55;
  margin: 0;
}

/* Calculation Formula Boxes */
.blog-formula-box {
  background: linear-gradient(135deg, #000000 0%, #1e1b4b 100%);
  border-radius: 18px;
  padding: 28px;
  color: #ffffff;
  margin: 28px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-formula-tag {
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.blog-formula-code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: monospace, sans-serif;
  font-size: 18px;
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
  word-break: break-word;
}

.blog-formula-desc {
  color: #cbd5e1;
  font-size: 14.5px;
  margin: 0;
  line-height: 1.6;
}

/* Comparison Table Styling */
.blog-comparison-wrapper {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  margin: 30px 0;
}

.blog-comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  text-align: left;
}

.blog-comparison-table th {
  background: #000000;
  color: #ffffff;
  padding: 18px 24px;
  font-size: 15.5px;
  font-weight: 800;
}

.blog-comparison-table th:first-child {
  width: 25%;
}

.blog-comparison-table th:nth-child(2) {
  width: 37.5%;
  background: #000000;
}

.blog-comparison-table th:nth-child(3) {
  width: 37.5%;
  background: #4f46e5;
}

.blog-comparison-table td {
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14.5px;
  color: #334155;
  vertical-align: middle;
}

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

.blog-comparison-table tr:nth-child(even) td {
  background-color: #fafbfe;
}

.blog-comparison-table .feature-name {
  font-weight: 700;
  color: #000000;
}

.blog-comparison-table .badge-manual {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ef4444;
  font-weight: 600;
}

.blog-comparison-table .badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-weight: 700;
}

/* DischargeNova Spotlight Card */
.blog-product-spotlight {
  background: linear-gradient(135deg, #000000 0%, #1e1b4b 100%);
  border-radius: 24px;
  padding: 40px;
  color: #ffffff;
  margin: 45px 0 30px 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(116, 68, 253, 0.3);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.blog-product-spotlight::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(116, 68, 253, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.blog-product-title {
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 14px;
}

.blog-product-desc {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.blog-product-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.blog-product-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: #e0e7ff;
  font-weight: 600;
}

.blog-product-feat-item i {
  color: #38bdf8;
}

.blog-product-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Responsiveness Adjustments */

@media (max-width: 575px) {
  .blog-detail-page {
    padding-top: 90px;
  }
  .blog-article-title {
    font-size: 26px;
  }
  .blog-content-body {
    padding: 20px;
  }
  .blog-featured-banner {
    padding: 24px;
  }
  .blog-product-spotlight {
    padding: 24px;
  }
}

/* =========================================
   LEFT SIDEBAR - STICKY
========================================= */
.blog-sidebar-sticky {
    position: sticky;
    top: 100px;
    z-index: 10;
}


/* =========================================
   RIGHT CONTENT - INDEPENDENT SCROLL
========================================= */
.blog-content-body {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 45px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);

    /* Independent scrolling */
    height: calc(100vh - 120px);
    overflow-y: auto;

    /* Smooth scrolling */
    scroll-behavior: smooth;

    /* Prevent horizontal overflow */
    overflow-x: hidden;
}


/* Custom scrollbar for right content */
.blog-content-body::-webkit-scrollbar {
    width: 7px;
}

.blog-content-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.blog-content-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.blog-content-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
@media (max-width: 991px) {

    .blog-sidebar-sticky {
        position: static;
        margin-bottom: 35px;
    }

    .blog-content-body {
        height: auto;
        max-height: none;
        overflow: visible;
    }
}