@import url("reset.css");

@import url("https://fonts.googleapis.com/css?family=Inter:regular,500,600,700&display=swap");

/* ************COMMON************ */

.logo {
  font-weight: 700;
  font-size: 2.25rem;
  display: inline-block;
}

.logo img {
  height: 3rem;
  width: auto;
  display: block;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  color: #303a4d;
}

[class*="__container"] {
  max-width: 72.624rem;
  margin: 0 auto;
  padding: 0 0.938rem;
}

.button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #fff;
  background-color: #303a4d;
}

.title {
  font-size: 3.5rem;
  font-weight: 600;
}

.wrapper {
  min-height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

/* Keep main content visible in flex column layout (avoid zero-height flex shrink). */
main.page {
  flex: 1 1 auto;
  width: 100%;
}

/* .subtle-disclaimer — styles live inline on gentle-comforts.html & daily-grief-brief.html */

/* ************HEADER************ */

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  overflow: visible;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.75rem;
  flex-wrap: wrap;
  max-width: 82rem;
}

.header__logo {
  position: relative;
  z-index: 2;
}

.header__logo img {
  max-height: 3.5rem;
  width: auto;
}

.header__navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.menu__body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu__link {
  font-weight: 600;
  position: relative;
}

/* No submenu: For Professionals is a single link; hide any legacy dropdown markup */
.menu__submenu,
.menu__item.has-dropdown .menu__submenu {
  display: none !important;
  visibility: hidden !important;
}

.actions-header {
  display: flex;
  align-items: center;
  gap: 0.624rem;
}

.icon-menu {
  display: none;
}

.actions-header__button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid #303a4d;
  border-radius: 30px;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}

/*
 * Desktop / tablet landscape (horizontal header nav):
 * Keep logo + menu list + Start Here on ONE row. Targets the real DOM:
 * .header__navigation > .header__menu > nav.menu__body > ul.menu__list + a.actions-header__button
 */
