/**
 * Jury archive: Exhibz-era markup (ts-speaker, Bootstrap col-*) without Exhibz parent CSS.
 * Scoped under .jury.main-container where possible.
 */

/* --- Layout: container + Bootstrap-like grid (parent Bricks has no Bootstrap) --- */
.jury.main-container {
  box-sizing: border-box;
}

.jury.main-container *,
.jury.main-container *::before,
.jury.main-container *::after {
  box-sizing: inherit;
}

.jury.main-container .container-fluid {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 60px;
  padding-right: 60px;
}

.jury.main-container .container:not(.ts-speaker-popup) {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.jury.main-container .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.jury.main-container [class*="col-"] {
  position: relative;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  min-height: 1px;
}

@media (min-width: 768px) {
  .jury.main-container .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .jury.main-container .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .jury.main-container .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }

  .jury.main-container .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .jury.main-container .col-lg-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
}

/* --- Section titles (matches WPCodeBox / Exhibz .custom_archive h2) --- */
.jury.main-container .custom_archive {
  margin-bottom: 50px;
}

.jury.main-container .custom_archive h2,
.jury.main-container .custom_archive .section-title {
  text-align: center;
  color: #b4975a;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.2vw, 4rem);
  margin: 2rem 0 0.5rem;
  letter-spacing: 0.02em;
}

.jury.main-container .custom_archive .section-title:first-of-type,
.jury.main-container .custom_archive h2.section-title:first-of-type {
  margin-top: 0;
}

/* --- Vice chairs / grand jury cards (inline blocks from template) --- */
.jury.main-container .new-jury-members {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 50px;
}

.jury.main-container .jury-member-box {
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  max-width: 350px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  margin-bottom: 20px;
}

.jury.main-container .jury-member-box img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 10px;
}

.jury.main-container .jury-member-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.jury.main-container .jury-member-box h3 {
  margin-bottom: 5px;
  font-size: 1.1em;
  font-weight: 700;
}

.jury.main-container .jury-member-box p {
  margin-bottom: 5px;
  font-size: 0.9em;
  color: #666;
}

.jury.main-container .jury-member-box p:last-child {
  margin-bottom: 0;
}

.jury.main-container .jury-member-box .stretch {
  flex-grow: 1;
}

/* Vice chairs: title + CTA on one row, vertically centered */
.jury.main-container .jury-hero-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  margin-bottom: 0.25rem;
  padding: 0 4px;
}

.jury.main-container .jury-hero-row .section-title {
  margin: 0;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .jury.main-container .jury-hero-row .section-title {
    padding: 0 clamp(100px, 14vw, 240px);
  }
}

.jury.main-container .jury-hero-row .jury-cta-button {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
}

.jury.main-container .jury-cta-button {
  flex-shrink: 0;
}

.jury.main-container .jury-cta-button .elementskit-btn {
  display: inline-block;
  padding: 16px;
  font-family: "Lato", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background-color: #b4975a;
  border: 1px solid #b4975a;
  border-radius: 5px;
  box-shadow: 19px 19px 40px 0 rgba(0, 0, 0, 0.1);
}

.jury.main-container .jury-cta-button .elementskit-btn:hover {
  background-color: #333;
  border-color: #333;
  color: #fff;
}

@media (max-width: 768px) {
  .jury.main-container .new-jury-members {
    flex-direction: column;
    align-items: center;
  }

  .jury.main-container .container-fluid {
    padding-left: 23px;
    padding-right: 23px;
  }

  .jury.main-container .jury-member-box {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .jury.main-container .jury-hero-row {
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
    padding: 0;
    margin-bottom: 1rem;
  }

  .jury.main-container .jury-hero-row .section-title {
    order: 1;
  }

  .jury.main-container .jury-hero-row .jury-cta-button {
    position: static;
    transform: none;
    order: 2;
    width: 100%;
    text-align: center;
    margin-bottom: 0;
    padding: 0 15px;
  }

  .jury.main-container .jury-hero-row .jury-cta-button .elementskit-btn {
    width: 100%;
    max-width: 320px;
    padding: 12px;
    font-size: 14px;
  }
}

/* --- Filter sidebar (from legacy WPCodeBox / Exhibz) --- */
.jury.main-container .ts_filter_sidebar {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0 50px;
  margin-bottom: 0;
  box-shadow: none;
}

.jury.main-container .ts_filter_sidebar_title {
  color: #b69d66;
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: none;
}

.jury.main-container .ts_main_box_filter {
  border: 1px solid #e2e2e2;
  border-left: none;
  padding: 15px 0;
  margin-bottom: 0;
}

.jury.main-container .ts_main_box_filter + .ts_main_box_filter {
  border-top: none;
}

.jury.main-container .ts_filter_title {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 16px;
  text-transform: none;
  letter-spacing: normal;
  color: #333;
}

.jury.main-container .ts_main_box_filter ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jury.main-container .ts_main_box_filter ul li {
  margin-bottom: 2px;
}

.jury.main-container .ts_main_box_filter ul li span {
  margin-left: 10px;
  font-size: 16px;
  color: #444;
}

.jury.main-container .ts_main_box_filter ul li label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  cursor: pointer;
}

.jury.main-container .ts_main_box_filter ul li label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  accent-color: #b4975a;
}

.jury.main-container .load_more_btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Speaker grid cards (Exhibz: space-evenly + circular headshots) --- */
.jury.main-container .row.jury_content {
  align-items: stretch;
  justify-content: space-evenly;
}

.jury.main-container article.ts-jury {
  margin-bottom: 1.75rem;
  display: flex;
}

.jury.main-container .ts-jury .ts-title {
  cursor: pointer;
  transition: color 0.25s ease;
}

