/* --- BLOG SECTION: final centering + spacing --- */
.locofy-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: -24px -24;
  margin-top: -24px;      /* Reduce top space */
  margin-bottom: -24px; 
}

/* Use flex so parent grids/columns can't throw it off */
.locofy-wrapper .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;     /* centers the row */
  align-items: stretch;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 4px;             /* small gutter on narrow screens */
}

/* Consistent card width */
.locofy-wrapper .card {
  flex: 0 1 360px;             /* target width ~360px, wraps nicely */
  max-width: 100%;
  box-sizing: border-box;
}

/* Align the second row with the first card in the row above. */
.locofy-wrapper .container.virtualisation-news {
  justify-content: flex-start;
  max-width: 1104px;
}
.locofy-wrapper .virtualisation-card figure {
  margin: 0;
}
.locofy-wrapper .virtualisation-card img {
  height: 160px;
  object-fit: contain;
  background: #f5f5f5;
}
.locofy-wrapper .virtualisation-card figcaption {
  padding: 8px 16px 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 16px;
}
.locofy-wrapper .virtualisation-card .text {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}
.locofy-wrapper .virtualisation-card .summary {
  line-height: 22px;
}
.locofy-wrapper .virtualisation-card .read-more {
  margin-top: auto;
  align-self: flex-start;
}
@media (max-width: 1103px) {
  .locofy-wrapper .container.virtualisation-news {
    max-width: 736px;
  }
}
@media (max-width: 735px) {
  .locofy-wrapper .container.virtualisation-news {
    max-width: 368px;
  }
}

.locofy-wrapper .button-wrapper {
  overflow: hidden;
  background: transparent !important;
}

.locofy-wrapper .button-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  height: auto !important;
  box-shadow: none !important;
  border: none !important;
  display: flex !important;
  justify-content: center;
}
        
      
#blog{scroll-margin-top:100px}

/* One continuous grid keeps all five articles aligned on tablets and phones. */
@media (max-width: 1103px) {
  #blog.locofy-wrapper { padding: 40px 20px; margin: 0; box-sizing: border-box; }
  #blog .section { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; max-width: 780px; margin: auto; }
  #blog .section-inner, #blog .button-wrapper { grid-column: 1 / -1; }
  #blog .section-inner { padding: 0; }
  #blog .container, #blog .container.virtualisation-news { display: contents; }
  #blog .card { width: 100%; min-width: 0; max-width: none; margin: 0; border-radius: 8px; }
  #blog .card img { width: 100%; height: auto; aspect-ratio: 1.9; object-fit: cover; }
  #blog .virtualisation-card img { height: auto; aspect-ratio: 1.9; object-fit: contain; }
  #blog figcaption:empty { display: none; }
  #blog .text, #blog .virtualisation-card .text { padding: 18px; display: flex; flex-direction: column; flex: 1; }
  #blog .title { font-size: 17px; line-height: 24px; }
  #blog .summary, #blog .virtualisation-card .summary { font-size: 14px; line-height: 22px; height: auto; overflow: visible; }
  #blog .read-more { margin-top: auto; padding: 8px 0; align-self: flex-start; }
  #blog .button-wrapper { margin-top: 8px !important; }
}
@media (max-width: 599px) {
  #blog.locofy-wrapper { padding: 32px 18px; }
  #blog .section { grid-template-columns: minmax(0,1fr); max-width: 440px; gap: 22px; }
  #blog .ai-data, #blog .date { font-size: 13px; }
  #blog .card:hover { transform: none; }
}

@media(min-width:1104px){#blog .container.blog-bottom-row{max-width:1104px;justify-content:flex-start}}
