/**
 * @file
 * Homepage Modern Component Styles matching Drupal 7 Frontpage Pixel-for-Pixel.
 */

/* ==========================================================================
   Global Reset & Container
   ========================================================================== */

.node-29-sections {
  margin: 0;
  padding: 0;
  width: 100%;
}

.cetc-section {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  position: relative;
}

.cetc-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================================================================
   1. Education Provider (Hero Banner) - Matches D7 .pane-education-provider-block
   ========================================================================== */

.cetc-hero-banner {
  background-image: url(/themes/custom/cetc_new/images/makeup.jpg);
  background-size: cover;
  position: relative;
  background-position: center;
  padding: 5rem 3.4rem;
  text-align: left;
}

.cetc-hero-banner .cetc-hero-banner__content {
  background-color: #d67d80;
  color: #ffffff;
  width: 100%;
  max-width: 477px;
  padding: 4.6rem;
  margin-right: auto;
  text-align: left;
  box-sizing: border-box;
}

.cetc-hero-banner__title,
.cetc-hero-banner h1,
.cetc-hero-banner h2 {
  font-family: "EB Garamond", serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 100%;
  margin: 0 0 1rem 0;
  color: #ffffff;
  text-align: left;
}

.cetc-hero-banner__lead,
.cetc-hero-banner p {
  color: #ffffff;
  font-family: "Karla", sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 150%;
  margin: 0 0 1.6rem 0;
  text-align: left;
}

.cetc-hero-banner__cta,
.cetc-hero-banner .cetc-hero-banner__cta {
  margin: 0 0 1.6rem;
  line-height: 2.4rem;
  text-align: left;
}

.cetc-hero-banner__cta a,
.cetc-hero-banner .cetc-hero-banner__content a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 400;
  font-size: 1.6rem;
  background: none;
  padding: 0;
  display: inline;
  border-radius: 0;
}

.cetc-hero-banner__cta a:hover,
.cetc-hero-banner .cetc-hero-banner__content a:hover {
  color: #000000;
  background: none;
  transform: none;
}

/* ==========================================================================
   2. Beauty Professionals - Matches D7 .pane-beauty-professionals
   ========================================================================== */

.cetc-grid--cards-3col {
  padding: 5rem 3.4rem;
  background: transparent;
}

.cetc-grid--cards-3col .cetc-section__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  width: 100%;
  text-align: left;
}

.cetc-grid--cards-3col .cetc-section__title {
  font-family: "EB Garamond", serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 100%;
  margin-bottom: 2rem;
  color: #ffffff;
  text-align: left;
}

.cetc-grid--cards-3col .cetc-section__lead,
.cetc-grid--cards-3col .cetc-section__lead p {
  font-family: "Karla", sans-serif;
  font-size: 1.6rem;
  line-height: 150%;
  color: #ffffff;
  font-weight: 300;
  margin-bottom: 1.6rem;
  text-align: left;
}

