
/* Single continuous white column */
.kw-agent-grid .kw-agent {
  grid-column: 2;
  width: 100%;
  background: #ffffff;
  border-radius: 10px;
  padding: 2.5rem 2.5rem 3rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

/* Small inline agent name inside office closings list */
.kw-office-agent {
  white-space: nowrap;
  font-size: 0.9em;
}

.kw-agent-grid { 
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:1.5rem;
}
.kw-agent-card { 
  border:1px solid #e0e0e0;
  border-radius:16px;
  background:#fff;
  transition:transform .2s, box-shadow .2s;
}
.kw-agent-card:hover { 
  transform:translateY(-3px);
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
}
/* .kw-agent-card h2 {
  color:#b40101; 
} */

/* Hide agent names until properly formatted */
.agent-list-container {
  opacity: 0;
  transition: opacity 0.3s;
}

.agent-list-container.loaded {
  opacity: 1;
}

.kw-agent__contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.kw-agent__contact-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kw-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  text-align: center;
}

.kw-btn-outline {
  background: white;
  border: 2px solid #ddd;
  color: #333;
}

.kw-btn-outline:hover {
  background: #c8102e;
  border-color: #c8102e;
  color: white;
}

.kw-ico {
  font-size: 1.2em;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .kw-agent__contact-grid {
    grid-template-columns: 1fr;
  }
}


.agent-blog-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.page-header {
  margin-bottom: 40px;
}
.page-header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}
.page-header a {
  color: #c8102e;
  text-decoration: none;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}
.blog-post-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.blog-post-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.post-thumbnail {
  width: 96% !important;
  margin: auto;
}
.post-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.post-content {
  padding: 20px;
}
.post-title {
  margin: 0 0 10px;
  font-size: 1.4em;
}
.post-title a {
  color: inherit;
  text-decoration: none;
}
.post-title a:hover {
  color: #c8102e;
}
.post-meta {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 15px;
}
.post-excerpt {
  line-height: 1.6;
  margin-bottom: 15px;
}
.read-more {
  color: #c8102e;
  font-weight: bold;
  text-decoration: none;
}
.read-more:hover {
  text-decoration: underline;
}


/* 1) Make a fixed-ratio box for the thumb */
.kw-agent-blog .post-thumbnail,
.kw-agent-blog .wp-block-post-featured-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;      /* change to 4/3, 3/2, or 1/1 if you prefer */
  overflow: hidden;
  border-radius: 12px;
  background: #f3f5f7;
}

/* 2) Force the image to fill the box (override theme/lazy rules) */
.kw-agent-blog .post-thumbnail > img,
.kw-agent-blog .post-thumbnail > a > img,
.kw-agent-blog .wp-block-post-featured-image img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;        /* <-- kills the “350×1500” skyscraper */
  object-fit: cover !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  content-visibility: visible !important;     /* neuter browser placeholder calc */
  contain-intrinsic-size: auto !important;    /* neuter oversized intrinsic box */
}
