/* =========================================================
   PIVOT CRISIS INTERVENTION
   CANVAS CATALOG CUSTOMIZATION
   ========================================================= */


/* =========================================================
   BRAND VARIABLES
   ========================================================= */

:root {
  --pivot-navy: #1B2A4A;
  --pivot-navy-deep: #131F38;
  --pivot-orange: #E8843A;
  --pivot-orange-dark: #D9702A;
  --pivot-purple: #6C63A6;
  --pivot-lavender: #E7E4F4;

  /* MAIN CREAM COLOR */
  --pivot-cream: #F6F5F2;
  --pivot-cream-top: #F1EEE7;

  --pivot-text: #2B3140;
  --pivot-muted: #6B7280;
  --pivot-line: #E7E5E1;
}


/* =========================================================
   GENERAL
   ========================================================= */

* {
  box-sizing: border-box;
}


/* =========================================================
   HIDE NATIVE CANVAS HEADER
   Only on Pivot storefront homepage
   ========================================================= */

body.pivot-catalog-home #app-header {
  display: none !important;
}


/* =========================================================
   CUSTOM PIVOT HEADER
   ========================================================= */

#pivot-catalog-header {
  position: relative;
  z-index: 20;

  width: 100%;

  background: #ffffff;

  border-bottom: 1px solid var(--pivot-line);
}


#pivot-catalog-header .pivot-header-inner {
  width: 100%;
  max-width: 1540px;

  margin: 0 auto;
  padding: 12px 34px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 28px;
}


/* =========================================================
   DYNAMIC CATALOG LOGO
   ========================================================= */

#pivot-catalog-header .pivot-brand {
  display: flex;
  align-items: center;

  flex: 0 0 auto;

  text-decoration: none !important;
}


#pivot-catalog-header .pivot-logo-image {
  display: block;

  width: auto;
  height: 44px;

  max-width: 300px;

  object-fit: contain;
}


#pivot-catalog-header .pivot-logo-fallback {
  color: var(--pivot-navy);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 700;

  line-height: 1;

  white-space: nowrap;
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

#pivot-catalog-header .pivot-nav {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 28px;

  flex: 1 1 auto;

  min-width: 0;
}


#pivot-catalog-header .pivot-nav a {
  color: var(--pivot-navy) !important;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;

  text-decoration: none !important;

  white-space: nowrap;

  transition:
    color 0.15s ease,
    opacity 0.15s ease;
}


#pivot-catalog-header .pivot-nav a:hover,
#pivot-catalog-header .pivot-nav a:focus {
  color: var(--pivot-orange-dark) !important;
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

#pivot-catalog-header .pivot-header-actions {
  display: flex;
  align-items: center;

  gap: 10px;

  flex: 0 0 auto;
}


#pivot-catalog-header .pivot-header-button {
  min-height: 40px;

  padding: 8px 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;

  line-height: 1;

  white-space: nowrap;

  text-decoration: none !important;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}


/* Student Services */

#pivot-catalog-header .pivot-header-button-outline {
  background: #ffffff;

  color: var(--pivot-orange-dark) !important;

  border: 2px solid var(--pivot-orange);
}


#pivot-catalog-header .pivot-header-button-outline:hover,
#pivot-catalog-header .pivot-header-button-outline:focus {
  background: var(--pivot-orange);

  color: #ffffff !important;
}


/* Login */

#pivot-catalog-header .pivot-header-button-solid {
  background: var(--pivot-orange);

  color: #ffffff !important;

  border: 2px solid var(--pivot-orange);
}


#pivot-catalog-header .pivot-header-button-solid:hover,
#pivot-catalog-header .pivot-header-button-solid:focus {
  background: var(--pivot-orange-dark);

  border-color: var(--pivot-orange-dark);

  color: #ffffff !important;
}


/* =========================================================
   CART
   ========================================================= */

#pivot-catalog-header .pivot-cart {
  width: 40px;
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 40px;

  background: #ffffff;

  border: 1px solid #D9DDE4;
  border-radius: 8px;

  color: var(--pivot-navy) !important;

  text-decoration: none !important;

  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}


#pivot-catalog-header .pivot-cart:hover,
#pivot-catalog-header .pivot-cart:focus {
  border-color: var(--pivot-orange);

  color: var(--pivot-orange-dark) !important;

  background: #FAF8F5;
}


#pivot-catalog-header .pivot-cart svg {
  display: block;

  width: 21px;
  height: 21px;
}


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

#pivot-catalog-hero {
  position: relative;

  width: 100%;

  min-height: 430px;

  background:
    linear-gradient(
      180deg,
      var(--pivot-cream-top) 0%,
      var(--pivot-cream) 100%
    );

  overflow: hidden;

  border: 0 !important;
}