.cetc-grid--cards-3col .cetc-grid__items {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.cetc-grid--cards-3col .cetc-card {
  flex: 1 1 45%;
  flex-basis: 45%;
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  position: relative;
  border-radius: 0;
  box-shadow: none;
  border: none;
  text-align: left;
  box-sizing: border-box;
}

.cetc-grid--cards-3col .cetc-card__title {
  font-family: "EB Garamond", serif;
  font-size: 2.1rem;
  line-height: 100%;
  margin-bottom: 2rem;
  padding-right: 35px;
  color: #ffffff;
  text-align: left;
}

.cetc-grid--cards-3col .cetc-card__body,
.cetc-grid--cards-3col .cetc-card__body p {
  font-family: "Karla", sans-serif;
  font-size: 1.6rem;
  line-height: 150%;
  color: #ffffff;
  font-weight: 300;
  margin-bottom: 1.6rem;
  text-align: left;
}

.cetc-grid--cards-3col .cetc-card__body p:last-child {
  margin-bottom: 0;
}

.cetc-grid--cards-3col .cetc-card__cta {
  margin-top: auto;
  text-align: left;
}

.cetc-grid--cards-3col .cetc-card__cta a {
  color: #d67d80;
  text-decoration: underline;
  font-weight: 300;
  font-size: 1.6rem;
}

.cetc-grid--cards-3col .cetc-card__cta a:hover {
  color: #ffffff;
}

/* Card SVGs in top-right corner */
.cetc-grid--cards-3col .cetc-card:before {
  content: "";
  background-size: contain;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  display: block;
  position: absolute;
  right: 20px;
  top: 20px;
}

.cetc-card--cosmetologists:before {
  background-image: url(/themes/custom/cetc_new/images/cosmetologists.svg);
}

.cetc-card--barber:before {
  background-image: url(/themes/custom/cetc_new/images/barber.svg);
}

.cetc-card--estheticians:before {
  background-image: url(/themes/custom/cetc_new/images/estheticians.svg);
}

.cetc-card--nail:before {
  background-image: url(/themes/custom/cetc_new/images/nail-art.svg);
}

.cetc-card--instructors:before {
  background-image: url(/themes/custom/cetc_new/images/instructors.svg);
}

.cetc-card--owners:before {
  background-image: url(/themes/custom/cetc_new/images/owners.svg);
}

/* ==========================================================================
   3. Education in Your State - Matches D7 .pane-education-state
   ========================================================================== */

.cetc-grid--link-list {
  background-color: #f7dada;
  padding: 5rem 3.4rem;
  color: #000000;
  text-align: center;
}

.cetc-grid--link-list .cetc-section__header {
  margin-bottom: 2rem;
  text-align: center;
}

.cetc-grid--link-list .cetc-section__title {
  font-family: "EB Garamond", serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 100%;
  color: #000000;
  margin-bottom: 2rem;
  text-align: center;
}

.cetc-grid--link-list .cetc-section__lead,
.cetc-grid--link-list .cetc-section__lead p {
  font-family: "Karla", sans-serif;
  font-size: 1.6rem;
  color: #000000;
  font-weight: 300;
  line-height: 150%;
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
}

.cetc-grid--link-list .cetc-grid__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
  padding-left: 0;
  gap: 0;
}

.cetc-grid--link-list .cetc-card {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  border: none;
  display: inline-flex;
  align-items: center;
}

.cetc-grid--link-list .cetc-card:before {
  display: none;
}

.cetc-grid--link-list .cetc-card__title {
  display: none;
}

.cetc-grid--link-list .cetc-card__cta a {
  color: #000000;
  text-decoration: underline;
  font-weight: 300;
  font-size: 16px;
}

.cetc-grid--link-list .cetc-card__cta a:hover {
  color: #d67d80;
}

.cetc-grid--link-list .cetc-card:not(:first-child):not([class*="state-all"]):before {
  content: "|";
  font-weight: 100;
  margin: 0 5px;
  display: inline-block;
  color: #000000;
  position: static;
  width: auto;
  height: auto;
}

.cetc-grid--link-list .cetc-card[class*="state-all"] {
  width: 100%;
  margin-top: 3rem;
  justify-content: center;
}

.cetc-grid--link-list .cetc-card[class*="state-all"]:before {
  display: none;
}

.cetc-grid--link-list .cetc-card[class*="state-all"] .cetc-card__cta a {
  font-weight: 600;
  font-size: 16px;
}

/* ==========================================================================
   4. License Renewal & Advanced Training - Matches D7 Stacking
   ========================================================================== */

.cetc-grid--cards-2col {
  padding: 0;
}

.cetc-grid--cards-2col .cetc-grid__items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Left/Top Card: License Renewal */
.cetc-grid--cards-2col .cetc-card--license-renewal {
  background-image: url(/themes/custom/cetc_new/images/license-renewal.jpg);
  background-size: cover;
  position: relative;
  background-position: center;
  padding: 5rem 3.4rem;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  border: none;
  box-sizing: border-box;
}

.cetc-grid--cards-2col .cetc-card--license-renewal:before {
  display: none;
}

