/* Remove automatic page hero from About page only */
body.page-id-1243 .bc-standard-page-hero {
    display: none !important;
}

/* =========================================
   THE BENEFITS BRIEF — NEWSLETTER ARCHIVE
   BenefitsConsultant.ca
   ========================================= */

.bb-archive-hero,
.bb-archive-intro,
.bb-archive-signup,
.bb-archive-list {
  font-family: Inter, Arial, sans-serif;
  box-sizing: border-box;
}

.bb-archive-hero *,
.bb-archive-intro *,
.bb-archive-signup *,
.bb-archive-list * {
  box-sizing: border-box;
}

/* Shared container */
.bb-archive-container {
  width: calc(100% - 48px);
  max-width: 1120px;
  margin: 0 auto;
}

/* =========================================
   HERO SECTION
   ========================================= */

.bb-archive-hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  background: #F5F7FA;
  padding: 68px 0 72px;
}

.bb-archive-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #227D9E;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.bb-archive-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 3px;
  background: #227D9E;
  flex-shrink: 0;
}

.bb-archive-hero h1 {
  max-width: 920px;
  margin: 0 0 22px;
  font-size: clamp(38px, 4.5vw, 60px);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -1.6px;
  color: #17324D;
}

.bb-archive-subtitle {
  max-width: 730px;
  margin: 0;
  font-size: 19px;
  line-height: 1.7;
  font-weight: 400;
  color: #526477;
}

/* =========================================
   NEWSLETTER SIGNUP SECTION
   ========================================= */

.bb-archive-signup {
  width: calc(100% - 48px);
  max-width: 1120px;
  margin: 50px auto 75px !important;
  padding: 48px 40px !important;
  background: #17324D;
  border-radius: 8px;
  text-align: center;
  color: #FFFFFF;
}

.bb-archive-signup h2 {
  max-width: 760px;
  margin: 0 auto 16px !important;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.7px;
  color: #FFFFFF !important;
}

.bb-archive-signup p {
  max-width: 690px;
  margin: 0 auto 24px !important;
  font-size: 16px;
  line-height: 1.75;
  color: #E0EAF2 !important;
}

.bb-archive-signup .mailpoet_form {
  max-width: 540px;
  margin: 0 auto;
}

.bb-archive-signup input[type="email"],
.bb-archive-signup input[type="text"] {
  min-height: 48px;
  border-radius: 4px;
  background: #FFFFFF;
  color: #17324D;
}

.bb-archive-signup input[type="submit"] {
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 4px;
  background: #227D9E;
  color: #FFFFFF;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.bb-archive-signup input[type="submit"]:hover {
  background: #2F91B5;
}

/* =========================================
   ARCHIVE INTRODUCTION
   ========================================= */

.bb-archive-intro {
  width: 100%;
  margin: 0 auto 22px;
}

.bb-archive-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -1px;
  color: #17324D;
}

.bb-archive-intro p {
  max-width: 710px;
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #526477;
}

/* =========================================
   AUTOMATIC MAILPOET ARCHIVE
   ========================================= */

.bb-archive-list {
  width: calc(100% - 48px);
  max-width: 1120px;
  margin: 0 auto 90px !important;
}

.bb-archive-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bb-archive-list li {
  list-style: none;
  padding: 26px 0;
  margin: 0;
  border-bottom: 1px solid #E3E9EF;
}

.bb-archive-list li:first-child {
  border-top: 1px solid #E3E9EF;
}

.bb-archive-list li a {
  color: #17324D;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bb-archive-list li a:hover {
  color: #227D9E;
}

.bb-archive-list li:hover {
  background: #FAFBFC;
}