#pivot-catalog-hero::before {
  content: "";

  position: absolute;

  width: 540px;
  height: 540px;

  right: -170px;
  top: -280px;

  border:
    1px solid
    rgba(108, 99, 166, 0.14);

  border-radius: 50%;

  pointer-events: none;
}


#pivot-catalog-hero::after {
  content: "";

  position: absolute;

  width: 390px;
  height: 390px;

  right: -80px;
  bottom: -240px;

  border:
    1px solid
    rgba(232, 132, 58, 0.16);

  border-radius: 50%;

  pointer-events: none;
}


#pivot-catalog-hero .pivot-hero-inner {
  position: relative;
  z-index: 1;

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

  margin: 0 auto;

  padding:
    58px
    34px
    72px;

  display: grid;

  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(400px, 0.9fr);

  align-items: center;

  gap: 56px;
}


/* =========================================================
   HERO COPY
   ========================================================= */

#pivot-catalog-hero .pivot-eyebrow {
  margin: 0 0 11px;

  color: var(--pivot-orange-dark);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.13em;
}


#pivot-catalog-hero .pivot-hero-title {
  max-width: 720px;

  margin: 0 0 18px;

  color: var(--pivot-navy);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 42px;
  font-weight: 700;

  line-height: 1.12;

  letter-spacing: -0.02em;
}


#pivot-catalog-hero .pivot-hero-description {
  max-width: 620px;

  margin: 0 0 24px;

  color: var(--pivot-muted);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;

  line-height: 1.65;
}


#pivot-catalog-hero .pivot-hero-button {
  padding: 11px 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--pivot-orange);

  color: #ffffff !important;

  border: 2px solid var(--pivot-orange);
  border-radius: 999px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;

  text-decoration: none !important;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}


#pivot-catalog-hero .pivot-hero-button:hover,
#pivot-catalog-hero .pivot-hero-button:focus {
  background: var(--pivot-orange-dark);

  border-color: var(--pivot-orange-dark);

  color: #ffffff !important;
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

#pivot-catalog-hero .pivot-hero-visual {
  width: 100%;
  height: 360px;

  position: relative;
  overflow: hidden;

  border-radius: 20px;

  background: #E7E4F4;

  box-shadow:
    0 24px 48px -18px rgba(27, 42, 74, 0.35);
}


/* Hero image */

#pivot-catalog-hero .pivot-hero-visual img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  border-radius: inherit;
}


/* =========================================================
   RESPONSIVE HERO IMAGE
   ========================================================= */

@media (max-width: 850px) {

  #pivot-catalog-hero .pivot-hero-visual {
    height: 260px;
  }

}


@media (max-width: 600px) {

  #pivot-catalog-hero .pivot-hero-visual {
    height: 220px;
    border-radius: 16px;
  }

}


/* =========================================================
   FEATURE REGION
   Keep same cream background as hero/search
   ========================================================= */

body.pivot-catalog-home .feature-region {
  background: var(--pivot-cream) !important;

  border: 0 !important;

  box-shadow: none !important;

  padding: 0 !important;

  margin: 0 !important;
}


/* =========================================================
   SEARCH REGION
   Entire area uses same cream
   ========================================================= */

body.pivot-catalog-home #search-form.callout-region {
  width: 100%;

  margin: 0 !important;

  padding:
    22px
    34px
    26px !important;

  background: var(--pivot-cream) !important;

  color: var(--pivot-navy) !important;

  border: 0 !important;

  border-top: 0 !important;
  border-bottom: 0 !important;

  box-shadow: none !important;
}


/* Make Canvas containers inside search cream too */

body.pivot-catalog-home #search-form.callout-region > div,
body.pivot-catalog-home #search-form.callout-region .container,
body.pivot-catalog-home #search-form.callout-region .container-fluid,
body.pivot-catalog-home #search-form.callout-region .row {
  background: var(--pivot-cream) !important;

  border: 0 !important;

  box-shadow: none !important;
}


body.pivot-catalog-home #search-form.callout-region > div,
body.pivot-catalog-home #search-form.callout-region .container,
body.pivot-catalog-home #search-form.callout-region .container-fluid {
  max-width: 1540px;

  margin-left: auto !important;
  margin-right: auto !important;
}


/* =========================================================
   SEARCH BOX
   ========================================================= */

body.pivot-catalog-home #search-form .search-box-wrapper {
  visibility: visible !important;

  position: relative !important;

  float: none !important;

  width: 100% !important;
  max-width: 560px !important;

  margin: 0 !important;

  background: transparent !important;
}


/* Search input stays white for contrast */

