/**
 * About page + team profile — layout accents (ใช้ร่วมกับ Tailwind)
 */
.about-narrative-glow {
  background:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(61, 93, 158, 0.11), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(11, 31, 70, 0.06), transparent 50%);
}

.about-why-card {
  box-shadow:
    0 1px 2px rgba(0, 8, 33, 0.04),
    0 8px 32px -8px rgba(0, 8, 33, 0.08);
}

.about-why-card:hover {
  box-shadow:
    0 4px 12px rgba(0, 8, 33, 0.06),
    0 20px 48px -16px rgba(0, 8, 33, 0.12);
}

/* Leadership intro — ไม่ให้ “ให้กับทุก / โครงการ” ถูกตัดคำแยกบรรทัด */
.about-leadership-nowrap {
  white-space: nowrap;
}

.profile-shell {
  background: linear-gradient(180deg, #f7f9ff 0%, #eff4fc 48%, #f7f9ff 100%);
}

/* --- Team profile: single “document” surface (corporate / CV-like) --- */
.profile-document {
  overflow: hidden;
  border-radius: 0.875rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 24px 56px -28px rgba(15, 23, 42, 0.16);
}

.profile-document-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(148deg, #020617 0%, #0b1f46 42%, #102a4a 100%);
  padding: 2rem 1.5rem 2.25rem;
}

.profile-document-header::before {
  content: "";
  position: absolute;
  top: -45%;
  right: -8%;
  width: min(72vw, 320px);
  height: 140%;
  pointer-events: none;
  background: radial-gradient(circle at 40% 40%, rgba(91, 124, 191, 0.16), transparent 62%);
}

.profile-document-header::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.14) 20%,
    rgba(255, 255, 255, 0.14) 80%,
    transparent
  );
}

@media (min-width: 640px) {
  .profile-document-header {
    padding: 2.5rem 2.75rem 2.75rem;
  }

  .profile-document-header::after {
    left: 2.75rem;
    right: 2.75rem;
  }
}

.profile-document-header__inner {
  position: relative;
  z-index: 1;
}

.profile-doc-name {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.profile-document-body {
  padding: 2rem 1.5rem 2.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 72%, #f1f5f9 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

@media (min-width: 640px) {
  .profile-document-body {
    padding: 2.5rem 2.75rem 2.75rem;
  }
}

.profile-doc-section-title {
  margin: 0 0 1.35rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(61, 93, 158, 0.2);
  font-family: Manrope, "Noto Sans Thai", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2f4d8c;
}

.profile-doc-row {
  display: flex;
  gap: 0.875rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  padding: 0.85rem 0.35rem;
  margin-left: -0.35rem;
  margin-right: -0.35rem;
  border-radius: 0.375rem;
  transition: background 0.18s ease;
}

.profile-doc-row:hover {
  background: rgba(255, 255, 255, 0.85);
}

.profile-doc-row:first-of-type {
  padding-top: 0;
}

.profile-doc-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-doc-exp-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.5rem 1rem;
  align-items: baseline;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  padding: 0.85rem 0.35rem;
  margin-left: -0.35rem;
  margin-right: -0.35rem;
  border-radius: 0.375rem;
  transition: background 0.18s ease;
}

.profile-doc-exp-row:hover {
  background: rgba(255, 255, 255, 0.85);
}

.profile-doc-exp-row:first-of-type {
  padding-top: 0;
}

.profile-doc-exp-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-doc-exp-num {
  font-size: 0.6875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: #3d5d9e;
  text-align: right;
}

.profile-doc-projects-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.5rem;
}

.profile-doc-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 0.375rem;
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: #475569;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.profile-doc-tag:hover {
  border-color: rgba(61, 93, 158, 0.28);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* --- About: Team / Leadership profiles (editorial + technical motif) --- */
.about-team-shell {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f9ff 0%, #eef3fb 40%, #f7f9ff 100%);
}

.about-team-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(61, 93, 158, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 93, 158, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, black 20%, transparent 72%);
}

.about-team-shell::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 93, 158, 0.09) 0%, transparent 68%);
}

.about-team-header-accent {
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, #3d5d9e, rgba(61, 93, 158, 0.15));
}

/* Editorial roster: two columns (md+), vertical rail on copy — no index numbers */
.about-team-list {
  margin-left: auto;
  margin-right: auto;
  max-width: min(100%, 72rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-team-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
    row-gap: 2.5rem;
  }
}

.about-team-row {
  min-width: 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(61, 93, 158, 0.14);
  transition: background 0.25s ease;
}

.about-team-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .about-team-row {
    padding-bottom: 0;
    border-bottom: none;
  }

  .about-team-row:last-child {
    padding-bottom: 0;
  }
}

.about-team-row:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0) 58%
  );
  border-radius: 4px;
}

.about-team-row__body {
  min-width: 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(61, 93, 158, 0.22);
}

@media (min-width: 768px) {
  .about-team-row__body {
    padding-left: 1.75rem;
  }
}

.about-team-row__name {
  font-size: 1.125rem;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000821;
}

@media (min-width: 768px) {
  .about-team-row__name {
    font-size: 1.25rem;
  }
}

.about-team-row__role {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 600;
  color: #3d5d9e;
  letter-spacing: 0.02em;
}

.about-team-row__bullets {
  margin: 0.875rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-team-row__bullets li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.58;
  color: #44464e;
}

.about-team-row__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: #3d5d9e;
  box-shadow: 0 0 0 2px rgba(61, 93, 158, 0.16);
}

@media (min-width: 768px) {
  .about-team-row__bullets li {
    font-size: 0.875rem;
    line-height: 1.52;
  }
}

/* English copy may use a single bullet; hide empty <li> */
html.lang-en .about-team-shell .about-team-row__bullets li:empty {
  display: none;
}

/* Leadership spotlight (About: MD block) */
.about-leadership {
  background: linear-gradient(165deg, #050a14 0%, #0a1628 38%, #0b1f46 100%);
}

.about-leadership-quote {
  border-left: 4px solid #3d5d9e;
  padding-left: 1.25rem;
  margin-top: 2rem;
}

.about-leadership-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: Manrope, "Noto Sans Thai", system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.125rem;
  transition: background 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.about-leadership-cta:hover {
  background: rgba(61, 93, 158, 0.35);
  border-color: rgba(153, 184, 255, 0.45);
  gap: 0.625rem;
}

/* Portrait: compact frame (~Stitch reference); full image scales inside max width (no object-cover) */
.about-leadership-photo {
  overflow: visible;
  width: 100%;
  max-width: min(100%, 28rem);
  margin-left: auto;
  margin-right: auto;
  border-radius: 2px;
  box-shadow:
    0 24px 48px -14px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
  .about-leadership-photo {
    max-width: min(100%, 32rem);
    margin-left: auto;
    margin-right: 0;
  }
}

.about-leadership-photo img {
  width: 100%;
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

.about-leadership__image-wrap {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .about-leadership__image-wrap {
    min-height: 100%;
    min-height: min(36rem, 88vh);
  }
}

.about-leadership__image-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 120px 80px;
  border-color: transparent transparent rgba(5, 10, 20, 0.5) transparent;
  z-index: 2;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .about-leadership__image-wrap::after {
    border-width: 0 0 180px 120px;
  }
}