@media (min-width: 47.999rem) {
  .header .header__container {
    flex-wrap: nowrap !important;
    max-width: min(100%, 90rem);
    box-sizing: border-box;
  }

  .header__logo {
    flex: 0 0 auto;
  }

  .header__logo img {
    max-height: 3.25rem;
  }

  .header__navigation {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    gap: 0.75rem;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
  }

  .header__menu.menu,
  .header__menu {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .menu__body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100%;
    width: 100%;
    flex-wrap: nowrap !important;
    gap: 0.65rem !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .menu__list {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap !important;
    white-space: nowrap;
    gap: 0.55rem !important;
    margin: 0;
    padding: 0;
  }

  .menu__item {
    flex: 0 0 auto;
  }

  .menu__link {
    font-size: 0.8125rem;
    letter-spacing: -0.01em;
  }

  .menu__body > .actions-header__button {
    flex: 0 0 auto;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.8125rem !important;
    border-radius: 26px;
    white-space: nowrap;
  }
}

/* ****************PAGES**************** */
.page__main {
  padding-bottom: 180px;
}

.page__main.main_home {
  padding-bottom: 165px !important;
  margin-bottom: -15px !important;
}

/* Ensure Services page is not affected by home page margin changes */
.page__main.main_services {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* *****************HOME**************** */

/* **************PATHWAYS**************** */

.pathways {
  background-color: #fff;
  padding-top: 2rem;
  padding-bottom: 8.75rem;
}

.pathways__container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pathways__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.item-pathways {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.item-pathways:hover {
  transform: translateY(-5px);
}

.item-pathways:hover .item-pathways__image {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.item-pathways__image {
  margin-bottom: 1.5rem;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
}

.item-pathways__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.item-pathways__number {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #303a4d;
  white-space: nowrap;
  line-height: 120%;
}

.item-pathways__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 130%;
  color: #303a4d;
  text-align: center;
}

.item-pathways__text {
  max-width: 100%;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: #303a4d;
  font-size: 0.938rem;
  text-align: center;
}

/* **************BRIEF DETAIL PAGE**************** */

.brief {
  background-color: #fff;
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.brief__container {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 0.938rem;
}

.brief__navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.brief__back-link {
  color: #303a4d;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.brief__back-link:hover {
  color: #5a6b7d;
}

.brief__month-indicator,
.brief__date-indicator {
  font-weight: 600;
  font-size: 1.125rem;
  color: #303a4d;
  padding: 0.5rem 1rem;
  background-color: #e1e4eb;
  border-radius: 20px;
}

.brief__content {
  min-height: 300px;
}

.brief__card {
  background-color: #fff;
  border: 2px solid #e1e4eb;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.brief__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #303a4d;
  line-height: 130%;
}

.brief__text {
  font-size: 1.125rem;
  line-height: 180%;
  letter-spacing: 0.02em;
  color: #303a4d;
}

.brief__loading,
.brief__error {
  text-align: center;
  padding: 3rem;
  font-size: 1.125rem;
  color: #303a4d;
}

.brief__error {
  color: #d32f2f;
}

.brief__date-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e1e4eb;
}

.brief__date-note {
  font-size: 0.938rem;
  color: #5a6b7d;
  font-style: italic;
  line-height: 150%;
}

.brief__month-indicator {
  background-color: #e1e4eb;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brief__month-indicator.brief__month-13 {
  background-color: #fff3cd;
  border: 2px solid #ffc107;
}

.brief__month-label {
  font-weight: 600;
  font-size: 1.125rem;
  color: #303a4d;
}

.brief__day-in-month {
  font-size: 0.938rem;
  color: #5a6b7d;
}

.brief__cycle-transition {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.brief__cycle-transition p {
  margin: 0;
  line-height: 150%;
  color: #303a4d;
}

.brief__cycle-info {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.brief__cycle-navigation {
  text-align: center;
}

.brief__cycle-text {
  font-size: 0.938rem;
  color: #5a6b7d;
  line-height: 150%;
  margin: 0;
}

.brief__choice-card {
  background-color: #fff;
  border: 2px solid #303a4d;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.brief__choice-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #303a4d;
}

.brief__choice-text {
  font-size: 1.125rem;
  line-height: 150%;
  color: #303a4d;
  margin-bottom: 2.5rem;
}

.brief__choice-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.brief__choice-button {
  background-color: #fff;
  border: 2px solid #e1e4eb;
  border-radius: 12px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.brief__choice-button:hover {
  border-color: #303a4d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brief__choice-button.brief__choice-month13:hover {
  border-color: #ffc107;
  background-color: #fffbf0;
}

.brief__choice-button.brief__choice-january:hover {
  border-color: #303a4d;
  background-color: #f5f5f5;
}

.brief__choice-button h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #303a4d;
}

.brief__choice-button p {
  font-size: 1rem;
  line-height: 150%;
  color: #303a4d;
  margin-bottom: 0.5rem;
}

.brief__choice-button small {
  font-size: 0.875rem;
  color: #5a6b7d;
  font-style: italic;
}

.brief__choice-note {
  font-size: 0.938rem;
  color: #5a6b7d;
  font-style: italic;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e1e4eb;
}

.main {
  background: url("../img/home/background_placeholder.png") center / cover no-repeat;
  min-height: 100vh;
}

.main_home {
  background-image: url("../images/Logos/GH Logo 3.png") !important;
  background-position: center calc(15% + 140px) !important;
  background-size: 900px auto !important;
  background-repeat: no-repeat !important;
  background-color: #fff !important;
  position: relative;
  min-height: calc(80vh + 140px) !important;
  height: calc(80vh + 140px) !important;
  padding-bottom: 0 !important;
  margin-bottom: -15px !important;
  padding-top: 0px !important;
  margin-top: -30px !important;
}

/* Desktop: Ensure button and subheading are centered and positioned correctly */
@media (min-width: 481px) {
  .main_home .main__button {
    bottom: -75px !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) scale(0.7) !important;
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    display: inline-block !important;
    padding: 1.25rem 3rem !important;
    line-height: normal !important;
  }
  
  .main_home .main__subheading {
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    width: 100% !important;
  }
  
  /* Position subheading below logo on desktop */
  .main_home .main__subheading {
    top: 630px !important;
  }
  
  /* Position button below description box on desktop */
  .main_home .main__button {
    bottom: -75px !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) scale(0.7) !important;
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    display: inline-block !important;
    padding: 1.25rem 3rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    line-height: 110% !important;
    box-sizing: border-box !important;
  }
}

/* Desktop (>900px): More specific positioning */
@media (min-width: 901px) {
  section.main_home .main__subheading,
  .page__main.main_home .main__subheading {
    top: 630px !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
  
  section.main_home .main__button,
  .page__main.main_home .main__button {
    bottom: -75px !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) scale(0.7) !important;
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    display: inline-block !important;
    padding: 1.25rem 3rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    line-height: 110% !important;
    box-sizing: border-box !important;
  }
  
  section.main_home,
  .page__main.main_home {
    background-position: center calc(15% + 140px) !important;
    background-size: 900px auto !important;
  }
}

/* Mobile: Keep logo smaller */
@media (max-width: 480px) {
  .main_home {
    background-size: 414px auto !important;
  }
  
  /* Services page mobile - match JavaScript settings - MUST override all desktop styles */
  section.main_services,
  .page__main.main_services,
  section.page__main.main_services,
  .main.main_services {
    min-height: 360px !important;
    padding-top: 130px !important;
    margin-top: -60px !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    background-position: calc(50% - 40px) 150px !important;
    background-size: 125% !important;
    background-repeat: no-repeat !important;
    position: relative !important;
  }
  
  .main_services .main__container_pages,
  section.main_services .main__container_pages {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-top: 0 !important;
    padding-bottom: 2rem !important;
    min-height: 500px !important;
    width: 100% !important;
    position: relative !important;
  }
  
  .main_services .main__subheading,
  .main_services .main__subheading_services,
  section.main_services .main__subheading {
    position: relative !important;
    top: 15px !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    margin: -25px auto 1rem auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    z-index: 2 !important;
    order: 1 !important;
  }
  
  .main_services .main__text_pages,
  .main_services .main__text_pages_services,
  section.main_services .main__text_pages {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: translateY(30px) !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    margin-top: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 15px !important;
    text-align: center !important;
    z-index: 1 !important;
    order: 2 !important;
    box-sizing: border-box !important;
  }
  
  /* Services page sections - ensure logos are visible on mobile */
  .services-page__column {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    width: 100% !important;
  }
  
  .services-page__img {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    flex: none !important;
    order: 1 !important;
  }
  
  .services-page__content {
    width: 100% !important;
    max-width: 100% !important;
    order: 2 !important;
    text-align: center !important;
  }
  
  .services-page__logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    order: 3 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .services-page__logo img {
    max-width: 80% !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Ensure padding-top is applied with maximum specificity */
section.main_home,
.page__main.main_home,
section.page__main.main_home {
  padding-top: 0px !important;
  margin-top: -30px !important;
  padding-bottom: 0px !important;
  margin-bottom: -15px !important;
}

/* Exclude Services page from home page margin changes */
section.main_services,
.page__main.main_services,
section.page__main.main_services {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Hide the img tag logo - use background-image instead */
.main_home .main__logo img {
  display: none !important;
}

.main_home .main__container {
  position: relative;
  z-index: 1;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  height: calc(80vh + 100px) !important;
  min-height: calc(80vh + 100px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

.main__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 19.188rem;
}

.main__container_home {
  justify-content: flex-end !important;
  align-items: center !important;
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  height: 100vh !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative;
}

.main_home .main__container_home {
  padding-top: 0 !important;
  justify-content: flex-end !important;
  align-items: center !important;
  padding-bottom: 0 !important;
}

/* Override padding-top for hero section to show full logo */
.main_home {
  padding-top: 55px !important;
  margin-top: -30px !important;
  padding-bottom: 0px !important;
  margin-bottom: -15px !important;
}

.main__content-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  margin-bottom: 0;
  padding-bottom: 0;
  width: 100%;
  max-width: 100%;
}

.main_home .main__content-bottom {
  position: absolute !important;
  bottom: 50px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  max-width: 100% !important;
  margin-bottom: 0 !important;
  padding: 0 2rem 2rem 2rem !important;
  gap: 0.75rem !important;
  text-align: center !important;
}

.main__caption {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}

.main__title {
  font-size: 5.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.main__text {
  margin-bottom: 1rem;
  max-width: 50rem;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: #5E958D;
}

.main__text p {
  margin: 0;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.main__text p:last-child {
  margin-bottom: 0;
}

.main_home .main__text {
  color: #2f7194 !important;
  max-width: 50rem !important;
  margin-bottom: 1rem !important;
}

.main__button {
  font-weight: 600;
  display: inline-block;
  padding: 1.25rem 3rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #fff;
  background-color: #5E958D;
  letter-spacing: 0.02em;
  font-size: 1.375rem;
  line-height: 110%;
}

.main_home .main__button {
  margin-bottom: 0;
}

.outro_home {
  background-color: #fff;
}

/* ************ABOUT**************** */

.about {
  background-color: #e0f2f5;
}

.main_about {
  background: url("../images/About Page/about hero 5.png") center / cover no-repeat;
}

.main_pathways {
  position: relative;
  overflow: hidden;
}

.main_pathways__image {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.main_pathways__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.main__container_pathways {
  position: relative;
  z-index: 1;
}

.main__container_pathways .main__title {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.main__container_pathways .main__text {
  color: #fff;
  text-shadow: none;
  font-size: 1rem;
  margin-bottom: 0;
}

.about__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.about__image {
  position: relative;
  max-width: 552px;
  height: 614px;
}

.about__image img {
  border-radius: 16px;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__title {
  margin-bottom: 1.5rem;
}

.about__text {
  max-width: 30rem;
  letter-spacing: 0.02em;
  line-height: 150%;
  margin-bottom: 3.5rem;
}

.about__text p:not(:last-child) {
  margin-bottom: 2.5rem;
}

.outro_about {
  background: url("../images/About Page/shellfish-3062011_1920.jpg") center / cover no-repeat;
  background-position: center calc(50% - 100px);
  position: relative;
  overflow: hidden;
  min-height: auto;
}

.outro_about .outro__container {
  padding-top: 5rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}

/* **************SERVICES**************** */

.main_services {
  background: url("../images/Services Page/Services Hero Logo 2.png") center / cover no-repeat;
  background-position: center calc(50% + 60px);
}

.services {
  background-color: #fff;
}

.services__container {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.services__title {
  text-align: center;
  margin-bottom: 5rem;
}

.services__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.item-services {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
}

.item-services__logo {
  margin-bottom: 1rem;
  text-align: center;
  max-width: 360px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.item-services__logo img {
  max-width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

.item-services__image {
  margin-bottom: 2rem;
  max-width: 360px;
  height: 421px;
}

.item-services__image img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.item-services__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
  width: 100%;
}

.item-services__text {
  max-width: 21.5rem;
  line-height: 150%;
  margin-bottom: 2rem;
  flex-grow: 1;
  text-align: center;
  width: 100%;
  letter-spacing: 0.02em;
}

.item-services__button {
  background-color: inherit;
  border: 2px solid #303a4d;
  color: #303a4d;
}

.outro_services {
  background: url("../images/Services Page/starfish-2.jpg") center / cover no-repeat;
}

.outro_pathways {
  background: url("../images/Landing Page/sand-8637315_1920.jpg") center / cover no-repeat;
}

/* ************TESTIMONIAL**************** */

.testimonial {
  background-color: #e0f2f5;
}

.testimonial__container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.testiomonial__caption {
  margin-bottom: 4rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.5rem;
}

.testimonial__title {
  margin-bottom: 4rem;
  font-size: 2rem;
  max-width: 40.75rem;
  line-height: 136%;
  font-weight: 500;
}

.item-testimonial__image {
  max-width: 64px;
  margin: 0 auto;
  margin-bottom: 1.063rem;
  height: 64px;
}

.item-testimonial__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.item-testimonial__title {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.item-testimonial__caption {
  font-size: 0.938rem;
}

/* ****************OUTRO**************** */

.outro {
  background-color: #fff;
}

.outro__container {
  padding-top: 4rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.outro__title {
  margin-bottom: 1.25rem;
}

.outro__text {
  max-width: 33.625rem;
  line-height: 150%;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.outro__button {
  padding: 1.25rem 3rem;
}

.outro__disclaimer {
  font-size: 0.75rem;
  color: inherit;
  margin-top: 0.5rem;
  text-align: center;
}

/* ****************FOOTER**************** */

.footer {
  line-height: 150%;
}

.footer__container {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  max-width: 74.624rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer__policy {
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-self: start;
}

.footer__logo {
  justify-self: center;
}

.footer__logo img {
  max-height: 2.5rem;
  width: auto;
}

.footer__copyright {
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-self: end;
}

/* ****************ABOUT PAGE**************** */
.main__text.main__text_pages {
  max-width: 21.25rem !important;
  width: 21.25rem !important;
  text-align: left;
  color: #2f7194;
  margin-top: 80px;
}

.main__text.main__text_pages p {
  white-space: normal !important;
}

.main__container_pages {
  padding-top: 340px;
  align-items: flex-start;
  text-align: left;
}

.main__container_pathways {
  padding-top: 208px;
  padding-bottom: 55px;
  transform: translateY(110px);
}

.main_pages {
  min-height: 676px !important;
}

.main_pathways.main_pages {
  min-height: 228px !important;
}

/* ****************SERVICES PAGE**************** */
.services-page__container {
  padding-top: 160px;
}

.services-page__item {
  margin-bottom: 132px;
}

.services-page__item:not(:last-child) {
  padding-bottom: 132px;
  margin-bottom: 132px;
  border-bottom: 1px solid rgba(48, 58, 77, 0.4);
}

.services-page__column {
  display: flex;
  align-items: center;
  gap: 97px;
}

.services-page__title {
  margin-bottom: 24px;
}

.services-page__text {
  margin-bottom: 56px;
  max-width: 480px;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.services-page__text p:not(:last-child) {
  margin-bottom: 20px;
}

.services-page__logo {
  margin-bottom: 1.5rem;
  text-align: center;
}

.services-page__logo img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.services-page__img {
  max-width: 552px;
  height: 614px;
}

.services-page__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ****************CONTACT PAGE****************/

.main_contact {
  background: url("../images/Contact Page/Contact Hero Logo 2.png") calc(50% - 450px) center / 80% no-repeat;
}

.main_contact.main_pages {
  padding-bottom: 0;
}

.contact__container {
  display: flex;
  justify-content: space-between;
  gap: 109px;
  padding-top: 0;
  padding-bottom: 140px;
}

.contact__title {
  margin-bottom: 48px;
  font-weight: 600;
  line-height: 110%;
  font-size: 40px;
}

.connect-contact {
  display: flex;
  flex-direction: column;
  align-items: start;
  row-gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e1e4eb;
}

.connect-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.connect-contant__type {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 110%;
  text-transform: uppercase;
}

.connect-contact__label {
  font-size: 22px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.contact__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact__text {
  max-width: 545px;
  font-size: 18px;
  line-height: 150%;
}

.contact__text p:not(:last-child) {
  margin-bottom: 15px;
}

/* Map embed only — do not apply grayscale to YouTube or other iframes site-wide */
.page__map iframe {
  width: 100%;
  max-width: 100%;
  height: 482px;
  filter: none;
}

/* **************REVIEWS PAGE**************** */
.reviews__container {
  padding-top: 160px;
  padding-bottom: 160px;
}

.reviews__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
}

.reviews__column {
  border: 1px solid #e1e4eb;
  border-radius: 8px;
}

.reviews__item {
  padding-top: 48px;
  padding-bottom: 56px;
  padding-right: 32px;
  padding-left: 32px;
}

.item-reviews {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.item-reviews__img {
  max-width: 46px;
  height: 36px;
  margin: 0 auto;
  margin-bottom: 46px;
}

.item-reviews__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-reviews__text {
  margin-bottom: 40px;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 150%;
}

.item-reviews__author {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.item-reviews__geo {
  font-size: 14px;
  letter-spacing: 0.002em;
}

/* ******************PRICING PAGE******************** */
.pricing__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pricing__caption {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 4%;
}

.pricing__title {
  font-weight: 600;
  font-size: 72px;
  margin-bottom: 24px;
}

.pricing__text {
  font-size: 22px;
  letter-spacing: 2%;
  margin-bottom: 88px;
}

.pricing__row {
  display: flex;
  align-items: start;
  gap: 24px;
}

.pricing__column {
  border: 2px solid #e1e4eb;
  border-radius: 8px;
}

.pricing__item {
  padding: 40px;
  padding-bottom: 48px;
}

.item-pricing__info {
  padding-bottom: 32px;
  border-bottom: 1px solid #e1e4eb;
  margin-bottom: 32px;
}

.item-pricing__label {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1%;
  margin-bottom: 16px;
}

.item-pricing__cost {
  font-size: 72px;
  font-weight: 600;
  margin-bottom: 16px;
}

.item-pricing__list {
  margin-bottom: 64px;
}

.item-pricing__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-pricing__item::before {
  content: "";
  background: url("../img/pricing/check.svg") 0 0 no-repeat;
  width: 16px;
  height: 18px;
}

.item-pricing__item:not(:last-child) {
  margin-bottom: 12px;
}

.item-pricing__button {
  display: inline-block;
  font-size: 22px;
  letter-spacing: 2%;
  font-weight: 600;
  color: #fff;
  padding: 20px 82px;
  background-color: #303a4d;
  border-radius: 64px;
}

.team {
  background-color: #e1e4eb;
}

.team__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.team__title {
  text-align: center;
  margin-bottom: 96px;
  max-width: 483px;
}

.team__row {
  display: grid;
  column-gap: 24px;
  row-gap: 96px;
  grid-template-columns: repeat(3, 1fr);
}

.team__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.item-team__img {
  max-width: 360px;
  height: 363px;
  margin-bottom: 40px;
}

.item-team__img img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.item-team__name {
  max-width: 186px;
  font-size: 32px;
  font-weight: 600;
  line-height: 120%;
  text-align: center;
  margin-bottom: 12px;
}

.item-team__role {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  letter-spacing: 2%;
}

.item-team__role span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-team__role span::after {
  content: "";
  background: url("../img/team/icons/star.svg") 0 0 no-repeat;
  width: 12px;
  height: 12px;
}

.item-team__text {
  font-size: 16px;
  text-align: center;
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 328px;
  margin-bottom: 20px;
}

.item-team__icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* *************FAQ PAGE************** */
.faqs__container {
  padding-top: 140px;
  padding-bottom: 140px;
}

.faqs__title {
  text-align: center;
  margin-bottom: 80px;
}

.spollers-faq__item {
  width: 100%;
}

.spollers-faq__item:not(:last-child) {
  margin-bottom: 24px;
}

.spollers-faq__button {
  display: inline-block;
  border: 2px solid #e1e4eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 8px;
}

.spollers-faq__button span {
  padding-left: 40px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-weight: 600;
}

.spollers-faq__button img {
  padding-right: 34.5px;
}

.spollers-faq__text {
  max-height: 0;
  overflow: hidden;
  width: 100%;
  display: block;
}

.spollers-faq__item.active .spollers-faq__text {
  max-height: 1000px;
  max-height: calc(1000px + 16px);
}

.spollers-faq__item.active .spollers-faq__button {
  border-bottom: none;
  border-radius: 8px 8px 0px 0px;
}

.spollers-faq__item.active .spollers-faq__button span {
  padding-bottom: 32px;
}

.spollers-faq__item.active .spollers-faq__button img {
  transform: translate(-34px, 0px) rotate(180deg);
}

.spollers-faq__inner {
  padding-top: 20px;
  padding-left: 40px;
  border: 2px solid #e1e4eb;
  border-radius: 0px 0px 8px 8px;
  line-height: 150%;
  padding-bottom: 20px;
  border-top: none;
  padding-right: 100px;
}

/* ****************TEAM PAGE**************** */
.director__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  align-items: center;
  gap: 96px;
}

.director__title {
  margin-bottom: 16px;
}

.director__role {
  font-size: 22px;
  letter-spacing: 2%;
  margin-bottom: 40px;
}

.director__text {
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 480px;
}

.director__text p:not(:last-child) {
  margin-bottom: 20px;
}

.director__img {
  max-width: 552px;
  height: 614px;
}

.director__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ****************GALLERY**************** */
.gallery__container {
  padding-bottom: 140px;
  padding-top: 140px;
}

.gallery__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
  margin-bottom: 96px;
  justify-items: center;
}

.gallery__item {
  max-width: 360px;
  height: 407px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.gallery__paggination {
  display: flex;
  align-items: center;
  justify-content: center;
  align-items: center;
  gap: 42px;
}

.gallery__paggination button:first-child {
  transform: translate(0px, 5px);
}

.gallery__paggination button:last-child {
  transform: rotate(-180deg) translate(0px, 5px);
}

.gallery_active {
  color: #fff;
  padding: 10px 15px;
  background-color: #303a4d;
  border-radius: 100px;
  display: inline-block;
}

/* ****************RESOURCES**************** */
.resources__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
  justify-items: center;
}

.resources__img {
  max-width: 360px;
  height: 330px;
  margin-bottom: 32px;
}

.resources__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.resources__title {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 12px;
}

.resources__text {
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 243px;
  margin-bottom: 32px;
}

.resources__button {
  background-color: #fff;
  color: #303a4d;
  font-weight: 600;
  letter-spacing: 2%;
  border: 2px solid #303a4d;
  border-radius: 64px;
}

/* ****************ADAPTIVE**************** */

@media (max-width: 992px) {
  .pathways__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .services__row {
    grid-template-columns: 1fr;
    gap: 6rem;
    justify-items: center;
  }

  .item-services {
    text-align: center;
    align-items: center;
  }

  .page__main {
    padding-bottom: 80px;
  }
}

@media (max-width: 995px) {
  .item-pricing__button {
    font-size: 19px;
  }
}

@media (max-width: 62.6875rem) {
  .resources__container {
    padding-top: 70px;
    padding-bottom: 70px;
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__paggination {
    gap: 27px;
  }

  .gallery__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .team__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

  .director__container {
    flex-direction: column;
    padding-top: 70px;
    padding-bottom: 70px;
    gap: 10px;
    text-align: center;
  }

  .item-pricing {
    padding: 20px;
    padding-bottom: 30px;
  }

  .pricing__title {
    font-size: 39px;
  }

  .pricing__text {
    margin-bottom: 25px;
  }

  .item-pricing__button {
    padding: 16px 42px;
  }

  .footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
  }

  .footer__policy,
  .footer__copyright {
    justify-self: center;
    text-align: center;
    margin: 0.5rem 0;
  }

  .footer__logo {
    margin-bottom: 1rem;
  }

  .services-page__column {
    gap: 30px;
    font-size: 15px;
  }

  .services-page__title {
    font-size: 29px;
  }

  .reviews__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
    column-gap: 10px;
  }

  .reviews__item {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-top: 20px;
    display: inline-block;
  }

  .item-reviews__text {
    font-size: 16px;
  }

  .item-reviews__author {
    font-size: 16px;
  }
}

@media (max-width: 47.999rem) {
  /* Hamburger / full-screen menu: do not use desktop single-line nav rules here */
  .menu__list {
    display: block !important;
    white-space: normal !important;
    flex-wrap: unset !important;
    gap: 0 !important;
  }

  .spollers-faq__item.active .spollers-faq__button img {
    transform: translate(-10px, -10px) rotate(180deg);
  }

  .spollers-faq__button span {
    padding-top: 15px;
    padding-left: 10px;
    padding-bottom: 15px;
    font-weight: 600;
    font-size: 14px;
  }

  .spollers-faq__button img {
    padding-right: 10px;
  }

  .spollers-faq__inner {
    font-size: 16px;
    padding-left: 10px;
    line-height: 130%;
  }

  .pricing__container {
    text-align: center;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .pricing__row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .item-pricing__button {
    font-size: 17px;
    padding: 15px 32px;
  }

  .reviews__container {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .icon-menu {
    display: block;
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 1.875rem;
    flex: 0 0 1.875rem;
    width: 1.875rem;
    height: 1.125rem;
    cursor: pointer;
    z-index: 5;
  }

  .icon-menu span,
  .icon-menu::before,
  .icon-menu::after {
    content: "";
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    right: 0;
    position: absolute;
    width: 100%;
    height: 0.125rem;
    background-color: #000;
  }

  .icon-menu::before {
    top: 0;
  }

  .icon-menu::after {
    bottom: 0;
  }

  .contact__container {
    flex-direction: column;
    padding-top: 80px;
    gap: 50px;
    padding-bottom: 80px;
  }

  .icon-menu span {
    top: calc(50% - 0.0625rem);
  }

  .menu-open .icon-menu span {
    width: 0;
  }

  .menu-open .icon-menu::before {
    top: calc(50% - 0.0625rem);
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  .menu-open .icon-menu::after {
    bottom: calc(50% - 0.0625rem);
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  .menu__body {
    background-color: #fff;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    padding: 9.375rem 0.938rem 1.875rem 0.938rem;
    overflow: auto;
    flex-direction: column;
    row-gap: 5rem;
  }

  .menu__body::before {
    content: "";
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    min-height: 5.75rem;
    background-color: #fff;
    border-bottom: 1px solid #000;
    z-index: 2;
  }

  .menu-open .menu__body {
    left: 0;
  }

  .menu-open .menu__body::before {
    left: 0;
  }

  .menu__item {
    text-align: center;
  }

  .menu__item:not(:last-child) {
    margin-bottom: 1.563rem;
  }

  .menu__link {
    font-size: 2rem;
  }

  .actions-header__button {
    padding: 0.75rem;
  }

  .main__container {
    padding-top: 12.5rem;
  }

  /* Pathway 1–6, 9: hero band already pads for header — avoid stacking with generic .main__container top padding */
  .pathway-gh-hero-band.page__main.main_pathway .main__container_pathway.pathway-gh-inner {
    padding-top: 0 !important;
  }

  .main__container_pages {
    padding-top: 290px;
  }

  .main__container_pathways {
    padding-top: 138px;
    padding-bottom: 45px;
  }

  .main_pathways.main_pages {
    min-height: 200px !important;
  }

  .main__title {
    font-size: 3rem;
  }

  .title {
    font-size: 2rem;
  }

  .about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .about__container {
    flex-direction: column;
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
    gap: 4rem;
  }

  .pathways {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .pathways__row {
    grid-template-columns: 1fr;
    gap: 3rem;
    justify-items: center;
  }

  .item-pathways {
    text-align: center;
    align-items: center;
    max-width: 360px;
  }

  .brief__card {
    padding: 2rem;
  }

  .brief__title {
    font-size: 1.5rem;
  }

  .brief__text {
    font-size: 1rem;
  }

  .brief__choice-options {
    grid-template-columns: 1fr;
  }

  .brief__choice-card {
    padding: 2rem;
  }

  .brief__choice-title {
    font-size: 1.5rem;
  }


  .services__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .testimonial__title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .testiomonial__caption {
    margin-bottom: 2rem;
  }

  .outro__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .logo {
    font-size: 1rem;
  }

  .services-page__column {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 20px;
    gap: 4rem;
  }
}

@media (max-width: 61.936rem) {
  .footer__container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    row-gap: 0.938rem;
  }

  .logo {
    font-size: 2rem;
  }
}

@media (max-width: 530px) {
  .pathways__row {
    grid-template-columns: 1fr;
  }

  .reviews__row {
    grid-template-columns: 1fr;
  }

  .team__row {
    grid-template-columns: 1fr;
  }

  .gallery__row {
    grid-template-columns: 1fr;
  }

  .resources__container {
    grid-template-columns: 1fr;
  }
}

/* ****************PATHWAY PAGES - GRIEF BRIEFS****************/

/* Pathways 1–6, 9: full-width hero band; top padding matches tier pages (Going Forward / gentle-comforts rhythm) under absolute header */
.pathway-gh-hero-band.page__main.main_pathway {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  padding: calc(max(11rem, 12vh + 6rem) - 18px) 0 clamp(1.15rem, 2.5vw, 1.65rem) !important;
  background-color: #fdfffc !important;
  background-image: none !important;
}
.pathway-gh-hero-band .main__container_pathway.pathway-gh-inner {
  width: 100% !important;
  max-width: 920px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1rem, 4vw, 2rem) !important;
  padding-right: clamp(1rem, 4vw, 2rem) !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
.pathway-gh-hero-band .pathway-gh-org {
  margin: 0 0 0.35rem !important;
  padding: 0 !important;
  color: #2f7194 !important;
  font-weight: 600 !important;
  font-size: clamp(1.02rem, 0.35vw + 0.95rem, 1.14rem) !important;
  letter-spacing: 0.03em !important;
  line-height: 1.45 !important;
  max-width: 42rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  position: relative !important;
  z-index: 1 !important;
}
.pathway-gh-hero-band .pathway-gh-byline {
  margin: 0 0 clamp(0.85rem, 2vw, 1.15rem) !important;
  padding: 0 !important;
  color: #5a6d7a !important;
  font-size: clamp(0.86rem, 0.3vw + 0.82rem, 0.95rem) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  max-width: 38rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  position: relative !important;
  z-index: 1 !important;
}

.main_pathway {
  background-color: #f5f5f5;
  padding: 80px 0;
}

.main__container_pathway {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.brief-section {
  padding: 60px 0;
  background-color: #fff;
}

.brief__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.brief-content-wrapper {
  background-color: #fff;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brief-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #2f7194;
}

.brief-header h2 {
  color: #2f7194;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.brief-day-info {
  color: #666;
  font-size: 16px;
  font-style: italic;
}

.brief-content {
  color: #333;
  font-size: 18px;
  line-height: 1.8;
  text-align: left;
}

.brief-content p {
  margin-bottom: 1rem;
}

/* Choice Modal */
.choice-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.choice-modal__content {
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.choice-modal__content h2 {
  color: #2f7194;
  font-size: 24px;
  margin-bottom: 20px;
}

.choice-modal__content p {
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.choice-modal__buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.choice-button {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 180px;
}

.choice-button--month13 {
  background-color: #2f7194;
  color: #fff;
}

.choice-button--month13:hover {
  background-color: #25608a;
}

.choice-button--restart {
  background-color: #e1e4eb;
  color: #2f7194;
}

.choice-button--restart:hover {
  background-color: #d0d4dc;
}

.choice-button--close {
  background-color: #f5f5f5;
  color: #666;
}

.choice-button--close:hover {
  background-color: #e8e8e8;
}

.choice-button--secondary {
  background-color: #f5f5f5;
  color: #2f7194;
}

.choice-button--secondary:hover {
  background-color: #e8e8e8;
}

.choice-modal__form {
  margin: 20px 0;
}

.choice-modal__input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #e1e4eb;
  border-radius: 8px;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 600;
  color: #2f7194;
}

.choice-modal__input:focus {
  outline: none;
  border-color: #2f7194;
}

.choice-modal__help {
  font-size: 14px;
  color: #999;
  margin-top: 10px;
  margin-bottom: 0;
}

.assigned-number-display {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 2px dashed #2f7194;
}

/* Brief Options */
.brief-options {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e1e4eb;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.brief-option-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background-color: #f5f5f5;
  border: 2px solid #2f7194;
  border-radius: 8px;
  color: #2f7194;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  min-width: 200px;
  justify-content: center;
}

.brief-option-link:hover {
  background-color: #2f7194;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(47, 113, 148, 0.3);
}

.brief-option-icon {
  font-size: 20px;
}

.brief-option-text {
  flex: 1;
  text-align: center;
}

/* Mobile fix for home page button overlap */
@media (max-width: 768px) {
  .main_home .main__logo {
    top: calc(50% - 155px) !important;
  }
  
  .main_home .main__subheading {
    top: calc(50% - 40px) !important;
  }
  
  .main_home .main__subheading h2 {
    font-size: 1.5rem !important;
    margin-bottom: 10px !important;
  }
  
  .main_home .main__button {
    top: calc(50% + 60px) !important;
    bottom: auto !important;
    margin-bottom: 10px !important;
    transform: translate(-50%, -50%) scale(0.6) !important;
    left: 50% !important;
    text-align: center !important;
  }
  
  .main_home .main__content-bottom {
    bottom: auto !important;
    top: calc(50% + 130px) !important;
    transform: translateX(-50%) translateY(-50%) !important;
  }
}

/* iPhone specific fixes (smaller screens) */
@media (max-width: 480px) {
  /* Home page - ensure button is above description */
  .main_home .main__subheading {
    top: calc(50% + 120px) !important;
  }
  
  .main_home .main__subheading h2 {
    font-size: 1.3rem !important;
    margin-bottom: 15px !important;
  }
  
  /* Home page - fix logo and stacking order */
  .main_home .main__container_home {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: 8rem !important;
    padding-bottom: 2rem !important;
  }
  
  .main_home .main__logo {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    width: 80% !important;
    max-width: 300px !important;
    text-align: center !important;
    margin: 1rem auto 1rem auto !important;
    order: 1 !important;
    z-index: 5 !important;
  }
  
  .main_home .main__logo img {
    display: none !important;
  }
  
  .main_home .main__subheading {
    order: 2 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: calc(100vw - 40px) !important;
    margin: 1.5rem auto 1rem auto !important;
    text-align: center !important;
    z-index: 4 !important;
  }
  
  .main_home .main__content-bottom {
    order: 3 !important;
    bottom: auto !important;
    top: auto !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    margin: -2.5rem auto 1rem auto !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    z-index: 3 !important;
  }
  
  .main_home .main__button {
    order: 4 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    scale: 0.9 !important;
    margin: 0.5rem auto !important;
    width: auto !important;
    text-align: center !important;
    z-index: 4 !important;
  }
  
  /* About page - fix stacking order and background logo visibility */
  .main_about {
    background-size: contain !important;
    background-position: center -10px !important;
    background-repeat: no-repeat !important;
    min-height: 500px !important;
    padding-top: 200px !important;
  }
  
  .main_about .main__container_pages {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-top: 0 !important;
    padding-bottom: 2rem !important;
    min-height: 500px !important;
  }
  
  .main_about .main__subheading {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    order: 2 !important;
    margin: 0 auto 1rem auto !important;
    width: calc(100vw - 40px) !important;
    text-align: center !important;
    z-index: 1 !important;
  }
  
  .main_about .main__text_pages {
    margin-bottom: 1.5rem !important;
    position: relative !important;
    margin-top: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    order: 3 !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    padding: 0 15px !important;
    z-index: 1 !important;
  }
  
  /* Pathways page - fix stacking order and background logo visibility */
  .main_pathways {
    background-size: contain !important;
    background-position: 10px top !important;
    background-repeat: no-repeat !important;
    min-height: 500px !important;
    padding-top: 250px !important;
    margin-top: 0 !important;
  }
  
  .main_pathways .main__container_pages {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 2rem !important;
    min-height: 500px !important;
  }
  
  .main_pathways .main__subheading {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    order: 1 !important;
    margin: 0 auto 1rem auto !important;
    width: calc(100vw - 40px) !important;
    text-align: center !important;
    z-index: 2 !important;
  }
  
  .main_pathways .main__text_pages {
    margin-bottom: 1.5rem !important;
    position: relative !important;
    margin-top: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    order: 2 !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    padding: 0 15px !important;
    z-index: 1 !important;
  }
  
  /* Services page - fix description overflow and stacking, background logo visibility */
  .main_services {
    background-size: 125% !important;
    background-position: calc(50% - 40px) 150px !important;
    background-repeat: no-repeat !important;
    min-height: 360px !important;
    padding-top: 130px !important;
    margin-top: -60px !important;
  }
  
  .main_services .main__container_pages {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-top: 0 !important;
    padding-bottom: 2rem !important;
    min-height: 500px !important;
  }
  
  .main_services .main__subheading {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    order: 1 !important;
    margin: 0 auto 1rem auto !important;
    width: calc(100vw - 40px) !important;
    text-align: center !important;
    z-index: 2 !important;
  }
  
  .main_services .main__text_pages {
    max-width: calc(100vw - 40px) !important;
    width: calc(100vw - 40px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 15px !important;
    position: relative !important;
    order: 2 !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    z-index: 1 !important;
  }
  
  /* Contact page - fix background logo visibility and text positioning */
  .main_contact {
    background-size: contain !important;
    background-position: center 80px !important;
    background-repeat: no-repeat !important;
    min-height: 500px !important;
    padding-top: 220px !important;
  }
  
  .main_contact .main__container_pages {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-top: 0 !important;
    padding-bottom: 4rem !important;
    min-height: 500px !important;
  }
  
  .main_contact .main__subheading {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: calc(100vw - 40px) !important;
    margin-top: 7rem !important;
    margin-bottom: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    order: 2 !important;
    z-index: 1 !important;
  }
  
  .main_contact .main__text_pages {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    margin-top: 7rem !important;
    margin-bottom: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 15px !important;
    order: 3 !important;
    z-index: 1 !important;
  }
  
  /* Ensure hero sections stack properly on iPhone */
  .main_pages .main__container_pages {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: 2rem !important;
  }
  
  /* Fix all hero section elements to stack vertically */
  .main_pages .main__logo {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0 auto 1rem auto !important;
    width: auto !important;
    max-width: 80% !important;
    order: 1 !important;
    display: block !important;
  }
  
  .main_pages .main__subheading {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 auto 1rem auto !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    order: 2 !important;
    text-align: center !important;
  }
  
  .main_pages .main__text_pages {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 auto 1rem auto !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    padding: 0 15px !important;
    order: 3 !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
  }
  
  .main_pages .main__button,
  .main_pages .about__button {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 1rem auto !important;
    order: 4 !important;
  }
}

/* Responsive view fixes (481px - 900px) */
@media (min-width: 481px) and (max-width: 900px) {
  /* Contact page responsive fixes */
  .main_contact {
    background-size: contain !important;
    background-position: center 80px !important;
    background-repeat: no-repeat !important;
    min-height: auto !important;
    padding-top: 220px !important;
  }
  
  .main_contact {
    min-height: 500px !important;
  }
  
  .main_contact .main__container_pages {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-top: 0 !important;
    padding-bottom: 3rem !important;
    min-height: 500px !important;
  }
  
  .main_contact .main__subheading {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: calc(100vw - 40px) !important;
    margin: 0 auto 1rem auto !important;
    text-align: center !important;
    order: 2 !important;
    z-index: 1 !important;
  }
  
  .main_contact .main__text_pages {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    margin: 1rem auto !important;
    padding: 0 15px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    z-index: 1 !important;
    order: 3 !important;
  }
}

/* iPhone fixes for contact page */
@media (max-width: 480px) {
  .main_contact .main__container_pages {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: 2rem !important;
  }
  
  .main_contact .main__subheading {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    margin: 1rem auto !important;
    text-align: center !important;
    order: 1 !important;
    z-index: 2 !important;
  }
  
  .main_contact .main__text_pages {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    margin: 1rem auto !important;
    padding: 0 15px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    z-index: 2 !important;
    order: 2 !important;
  }
}

/* Global mobile fix for ALL pages - hero section description text overflow */
@media (max-width: 900px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  .main_home {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100vw !important;
    padding-top: 0px !important;
  }
  
  .main__container_home {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100vw !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
  }
  
  /* Fix for main__content-bottom on ALL pages - keep centered but constrain width */
  .main__content-bottom {
    width: min(75vw, calc(100vw - 30px)) !important;
    max-width: min(75vw, calc(100vw - 30px)) !important;
    padding: 0 10px 2rem 10px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin: 0 !important;
  }
  
  /* Extra specific fix for home page */
  .main_home .main__content-bottom {
    width: min(75vw, calc(100vw - 30px)) !important;
    max-width: min(75vw, calc(100vw - 30px)) !important;
    padding: 0 10px 2rem 10px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin: 0 !important;
  }
  
  .main__content-bottom .main__text {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }
  
  .main__content-bottom .main__text p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 0.5rem 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    display: block !important;
  }
  
  /* Fix for main__text_pages (used on about, services, pathways pages) - keep centered */
  .main__text_pages {
    max-width: min(85vw, calc(100vw - 40px)) !important;
    width: min(85vw, calc(100vw - 40px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    position: relative !important;
    text-align: center !important;
    overflow: hidden !important;
  }
  
  /* Ensure text content doesn't overflow */
  .main__text_pages,
  .main__content-bottom .main__text,
  .main__text_pages p {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .main__text_pages p {
    max-width: 100% !important;
    width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  
  /* Fix pathways page logo and subheading centering */
  .main_pathways .main__subheading {
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
  
  .main_pathways .main__logo {
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
  }
}

/* Partner Options: stack buttons on small screens */
@media (max-width: 700px) {
  .partner-buttons { flex-direction: column !important; align-items: center !important; }
  .partner-buttons > div { width: 100%; max-width: 360px; }
}

/*
 * Desktop header — single row nav (final, high-specificity)
 * Problem: flex + space-between can starve the nav column; ul.menu__list then wraps.
 * Fix: grid gives the nav column minmax(0,1fr) so links + Start Here share remaining width.
 * Uses px breakpoint so behavior matches real “desktop” viewports even if rem MQs differ.
 */
@media screen and (min-width: 768px) {
  .header .header__container {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 1.1rem;
    row-gap: 0;
    flex-wrap: nowrap !important;
    max-width: min(100%, 96rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .header .header__logo {
    justify-self: start;
  }

  .header .header__navigation {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  .header .header__menu.menu,
  .header .header__menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /*
   * Three-part bar: logo (sibling column) | [ 1fr | nav cluster | 1fr + Start Here ]
   * Middle column is auto-width links, centered between flexible side bands; button pinned right.
   */
  .header nav.menu__body.menu__body,
  .header .menu__body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 0.75rem !important;
    row-gap: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .header ul.menu__list {
    grid-column: 2 !important;
    justify-self: center !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.62rem !important;
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  .header .menu__item {
    flex: 0 0 auto !important;
  }

  .header .menu__link {
    font-size: 0.84rem !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }

  .header .menu__body > .actions-header__button {
    grid-column: 3 !important;
    justify-self: end !important;
    align-self: center !important;
    flex: none !important;
    flex-shrink: 0 !important;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }
}

/*
 * Hamburger active between ~768px down to phone — base rules use phone-sized padding/gaps.
 * Half-desktop / tablet (481px–767px): tighter overlay under header; phones (≤480px) unchanged.
 */
@media (max-width: 47.999rem) and (min-width: 481px) {
  .header .menu__body {
    padding: 5.25rem 1.125rem 1.5rem 1.125rem !important;
    row-gap: 1.125rem !important;
  }

  .header .menu__body::before {
    min-height: 4.75rem !important;
  }

  .header .menu__link {
    font-size: 1.125rem !important;
    line-height: 1.35 !important;
  }

  .header .menu__item:not(:last-child) {
    margin-bottom: 0.65rem !important;
  }
}

/*
 * Narrow desktop / tablet fallback:
 * Switch to drawer before the full desktop nav cluster becomes squeezed/clipped.
 */
@media screen and (min-width: 768px) and (max-width: 1400px) {
  .header .header__container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  .header .header__navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  .header .header__menu.menu,
  .header .header__menu {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  .header .menu__body {
    background-color: #fff !important;
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    padding: 5.75rem 1.125rem 1.75rem 1.125rem !important;
    overflow: auto !important;
    display: flex !important;
    flex-direction: column !important;
    row-gap: 1.25rem !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    z-index: 10010 !important;
  }

  .header .menu__body::before {
    content: "" !important;
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    min-height: 4.75rem !important;
    background-color: #fff !important;
    border-bottom: 1px solid #000 !important;
    z-index: 2 !important;
  }

  .menu-open .header .menu__body {
    left: 0 !important;
  }

  .menu-open .header .menu__body::before {
    left: 0 !important;
  }

  .header .menu__list {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    gap: 0.9rem !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
  }

  .header .menu__item {
    text-align: left !important;
    margin: 0 !important;
  }

  .header .menu__item:not(:last-child) {
    margin-bottom: 0 !important;
  }

  .header .menu__link {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }

  .header .menu__body > .actions-header__button {
    align-self: flex-start !important;
    justify-self: auto !important;
    grid-column: auto !important;
    margin-top: 0.35rem !important;
  }

  .header .header__actions.actions-header {
    display: flex !important;
    align-items: center !important;
  }

  .header .icon-menu {
    display: block !important;
    position: relative !important;
    flex: 0 0 1.875rem !important;
    width: 1.875rem !important;
    height: 1.125rem !important;
    cursor: pointer !important;
    z-index: 10020 !important;
  }

  /* Use the exact JS-driven open state (body.menu-open) */
  body.menu-open .menu__body {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    padding: 90px 24px 24px 24px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body.menu-open .menu__body::before {
    left: 0 !important;
  }

  body.menu-open .menu__list {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    grid-column: auto !important;
    justify-self: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    gap: 0 !important;
  }

  body.menu-open .menu__item {
    display: block !important;
    width: 100% !important;
    margin: 0 0 16px 0 !important;
    text-align: left !important;
  }

  body.menu-open .menu__link {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    white-space: normal !important;
  }
}

/*
 * Tier pages (absolute header): first heading must clear the fixed header.
 * Uses max(11rem, 12vh + 6rem) for two-row nav; -18px tightens the visible title band on grief-brief pages.
 */
main.page.footing-page,
main.page.steady-page,
main.page.going-forward-page,
main.page.passing-page {
  padding-top: calc(max(11rem, 12vh + 6rem) - 18px) !important;
  padding-right: 0 !important;
  padding-bottom: 3rem !important;
  padding-left: 0 !important;
  box-sizing: border-box;
}

main.page.footing-page .footing-title,
main.page.steady-page .steady-title,
main.page.going-forward-page .going-forward-title,
main.page.passing-page .passing-title {
  scroll-margin-top: 1rem;
  padding-top: 0.15em;
}

/* Pathway 1–9 & Pathway 7 (specialty-briefs): in-page anchors clear the header bar */
main.page.pathway-site-page {
  scroll-padding-top: calc(max(5.5rem, 10vh + 2rem));
}

/* ========== Tighten vertical space site-wide (COMMENTED OUT – was affecting whole site) ========== */
/*
section {
  padding-top: 56px;
  padding-bottom: 56px;
}
@media (max-width: 768px) {
  section {
    padding-top: 42px;
    padding-bottom: 42px;
  }
}

h2 {
  margin-bottom: 14px;
}
.section-subtitle,
.subtitle {
  margin-bottom: 18px;
}

.card,
.tile,
.box {
  padding: 18px;
}
.card p {
  margin: 10px 0;
  line-height: 1.45;
}

.workflow-step,
.step-box {
  margin: 14px auto;
}
.workflow-arrow,
.step-arrow {
  margin: 10px 0;
}

.benefits li,
.why-list li {
  padding: 10px 0;
}
*/