/* The Puzzle Paper brand layer, v1
   Colors: cream, bright blue, navy, terracotta. Font: Outfit.
   Loaded after Divi's own styles so it overrides them. Remove the
   require in functions.php to switch this off entirely. */

:root {
  --pp-cream: #FAF2E3;
  --pp-blue: #0450C2;
  --pp-navy: #0B2447;
  --pp-terracotta: #DB6B4A;
  --pp-blue-dark: #033C94;
}

/* ---- Base ---- */
body,
#page-container,
#main-content,
#main-content .container:before {
  background-color: #FFFFFF !important;
}

body,
body p,
body li,
body td,
body th,
body label,
body input,
body textarea,
body select,
.et_pb_text,
.et_pb_blurb_description,
.et_pb_module,
.et_pb_post .post-content,
.entry-content {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 400 !important;
}

/* Default text color only; colors set inside Divi modules are left alone,
   so white-on-dark sections keep working. */
body {
  color: var(--pp-navy);
}

/* ---- Headings: Outfit Bold ---- */
h1, h2, h3, h4, h5, h6,
.entry-title,
.et_pb_module_header,
.et_pb_module_header a,
.et_pb_slide_title,
.et_pb_slide_title a,
.et_pb_widget_area .widgettitle,
#main-footer .widget-title,
.et_pb_post .entry-title a {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  color: var(--pp-navy);
}

/* ---- Home hero (first section, over the video): all white ---- */
body.home .et_pb_section_0 .et_pb_text,
body.home .et_pb_section_0 .et_pb_text *,
body.home .et_pb_section_0 .et_pb_text h1,
body.home .et_pb_section_0 .et_pb_text h2,
body.home .et_pb_section_0 .et_pb_text h3,
body.home .et_pb_section_0 .et_pb_text h4,
body.home .et_pb_section_0 .et_pb_text p,
body.home .et_pb_section_0 .et_pb_text a,
body.home .et_pb_section_0 .et_pb_text strong,
body.home .et_pb_section_0 .et_pb_text span {
  color: #FFFFFF !important;
}

/* ---- Stats row (number counters and their labels): bright blue ---- */
.et_pb_number_counter,
.et_pb_number_counter .percent,
.et_pb_number_counter .percent p,
.et_pb_number_counter .percent-value,
.et_pb_number_counter h3,
.et_pb_number_counter .title,
.et_pb_column:has(.et_pb_number_counter) .et_pb_text,
.et_pb_column:has(.et_pb_number_counter) .et_pb_text h3,
.et_pb_column:has(.et_pb_number_counter) .et_pb_text h3 * {
  color: var(--pp-cream) !important;
}
/* The stats band itself: bright blue background, full width */
body #page-container #et-boc .et_pb_section:has(.et_pb_number_counter) {
  background-color: var(--pp-blue) !important;
  background-image: none !important;
}
body #page-container #et-boc .et_pb_section:has(.et_pb_number_counter) .et_pb_row {
  background-color: transparent !important;
}
/* Each stat gets its own translucent, rounded panel */
body #page-container #et-boc .et_pb_section:has(.et_pb_number_counter) .et_pb_column:has(.et_pb_number_counter) {
  background-color: rgba(250, 242, 227, 0.12) !important;
  border: 1px solid rgba(250, 242, 227, 0.18);
  border-radius: var(--pp-radius-lg);
  padding: 28px 16px 24px !important;
  text-align: center;
}
body #page-container #et-boc .et_pb_section:has(.et_pb_number_counter) .et_pb_column:has(.et_pb_number_counter) .et_pb_module {
  margin-bottom: 6px !important;
}
body #page-container #et-boc .et_pb_section:has(.et_pb_number_counter) .et_pb_column:has(.et_pb_number_counter) .et_pb_module:last-child {
  margin-bottom: 0 !important;
}

/* ---- Links ---- */
#main-content a,
.entry-content a,
.et_pb_text a {
  color: var(--pp-blue);
}
#main-content a:hover,
.entry-content a:hover,
.et_pb_text a:hover {
  color: var(--pp-blue-dark);
}

