/* =========================================================
   NOVAK EDUCATION
   BLOG POST TEMPLATE
   =========================================================
   
   Load AFTER the original Novak stylesheet.
   
   Layout:
   - Header/title: 1000px
   - Featured image: 1000px
   - Reading column: 860px
   - Body paragraphs: 20px
   - Audio aligned left with article text
   
   ========================================================= */


.novak-blog-post {
  --novak-ocean: #08445a;
  --novak-mint: #B3DDD5;
  --novak-plum: #7C1366;
  --novak-evergreen: #399a82;
  --novak-gold: #FFB012;
  --novak-light: #F2F6F7;
  --novak-text: #333333;
  --novak-muted: #66757b;

  width: 100%;
  margin: 0;
  padding: 0;
  background: #ffffff;
}


/* =========================================================
   ARTICLE HEADER
   ========================================================= */

.novak-blog-post__header {
  width: 100%;
  margin: 0;
  padding: 76px 24px 40px;
  background: #ffffff;
}

.novak-blog-post__header-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}


/* Eyebrow */

.novak-blog-post__eyebrow {
  margin: 0 0 18px;
  padding: 0;

  color: var(--novak-plum);

  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* Title */

.novak-blog-post__title {
  width: 100%;
  max-width: 1000px;

  margin: 0;
  padding: 0;

  color: var(--novak-ocean);

  font-size: clamp(44px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
}


/* =========================================================
   AUTHOR + DATE
   ========================================================= */

.novak-blog-post__meta {
  display: flex;
  align-items: center;
  gap: 14px;

  margin: 28px 0 0;
  padding: 0;
}


/* Author image */

.novak-blog-post__avatar {
  display: block;

  width: 48px;
  height: 48px;

  flex: 0 0 48px;

  margin: 0;
  padding: 0;

  overflow: hidden;
  border-radius: 50%;

  text-decoration: none;
}

.novak-blog-post__avatar img {
  display: block;

  width: 48px !important;
  height: 48px !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0;
  border-radius: 50%;

  object-fit: cover;
}


/* Byline */

.novak-blog-post__byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  margin: 0;
  padding: 0;

  color: var(--novak-muted);

  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.novak-blog-post__by {
  color: var(--novak-muted);
}

.novak-blog-post__author {
  color: var(--novak-plum) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.novak-blog-post__author:hover,
.novak-blog-post__author:focus {
  color: var(--novak-ocean) !important;
  text-decoration: none !important;
}

.novak-blog-post__divider {
  color: #a8b0b3;
}

.novak-blog-post__date {
  color: var(--novak-muted);
}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.novak-blog-post__featured {
  width: calc(100% - 48px);
  max-width: 1000px;

  margin: 0 auto;
  padding: 0;

  overflow: hidden;

  border-radius: 4px;
}

.novak-blog-post__featured-image {
  display: block;

  width: 100% !important;
  height: auto !important;

  max-width: 100% !important;
  max-height: 620px;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: cover;
}


/* =========================================================
   CONTENT WRAPPER
   ========================================================= */

.novak-blog-post__content {
  width: calc(100% - 48px);
  max-width: 860px;

  margin: 0 auto;
  padding: 0 0 100px;
}


/* =========================================================
   AUDIO
   ========================================================= */

.novak-blog-post__audio {
  width: 100%;
  max-width: 650px;

  /*
   * Generous breathing room between the
   * featured image and audio player.
   */
  margin: 64px 0 56px;

  padding: 0;

  text-align: left;
}


/* Keep HubSpot audio module left aligned */

.novak-blog-post__audio > * {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.novak-blog-post__audio .hs_cos_wrapper {
  margin-left: 0 !important;
  margin-right: auto !important;
}


/* =========================================================
   ARTICLE BODY
   ========================================================= */

/*
 * Existing blog content retains its original styles.
 * We control only the overall reading width here.
 */

.novak-blog-post__body {
  width: 100%;
  max-width: 860px;

  margin: 0;
  padding: 0;

  font-size: 20px;
  line-height: 1.7;
}


/*
 * Increase normal article paragraphs to 20px.
 *
 * The > selector is intentional.
 * It targets only paragraphs directly inside the article
 * body rather than paragraphs inside custom callouts,
 * boxes, modules, etc.
 */

.novak-blog-post__body > p {
  font-size: 20px;
  line-height: 1.7;
}


/*
 * Direct lists are part of ordinary article content,
 * so keep them visually consistent with paragraphs.
 *
 * This does NOT target lists nested inside custom
 * article components.
 */

.novak-blog-post__body > ul,
.novak-blog-post__body > ol {
  font-size: 20px;
  line-height: 1.7;
}


/* =========================================================
   LAYOUT SAFETY
   ========================================================= */

/*
 * Neutralize legacy float behavior on our NEW layout
 * containers without touching the content inside the post.
 */

.novak-blog-post,
.novak-blog-post__header,
.novak-blog-post__header-inner,
.novak-blog-post__featured,
.novak-blog-post__content,
.novak-blog-post__audio,
.novak-blog-post__body {
  float: none;
  box-sizing: border-box;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .novak-blog-post__header {
    padding-top: 60px;
    padding-bottom: 36px;
  }

  .novak-blog-post__audio {
    margin-top: 54px;
    margin-bottom: 48px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  /* Header */

  .novak-blog-post__header {
    padding: 48px 20px 30px;
  }


  /* Eyebrow */

  .novak-blog-post__eyebrow {
    margin-bottom: 14px;

    font-size: 12px;
    letter-spacing: 0.11em;
  }


  /* Title */

  .novak-blog-post__title {
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.08;
  }


  /* Author */

  .novak-blog-post__meta {
    gap: 12px;
    margin-top: 22px;
  }

  .novak-blog-post__avatar {
    width: 42px;
    height: 42px;

    flex-basis: 42px;
  }

  .novak-blog-post__avatar img {
    width: 42px !important;
    height: 42px !important;
  }

  .novak-blog-post__byline {
    gap: 6px;
    font-size: 14px;
  }


  /* Featured image */

  .novak-blog-post__featured {
    width: calc(100% - 40px);
  }


  /* Main content */

  .novak-blog-post__content {
    width: calc(100% - 40px);
    padding-bottom: 70px;
  }


  /* Audio */

  .novak-blog-post__audio {
    width: 100%;
    max-width: 100%;

    margin-top: 44px;
    margin-bottom: 42px;
  }


  /* Article */

  .novak-blog-post__body {
    width: 100%;
    max-width: 100%;

    font-size: 18px;
    line-height: 1.7;
  }

  .novak-blog-post__body > p,
  .novak-blog-post__body > ul,
  .novak-blog-post__body > ol {
    font-size: 18px;
    line-height: 1.7;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .novak-blog-post__header {
    padding-top: 38px;
  }

  .novak-blog-post__title {
    font-size: 36px;
  }

  .novak-blog-post__divider {
    display: none;
  }

  .novak-blog-post__byline {
    column-gap: 5px;
  }

}

/* =========================================================
   LATEST INSIGHTS
   ========================================================= */

.novak-latest-insights {
  width: 100%;
  padding: 82px 24px 90px;
  background: #ffffff;
  border-top: 1px solid #dce8e9;
}

.novak-latest-insights__inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}


/* Heading */

.novak-latest-insights__heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;

  margin-bottom: 36px;
}

.novak-latest-insights__eyebrow {
  margin: 0 0 10px;

  color: #7C1366;

  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.novak-latest-insights__heading {
  margin: 0;
  padding: 0;

  color: #08445a;

  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
}


/* Browse all */

.novak-latest-insights__browse {
  color: #7C1366 !important;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.novak-latest-insights__browse:hover,
.novak-latest-insights__browse:focus {
  color: #08445a !important;
}


/* Cards */

.novak-latest-insights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.novak-latest-card {
  min-width: 0;
}


/* Images */

.novak-latest-card__image-link {
  display: block;

  width: 100%;
  aspect-ratio: 16 / 10;

  margin: 0 0 20px;

  overflow: hidden;
  border-radius: 3px;

  background: #F2F6F7;
}

.novak-latest-card__image {
  display: block;

  width: 100% !important;
  height: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: cover;

  transition: transform 0.25s ease;
}

.novak-latest-card__image-link:hover
.novak-latest-card__image {
  transform: scale(1.025);
}


/* Card content */

.novak-latest-card__content {
  margin: 0;
  padding: 0;
}

.novak-latest-card__meta {
  margin: 0 0 9px;

  color: #66757b;

  font-size: 13px;
  line-height: 1.4;
}

.novak-latest-card__title {
  margin: 0 0 14px;
  padding: 0;

  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.novak-latest-card__title a {
  color: #08445a !important;
  text-decoration: none !important;
}

.novak-latest-card__title a:hover,
.novak-latest-card__title a:focus {
  color: #7C1366 !important;
}

.novak-latest-card__read {
  color: #7C1366 !important;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;

  text-decoration: none !important;
}

.novak-latest-card__read:hover,
.novak-latest-card__read:focus {
  color: #08445a !important;
}


/* Mobile browse link hidden on desktop */

.novak-latest-insights__browse-mobile {
  display: none;
}



/* =========================================================
   NEWSLETTER CTA
   ========================================================= */

.novak-newsletter-cta {
  width: 100%;

  padding: 70px 24px;

  background: #08445a;
}

.novak-newsletter-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 70px;

  width: 100%;
  max-width: 1000px;

  margin: 0 auto;
}


/* Newsletter text */

.novak-newsletter-cta__eyebrow {
  margin: 0 0 12px;

  color: #B3DDD5;

  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.novak-newsletter-cta__heading {
  margin: 0 0 15px;
  padding: 0;

  color: #ffffff;

  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
}

.novak-newsletter-cta__text {
  max-width: 470px;

  margin: 0;
  padding: 0;

  color: #ffffff;

  font-size: 17px;
  line-height: 1.6;
}


/* =========================================================
   HUBSPOT NEWSLETTER FORM
   ========================================================= */

.novak-newsletter-cta__form {
  width: 100%;
}


/* Labels */

.novak-newsletter-cta__form label {
  color: #ffffff;
}


/* Inputs */

.novak-newsletter-cta__form input[type="text"],
.novak-newsletter-cta__form input[type="email"],
.novak-newsletter-cta__form input[type="tel"] {
  width: 100%;

  min-height: 50px;

  padding: 12px 15px;

  border: 0;
  border-radius: 2px;

  background: #ffffff;

  color: #333333;

  font-size: 16px;
}


/* Submit */

.novak-newsletter-cta__form input[type="submit"],
.novak-newsletter-cta__form .hs-button {
  min-height: 50px;

  padding: 13px 24px;

  border: 0;
  border-radius: 2px;

  background: #FFB012;

  color: #08445a;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  cursor: pointer;
}

.novak-newsletter-cta__form input[type="submit"]:hover,
.novak-newsletter-cta__form .hs-button:hover {
  opacity: 0.9;
}


/* HubSpot form spacing */

.novak-newsletter-cta__form .hs-form-field {
  margin-bottom: 14px;
}

.novak-newsletter-cta__form .hs-error-msgs {
  margin: 6px 0 0;
}

.novak-newsletter-cta__form .hs-error-msg {
  color: #ffffff;
  font-size: 13px;
}



/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .novak-latest-insights__grid {
    gap: 22px;
  }

  .novak-newsletter-cta__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

}



/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  .novak-latest-insights {
    padding: 62px 20px 68px;
  }

  .novak-latest-insights__heading-row {
    margin-bottom: 28px;
  }

  .novak-latest-insights__heading {
    font-size: 32px;
  }

  .novak-latest-insights__heading-row
  .novak-latest-insights__browse {
    display: none;
  }

  .novak-latest-insights__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .novak-latest-card__image-link {
    aspect-ratio: 16 / 9;
  }

  .novak-latest-insights__browse-mobile {
    display: block;
    margin-top: 38px;
  }


  /* =========================================================
   NEWSLETTER CTA
   ========================================================= */

.novak-newsletter-cta {
  width: 100%;
  margin: 0;
  padding: 72px 24px;

  background: #B3DDD5;
}

.novak-newsletter-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 70px;

  width: 100%;
  max-width: 1000px;

  margin: 0 auto;
  padding: 0;
}


/* =========================================================
   NEWSLETTER TEXT
   ========================================================= */

.novak-newsletter-cta__content {
  margin: 0;
  padding: 0;
}

.novak-newsletter-cta__eyebrow {
  margin: 0 0 12px;

  color: #7C1366;

  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.novak-newsletter-cta__heading {
  margin: 0 0 15px;
  padding: 0;

  color: #08445a;

  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
}

.novak-newsletter-cta__text {
  max-width: 440px;

  margin: 0;
  padding: 0;

  color: #08445a;

  font-size: 17px;
  line-height: 1.6;
}


/* =========================================================
   FORM
   ========================================================= */

.novak-newsletter-cta__form {
  width: 100%;
  max-width: 100%;

  margin: 0;
  padding: 0;
}

.novak-newsletter-cta__form .hbspt-form {
  width: 100%;
  margin: 0;
}

.novak-newsletter-cta__form form {
  width: 100% !important;
  max-width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
}


/* =========================================================
   FORM FIELDS
   ========================================================= */

.novak-newsletter-cta__form .hs-form-field {
  width: 100% !important;
  margin: 0 0 16px !important;
}


/* Labels */

.novak-newsletter-cta__form label,
.novak-newsletter-cta__form .hs-form-field > label {
  display: block;

  margin: 0 0 6px !important;

  color: #08445a !important;

  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}


/* Inputs */

.novak-newsletter-cta__form input[type="text"],
.novak-newsletter-cta__form input[type="email"],
.novak-newsletter-cta__form input[type="tel"],
.novak-newsletter-cta__form select {
  width: 100% !important;
  max-width: 100% !important;

  min-height: 50px !important;

  margin: 0 !important;
  padding: 11px 14px !important;

  border: 1px solid rgba(8, 68, 90, 0.18) !important;
  border-radius: 3px !important;

  background: #ffffff !important;

  color: #333333 !important;

  font-size: 16px !important;

  box-sizing: border-box !important;
}


/* First + Last Name side by side */

.novak-newsletter-cta__form .form-columns-2 {
  display: flex !important;
  gap: 12px !important;
}

.novak-newsletter-cta__form .form-columns-2 .hs-form-field {
  width: 50% !important;
  float: none !important;
}

.novak-newsletter-cta__form .form-columns-2 .input {
  margin-right: 0 !important;
}


/* Single-column fields */

.novak-newsletter-cta__form .form-columns-1 .hs-form-field {
  width: 100% !important;
}

.novak-newsletter-cta__form .input {
  margin-right: 0 !important;
}


/* =========================================================
   PRIVACY / CONSENT
   ========================================================= */

.novak-newsletter-cta__form .legal-consent-container,
.novak-newsletter-cta__form .legal-consent-container p,
.novak-newsletter-cta__form .legal-consent-container label,
.novak-newsletter-cta__form .hs-richtext,
.novak-newsletter-cta__form .hs-richtext p {
  color: #08445a !important;

  font-size: 13px !important;
  line-height: 1.45 !important;
}

.novak-newsletter-cta__form .legal-consent-container a,
.novak-newsletter-cta__form .hs-richtext a {
  color: #7C1366 !important;
  text-decoration: underline !important;
}

.novak-newsletter-cta__form input[type="checkbox"],
.novak-newsletter-cta__form input[type="radio"] {
  width: auto !important;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.novak-newsletter-cta__form .hs-submit {
  margin-top: 20px !important;
}

.novak-newsletter-cta__form .actions {
  margin: 0 !important;
  padding: 0 !important;
}

.novak-newsletter-cta__form input[type="submit"],
.novak-newsletter-cta__form .hs-button,
.novak-newsletter-cta__form input.hs-button {
  display: inline-block !important;

  width: auto !important;
  min-width: 150px !important;
  min-height: 50px !important;

  margin: 0 !important;
  padding: 14px 26px !important;

  border: 0 !important;
  border-radius: 3px !important;

  background-color: #FFB012 !important;
  background-image: none !important;

  color: #08445a !important;

  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em;

  text-align: center !important;
  text-transform: uppercase !important;
  text-decoration: none !important;

  cursor: pointer;
}

.novak-newsletter-cta__form input[type="submit"]:hover,
.novak-newsletter-cta__form .hs-button:hover,
.novak-newsletter-cta__form input.hs-button:hover {
  background-color: #08445a !important;
  color: #ffffff !important;
}


/* =========================================================
   ERRORS
   ========================================================= */

.novak-newsletter-cta__form .hs-error-msgs {
  margin: 6px 0 0 !important;
  padding: 0 !important;
}

.novak-newsletter-cta__form .hs-error-msg {
  color: #7C1366 !important;

  font-size: 13px !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

  .novak-newsletter-cta__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .novak-newsletter-cta__text {
    max-width: 600px;
  }

}


@media (max-width: 767px) {

  .novak-newsletter-cta {
    padding: 58px 20px;
  }

  .novak-newsletter-cta__inner {
    gap: 32px;
  }

  .novak-newsletter-cta__heading {
    font-size: 32px;
  }

  .novak-newsletter-cta__text {
    font-size: 16px;
  }

  .novak-newsletter-cta__form .form-columns-2 {
    display: block !important;
  }

  .novak-newsletter-cta__form .form-columns-2 .hs-form-field {
    width: 100% !important;
  }

}