.cetc-grid--cards-2col .cetc-card--license-renewal .cetc-card__inner {
  background-color: #d67d80;
  color: #ffffff;
  width: 100%;
  max-width: 477px;
  padding: 4.6rem;
  margin-left: auto;
  border-radius: 0;
  text-align: left;
  box-sizing: border-box;
}

.cetc-grid--cards-2col .cetc-card--license-renewal .cetc-card__title,
.cetc-grid--cards-2col .cetc-card--license-renewal h2 {
  font-family: "EB Garamond", serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 100%;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-align: left;
}

.cetc-grid--cards-2col .cetc-card--license-renewal .cetc-card__body,
.cetc-grid--cards-2col .cetc-card--license-renewal p {
  font-family: "Karla", sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 150%;
  color: #ffffff;
  margin-bottom: 1.6rem;
  text-align: left;
}

.cetc-grid--cards-2col .cetc-card--license-renewal .cetc-card__cta a,
.cetc-grid--cards-2col .cetc-card--license-renewal a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 400;
  font-size: 1.6rem;
}

.cetc-grid--cards-2col .cetc-card--license-renewal a:hover {
  color: #000000;
}

/* Right/Bottom Card: Advanced Training */
.cetc-grid--cards-2col .cetc-card--advanced-training {
  padding: 5rem 3.4rem;
  background-color: #ffffff;
  color: #000000;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  border: none;
  text-align: left;
  box-sizing: border-box;
}

.cetc-grid--cards-2col .cetc-card--advanced-training:before {
  display: none;
}

.cetc-grid--cards-2col .cetc-card--advanced-training .cetc-card__inner {
  max-width: 100%;
  padding: 0;
  text-align: left;
}

.cetc-grid--cards-2col .cetc-card--advanced-training .cetc-card__title,
.cetc-grid--cards-2col .cetc-card--advanced-training h2 {
  font-family: "EB Garamond", serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 100%;
  color: #000000;
  margin-bottom: 1.5rem;
  text-align: left;
}

.cetc-grid--cards-2col .cetc-card--advanced-training .cetc-card__body,
.cetc-grid--cards-2col .cetc-card--advanced-training p {
  font-family: "Karla", sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 150%;
  color: #000000;
  margin-bottom: 1.6rem;
  text-align: left;
}

.cetc-grid--cards-2col .cetc-card--advanced-training .cetc-card__cta a,
.cetc-grid--cards-2col .cetc-card--advanced-training a {
  color: #000000;
  text-decoration: underline;
  font-weight: 400;
  font-size: 1.6rem;
}

.cetc-grid--cards-2col .cetc-card--advanced-training a:hover {
  color: #d67d80;
}

.cetc-grid--cards-2col .cetc-card--advanced-training .bg-grey {
  background-color: #1a19171a;
  padding: 1rem;
  margin-top: 2rem;
  margin-bottom: 0;
  border-radius: 0;
}

/* ==========================================================================
   5. Practical Exam Preparation - Matches D7 .pane-preparation-courses
   ========================================================================== */

.cetc-media-text {
  padding: 3.4rem;
  background: transparent;
  display: block;
}

.cetc-media-text__grid {
  display: block;
}

.cetc-media-text__media {
  float: left;
  margin-right: 2rem;
  margin-bottom: 1rem;
}

.cetc-media-text__media img {
  width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
}

.cetc-media-text__title {
  font-family: "EB Garamond", serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 100%;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-align: left;
}

.cetc-media-text__body,
.cetc-media-text__body p {
  font-family: "Karla", sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 150%;
  color: #ffffff;
  margin-bottom: 1.6rem;
  text-align: left;
}

.cetc-media-text__cta {
  text-align: left;
}

.cetc-media-text__cta a {
  color: #d67d80;
  text-decoration: underline;
  font-weight: 400;
  font-size: 1.6rem;
}

.cetc-media-text__cta a:hover {
  color: #ffffff;
}

/* Clearfix */
.cetc-media-text__grid:after {
  content: "";
  display: table;
  clear: both;
}

/* ==========================================================================
   6. Why Choose CE Training Courses? - Matches D7 .pane-information-blocks
   ========================================================================== */

