/* Experts public pages — layout independent of Tailwind purge */

:root {
  --lantox-dark-blue: #373845;
  --lantox-teal: #41bbb6;
  --lantox-light-teal: #d9eded;
  --lantox-gray: #6B7280;
  --font-tenor: 'Tenor Sans', serif;
  --font-manrope: 'Manrope', sans-serif;
  --container-experts: 64rem;
  --container-detail: 56rem;
}

.experts-page-main {
  padding-top: 7rem;
  padding-bottom: 6rem;
}

.experts-container {
  width: 100%;
  max-width: var(--container-experts);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.experts-container--detail {
  max-width: var(--container-detail);
}

@media (min-width: 768px) {
  .experts-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.experts-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.experts-hero__title {
  font-family: var(--font-tenor);
  font-size: 2.25rem;
  color: var(--lantox-dark-blue);
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .experts-hero__title {
    font-size: 3rem;
  }
}

.experts-hero__subtitle {
  font-family: var(--font-manrope);
  font-size: 1rem;
  font-weight: 300;
  color: var(--lantox-gray);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .experts-hero__subtitle {
    font-size: 1.125rem;
  }
}

.experts-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.expert-card {
  background: #ffffff;
  border: 1px solid rgb(65 187 182 / 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.expert-card:hover {
  border-color: rgb(65 187 182 / 0.3);
}

.expert-card__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 768px) {
  .expert-card__inner {
    flex-direction: row;
    min-height: 16rem;
  }
}

.expert-card__photo-wrap {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 1.25rem 1.25rem 0;
}

@media (min-width: 768px) {
  .expert-card__photo-wrap {
    width: 14rem;
    padding: 0;
    display: block;
  }
}

.expert-card__photo {
  width: 12rem;
  height: 16rem;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border-radius: 0.75rem;
  background: rgb(217 237 237 / 0.2);
}

@media (min-width: 768px) {
  .expert-card__photo {
    width: 100%;
    height: 100%;
    min-height: 16rem;
    margin: 0;
    border-radius: 0;
  }
}

.expert-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

@media (min-width: 768px) {
  .expert-card__photo img {
    object-position: center;
  }
}

.expert-card__body {
  flex: 1;
  min-width: 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .expert-card__body {
    padding: 1.5rem;
  }
}

.expert-card__name-block {
  margin-bottom: 0.5rem;
}

.expert-card__name {
  font-family: var(--font-tenor);
  font-size: 1.125rem;
  color: var(--lantox-dark-blue);
  transition: color 0.2s ease;
  text-decoration: none;
}

@media (min-width: 768px) {
  .expert-card__name {
    font-size: 1.25rem;
  }
}

.expert-card__name:hover {
  color: var(--lantox-teal);
}

.expert-card__degree {
  font-family: var(--font-manrope);
  font-size: 0.75rem;
  color: var(--lantox-teal);
  font-weight: 500;
  margin-top: 0.125rem;
}

.expert-card__description {
  font-family: var(--font-manrope);
  font-size: 0.875rem;
  color: var(--lantox-dark-blue);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.expert-card__description p {
  margin: 0 0 0.5rem;
}

.expert-card__description p:last-child {
  margin-bottom: 0;
}

.expert-card__description a {
  color: var(--lantox-teal);
}

.expert-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-manrope);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lantox-teal);
  white-space: nowrap;
  width: fit-content;
  transition: color 0.2s ease;
  text-decoration: none;
}

.expert-card__more:hover {
  color: var(--lantox-dark-blue);
}

.become-cta {
  margin-top: 4rem;
  padding: 2rem;
  background: linear-gradient(
    to right,
    rgb(65 187 182 / 0.05),
    rgb(217 237 237 / 0.3),
    rgb(65 187 182 / 0.05)
  );
  border: 1px solid rgb(65 187 182 / 0.2);
  border-radius: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .become-cta {
    padding: 3rem;
  }
}

.become-cta__icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lantox-teal);
  border-radius: 9999px;
  margin: 0 auto 1.25rem;
}

