/* ============================================================
   About Us Page
   ============================================================ */

/* ── Hero Banner ── */

.about-hero {
  position: relative;
  width: 100%;
  min-height: 700px;
  background-image: linear-gradient(182.76deg, rgba(0, 0, 0, 0.6) 4.53%, rgba(0, 0, 0, 0) 30.8%), linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url("../images/about-us/Desktop.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile hero banner */
@media (max-width: 768px) {
  .about-hero {
    background-image: linear-gradient(182.76deg, rgba(0, 0, 0, 0.6) 4.53%, rgba(0, 0, 0, 0) 30.8%), linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url("../images/about-us/Mobile.jpg");
  }
}

.about-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 768px;
  text-align: center;
}

.about-hero-heading {
  position: relative;
  width: 1030px;
  height: 200px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero-heading-glow,
.about-hero-heading-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 80px;
  line-height: 120px;
  text-transform: capitalize;
  text-align: center;
}

.about-hero-heading-glow {
  color: rgba(194, 27, 181, 0.6);
  filter: blur(15px);
}

.about-hero-heading-text {
  color: #ffffff;
}

.about-hero-subtitle {
  width: 768px;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  color: #ffffff;
}

/* ── Services & Facilities ── */

.about-services {
  padding: 40px 0;
}

.about-services-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  box-sizing: border-box;
}

.about-services-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 525px;
  border-radius: 24px;
  overflow: hidden;
  background: url("../images/about-us/details.webp") center / cover no-repeat;
}

.about-services-photo {
  flex: 0 0 426px;
}

.about-services-panel {
  flex: 1;
  background: url("../images/about-us/detail-bg.png") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  min-width: 0;
}

.about-services-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 690px;
}

.about-services-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  line-height: 40px;
  text-transform: uppercase;
  color: #ffffff;
}

.about-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 64px;
  row-gap: 32px;
  align-items: start;
}

.about-service-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.about-service-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.about-service-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 22px;
  color: #ffffff;
}

.about-service-sublabel {
  display: block;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  opacity: 0.85;
}

/* ── Why We Are The Best ── */

.about-why {
  padding: 80px 0;
}

.about-why-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 80px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  box-sizing: border-box;
}

.about-why-text {
  flex: 0 0 590px;
  width: 590px;
}

.about-why-heading {
  margin: 0 0 24px 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  line-height: 40px;
  text-transform: uppercase;
  color: var(--color-purple);
}

.about-why-body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-align: justify;
  color: var(--color-text);
}

.about-why-image {
  flex: 0 0 610px;
  width: 610px;
  height: 523px;
  border-radius: 16px;
  overflow: hidden;
}

.about-why-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Business Segments ── */

.about-segments {
  padding: 80px 0;
}

.about-segments-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-segments-heading {
  margin: 0 0 40px 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  line-height: 40px;
  text-transform: uppercase;
  color: var(--color-purple);
  text-align: center;
}

.about-segments-row {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.about-seg-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  width: 302px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  transition: box-shadow 0.25s ease;
}

.about-seg-card:hover {
  box-shadow:
    0 0 0 1px #000000,
    0 8px 32px rgba(0, 0, 0, 0.15);
}

.about-seg-card-img {
  width: 100%;
  height: 210px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.about-seg-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  flex: 1;
}

.about-seg-card-title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 22px;
  color: #000000;
}

.about-seg-card-desc {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #333333;
}

.about-seg-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 20px;
  border: 1px solid #000000;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: #000000;
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.about-seg-card-btn-arrow {
  flex-shrink: 0;
}

