/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.2
*/

:root {
  --event-blue: #65acda;
  --event-green: #13c4a3;
}
.et_pb_text_inner ul {
  list-style: none;
  padding-left: 1.5em;
}

.et_pb_text_inner ul li {
  position: relative;
}

.et_pb_text_inner ul li::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  background: #13c4a3;
  position: absolute;
  left: -1.2em;
  top: 0.5em;
  transform: skewX(-20deg);
}

/* Member search */
.member-search-form {
  margin-bottom: 1.5rem;
}

.member-search-form__inner {
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.member-search-form__field {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  padding: 0.85rem 1rem;
}

.member-search-form__field--specialism {
  border-top: 1px solid #e5e7eb;
}

.member-search-form__icon {
  flex-shrink: 0;
  margin-right: 0.65rem;
  color: #9ca3af;
  line-height: 0;
}

.member-search-form__field input,
.member-search-form__field select {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f2937;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  box-shadow: none;
  appearance: none;
}

.member-search-form__field input::placeholder {
  color: #9ca3af;
}

.member-search-form__field input:focus,
.member-search-form__field select:focus {
  outline: none;
}

.member-search-form__field--specialism select {
  padding-right: 1.75rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 12px 8px;
}

.member-search-form__divider {
  display: none;
}

.member-search-form__submit {
  width: 100%;
  margin: 0;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: 0;
  background: #13c4a3;
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.member-search-form__submit:hover {
  background: #10a88c;
}

.member-search-form .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (min-width: 768px) {
  .member-search-form__inner {
    flex-direction: row;
    align-items: stretch;
  }

  .member-search-form__field--search {
    flex: 1 1 50%;
  }

  .member-search-form__field--specialism {
    flex: 1 1 35%;
    border-top: 0;
  }

  .member-search-form__divider {
    display: block;
    flex: 0 0 1px;
    align-self: stretch;
    width: 1px;
    background: #e5e7eb;
  }

  .member-search-form__submit {
    flex: 0 0 auto;
    width: auto;
    min-width: 7rem;
  }
}

/* Member directory */
.member-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 981px) {
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.member-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  line-height: 1.45;
}

.member-card a {
  text-decoration: none;
}

.member-card__main {
  display: flex;
  align-items: flex-start;
}

.member-card__media {
  flex: 0 0 100px;
  max-width: 100px;
  padding: 0;
}

.member-card__photo {
  display: block;
  overflow: hidden;
}

.member-card__photo img,
.member-card__photo-placeholder {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.member-card__linkedin {
  display: inline-flex;
  margin-top: 0.5rem;
  margin-left: 0.5rem;
  color: #0a66c2;
}

.member-card__linkedin:hover {
  color: #004182;
}

.member-card__content {
  flex: 1;
  min-width: 0;
}

.member-card__header {
  background: #13c4a3;
  padding: 0.65rem 1rem;
}

.member-card__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
}

.member-card__details {
  padding: 0.85rem 1rem 1rem;
  color: #1f2937;
}

.member-card__company {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.member-card__address {
  margin: 0 0 0.5rem;
  font-style: normal;
}

.member-card__address span {
  display: block;
}

.member-card__contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
}

.member-card__icon {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background: #d1d5db;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}

.member-card__contact a {
  color: inherit;
}

.member-card__contact--phone a:hover {
  text-decoration: underline;
}

.member-card__contact--website a {
  color: #13c4a3;
}

.member-card__contact--website a:hover {
  text-decoration: underline;
}

.member-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e5e7eb;
}

.member-card__footer-label {
  font-weight: 700;
  color: #1f2937;
}

.member-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.member-card__tag {
  background: #e5e7eb;
  border-radius: 2px;
  color: #1f2937;
  font-size: 0.9rem;
  line-height: 1.3;
  padding: 0.2rem 0.55rem;
}

/* Events list */
.vira-events {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 981px) {
  .vira-events {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vira-event {
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.vira-event__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
}

.vira-event__date {
  color: var(--event-blue);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.3;
}

@media (min-width: 600px) {
  .vira-event__date {
    font-size: 1.3rem;
  }
}

.vira-event__card {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
  padding: 1rem 1rem 1rem;
  background: var(--event-blue);
  color: #fff;
  text-align: left;
}

.vira-event__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.vira-event__title a {
  color: #fff;
  text-decoration: none;
}

.vira-event__title a:hover {
  text-decoration: underline;
}

.vira-event__location {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vira-event__excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

.vira-event__link {
  align-self: flex-end;
  margin-top: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: #fff;
  color: #1f2937;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.vira-event__link:hover {
  background: #f3f4f6;
}

/* Events archive list */
.vira-events--past {
  grid-template-columns: 1fr;
}

.vira-event-archive {
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (min-width: 600px) {
  .vira-event-archive {
    flex-direction: row;
    align-items: stretch;
  }
}

.vira-event-archive__date {
  flex: 0 0 auto;
  padding: 0.65rem 1rem;
  background: #fff;
  color: var(--event-blue);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.4;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.vira-event-archive__title {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  background: var(--event-blue);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}

.vira-event-archive__title a {
  color: #fff;
  text-decoration: none;
}

.vira-event-archive__title a:hover {
  text-decoration: underline;
}

/* Navigation menu .custom-menu */
@media (min-width: 980px) {
  .custom-menu li {
    padding-right: 10px;
    padding-left: 10px;
    transform: skewX(-20deg);
    margin: 0px 2px !important;
    padding: 27px 17px 18px 17px;
  }

  .custom-menu li a {
    transform: skewX(20deg);
  }

  .custom-menu li:hover {
    background: #13c4a330;
  }

  .custom-menu .current_page_item {
    transform: skewX(-20deg);
  }

  .et_pb_menu_0_tb_header.et_pb_menu {
    height: 67px;
  }
}

@media (max-width: 980px) {
  .et_pb_menu_0_tb_header .et_pb_menu_inner_container {
    width: 100% !important;
    position: absolute;
  }

  .et_pb_menu .et_mobile_menu {
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: right !important;
  }

  .et_pb_menu .et_mobile_menu li a {
    color: var(--event-green) !important;
    font-weight: 900 !important;
    font-size: 1rem !important;
  }

  .et_pb_menu .et_mobile_menu li.current_page_item {
    background: var(--event-green) !important;
    color: #fff !important;
  }
}
.custom-menu .current_page_item {
  background: #13c4a3;
  padding-right: 10px;
  padding-left: 10px;
}

.custom-menu .current_page_item:hover a {
  color: #13c4a3 !important;
}

/* Force menu links to always show */
.no-collapse-menu .et_pb_menu__menu {
  display: block !important;
}

/* Hide the hamburger button for this menu only */
.no-collapse-menu .mobile_nav {
  display: none !important;
}

/* Keep nav horizontal */
.no-collapse-menu .et_pb_menu__menu > ul {
  display: flex !important;
  flex-wrap: wrap;
}
