﻿/* Event redesign styles ported from GTM EIT. Loaded in addition to layout.css. */

#tribe-events .tribe-events-single .button, .event-list .button, .filter .btn-filter, .resource-centre .resources .resource-item .button {
  display: block;
  background-color: #0d3b70;
  box-sizing: border-box;
  border: 0;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  text-align: center;
  margin-top: 20px;
  padding: 10px 20px;
  transition: background-color .5s ease-in-out
}

#tribe-events .tribe-events-single .button:hover, .event-list .button:hover, .filter .btn-filter:hover, .resource-centre .resources .resource-item .button:hover {
  background-color: #3a7bc8;
  color: #fff
}

.latest-events__header {
  margin-bottom: 30px
}

.home .latest-events {
  padding-top: 0;
  padding-bottom: 20px
}

.event-list .event-list__layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.event-list .event-list__filter-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.15);
  padding: 16px;
}

.event-list .event-list__filter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-list .event-list__filter-controls {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.event-list .event-list__filter-fields {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 16px;
  min-width: 0;
}

.event-list .event-list__filter-field {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  max-width: 452px;
  min-width: 240px;
}

.event-list .event-list__filter-field--country {
  display: none;
}

.event-list .event-list__filter-note-text--mobile {
  display: none;
}

.event-list .event-list__filter-label {
  color: #003a70;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.event-list .event-list__select-wrap {
  position: relative;
}

.event-list .event-list__select {
  appearance: none;
  background: #fff;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  color: #000;
  font-size: 16px;
  line-height: 1.5;
  padding: 8px 40px 8px 16px;
  width: 100%;
}

.event-list .event-list__select-chevron {
  color: #000;
  height: 20px;
  pointer-events: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
}

.event-list .event-list__filter-btn {
  background: #003a70;
  border: 0;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  height: 48px;
  min-width: 120px;
  padding: 10px 35px;
}

.event-list .event-list__filter-btn:hover {
  background: #002a52;
}

.event-list .event-list__filter-note {
  color: #000;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.event-list .event-list__filter-note a {
  color: #407ec9;
  text-decoration: underline;
}

.event-list .event-list__results {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.event-list .event-list__no-results {
  color: #666;
  font-size: 16px;
  margin: 0;
  text-align: center;
}

.event-list .event-list__load-more-wrap {
  display: flex;
  justify-content: center;
}

.event-list .event-list__load-more {
  background: #e87722;
  border: 0;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 35px;
}

.event-list .event-list__load-more:hover {
  background: #d06a1c;
}

.event-list .event-list__load-more.is-loading {
  cursor: wait;
  opacity: 0.8;
}

.event-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
  display: flex;
  overflow: hidden;
}

.event-card__image-link {
  display: block;
  flex: 0 0 330px;
  max-width: 330px;
  text-decoration: none;
}

.event-card__image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  min-height: 220px;
  width: 100%;
}

.event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 24px;
}

.event-card__title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.event-card__title a {
  color: #003a70;
  text-decoration: none;
}

.event-card__title a:hover {
  color: #407ec9;
}

.event-card__meta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.event-card__meta-item {
  align-items: center;
  display: flex;
  gap: 16px;
}

.event-card__meta-item span {
  color: #000;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.event-card__meta-icon {
  display: block;
  flex-shrink: 0;
}

.event-card__meta-icon--svg {
  height: 28px;
  width: 28px;
}

.event-card__meta-item--type {
  gap: 4px;
}

.event-card__meta-label {
  color: #000;
  font-size: 16px;
  font-weight: 600;
}

.event-card__meta-value {
  color: #000;
  font-size: 16px;
  font-weight: 400;
}

.event-card__description {
  color: #000;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.event-card__footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: auto;
}

.event-card__tags {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 16px;
  min-width: 0;
}

.event-card__tag {
  background: #eaeef2;
  border-radius: 5px;
  color: #003a70;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 10px;
}

.event-card__cta {
  background: #e87722;
  border-radius: 5px;
  color: #fff;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  min-width: 200px;
  padding: 10px 35px;
  text-align: center;
  text-decoration: none;
}

.event-card__cta:hover {
  background: #d06a1c;
  color: #fff;
}

.event-card__cta.event-card__cta--past:disabled {
  appearance: none;
  background: #eaeef2;
  border: 0;
  color: #999;
  cursor: not-allowed;
  display: inline-block;
  font-family: inherit;
  opacity: 1;
  pointer-events: none;
}

.event-card__cta.event-card__cta--past:disabled {
  background: #eaeef2;
  color: #999;
}

