/* Trinity Food &amp; Beverage: inner-page header refresh */
body:not(.home) header.wp-block-template-part {
  padding-bottom: 18px;
}

body:not(.home) header.wp-block-template-part .main-header {
  width: calc(100% - 40px);
  max-width: 1860px;
  margin: 18px auto 0 !important;
  padding: 12px 28px !important;
  background: #fff !important;
  border: 1px solid rgba(38, 60, 40, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(38, 60, 40, 0.10);
}

body:not(.home) header.wp-block-template-part .header-inner-box {
  width: 100%;
  max-width: 95% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body:not(.home) header.wp-block-template-part .header-menu,
body:not(.home) header.wp-block-template-part .header-menu a,
body:not(.home) header.wp-block-template-part .header-phone,
body:not(.home) header.wp-block-template-part .header-phone a,
body:not(.home) header.wp-block-template-part .wp-block-navigation__responsive-container-open {
  color: #263c28 !important;
}

body:not(.home) header.wp-block-template-part .header-search .wp-block-search__button,
body:not(.home) header.wp-block-template-part .header-cart a {
  background-color: #5b8c51 !important;
  color: #fff !important;
}

/* Header: remove search and keep the remaining actions balanced */
header.wp-block-template-part .header-search {
  display: none !important;
}

header.wp-block-template-part .header-right-box {
  display: flex !important;
  align-items: center;
  justify-content: flex-end !important;
  gap: 14px;
}

body:not(.home) header.wp-block-template-part .header-btn .wp-block-button__link {
  background-color: #f7c35f !important;
  color: #263c28 !important;
}

/* PCQI Part 2: focused, image-free registration page */
body.single-product.postid-161 {
  background: #f8f7f0;
}

body.single-product.postid-161 .inner-cover-img,
body.single-product.postid-161 .wc-block-breadcrumbs,
body.single-product.postid-161 .wp-block-woocommerce-product-image-gallery,
body.single-product.postid-161 #primary > .wp-block-columns.alignwide > .wp-block-column[style*="512px"],
body.single-product.postid-161 .product_meta,
body.single-product.postid-161 .wp-block-woocommerce-product-meta,
body.single-product.postid-161 .reviews_tab,
body.single-product.postid-161 #tab-reviews {
  display: none !important;
}

body.single-product.postid-161 #primary {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: clamp(38px, 6vw, 76px) !important;
  padding-bottom: clamp(50px, 7vw, 88px) !important;
}

body.single-product.postid-161 #primary > .wp-block-columns.alignwide {
  display: block !important;
  width: calc(100% - 32px);
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: clamp(28px, 5vw, 58px) !important;
  background: #fff;
  border: 1px solid rgba(9, 82, 111, 0.09);
  border-top: 6px solid #20b8b3;
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(25, 64, 74, 0.11);
}

body.single-product.postid-161 #primary > .wp-block-columns.alignwide > .wp-block-column:last-child {
  width: 100%;
  flex-basis: 100% !important;
}

body.single-product.postid-161 .wp-block-post-title {
  max-width: 760px;
  margin-top: 0;
  margin-bottom: 18px;
  color: #0b526f;
  font-size: clamp(2rem, 4vw, 3.25rem) !important;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

body.single-product.postid-161 .wp-block-woocommerce-product-price {
  display: inline-flex;
  margin: 4px 0 24px;
  padding: 10px 18px;
  color: #0b526f;
  background: #eaf8f7;
  border-radius: 999px;
  font-size: 1.6rem !important;
  font-weight: 800;
}

body.single-product.postid-161 .wp-block-post-excerpt {
  max-width: 760px;
  color: #34484a;
  font-size: 1.08rem;
  line-height: 1.75;
}

body.single-product.postid-161 .wp-block-add-to-cart-form {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #dfe9e7;
}

body.single-product.postid-161 form.cart {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

body.single-product.postid-161 form.cart .quantity .qty {
  width: 78px;
  min-height: 54px;
  border: 1px solid #cbd9d6;
  border-radius: 10px;
  font-size: 1rem;
}

body.single-product.postid-161 form.cart .single_add_to_cart_button {
  min-height: 54px;
  padding: 12px 30px;
  color: #263c28 !important;
  background: #f7c35f !important;
  border-radius: 10px !important;
  font-size: 1rem;
  font-weight: 800;
  text-transform: none;
}

body.single-product.postid-161 form.cart .single_add_to_cart_button:hover,
body.single-product.postid-161 form.cart .single_add_to_cart_button:focus {
  background: #edb548 !important;
}

body.single-product.postid-161 .woocommerce-tabs {
  width: calc(100% - 32px);
  max-width: 920px;
  margin: 28px auto 0;
}

body.single-product.postid-161 .woocommerce-tabs ul.tabs {
  display: none !important;
}

body.single-product.postid-161 #tab-description {
  display: block !important;
  margin: 0;
  padding: clamp(26px, 4vw, 46px);
  color: #34484a;
  background: #fff;
  border: 1px solid rgba(9, 82, 111, 0.09);
  border-radius: 20px;
  box-shadow: 0 12px 38px rgba(25, 64, 74, 0.08);
}

body.single-product.postid-161 #tab-description > h2:first-child {
  display: none;
}