.cetc-grid--feature-icons {
  background-color: #f7dada;
  padding: 5rem 3.4rem !important;
  color: #000000;
  box-sizing: border-box;
}

.cetc-grid--feature-icons .cetc-section__header {
  text-align: center;
  margin-bottom: 20px;
}

.cetc-grid--feature-icons .cetc-section__title,
.cetc-grid--feature-icons h2 {
  font-family: "EB Garamond", serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 100%;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 0;
}

.cetc-grid--feature-icons .cetc-grid__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.cetc-grid--feature-icons .cetc-card {
  background-color: #f7dada;
  text-align: center;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #090909;
  border: 0.1rem solid rgba(9, 9, 9, 0.08) !important;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.cetc-grid--feature-icons .cetc-card:before {
  content: "";
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 60px;
  height: 60px;
  display: block;
  margin-bottom: 2.3rem;
  position: static;
}

.cetc-card--ce-expenses:before {
  background-image: url(/themes/custom/cetc_new/images/piggy_bank.svg);
}

.cetc-card--ce-pin:before {
  background-image: url(/themes/custom/cetc_new/images/locate.svg);
}

.cetc-card--ce-schedule:before {
  background-image: url(/themes/custom/cetc_new/images/clock.svg);
}

.cetc-card--ce-knowledge:before {
  background-image: url(/themes/custom/cetc_new/images/microscope.svg);
}

.cetc-grid--feature-icons .cetc-card__title,
.cetc-grid--feature-icons .cetc-card h3 {
  font-family: "EB Garamond", serif;
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 100%;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #090909;
  padding-right: 0;
  text-align: center;
}

.cetc-grid--feature-icons .cetc-card__body p,
.cetc-grid--feature-icons .cetc-card p {
  font-family: "Karla", sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 150%;
  color: #090909;
  margin-left: 3rem;
  margin-right: 3rem;
  margin-bottom: 1.6rem;
  text-align: center;
}

/* ==========================================================================
   7. FAQ Block - Matches D7 .pane-faq-block Exactly
   ========================================================================== */

.cetc-section--accordion {
  padding: 5rem 3.4rem !important;
  background-color: #ffffff;
  color: #000000;
  width: 100%;
  max-width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.cetc-section--accordion .cetc-section__header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.cetc-section--accordion .cetc-section__title,
.cetc-section--accordion .cetc-section__title .field,
.cetc-section--accordion .cetc-section__title .field__item,
.cetc-section--accordion h2 {
  font-family: "EB Garamond", serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 100%;
  color: #000000;
  text-align: left;
  margin-top: 0;
  margin-bottom: 0;
}

.cetc-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  text-align: left;
}

.cetc-accordion__item {
  background-color: #ffffff;
  border: none;
  border-top: 1px solid #e5e5e5;
  border-radius: 0;
  overflow: visible;
  text-align: left;
  margin: 0;
  padding: 0;
}

.cetc-accordion__item:first-child {
  border-top: 0;
}

.cetc-accordion__item[open] {
  background-color: #ffffff;
}

.cetc-accordion__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 3rem 1.4rem 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background-color: #ffffff;
  margin: 0;
  text-align: left;
}

.cetc-accordion__question::-webkit-details-marker {
  display: none;
}

.cetc-accordion__title,
.cetc-accordion__question .cetc-accordion__title,
.cetc-accordion__title .field__item,
.cetc-accordion__title div {
  font-family: "EB Garamond", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 2.8rem;
  color: #090909;
  text-align: left;
  margin: 0;
}

/* Chevron ^ / v toggle indicator matching D7 ckeditor-accordion-toggle */
.cetc-accordion__icon {
  display: inline-block;
  position: relative;
  width: 10px;
  height: 10px;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1.5rem;
}

/* When open, rotates to point up ^ */
.cetc-accordion__item[open] .cetc-accordion__icon {
  transform: rotate(-135deg);
}

.cetc-accordion__answer,
.cetc-accordion__answer p,
.cetc-accordion__answer .field__item {
  padding: 0;
  margin: 0;
  font-family: "Karla", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 150%;
  color: #090909;
  text-align: left;
}

