/* ========== ABOUT US PAGE ========== */

body { background: var(--bg-gray); }

/* ---- Page Hero: crossfade slideshow ---- */
.about-hero { height: 440px; overflow: hidden; }

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- About Azbil Malaysia ---- */
.about-intro { background: var(--bg-gray); }
.about-intro-text { font-size: 1rem; color: var(--text-light); line-height: 1.9; }

/* ---- Company Profile ---- */
.company-profile { background: var(--bg-gray); }
.profile-table-wrap {
  background: var(--white);
  max-width: 880px;
  margin: 0 auto;
}
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table th,
.profile-table td {
  padding: 14px 18px;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.profile-table th {
  width: 36%;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
}
.profile-table td { color: var(--text); font-weight: 500; }
.profile-table td a { color: var(--red); font-weight: 600; }
.profile-table td a:hover { text-decoration: underline; }

/* ---- History: Horizontal Timeline ---- */
.history { background: var(--white); }
.timeline-h {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
}
.tl-item { padding-right: 24px; }
.tl-year {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 18px;
  line-height: 1;
}
.tl-node {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.tl-dot {
  width: 14px;
  height: 14px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
.tl-line {
  flex: 1;
  height: 2px;
  background: var(--border);
}
.tl-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.tl-text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---- MD Message ---- */
.md-message { background: var(--bg-gray); }
.md-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.md-message-body { font-size: 1rem; color: var(--text-light); line-height: 1.9; }
.md-message-body p + p { margin-top: 1.2rem; }
.md-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.md-img-placeholder {
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  display: block;
}

/* ---- Corporation Profile (Azbil Corporation stats) ---- */
.corp-profile { background: var(--red); }
.corp-profile .section-title { color: var(--white); }
.corp-profile .section-title span { color: rgba(255,255,255,0.7); font-weight: 700; }
.corp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.2);
  margin-top: 48px;
}
.corp-stat {
  background: var(--red);
  padding: 36px 24px;
  text-align: center;
}
.corp-stat .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.corp-stat .value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
}

/* ---- Philosophy ---- */
.philosophy { background: var(--bg-gray); }
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--border);
}
.philosophy-item {
  padding: 40px 36px;
  background: var(--white);
  border-right: 1px solid var(--border);
}
.philosophy-item:last-child { border-right: none; }
.philosophy-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin-top: 24px;
}
.philosophy-text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}
.philosophy-main {
  margin-top: 24px;
  margin-bottom: 40px;
  padding: 32px 40px;
  background: var(--white);
  border-left: 4px solid var(--red);
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.9;
}

/* ---- Global Network ---- */
.global-network { background: var(--white); }
.world-map-wrap {
  text-align: center;
  margin-bottom: 20px;
}
.world-map-img {
  width: 70%;
  display: inline-block;
}
.network-link { text-align: center; margin-top: 16px; }
.network-link a { color: var(--red); font-weight: 600; font-size: 1rem; }
.network-link a:hover { text-decoration: underline; }

/* ---- Responsive ---- */
.sp-only { display: none; }

@media (max-width: 768px) {
  .sp-only { display: inline; }
  .timeline-h { grid-template-columns: 1fr 1fr; gap: 32px; }
  .tl-item { padding-right: 0; }
  .tl-line { display: none; }
  .md-grid { grid-template-columns: 1fr; gap: 32px; }
  .corp-stats { grid-template-columns: repeat(2, 1fr); }
  .philosophy-grid { grid-template-columns: 1fr; }
  .philosophy-item { border-right: none; border-bottom: 1px solid var(--border); }
  .philosophy-item:last-child { border-bottom: none; }
  .world-map-img { width: 100%; }
}

@media (max-width: 480px) {
  .timeline-h { grid-template-columns: 1fr; }
  .corp-stats { grid-template-columns: 1fr; }
}
