/* news page */
.news-container, .free-resource-container {
  display: flex;
  /* justify-content: space-between; */
  gap: 28px;
  flex-wrap: wrap;
  padding: 30px 0;
}
.news-container .news-item {
  flex: 0 0 31%;
}
.free-resource-container .free-resource-item {
    flex: 0 0 23%;
}
.news-search-container, .free-resource-search-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  align-items: center;
}
#news-search-form, #free-resource-search-form {
  max-width: 350px;
}
body.wp-singular.single img {
  border: unset;
  border-radius: unset;
  width: unset;
}
.news-section-heading h1, .free-resource-section-heading h1 {
  font-size: 40px;
  line-height: 56px;
  font-weight: 700;
  font-family: var(--Montserrat-font);
  color: #2F2F2F;
  position: relative;
}
.news-section-heading h1::after, .free-resource-section-heading h1::after {
  position: absolute;
  content: "";
  width: 100px;
  height: 2px;
  background-color: var(--bg-yellow);
  left: 0;
  bottom: -4px;
}
#news-search-form input, #free-resource-search-form input {
  width: 100%;
  border-radius: 100px;
  font-size: 14px;
  line-height: 20px;
  padding: 10px 16px 10px 46px;
  height: auto;
  background: #ffffff url('../images/seach-icon.svg') no-repeat 14px;
  background-size: 18px;
  border: 1px solid #E2D5E9;
  outline: none;
}
h3.news-title a {
  position: relative;
  padding-bottom: 14px;
}
h3.news-title {
  font-size: 14px;
  line-height: 22px;
  font-family: var(--Montserrat-font);
}
.news-excerpt {
  margin-top: 22px;
}
.news-excerpt p {
  font-size: 14px;
  line-height: 22px;
}
h3.news-title a::after, .cpt-news-title::after, h2.cpt-news-suggested-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100px;
  height: 2px;
  background-color: var(--bg-yellow);
  left: 0;
}
.news-thumb a {
display: inline-block;
  width: 100%;
  height: 194px;
  border-radius: 24px;
  overflow: hidden;
}
.news-thumb a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
body.single .news-thumb a img {
  width: 100%;
}
.news-author-details {
  display: flex;
  gap: 22px;
}
.news-author-details p {
  position: relative;
  font-size: 12px;
  color: #8390A2;
}
.news-author-details p:first-child::before {
  display: none;
}
.news-author-details p.cpt-news-date::before, .news-author-details p.news-publish-date::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #8390A2;
  left: -13px;
  top: 50%;
  transform: translateY(-50%);
}
body.wp-singular.single {
  pointer-events: auto;
  box-shadow: unset;
  user-select: auto;
}
.cpt-news-container {
  max-width: 900px;
  margin: 0 auto;
  width: 97%;
}
.cpt-news-featured-image img {
  border-radius: 24px !important;
}
.cpt-news-meta > p {
  font-size: 14px;
}
h1.cpt-news-title {
  font-size: 24px;
  line-height: 28px;
}
.cpt-news-content p, .cpt-news-content ol li {
  margin-bottom: 20px !important;
}
.cpt-news-content h4, .cpt-news-content h3, .cpt-news-content h5 {
  margin-bottom: 4px;
}
.cpt-news-content h4 {
  font-size: 20px;
  line-height: 28px;
}
.cpt-news-content h5 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
body.wp-singular.single :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--Montserrat-font);
}
.news-suggested-section {
  padding-top: 46px;
}
h2.cpt-news-suggested-heading {
  font-size: 40px;
  line-height: 56px;
}
.news-form-container {
  border-radius: 24px;
}
.news-form-container h2 {
  font-size: 32px;
  line-height: 38px;
  padding-bottom: 10px;
}
.news-form-container h2::after {
  left: 0;
  right: 0;
  margin: 0 auto;
}
.news-item {
  margin-bottom:10px;
  padding-bottom:15px;
}
.free-resource-thumb a img {
    object-fit: cover;
    object-position: center;
}
.free-resource-thumb {
    /* height: 345px; */
    overflow: hidden;
    box-shadow: 12px 12px 0px 0px #5C3B741A;
    border-radius: 0 16px 16px 0;
    margin-bottom: 28px;
}
h3.free-resource-title.news-title a::after {
    display: none;
}
.free-resource-excerpt {
    margin-top: 0;
}
h3.free-resource-title.news-title a {
    padding: 0;
}
h3.free-resource-title.news-title {
    margin: 0;
}
.resource-download-btn {
    border: 1px solid #5C3B74;
    font-size: 16px;
    display: inline-block;
    text-align: center;
    width: 100%;
    line-height: 24px;
    color: #5C3B74;
    background: #ffffff;
    padding: 11px 15px;
    border-radius: 62px;
    margin-top: 20px;
}
.resource-download-btn:hover {
    background: #5C3B74;
    color: #ffffff;
}
.free-resource-container {
    gap: 48px 28px;
} 
.resource-content-box {
    box-shadow: 0px 12px 24px 0px #0000001A;
    margin-top: 60px;
    padding: 48px;
    flex-wrap: nowrap;
}
.free-resource-featured-image {
    max-width: 440px;
    max-height: 550px;
    box-shadow: 12px 12px 0px 0px #5C3B741A;
    border-radius: 0 16px 16px 0;
    overflow: hidden;
}
.free-resource-featured-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}
.free-resource-content {
    padding-left: 48px;
}
.free-resource-download {
    padding: 24px;
    background: #FFF8F1;
}
.free-resource-download h3 {
    font-size: 20px;
    color: #081021;
}

