/* Trang Giới Thiệu (About) - Layout styles */

/* Shared enterprise full-background hero (about + contact) */
.about-hero-full {
  position: relative;
  min-height: clamp(460px, 62vh, 640px);
  padding: clamp(7.5rem, 14vh, 9.5rem) 0 clamp(3rem, 8vh, 4.5rem);
  color: #fff;
  background-size: cover;
  background-position: center top;
  /* Hero parallax cố định (about + contact). */
  background-attachment: fixed;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
/* iOS/Safari không hỗ trợ background-attachment: fixed tốt → mobile dùng scroll. */
@media (max-width: 768px) {
  .about-hero-full { background-attachment: scroll; }
}
.about-hero-full__inner {
  display: flex;
  align-items: center;
  min-height: inherit;
}
.about-hero-full__content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  animation: heroContentIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.about-hero-full--about {
  background-position: center 46%;
}
.about-hero-full--about .about-hero-full__inner {
  justify-content: flex-start;
}
.about-hero-full--about .about-hero-full__content {
  max-width: 700px;
  margin: 0;
  text-align: left;
}
.about-hero-full--about .about-hero-full__lead {
  margin-left: 0;
  margin-right: 0;
}
.about-hero-full__eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #f8fbff;
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  animation: heroItemIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}
.about-hero-full__title {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-h1);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  animation: heroItemIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.about-hero-full__lead {
  margin: 0 auto;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.65;
  animation: heroItemIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroItemIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767px) {
  .about-hero-full {
    min-height: 420px;
    background-position: center 8%;
    padding-top: 7rem;
  }
  .about-hero-full--about {
    background-position: 58% center;
  }
  .about-hero-full--about .about-hero-full__content {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  .about-hero-full--about .about-hero-full__lead {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-hero-full__content,
  .about-hero-full__eyebrow,
  .about-hero-full__title,
  .about-hero-full__lead {
    animation: none;
  }
}

/* Split content layout */
.container--split {
  display: grid;
  gap: var(--section-gap);
  align-items: center;
}
@media (min-width: 1024px) {
  .container--split {
    grid-template-columns: 1fr 1fr;
  }
  .reverse-desktop .about-overview__content { order: 2; }
  .reverse-desktop .about-overview__media { order: 1; }
}

.chip-label {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(6, 136, 211, 0.1);
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: var(--text-small);
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: var(--space-3);
  letter-spacing: 0.04em;
}

.img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #f8fafc;
}
.img-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 5/4;
  object-fit: contain;
  display: block;
}

.scroll-hero__bg {
  background: #07111f;
}

.scroll-hero__bg img,
.scroll-hero__media-center img {
  object-fit: contain;
  background: #07111f;
}

.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }

.check-list, .value-list {
  padding: 0;
  list-style: none;
}
.check-list li, .value-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--space-3);
  line-height: 1.6;
}
.check-list li::before, .value-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 800;
}