.cetc-accordion__answer {
  padding-bottom: 1rem;
}

.cetc-accordion__answer p {
  margin-bottom: 1.6rem;
}

.cetc-accordion__footer,
.cetc-section--accordion .rtecenter {
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 0;
}

.cetc-accordion__footer a,
.cetc-section--accordion .rtecenter a {
  color: #000000;
  font-family: "Karla", sans-serif;
  font-weight: 400;
  text-decoration: underline;
  font-size: 16px;
}

.cetc-accordion__footer a:hover,
.cetc-section--accordion .rtecenter a:hover {
  color: #d67d80;
}

/* ==========================================================================
   Responsive Styles matching D7 responsive.css
   ========================================================================== */

/* D7 responsive.css applies these at @media (max-width: 576px). */
@media (max-width: 576px) {
  .cetc-hero-banner,
  .cetc-grid--cards-3col,
  .cetc-grid--link-list,
  .cetc-grid--cards-2col .cetc-card--license-renewal,
  .cetc-grid--cards-2col .cetc-card--advanced-training,
  .cetc-media-text,
  .cetc-grid--feature-icons,
  .cetc-section--accordion {
    padding: 4rem 2rem !important;
  }

  /* D7: h2 { font-size: 2.5rem; line-height: 3.5rem; } */
  .cetc-hero-banner__title,
  .cetc-hero-banner h1,
  .cetc-hero-banner h2,
  .cetc-grid--cards-3col .cetc-section__title,
  .cetc-grid--link-list .cetc-section__title,
  .cetc-grid--cards-2col .cetc-card--license-renewal .cetc-card__title,
  .cetc-grid--cards-2col .cetc-card--advanced-training .cetc-card__title,
  .cetc-media-text__title,
  .cetc-grid--feature-icons .cetc-section__title,
  .cetc-section--accordion .cetc-section__title,
  .cetc-section--accordion .cetc-section__title .field,
  .cetc-section--accordion .cetc-section__title .field__item {
    font-size: 2.5rem;
    line-height: 3.5rem;
  }

  /* D7: .ckeditor-accordion-container > dl dt > a { font-weight: 400; } */
  .cetc-accordion__title,
  .cetc-accordion__question .cetc-accordion__title,
  .cetc-accordion__title .field__item,
  .cetc-accordion__title div {
    font-weight: 400;
  }

  .cetc-grid--cards-3col .cetc-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .cetc-hero-banner .cetc-hero-banner__content,
  .cetc-grid--cards-2col .cetc-card--license-renewal .cetc-card__inner {
    padding: 2.5rem;
    max-width: 100%;
  }

  .cetc-media-text__media {
    float: none;
    margin-right: 0;
    margin-bottom: 2rem;
    width: 100%;
  }

  .cetc-media-text__media img {
    width: 100%;
    max-width: 100%;
  }

  .cetc-grid--feature-icons .cetc-grid__items {
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }
}

/* ==========================================================================
   Admin Toolbar Integration
   Ensure toolbar & submenus are clickable, above theme elements, and properly displaced.
   ========================================================================== */

#toolbar-administration,
#toolbar-administration *,
#toolbar-bar,
.toolbar-tray,
.toolbar-lining,
.toolbar-menu-administration,
div.toolbar-tray,
.toolbar-menu-administration ul,
.toolbar-menu-administration li ul,
#toolbar-item-administration-tray ul,
#toolbar-item-administration-tray li ul,
.toolbar-tray .menu--toolbar a,
ul.toolbar-menu li ul,
.toolbar-menu-administration .toolbar-menu {
  z-index: 50000 !important;
}

#toolbar-bar {
  z-index: 50002 !important;
}

.toolbar-tray-horizontal {
  z-index: 50001 !important;
}

.toolbar-menu-administration ul,
.toolbar-menu-administration li ul,
#toolbar-item-administration-tray ul,
#toolbar-item-administration-tray li ul,
ul.toolbar-menu li ul {
  z-index: 50003 !important;
}

/* Lower site fixed/sticky elements so admin toolbar is always on top */
.front-page-header,
header#navbar,
.inner_page-main header,
.popup-side-menu,
.fix-menu-banner {
  z-index: 999;
}

