@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

.ap-wrap {
  background: #fff;
  color: #1a1a1a;
  border-radius: 20px;
  overflow: hidden;
  margin: 40px auto;
  border: 1px solid #e8eef0;
  box-shadow: 0 4px 32px rgba(20, 130, 141, 0.08);
}

.ap-hero {
  padding: 48px 48px 0;
  position: relative;
  overflow: hidden;
}

.ap-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ap-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ap-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.ap-avatar-wrap {
  flex-shrink: 0;
  position: relative;
}

.ap-avatar,
.ap-avatar-wrap img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  display: block;
  object-fit: cover;
}

.ap-avatar-initials {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.ap-avatar-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: #fff;
  color: #14828d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
  border: 2px solid rgba(20, 130, 141, 0.15);
  white-space: nowrap;
  line-height: 1.4;
}

.ap-hero-meta {
  padding-bottom: 36px;
  flex: 1;
  min-width: 0;
}

.ap-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.ap-name {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.2;
}

.ap-tagline {
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

.ap-stats-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  margin-top: 36px;
}

.ap-stat {
  flex: 1;
  padding: 18px 16px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ap-stat:last-child {
  border-right: none;
}

.ap-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}

.ap-stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  line-height: 1.3;
}

.ap-body {
  padding: 40px 48px;
  background: #fff;
}

.ap-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a0b0b2;
  margin: 0 0 16px;
}

.ap-bio {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  margin: 0 0 36px;
}

.ap-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.ap-tag {
  background: #edf6f7;
  color: #14828d;
  border: 1px solid #b8dde0;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  line-height: 1.4;
  transition: background 0.2s, border-color 0.2s;
}

.ap-tag:hover {
  background: #d5eef0;
  border-color: #14828d;
}

.ap-divider {
  height: 1px;
  background: #eef2f3;
  margin: 0 0 36px;
}

.ap-posts-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a0b0b2;
  margin: 0 0 20px;
}

.ap-post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.ap-post-card {
  background: #f8fbfb;
  border: 1px solid #e4eef0;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.ap-post-card:hover {
  background: #edf6f7;
  border-color: #14828d;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(20, 130, 141, 0.1);
  text-decoration: none;
  color: inherit;
}

.ap-post-card:active {
  transform: translateY(0);
}

.ap-post-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #14828d;
  flex-shrink: 0;
  min-width: 72px;
  text-align: center;
  background: #edf6f7;
  padding: 5px 10px;
  border-radius: 8px;
  line-height: 1.3;
}

.ap-post-info {
  flex: 1;
  min-width: 0;
}

.ap-post-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.ap-post-date {
  font-size: 12px;
  color: #9aacae;
  margin: 0;
}

.ap-post-arrow {
  color: #c5d8da;
  font-size: 16px;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.ap-post-card:hover .ap-post-arrow {
  color: #14828d;
  transform: translateX(3px);
}

.ap-cta {
  padding: 22px 24px;
  background: linear-gradient(135deg, #edf6f7 0%, #f0fafb 100%);
  border: 1px solid #b8dde0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.ap-cta-text {
  font-size: 15px;
  font-weight: 500;
  color: #2a5a5e;
  margin: 0;
  line-height: 1.4;
}

.ap-cta-btn {
  background: #14828d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  padding: 12px 24px;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(20, 130, 141, 0.28);
  text-decoration: none;
  display: inline-block;
}

.ap-cta-btn:hover {
  background: #0f6970;
  box-shadow: 0 6px 20px rgba(20, 130, 141, 0.4);
  color: #fff;
  text-decoration: none;
}

.ap-cta-btn:active {
  transform: scale(0.97);
}

.ap-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid #eef2f3;
}

.ap-social-btn {
  background: #fff;
  border: 1px solid #d0e6e8;
  color: #14828d;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}

.ap-social-btn:hover {
  background: #edf6f7;
  border-color: #14828d;
  box-shadow: 0 2px 10px rgba(20, 130, 141, 0.12);
  text-decoration: none;
  color: #14828d;
}

@media (max-width: 768px) {
  .ap-hero {
    padding: 36px 28px 0;
  }

  .ap-body {
    padding: 32px 28px;
  }

  .ap-name {
    font-size: 24px;
  }

  .ap-stat-num {
    font-size: 18px;
  }

  .ap-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .ap-cta-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .ap-wrap {
    border-radius: 0;
    margin: 0;
    border-left: none;
    border-right: none;
  }

  .ap-hero {
    padding: 24px 20px 0;
  }

  .ap-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .ap-hero-meta {
    padding-bottom: 24px;
  }

  .ap-avatar,
  .ap-avatar-wrap img,
  .ap-avatar-initials {
    width: 88px;
    height: 88px;
  }

  .ap-avatar-initials {
    font-size: 30px;
  }

  .ap-name {
    font-size: 22px;
  }

  .ap-stats-bar {
    flex-wrap: wrap;
  }

  .ap-stat {
    flex: 1 1 50%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .ap-stat:nth-child(2) {
    border-right: none;
  }

  .ap-stat:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .ap-body {
    padding: 24px 20px;
  }

  .ap-post-cat {
    display: none;
  }

  .ap-post-card {
    padding: 14px 16px;
  }
}