/* ---- Header and navigation ---- */
#main-header,
#main-header.et-fixed-header,
#et-top-navigation,
#top-header,
.et_nav_text_color_dark #top-menu li a {
  background-color: var(--pp-cream) !important;
}
#top-menu li a,
#top-menu-nav a,
.et_mobile_menu li a,
#et-info,
#et-info a {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 400 !important;
  color: var(--pp-navy) !important;
}
#top-menu li.current-menu-item > a,
#top-menu li a:hover,
.et_mobile_menu li a:hover {
  color: var(--pp-blue) !important;
  opacity: 1 !important;
}
#top-menu li.current-menu-item > a {
  border-bottom: 3px solid var(--pp-terracotta);
}
.nav li ul,
#et-secondary-nav li ul,
.et_mobile_menu {
  background-color: var(--pp-cream) !important;
  border-top-color: var(--pp-terracotta) !important;
}

/* ---- Header: logo, menu and social icon centered on one line (desktop) ---- */
@media (min-width: 981px) {
  /* Theme Builder header */
  .et-l--header .et_pb_row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  .et-l--header .et_pb_column {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
  }
  .et-l--header .et_pb_module {
    margin-bottom: 0 !important;
  }
  .et-l--header .et_pb_menu .et_pb_menu__wrap,
  .et-l--header .et_pb_menu .et_pb_menu_inner_container,
  .et-l--header .et_pb_menu .et_pb_menu__menu {
    align-items: center !important;
  }
  .et-l--header .et_pb_menu .et-menu > li > a,
  .et-l--header .et_pb_menu .et-menu-nav > ul > li > a {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .et-l--header .et_pb_social_media_follow {
    margin: 0 !important;
  }
  .et-l--header .et_pb_image,
  .et-l--header .et_pb_image .et_pb_image_wrap {
    display: block;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Standard Divi header */
  #main-header .container {
    display: flex !important;
    align-items: center !important;
  }
  #main-header #logo {
    margin: 0 !important;
  }
  #main-header #et-top-navigation {
    display: flex !important;
    align-items: center !important;
    padding-top: 0 !important;
    float: none !important;
  }
  #main-header #top-menu > li > a {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* ---- Link-button text modules ("Read more", "View more"): flat color, no green circle ---- */
.et_pb_text.et_clickable:before,
.et_pb_text.et_clickable:after,
.et_pb_text.et_clickable::before,
.et_pb_text.et_clickable::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* ---- "JOIN US" style linked headings: navy, bright blue on hover ---- */
.et_pb_text.et_clickable h3,
.et_pb_text.et_clickable h3 * {
  color: var(--pp-navy) !important;
  transition: color 0.2s ease;
}
.et_pb_text.et_clickable:hover h3,
.et_pb_text.et_clickable:hover h3 *,
.et_pb_text.et_clickable h3:hover,
.et_pb_text.et_clickable h3:hover * {
  color: var(--pp-blue) !important;
}