/* MailPoet date, where exposed */
.bb-archive-list .mailpoet_archive_date {
  display: block;
  margin-bottom: 8px;
  color: #718096;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

@media (max-width: 767px) {

  .bb-archive-container,
  .bb-archive-signup,
  .bb-archive-list {
    width: calc(100% - 36px);
  }

  .bb-archive-hero {
    padding: 46px 0 52px;
  }

  .bb-archive-hero h1 {
    letter-spacing: -1px;
  }

  .bb-archive-subtitle {
    font-size: 16px;
  }

  .bb-archive-signup {
    margin: 32px auto 52px !important;
    padding: 32px 22px !important;
  }

  .bb-archive-intro {
    margin-bottom: 14px;
  }

  .bb-archive-intro p {
    font-size: 15px;
  }

  .bb-archive-list {
    margin-bottom: 60px !important;
  }

  .bb-archive-list li {
    padding: 22px 0;
  }

  .bb-archive-list li a {
    font-size: 17px;
  }

}

/* The Benefits Brief — hide duplicate theme header */
body.page-id-1515 .entry-header,
body.page-id-1515 .page-header,
body.page-id-1515 .page-title,
body.page-id-1515 .entry-title,
body.page-id-1515 .entry-summary,
body.page-id-1515 .page-description {
  display: none !important;
}

/* Benefits Brief — remove automatic page header */

body.page-id-1515 .wp-block-post-title,
body.page-id-1515 .entry-header,
body.page-id-1515 .page-header,
body.page-id-1515 .page-title-area,
body.page-id-1515 .page-header-content,
body.page-id-1515 .entry-summary,
body.page-id-1515 .post-excerpt,
body.page-id-1515 .wp-block-post-excerpt {
  display: none !important;
}

/* =========================================
   THE BENEFITS BRIEF
   Remove duplicate automatic page header
   Page ID: 1515
   ========================================= */

body.page-id-1515 .bc-standard-page-hero {
    display: none !important;
}

/* Remove spacing above our custom hero */
body.page-id-1515 .bc-standard-page-body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Benefits Brief archive refinements — Page 1515 */

body.page-id-1515 .bb-archive-intro {
  padding-top: 48px;
  margin-bottom: 24px;
}

body.page-id-1515 .bb-archive-intro h2 {
  font-family: Inter, Arial, sans-serif !important;
  font-size: clamp(30px, 3.5vw, 42px) !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.8px !important;
  color: #17324D !important;
}

body.page-id-1515 .bb-archive-list li {
  padding: 24px 0 !important;
  border-bottom: 1px solid #E3E9EF;
}

body.page-id-1515 .bb-archive-list li a {
  font-family: Inter, Arial, sans-serif;
  font-size: 19px;
  font-weight: 650;
  color: #17324D;
}

body.page-id-1515 .bb-archive-list li a:hover {
  color: #227D9E;
}

@media (max-width: 767px) {
  body.page-id-1515 .bb-archive-intro {
    padding-top: 32px;
  }

  body.page-id-1515 .bb-archive-list li a {
    font-size: 17px;
  }
}

/* ==========================================
   THE BENEFITS BRIEF — ARCHIVE TYPOGRAPHY
   Page ID: 1515
   ========================================== */

/* Match the modern typography of the hero */
body.page-id-1515 .bb-archive-intro h2,
body.page-id-1515 .bb-archive-intro h2.wp-block-heading,
body.page-id-1515 .bb-archive-intro .bb-archive-container h2 {
  font-family: Inter, Arial, Helvetica, sans-serif !important;
  font-size: clamp(32px, 3.5vw, 42px) !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  letter-spacing: -1px !important;
  color: #17324D !important;
  font-style: normal !important;
}

/* Match the hero's supporting text */
body.page-id-1515 .bb-archive-intro p {
  font-family: Inter, Arial, Helvetica, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #526477 !important;
}

/* Align archive section with hero */
body.page-id-1515 .bb-archive-intro .bb-archive-container {
  max-width: 1120px;
  width: calc(100% - 48px);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px) {
  body.page-id-1515 .bb-archive-intro h2 {
    font-size: 30px !important;
  }
}

/* =========================================
   THE BENEFITS BRIEF — ARCHIVE TYPOGRAPHY
   Page ID: 1515
   ========================================= */

/* Target the actual archive heading */
body.page-id-1515 .bb-archive-intro h2,
body.page-id-1515 .bb-archive-container h2,
body.page-id-1515 .bc-article-content
  .bb-archive-intro h2 {

  font-family: Inter, Arial, sans-serif !important;
  font-size: clamp(32px, 3.5vw, 42px) !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  letter-spacing: -1px !important;
  font-style: normal !important;
  color: #17324D !important;
}

/* Match archive description to the hero */
body.page-id-1515 .bb-archive-intro p {
  font-family: Inter, Arial, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #526477 !important;
}

/* =========================================
   BENEFITS BRIEF — CHECK YOUR INBOX
   Fix duplicate title and page styling
   ========================================= */

/* Hide automatically generated theme header */
body.page-check-your-inbox .bc-standard-page-hero,
body.page:has(.bcb-confirm) .bc-standard-page-hero {
  display: none !important;
}

/* Remove extra spacing above content */
body.page:has(.bcb-confirm) .bc-standard-page-body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Main confirmation section */
body.page:has(.bcb-confirm) .bcb-confirm {
  width: 100%;
  max-width: 100%;
  padding: 75px 24px 85px;
  background: #FFFFFF;
  font-family: Inter, Arial, sans-serif;
  text-align: center;
  box-sizing: border-box;
}

/* Content alignment */
body.page:has(.bcb-confirm) .bcb-confirm-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* Email icon */
body.page:has(.bcb-confirm) .bcb-confirm-icon {
  display: flex;
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #EAF2F7;
  color: #227D9E;
  font-size: 27px;
}

/* Small label */
body.page:has(.bcb-confirm) .bcb-confirm-eyebrow {
  margin: 0 0 18px !important;
  color: #227D9E !important;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-align: center;
}

/* Main heading */
body.page:has(.bcb-confirm) .bcb-confirm h1 {
  margin: 0 0 22px !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: clamp(36px, 4vw, 48px) !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
  letter-spacing: -1.2px;
  color: #17324D !important;
  text-align: center;
}

/* Supporting text */
body.page:has(.bcb-confirm) .bcb-confirm-intro {
  margin: 0 auto 12px !important;
  font-family: Inter, Arial, sans-serif;
  font-size: 20px !important;
  font-weight: 600;
  color: #17324D !important;
  text-align: center;
}

body.page:has(.bcb-confirm) .bcb-confirm-description {
  max-width: 580px;
  margin: 0 auto 32px !important;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px !important;
  line-height: 1.75;
  color: #526477 !important;
  text-align: center;
}

/* Help panel */
body.page:has(.bcb-confirm) .bcb-confirm-panel {
  max-width: 590px;
  margin: 0 auto;
  padding: 30px 36px;
  background: #F5F7FA;
  border-radius: 8px;
  text-align: left;
}

body.page:has(.bcb-confirm) .bcb-confirm-panel h2 {
  margin: 0 0 20px !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #17324D !important;
}

body.page:has(.bcb-confirm) .bcb-confirm-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
}

