/* Eternal Blog Grid (extracted minimal styles)
   Source: https://themes.ad-theme.com/html/eternal/blog.html (style.css -> [4.5 Blog] and layout)
   Scoped for standalone page usage.
*/

/* Container and layout */
.eternal-container { width: 1200px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.eternal-container-full-width { position: relative; }
.clear { clear: both; }
section { padding: 80px 0; }

/* Row and columns */
.row-wm .col-xs-4 { width: calc(33.33333333% - 33.3px); padding: 0; float: left; box-sizing: border-box; }
.container-row { margin-top: 40px; }
.container-row:first-child { margin-top: 0; }
.container-row .col-xs-4:nth-child(1) { margin-right: 33.3px; }
.container-row .col-xs-4:nth-child(2) { margin-right: 16.6px; margin-left: 16.6px; }
.container-row .col-xs-4:nth-child(3) { margin-left: 33.3px; }

/* Blog cards */
.item-blog { margin-bottom: 50px; }
.blog-post-image { position: relative; height: 300px; width: 100%; overflow: hidden; }
.blog-post-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-post-image .blog-category {
  position: absolute; top: 10px; left: 10px; padding: 5px 15px;
  text-transform: uppercase; font-size: 12px; letter-spacing: 2px;
  background: #FFF; color: var(--tc-theme-primary, #8054ff); border-left: 2px solid var(--tc-theme-primary, #8054ff); border-bottom: 2px solid var(--tc-theme-primary, #8054ff);
}
.blog-post-info {
  position: relative; text-align: justify; padding: 25px; margin-top: 50px; background: #FFF;
  border-left: 2px solid var(--tc-theme-primary, #8054ff); border-bottom: 2px solid var(--tc-theme-primary, #8054ff);
}
.blog-post-date {
  font-size: 13px; padding: 0; margin: 0; position: absolute; padding-left: 50px; top: -10px; left: 0; color: #707070;
}
.blog-post-date:after { width: 40px; height: 20px; content: ""; position: absolute; top: 10px; left: 0; border-top: 2px solid var(--tc-theme-primary, #8054ff); }
.blog-post-title { font-size: 20px; letter-spacing: 2px; margin-top: 0; margin-bottom: 15px; }
.blog-post-text { font-size: 14px; margin-bottom: 0; }
.blog-post-info i { margin-left: 10px; }

/* Responsive adjustments */
@media screen and (max-width: 1099px) {
  .eternal-container { width: 100%; }
}
@media screen and (max-width: 800px) {
  .row-wm .col-xs-4 { width: 100%; padding: 20px 10px; margin: 25px auto; float: none; }
  .container-row .col-xs-4:nth-child(1),
  .container-row .col-xs-4:nth-child(2),
  .container-row .col-xs-4:nth-child(3) { margin: 0; }
  .blog-post-info { margin-top: 25px; }
  section { padding: 50px 0; }
}

/* Dark mode support (align with site's data-bs-theme toggle) */
[data-bs-theme="dark"] .blog-post-info {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}
[data-bs-theme="dark"] .blog-post-title,
[data-bs-theme="dark"] .blog-post-title a {
  color: var(--bs-body-color);
}
[data-bs-theme="dark"] .blog-post-text {
  color: var(--bs-body-color);
}
[data-bs-theme="dark"] .blog-post-date {
  color: var(--bs-secondary-color);
}
[data-bs-theme="dark"] .blog-post-image .blog-category {
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-left-color: var(--tc-theme-primary, #8054ff);
  border-bottom-color: var(--tc-theme-primary, #8054ff);
}