.jury.main-container .ts-jury:hover .ts-speaker-info .ts-title {
  color: #c5a66a;
}

.jury.main-container .ts-speaker {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  border: none;
  transition: transform 0.25s ease;
}

.jury.main-container .ts-speaker:hover {
  transform: translateY(-2px);
}

.jury.main-container .ts-speaker .speaker-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #f0f0f0;
}

.jury.main-container .jury_content .ts-speaker .speaker-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.jury.main-container .ts-speaker:hover .speaker-img img {
  transform: scale(1.05);
}

.jury.main-container .ts-speaker .view-speaker {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(48, 36, 92, 0.52);
  opacity: 0;
  transition: opacity 0.3s ease;
  text-decoration: none;
  color: #fff;
}

.jury.main-container .ts-speaker:hover .view-speaker {
  opacity: 1;
}

/* White + in thin white ring — override theme icon font (often green) */
.jury.main-container .ts-speaker .view-speaker i.icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: transparent !important;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 0;
  line-height: 1;
  color: #fff !important;
  box-shadow: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.jury.main-container .ts-speaker .view-speaker i.icon::before {
  font-family: inherit !important;
}

.jury.main-container .ts-speaker .view-speaker i.icon::after {
  content: none !important;
  display: none !important;
}

.jury.main-container .ts-speaker .view-speaker i.icon.icon-plus::before {
  content: "+" !important;
  font-size: 1.5rem !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.jury.main-container .ts-speaker-info {
  padding: 0 8px 12px;
  text-align: center;
}

.jury.main-container .ts-speaker-info .ts-title {
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 29px;
  margin: 0 0 6px;
  color: rgb(182, 157, 102);
}

.jury.main-container .ts-speaker-info .speakder-designation,
.jury.main-container .ts-jury .speakder-designation {
  font-size: 15px;
  color: #666;
  line-height: 1.45;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hidden popup source (Magnific-style) */
.jury.main-container .mfp-hide {
  display: none !important;
}

/* --- Modal / lightbox --- */
.jury .mfp-bg.mfp-zoom-in {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(0, 0, 0, 0.88);
}

.jury .mfp-wrap.mfp-zoom-in {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  outline: none;
}

/* Center modal content (legacy .mfp-container rules, without second fixed layer) */
.jury.archive .mfp-container {
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 920px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  margin: 0 auto;
  flex: 1;
}

.jury .mfp-content {
  position: relative;
  float: left;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.jury .ts-speaker-popup {
  background: #fff;
  padding: 0;
  position: relative;
}

.jury .ts-speaker-popup .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.jury .ts-speaker-popup .col-lg-6 {
  width: 100%;
  padding: 0;
}

@media (min-width: 992px) {
  .jury .ts-speaker-popup .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.jury .ts-speaker-popup-img {
  min-height: 240px;
  background: #f5f5f5;
}

.jury .ts-speaker-popup-img img {
  width: 100%;
  height: auto;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.jury .ts-speaker-popup-content {
  padding: 60px 40px;
  text-align: left;
  font-family: var(--bricks-font-text-family, var(--body-font-family, inherit));
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.jury .ts-speaker-popup-content .ts-title {
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 29px;
  margin: 0 0 10px;
  color: rgb(182, 157, 102);
  font-family: var(--bricks-font-heading-family, var(--bricks-font-text-family, inherit));
}

.jury .ts-speaker-popup-content .speakder-designation {
  display: block;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 12px;
  color: #444;
}

.jury .ts-speaker-popup-content .company-wrapper {
  font-family: inherit;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.jury .ts-speaker-popup-content .organization-wrapper {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  color: #555;
  margin-bottom: 0.5rem;
}

.jury .ts-speaker-popup-content .company-logo {
  margin-bottom: 15px;
}

.jury .ts-speaker-popup-content p {
  margin-bottom: 25px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
}

.jury .ts-speaker-popup-content h4 {
  font-size: 20px;
  font-weight: 700;
}

.jury .ts-speaker-popup-content .session-name {
  margin-bottom: 15px;
}

.jury .ts-speaker-popup-content .speaker-session-info p {
  color: #e7015e;
  margin-bottom: 30px;
}

.jury .ts-speaker-popup-content .ts-speakers-social a {
  color: #ababab;
  margin-right: 18px;
}

.jury .ts-speaker-popup-content .ts-speakers-social a:hover {
  color: #e7015e;
}

.jury .ts-speaker-popup-content .entry-content,
.jury .ts-speaker-popup-content > *:last-child {
  margin-top: 1rem;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
}

.jury .ts-speaker-popup button.mfp-close {
  font-size: 30px;
  line-height: 1;
  width: 48px;
  height: 48px;
}

.jury .mfp-close-btn-in .mfp-close {
  color: #000;
}

.jury button.mfp-close,
.jury .mfp-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid #000 !important;
  background: #fff;
  color: #000;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.jury .mfp-close:hover {
  background: #f0f0f0;
}

.jury .mfp-preloader {
  display: none;
}

/* --- Empty state + AJAX loader (Exhibz tm_spin) --- */
.jury.main-container .no_jury {
  width: 100%;
  padding: 3rem 1rem;
  text-align: center;
  color: #666;
}

.jury.main-container .page-preloader-cover {
  height: 80vh;
  z-index: auto;
  width: 100%;
  min-height: 200px;
  display: block;
  position: relative;
}

.jury.main-container .page-preloader {
  position: relative;
  display: block;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -16.5px 0 0 -16.5px;
  border: 3px solid transparent;
  border-top-color: #222 !important;
  border-right-color: #222 !important;
  border-radius: 50%;
  animation: tm_spin 1s linear infinite;
  z-index: 11;
}

@-webkit-keyframes tm_spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes tm_spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
