/* ==========================================================================
   СТОРІНКА АВТОРА / КОМАНДИ (single-team.php)
   ========================================================================== */

/* Обгортка та навігація */
.team-page-wrapper {
  padding: 20px 16px;
  min-height: 100vh;
}

.team-container {
  max-width: 800px;
  margin: 0 auto;
}

.team-nav {
  background: #fff;
  border-bottom: 1px solid #e8eaf0;
  padding: 10px 16px;
  margin: -20px -16px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #2563eb !important;
}

.team-nav-link {
  color: inherit;
  text-decoration: none !important;
}

.team-nav-link:hover {
  text-decoration: underline;
}

/* Загальні блоки (Секції) */
.team-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e8eaf0;
  margin-bottom: 20px;
}

.team-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a2340;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8eaf0;
}

/* Hero Блок (Головна інформація) */
.team-hero {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid #e8eaf0;
  margin-bottom: 20px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.team-hero-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8edf8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.team-hero-svg {
  width: 80px;
  height: 80px;
  fill: #c5cfe8;
}

.team-hero-info {
  flex: 1;
}

.team-hero-label {
  font-size: 11px;
  color: #7b8aaa;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 6px;
}

.team-hero-name {
  font-size: 26px;
  font-weight: 700;
  color: #1a2340;
  margin-bottom: 4px;
  line-height: 1.2;
}

.team-hero-title {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 14px;
}

/* Бейджи (Верифікація, Напрям) */
.team-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.team-badge-verified {
  background: #e1f5ee;
  color: #0f6e56;
}

.team-badge-primary {
  background: #e8f0fe;
  color: #1a56c4;
}

/* Статистика (Лічильники) */
.team-hero-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.team-stat-item {
  text-align: center;
}

.team-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #1a2340;
}

.team-stat-label {
  font-size: 11px;
  color: #7b8aaa;
  margin-top: 1px;
}

/* Біографія та кнопки зв'язку */
.team-hero-bio {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.team-hero-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.team-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #2563eb !important;
  text-decoration: none !important;
  padding: 5px 12px;
  border: 1px solid rgba(37, 99, 235, .25);
  border-radius: 20px;
  background: #f0f4ff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.team-btn-link:hover {
  background: #e1ecff;
  border-color: rgba(37, 99, 235, .4);
}

.team-btn-link--large {
  font-size: 13px;
  padding: 8px 20px;
}

/* Сфери експертизи */
.team-expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.team-expertise-card {
  background: #f7f9ff;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, .1);
}

.team-expertise-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.team-expertise-name {
  font-size: 12px;
  font-weight: 600;
  color: #1a2340;
  margin-bottom: 2px;
}

.team-expertise-desc {
  font-size: 11px;
  color: #7b8aaa;
}

/* Освіта та досвід */
.team-credential-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f8;
  align-items: flex-start;
}

.team-credential-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.team-credential-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  margin-top: 5px;
  flex-shrink: 0;
}

.team-credential-content {
  flex: 1;
}

.team-credential-text {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}

.team-credential-year {
  font-size: 11px;
  color: #7b8aaa;
  margin-top: 2px;
}

/* Статті автора */
.team-article-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f2f8;
  align-items: flex-start;
}

.team-article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.team-article-date {
  font-size: 11px;
  color: #7b8aaa;
  white-space: nowrap;
  padding-top: 2px;
  min-width: 70px;
}

.team-article-content {
  flex: 1;
}

.team-article-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb !important;
  margin-bottom: 4px;
  line-height: 1.4;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.team-article-title:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.team-article-tag {
  display: inline-block;
  font-size: 11px;
  color: #0f6e56;
  background: #e1f5ee;
  border-radius: 4px;
  padding: 2px 6px;
}

.team-empty-state {
  font-size: 13px;
  color: #555;
  margin: 0;
}

.team-articles-action {
  margin-top: 16px;
  text-align: center;
}

/* Адаптивність під мобільні пристрої */
@media (max-width: 650px) {
  .team-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .team-badge-row,
  .team-hero-stats,
  .team-hero-links {
    justify-content: center;
  }
  .team-expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-expertise-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   БЛОК АВТОРА В КІНЦІ СТАТТІ (single.php)
   ========================================================================== */

.author-block {
  border: 1.5px solid rgba(37, 99, 235, 0.15);
  border-radius: 10px;
  padding: 20px;
  background: #f7f9ff;
  margin: 30px 0;
  /*max-width: 720px;*/
  box-sizing: border-box;
}

.author-block__inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.author-block__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  overflow: hidden;
}

.author-block__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-block__info {
  flex: 1;
  min-width: 0;
}

.author-block__label {
  font-size: 11px;
  color: #7b8aaa;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}

.author-block__name {
  font-size: 16px;
  font-weight: 700;
  color: #1a2340;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.3;
}

.author-block__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #0f6e56;
  background: #e1f5ee;
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}

.author-block__badge svg {
  flex-shrink: 0;
}

.author-block__title {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 8px;
}

.author-block__bio {
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  margin: 0 0 12px;
}

.author-block__links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.author-block__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500 !important;
  color: #2563eb;
  text-decoration: none !important;
  padding: 4px 10px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 20px;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.author-block__link:hover {
  background: #eff4ff;
  border-color: rgba(37, 99, 235, 0.6);
}

/* Адаптивність для мобільних телефонів */
@media (max-width: 480px) {
  .author-block__inner { 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
  }
  .author-block__name { 
    justify-content: center; 
  }
  .author-block__links { 
    justify-content: center; 
  }
  .author-block__bio { 
    text-align: left; 
  }
}