.become-cta__icon i {
  font-size: 1.5rem;
  color: #ffffff;
}

.become-cta__title {
  font-family: var(--font-tenor);
  font-size: 1.5rem;
  color: var(--lantox-dark-blue);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .become-cta__title {
    font-size: 1.875rem;
  }
}

.become-cta__text {
  font-family: var(--font-manrope);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--lantox-gray);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .become-cta__text {
    font-size: 1rem;
  }
}

.become-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--lantox-teal);
  color: #ffffff;
  border-radius: 9999px;
  font-family: var(--font-manrope);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.become-cta__btn:hover {
  background: var(--lantox-dark-blue);
}

.experts-empty {
  text-align: center;
  font-family: var(--font-manrope);
  font-size: 0.875rem;
  color: var(--lantox-gray);
}

/* Detail page */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-manrope);
  font-size: 0.875rem;
  color: var(--lantox-teal);
  white-space: nowrap;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.back-link:hover {
  color: var(--lantox-dark-blue);
}

.detail-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .detail-header {
    flex-direction: row;
    gap: 2rem;
  }
}

.detail-header__photo-wrap {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .detail-header__photo-wrap {
    width: 16rem;
    display: block;
  }
}

.detail-header__photo {
  width: 12rem;
  height: 16rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background: rgb(217 237 237 / 0.2);
}

@media (min-width: 768px) {
  .detail-header__photo {
    width: 16rem;
    height: 20rem;
  }
}

.detail-header__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.detail-header__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-header__name {
  font-family: var(--font-tenor);
  font-size: 1.5rem;
  color: var(--lantox-dark-blue);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .detail-header__name {
    font-size: 1.875rem;
  }
}

.detail-header__degree {
  font-family: var(--font-manrope);
  font-size: 0.875rem;
  color: var(--lantox-teal);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.detail-header__description {
  font-family: var(--font-manrope);
  font-size: 0.875rem;
  color: var(--lantox-dark-blue);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.detail-header__description p {
  margin: 0 0 0.5rem;
}

.detail-header__description p:last-child {
  margin-bottom: 0;
}

.detail-header__bio {
  font-family: var(--font-manrope);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--lantox-gray);
  line-height: 1.625;
}

.detail-header__bio p {
  margin: 0 0 0.5rem;
}

.detail-header__bio p:last-child {
  margin-bottom: 0;
}

.detail-header__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  background: rgb(217 237 237 / 0.3);
  border-radius: 0.5rem;
  font-family: var(--font-manrope);
  font-size: 0.75rem;
  color: var(--lantox-dark-blue);
  white-space: nowrap;
}

.badge i {
  color: var(--lantox-teal);
}

.detail-section {
  margin-bottom: 2.5rem;
}

.detail-section__title {
  font-family: var(--font-tenor);
  font-size: 1.125rem;
  color: var(--lantox-dark-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-section__title i {
  color: var(--lantox-teal);
}

.detail-section__text {
  font-family: var(--font-manrope);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--lantox-gray);
  line-height: 1.625;
}

.detail-section__text p {
  margin: 0 0 1rem;
}

.detail-section__text p:last-child {
  margin-bottom: 0;
}

.detail-section__text a {
  color: var(--lantox-teal);
}

.methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.method-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: rgb(65 187 182 / 0.08);
  border: 1px solid rgb(65 187 182 / 0.15);
  border-radius: 0.375rem;
  font-family: var(--font-manrope);
  font-size: 0.75rem;
  color: var(--lantox-teal);
  white-space: nowrap;
}

.detail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(65 187 182 / 0.1);
}

@media (min-width: 640px) {
  .detail-nav {
    flex-direction: row;
  }
}

.detail-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-manrope);
  font-size: 0.875rem;
  color: var(--lantox-teal);
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.detail-nav__link:hover {
  color: var(--lantox-dark-blue);
}