body.pivot-catalog-home #search-form input[type="search"],
body.pivot-catalog-home #search-form input[name="query"],
body.pivot-catalog-home #search-form #search {
  width: 100% !important;

  height: 48px !important;

  margin: 0 !important;

  padding:
    8px
    18px
    8px
    48px !important;

  background: #ffffff !important;

  color: var(--pivot-text) !important;

  border:
    1px solid
    #D8D8D3 !important;

  border-radius: 10px !important;

  box-shadow:
    0 5px 16px
    rgba(27, 42, 74, 0.07) !important;

  font-size: 14px !important;

  line-height: normal !important;
}


body.pivot-catalog-home #search-form input::placeholder {
  color: #8D94A2 !important;

  opacity: 1 !important;
}


/* =========================================================
   SEARCH ICON
   ========================================================= */

body.pivot-catalog-home #search-form .search-submit,
body.pivot-catalog-home #search-form .search-icon,
body.pivot-catalog-home #search-form [class*="search-icon"] {
  position: absolute !important;

  left: 16px !important;
  right: auto !important;

  top: 50% !important;

  transform:
    translateY(-50%) !important;

  width: 20px !important;
  height: 20px !important;

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

  display: flex !important;

  align-items: center !important;
  justify-content: center !important;

  color: var(--pivot-navy) !important;

  z-index: 3 !important;
}


/* =========================================================
   SEARCH LABEL
   Accessible but visually hidden
   ========================================================= */

body.pivot-catalog-home #search-form .search-label {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0, 0, 0, 0) !important;

  white-space: nowrap !important;

  border: 0 !important;
}


/* =========================================================
   REFINE BUTTON
   ========================================================= */

body.pivot-catalog-home #search-refine-button--refine {
  background: #ffffff !important;

  color: var(--pivot-navy) !important;

  border:
    1px solid
    #D8D8D3 !important;

  border-radius: 10px !important;

  box-shadow:
    0 5px 16px
    rgba(27, 42, 74, 0.06) !important;
}


body.pivot-catalog-home #search-refine-button--refine:hover,
body.pivot-catalog-home #search-refine-button--refine:focus {
  background: var(--pivot-cream-top) !important;

  border-color: var(--pivot-purple) !important;

  color: var(--pivot-navy) !important;
}


/* =========================================================
   REMOVE SEARCH DIVIDERS / LINES
   ========================================================= */

body.pivot-catalog-home #search-form hr,
body.pivot-catalog-home #search-form .search-form__divider,
body.pivot-catalog-home #search-form [class*="divider"] {
  display: none !important;

  border: 0 !important;
}


body.pivot-catalog-home #search-form::before,
body.pivot-catalog-home #search-form::after {
  display: none !important;
}


/* =========================================================
   HIDE DEFAULT EMPTY LISTINGS TEXT
   ========================================================= */

body.pivot-catalog-home #main-heading {
  display: none !important;
}


body.pivot-catalog-home #listings > h2 {
  display: none !important;
}


body.pivot-catalog-home #listings .col-md-12 .h3 {
  display: none !important;
}


/* =========================================================
   SUBCATALOG TILE SECTION
   ========================================================= */

#pivot-subcatalog-section {
  width: 100%;

  background: #ffffff;
}


#pivot-subcatalog-section .pivot-subcatalog-inner {
  width: 100%;
  max-width: 1540px;

  margin: 0 auto;

  padding:
    42px
    34px
    60px;
}


#pivot-subcatalog-section .pivot-subcatalog-heading {
  margin:
    0
    0
    24px;

  color: var(--pivot-navy);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;

  line-height: 1.2;
}


/* =========================================================
   TILE GRID
   ========================================================= */

#pivot-subcatalog-section .pivot-subcatalog-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 22px;
}


/* =========================================================
   TILE CARD
   ========================================================= */

#pivot-subcatalog-section .pivot-subcatalog-card {
  display: flex;
  flex-direction: column;

  min-width: 0;

  background: #ffffff;

  border:
    1px solid
    #E4E3DE;

  border-radius: 16px;

  overflow: hidden;

  text-decoration: none !important;

  box-shadow:
    0 5px 18px
    rgba(27, 42, 74, 0.05);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}


#pivot-subcatalog-section .pivot-subcatalog-card:hover,
#pivot-subcatalog-section .pivot-subcatalog-card:focus {
  transform:
    translateY(-3px);

  border-color:
    rgba(232, 132, 58, 0.45);

  box-shadow:
    0 16px 34px
    rgba(27, 42, 74, 0.12);

  text-decoration: none !important;
}


/* =========================================================
   TILE IMAGE
   ========================================================= */

#pivot-subcatalog-section .pivot-subcatalog-image {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #F3F3F1;
}


#pivot-subcatalog-section .pivot-subcatalog-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.25s ease;
}