.about-seg-card-btn:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .about-hero {
    min-height: 720px;
    height: 720px;
  }

  .about-hero-content {
    width: 90%;
    gap: 10px;
  }

  .about-hero-heading {
    width: 100%;
    height: auto;
  }

  .about-hero-heading-glow,
  .about-hero-heading-text {
    font-size: 48px;
    line-height: 1.2;
    position: relative;
    inset: unset;
  }

  .about-hero-heading-glow {
    position: absolute;
  }

  .about-hero-subtitle {
    width: 100%;
    font-size: 16px;
    line-height: 24px;
  }

  .about-services {
    padding: 0;
  }

  .about-services-inner {
    padding: 0 20px;
  }

  .about-services-card {
    flex-direction: column;
    height: auto;
    background: none;
  }

  .about-services-photo {
    display: none;
  }

  .about-services-panel {
    padding: 32px 24px;
    background: url("../images/about-us/detail-bg.png") center / cover no-repeat;
  }

  .about-services-content {
    width: 100%;
    gap: 24px;
  }

  .about-services-heading {
    font-size: 24px;
    line-height: 32px;
    text-align: center;
  }

  .about-services-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 24px;
  }

  .about-service-item {
    align-items: flex-start;
  }

  .about-service-label {
    font-size: 14px;
    line-height: 18px;
  }

  .about-service-icon {
    width: 40px;
    height: 40px;
  }

  .about-segments {
    padding: 80px 0;
  }

  .about-segments-inner {
    padding: 0 20px;
  }

  .about-segments-heading {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 24px;
  }

  .about-csr {
    padding: 0 !important;
  }

  .about-segments-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .about-segments-row--4 {
    margin-bottom: 16px;
  }

  .about-seg-card {
    width: calc(50% - 12px);
  }

  .about-seg-card-img {
    width: 100%;
    height: 160px;
  }

  .about-seg-card-body {
    padding: 12px;
    gap: 6px;
  }

  .about-seg-card-title {
    font-size: 16px;
  }

  .about-seg-card-desc {
    font-size: 14px;
    line-height: 20px;
  }

  .about-seg-card-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .about-why {
    padding: 80px 0;
  }

  .about-why-inner {
    flex-direction: column;
    gap: 32px;
    padding: 0 24px;
  }

  .about-why-text {
    flex: none;
    width: 100%;
  }

  .about-why-heading {
    font-size: 26px;
    line-height: 32px;
    margin-bottom: 16px;
    text-align: center;
  }

  .about-why-body {
    font-size: 14px;
    line-height: 22px;
  }

  .about-why-image {
    flex: none;
    width: 100%;
    height: 280px;
  }
}

/* ── HCM Cares (CSR) ── */

.about-csr {
  width: 100%;
  padding-top: 40px;
  background: var(--color-page-bg);
}

.about-csr-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  box-sizing: border-box;
}

.about-csr-header {
  width: 100%;
  max-width: 1191px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.about-csr-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  line-height: 40px;
  color: var(--color-purple);
  margin: 0;
}

.about-csr-body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text);
  margin: 0;
}

.about-csr-grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
  width: 100%;
}

.about-csr-grid .about-csr-card:only-child {
  flex: 0 0 302px !important;
  width: 302px !important;
}

.about-csr-card {
  flex: 1;
  height: 336px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease;
}

.about-csr-card:hover {
  transform: scale(1.03);
  z-index: 1;
}

.about-csr-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.about-csr-card:hover .about-csr-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.about-csr-card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  color: #ffffff;
  margin: 0 0 8px;
}

.about-csr-card-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 19px;
  color: #ffffff;
  margin: 0;
}

@media (max-width: 768px) {
  .about-csr-inner {
    padding: 0 24px;
    gap: 24px;
  }

  .about-csr-heading {
    font-size: 26px;
    line-height: 32px;
  }

  .about-csr-body {
    font-size: 14px;
    line-height: 22px;
  }

  .about-csr-grid {
    flex-direction: column;
    gap: 16px;
  }

  .about-csr-card {
    flex: none;
    width: 100%;
    height: 260px;
  }

  .about-csr-card-overlay {
    opacity: 1;
    transform: translateY(0);
  }

  .about-csr-card:hover {
    transform: none;
  }
}