/* ---- Header bottom fade: transparent instead of cream ---- */
#main-header,
#main-header.et-fixed-header,
.et-l--header,
.et-l--header .et_pb_section,
.et-l--header .et_pb_row {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}
#main-header:before,
#main-header:after,
.et-l--header .et_pb_section:before,
.et-l--header .et_pb_section:after {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
/* Catch-all: no shadows or gradient strips on the header or its contents */
header,
header *,
#main-header *,
.et-l--header *,
.et-l--header *:before,
.et-l--header *:after {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  text-shadow: none !important;
}
/* ...and none on sections/rows, in case the strip is the first section's shadow */
.et_pb_section,
.et_pb_row {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}
#main-content:before,
#main-content:after,
#et-main-area:before,
#et-main-area:after,
#page-container:before,
#page-container:after,
.et-l--body:before,
.et-l--body:after {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Menu icon color only. Divi's own icon-font rules are left untouched. */
.mobile_menu_bar:before {
  color: var(--pp-navy) !important;
}

/* ---- Icons: load Divi's complete icon font under our own name, so menu and
   social icons always have every symbol (Divi sometimes serves a stripped-down
   copy that is missing them) ---- */
@font-face {
  font-family: 'PPIcons';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../core/admin/fonts/modules/all/modules.woff') format('woff'),
       url('../core/admin/fonts/modules/all/modules.ttf') format('truetype');
}
.mobile_menu_bar:before,
.et_pb_menu .mobile_menu_bar:before,
.et_pb_social_media_follow li a.icon:before,
.et_pb_social_icon a.icon:before,
.et-social-icon a.icon:before,
.et_pb_toggle_title:before,
.et-menu .menu-item-has-children > a:first-child:after,
.et_pb_button:after,
.et_pb_button:before {
  font-family: 'PPIcons' !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

/* ---- Organic, modern details (shared by every page) ---- */
.et_pb_image img,
.et_pb_image .et_pb_image_wrap,
.et_pb_video,
.et_pb_video_box,
.et_pb_video_overlay,
.dsm_image_hotspots img,
.dsm_image_carousel img,
.et_pb_gallery_image img {
  border-radius: 16px;
  overflow: hidden;
}
.et_pb_text.et_clickable {
  border-radius: 999px;
}
.et_pb_button {
  border-radius: 999px !important;
  letter-spacing: 0.04em;
}
.et_pb_button:hover {
  transform: translateY(-1px);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* ---- Safety net: register Divi's icon fonts ourselves under their normal names,
   so blurb and other icons still draw if Divi's own copy fails to load ---- */
@font-face {
  font-family: 'FontAwesome';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../core/admin/fonts/fontawesome/fa-regular-400.woff2') format('woff2'),
       url('../core/admin/fonts/fontawesome/fa-regular-400.woff') format('woff');
}
@font-face {
  font-family: 'FontAwesome';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../core/admin/fonts/fontawesome/fa-solid-900.woff2') format('woff2'),
       url('../core/admin/fonts/fontawesome/fa-solid-900.woff') format('woff');
}
@font-face {
  font-family: 'ETmodules';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../core/admin/fonts/modules/all/modules.woff') format('woff'),
       url('../core/admin/fonts/modules/all/modules.ttf') format('truetype');
}

/* ---- Buttons ---- */
.et_pb_button,
.et_pb_button_module_wrapper .et_pb_button,
.et_pb_promo_button,
.et_pb_more_button,
.et_pb_newsletter_button,
.comment-reply-link,
#submit,
button,
input[type="submit"],
.woocommerce a.button {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 400 !important;
  background-color: var(--pp-blue) !important;
  color: var(--pp-cream) !important;
  border-color: var(--pp-blue) !important;
  border-radius: 6px;
}
.et_pb_button:hover,
.et_pb_promo_button:hover,
.et_pb_more_button:hover,
.et_pb_newsletter_button:hover,
#submit:hover,
button:hover,
input[type="submit"]:hover {
  background-color: var(--pp-navy) !important;
  border-color: var(--pp-navy) !important;
  color: var(--pp-cream) !important;
}

/* ---- Button variant for dark (navy) sections ---- */
.et_pb_button.pp-btn-terracotta,
.pp-btn-terracotta .et_pb_button,
.pp-btn-terracotta.et_pb_button_module_wrapper .et_pb_button {
  background-color: var(--pp-terracotta) !important;
  border-color: var(--pp-terracotta) !important;
  color: var(--pp-navy) !important;
  font-weight: 700 !important;
}
.et_pb_button.pp-btn-terracotta:hover,
.pp-btn-terracotta .et_pb_button:hover,
.pp-btn-terracotta.et_pb_button_module_wrapper .et_pb_button:hover {
  background-color: var(--pp-cream) !important;
  border-color: var(--pp-cream) !important;
  color: var(--pp-navy) !important;
}

/* ---- Accents ---- */
.et_pb_divider:before,
.et_pb_widget_area .et_pb_widget a:hover {
  border-top-color: var(--pp-terracotta) !important;
}
.et_pb_tabs_controls li.et_pb_tab_active a,
.et_pb_toggle_title:before {
  color: var(--pp-terracotta) !important;
}
::selection {
  background: var(--pp-terracotta);
  color: var(--pp-navy);
}

/* ---- Forms ---- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select,
.et_pb_contact_field input,
.et_pb_contact_field textarea {
  background-color: #fff !important;
  border: 1px solid var(--pp-navy) !important;
  color: var(--pp-navy) !important;
  border-radius: 6px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--pp-blue) !important;
  outline: 2px solid var(--pp-blue);
  outline-offset: 1px;
}

/* ================= Mobile and tablet ================= */
img, video, iframe, embed {
  max-width: 100%;
}
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Tablet and below: one compact header line (logo left, icons and menu right) */
@media (max-width: 980px) {
  .et-l--header .et_pb_row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    width: 92% !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .et-l--header .et_pb_column {
    width: auto !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  .et-l--header .et_pb_column:first-child {
    flex: 1 1 auto;
    order: 1;
  }
  .et-l--header .et_pb_column.et-last-child {
    order: 2;
    margin-right: 12px !important;
  }
  .et-l--header .et_pb_column--with-menu {
    order: 3;
  }
  .et-l--header .et_pb_module {
    margin-bottom: 0 !important;
  }
  .et-l--header img {
    max-height: 56px;
    width: auto !important;
  }
  /* Let the opened mobile menu span the full header width */
  .et-l--header .et_pb_column,
  .et-l--header .et_pb_module,
  .et-l--header .et_pb_menu,
  .et-l--header .et_pb_menu_inner_container,
  .et-l--header .et_pb_menu__wrap,
  .et-l--header .et_pb_menu .mobile_nav {
    position: static !important;
  }
  .et-l--header .et_pb_menu .et_mobile_menu {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }
  .et-l--header .et_pb_menu .et_mobile_menu li a {
    padding: 14px 5% !important;
    font-size: 18px !important;
  }
  .et-l--header .mobile_menu_bar:before {
    font-size: 34px !important;
    padding: 6px;
  }
}

/* Phones */
@media (max-width: 767px) {
  h1 { font-size: clamp(30px, 9vw, 44px) !important; line-height: 1.15em !important; }
  h2 { font-size: clamp(26px, 7.5vw, 38px) !important; line-height: 1.2em !important; }
  h3 { font-size: clamp(20px, 5.5vw, 28px) !important; line-height: 1.25em !important; }

  .et_pb_text p,
  .et_pb_text li,
  .et_pb_blurb_description {
    font-size: clamp(16px, 4.4vw, 18px) !important;
    line-height: 1.6em !important;
  }

  /* Comfortable tap targets */
  .et_pb_button,
  .et_pb_promo_button,
  .et_pb_newsletter_button,
  button,
  input[type="submit"] {
    min-height: 48px;
    padding: 14px 28px !important;
    line-height: 1.2em !important;
  }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px !important; /* stops iOS zoom on focus */
    min-height: 48px;
  }

  /* Stats row: smaller numbers so they never overflow */
  .et_pb_number_counter .percent p,
  .et_pb_number_counter .percent-value {
    font-size: clamp(40px, 12vw, 64px) !important;
    line-height: 1.1em !important;
  }

  /* Footer: roomier, centered stacking */
  #main-footer,
  #footer-bottom,
  #footer-info {
    text-align: center;
  }
}

/* ================= Organic / modern elements (matches Join Us) ================= */
:root {
  --pp-radius: 16px;
  --pp-radius-lg: 24px;
}

/* Large photos and videos get soft rounded corners (small logos are left square) */
#main-content .et_pb_column_1_2 .et_pb_image img,
#main-content .et_pb_column_2_3 .et_pb_image img,
#main-content .et_pb_column_3_4 .et_pb_image img,
#main-content .et_pb_column_4_4 .et_pb_image img,
#main-content .et_pb_column_1_3 .et_pb_image img,
#main-content .et_pb_column_1_2 .et_pb_image .et_pb_image_wrap,
#main-content .et_pb_column_2_3 .et_pb_image .et_pb_image_wrap,
#main-content .et_pb_column_3_4 .et_pb_image .et_pb_image_wrap,
#main-content .et_pb_column_4_4 .et_pb_image .et_pb_image_wrap {
  border-radius: var(--pp-radius);
  overflow: hidden;
}
#main-content .et_pb_video,
#main-content .et_pb_video_box,
#main-content .et_pb_video .et_pb_video_overlay,
#main-content .et_pb_video video,
#main-content .et_pb_video iframe,
#main-content .et_pb_map_container,
#main-content .et_pb_map {
  border-radius: var(--pp-radius);
  overflow: hidden;
}

/* Buttons: pill shape everywhere */
.et_pb_button,
.et_pb_promo_button,
.et_pb_newsletter_button,
#submit,
input[type="submit"],
button {
  border-radius: 999px !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}
.et_pb_button:hover,
.et_pb_promo_button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
}

