:root {
  --learn-more-btn-height: 60px;
}

html {
  scroll-padding-top: 500px;
}

.session-content {
  padding: 30px 20px 0;
}

.search-block-form,
.form-actions,
.form-override .form-item,
.form-actions .button {
  margin: 0;
}

/* Emarketplace Index page */
.emarketplace-header {
  height: 300px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(74, 157, 213, 1) 65%
  );
  background-size: cover;
  background-position: bottom;
  z-index: 1;
  margin-top: -110px;
}

.emarketplace-header .content {
  padding: 97px 40px 0;
  max-width: 500px;
  text-align: center;
  margin: auto;
  height: 100%;
  align-content: center;
}

.emarketplace-header .content * {
  font-size: 32px;
  font-family: var(--font-ideal-sans-regular);
  color: #fff;
  text-wrap: balance;
  line-height: 1.08;
  margin: 0;
}

/* Seesion Cards */
.views-view-grid__item-inner {
  aspect-ratio: 1 / 1;
}

.views-view-grid {
  row-gap: 2rem;
  column-gap: 1rem;
}

.card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-width: calc(100% - 20px);
  transition: all 0.4s;
  border: none;
  margin: auto;
}

.card:hover {
  max-width: 100%;
}

.card__image {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transition: all 0.4s;
  z-index: 1;
}

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

.card__image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: all 0.4s;
}

.card:hover .card__image::before {
  background: rgba(0, 0, 0, 0.6);
}

.card__overlay {
  position: absolute;
  z-index: 1;
  bottom: var(--learn-more-btn-height);
  padding: 1rem 0.75rem;
  color: #fff;
  transition: all 0.4s;
}

.card:hover .card__overlay {
  bottom: calc(100% - 75px);
  height: 75px;
  align-content: center;
}

.card:hover .card__overlay .card__title {
  font-size: 16px;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card__title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  margin: 0 0 0.25rem;
  transition: all 0.4s;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-family: var(--font-ideal-sans-regular);
}

.card__meta {
  font-size: 1rem;
  margin: 0;
  font-family: var(--font-ideal-sans-regular);
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
}

.card:hover .card__meta {
  display: none;
}

.separator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #fff;
  margin: 0 0.25rem;
}