.event-list .button {
  background-color: #e87722;
  color: #fff;
}

#tribe-events .tribe-events-single .button {
    background-color: #e87722;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    padding: 10px 35px;
    width: auto;
    height: auto;
    text-align: center;
    line-height: 1.5;
    display: inline-block;
    text-decoration: none;
    margin-top: 0;
    margin-bottom: 0;
}

#tribe-events .tribe-events-single .post-categories {
  list-style: none;
  padding: 0;
  margin: 0
}

#tribe-events .tribe-events-single .post-categories li {
  font-weight: 700;
  margin-bottom: 20px
}

#tribe-events .tribe-events-single .button.past-event, .event-list .button.past-event {
  background: transparent;
  color: #999;
  border: 2px solid #ccc
}

@media (max-width: 600px) {
  .home .latest-events {
  padding-top: 0;
  margin-top: -40px;
  /* padding-bottom: 100px; */
  height: auto;
  background-color: #EAEEF2;
  }
}

@media (max-width: 991px) {
  .event-card {
  flex-direction: column;
  }
  .event-card__image-link {
  flex: none;
  max-width: none;
  width: 100%;
  }
  .event-card__image {
  min-height: 200px;
  }
  .event-card__meta-row {
  gap: 16px;
  }
  .event-card__meta-item span {
  white-space: normal;
  }
}

@media (max-width: 767px) {
  .event-list.section-padding {
  padding: 32px 0;
  }
  .event-list > .container {
  padding-left: 15px;
  padding-right: 15px;
  }
  .event-list .event-list__filter-card {
  padding: 24px;
  }
  .event-list .event-list__filter-form {
  gap: 24px;
  }
  .event-list .event-list__filter-controls {
  align-items: stretch;
  flex-direction: column;
  gap: 24px;
  }
  .event-list .event-list__filter-fields {
  flex-direction: column;
  gap: 24px;
  width: 100%;
  }
  .event-list .event-list__filter-field {
  max-width: none;
  width: 100%;
  }
  .event-list .event-list__filter-field--country {
  display: flex;
  }
  .event-list .event-list__filter-note-text--desktop {
  display: none;
  }
  .event-list .event-list__filter-note-text--mobile {
  display: inline;
  }
  .event-list .event-list__filter-btn {
  width: 100%;
  }
  .event-card__image {
  border-radius: 8px 8px 0 0;
  height: 207px;
  min-height: 207px;
  }
  .event-card__body {
  padding: 24px;
  }
  .event-card__meta-row {
  align-items: flex-start;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 16px;
  }
  .event-card__footer {
  align-items: stretch;
  flex-direction: column;
  gap: 16px;
  }
  .event-card__tags {
  flex: none;
  width: 100%;
  }
  .event-card__cta {
  min-width: 0;
  width: 100%;
  }
  .event-card__cta.event-card__cta--past {
  text-align: center;
  width: 100%;
  }
}

