.custom-blog-container, .custom-post-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 20px;
}

.custom-blog-button {
  background-color: #0072CE;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

.custom-blog-button:hover {
  background-color: #005a9e;
  color: #fff;
}

.custom-blog-container .filter-form {
  display: flex;
  gap: 20px;
  background: transparent;
  padding: unset;
  flex-grow: 1;
}
.custom-blog-container .filter-form .select-wrapper, .search-wrapper {
  flex-grow: .5;
}
.custom-blog-container .filter-form input[type=search], .filter-form select {
  border: 3px solid #F0F0F0!important;
  border-radius: 5px;
  padding: 10px;
  width: 100%;
  height: 100%;
  font-size: 14px;
}
.custom-blog-breadcrumbs {
  margin-bottom: 20px;
  font-size: 14px;
}
h1.blog-heading {
  text-align: center;
  font-weight: 600!important;
  font-size: 60px;
  line-height: 1em;
}
.custom-blog-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 950px;
  margin: 0 auto;
  padding-bottom: 50px;
}
.filter-controls {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-grow: 1;
}

.filter-controls .reset-link {
  color: #003087;
  font-weight: bold;
  font-size: 14px;
}
.filter-form {
  display: flex;
  gap: 10px;
}
.filter-form select, .filter-form input[type="search"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.search-wrapper, .select-wrapper {
  position: relative;
}

.select-wrapper {
  display: inline-block;
  vertical-align: middle;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  cursor: pointer; 
}

.select-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-25%);
  width: .8em;
  height: .8em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10' fill='none'%3E%3Cpath d='M1 1.5L8 8.5L15 1.5' stroke='%230057b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.search-wrapper button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 5px !important;
}
.search-wrapper svg {
  width: 20px;
  height: 20px;
  fill: #0057b8;
}

.custom-blog-post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 15px;
  row-gap: 30px;
  margin-bottom: 40px;
}
.custom-blog-post-card {
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  min-height: 350px;
}

.custom-blog-post-card:hover{
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}

.card-image-link img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.card-content {
  padding: 30px;
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-date {
  font-size: 12px;
  color: #003087;
  margin: 0 0 10px;
  text-transform: uppercase;
  font-family: 'roboto';
  margin-top: -5px !important;
  margin-bottom: 5px!important;
}
.card-title {
  font-family: 'acumin-pro'!important;
  font-size: 18px;
  font-weight: bold!important;
  margin: 0 0 15px;
}
.card-content .card-title a {
  color: #404040 !important;
  text-decoration: none; 
  font-weight: bold!important;
}
.card-learn-more {
  color: #0057B8 !important;
  text-decoration: none;
  font-size: 16px;
  margin-top: auto;
}
.card-learn-more span {
  display: inline-block;
  transition: transform 0.1s ease-in-out;
}

.card-learn-more:hover {
  font-weight: bold;
}

.card-learn-more:hover span {
  transform: translateX(5px);
}

.custom-blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.page-link {
  color: #0072CE;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.page-link.active, .page-link:hover {
  background-color: #0072CE;
  color: white;
  border-color: #0072CE;
}

.custom-post-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.custom-post-main-content {
  flex: 2;
  min-width: 0;
}
.custom-post-sidebar {
  flex: 1;
  /*   position: sticky; */
  top: 160px;
}
.post-featured-image img {
  border-radius: 0px;
  margin-bottom: 30px;
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  object-position: center;
}
.post-title {
  margin-bottom: 15px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #666;
  border-bottom: 1px solid #E2E2E2;
  border-top: 1px solid #E2E2E2;
  padding-bottom: 10px;
  padding-top: 10px;
  margin-bottom: 30px;
  margin-top: 30px;
}
.post-meta a {
  color: #0072CE;
  text-decoration: none;
}
.post-sharing {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}
.post-body {
  line-height: 1.6;
}
.post-body h2, .post-body h3 {
  margin-top: 1.5em;
}

.sidebar-widget {
  border: 2px solid #F0F0F0;
  padding: 30px 25px;
  margin-bottom: 30px;
  border-radius: 15px;
}
.sidebar-widget.latest-success-story {
  border: 2px solid #F0F0F0;
  padding: 30px 25px;
  margin-bottom: 30px;
  border-radius: 0px;
  border-bottom-left-radius: 50px;
  padding-top: 20px;
}
.sidebar-widget .widget-title {
  margin-top: 0;
  margin-bottom: 0px!important;
  padding-bottom: 5px;
}
.widget-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.widget-list li {
  padding: 8px 0;
}
.widget-list a {
  text-decoration: none;
  color: #333;
}
.widget-list a:hover {
  color: #0072CE;
}
.view-all-button {
  width: 100%;
  text-align: center;
}
.success-story-card img {
  width: 100%;
  border-radius: 0px;
  margin: 10px 0px;
}
}
.success-story-card h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
}
.success-story-card h4 a {
  color: #333;
  text-decoration: none;
}
.success-story-card .read-more-button {
  width: 100%;
  text-align: center;
}

