/* About Us redesign: original media and plain section backgrounds. */
.about-section {
  padding-block: 64px;
}

.about-section .about-rich-text,
.about-principles .about-rich-text {
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}

.about-section .about-rich-text p + p,
.about-principles .about-rich-text p + p {
  margin-top: 24px;
}

.about-section .about-rich-text {
  color: #535e6e;
}

.about-section .about-rich-text p {
  font-size: inherit;
  line-height: inherit;
}

.about-intro {
  padding-top: 152px;
}

.about-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.about-intro-copy {
  text-align: left;
}

.about-section.about-intro .home-section-eyebrow,
.about-intro .home-section-eyebrow,
.about-intro-copy .home-section-eyebrow,
.about-section .home-section-eyebrow,
.home-customers .home-section-eyebrow {
  display: none !important;
}

.about-intro-copy h1 {
  margin: 8px 0 24px;
  color: var(--home-ink);
  font-size: clamp(36px, 3.8vw, 54px);
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  text-wrap: balance;
}

.about-intro-visual {
  min-width: 0;
  background: var(--home-red);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 20% 100%, 0 50%);
}

.about-intro-visual img {
  display: block;
  width: calc(100% - 12px);
  height: 490px;
  margin-left: 12px;
  object-fit: cover;
  object-position: 58% center;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 20% 100%, 0 50%);
}

.about-section .home-section-heading,
.home-customers .home-section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.about-section .home-section-eyebrow,
.home-customers .home-section-eyebrow {
  display: none !important;
}

.about-numbers-heading,
.about-numbers .home-section-heading {
  margin-bottom: 32px;
}

.about-numbers-heading > div:first-child {
  min-width: 0;
}

.about-downloads {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  padding-bottom: 8px;
}

.about-portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #e60012;
  font: inherit;
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.about-numbers-grid,
.about-differences-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-number-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 190px;
  border: 1px solid #f3e8e9;
  border-radius: 14px;
  background: #fff6f6;
  box-shadow: 0 6px 24px #4b172008;
}

.about-number-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-number-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fffafa 5%, #fffafaf2 35%, #fffafab3 62%, #fffafa00 100%);
}

.about-number-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 190px;
  padding: 28px;
}

.about-number-icon,
.about-service-icon,
.about-difference-icon,
.about-principle-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
}

.about-number-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--home-red);
  color: #fff;
  font-size: 32px;
}

.about-section i,
.about-principles i {
  color: inherit;
}

.about-section .about-number-value,
.about-section .about-number-value span {
  color: #ed0019;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.about-section .about-number-content h3 {
  margin-top: 8px;
  color: var(--home-ink);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
}

/* Keep the final value available to screen readers while its visual copy counts. */
.about-number-value .about-counter-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.about-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
  overflow: hidden;
}

.about-principle {
  position: relative;
  padding: 84px 52px 104px;
  color: #fff;
  min-height: 580px;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about-mission {
  background-color: #4a090e;
  background-image: url('../images/bg/about-mission-bg.jpg');
}

.about-core {
  background-color: #030c1c;
  background-image: url('../images/bg/about-core-bg.jpg');
}

.about-mission::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 4, 7, 0.85) 0%, rgba(45, 6, 11, 0.62) 42%, rgba(20, 3, 5, 0.3) 100%);
  z-index: 0;
  pointer-events: none;
}

.about-core::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 24, 0.85) 0%, rgba(5, 14, 32, 0.62) 42%, rgba(2, 6, 18, 0.3) 100%);
  z-index: 0;
  pointer-events: none;
}

.about-principle-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.about-mission .about-principle-content {
  margin-left: auto;
  margin-right: 24px;
}

.about-core .about-principle-content {
  margin-right: auto;
  margin-left: 24px;
}

.about-principle-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
}

.about-principle-icon {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  color: #fff;
  font-size: 36px;
  flex-shrink: 0;
}