body.single-product.postid-161 #tab-description > h2,
body.single-product.postid-161 #tab-description h2,
body.single-product.postid-161 #tab-description h3 {
  color: #0b526f;
}

body.single-product.postid-161 #tab-description .tfc-course-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

body.single-product.postid-161 #tab-description .tfc-course-facts li {
  margin: 0;
  padding: 15px 17px;
  background: #f2f8f7;
  border-radius: 12px;
}

body.single-product.postid-161 #tab-description .tfc-prerequisite {
  margin: 26px 0;
  padding: 22px 24px;
  background: #fff8e8;
  border-left: 5px solid #f7c35f;
  border-radius: 12px;
}

body.single-product.postid-161 #tab-description .tfc-prerequisite h3 {
  margin-top: 0;
}

body.single-product.postid-161 #tab-description a {
  color: #0b6f86;
  font-weight: 700;
}

/* Contact page: branded, accessible Jetpack form refresh */
body.page-id-32 main#wp--skip-link--target {
  padding-top: clamp(34px, 5vw, 68px) !important;
  padding-bottom: clamp(50px, 7vw, 90px) !important;
}

body.page-id-32 .nfd-wb-forms__form-3 {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 0 !important;
}

body.page-id-32 .nfd-wb-forms__form-3 > .wp-block-group {
  display: grid !important;
  grid-template-columns: minmax(290px, 0.72fr) minmax(0, 1.28fr);
  align-items: stretch !important;
  gap: 0 !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(9, 82, 111, 0.10);
  border-radius: 26px !important;
  box-shadow: 0 22px 65px rgba(25, 64, 74, 0.13);
}

body.page-id-32 .nfd-wb-forms__form-3 .nfd-bg-effect-grid-2 {
  position: relative;
  justify-content: center !important;
  min-height: 590px;
  padding: clamp(38px, 5vw, 62px) !important;
  color: #fff;
  background:
    radial-gradient(circle at 105% 15%, rgba(255,255,255,0.16) 0 90px, transparent 92px),
    radial-gradient(circle at 105% 15%, transparent 0 125px, rgba(255,255,255,0.09) 127px 129px, transparent 131px),
    linear-gradient(145deg, #0a526f 0%, #087b8d 100%) !important;
}

body.page-id-32 .nfd-wb-forms__form-3 .nfd-bg-effect-grid-2::after {
  content: "Food safety • Quality • Training";
  display: inline-flex;
  align-self: flex-start;
  margin-top: 28px;
  padding: 9px 14px;
  color: #fff;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-id-32 .nfd-wb-forms__form-3 .nfd-bg-effect-grid-2 h2 {
  margin: 0 0 14px;
  color: #fff !important;
  font-size: clamp(2.2rem, 4vw, 3.45rem) !important;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

body.page-id-32 .nfd-wb-forms__form-3 .nfd-bg-effect-grid-2 h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin-top: 20px;
  background: #f7c35f;
  border-radius: 999px;
}

body.page-id-32 .nfd-wb-forms__form-3 .nfd-bg-effect-grid-2 p {
  max-width: 330px;
  margin: 0;
  color: rgba(255,255,255,0.88) !important;
  font-size: 1.08rem;
  line-height: 1.75;
}

body.page-id-32 .nfd-wb-forms__form-3 > .wp-block-group > .wp-block-group:last-child {
  display: flex;
  align-items: center;
  padding: clamp(34px, 5vw, 62px) !important;
  background: #fff !important;
}

body.page-id-32 #contact-form-32 {
  width: 100%;
  --jetpack--contact-form--primary-color: #0b526f !important;
  --jetpack--contact-form--background-color: #fff !important;
  --jetpack--contact-form--body-text-color: #34484a !important;
  --jetpack--contact-form--border-color: #cbd9d6 !important;
  --jetpack--contact-form--border-radius: 12px !important;
  --jetpack--contact-form--input-background-fallback: #f8fbfa !important;
  --jetpack--contact-form--input-padding: 14px 16px !important;
  --jetpack--contact-form--input-height: 52px !important;
  --jetpack--contact-form--button-primary--color: #263c28 !important;
  --jetpack--contact-form--button-primary--background-color: #f7c35f !important;
}

body.page-id-32 #contact-form-32 form,
body.page-id-32 #contact-form-32 .nfd-jp-form {
  width: 100%;
  gap: 19px !important;
}

body.page-id-32 #contact-form-32 .nfd-form-items-grow {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px !important;
}

body.page-id-32 #contact-form-32 .nfd-form-items-grow > .grunion-field-wrap {
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}

body.page-id-32 #contact-form-32 .grunion-field-wrap {
  width: 100%;
  margin: 0 !important;
}

