/* ===== About Us Page ===== */
.page-about {
  background: var(--color-dark);
  color: var(--color-white);
}

/* Hero Intro */
.about-hero {
  padding: calc(var(--header-height) + 80px) 0 60px;
  background: var(--color-dark);
}

.about-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.15;
  margin-bottom: 16px;
}

.about-hero h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 28px;
  max-width: 720px;
}

.about-hero p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  max-width: 900px;
  margin-bottom: 16px;
}

.about-hero__heritage {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 8px;
}

/* Timeline */
.about-timeline {
  padding: 40px 0 100px;
  background: var(--color-dark);
}

.timeline {
  position: relative;
  padding-left: 140px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 120px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0, 112, 240, 0.35);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px 24px 1fr;
  gap: 0 24px;
  margin-left: -140px;
  padding-bottom: 64px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item__year {
  grid-column: 1;
  text-align: right;
  padding-right: 24px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 2px;
  position: relative;
}

.timeline-item__year::after {
  content: '';
  position: absolute;
  right: 0;
  top: 12px;
  width: 24px;
  height: 1px;
  border-top: 1px dashed rgba(0, 112, 240, 0.5);
}

.timeline-item__marker {
  grid-column: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-dark);
  box-shadow: 0 0 0 2px var(--color-primary);
  margin-top: 4px;
  justify-self: center;
  position: relative;
  z-index: 1;
}

.timeline-item__content {
  grid-column: 3;
  min-width: 0;
}

.timeline-item__content h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.35;
  margin-bottom: 12px;
}

.timeline-item__content > p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  max-width: 680px;
}

.timeline-item__media {
  margin-top: 8px;
}

.timeline-item__media > img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-md);
}

.timeline-item__media--quote {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.timeline-item__media--quote > img {
  width: 120px;
  height: 120px;
  max-width: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.timeline-quote {
  flex: 1;
  min-width: 260px;
  background: rgba(0, 112, 240, 0.12);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
}

.timeline-quote p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  font-style: italic;
}

.timeline-quote p:last-of-type {
  margin-bottom: 16px;
}

.timeline-quote cite {
  font-size: 13px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.75);
}

.timeline-quote cite strong {
  color: var(--color-white);
  font-weight: 700;
}

/* More about Averion Group */
.about-group {
  padding: 80px 0 100px;
  background: var(--color-dark-alt);
}

.about-group h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 40px;
}

.about-group__card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url('https://assets.cmcinvest.com/invest-sg/image-shield-world-desktop.png');
  background-repeat: no-repeat;
  background-size: contain;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 48px;
  overflow: hidden;
}

.about-group__shield {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
}

.about-group__shield-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-group__shield-text strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
}

.about-group__shield-text span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.about-group__regulators {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-group__regulators li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  padding: 10px 20px 10px 12px;
}

.about-group__regulators li img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.about-group__regulators li span {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.4;
}

.about-group__regulators li strong {
  font-weight: 600;
}

.about-group__text p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
  max-width: 960px;
}

.about-group__text p:last-child {
  margin-bottom: 0;
}

/* Management Team */
.about-team {
  padding: 100px 0 120px;
  background: var(--color-gray-bg);
  color: var(--color-text);
}

.about-team h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 16px;
  text-align: center;
}

.about-team__intro {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-light);
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: center;
}

.team-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 56px;
}

.team-slide {
  display: none;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.team-slide.active {
  display: grid;
  animation: teamFadeIn 0.5s ease;
}

@keyframes teamFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.team-slide__photo {
  background: var(--color-gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

.team-slide__photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.team-slide__info {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-slide__info h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.team-slide__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.team-slide__info > p:last-child {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
}

.team-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--color-text-light);
  cursor: pointer;
  transition: color var(--transition);
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.team-arrow:hover {
  color: var(--color-primary);
}

.team-arrow.prev {
  left: 0;
}

.team-arrow.next {
  right: 0;
}

.team-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.team-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.team-dots button.active {
  background: var(--color-text);
  width: 24px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    grid-template-columns: 24px 1fr;
    margin-left: 0;
    padding-left: 32px;
  }

  .timeline-item__year {
    grid-column: 2;
    text-align: left;
    padding-right: 0;
    padding-bottom: 8px;
    padding-top: 0;
  }

  .timeline-item__year::after {
    display: none;
  }

  .timeline-item__marker {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    margin-top: 6px;
  }

  .timeline-item__content {
    grid-column: 2;
  }

  .about-group__card {
    grid-template-columns: 1fr;
    gap: 32px;
    background-size: 220px auto;
  }

  .about-group__shield {
    min-height: 180px;
  }

  .team-slide.active {
    grid-template-columns: 1fr;
  }

  .team-slide__photo {
    padding: 32px;
  }

  .team-slide__info {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding-top: calc(var(--header-height) + 48px);
  }

  .timeline-item__media--quote {
    flex-direction: column;
  }

  .timeline-item__media--quote > img {
    width: 100px;
    height: 100px;
    max-width: 100px;
  }

  .about-group__card {
    padding: 24px;
    background-image: url('https://assets.cmcinvest.com/invest-sg/image-shield-world-mobile.png');
    background-size: 180px auto;
  }

  .about-group__shield {
    min-height: 140px;
  }

  .team-carousel {
    padding: 0 44px;
  }

  .team-slide__photo img {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 480px) {
  .team-carousel {
    padding: 0;
  }

  .team-arrow {
    display: none;
  }

  .about-group__regulators li {
    flex-direction: column;
    align-items: flex-start;
    border-radius: var(--radius-md);
    padding: 16px;
  }
}
