/* About Page Specific Styles */

.about-overview.page-section {
  background-image: url('assets/images/aboutus-overview.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-overview .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}

/* Quote Section */
.about-quote.page-section {
  background-image: url('assets/images/aboutus-qoute.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-quote .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.about-quote .content {
  grid-column: 2; /* place quote content on the right side */
  color: var(--fam-text-light);
  padding-top: 64px;
  transform: translateY(var(--about-quote-translateY, 25%)); /* default desktop shift DOWN 25% */
  transition: transform 0.3s ease; /* smooth transition */
}

.about-quote .quote-text {
  font-family: var(--fam-font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  margin: 0 0 48px 0;
  max-width: 60ch;
  color: var(--fam-text-light);
  padding-top: var(--about-quote-top-pad, 0);
}

.about-quote .author {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-quote .author .name {
  font-family: var(--fam-font-heading);
  font-weight: 400;
  font-size: 36px;
  line-height: 44px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--fam-text-light);
  margin: 0;
}

.about-quote .author .title {
  font-family: var(--fam-font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0;
  color: var(--fam-text-light);
  margin: 0;
}

/* Excellence Section */
.about-excellence.page-section {
  background: transparent;
}

.about-excellence .container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-excellence .section-title {
  font-family: var(--fam-font-heading);
  font-weight: 400;
  font-size: 36px;
  line-height: 44px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #202126;
  margin: 0;
}

.excellence-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.excellence-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 442px;
  background: #D9D9D9;
  opacity: 1;
  padding: 64px 42px;
  box-sizing: border-box;
}

.excellence-card .icon {
  position: absolute;
  top: 64px;
  left: 36px;
  width: 65px;
  height: 65px;
}

.excellence-card .icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.excellence-card .content {
  margin-top: 64px;
}

.excellence-card .title {
  font-family: var(--fam-font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: #202126;
  margin: 0 0 16px 0;
}

.excellence-card .desc {
  font-family: var(--fam-font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.02em;
  color: #616262;
  margin: 0;
}

@media (max-width: 1024px) {
  .excellence-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* Quote Section Mobile */
  .about-quote.page-section {
    background-image: url('assets/images/aboutus-qoute-mobile.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .about-quote .container {
    grid-template-columns: 1fr;
  }
  .about-quote .content {
    grid-column: 1;
    --about-quote-translateY: -60%; /* shift UP 25% on mobile */
  }
  .about-quote .quote-text {
    max-width: 100%;
  }

  /* Excellence Cards Mobile */
  .excellence-cards {
    grid-template-columns: 1fr;
  }
  .excellence-card {
    padding: 24px var(--fam-mobile-edge-padding);
  }
  .excellence-card .icon {
    left: 18px;
  }

  /* About Overview Mobile */
  .about-overview .container {
    grid-template-columns: 1fr;
  }
  .about-overview .content {
    grid-column: 1;
    padding-left: 0;
    padding-right: var(--fam-spacing-md);
  }
  .about-overview .content .text {
    max-width: 100%;
    margin-left: 0;
  }
}

/* About Overview Desktop */
.about-overview .content {
  grid-column: 1;
  color: #202126;
  width: 100%;
  padding-left: 0;
  padding-right: 104px;
}

.about-overview .content h2 {
  font-family: var(--fam-font-heading);
  font-weight: 400;
  font-size: 50px;
  line-height: 60px;
  text-transform: none;
  color: #202126;
  margin: 0 0 8px 0;
}

.about-overview .content .text {
  max-width: 40ch;
}

.about-overview .content p {
  font-family: var(--fam-font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: #202126;
  margin: 0;
}
