/* Update by AM - 2026-07-06 */
.single-post .page-banner-content h1 {
  max-width: 880px;
}

.single-post .blog-details .back-link,
.single-post .blog-details .blog-title {
  display: none;
}

@media only screen and (min-width: 767px) {
  .single-post .blog-details time{ bottom: 12px; }
}

.single-post .blog-details .blog-meta {
  margin-bottom: 20px;
}
@media only screen and (max-width: 768px) {
  .single-post .blog-details .blog-meta {
    margin-bottom: 2rem;
  }
}

.single-post .img-container .ratio {
  margin-top: 0;
  margin-bottom: 20px;
}

.single-post .table-of-contents {
  background-color: #F9F9F9;
  border-radius: 16px;
  margin-bottom: 40px;
  padding: 20px;
}

.single-post .table-of-contents .h3,
.single-post .table-of-contents-mobile .h3 {
  font-family: var(--bs-font-sans-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: normal;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.single-post .table-of-contents ul {
  border-left: 1px solid #EDEDED;
  padding: 0;
}

.single-post .table-of-contents li {
  list-style: none;
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1rem;
  position: relative;
}

.single-post .table-of-contents li:last-child {
  margin-bottom: 0;
}

.single-post .table-of-contents li a {
  text-decoration: none;
  color: #121f29;
  opacity: .65;
  transition: none;
}

.single-post .table-of-contents li:hover:before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 2px solid #121F29;
}

.single-post .table-of-contents li:hover a {
  font-weight: 500;
  opacity: 1;
}

.single-post .entry-content h2 {
  font-size: 24px;
  line-height: 34px;
  margin-bottom: 1rem;
  scroll-margin-top: 80px;
}

/* Desktop */
.single-post .table-of-contents-mobile {
  display: none;
}

/* Mobile */
@media (max-width: 767px) {
  .single-post .table-of-contents {
    display: none;
  }

  .single-post .table-of-contents-mobile {
    display: block;
    margin-bottom: 2rem;
  }

  .single-post .table-of-contents-mobile select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }

  .single-post .entry-content h2 {
    scroll-margin-top: 60px;
  }
}

/* Blog / CTA block */
.blog-cta {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1rem;
  color: #fff;
}

.blog-cta-bg-image {
  content: '';
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 57%;
  background-image: var(--cta-bg-desktop);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}

.blog-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000 0%, #000 41%, rgba(0, 0, 0, .5) 50%, transparent 66%);
  z-index: 2;
}

.blog-cta-inner {
  position: relative;
  z-index: 3;
}

.blog-cta-text {
  width: 63%;
  font-weight: 700;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.blog-cta-buttons {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  margin-top: 1.5rem;
}

.blog-cta-mobile {
  margin-bottom: 2rem;
}

.blog-cta-mobile .blog-cta-overlay {
  background: linear-gradient(90deg, #000 0%, #000 35%, rgba(0, 0, 0, .5) 56%, transparent 66%);
}

.blog-cta-mobile .blog-cta-bg-image {
  background-image: var(--cta-bg-mobile);
  width: 63%;
}

.blog-details .entry-content p:last-child {
  margin-bottom: 0;
}

/* Blog / Footer Banner */
.blog-footer-banner {
  position: relative;
}

.blog-footer-banner-desktop {
  padding: 80px;
}

.blog-footer-banner-desktop .blog-footer-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000 0%,  rgba(0, 0, 0, .5) 48%, transparent 75%);
  z-index: 2;
}

.blog-footer-banner-desktop .blog-footer-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 20%;
  z-index: 1;
}

.blog-footer-banner-desktop .blog-footer-banner-inner {
  color: #fff;
  position: relative;
  z-index: 3;
}

.blog-footer-banner h2 {
  font-family: var(--bs-font-sans-serif);
  font-size: 26px;
  line-height: 34px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;  
}

.blog-footer-banner-buttons {
  display: flex;
}

.blog-footer-banner-desktop .blog-footer-banner-buttons {
  column-gap: .5rem;
  margin-top: 2rem;
  max-width: 552px;
}

.blog-footer-banner-desktop .blog-footer-banner-buttons > .btn {
  width: 49%;
}

.blog-footer-banner-mobile {
  background-color: #ededed;
  padding: 40px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

.blog-footer-banner-mobile h2 {
  max-width: 270px;
  margin-left: auto;
  margin-right: auto;
}

.blog-footer-banner-mobile .blog-footer-banner-text p {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.blog-footer-banner-mobile .blog-footer-banner-buttons {
  flex-direction: column;
  row-gap: .5rem;
}

.blog-footer-banner-mobile .blog-footer-banner-buttons > .btn {
  font-size: 18px;
  line-height: 1.5;
}

.blog-footer-banner-mobile .blog-footer-banner-image img {
  max-width: min(100%, 480px);
  border-radius: 16px;
}

/* Sidebar sticky CTA */
@media screen and (min-width: 992px) {
  .single-post .blog-details + .col-lg-4 {
    align-self: stretch;
  }

  .single-post .blog-sidebar {
    height: 100%;
  }

  .single-post .blog-sidebar > aside {
    height: 100%;
  }

  .single-post .blog-sidebar #block-4 {
    position: sticky;
    top: 100px;
  }

  .single-post #page {
    overflow: initial;
  }
}