/* Offset fixed front page header when admin toolbar is present */
body.toolbar-horizontal .front-page-header,
body.toolbar-fixed .front-page-header {
  top: 39px;
  top: var(--drupal-displace-offset-top, 39px);
}

body.toolbar-horizontal.toolbar-tray-open .front-page-header,
body.toolbar-fixed.toolbar-tray-open .front-page-header {
  top: 79px;
  top: var(--drupal-displace-offset-top, 79px);
}

/* Offset front page body when admin toolbar is present so video and right content start below toolbar */
body.front.toolbar-horizontal,
body.front.toolbar-fixed {
  padding-top: 39px !important;
  padding-top: var(--drupal-displace-offset-top, 39px) !important;
}

body.front.toolbar-horizontal.toolbar-tray-open,
body.front.toolbar-fixed.toolbar-tray-open {
  padding-top: 79px !important;
  padding-top: var(--drupal-displace-offset-top, 79px) !important;
}

body.front.toolbar-vertical.toolbar-fixed {
  padding-top: 39px !important;
  padding-top: var(--drupal-displace-offset-top, 39px) !important;
}

/* Keep popup side menu and its close button below admin toolbar */
body.toolbar-horizontal .popup-side-menu,
body.toolbar-fixed .popup-side-menu {
  top: 39px !important;
  top: var(--drupal-displace-offset-top, 39px) !important;
  height: calc(100vh - 39px) !important;
  height: calc(100vh - var(--drupal-displace-offset-top, 39px)) !important;
}

body.toolbar-horizontal.toolbar-tray-open .popup-side-menu,
body.toolbar-fixed.toolbar-tray-open .popup-side-menu {
  top: 79px !important;
  top: var(--drupal-displace-offset-top, 79px) !important;
  height: calc(100vh - 79px) !important;
  height: calc(100vh - var(--drupal-displace-offset-top, 79px)) !important;
}

body.toolbar-vertical.toolbar-fixed .popup-side-menu {
  top: 39px !important;
  top: var(--drupal-displace-offset-top, 39px) !important;
  height: calc(100vh - 39px) !important;
  height: calc(100vh - var(--drupal-displace-offset-top, 39px)) !important;
}

/* Offset fixed background banner on front page */
body.front.toolbar-horizontal .fix-menu-banner,
body.front.toolbar-fixed .fix-menu-banner,
body.toolbar-horizontal .fix-menu-banner,
body.toolbar-fixed .fix-menu-banner {
  top: 39px !important;
  top: var(--drupal-displace-offset-top, 39px) !important;
  height: calc(100vh - 39px) !important;
  height: calc(100vh - var(--drupal-displace-offset-top, 39px)) !important;
}

body.front.toolbar-horizontal.toolbar-tray-open .fix-menu-banner,
body.front.toolbar-fixed.toolbar-tray-open .fix-menu-banner,
body.toolbar-horizontal.toolbar-tray-open .fix-menu-banner,
body.toolbar-fixed.toolbar-tray-open .fix-menu-banner {
  top: 79px !important;
  top: var(--drupal-displace-offset-top, 79px) !important;
  height: calc(100vh - 79px) !important;
  height: calc(100vh - var(--drupal-displace-offset-top, 79px)) !important;
}

body.front.toolbar-vertical.toolbar-fixed .fix-menu-banner,
body.toolbar-vertical.toolbar-fixed .fix-menu-banner {
  top: 39px !important;
  top: var(--drupal-displace-offset-top, 39px) !important;
  height: calc(100vh - 39px) !important;
  height: calc(100vh - var(--drupal-displace-offset-top, 39px)) !important;
}

/* Offset sticky front page video below admin toolbar */
body.front.toolbar-horizontal div#node-29 .field-name-field-video-from-wistia-video,
body.front.toolbar-fixed div#node-29 .field-name-field-video-from-wistia-video {
  top: 39px !important;
  top: var(--drupal-displace-offset-top, 39px) !important;
}