#pivot-subcatalog-section .pivot-subcatalog-card:hover
.pivot-subcatalog-image img {
  transform: scale(1.025);
}


/* =========================================================
   TILE TITLE
   ========================================================= */

#pivot-subcatalog-section .pivot-subcatalog-body {
  flex: 1;

  padding:
    22px
    20px
    24px;
}


#pivot-subcatalog-section .pivot-subcatalog-title {
  margin: 0;

  color: var(--pivot-navy);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  font-weight: 700;

  line-height: 1.35;
}


/* =========================================================
   TILE FOOTER
   ========================================================= */

#pivot-subcatalog-section .pivot-subcatalog-footer {
  min-height: 70px;

  padding:
    16px
    20px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  border-top:
    1px solid
    var(--pivot-line);
}


#pivot-subcatalog-section .pivot-subcatalog-action {
  color: var(--pivot-orange-dark);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}


#pivot-subcatalog-section .pivot-subcatalog-arrow {
  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    2px solid
    var(--pivot-orange);

  border-radius: 50%;

  color: var(--pivot-orange-dark);

  transition:
    background 0.18s ease,
    color 0.18s ease;
}


#pivot-subcatalog-section .pivot-subcatalog-card:hover
.pivot-subcatalog-arrow {
  background: var(--pivot-orange);

  color: #ffffff;
}


#pivot-subcatalog-section .pivot-subcatalog-arrow svg {
  width: 18px;
  height: 18px;
}


/* =========================================================
   COURSE TITLES
   ========================================================= */

.product-title {
  font-size: 18px !important;
}


/* =========================================================
   RESPONSIVE — MEDIUM DESKTOP
   ========================================================= */

@media (max-width: 1180px) {

  #pivot-catalog-header .pivot-header-inner {
    gap: 16px;
  }


  #pivot-catalog-header .pivot-nav {
    gap: 16px;
  }


  #pivot-catalog-header .pivot-nav a {
    font-size: 13px;
  }


  #pivot-catalog-header .pivot-header-button {
    padding-left: 13px;
    padding-right: 13px;
  }


  #pivot-catalog-header .pivot-logo-image {
    height: 40px;

    max-width: 250px;
  }

}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {

  #pivot-catalog-header .pivot-header-inner {
    flex-wrap: wrap;

    padding:
      14px
      22px;
  }


  #pivot-catalog-header .pivot-nav {
    order: 3;

    flex-basis: 100%;

    justify-content: flex-start;

    overflow-x: auto;

    padding-top: 5px;
    padding-bottom: 4px;
  }


  #pivot-catalog-hero {
    min-height: auto;
  }


  #pivot-catalog-hero .pivot-hero-inner {
    grid-template-columns: 1fr;

    gap: 30px;

    padding:
      42px
      22px
      48px;
  }


  #pivot-catalog-hero .pivot-hero-title {
    font-size: 36px;
  }


  #pivot-catalog-hero .pivot-hero-visual {
    min-height: 240px;
  }


  body.pivot-catalog-home #search-form.callout-region {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }


  #pivot-subcatalog-section .pivot-subcatalog-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 620px) {

  #pivot-catalog-header .pivot-header-inner {
    padding:
      12px
      16px;

    gap: 12px;
  }


  #pivot-catalog-header .pivot-brand {
    max-width: 60%;
  }


  #pivot-catalog-header .pivot-logo-image {
    height: 38px;

    max-width: 210px;
  }


  #pivot-catalog-header .pivot-header-actions {
    margin-left: auto;
  }


  #pivot-catalog-header .pivot-header-button {
    padding-left: 11px;
    padding-right: 11px;

    font-size: 12px;
  }


  #pivot-catalog-header .pivot-nav {
    gap: 20px;

    width: 100%;
  }


  #pivot-catalog-header .pivot-nav a {
    white-space: nowrap;
  }


  #pivot-catalog-hero .pivot-hero-inner {
    padding:
      34px
      18px
      40px;
  }


  #pivot-catalog-hero .pivot-hero-title {
    font-size: 30px;
  }


  #pivot-catalog-hero .pivot-hero-description {
    font-size: 15px;
  }


  #pivot-catalog-hero .pivot-hero-visual {
    min-height: 200px;

    border-radius: 15px;
  }


  body.pivot-catalog-home #search-form.callout-region {
    padding:
      18px
      18px
      22px !important;
  }


  body.pivot-catalog-home #search-form .search-box-wrapper {
    max-width: 100% !important;
  }


  #pivot-subcatalog-section .pivot-subcatalog-inner {
    padding:
      32px
      18px
      44px;
  }


  #pivot-subcatalog-section .pivot-subcatalog-grid {
    grid-template-columns: 1fr;
  }

}