/* ==========================================================
   About Page Styles
========================================================== */

.about-page {
  position: relative;
}

.about-page__photo {
  position: relative;
  min-height: 500px;
  border-radius: 60px 60px 0 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 0 56px 56px;
}

.about-page__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .38) 100%);
  z-index: 0;
}

.about-page__title {
  position: relative;
  z-index: 1;
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
  margin-bottom: 2rem;
}

.about-page__panel {
  position: relative;
  background: #fff;
  border-radius: 65px 65px 0 0;
  padding: 65px 56px 10rem;
  margin: -60px auto 0;
}

.about-page__panel:first-of-type {
  margin-top: -60px;
  z-index: 2;
}

.about-page__panel--grey {
  background: #e3e4ea;
  margin-top: -3rem;
}

.about-page__panel h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.about-page__panel.about-detail {
  border-radius: 65px;
  padding: 65px 56px;
  z-index: 32;
}

/* ---------------- By The Numbers ---------------- */
.about-numbers__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.about-numbers__head h2 {
  margin: 0;
}

.about-numbers__nav {
  display: flex;
  gap: 0;
  border-radius: 11px;
  border: 1.5px solid #4d4a49;
}

.about-numbers__nav button {
  position: relative;
  width: 45px;
  height: 34px;
  border: none;
  border-radius: 10px 0 0 10px;
  background: #fff;
  color: #4d4a49;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.about-numbers__nav button:first-child:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(0, -50%);
  display: block;
  width: 1px;
  height: 20px;
  background-color: #4d4a49;
}

.about-numbers__nav button.about-numbers-next {
  border-radius: 0 10px 10px 0;
}

.about-numbers__nav button:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  color: #fff;
}

.about-numbers-swiper {
  margin-top: 32px;
}

.about-number-card {
  background: #e3e4ea;
  border-radius: 20px;
  padding: 0 15px 24px;
  height: auto;
}
.about-number-card img{
  max-width: 100%;
}
.about-number-card__num {
  font-size: 45px !important;
  font-weight: 800;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.about-number-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-top: 1px solid #ffffff;
}

.about-number-card__icon img {
  max-width: 100%;
  max-height: 91px;
  margin: 2rem 0 1rem;
}

.about-number-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: #4d4a49;
  padding-bottom: 12px;
  margin: 0 0 10px;
}

.about-number-card p {
  font-size: 18px;
  line-height: 1.6;
  color: #4d4a49;
  margin: 0;
}

/* ---------------- Who we are ---------------- */
.about-who {
  display: flex;
  gap: 56px;
}

.about-who__gallery {
  flex: 0 0 42%;
}

.about-who__main {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
}

.about-who__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.about-who__thumbs button {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
}

.about-who__thumbs button.is-active {
  border-color: #a8a8a8;
}

.about-who__text {
  flex: 1;
}

.about-who__text p {
  font-size: 16px;
  line-height: 1.85;
  color: #4d4a49;
  margin: 0 0 20px;
}

.about-who__text p:last-child {
  margin-bottom: 0;
}

/* ---------------- History ---------------- */
.about-history {
  display: flex;
  gap: 56px;
  justify-content: space-between;
  align-items: stretch;
  /* Vertically align left and right sections on desktop */
}

.about-history-left {
  display: flex;
  gap: 6rem;
  align-items: center;
}

.about-history-left h2 {
  display: flex;
  height: 100%;
  margin: 0;
}

.about-history__years-wrap {
  flex: 0 0 250px;
  position: relative;
  height: 300px;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%);
}

.about-history__years-wrap::-webkit-scrollbar {
  display: none;
}

.about-history__years {
  list-style: none;
  margin: 0;
  padding: 90px 0;
}

.about-history__years li {
  margin-bottom: 3px;
  text-align: center;
  /* Center align year buttons */
}

.about-history__years button {
  border: none;
  background: none;
  padding: 0;
  font-size: 20px;
  font-weight: 400;
  color: #c7c7c7;
  cursor: pointer;
  transition: font-size .35s cubic-bezier(.22, 1, .36, 1), color .35s ease;
  margin-bottom: -1px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.about-history__years button.is-active {
  font-size: 45px;
  color: var(--ink-soft);
  font-weight: bold;
}

.about-history__body {
  flex: 1;
  max-width: 100%;
  min-height: 480px;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.about-history__img {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
}

.about-history__img img {
  width: 100%;
  display: block;
}

.about-history__body p {
  font-size: 16px;
  line-height: 1.85;
  color: #4d4a49;
  margin: 0;
}

/* Responsive Styles for Tablets and Mobile */
@media (max-width: 1199px) {
  .about-history-left {
    gap: 2rem;
  }

  .about-history__years-wrap {
    flex: 0 0 200px;
  }
}

@media (max-width: 991px) {
  .about-history-left {
    flex-direction: column;
    align-items: stretch;
    /* Stretch left container width for mobile */
    gap: 16px;
  }

  .about-page__photo {
    min-height: 280px;
    padding: 0 28px 32px;
    border-radius: 40px 40px 0 0;
  }

  .about-page__title {
    font-size: 34px;
  }

  .about-page__panel {
    padding: 30px 0.5rem 6rem;
    border-radius: 30px 30px 0 0;
    margin-top: -3rem;
  }

  .about-page__panel:first-of-type {
    margin-top: -40px;
  }

  .about-page__panel.about-detail {
    border-radius: 30px;
    padding: 30px 0.5rem;
  }


  .about-page__panel--grey {
    margin-top: -4rem;
  }

  .about-page__panel h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .about-who,
  .about-history {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }

  .about-who__gallery {
    flex: 1;
  }

  /* Mobile horizontal scroll years container */
  .about-history__years-wrap {
    flex: 1;
    height: 80px;
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%);
    display: flex;
    align-items: center;
  }

  .about-history__years {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 50vw;
    /* Allows first and last items to be centered */
    height: 100%;
    margin: 0 auto;
  }

  .about-history__years li {
    margin-bottom: 0;
    margin-right: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about-history__body {
    max-width: none;
    width: 100%;
    justify-content: flex-start;
    min-height: auto;
    /* Remove fixed min-height on mobile if needed */
  }

  .about-history__years button {
    border: none;
    background: none;
    padding: 0px 34px;
    font-size: 24px;
    /* Fixed font size for all items to maintain spacing */
    font-weight: 400;
    color: #c7c7c7;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    /* Give a fixed height container for buttons */
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), color .35s ease;
    transform: scale(1);
    transform-origin: center center;
  }

  .about-history__years button.is-active {
    font-size: 24px;
    /* Keep base font size same */
    transform: scale(1.6);
    /* Scale up visually to look like a large font */
    color: var(--ink-soft);
    font-weight: bold;
    z-index: 2;
    /* Ensure active year stays on top */
  }
}


@media (max-width: 575px) {
  .about-page__photo {
    min-height: 210px;
  }
}