body.front.toolbar-horizontal.toolbar-tray-open div#node-29 .field-name-field-video-from-wistia-video,
body.front.toolbar-fixed.toolbar-tray-open div#node-29 .field-name-field-video-from-wistia-video {
  top: 79px !important;
  top: var(--drupal-displace-offset-top, 79px) !important;
}

body.front.toolbar-vertical.toolbar-fixed div#node-29 .field-name-field-video-from-wistia-video {
  top: 39px !important;
  top: var(--drupal-displace-offset-top, 39px) !important;
}

/* Offset fixed headers on scroll */
body.toolbar-horizontal header#navbar.is-fixed,
body.toolbar-horizontal header#navbar.darkHeader,
body.toolbar-horizontal .inner_page-main header.is-fixed,
body.toolbar-horizontal .inner_page-main header.darkHeader,
body.toolbar-fixed header#navbar.is-fixed,
body.toolbar-fixed header#navbar.darkHeader,
body.toolbar-fixed .inner_page-main header.is-fixed,
body.toolbar-fixed .inner_page-main header.darkHeader,
body.toolbar-horizontal .front-page-header.is-fixed,
body.toolbar-horizontal .front-page-header.darkHeader,
body.toolbar-fixed .front-page-header.is-fixed,
body.toolbar-fixed .front-page-header.darkHeader {
  top: 39px !important;
  top: var(--drupal-displace-offset-top, 39px) !important;
}

body.toolbar-horizontal.toolbar-tray-open header#navbar.is-fixed,
body.toolbar-horizontal.toolbar-tray-open header#navbar.darkHeader,
body.toolbar-horizontal.toolbar-tray-open .inner_page-main header.is-fixed,
body.toolbar-horizontal.toolbar-tray-open .inner_page-main header.darkHeader,
body.toolbar-fixed.toolbar-tray-open header#navbar.is-fixed,
body.toolbar-fixed.toolbar-tray-open header#navbar.darkHeader,
body.toolbar-fixed.toolbar-tray-open .inner_page-main header.is-fixed,
body.toolbar-fixed.toolbar-tray-open .inner_page-main header.darkHeader,
body.toolbar-horizontal.toolbar-tray-open .front-page-header.is-fixed,
body.toolbar-horizontal.toolbar-tray-open .front-page-header.darkHeader,
body.toolbar-fixed.toolbar-tray-open .front-page-header.is-fixed,
body.toolbar-fixed.toolbar-tray-open .front-page-header.darkHeader {
  top: 79px !important;
  top: var(--drupal-displace-offset-top, 79px) !important;
}

body.toolbar-vertical.toolbar-fixed .front-page-header.is-fixed,
body.toolbar-vertical.toolbar-fixed .front-page-header.darkHeader,
body.toolbar-vertical.toolbar-fixed header#navbar.is-fixed,
body.toolbar-vertical.toolbar-fixed header#navbar.darkHeader,
body.toolbar-vertical.toolbar-fixed .inner_page-main header.is-fixed,
body.toolbar-vertical.toolbar-fixed .inner_page-main header.darkHeader {
  top: 39px !important;
  top: var(--drupal-displace-offset-top, 39px) !important;
}


/* Narrow screens: core switches the toolbar to vertical mode without
   toolbar-fixed, so the bar scrolls away and the fixed site header covers it.
   Pin the bar and push the header and page content below it. */
@media (max-width: 1024px) {
  body.toolbar-vertical #toolbar-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  body.front.toolbar-vertical {
    padding-top: 39px !important;
    padding-top: var(--drupal-displace-offset-top, 39px) !important;
  }

  body.not-front.toolbar-vertical {
    padding-top: calc(120px + 39px) !important;
    padding-top: calc(120px + var(--drupal-displace-offset-top, 39px)) !important;
  }

  body.toolbar-vertical header#navbar,
  body.toolbar-vertical .inner_page-main header,
  body.toolbar-vertical .mean-container .mean-bar,
  body.toolbar-vertical .mean-bar,
  body.toolbar-vertical .popup-side-menu {
    top: 39px !important;
    top: var(--drupal-displace-offset-top, 39px) !important;
  }
}