/* Reusable card: add the CSS class pp-card to any Divi module or row */
.pp-card {
  background-color: #FFFFFF;
  border-radius: var(--pp-radius);
  border-left: 4px solid var(--pp-terracotta);
  padding: 28px 32px;
}
.pp-card.pp-card-cream {
  background-color: var(--pp-cream);
}

/* Quotes and callouts */
blockquote,
.et_pb_testimonial {
  background-color: var(--pp-cream);
  border-left: 4px solid var(--pp-terracotta) !important;
  border-radius: 0 var(--pp-radius) var(--pp-radius) 0;
  padding: 24px 28px !important;
}

/* Blurbs, accordions, tabs, pricing and blog cards share the same soft shape */
#main-content .et_pb_toggle,
#main-content .et_pb_tabs,
#main-content .et_pb_pricing_table,
#main-content .et_pb_post,
#main-content .et_pb_blog_grid .column,
#main-content .et_pb_contact_form_container {
  border-radius: var(--pp-radius);
  overflow: hidden;
}
#main-content .et_pb_toggle {
  border: 1px solid rgba(11, 36, 71, 0.15);
  background-color: #FFFFFF;
  margin-bottom: 14px;
}
#main-content .et_pb_post {
  background-color: #FFFFFF;
  border: 1px solid rgba(11, 36, 71, 0.1);
}

