/* -------------------- Hero -------------------- */
.page-listing .hero,.page-template-resources .hero{ background: var(--off-white); padding-top: 24px; padding-bottom: 60px; }
.page-template-page-industry-reports .hero,.page-template-resources .hero{ background: var(--off-white); padding-top: 24px; padding-bottom: 60px; }
.page-template-resources section.hero {
    padding-bottom: 40px;
}
section#videos.resources-section--off-white .resources-section__inner,
section#blogs.resources-section--off-white .resources-section__inner {
    gap: 0;
}
.page-template-resources .resources-section__inner {
    padding: 0 20px;
}
.page-template-resources .cs-card__logo--wordmark img {
    height: 10px;
}
.page-template-resources a.btn.btn--outline-navy{
  padding: 15px 16px;
}
.page-listing .hero__inner,.page-template-resources .hero__inner{
  max-width: 60%;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding-top: 0px;
}
.page-template-page-industry-reports .hero__inner,.page-template-resources .hero__inner{
  max-width: 60%;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding-top: 0px;
}
main {
    width: 100%;
}
.resources-section--off-white .resources-section__inner {
    padding: 0 20px;
    gap: 32px;
    display: flex;
    flex-direction: column;
}
.page-listing .hero__eyebrow,.page-template-resources .hero__eyebrow{ font-size: 16px; line-height:24px;color: var(--navy);margin-bottom:0; }
.page-template-page-industry-reports .hero__eyebrow,.page-template-resources .hero__eyebrow{ font-size: 16px; line-height:24px;color: var(--navy);margin-bottom:0; }
.page-listing .hero__title,.page-template-resources .hero__title{
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 40px;
  line-height: 50px;
  color: var(--navy);
 margin-bottom: 0;
}
.page-template-page-industry-reports .hero__title,.page-template-resources .hero__title{
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 40px;
  line-height: 50px;
  color: var(--navy);
 margin-bottom: 0;
}
.page-listing .hero__desc,.page-template-resources .hero__desc{ font-size: 18px; line-height: 32px; color: var(--navy); margin-top: 0px;max-width: 65%; }
.page-template-page-industry-reports .hero__desc,.page-template-resources .hero__desc{ font-size: 18px; line-height: 32px; color: var(--navy); margin-top: 0px;max-width: 65%; }

/* -------------------- Blog listing -------------------- */
.blog { padding: 40px 0 100px; background: var(--off-white); width:100%;}
.blog__inner { max-width: var(--content-max); margin: 0 auto;padding:0 20px }

.blog__toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grey);
}
.blog__share { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.blog__share span { font-size: 14px; color: var(--navy); }
.blog__social { width: 24px; height: 24px;transition: opacity .15s ease;background-color:#122239;border-radius:50%;text-align: center;justify-content:center;display: flex;align-items: center; }
.blog__social:hover { opacity: 0.8; }

.blog__browse { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end;}
.blog__browse-label { font-weight: 600; font-size: 16px; color: var(--navy); white-space: nowrap; }
.blog__browse-link { font-size: 14px; color: var(--navy); text-decoration: underline; white-space: nowrap; padding: 2px 4px; }
.blog__browse-link:hover { color: var(--teal); }
.blog__browse-sep { color: var(--navy); font-size: 14px; }

/* Masonry grid via CSS multi-column: natural for variable-height WP
   post excerpts, no JS layout library required. */
.blog__grid {
  margin-top: 40px;
  column-count: 3;
  column-gap: 48px;position: relative;
}
@supports (column-count: 3) {
  .post-card, .newsletter-card { break-inside: avoid; }
}
.post-card, .newsletter-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 48px;
}

.post-card__link { display: block; background: var(--white); border-radius: 8px; overflow: hidden; }
.post-card__img { aspect-ratio: 448 / 300; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card__meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--navy); padding: 16px 24px 0; }

.post-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: var(--navy);
  padding: 16px 24px 0;
}

.post-card__body { display: flex; flex-direction: column; gap: 16px; padding: 16px 24px; }
.post-card__author { font-size: 14px; color: var(--navy);line-height:22px; }
.post-card__excerpt { font-size: 16px; line-height: 24px; color: var(--navy);display: -webkit-box;-webkit-line-clamp: 3;-webkit-box-orient: vertical;overflow: hidden; }
.post-card__tags { display: flex; align-items: center; gap: 8px; padding-top: 8px; flex-wrap: wrap; }
.post-card__tag { font-size: 14px; color: var(--navy); text-decoration: underline; }
.post-card__tag-sep { color: var(--navy); font-size: 14px; }