.brevo-input-field {
    display: inline-block;
    width: 47%;
    margin: 6px;
    position:relative;
}
.brevo-input-field label{
    color: #051118;
    font-size: 16px;
    line-height: 24px;
}
.form-resource-text p {
    font-size: 14px;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.6);
}
.brevo-submit-field button {
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
    background-color: var(--bg-yellow);
    border-radius: 90px;
    min-width: 182px;
    padding: 14px;
    color: #ffffff;
    border: 1px solid var(--bg-yellow);
}
.brevo-submit-field button:hover {
    background-color: #FFF8F1;
    color: var(--bg-yellow);
}
.brevo-submit-field {
    margin-top: 8px;
}
.form-resource-text {
    padding: 18px 0;
}
.resource-download-form {
    margin-top: 16px;
}
.resource-download-form .brevo-input-field input {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 8px;
    color: #697074;
    font-size: 16px;
    padding: 16px;
    outline: none;
    min-height: 60px;
}
.resource-download-form .brevo-input-field input:focus {
    outline: none;
    box-shadow: none !important;
}
.free-resource-brevo-error {
    position: absolute;
    bottom: -23px;
    left: 7px;
    font-size: 12px !important;
}
.submit-spinner {
   width: 24px;
   height: 24px;
   border-radius: 50%;
   border: 4px solid;
   border-color: #dbdcef;
   border-right-color: var(--bg-yellow);
   animation: spinner 1s infinite linear;
}
.free-resource-content ul {
  padding: 0 0 0 20px;
  margin: 20px 0;
}
.free-resource-content ul li {
  color: #00000099 !important;
}
.free-resource-content ul li:not(:last-child){
  padding-bottom: 8px;
}
#g-recaptcha-err-message p {
  font-size: 12px !important;
}
.wp-singular a.standard-logo {
  display: inline-block;
}
@keyframes spinner {
   to {
      transform: rotate(1turn);
   }
}

@media only screen and (max-width: 1199px) {
    /* .free-resource-thumb {
        height: 275px;
    } */
    .free-resource-container {
        gap: 35px 23px;
    }
    .free-resource-download {
        padding: 12px;
    }
    .brevo-input-field {
        width: 46%;
        margin: 4px;
    }
    .resource-download-form .brevo-input-field input {
        min-height: auto;
        font-size: 12px;
        padding: 4px 16px;
    }
    .free-resource-content {
      padding-left: 22px;
    }
    .resource-content-box {
        padding: 32px;
    }
    .free-resource-brevo-error, #g-recaptcha-err-message p {
      font-size: 10px !important;
    }
}

@media only screen and (max-width: 1024px) {
    .news-form-container h2, h2.cpt-news-suggested-heading {
        font-size: 25px;
        line-height: 30px;
    }
    .news-section-heading h1, .free-resource-section-heading h1 {
        font-size: 32px;
        line-height: 40px;
    }
    
}

@media only screen and (max-width: 992px) {
    .news-search-container, .free-resource-search-container {
        flex-wrap: wrap;
        gap: 8px;
    }
    .free-resource-container .free-resource-item {
        flex: 0 0 47%;
    }
    .free-resource-container {
        gap: 30px;
    }
    /* .free-resource-thumb {
        height: 315px;
    } */
    .news-container .news-item {
        flex: 0 0 48%;
    }

    .news-search-container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .news-item {
        margin-bottom:16px;
        padding-bottom:8px;
    }
    .resource-content-box {
        margin-top: 30px;
        padding: 22px;
    }
}
@media only screen and (max-width: 810px){
    .resource-content-box {
       flex-wrap: wrap !important;
       justify-content: center;
    }
    .free-resource-featured-image {
        max-width: auto !important;
        max-height: auto !important;
    }
    .free-resource-content {
        padding-left: 0;
    }
    .free-resource-featured-image {
       flex: 0 0 42%;
    }
}
@media only screen and (max-width: 767px) {
    .news-form-container h2, h2.cpt-news-suggested-heading {
        font-size: 20px;
        line-height: 30px;
    }
    .news-container, .free-resource-container {
      padding: 16px 0;
    }
}
@media only screen and (max-width: 568px) {
    .free-resource-container .free-resource-item {
        flex: 0 0 100%;
    }

    .news-container .news-item {
        flex: 0 0 100%;
    }

    .news-single-main {
        padding-top: 32px !important;
    }

    .news-author-details p {
        font-size: 12px;
    }

    .brevo-input-field {
        display: block;
        width: 100%;
        margin: 16px 0;
    }
    .free-resource-featured-image {
       flex: 0 0 65%;
    }

    h1.cpt-news-title {
      font-size: 20px;
      line-height: 26px;
    }
    .cpt-news-content h4 {
      font-size: 18px;
      line-height: 24px;
    }
    .free-resource-download h3 {
      font-size: 18px;
      line-height: 24px;
    }
    
  .free-resource-thumb {
    width: 250px;
    margin-left: auto;
    margin-right: auto;
  }
}