.resource-single-page {
  margin-top: -90px;
  padding: 270px 0 120px;
  position: relative;
  background-image: url("../images/solution-pink-blur.png");
  background-repeat: no-repeat;
  background-position: top center;
  @media (max-width: 1279px) {
    padding: 186px 0 90px;
    margin-top: -72px;
  }
  @media (max-width: 991px) {
    padding-bottom: 80px;
  }
}

.resource-single-page-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 1;
  align-items: flex-start;
  @media (max-width: 991px) {
    gap: 40px;
  }
}

.resource-detail-back-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font: var(--link-semibold);
  color: var(--charcoal);
  transition: color 0.3s ease-in-out;
  cursor: pointer;
}

.resource-detail-back-link:hover,
.resource-detail-back-link:focus {
  color: var(--orange);
}

.resource-detail-back-link svg {
  width: 18px;
  height: 18px;
  path {
    stroke: var(--charcoal);
    transition: stroke 0.3s ease-in-out;
  }
}

.resource-detail-back-link:hover svg path {
  stroke: var(--orange);
}

.resource-detail-left-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 654px;
  width: 100%;
  @media (max-width: 1024px) {
    max-width: 100%;
    gap: 32px;
  }
  @media (max-width: 449px) {
    gap: 24px;
  }
}

.resource-detail-top-content {
  display: flex;
  gap: 120px;
  width: 100%;
  position: relative;
  @media (max-width: 1024px) {
    gap: 40px;
    flex-direction: column;
  }
}

.resource-header h1 {
  color: var(--black);
  font: var(--heading-h4);
  letter-spacing: -1.14px;
  @media (max-width: 991px) {
    letter-spacing: -1.02px;
  }
  @media (max-width: 449px) {
    letter-spacing: -0.84px;
  }
}

.resource-header-image img {
  width: 100%;
  height: auto;
  max-width: 137px;
  margin-bottom: 16px;
  @media (max-width: 1024px) {
    margin-bottom: 24px;
  }
  @media (max-width: 449px) {
    margin-bottom: 16px;
  }
}

.resource-detail-header-top-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--light-stroke);
  @media (max-width: 1024px) {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.ebook-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  @media (max-width: 449px) {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

.author-section {
  display: flex;
  gap: 4px;
}

.author-section p {
  font: var(--body-b3);
  color: var(--orange);
  margin: 0;
  white-space: nowrap;
}

.author-section span {
  font: var(--body-b3);
  color: var(--black);
  margin: 0;
  white-space: nowrap;
}

.author-separator {
  width: 1px;
  height: 16px;
  background-color: var(--light-stroke);
  @media (max-width: 449px) {
    display: none;
  }
}

.resource-content-wrapper {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--light-stroke);
  @media (max-width: 1024px) {
    border-top: 1px solid var(--light-stroke);
    padding: 32px 0;
  }
  @media (max-width: 449px) {
    padding: 24px 0;
  }
}

.resource-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  h6,
  h3,
  h2 {
    font: var(--heading-h6);
    color: var(--black);
    margin: 0;
  }
  p {
    margin: 0;
    font: var(--body-b2);
    color: var(--charcoal);
  }
  ul {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    li {
      font: var(--heading-h8);
      color: var(--black);
      margin: 0;
      list-style: none;
      position: relative;
      display: flex;
      &::before {
        content: "";
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        margin-top: 2px;
        margin-right: 12px;
        background-repeat: no-repeat;
        background-size: contain;
        background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.875 5.5L8.25 16.5L4.125 12.375' stroke='%230e5c44' stroke-width='2.01667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      }
    }
  }
  @media (max-width: 449px) {
    gap: 24px;
  }
}

.resource-detail-right-section {
  max-width: 522px;
  width: 100%;
  max-height: 618px;
  height: 100%;
  position: relative;
  @media (max-width: 1024px) {
    max-width: 100%;
    margin-top: 8px;
    max-height: unset;
  }
}

.resource-detail-right-section-image {
  width: 100%;
  height: auto;
  border-radius: 18px;
  @media (max-width: 1024px) {
    border-radius: 12px;
  }
  @media (max-width: 449px) {
    border-radius: 8px;
  }
}
.resource-thumbnail {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 206px);
  height: calc(100% - 206px);
  @media (max-width: 1024px) {
    width: calc(100% - 240px);
    height: calc(100% - 276px);
  }
  @media (max-width: 449px) {
    width: calc(100% - 140px);
    height: calc(100% - 140px);
  }
}