.event-single {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.event-single__details-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-single__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.event-single__meta-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.event-single__meta-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.event-single__meta-icon {
  flex-shrink: 0;
  display: block;
}

.event-single__meta-icon--svg {
  width: 28px;
  height: 28px;
}

.event-single__meta-text {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
}

.event-single__meta-item--type {
  gap: 4px;
}

.event-single__meta-label {
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.event-single__meta-value {
  font-size: 16px;
  font-weight: 400;
  color: #000;
}

.event-single__local-time {
  font-size: 16px;
  color: #000;
  margin: 0;
  line-height: 1.5;
}

.event-single__timezone-link {
  color: #407ec9;
  text-decoration: underline;
}

.event-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.event-single__tag {
  background: #eaeef2;
  border-radius: 5px;
  color: #003a70;
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
  line-height: 1;
}

.event-single__register {
  width: 100%;
}

.event-single__register-btn {
  background-color: #e87722 !important;
  border-radius: 5px;
  color: #fff !important;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  min-width: 200px;
  padding: 10px 35px;
  text-align: center;
  text-decoration: none;
  width: auto;
}

.event-single__register-btn:hover {
  background-color: #d06a1c !important;
  color: #fff !important;
}

.event-single__content .tribe-events-content {
  color: #000;
  font-size: 16px;
  line-height: 1.5;
}

.event-single__content .tribe-events-content h4 {
  color: #000;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
}

.event-single__content .tribe-events-content p {
  margin-bottom: 16px;
}

.event-single__content .tribe-events-content a {
  color: #407ec9;
  text-decoration: underline;
}

.event-single__content .tribe-events-content ul {
  margin: 0 0 16px;
  padding-left: 24px;
}

.event-single__content .tribe-events-content img {
  border-radius: 8px;
  height: auto;
  max-width: 100%;
}

.event-single__content .tribe-events-content > img:first-child {
  aspect-ratio: 1200 / 300;
  object-fit: cover;
  width: 100%;
}

.event-single__footer-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-single__calendar-wrap {
  position: relative;
  width: fit-content;
}

.event-single__calendar-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #407ec9;
  border-radius: 5px;
  color: #407ec9;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
  min-width: 240px;
  padding: 10px 24px;
}

.event-single__calendar-chevron {
  height: 16px;
  margin-left: auto;
  width: 16px;
}

.event-single__calendar-menu {
  background: #fff;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  left: 0;
  min-width: 240px;
  position: absolute;
  top: calc(100% + 8px);
  z-index: 10;
}

.event-single__calendar-menu a {
  color: #003a70;
  font-size: 14px;
  padding: 12px 16px;
  text-decoration: none;
}

.event-single__calendar-menu a:hover {
  background: #eaeef2;
}

.event-single__back-btn {
  background-color: #e87722 !important;
  border-radius: 5px;
  color: #fff !important;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  height: 44px;
  line-height: 24px;
  margin: 0;
  padding: 10px 35px;
  text-align: center;
  text-decoration: none;
  width: fit-content;
}

.event-single__back-btn:hover {
  background-color: #d06a1c !important;
  color: #fff !important;
}

#tribe-events .tribe-events-single .button.past-event {
  background: transparent;
  border: 2px solid #ccc;
  color: #999;
  min-width: 200px;
}

@media (max-width: 991px) {
  .event-single__meta-row {
  gap: 16px;
  }
  .event-single__meta-text {
  white-space: normal;
  }
}

@media (max-width: 767px) {
  .tribe-events-single.section-padding {
  padding: 0 0 20px;
  }
  .tribe-events-single > .container {
  padding-left: 15px;
  padding-right: 15px;
  }
  .event-single {
  gap: 32px;
  }
  .event-single__details-card {
  padding: 24px;
  width: 100%;
  }
  .event-single__meta-stack {
  align-items: stretch;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  }
  .event-single__meta-item {
  width: 100%;
  }
  .event-single__meta-item--type {
  flex-wrap: wrap;
  white-space: normal;
  }
  .event-single__meta-value {
  white-space: normal;
  }
  .event-single__local-time {
  word-break: break-word;
  }
  .event-single__tags {
  width: 100%;
  }
  #tribe-events .tribe-events-single .button.past-event {
  display: block;
  min-width: 0;
  text-align: center;
  width: 100%;
  }
  .event-single__back-btn {
  width: fit-content;
  }
  .event-single__calendar-wrap {
  max-width: 100%;
  width: 100%;
  }
  .event-single__calendar-btn {
  width: 100%;
  }
  .event-single__calendar-menu {
  left: 0;
  right: 0;
  width: 100%;
  }
  .event-single__content .tribe-events-content h4 {
  font-size: 21px;
  line-height: 1.2;
  }
  .event-single__content .tribe-events-content iframe {
  aspect-ratio: 16 / 9;
  height: auto;
  max-width: 100%;
  width: 100%;
  }
  .latest-events.section-padding.bg-grey {
  background: #f5f5f5;
  padding: 24px 0;
  }
  .latest-events .latest-news__header {
  margin-bottom: 20px;
  text-align: left;
  }
  .latest-events .latest-news__header .col-lg-4 {
  text-align: left !important;
  }
  .latest-events .latest-news__header h2 {
  font-size: 30px;
  line-height: 36px;
  margin-bottom: 0;
  }
  .latest-events .latest-news__viewall {
  color: #003a70;
  font-size: 21px;
  font-weight: 700;
  }
  .latest-events .col-lg-6 {
  flex: 0 0 100%;
  max-width: 100%;
  }
  .latest-events .event__item .row.no-gutters {
  flex-direction: column;
  }
  .latest-events .event__item .col-lg-9 {
  flex: 0 0 100%;
  max-width: 100%;
  }
  .latest-events .event-date {
  border-radius: 10px 10px 0 0;
  font-size: 21px;
  min-height: 135px;
  }
  .latest-events .event__item--details {
  padding: 10px 20px;
  }
  .latest-events .event__item--title {
  font-size: 14px;
  padding-bottom: 10px;
  }
  .latest-events .event__item--link {
  margin-top: 10px;
  }
}

