/* About — scoped design, Bootstrap 5.3+ */
.by-about {
  font-family: Kanit, system-ui, sans-serif;
  color: #12306f;
  font-size: 14px;
}
.by-about .ab-section {
  padding: 25px 0;
}
.by-about .ab-soft {
  background: #edf6fd;
}
.by-about .ab-title {
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 700;
  color: #06318b;
  margin: 0 0 15px;
}
.by-about p {
  line-height: 1.65;
}
.by-about h3 {
  font-size: 16px;
  font-weight: 700;
}
.ab-hero {
  min-height: 395px;
  position: relative;
  overflow: hidden;
  background: #e9f5ff;
}
.ab-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #eef8ff 0%,
      rgba(240, 249, 255, 0.98) 29%,
      rgba(240, 249, 255, 0.7) 52%,
      rgba(240, 249, 255, 0.04) 82%
    ),
    var(--ab-hero-image) center right/cover no-repeat;
}
.ab-hero-inner {
  position: relative;
  padding-top: 30px;
  padding-bottom: 40px;
  z-index: 1;
}
.ab-hero .breadcrumb a {
  color: #4f79b5;
  text-decoration: none;
}
.ab-hero h1 {
  font-size: clamp(26px, 3vw, 41px);
  font-weight: 700;
  line-height: 1.16;
  color: #082b88;
  max-width: 720px;
  margin: 14px 0 10px;
}
.ab-pill {
  border: 1px solid #205bc8;
  border-radius: 50px;
  color: #1246b0;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  background: #fff;
}
.ab-english {
  font-weight: 650;
  margin: 0 0 9px;
  color: #252c40;
}
.ab-lead {
  max-width: 630px;
  color: #35445b;
}
.ab-hero-card {
  position: absolute;
  bottom: 28px;
  right: 8%;
  align-items: center;
  gap: 9px;
  background: #fff;
  box-shadow: 0 8px 25px #17387030;
  padding: 13px 21px;
  border-radius: 12px;
  color: #002b80;
  z-index: 1;
}
.ab-hero-card > i {
  font-size: 34px;
  color: #ed1720;
}
.ab-hero-card strong {
  display: block;
  font-size: 21px;
  line-height: 1;
}
.ab-hero-card small {
  font-size: 10px;
}
.ab-btn-red,
.ab-btn-outline,
.ab-btn-blue {
  font-size: 13px;
  font-weight: 600;
  border-radius: 5px;
  padding: 9px 22px;
}
.ab-btn-red {
  color: #fff !important;
  background: #e00c1b;
  border: 1px solid #e00c1b;
}
.ab-btn-red:hover {
  background: #af0615;
}
.ab-btn-outline {
  color: #0737a0;
  border: 1px solid #174dcd;
  background: #fff;
}
.ab-btn-outline:hover {
  background: #e6efff;
  color: #063187;
}
.ab-btn-blue {
  background: #063187;
  color: #fff !important;
}
.ab-statbar {
  background: linear-gradient(120deg, #05226d, #07318f);
  color: #fff;
}
.ab-statbar .col-6 {
  min-height: 98px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 0 9px;
  position: relative;
}
.ab-statbar .col-6:not(:last-child):after {
  content: "";
  position: absolute;
  right: 0;
  height: 50px;
  top: 25px;
  border-right: 1px solid #ffffff2a;
}
.ab-statbar i {
  font-size: 28px;
}
.ab-statbar strong {
  font-size: 24px;
}
.ab-statbar small {
  width: 100%;
  font-size: 12px;
}
.ab-photo {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 7px;
}
.ab-timeline .ab-history {
  height: 100%;
  position: relative;
}
.ab-history > img {
  width: 100%;
  height: 124px;
  object-fit: cover;
  border-radius: 5px;
}
.ab-timeline-dot {
  position: relative;
  height: 20px;
  border-bottom: 2px solid #88a4ef;
  margin-top: -5px;
}
.ab-timeline-dot:after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: -6px;
  border-radius: 100%;
  width: 10px;
  height: 10px;
  background: #0030af;
}
.ab-year {
  color: #0031aa;
  font-weight: 700;
  display: block;
  margin-top: 5px;
}
.ab-history h3 {
  font-size: 14px;
  margin: 7px 0 3px;
}
.ab-history p {
  color: #58667a;
  font-size: 12px;
}
.ab-service {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #d2e4fa;
  padding: 20px;
  border-radius: 7px;
  background: #fff;
  color: #11367d;
  text-decoration: none;
  transition: 0.2s;
}
.ab-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px #123b7020;
}
.ab-service > i {
  font-size: 32px;
  color: #0649c8;
}
.ab-service h3 {
  margin: 9px 0 5px;
}
.ab-service p {
  color: #516070;
  flex: 1;
}
.ab-service span,
.ab-more {
  color: #0138b0;
  font-weight: 650;
  text-decoration: none;
}
.ab-value {
  display: flex;
  gap: 13px;
  margin-bottom: 19px;
}
.ab-value > i {
  font-size: 32px;
  color: #0039ad;
}
.ab-value h3 {
  color: #003c9c;
}
.ab-value ul {
  padding-left: 17px;
}
.ab-vision-photo {
  height: 330px;
}
.ab-brand {
  border: 1px solid #d8e5f7;
  background: #fff;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  font-weight: 750;
  color: #003a9c;
  border-radius: 5px;
}
.ab-team {
  border: 1px solid #dae8f8;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px;
}
.ab-team img {
  width: 80px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
}
.ab-team h3 {
  font-size: 13px;
  margin-bottom: 5px;
}
.ab-team p {
  font-size: 11px;
  margin-bottom: 5px;
  color: #71839c;
}
.ab-team a {
  font-size: 12px;
  color: #0034a8;
  text-decoration: none;
}
.ab-site-photo {
  height: 215px;
}
.ab-mini {
  height: 90px;
}
.ab-caption {
  font-size: 11px;
  color: #143c7f;
  margin-top: 4px;
}
.ab-contact-box {
  background: #fff;
  padding: 17px;
  border: 1px solid #d5e6fb;
  border-radius: 5px;
  min-height: 100%;
  color: #233d69;
}
.ab-contact-box h3 {
  color: #033b9d;
}
.ab-contact-box p {
  font-size: 13px;
}
.ab-info {
  border: 1px solid #dde8f7;
  margin: 0;
}
.ab-info th {
  background: #edf6ff;
  font-weight: 600;
  width: 30%;
  color: #41516d;
}
.ab-info td {
  color: #56647a;
}
.ab-info :is(td, th) {
  padding: 9px 10px;
  font-size: 12px;
}
.ab-link-card {
  border: 1px solid #d5e5fb;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  height: 100%;
  border-radius: 6px;
  text-decoration: none;
  color: #003da9;
  background: #fff;
  font-weight: 700;
}
.ab-link-card > i:first-child {
  font-size: 26px;
}
.ab-link-card > i:last-child {
  margin-left: auto;
}
@media (max-width: 767.98px) {
  .ab-hero {
    min-height: auto;
  }
  .ab-hero:before {
    background:
      linear-gradient(90deg, #edf7ffef, #edf7ffdd),
      var(--ab-hero-image) center/cover;
  }
  .ab-hero-inner {
    padding: 30px 12px;
  }
  .ab-hero h1 {
    font-size: 27px;
  }
  .by-about .ab-section {
    padding: 35px 0;
  }
  .ab-statbar .col-6 {
    min-height: 85px;
  }
  .ab-photo {
    height: 230px;
  }
}

/* About: live brand directory cards */
.by-about .ab-brand-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 153px;
  text-decoration: none;
  padding: 10px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  overflow: hidden;
}
.by-about .ab-brand-card:hover {
  transform: translateY(-3px);
  border-color: #90b2f1;
  box-shadow: 0 9px 22px rgba(16, 56, 128, 0.12);
  color: #003a9c;
}
.by-about .ab-brand-photo {
  width: 100%;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.by-about .ab-brand-photo img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.by-about .ab-brand-placeholder {
  font-size: 32px;
  color: #b2c5dd;
}
.by-about .ab-brand-name {
  display: block;
  line-height: 1.4;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
@media (max-width: 575.98px) {
  .by-about .ab-brand-card {
    min-height: 142px;
  }
  .by-about .ab-brand-photo {
    height: 85px;
  }
}

/* About: engineering team slider (scoped to this section only) */
.by-about .ab-team-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.by-about .ab-team-heading-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.by-about .ab-team-arrows {
  display: flex;
  align-items: center;
  gap: 7px;
}
.by-about .ab-team-arrow {
  border: 1px solid #cadbf2;
  border-radius: 7px;
  background: #fff;
  color: #07358d;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.by-about .ab-team-arrow:not(:disabled):hover {
  background: #eaf2ff;
  border-color: #8daee1;
}
.by-about .ab-team-arrow:disabled {
  opacity: 0.36;
  cursor: default;
}
.by-about .ab-team-slider {
  min-width: 0;
  overflow: hidden;
}
.by-about .ab-team-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
}
.by-about .ab-team-track::-webkit-scrollbar {
  display: none;
}
.by-about .ab-team-slide {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
  scroll-snap-align: start;
}
.by-about .ab-team-slide .ab-team {
  min-height: 108px;
}
@media (max-width: 991.98px) {
  .by-about .ab-team-slide {
    flex-basis: calc((100% - 16px) / 2);
  }
}
@media (max-width: 575.98px) {
  .by-about .ab-team-slide {
    flex-basis: 100%;
  }
  .by-about .ab-team-heading {
    align-items: flex-start;
  }
  .by-about .ab-team-heading-actions {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .by-about .ab-team-heading .ab-title {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .by-about .ab-team-track {
    scroll-behavior: auto;
  }
}

/* Brand logo grid: exact compact reference layout; preserve engineering team slider */
.by-about .ab-brands-section {
  background: #edf6fd !important;
}
.by-about .ab-brands-title {
  margin-bottom: 18px;
  font-size: clamp(18px, 2vw, 24px);
}
.by-about .ab-brands-grid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100%;
}
.by-about .ab-brands-grid > .ab-brand {
  min-width: 0;
  width: 100%;
  height: 76px;
  min-height: 0 !important;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid #dce7f6;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  box-shadow: none;
  text-decoration: none;
}
.by-about .ab-brands-grid > .ab-brand-card {
  flex-direction: row !important;
  gap: 0 !important;
}
.by-about .ab-brands-grid .ab-brand-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}
.by-about .ab-brands-grid .ab-brand-photo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.by-about .ab-brands-grid .ab-brand-placeholder {
  font-size: 12px;
  line-height: 1.3;
  color: #08347f;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.by-about .ab-brands-grid > .ab-brand-all {
  color: #082b7b;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  gap: 5px;
  line-height: 1.35;
}
.by-about .ab-brands-grid > .ab-brand-all i {
  font-size: 15px;
  flex-shrink: 0;
}
.by-about .ab-brands-grid > .ab-brand:hover {
  border-color: #8baff1;
  box-shadow: 0 5px 16px #122f6a15;
  transform: translateY(-2px);
}
@media (max-width: 1199.98px) {
  .by-about .ab-brands-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 767.98px) {
  .by-about .ab-brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .by-about .ab-brands-grid > .ab-brand {
    height: 74px;
  }
}
@media (max-width: 479.98px) {
  .by-about .ab-brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .by-about .ab-brands-grid > .ab-brand {
    height: 70px;
  }
}

/* About journey: 6-column picture timeline, reference-inspired */
.by-about .ab-journey-section {
  background: #ffffff;
}
.by-about .ab-journey-section .ab-title {
  margin-bottom: 20px;
}
.by-about .ab-journey-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}
.by-about .ab-journey-item {
  min-width: 0;
  position: relative;
}
.by-about .ab-journey-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.by-about .ab-journey-track {
  height: 20px;
  display: flex;
  align-items: center;
  position: relative;
  margin: 9px 0 4px;
}
.by-about .ab-journey-line {
  height: 2px;
  background: #194ac3;
  width: 100%;
  display: block;
}
.by-about .ab-journey-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0a2b81;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
}
.by-about .ab-journey-tag {
  display: inline-block;
  color: #0742b5;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 9px;
}
.by-about .ab-journey-item h3 {
  color: #18243a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 3px;
}
.by-about .ab-journey-item p {
  font-size: 12px;
  line-height: 1.6;
  color: #283449;
  margin: 0;
}
@media (max-width: 1199.98px) {
  .by-about .ab-journey-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 10px;
  }
  .by-about .ab-journey-grid {
    min-width: 1000px;
    gap: 20px;
  }
}
@media (max-width: 575.98px) {
  .by-about .ab-journey-grid {
    min-width: 890px;
  }
  .by-about .ab-journey-image {
    height: 90px;
  }
}
