/* Equal-height blog cards for blog.html without changing design */
/* Stretch items in the grid rows so columns match height */
.blog-layout1 .container > .row,
.blog-layout1 .col-lg-8 > .row {
  align-items: stretch;
}
/* Make the card fill the column height across any 2/3-col grid (col-lg-4/6/etc.) */
.blog-layout1 .col-lg-8 > .row > [class*="col-"] > .post-item,
.blog-layout1 .container > .row > [class*="col-"] > .post-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%; /* fill parent column height without requiring parent flex */
}
/* Press Releases card wrapper (when present on media pages using same layout) */
.blog-layout1 .col-lg-8 > .row > .col-sm-12.col-md-6.media-item[data-category="press"] > .post-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
/* Let the body grow; keep Read More pinned at bottom */
.blog-layout1 .post-item .post-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  /* Base theme uses margin-bottom: -65px to hide the Read More until hover;
    neutralize it so the button is always visible. */
  margin-bottom: 0 !important;
}
.blog-layout1 .post-item .post-body .btn.btn-link {
  margin-top: auto;
}

/* Sidebar search: make input and button equal height */
.blog-layout1 .widget.widget-search .form-search .input-group,
.blog-layout1 .widget.widget-search .widget-form-search .input-group {
  align-items: stretch;
}
.blog-layout1 .widget.widget-search .form-search .form-control,
.blog-layout1 .widget.widget-search .widget-form-search .form-control {
  height: 48px;
}
.blog-layout1 .widget.widget-search .form-search .input-group-append .btn,
.blog-layout1 .widget.widget-search .widget-form-search .btn {
  height: 48px;
  line-height: 48px;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
}

/* Sidebar search button width and border radius (scoped) */
.blog-layout1 .widget.widget-search .input-group>.input-group-append>.btn,
.blog-layout1 .widget.widget-search .input-group>.input-group-append>.input-group-text,
.blog-layout1 .widget.widget-search .input-group>.input-group-prepend:first-child>.btn:not(:first-child),
.blog-layout1 .widget.widget-search .input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),
.blog-layout1 .widget.widget-search .input-group>.input-group-prepend:not(:first-child)>.btn,
.blog-layout1 .widget.widget-search .input-group>.input-group-prepend:not(:first-child)>.input-group-text {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  min-width: 80px;
}

/* Make the Search widget title white */
.blog-layout1 .widget.widget-search .widget-title {
  color: #ffffff;
}

/* Limit blog card hover to image area only (override base full-card hover) */
.blog-layout1 .post-item:hover { border-bottom-color: #dfdfea !important; }
.blog-layout1 .post-item:hover .post-body { transform: none !important; }
.blog-layout1 .post-item:hover .post-desc,
.blog-layout1 .post-item:hover .post-title a,
.blog-layout1 .post-item:hover .post-meta-cat a,
.blog-layout1 .post-item:hover .post-meta-cat a:after { color: inherit !important; }
.blog-layout1 .post-item:hover::after { opacity: 0 !important; visibility: hidden !important; transform: none !important; }
/* stop zoom on full-card hover */
.blog-layout1 .post-item:hover .post-img img { transform: none !important; }
/* apply zoom only when hovering the image */
.blog-layout1 .post-item .post-img:hover img { transform: scale(1.1) rotate(1deg); }

/* Always show the Read More button (base theme sets opacity:0) */
.blog-layout1 .post-item .btn-link {
  opacity: 1 !important;
  color: #205781 !important; /* readable primary color instead of white */
}
.blog-layout1 .post-item .btn-link:hover {
  color: #c41a1b !important; /* match theme hover */
}