body.page-id-32 #contact-form-32 .grunion-field-label:not(.consent) {
  display: block;
  margin-bottom: 7px;
  color: #153f4e;
  font-size: 0.92rem !important;
  font-weight: 750;
  line-height: 1.4 !important;
  letter-spacing: 0.01em;
}

body.page-id-32 #contact-form-32 input[type="text"],
body.page-id-32 #contact-form-32 input[type="email"],
body.page-id-32 #contact-form-32 textarea {
  width: 100% !important;
  color: #243b40;
  background: #f8fbfa !important;
  border: 1px solid #cbd9d6 !important;
  border-radius: 12px !important;
  outline: none;
  box-shadow: 0 1px 2px rgba(25,64,74,0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

body.page-id-32 #contact-form-32 input[type="text"],
body.page-id-32 #contact-form-32 input[type="email"] {
  min-height: 52px;
  padding: 13px 15px !important;
}

body.page-id-32 #contact-form-32 textarea {
  min-height: 180px !important;
  height: 180px;
  padding: 14px 15px !important;
  resize: vertical;
}

body.page-id-32 #contact-form-32 input[type="text"]:focus,
body.page-id-32 #contact-form-32 input[type="email"]:focus,
body.page-id-32 #contact-form-32 textarea:focus {
  background: #fff !important;
  border-color: #20a9aa !important;
  box-shadow: 0 0 0 4px rgba(32,169,170,0.14) !important;
}

body.page-id-32 #contact-form-32 .consent-implicit {
  display: block;
  color: #617276;
  font-size: 0.83rem !important;
  line-height: 1.55 !important;
}

body.page-id-32 #contact-form-32 .nfd-jp-form__submit.wp-block-button {
  width: 100%;
  margin-top: 2px;
}

body.page-id-32 #contact-form-32 .nfd-jp-form__submit .wp-block-button__link {
  width: 100%;
  min-height: 54px;
  padding: 13px 24px !important;
  color: #263c28 !important;
  background: #f7c35f !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 22px rgba(247,195,95,0.24);
  font-size: 1rem;
  font-weight: 800;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

body.page-id-32 #contact-form-32 .nfd-jp-form__submit .wp-block-button__link:hover,
body.page-id-32 #contact-form-32 .nfd-jp-form__submit .wp-block-button__link:focus {
  background: #edb548 !important;
  box-shadow: 0 10px 26px rgba(237,181,72,0.30);
  transform: translateY(-1px);
}

body.page-id-32 #contact-form-32 .contact-form-submission {
  color: #153f4e;
  background: #eaf8f7;
  border: 1px solid #b8e1dd;
  border-radius: 14px;
}

@media (max-width: 781px) {
  body:not(.home) header.wp-block-template-part {
    padding-bottom: 10px;
  }

  body:not(.home) header.wp-block-template-part .main-header {
    width: calc(100% - 20px);
    margin-top: 10px !important;
    padding: 10px 16px !important;
  }

  body:not(.home) header.wp-block-template-part .header-inner-box {
    max-width: 100% !important;
  }

  body:not(.home) header.wp-block-template-part .logo-box img {
    width: 150px !important;
  }

  header.wp-block-template-part .header-right-box {
    justify-content: space-between !important;
  }

  body.single-product.postid-161 #primary > .wp-block-columns.alignwide,
  body.single-product.postid-161 .woocommerce-tabs {
    width: calc(100% - 20px);
  }

  body.single-product.postid-161 #primary > .wp-block-columns.alignwide {
    border-radius: 18px;
  }

  body.single-product.postid-161 form.cart {
    flex-wrap: wrap;
  }

  body.single-product.postid-161 form.cart .single_add_to_cart_button {
    flex: 1;
  }

  body.single-product.postid-161 #tab-description .tfc-course-facts {
    grid-template-columns: 1fr;
  }

  body.page-id-32 main#wp--skip-link--target {
    padding-top: 26px !important;
  }

  body.page-id-32 .nfd-wb-forms__form-3 {
    width: calc(100% - 20px);
  }

  body.page-id-32 .nfd-wb-forms__form-3 > .wp-block-group {
    grid-template-columns: 1fr;
    border-radius: 20px !important;
  }

  body.page-id-32 .nfd-wb-forms__form-3 .nfd-bg-effect-grid-2 {
    min-height: 0;
    padding: 34px 28px !important;
  }

  body.page-id-32 .nfd-wb-forms__form-3 .nfd-bg-effect-grid-2::after {
    margin-top: 20px;
  }

  body.page-id-32 .nfd-wb-forms__form-3 > .wp-block-group > .wp-block-group:last-child {
    padding: 30px 24px 34px !important;
  }

  body.page-id-32 #contact-form-32 .nfd-form-items-grow {
    grid-template-columns: 1fr;
  }

  body.page-id-32 #contact-form-32 textarea {
    min-height: 160px !important;
    height: 160px;
  }
}