/* Gentle lift on photos and linked cards */
#main-content .et_pb_image,
#main-content .et_pb_text.et_clickable,
#main-content .et_pb_blurb {
  transition: transform 0.25s ease;
}
@media (hover: hover) {
  #main-content .et_pb_image:hover,
  #main-content .et_pb_text.et_clickable:hover,
  #main-content .et_pb_blurb:hover {
    transform: translateY(-4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #main-content .et_pb_image,
  #main-content .et_pb_text.et_clickable,
  #main-content .et_pb_blurb,
  .et_pb_button {
    transition: none !important;
    transform: none !important;
  }
}

/* Section eyebrow labels (small spaced-out headings like SPONSORS) */
#main-content .et_pb_text h4 {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700 !important;
}

/* Desktop menu: soft terracotta underline on the current page */
@media (min-width: 981px) {
  .et-l--header .et_pb_menu .et-menu > li.current-menu-item > a,
  .et-l--header .et_pb_menu .et-menu > li > a:hover {
    text-decoration: underline;
    text-decoration-color: var(--pp-terracotta);
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
    text-decoration-skip-ink: none;
  }
}

/* ---- Icon blurbs (e.g. "Be found all around"): properly centered ---- */
.et_pb_blurb .et_pb_blurb_content,
.et_pb_blurb .et_pb_blurb_container,
.et_pb_blurb .et_pb_module_header,
.et_pb_blurb .et_pb_module_header a,
.et_pb_blurb .et_pb_blurb_description {
  text-align: center !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.et_pb_blurb .et_pb_blurb_content {
  max-width: 100% !important;
}
.et_pb_blurb .et_pb_main_blurb_image,
.et_pb_blurb .et_pb_image_wrap {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* On phones, center the whole advertising-style section, headline block included */
@media (max-width: 767px) {
  .et_pb_section:has(.et_pb_blurb) .et_pb_text,
  .et_pb_section:has(.et_pb_blurb) .et_pb_text h1,
  .et_pb_section:has(.et_pb_blurb) .et_pb_text h2,
  .et_pb_section:has(.et_pb_blurb) .et_pb_text h3,
  .et_pb_section:has(.et_pb_blurb) .et_pb_text h4,
  .et_pb_section:has(.et_pb_blurb) .et_pb_text p {
    text-align: center !important;
  }
  .et_pb_section:has(.et_pb_blurb) .et_pb_text.et_clickable {
    display: block !important;
    width: fit-content;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ---- Headings under icons: force true centering whatever offset the module applies ---- */
.et_pb_section:has(.et-pb-icon) h3,
.et_pb_section:has(.et-pb-icon) h3 > *,
.et_pb_section:has(.et-pb-icon) .et_pb_module_header,
.et_pb_section:has(.et-pb-icon) .et_pb_module_header > * {
  display: block;
  float: none !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  text-indent: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: center !important;
}

/* ---- Quote bars (About Us): bright blue band, cream text, full width ---- */
.pp-quote.et_pb_row {
  width: 100% !important;
  max-width: 100% !important;
  background-color: var(--pp-blue) !important;
}
.pp-quote h1,
.pp-quote .et_pb_text h1 {
  color: var(--pp-cream) !important;
}
@media (max-width: 767px) {
  .pp-quote h1,
  .pp-quote .et_pb_text h1 {
    font-size: clamp(22px, 6.2vw, 30px) !important;
    line-height: 1.35em !important;
  }
}

/* ---- Home hero video parallax (script in brand.js moves the layer) ---- */
@media (min-width: 768px) {
  body.home .et_pb_section_0 {
    overflow: hidden;
  }
  body.home .et_pb_section_0 > .et_pb_section_video_bg {
    height: 160% !important;
    top: -60% !important;
    will-change: transform;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.home .et_pb_section_0 > .et_pb_section_video_bg {
    height: 100% !important;
    top: 0 !important;
    transform: none !important;
  }
}

/* ================= Phone spacing: tighter rhythm ================= */
@media (max-width: 767px) {
  /* Sections (home hero and the header are left alone) */
  body:not(.home) #et-boc .et_pb_section:not(.et_pb_section_0_tb_header),
  body.home #et-boc .et_pb_section:not(.et_pb_section_0):not(.et_pb_section_0_tb_header) {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }
  /* Rows, columns and modules */
  #et-boc .et_pb_section:not(.et_pb_section_0_tb_header) .et_pb_row {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  #et-boc .et_pb_section:not(.et_pb_section_0_tb_header) .et_pb_column {
    margin-bottom: 20px !important;
  }
  #et-boc .et_pb_section:not(.et_pb_section_0_tb_header) .et_pb_module {
    margin-bottom: 18px !important;
  }
  #et-boc .et_pb_column .et_pb_module:last-child {
    margin-bottom: 0 !important;
  }
  .et_pb_text p {
    padding-bottom: 0.6em !important;
  }

  /* Footer */
  .et-l--footer .et_pb_section {
    padding-top: 36px !important;
    padding-bottom: 24px !important;
  }
  .et-l--footer .et_pb_row {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  .et-l--footer .et_pb_blurb,
  .et-l--footer .et_pb_text {
    margin-bottom: 10px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .et-l--footer .et_pb_blurb .et_pb_blurb_content,
  .et-l--footer .et_pb_blurb .et_pb_blurb_container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .et-l--footer .et_pb_social_media_follow {
    text-align: center;
  }
  .et-l--footer .et_pb_social_media_follow li {
    margin-bottom: 0 !important;
  }
}

/* ================= Facebook / social icons: brand colors ================= */
.et-l--header .et_pb_social_media_follow li a.icon,
.et-l--footer .et_pb_social_media_follow li a.icon,
#main-content .et_pb_social_media_follow li a.icon {
  background-color: var(--pp-blue) !important;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}
.et-l--header .et_pb_social_media_follow li a.icon:before,
.et-l--footer .et_pb_social_media_follow li a.icon:before,
#main-content .et_pb_social_media_follow li a.icon:before {
  color: var(--pp-cream) !important;
}
.et-l--header .et_pb_social_media_follow li a.icon:hover,
.et-l--footer .et_pb_social_media_follow li a.icon:hover,
#main-content .et_pb_social_media_follow li a.icon:hover {
  background-color: var(--pp-terracotta) !important;
}
.et-l--header .et_pb_social_media_follow li a.icon:hover:before,
.et-l--footer .et_pb_social_media_follow li a.icon:hover:before {
  color: var(--pp-navy) !important;
}

/* ================= Logos: never clipped ================= */
.et-l--header .et_pb_image,
.et-l--header .et_pb_image .et_pb_image_wrap,
.et-l--footer .et_pb_image,
.et-l--footer .et_pb_image .et_pb_image_wrap {
  overflow: visible !important;
  border-radius: 0 !important;
  clip-path: none !important;
}
.et-l--header .et_pb_image img,
.et-l--footer .et_pb_image img {
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.et-l--footer .et_pb_image img {
  width: auto !important;
  max-height: 120px;
}

/* ---- Phones and tablets: no empty spacer columns, compact logo carousel ---- */
@media (max-width: 980px) {
  .et_pb_column.et_pb_column_empty {
    display: none !important;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
  [class*="dsm_image_carousel"],
  [class*="dsm_image_carousel"] .swiper-container,
  [class*="dsm_image_carousel"] .swiper,
  [class*="dsm_image_carousel"] .swiper-wrapper,
  [class*="dsm_image_carousel"] .swiper-slide {
    height: auto !important;
    min-height: 0 !important;
  }
  [class*="dsm_image_carousel"] .swiper-slide img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 110px;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
  }
}

/* ---- Full-bleed photo band (home: "Every moment is precious"): photo fills the left half ---- */
body #page-container #et-boc .et_pb_section.pp-flush {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
}
body #page-container #et-boc .et_pb_section.pp-flush .et_pb_row {
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
/* No stray gap under any column inside a full-bleed photo section */
body #page-container #et-boc .et_pb_section.pp-flush .et_pb_column {
  margin-bottom: 0 !important;
}
body #page-container #et-boc .et_pb_section.pp-flush .et_pb_column > .et_pb_module:last-child {
  margin-bottom: 0 !important;
}
.et_pb_column.pp-photo-col {
  min-height: 560px;
  margin-bottom: 0 !important;
  overflow: hidden;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
/* The Read more button keeps its own width instead of stretching across the column */
body #page-container #et-boc .et_pb_section.pp-flush .et_pb_text.et_clickable {
  align-self: center !important;
  width: auto !important;
}
@media (max-width: 980px) {
  /* an empty column is normally hidden on small screens; this one is the photo */
  .et_pb_column.et_pb_column_empty.pp-photo-col {
    display: block !important;
    min-height: 300px !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }
}

/* ---- Footer ---- */
#main-footer,
#footer-bottom {
  background-color: var(--pp-navy) !important;
}
#main-footer,
#main-footer p,
#main-footer li,
#main-footer a,
#footer-info,
#footer-info a,
#footer-bottom,
#footer-bottom a,
#footer-widgets .footer-widget a {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 400 !important;
  color: var(--pp-cream) !important;
}
#main-footer a:hover,
#footer-bottom a:hover {
  color: var(--pp-terracotta) !important;
}
#main-footer h1, #main-footer h2, #main-footer h3,
#main-footer h4, #main-footer h5, #main-footer h6,
#main-footer .widget-title {
  color: var(--pp-cream) !important;
}