.detail-nav__all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgb(65 187 182 / 0.1);
  border: 1px solid rgb(65 187 182 / 0.2);
  border-radius: 9999px;
  font-family: var(--font-manrope);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lantox-teal);
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}

.detail-nav__all:hover {
  background: var(--lantox-teal);
  color: #ffffff;
}

/* Consultation popup (compact, like main-site call-request) */
.experts-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(55, 56, 69, 0.55);
  overflow-y: auto;
}

.experts-popup.is-open {
  display: flex;
}

.experts-popup__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(55, 56, 69, 0.25);
  padding: 28px 24px 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

@media (min-width: 768px) {
  .experts-popup__dialog {
    max-width: 560px;
    padding: 32px 36px 28px;
    border-radius: 28px;
  }
}

.experts-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 9999px;
  background: rgb(217 237 237 / 0.7);
  color: var(--lantox-dark-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.experts-popup__close:hover {
  background: var(--lantox-teal);
  color: #ffffff;
}

.experts-popup__close i {
  font-size: 1.25rem;
  line-height: 1;
}

.experts-popup__header {
  padding-right: 36px;
  margin-bottom: 1.25rem;
}

.experts-popup__title {
  font-family: var(--font-tenor);
  font-size: 1.5rem;
  color: var(--lantox-dark-blue);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .experts-popup__title {
    font-size: 1.75rem;
  }
}

.experts-popup__desc {
  font-family: var(--font-manrope);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--lantox-gray);
  line-height: 1.5;
  margin: 0;
}

.experts-popup__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.experts-popup__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .experts-popup__row {
    grid-template-columns: 1fr 1fr;
  }
}

.experts-popup__field label {
  display: block;
  font-family: var(--font-manrope);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--lantox-dark-blue);
  margin-bottom: 0.375rem;
}

.experts-popup__field label span {
  color: #ef4444;
}

.experts-popup__field input,
.experts-popup__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.625rem;
  font-family: var(--font-manrope);
  font-size: 0.9375rem;
  color: var(--lantox-dark-blue);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.experts-popup__field textarea {
  resize: none;
  min-height: 72px;
}

.experts-popup__field input:focus,
.experts-popup__field textarea:focus {
  outline: none;
  border-color: var(--lantox-teal);
  box-shadow: 0 0 0 3px rgb(65 187 182 / 0.2);
}

.experts-popup__error {
  display: none;
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #dc2626;
}

.experts-popup__error.is-visible {
  display: block;
}

.experts-popup__policy {
  margin: 0.25rem 0 0;
  font-family: var(--font-manrope);
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.45;
}

.experts-popup__policy a {
  color: var(--lantox-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.experts-popup__status {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.experts-popup__status.is-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.experts-popup__status.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.experts-popup__submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 9999px;
  background: var(--lantox-teal);
  color: #ffffff;
  font-family: var(--font-manrope);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.experts-popup__submit:hover:not(:disabled) {
  background: var(--lantox-dark-blue);
}

.experts-popup__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.related-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-cards__item {
  display: block;
  background: #f5f8fb;
  border-radius: 0.75rem;
  padding: 1.125rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

a.related-cards__item--link:hover {
  background: #eef3f8;
}

.related-cards__title {
  font-family: var(--font-manrope);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--lantox-dark-blue);
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.related-cards__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 1.25rem;
}

.related-cards__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-manrope);
  font-size: 0.8125rem;
  color: var(--lantox-gray);
}

.related-cards__meta-item i {
  color: var(--lantox-teal);
  font-size: 1rem;
  line-height: 1;
}

.related-cards__meta-item--experts {
  max-width: 100%;
  white-space: normal;
  align-items: flex-start;
}

.related-cards__meta-item--experts i {
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.related-cards__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  background: rgb(65 187 182 / 0.14);
  color: var(--lantox-teal);
  font-family: var(--font-manrope);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