.card__cta {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.card__cta a {
  position: relative;
  z-index: 999;
  background: #c7d3d5;
  text-align: center;
  padding: 10px;
  font-weight: 700;
  font-size: 16px;
  color: #1a1a2e;
  height: var(--learn-more-btn-height);
  align-content: center;
  transition: all 0.4s;
  flex-shrink: 0;
  text-decoration: none;
  display: block;
}

.card:hover .card__cta a {
  background: linear-gradient(273.73deg, #e65533 2.71%, #f18031 89.99%);
  color: #fff;
}

.card__cta a::after {
  content: ">";
  margin-left: -1rem;
  opacity: 0;
  transition: all 0.4s;
}

.card:hover .card__cta a::after {
  margin-left: 0.5rem;
  opacity: 1;
}

.card__body {
  height: 100%;
  padding: 91px 12px calc(var(--learn-more-btn-height) + 16px);
}

.card__summary {
  font-size: 15px;
  color: #000;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-bottom: 20px;
}

.card__summary p {
  margin: 0;
}

.card__badge {
  display: inline-block;
  background: #0057ff;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  border-radius: 11px;
  align-self: flex-start;
}

.card__badge.card__badge--past {
  background: #8dc63f;
}

.card__date-block {
  margin-top: auto;
  text-align: right;
  position: absolute;
  right: 32px;
  bottom: 80px;
}

.card__date-label {
  display: block;
  font-size: 14px;
  color: #818181;
}

.card__date-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #060606;
}

.card:hover .card__image {
  bottom: calc(100% - 75px);
}

.watch-btn {
  text-decoration: none;
  background: #86c841;
  color: #fff;
  font-weight: 500;
  font-family: var(--font-ideal-sans-regular);
  padding: 0.5rem 1rem;
  display: block;
  width: fit-content;
  font-size: 16px;
  position: relative;
}

.watch-btn:hover {
  color: #fff;
}

.page-node-type-sessions-article .block__title {
  display: none;
}

/* Session Individual Page */
.session-content-inner {
  padding: 16px 20px;
}

.session-content-inner .article-title {
  font-family: var(--font-mercury-regular);
  font-weight: bold;
  color: var(--color-dark-blue);
  font-size: 21px;
  margin-bottom: 1.5rem;
  display: block;
  line-height: 1.2;
}

.session-content-inner .bottom {
  border-top: 1px solid var(--color-dark-blue);
}

.session-content-inner .bottom h3 {
  font-weight: 600;
  font-family: var(--font-ideal-sans-regular);
  color: var(--color-dark-blue);
  font-size: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.session-content-inner .bottom .img-container {
  height: 75px;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem;
}

.session-content-inner .bottom .img-container img {
  object-fit: contain;
  border-radius: 0;
  width: 100%;
  height: 100%;
}

.session-content-inner .bottom a {
  font-family: var(--font-ideal-sans-regular);
  font-size: 17px;
  color: var(--color-dark-blue);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.session-content-inner .bottom a:focus {
  outline: none;
}

.session-content-inner .bottom p {
  font-size: 14px;
  font-family: var(--font-ideal-sans-regular);
  color: rgb(0, 0, 0, 0.55);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: none;
  line-height: 1.25;
}

.session-content-inner .main-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.youtube-embed-wrapper {
  position: relative;
}

.youtube-embed-wrapper iframe {
  aspect-ratio: 16 / 9;
  pointer-events: none;
}

.form-type-boolean {
  margin-block: 10px;
}

.fieldset__wrapper--group {
  padding: 0;
}

.field--name-field-session-main-image {
  width: unset;
  margin: unset;
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.field--name-field-session-main-image .field__label {
  display: none;
}

.top-content {
  padding: 0 10rem;
}

.bottom-footer {
  border-top: 1px solid var(--color-dark-blue);
  color: var(--color-dark-blue);
}

.bottom-footer p,
.bottom-footer a {
  color: var(--color-dark-blue);
  font-size: 18px;
}

.bottom-footer a {
  text-decoration: none;
}

.bottom-footer a:hover {
  text-decoration: underline;
}

/* Search, Filter, Pagination */

/* On header instance, hide Items per page selector */
.view-filters .views-exposed-form .form-item-items-per-page {
  display: none;
}

.form-override .form-override-row-1,
.form-override .form-override-row-2 {
  display: flex;
}

/* On footer instance, show only Items per page selector */
.view-footer
  .items-per-page
  .views-exposed-form
  .form-override
  > *:not(.form-item-items-per-page) {
  display: none;
}

.ajax-progress /* Buggy: Doesn't disappear on auto-submit */ {
  display: none;
  width: 100%;
}

/* E-Marketplace Page Header Filters */

.form-override-row-1 .form-element--type-text {
  width: 100%;
}

.form-override-row-1 .search-submit .form-submit,
.form-override-row-1 .reset-submit .form-submit {
  height: 40px;
  padding-block: unset;
  border-radius: 50px;
  color: var(--color-dark-blue);
  font-weight: 500;
  font-family: var(--font-ideal-sans-regular);
  font-size: 18px;
  padding: 0 2.5rem;
  margin: 0;
  transition: all 0.4s;
}

.form-override-row-1 .search-submit .form-submit {
  background-color: var(--color-bright-yellow);
  border: none;
}

.form-override-row-1 .reset-submit .form-submit {
  background-color: transparent;
  font-weight: 500;
  border: 2px solid var(--color-dark-blue);
}

.form-override-row-1 .reset-submit .form-submit:hover {
  background: #fff;
}

.form-override-row-1 .form-element--type-select {
  background-color: transparent;
  border-color: var(--color-dark-blue);
  border-width: 0 0 1px 0;
  border-radius: 0;
  padding: 0;
  height: 40px;
  font-family: var(--font-ideal-sans-light);
  font-weight: 300;
  color: var(--color-dark-blue);
  padding-right: 35px;
  padding-right: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-select:focus {
  box-shadow: none;
}

.filter-post-text {
  color: var(--color-dark-blue);
}

.js .js-hide {
  display: block;
}

.form-override .form-override-row-1 input {
  border: none;
  font-size: 18px;
  min-height: 38px;
  color: var(--color-dark-blue);
}

.views-view-grid--horizontal {
  --views-grid--column-count: 1 !important;
}

.view-content .views-view-grid--horizontal,
.view-content,
.view {
  display: flex;
  flex-direction: column;
}

.text-balance {
  text-wrap: balance;
}

.form-override .search-submit,
.form-override select {
  cursor: pointer;
}

@media (min-width: 500px) {
  .session-content-inner .bottom .img-container {
    height: 90px;
    border-radius: 15px;
    padding: 1rem;
  }
}

@media (min-width: 576px) {
  .watch-btn {
    position: absolute;
    bottom: 80px;
    left: -25px;
  }

  .session-content-inner .article-title {
    font-size: 24px;
  }

  .session-content-inner .bottom .img-container {
    height: 110px;
  }

  .emarketplace-header {
    height: 350px;
  }

  .emarketplace-header .content * {
    font-size: 40px;
  }

  .emarketplace-header .content {
    max-width: 500px;
    padding: 97px 40px 0;
  }
}

@media (min-width: 712px) {
  .views-view-grid--horizontal {
    --views-grid--column-count: 2 !important;
  }

  .view-content .views-view-grid--horizontal,
  .view-content,
  .view {
    display: grid;
  }
}

@media (min-width: 768px) {
  .session-content-inner {
    padding: 16px 30px;
  }

  .session-content-inner .article-title {
    font-size: 28px;
  }

  .session-content-inner .bottom h3 {
    font-size: 22px;
  }

  .session-content-inner .bottom a {
    font-size: 19px;
  }

  .session-content-inner .bottom p {
    font-size: 16px;
  }

  .session-content {
    padding: 30px 40px 0;
  }

  .emarketplace-header {
    height: 450px;
  }

  .emarketplace-header .content * {
    font-size: 50px;
  }

  .emarketplace-header .content {
    max-width: 600px;
  }

  .form-override {
    padding: 0 2rem;
  }

  .card__title {
    font-size: 20px;
  }

  .views-view-grid--horizontal {
    --views-grid--column-count: 2 !important;
  }
}

@media (min-width: 992px) {
  .watch-btn {
    padding: 0.65rem 1.25rem;
    font-size: 18px;
  }

  .card:hover .card__overlay {
    bottom: calc(100% - 90px);
    height: 90px;
  }

  .card:hover .card__image {
    bottom: calc(100% - 90px);
  }

  .card__cta a {
    font-size: 18px;
  }

  .form-override .form-override-row-1 input {
    min-height: 50px;
  }

  .card__overlay {
    padding: 1.25rem;
  }

  .card__body {
    padding: 120px 20px calc(var(--learn-more-btn-height) + 20px);
  }

  .card__date-value {
    font-size: 16px;
  }

  .card {
    border-radius: 30px;
    max-width: calc(100% - 35px);
  }

  .card__summary {
    -webkit-line-clamp: 4;
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  .session-content-inner .bottom h3 {
    font-size: 24px;
  }

  .session-card {
    padding: 0 48px;
  }

  .emarketplace-header {
    height: 550px;
  }

  .emarketplace-header .content * {
    font-size: 65px;
  }

  .emarketplace-header .content {
    max-width: 700px;
  }

  .session-content {
    padding-left: 0;
    padding-right: 0;
  }

  .views-view-grid--horizontal {
    --views-grid--column-count: 3 !important;
  }

  .card__summary {
    -webkit-line-clamp: 3;
  }

  :root {
    --learn-more-btn-height: 60px;
  }

  .card:hover .card__overlay .card__title {
    font-size: 18px;
  }
}

@media (min-width: 1400px) {
  .session-content-inner .article-title {
    font-size: 30px;
  }

  .views-view-grid {
    row-gap: 3rem;
  }

  .card__summary {
    font-size: 16px;
  }

  .card__date-value {
    font-size: 19px;
  }

  .card__body {
    padding: 132px 32px calc(var(--learn-more-btn-height) + 32px);
  }

  .card__title {
    font-size: 20px;
  }

  :root {
    --learn-more-btn-height: 70px;
  }

  .form-override {
    padding: 0 5rem;
  }

  .card__date-block {
    bottom: 112px;
  }
}

@media (min-width: 1500px) {
  .card__summary {
    -webkit-line-clamp: 3;
  }
}

@media (min-width: 1600px) {
  .card__summary {
    -webkit-line-clamp: 4;
  }

  .watch-btn {
    bottom: 100px;
  }
}

@media (min-width: 1700px) {
  .session-content-inner {
    padding: 16px 64px 64px;
  }

  .session-content-inner .article-title {
    font-size: 36px;
  }
}