.resource-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desktop-image-section {
  @media (max-width: 1024px) {
    display: none;
  }
}

.tablet-section {
  display: none;
  @media (max-width: 1024px) {
    display: flex;
  }
}

.right-sticky-section {
  position: sticky;
  top: 120px;
  height: 100%;
  max-width: 522px;
  width: 100%;
  @media (max-width: 1024px) {
    position: unset;
  }
}

.actions {
  margin-top: 32px;
  @media (max-width: 1024px) {
    margin-top: 24px;
  }
}

.actions input {
  padding: 12px 20px !important;
  font: var(--button) !important;
  color: var(--white) !important;
  background: var(--button-gradient) !important;
  border-radius: 12px !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: none !important;
  transition:
    background 0.3s ease-in-out,
    color 0.3s ease-in-out !important;
  cursor: pointer !important;

  @media (max-width: 449px) {
    padding: 10px 16px !important;
    border-radius: 8px !important;
    gap: 4px !important;
  }
}

.input {
  margin-top: 6px;
}

.hs-form-field {
  margin-top: 24px !important;
  max-width: 100% !important;
  @media (max-width: 1024px) {
    margin-top: 20px !important;
  }
  @media (max-width: 550px) {
    width: 100% !important;
  }
  @media (max-width: 449px) {
    margin-top: 16px !important;
  }
}

.legal-consent-container {
  margin-top: 24px !important;
  max-width: 100% !important;
  @media (max-width: 1024px) {
    margin-top: 20px !important;
  }
  @media (max-width: 449px) {
    margin-top: 16px !important;
  }
}

.form-columns-1,
.form-columns-2,
.form-columns-3 {
  max-width: 100% !important;
}

.hs-input {
  width: 100% !important;
  padding: 11px 15px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: var(--white) !important;
  font: var(--body-b3) !important;
  color: var(--black) !important;
  height: unset !important;
  box-shadow: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hs-input::placeholder {
  color: var(--grey) !important;
}

.hs-input:hover {
  border-color: var(--soft-grey) !important;
}

.hs-input:focus {
  outline: none;
  border-color: var(--light-stroke) !important;
}

.hs-input.invalid.error {
  border-color: #d23341 !important;
}

.no-list.hs-error-msgs .inputs-list {
  margin-top: 8px;
  color: #d23341;
}

.form-columns-1 ul,
.form-columns-2 ul,
.form-columns-3 ul {
  margin: 0;
  padding-top: 4px;
  li {
    list-style: none;
    display: flex;
    position: relative;
    label {
      font: var(--body-b4);
      color: #d23341;
      margin: 0;
    }
    &::before {
      content: "";
      width: 14px;
      height: 14px;
      flex-shrink: 0;
      margin-top: 4px;
      margin-right: 4px;
      background-repeat: no-repeat;
      background-size: contain;
      background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='7' cy='9.916' r='0.583' transform='rotate(-180 7 9.916)' fill='%23D23341'/%3E%3Cpath d='M7 8.167V4.084M12.833 7C12.833 10.222 10.221 12.834 7 12.834C3.778 12.834 1.166 10.222 1.166 7C1.166 3.779 3.778 1.167 7 1.167C10.221 1.167 12.833 3.779 12.833 7Z' stroke='%23D23341' stroke-width='1.05' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
  }
}

fieldset.form-columns-2 .input {
  margin-right: 0 !important;
}

fieldset.form-columns-3 .input {
  margin-right: 0 !important;
}

fieldset.form-columns-1 .input {
  margin-right: 0 !important;
}

.form-columns-2,
.form-columns-3 {
  display: flex;
  gap: 16px;
  @media (max-width: 550px) {
    flex-direction: column;
    gap: 0px;
  }
}

.hbspt-form {
  width: 100%;
}

.stat-inner .resources-stat-number {
  font: var(--heading-h4);
  color: var(--forest-green);
  margin: 0 0 6px;
}

.stat-wrapper {
  display: flex;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--light-stroke);
  border-bottom: 1px solid var(--light-stroke);
  margin: 8px 0;
  flex-wrap: wrap;
}

.stat-inner {
  flex: 1;
  min-width: 120px;
}

.stat-inner p {
  font: var(--body-b2);
  color: var(--charcoal);
  margin: 0;
}