.about-principle-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.about-mission .about-principle-icon {
  background: linear-gradient(135deg, rgba(230, 0, 18, 0.38) 0%, rgba(100, 0, 10, 0.55) 100%);
  border: 1.5px solid rgba(255, 90, 90, 0.75);
  box-shadow: 0 8px 28px rgba(230, 0, 18, 0.45), inset 0 0 16px rgba(255, 80, 80, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.about-core .about-principle-icon {
  background: linear-gradient(135deg, rgba(0, 150, 255, 0.35) 0%, rgba(0, 60, 140, 0.55) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.75);
  box-shadow: 0 8px 28px rgba(0, 150, 255, 0.45), inset 0 0 16px rgba(56, 189, 248, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.about-principles h2 {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-family);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.28;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.about-principles p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.about-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.about-services-grid.is-5-items {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.about-services.has-5-services .home-section-inner {
  max-width: 1440px;
}

.about-service-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #f5ebec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 24px #4b172008;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(75, 23, 32, 0.12);
  border-color: #ffd2d5;
}

.about-service-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.7;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.about-service-card:hover > img {
  transform: scale(1.03);
}

.about-service-caption {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.about-service-caption.has-desc {
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
}

.about-service-heading-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.about-service-desc {
  color: #535e6e;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about-section .about-service-caption h3 {
  color: var(--home-ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.45;
  text-wrap: pretty;
}

.about-service-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--home-red);
  color: #fff;
  font-size: 19px;
}

.about-service-card:hover .about-service-caption h3 {
  color: #d9000a;
}

.about-team .home-section-inner {
  max-width: 1600px;
}

.about-team-layout {
  display: grid;
  grid-template-columns: minmax(460px, 500px) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
}

.about-team-lead {
  display: grid;
  grid-template-columns: minmax(210px, 235px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  flex-shrink: 0;
}

.about-team-lead > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.2);
}

.about-section .about-lead-copy h3 {
  color: #0f172a;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
}

.about-section .about-lead-copy .about-member-role {
  margin: 6px 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 15px;
  border-radius: 999px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-section .about-lead-copy .about-member-role::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e60012;
  box-shadow: 0 0 6px rgba(230, 0, 18, 0.6);
  flex-shrink: 0;
}

.about-team .about-rich-text {
  font-size: 15.5px;
  line-height: 1.65;
  color: #475569;
}

/* Members Accordion Container: constant height keeps CEO rock-solid fixed */
.about-team-members {
  display: flex;
  gap: 12px;
  align-items: center;
  height: 460px;
  width: 100%;
  min-width: 0;
  padding-block: 10px;
  margin-block: -10px;
}

.about-member-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  flex: 1 1 0;
  height: 420px;
  max-width: 190px;
  border-radius: 14px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.35s ease,
              border-color 0.35s ease,
              opacity 0.35s ease;
}

.about-member-card:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

/* Hover / Active: giữ nguyên kích thước thẻ (không tăng size, không zoom, không dịch chuyển) */
.about-member-card:hover,
.about-member-card:focus-within,
.about-member-card.is-active {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 36px -8px rgba(10, 15, 26, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.16);
  z-index: 5;
}

/* Sibling cards soften gently to emphasize the active card */
.about-team-members:hover .about-member-card:not(:hover),
.about-team-members:has(.is-active) .about-member-card:not(.is-active) {
  opacity: 0.85;
}

.about-member-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.about-member-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-member-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 22, 0.55) 0%,
    rgba(8, 12, 22, 0.12) 28%,
    rgba(8, 12, 22, 0.65) 65%,
    rgba(8, 12, 22, 0.98) 100%
  );
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
  pointer-events: none;
}

.about-member-card:hover .about-member-overlay,
.about-member-card:focus-within .about-member-overlay,
.about-member-card.is-active .about-member-overlay {
  opacity: 1;
}

/* Member Caption: Name & Role - crisp white text with top gradient */
.about-member-caption {
  position: absolute;
  inset: 0 0 auto;
  padding: 16px 12px 30px;
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.85) 0%, rgba(10, 15, 26, 0.45) 55%, rgba(10, 15, 26, 0) 100%);
  z-index: 3;
  transition: background 0.45s ease;
  pointer-events: none;
}

.about-member-card:hover .about-member-caption,
.about-member-card:focus-within .about-member-caption,
.about-member-card.is-active .about-member-caption {
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.92) 0%, rgba(10, 15, 26, 0.55) 60%, rgba(10, 15, 26, 0) 100%);
}

