/* ==========================================================================
   AMEYA PEB REFINED INDUSTRIAL FEED & SIDEBAR
   ========================================================================== */

   .blog-index-section {
    background-color: var(--bg-light);
  }
  
  /* --- Header Polish --- */
  .blog-index-section .industrial-badge {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    padding: 4px 14px;
    margin-bottom: 12px;
    clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
  }
  
  /* --- Feed Grid Framework --- */
  .blog-feed-framework {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Enhanced structural separation */
  }
  
  .ameya-blog-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
  }
  
  /* --- Enforced Proportional Image Box --- */
  .blog-image-container {
    width: 100%;
    height: 100%;
    min-height: 250px; /* Establishes a standard base layout size */
    position: relative;
    overflow: hidden;
    background: #1e293b;
  }
  
  .blog-img-link {
    display: block;
    width: 100%;
    height: 100%;
  }
  
  .blog-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }
  
  /* Timestamp Placement Fix */
  .blog-date-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #1e293b;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    padding: 6px 16px;
    letter-spacing: 0.5px;
    border-top-right-radius: 4px;
    z-index: 2;
  }
  .blog-date-badge .date-icon {
    color: var(--primary);
    margin-right: 3px;
  }
  
  /* --- Balanced Card Text Content --- */
  .ameya-blog-content {
    padding: 30px 35px;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: space-between; /* Keeps the reading link pinned cleanly at the bottom */
  }
  
  .tech-spec-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
  }
  
  .spec-tag {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  .spec-indicator {
    width: 5px;
    height: 5px;
    background-color: var(--primary);
    display: inline-block;
  }
  
  /* Content Headings & Anchors styling */
  .blog-row-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  .blog-row-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .blog-row-title a:hover {
    color: var(--primary);
  }
  
  .blog-row-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* --- Blueprint Action Hyperlink --- */
  .read-more-link {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
  }
  .read-more-link .link-arrow {
    color: var(--primary);
    transition: transform 0.2s ease;
  }
  
  /* --- Card Interactive Hover States --- */
  .ameya-blog-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px rgba(30, 41, 59, 0.06);
  }
  .ameya-blog-row:hover .blog-image-container img {
    transform: scale(1.03);
  }
  .ameya-blog-row:hover .read-more-link {
    color: var(--primary);
  }
  .ameya-blog-row:hover .read-more-link .link-arrow {
    transform: translateX(4px);
  }
  
  /* ==========================================================================
     SIDEBAR COMPONENT CLEANUP (Matches image_1baf48.jpg metrics alignment)
     ========================================================================== */
  .industrial-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-top: 3px solid var(--primary); /* Anchors the card nicely */
  }
  
  .sidebar-framework-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
  }
  
  .trending-posts-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .sidebar-post-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e2e8f0;
  }
  .sidebar-post-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .sidebar-img-wrap {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
  }
  .sidebar-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .sidebar-post-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 75px;
    width: 100%;
  }
  
  .post-link-title {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
  }
  .post-link-title:hover {
    color: var(--primary);
  }
  
  .post-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    color: var(--text-light);
    margin-top: auto;
  }
  
  .action-arrow {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  .action-arrow:hover {
    text-decoration: underline;
  }
  
  /* --- Responsive Layout Adjustments --- */
  @media (max-width: 768px) {
    .blog-image-container {
      min-height: 200px;
    }
    .ameya-blog-content {
      padding: 20px;
    }
  }
  /* ==========================================================================
    BLOG DETAIL SYSTEM
   ========================================================================== */

/* --- Breadcrumbs Refinement --- */
.blog-breadcrumb {
    padding: 12px 16px;
    background: #ffffff;
    border-left: 4px solid var(--primary);
    margin-bottom: 35px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
  }
  .blog-breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  .blog-breadcrumb a:hover {
    color: var(--primary);
  }
  .blog-breadcrumb .bc-separator {
    color: #cbd5e1;
    font-weight: bold;
  }
  .blog-breadcrumb .active-crumb {
    color: var(--text-dark);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
  }
  
  /* --- Main Title --- */
  .blog-main-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: left; /* Breaks out of generic centering for professional readability */
  }
  
  /* --- Technical Meta Grid --- */
  .blog-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #cbd5e1;
    background: #ffffff;
    margin-bottom: 30px;
  }
  .meta-slot {
    padding: 12px 20px;
    border-right: 1px solid #cbd5e1;
    display: flex;
    flex-direction: column;
  }
  .meta-slot:last-child {
    border-right: none;
  }
  .meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
  }
  .meta-value {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-top: 2px;
  }
  
  /* --- Heavy Machinery Cover Frame --- */
  .blog-cover-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid #94a3b8;
    padding: 8px;
    background: #fff;
  }
  .blog-cover-frame img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
  }
  /* Structural Blueprint Corner Crosshairs */
  .frame-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary);
  }
  .frame-corner.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
  .frame-corner.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }
  
  /* --- Article Typography Controls --- */
  .article-content-body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
  }
  .article-content-body p {
    margin-bottom: 24px;
  }
  .article-content-body h2, 
  .article-content-body h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 600;
  }
  .article-content-body h2 { font-size: 24px; border-bottom: 2px solid #e2e8f0; padding-bottom: 8px;}
  .article-content-body h3 { font-size: 20px; }
  
  /* --- Industrial Blueprint CTA Panel --- */
  .industrial-cta-panel {
    background: #1e293b; /* Heavy iron/anthracite canvas */
    position: relative;
    padding: 40px;
    margin: 50px 0;
    border-left: 6px solid var(--primary);
    overflow: hidden;
  }
  /* Technical linear stripes backdrop background */
  .cta-grid-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: linear-gradient(45deg, #ffffff 25%, transparent 25%), 
                      linear-gradient(-45deg, #ffffff 25%, transparent 25%);
    background-size: 10px 10px;
  }
  .cta-content { position: relative; z-index: 2; }
  .panel-tag {
    font-family: 'Oswald', sans-serif;
    color: var(--primary);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
  }
  .panel-heading {
    font-family: 'Oswald', sans-serif;
    color: #ffffff;
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .panel-text {
    color: #94a3b8;
    font-size: 15px;
    margin-bottom: 25px;
    max-width: 600px;
  }
  /* Sharp Angular Engineering Button Style */
  .btn-industrial-primary {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 32px;
    text-decoration: none;
    letter-spacing: 1px;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    transition: all 0.3s ease;
  }
  .btn-industrial-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateX(4px);
  }
  
  /* --- Block Module Navigation Framework --- */
  .blog-nav-framework {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #cbd5e1;
    margin-top: 50px;
    border: 1px solid #cbd5e1;
  }
  .nav-block {
    background: #ffffff;
    padding: 24px;
    text-decoration: none;
    transition: all 0.25s ease;
  }
  .nav-block:hover {
    background: #f8fafc;
  }
  .nav-block.next-block { text-align: right; }
  .nav-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 600;
  }
  .nav-title-text {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    text-transform: uppercase;
  }
  .nav-block:hover .nav-title-text {
    color: var(--primary);
  }
  
  /* --- Rigid Sidecar Module Layout --- */
  .industrial-sidebar {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 30px 24px;
    position: sticky;
    top: 30px;
  }
  .sidebar-framework-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
    text-align: left;
  }
  /* Reusing your global heading indicator wire bar */
  .sidebar-framework-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 20px;
    background: var(--primary);
  }
  
  .trending-posts-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .sidebar-post-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px dashed #cbd5e1;
  }
  .sidebar-post-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .sidebar-img-wrap {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
  }
  .sidebar-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .sidebar-post-details {
    display: flex;
    flex-direction: column;
  }
  .post-link-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    text-decoration: none;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .post-link-title:hover { color: var(--primary); }
  .post-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    margin-top: auto;
  }
  .action-arrow {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
  }
  .action-arrow:hover { text-decoration: underline; }
  
  /* --- Responsive Adjustments --- */
  @media (max-width: 992px) {
    .blog-main-title { font-size: 2.1rem; }
    .industrial-sidebar { margin-top: 40px; position: relative; top: 0; }
  }
  @media (max-width: 768px) {
    .blog-meta-grid { grid-template-columns: 1fr; }
    .meta-slot { border-right: none; border-bottom: 1px solid #cbd5e1; }
    .meta-slot:last-child { border-bottom: none; }
    .blog-nav-framework { grid-template-columns: 1fr; }
    .nav-block.next-block { text-align: left; border-top: 1px solid #cbd5e1;}
    .industrial-cta-panel { padding: 25px; }
    .panel-heading { font-size: 20px; }
  }