/* ===== EQ-REV: CENTER THE 3-CARD BLOG GRID PERFECTLY ===== */

/* 1) Center the entire blog content area (no sidebars) */
.blog .site-content,
.home.blog .site-content {
  max-width: 1200px;          /* total width for heading + grid */
  margin-left: auto;          /* full center control */
  margin-right: auto;
  padding: 0 20px;            /* even gutters */
  display: block;             /* reset floats/flex if theme overrides */
}

/* Neutralize GeneratePress floats */
.blog .site-content .content-area,
.home.blog .site-content .content-area {
  float: none;
  width: 100%;
  margin: 0 auto;
}

/* If theme wraps content in .grid-container, center that too */
.blog .grid-container,
.home.blog .grid-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 2) Welcome heading block aligned center */
.blog-welcome,
.home.blog .blog-welcome {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  max-width: 1200px;
  margin: 0 auto 30px;
}
.blog-welcome p { margin-top: 8px; color: #555; }

/* 3) GRID: exactly 3 columns on desktop, centered as a group */
.blog .site-main,
.home.blog .site-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  justify-content: center;    /* key: center the columns group */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
}

/* 4) Card styling */
.blog .site-main > article,
.home.blog .site-main > article {
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.blog .site-main > article:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
  border-color: rgba(0,0,0,0.12);
}

/* Featured image */
.blog .post-image img {
  display: block;
  width: 100%;
  height: 208px;
  object-fit: cover;
}

/* Inner content */
.blog .inside-article {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 0;
  background: transparent;
}

/* Title (2 lines removed to show the full topic) */
.blog .entry-title {
  padding: 16px 18px 6px;
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
  display: block;             /* show full title, no clipping */
  overflow: visible;         /* ensure no truncation */
  white-space: normal;       /* allow title to wrap onto multiple lines */
}
.blog .entry-title a { text-decoration: none; }
.blog .entry-title a:hover { opacity: .9; }

/* Hide meta if unwanted */
.blog .entry-meta,
.home.blog .entry-meta { display: none; }

/* Excerpt */
.blog .entry-summary {
  padding: 0 18px;
  color: #4b5563;
  font-size: .96rem;
  line-height: 1.55;
  flex: 1 1 auto;
}
.blog .entry-summary p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read More */
.blog a.read-more {
  align-self: flex-start;
  margin: 12px 18px 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #0ea5e9;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.blog a.read-more:hover {
  background: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(2,132,199,.25);
}

/* 5) Responsive: 2 cols tablet, 1 col mobile */
@media (max-width: 1100px) {
  .blog .site-main,
  .home.blog .site-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 980px;
  }
}
@media (max-width: 640px) {
  .blog .site-main,
  .home.blog .site-main {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 640px;
  }
}