@media (max-width: 992px) {
  .custom-post-container {
    flex-direction: column;
  }
  .custom-post-sidebar {
    width: 100%;
    position: static;
  }
  h1.blog-heading {
    font-size: 48px;
  }
  .custom-blog-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .custom-blog-listing-title, .post-title { 
    font-size: 32px;
  }
  .custom-blog-filters, .filter-controls {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .custom-blog-post-card {
    min-height: unset;
  }
  .custom-blog-post-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 419px) {
  .custom-blog-container .filter-form {
    flex-direction: column;
  }
}

@media screen and (min-width: 993px) {
  .hs-blog-listing .dnd-section:has(.focus_module_breadcrumb) {
    padding-top: 150px;
  }
  .custom-post-container {
    padding-top: 75px;
  }
  .post-featured-image img {
    object-fit: cover;
  }
}

@media screen and (max-width: 992px) {
  .hs-blog-listing .dnd-section:has(.focus_module_breadcrumb) {
    padding-top: 58px!important;
  }
  .custom-post-container {
    padding-top: 75px!important;
  }
}

/* @media screen and (min-width: 768px) {
.custom-blog-container .filter-form input[type=search], .filter-form select {
width: 300px;
}
}
*/
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.form-inner h3 {
  margin-bottom: 0px!important;
  padding-bottom: 0px!important;
  background: transparent!important;
}

.form-inner .hs_email.hs-email.hs-fieldtype-text.field.hs-form-field,
.form-inner .hs_phone.hs-phone.hs-fieldtype-phonenumber.field.hs-form-field,
.form-inner .hs_company.hs-company.hs-fieldtype-text.field.hs-form-field,
.form-inner .hs_firstname.hs-firstname.hs-fieldtype-text.field.hs-form-field,
.form-inner .hs_lastname.hs-lastname.hs-fieldtype-text.field.hs-form-field {
  margin-bottom: -10px!important;
}

.form-inner .hs_recaptcha.hs-recaptcha.field.hs-form-field {
  display: none;
}

.form-inner .form-columns-1 input,
.form-inner textarea,
.form-inner form.hs-form-7fc79b85-d638-4c8b-b021-1eae9e08e19f_92bd8d83-b095-4fbb-8757-0fbb8d0a5b7b:not(.hs-video-form) .form-columns-2 .hs-form-field .hs-input,
.form-inner form.hs-form-7fc79b85-d638-4c8b-b021-1eae9e08e19f_92bd8d83-b095-4fbb-8757-0fbb8d0a5b7b:not(.hs-video-form) .form-columns-3 .hs-form-field .hs-input {
  width: 100%!important;
}

.form-inner form {
  background: transparent;
  padding-top: 0px;
}

div#blog-subscribe {
  max-width: 800px;
  margin: 0 auto;
}

div#blog-subscribe h2 {
  padding: 10px 50px;
}

div#blog-subscribe .submitted-message {
  padding: 50px;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px; 
  margin-top: 40px;
}

.blog-pagination .page-link,
.blog-pagination .first-page-link,
.blog-pagination .last-page-link {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 12px;
  border: none;
  text-decoration: none;
  color: #333;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s ease-in-out;
}

.blog-pagination .page-link:hover,
.blog-pagination .first-page-link:hover,
.blog-pagination .last-page-link:hover {
  color: #1b4d7c;
  background-color: unset;
}

.blog-pagination .page-link[style*="font-weight: bold"],
.blog-pagination .page-link.active { 
  color: #1b4d7c; 
  font-weight: bold;
}

.blog-pagination .page-link.single-digit {
  padding: 0 8px; 
}