.about-section .about-member-caption h3 {
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
  margin: 0;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.about-member-card:hover .about-member-caption h3,
.about-member-card:focus-within .about-member-caption h3,
.about-member-card.is-active .about-member-caption h3 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

/* Role / Position: wrapped naturally, clean text, NO box/pill on hover */
.about-section .about-member-caption .about-member-role {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  display: block;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: color 0.3s ease;
}

.about-member-card:hover .about-member-caption .about-member-role,
.about-member-card:focus-within .about-member-caption .about-member-role,
.about-member-card.is-active .about-member-caption .about-member-role {
  color: #ffffff !important;
  font-weight: 550;
  display: block;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

/* Member Description: covers most of the card so all text is visible */
.about-member-desc {
  position: absolute;
  inset: 0 0 0;          /* stretch full card height */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 100px 14px 20px;
  z-index: 4;
  background: linear-gradient(
    0deg,
    rgba(8, 12, 22, 0.98) 0%,
    rgba(8, 12, 22, 0.95) 45%,
    rgba(8, 12, 22, 0.80) 68%,
    rgba(8, 12, 22, 0) 100%
  );
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.45s;
  pointer-events: none;
}

.about-member-card:hover .about-member-desc,
.about-member-card:focus-within .about-member-desc,
.about-member-card.is-active .about-member-desc {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto;
}

.about-member-desc p {
  margin: 0;
  color: #ffffff !important;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  max-height: none;      /* remove cap — full text always visible */
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.about-member-desc p::-webkit-scrollbar {
  display: none;
}


.about-difference-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid #f6eff0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 24px #c3242308;
}

.about-difference-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

.about-difference-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fff0f2;
  color: var(--home-red);
  font-size: 34px;
}

.about-section .about-difference-heading h3 {
  color: var(--home-ink);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

.about-section .about-difference-card > p,
.about-differences-description {
  color: #535e6e;
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

@media (max-width: 1200px) {
  .about-team-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-team-lead { max-width: 700px; grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr); }
  .about-team-lead > img { max-height: 340px; }
  .about-team-members { height: 450px; gap: 8px; }
  .about-member-caption { padding: 16px 12px 24px; }
  .about-number-content { padding: 22px; gap: 14px; }
  .about-number-icon { width: 62px; height: 62px; font-size: 28px; }
  .about-services-grid.is-5-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-service-caption { padding: 16px; gap: 12px; }
  .about-difference-card { padding: 24px; }
  .about-difference-heading { gap: 16px; }
  .about-difference-icon { width: 62px; height: 62px; font-size: 28px; }
  .about-section .about-difference-heading h3 { font-size: 20px; }
}

@media (max-width: 900px) {
  .about-section { padding-block: 48px; }
  .about-intro { padding-top: 128px; }
  .about-intro-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-intro-visual img { height: 420px; }
  .about-numbers-heading { flex-direction: column; align-items: start; }
  .about-number-content { flex-direction: column; align-items: start; }
  .about-principles { grid-template-columns: minmax(0, 1fr); }
  .about-principle { padding: 54px 32px 72px; min-height: 480px; }
  .about-mission .about-principle-content,
  .about-core .about-principle-content { margin-inline: 0; max-width: 100%; }
  .about-principle-heading { flex-direction: row; align-items: center; gap: 20px; }
  .about-services-grid,
  .about-services-grid.is-5-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-team-members {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
    gap: 12px;
    padding-block: 0;
    margin-block: 0;
  }
  .about-member-card {
    height: 400px;
    flex: initial;
  }
  .about-member-card:hover,
  .about-member-card:focus-within,
  .about-member-card.is-active {
    flex: initial;
  }
  .about-member-caption { padding: 16px 12px 24px; }
  .about-section .about-member-caption h3 { font-size: 16px; }
  .about-differences-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .about-section { padding-block: 36px; }
  .about-intro { padding-top: 112px; }
  .about-intro-copy h1 { font-size: 36px; }
  .about-section .about-rich-text, .about-principles .about-rich-text { font-size: 15.5px; }
  .about-intro-visual img { height: 300px; }
  .about-numbers-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .about-number-content { flex-direction: row; align-items: center; min-height: 160px; padding: 24px; gap: 24px; }
  .about-number-card { min-height: 160px; }
  .about-principles { grid-template-columns: minmax(0, 1fr); }
  .about-principle { padding: 42px 20px 60px; min-height: 420px; }
  .about-principle-heading { flex-direction: row; align-items: center; gap: 16px; }
  .about-principle-icon { width: 64px; height: 64px; font-size: 30px; }
  .about-principles h2 { font-size: 28px; }
  .about-services-grid,
  .about-services-grid.is-5-items { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .about-service-caption { padding: 20px; }
  .about-team-lead { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .about-team-lead > img { width: min(100%, 320px); margin-inline: auto; aspect-ratio: 1; }
  .about-team-members {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    gap: 10px;
    padding-block: 0;
    margin-block: 0;
  }
  .about-member-card {
    height: 380px;
    flex: initial;
  }
  .about-member-card:hover,
  .about-member-card:focus-within,
  .about-member-card.is-active {
    flex: initial;
  }
  .about-member-caption { padding: 12px 10px 20px; }
  .about-section .about-member-caption h3 { font-size: 15px; }
  .about-section .about-member-caption .about-member-role { font-size: 12px; }
  .about-member-desc { padding: 16px 12px 14px; }
  .about-member-desc p { font-size: 11px; line-height: 1.5; max-height: 175px; }
  .about-difference-card { padding: 24px; }
}