/* Ninja forms */
.single-post .form-contact-us {
  background: #ededed;
  padding: 16px;
  border-radius: 16px;
}

.single-post .form-contact-us .nf-form-fields-required {
  display: none;
}

.single-post .blog-sidebar h2 {
  font-size: 18px;
  line-height: 26px;
  letter-spacing: normal;
  margin-bottom: 0;
}

.single-post .widget_ninja_forms_widget .nf-field-container {
  margin-bottom: 0 !important;
}

.form-contact-us nf-rows-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-contact-us nf-rows-wrap .nf-row:nth-child(n+3) {
  grid-column: 1 / -1;
}

.form-contact-us .nf-form-content .nf-field-container #nf-field-9-wrap .nf-field-element .ninja-forms-field {
  background-color: var(--bs-yellow);
  border-color: var(--bs-yellow);
  color: #fff !important;
  height: 51px;
  border-radius: 6px;
}

.form-contact-us .nf-form-content .nf-field-container #nf-field-9-wrap .nf-field-element .ninja-forms-field:hover {
  background-color: #ddbb56;
  border-color: #ddbb56;
}

/* Layout */
@media (min-width: 1400px) {
  .single-post .container {
    max-width: 1280px;
  }
}

/* CSS for the 3x2 Grid Layout */
.single-post .popular-posts {
  padding: 40px 16px 80px;
}

.single-post .popular-posts h3 {
  font-family: var(--bs-font-sans-serif);
  font-size: 24px;
  letter-spacing: 0;
  margin-bottom: 40px;
}

.single-post .popular-posts h4 {
  font-family: var(--bs-font-sans-serif);
  letter-spacing: 0;
  margin-bottom: 0;
}

.single-post .popular-posts .wpp-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 2 columns */
  gap: 20px; /* Space between grid items */
  padding: 0;
}

/* Individual Card Setup */
.single-post .popular-posts .wpp-card {
  display: flex; /* 2-column flexbox inside the card */
  gap: 15px; /* Space between thumbnail and content */
}

/* Left Column: Thumbnail */
.single-post .popular-posts .wpp-left {
  flex: 0 0 180px; /* Locked width for thumbnail */
}

.single-post .popular-posts .wpp-left img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

/* Right Column: Title & Link */
.single-post .popular-posts .wpp-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  flex: 1; /* Fills remaining card space */
}

.single-post .popular-posts .wpp-title > a {
  color: #000;
  font-family: Poppins;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  text-transform: uppercase;
  text-decoration: none;
}

.single-post .popular-posts .wpp-read-more {
  font-family: Poppins;
  font-weight: 600;
  font-size: 12.8px;
  line-height: 20.48px;
  color: #0063AD;
  text-decoration: none;
}

.single-post .popular-posts .wpp-read-more:hover {
  text-decoration: underline;
}

/* Responsive fix for small mobile screens */
@media (max-width: 1240px) {
  .single-post .popular-posts .wpp-left {
    flex: 0 0 160px; /* Locked width for thumbnail */
  }

  .single-post .popular-posts .wpp-list {
    grid-template-columns: 1fr 1fr; /* Drop to 2 column on mobile */
  }
}

@media (max-width: 989px) {
  .single-post .popular-posts .wpp-list {
    grid-template-columns: 1fr; /* Drop to 1 column on mobile */
  }

  .single-post .popular-posts .wpp-left {
    flex: 0 0 120px; /* Locked width for thumbnail */
  }
}

@media (max-width: 767px) {
  .single-post .popular-posts {
    padding: 40px 0 60px;
  }

  .single-post .popular-posts h3 {
    margin-bottom: 20px;
  }

  .single-post .popular-posts .wpp-title > a {
    font-size: 13px;
    line-height: 18px;
  }

  .single-post .page-banner_new {
    min-height: auto;
    padding-bottom: 60px;
  }
}

.single-post #primary {
  padding: 40px 0 80px;
}

@media only screen and (max-width: 767px) {
  .single-post #primary {
    padding-bottom: 60px;
  }
}


.footer-fixed-bar {
  background-color: #1b2c3a;
}

.footer-fixed-bar .btn {
  font-size: 14px;
}

@media (min-width: 768px) {
  .footer-fixed-bar {
    text-align: center;
  }

  .footer-fixed-bar .btn {
    font-size: 16px;
    width: auto !important;
  }
}

.single-post .qlwapp__container.qlwapp__container--bottom-left, .single-post .qlwapp__container.qlwapp__container--bottom-right {
  bottom: 72px;
}