body.page:has(.bcb-confirm) .bcb-feature-number {
  color: #227D9E;
  font-weight: 700;
  font-size: 13px;
}

/* Closing tagline */
body.page:has(.bcb-confirm) .bcb-confirm-closing {
  margin: 28px 0 0 !important;
  font-size: 13px !important;
  color: #718096 !important;
  text-align: center;
}

/* Mobile */
@media (max-width: 767px) {
  body.page:has(.bcb-confirm) .bcb-confirm {
    padding: 45px 20px 60px;
  }

  body.page:has(.bcb-confirm) .bcb-confirm-panel {
    padding: 24px;
  }
}

/* Hide default title on Check Your Inbox page */
body.page:has(.bcb-confirm) .bc-standard-page-hero {
  display: none !important;
}

/* =========================================
   BenefitsConsultant.ca Mobile Hamburger
   ========================================= */

/* Hide the hamburger on desktop */
.bc-mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {

    /* Keep the header compact */
    .bc-header-inner {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 12px;
    }

    /* Allow logo to shrink appropriately */
    .bc-header-inner .bc-brand {
        min-width: 0;
    }

    /* Hamburger button */
    .bc-mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 8px;
        border: 0;
        background: transparent;
        cursor: pointer;
        z-index: 1002;
    }

    .bc-mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: #12263A;
        border-radius: 2px;
        transition: transform .2s ease, opacity .2s ease;
    }

    /* Hide navigation until expanded */
    .bc-header-row .bc-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1001;
        background: #FAF9F6;
        border: 1px solid #E5E3DE;
        padding: 16px 20px;
        box-shadow: 0 10px 24px rgba(18,38,58,.08);
    }

    .bc-header-row .bc-nav.bc-nav-open {
        display: block;
    }

    .bc-header-row .bc-nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .bc-header-row .bc-nav li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #E5E3DE;
    }

    .bc-header-row .bc-nav li:last-child {
        border-bottom: 0;
    }

    .bc-header-row .bc-nav a {
        display: block;
        padding: 14px 4px;
        color: #12263A;
        font-size: 16px;
        text-decoration: none;
    }

    /* Animate hamburger into an X */
    .bc-mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .bc-mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .bc-mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Mobile navigation visibility fix */

@media (max-width: 768px) {

    .site-header,
    .bc-header-row {
        overflow: visible !important;
    }

    .bc-header-row {
        position: relative;
    }

    .bc-header-row .bc-mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 10002;
    }

    .bc-header-row nav.bc-nav {
        display: none !important;
        position: absolute !important;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        background: #FAF9F6;
        z-index: 10001;
    }

    .bc-header-row nav.bc-nav.bc-nav-open {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .bc-header-row nav.bc-nav.bc-nav-open ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .bc-header-row nav.bc-nav.bc-nav-open li {
        display: block !important;
    }
}