/* Newsletter card (mixed into the grid) */
.newsletter-card {
  background: var(--navy);
  border-radius: 8px;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.newsletter-card__title { font-size: 24px; font-weight: 600; line-height: 34px; color: var(--off-white); }
.newsletter-card__desc { font-size: 16px; line-height: 24px; color: var(--off-white);padding:16px 0 8px 0; }
.newsletter-card__form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--off-white);
  border-radius: 4px;
  padding: 15px;
}
.newsletter-card__form button svg {
    display: none;
}
.newsletter-card__form input { background: none; border: none; color: var(--off-white); font-size: 12px; flex: 1; min-width: 0;outline:0 }
.newsletter-card .tnp.tnp-subscription .tnp-field.tnp-field-button:before,
.newsletter-card__form button:before {
    content: '';
    /* background-image: url("/wp-content/themes/growdhi/assets/images/Vector1.svg"); */
    background-color: #122239;
    -webkit-mask: url("/wp-content/themes/growdhi/assets/images/Vector1.svg") center / contain no-repeat;
    mask: url("/wp-content/themes/growdhi/assets/images/Vector1.svg") center / contain no-repeat;
    width: 8px;
    height: 8px;
    display: block;
    position: absolute;
    z-index: 10;
    background-repeat: no-repeat;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.newsletter-card .tnp.tnp-subscription .tnp-field.tnp-field-email input::placeholder,
.newsletter-card__form input::placeholder { color: rgba(248,248,248,0.7); }
.newsletter-card__form button { flex-shrink: 0; display: flex;    position: relative;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 50%; }

.newsletter-card .tnp.tnp-subscription {
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--off-white);
    border-radius: 4px;
    padding: 16px 15px;
    max-width: none;
    margin: 0;
    position: relative;
}

.newsletter-card .tnp.tnp-subscription .tnp-field.tnp-field-email {
    margin: 0;
    flex: 1;
    width: 100%;
}

.newsletter-card .tnp.tnp-subscription .tnp-field.tnp-field-email label {
    display: none;
}

.newsletter-card .tnp.tnp-subscription .tnp-field.tnp-field-email input {
    background: none;
    border: none;
    color: var(--off-white);
    font-size: 12px;
    flex: 1;
    min-width: 0;
    outline: 0;padding: 0;
}

.newsletter-card .tnp.tnp-subscription .tnp-field.tnp-field-button {
    margin: 0;
    flex-shrink: 0;
    display: flex;
    position: absolute;
    right: 15px;
    top: 50%;
    width: auto !important;
    float: none !important;
    transform: translate(0px, -50%);
}

.newsletter-card .tnp.tnp-subscription .tnp-field.tnp-field-button input.tnp-submit {
    font-size: 0;
    flex-shrink: 0;
    display: flex;
    position: relative;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 50%;cursor: pointer;
}

/* Load more */
.blog__load-more { display: flex; justify-content: center; margin-top: 8px; }
.btn--outline-navy .btn__spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(18,34,57,0.25);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: gd-spin .7s linear infinite;
}
.btn--outline-navy.is-loading .btn__label { opacity: 0.5; }
.btn--outline-navy.is-loading .btn__spinner { display: inline-block; }
.btn--outline-navy[hidden] { display: none; }
@keyframes gd-spin { to { transform: rotate(360deg); } }

@media (max-width: 925px){
  .page-template-resources section.hero{
    padding-bottom: 0;
  }
  .post-card__body,
  .blog__share{
    gap: 8px;
  }
  .blog{
    padding: 0 0 40px;
  }
  .page-listing .hero,.page-template-resources .hero{
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .page-template-page-industry-reports .hero,.page-template-resources .hero{
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .page-listing .hero__inner,.page-template-resources .hero__inner{
    max-width: 100%;margin: 0 auto;
  }
  .page-template-page-industry-reports .hero__inner,.page-template-resources .hero__inner{
    max-width: 100%;margin: 0 auto;
  }
  .blog__grid{
    margin-top: 20px;
  }
  .page-template-resources section.hero{
    gap: 24px;
  }
}
@media (max-width: 768px){
  #blogs.resources-section--off-white .resources-section__inner h2.section-title,
  #videos.resources-section--off-white .resources-section__inner h2.section-title {
      margin-bottom: 0;
  }
  .resources-section--off-white .resources-section__inner h2.section-title{
    margin-bottom: 24px;
  }
  .page-template-resources a.btn.btn--outline-navy {
      padding: 12px 16px;
      font-size: 12px;
      display: inline-flex;
        margin-top: 12px;
  }
  .page-template-resources .hero__desc{
    max-width: 90%;
  }
  .post-card__meta{
      padding: 16px 16px 0;
  }
  .newsletter-card__title{
    font-size: 18px;
    line-height: normal;
  }
  .newsletter-card{
    padding: 34px 24px;
  }
  .post-card__body{
    padding: 16px 16px;
  }
  .post-card__title{
    font-size: 14px;
    line-height: normal;
    padding: 16px 16px 0;
  }
  .newsletter-card__desc,
  .post-card__excerpt,
  .page-listing .hero__desc,
  .page-listing .hero__eyebrow,
  .page-template-page-industry-reports .hero__desc,
  .page-template-page-industry-reports .hero__eyebrow,
  .page-template-resources .hero__desc,
  .page-template-resources .hero__eyebrow{
    font-size: 14px;
    line-height: 22px;
  }

  .blog__browse-label{
    font-size: 14px;
  }
  .page-listing .hero__title,.page-template-resources .hero__title{
    font-size: 28px;
    line-height: 32px;
  }
  .page-template-page-industry-reports .hero__title,.page-template-resources .hero__title{
    font-size: 28px;
    line-height: 32px;
  }
}