/* Vision/Mission editorial-overlap redesign */
.about-vision-mission {
  background:
    radial-gradient(760px 320px at 8% 0%, rgba(10,112,181,.14), transparent 68%),
    linear-gradient(180deg, #f6faff 0%, #ffffff 100%);
}
.vision-editorial__intro { margin-bottom: var(--section-gap); max-width: 860px; }
.about-vision-mission .vision-editorial__intro {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.vision-editorial__intro .vision-editorial__title,
.about-overview__content .mb-title {
  margin-top: 0;
}
.vision-editorial__title { margin: 0 0 .55rem; font-size: clamp(2rem, 3.2vw, 3rem); letter-spacing: -0.03em; }
.vision-editorial__lead { margin: 0; color: var(--color-text-muted); line-height: 1.65; }
.about-vision-mission .vision-editorial__lead { margin-inline: auto; }
.vision-editorial { display: grid; gap: var(--layout-grid-gap); grid-template-columns: 1fr; }
.vision-editorial__item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
}
.vision-editorial__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.vision-editorial__body {
  position: relative;
  min-height: 320px;
  border-radius: 18px;
  border: 1px solid #d5e5f3;
  background: #0e1728;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(12, 48, 82, .11);
}
.vision-editorial__media-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* gom blur + ảnh thành 1 lớp, dưới gradient overlay (body::before z1) + content (z2) */
}
/* Lấp pillarbox: nền blur phóng to từ chính ảnh (var --vis-img set inline trong markup) */
.vision-editorial__media-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--vis-img);
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.5) saturate(1.05);
  transform: scale(1.2);
  z-index: 0;
}
.vision-editorial__media {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  filter: grayscale(0) brightness(0.9); /* Keep color, slightly muted by default (match leadership) */
  transition: filter .45s ease;
}
.vision-editorial__body::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(4, 10, 20, .56) 12%, rgba(4, 10, 20, .34) 52%, rgba(4, 10, 20, .46) 100%);
  z-index: 1;
  opacity: 1;
  transition: opacity .45s ease;
}
.vision-editorial__content {
  position: relative;
  z-index: 2;
  min-height: 320px;
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}
.vision-editorial__name {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.vision-editorial__meta {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.vision-editorial__cta {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid #c8d8e8;
  background: #fff;
  color: #516a84;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .35s ease;
}
.vision-editorial__arrow {
  font-size: 1.25rem;
  transition: transform .35s ease, color .35s ease;
}
.vision-editorial__desc {
  margin: 0;
  max-width: 40ch;
  color: rgba(245, 248, 255, .92);
  line-height: 1.72;
}
.vision-editorial__item--right .vision-editorial__body {
  text-align: right;
}
.vision-editorial__item--right .vision-editorial__meta {
  justify-content: flex-end;
}
.vision-editorial__item--right .vision-editorial__desc {
  text-align: right;
}
.vision-editorial__item--right .vision-editorial__cta {
  order: 2;
}
.vision-editorial__item:hover .vision-editorial__media {
  filter: grayscale(0) brightness(1); /* Brighten slightly on hover (match leadership) */
}
.vision-editorial__item:hover .vision-editorial__body::before {
  opacity: 0; /* Hover: bỏ hẳn overlay (ảnh hiện đầy đủ màu) */
}
.vision-editorial__item:hover .vision-editorial__cta {
  background: #0f1c2f;
  border-color: rgba(255,255,255,.45);
  color: #fff;
  transform: scale(1.06);
}
.vision-editorial__item:hover .vision-editorial__arrow {
  transform: rotate(-35deg);
  color: #fff;
}
.vision-editorial__item--right:hover .vision-editorial__arrow {
  transform: rotate(145deg);
}
@media (max-width: 899px) {
  .vision-editorial__body,
  .vision-editorial__content {
    min-height: 280px;
  }
  .vision-editorial__item--right .vision-editorial__meta {
    justify-content: flex-start;
  }
  .vision-editorial__item--right .vision-editorial__desc {
    text-align: left;
  }
  .vision-editorial__item--right .vision-editorial__cta {
    order: 0;
  }
}
@media (max-width: 640px) {
  .vision-editorial__body,
  .vision-editorial__content {
    min-height: 240px;
  }
  .vision-editorial__name {
    font-size: clamp(1.35rem, 8vw, 2rem);
  }
  .vision-editorial__meta {
    flex-direction: column;
  }
  .vision-editorial__desc {
    max-width: 100%;
  }
}

/* Pop badge intentionally removed per ENH-045 */
.about-overview__media { position: relative; }
.about-core-values__media .img-wrapper {
  box-shadow: 0 22px 58px -30px rgba(15, 23, 42, 0.32);
}
.about-core-values__media .img-wrapper img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Team Showcase (Lãnh đạo) */
.team-showcase {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  margin-inline: auto;
  user-select: none;
}
@media (min-width: 768px) {
  .team-showcase {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(2rem, 4vw, 5rem);
  }
}

/* Left: Photos */
.team-showcase__photos {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}
@media (min-width: 768px) {
  .team-showcase__photos {
    gap: 1.5rem;
    overflow-x: visible;
  }
}

.team-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.team-col--2 { margin-top: 3rem; }
.team-col--3 { margin-top: 1.5rem; }

@media (min-width: 768px) {
  .team-col--2 { margin-top: 4.25rem; }
  .team-col--3 { margin-top: 2rem; }
}

.team-photo {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  background: var(--color-surface);
  position: relative;
}

/* Kích thước ngẫu nhiên có chủ ý (staggered) - To hơn */
.team-col--1 .team-photo { width: 150px; height: 160px; }
.team-col--2 .team-photo { width: 162px; height: 172px; }
.team-col--3 .team-photo { width: 155px; height: 165px; }

@media (min-width: 640px) {
  .team-col--1 .team-photo { width: 180px; height: 190px; }
  .team-col--2 .team-photo { width: 195px; height: 205px; }
  .team-col--3 .team-photo { width: 186px; height: 196px; }
}
@media (min-width: 768px) {
  .team-col--1 .team-photo { width: 220px; height: 230px; }
  .team-col--2 .team-photo { width: 240px; height: 250px; }
  .team-col--3 .team-photo { width: 230px; height: 240px; }
}
@media (min-width: 1024px) {
  .team-col--1 .team-photo { width: 240px; height: 260px; }
  .team-col--2 .team-photo { width: 260px; height: 280px; }
  .team-col--3 .team-photo { width: 250px; height: 270px; }
}
@media (min-width: 1280px) {
  .team-col--1 .team-photo { width: 270px; height: 290px; }
  .team-col--2 .team-photo { width: 290px; height: 310px; }
  .team-col--3 .team-photo { width: 280px; height: 300px; }
}

.team-photo img {
  width: 100%;
  height: 100%;
  display: block;
}
.team-photo__main {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  padding: 8px;
  object-fit: contain;
  transition: filter 0.5s ease;
  filter: grayscale(0) brightness(0.9); /* Keep color, slightly muted by default */
}
.team-col--3 .team-photo__main {
  padding: 0;
  object-fit: cover;
  object-position: center 52%;
}

/* Hover States for Photos */
.team-showcase[data-hover="true"] .team-photo {
  opacity: 0.6;
}
.team-showcase .team-photo.is-active {
  opacity: 1;
}
.team-showcase .team-photo.is-active .team-photo__main {
  filter: grayscale(0) brightness(1);
}

/* Right: Names */
.team-showcase__names {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  width: 100%;
}
@media (min-width: 768px) {
  .team-showcase__names { gap: 1.25rem; padding-top: 0.5rem; }
}

.team-row {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

/* Hover States for Names */
.team-showcase[data-hover="true"] .team-row {
  opacity: 0.5;
}
.team-showcase .team-row.is-active {
  opacity: 1;
}

.team-row__header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.team-row__dot {
  width: 16px;
  height: 12px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.25); /* dark / 25% */
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.team-row.is-active .team-row__dot {
  background: var(--color-primary); 
  width: 20px;
}

.team-row__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgba(15, 23, 42, 0.8);
  transition: color 0.3s ease;
}
@media (min-width: 768px) {
  .team-row__name { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
  .team-row__name { font-size: 1.25rem; }
}
@media (min-width: 1280px) {
  .team-row__name { font-size: 1.35rem; }
}

.team-row.is-active .team-row__name {
  color: var(--color-primary-dark);
}

.team-row__role {
  margin-top: 4px;
  padding-left: 26px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}
@media (min-width: 1024px) {
  .team-row__role { font-size: 0.6875rem; padding-left: 30px; margin-top: 6px; }
}
@media (min-width: 1280px) {
  .team-row__role { font-size: 0.75rem; padding-left: 30px; margin-top: 8px; }
}

/* -------------------------------------------------------------------------- */
/* Phase 35 - About card refinement                                           */
/* -------------------------------------------------------------------------- */
/* ENH-046 removes legacy bento hover/title capsule styles */

/* -------------------------------------------------------------------------- */
/* ENH-040 — anchor jump offset: tránh header sticky che tiêu đề section       */
/* -------------------------------------------------------------------------- */
#hanh-trinh, #chung-nhan, #thanh-tich, #tam-nhin, #tai-sao-chon,
#gia-tri, #lanh-dao, #can-bo-nghiep-vu, #co-so-vat-chat {
  scroll-margin-top: calc(var(--header-h, 104px) + 12px);
}
