/* ================================================
   1. Page Layout & Spacing
=================================================== */

.about-page .container {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.about-page .row {
  align-items: flex-start;
}

.about-page .mb-4.border-bottom.pb-2 {
  border-color: rgba(0,0,0,.12) !important;
}

.about-page .collab-page {
  margin-top: 3rem;
  margin-bottom: 4rem;
}

/* ================================================
   2. Typography
=================================================== */

.about-page h2 {
  font-family: var(--font-stack-brand);
  color: var(--color-text-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-page p,
.about-page td,
.about-page th {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-body);
}

.about-page .text-end em {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ================================================
   3. Utility Classes (Moved Before Components)
=================================================== */

.about-page .scale {
  width: 100%;
  height: auto;
}

/* ================================================
   4. Components (Images, Cards, Buttons, Tables)
=================================================== */

/* hero/profile image on main About page */
.about-page .profile-image {
  width: 75%;
  height: auto;
  margin-bottom: 30px;
  object-fit: cover;
  max-width: 320px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* card image wrapper on profile list cards */
.about-page .image-wrapper {
  width: 100%;
  height: 60%;
  margin: 0 auto;
  overflow: hidden;
}

.about-page .card-img-top {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.about-page .card.light-bg {
  background-color: var(--bg-light);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.05);
}

.about-page .back-link {
  color: var(--color-link);
  text-decoration: none;
}
.about-page .back-link:hover {
  text-decoration: underline;
  color: var(--color-link-hover);
}

/* 'View Full Profile’ button */
.about-page .btn.btn-signup {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 20px;
  border-radius: 999px;
  background-color: var(--bg-dark);
  color: var(--color-text-light);
  transition: all 0.2s ease-in-out;
}

.about-page .btn.btn-signup:hover {
  background-color: var(--color-primary-brand);
  color: var(--color-text-light);
}

/* table from about section */
.about-page table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.about-page th,
.about-page td {
  border: 1px solid #000;
  padding: 6px 10px;
  vertical-align: top;
}

/* ================================================
   5. Responsive Styles (@media queries)
=================================================== */

/* --- Small screens (phones) --- */
@media (max-width: 575.98px) {
  .about-page .card-img-top {
    height: 280px;
  }
  .about-page .profile-image {
    width: 90%;
  }
}

/* --- Medium screens (tablets) --- */
@media (min-width: 768px) {
  /* Ensure the first row is truly two columns on md+ */
  .about-page .row:first-of-type {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 1.25rem; /* spacing between the two cols */
  }
  .about-page .col-md-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
  .about-page .col-md-8 {
    flex: 0 0 66.6667%;
    max-width: 66.6667%;
  }
}

/* --- Tablet Adjustment: Larger profile image (771–986px) --- */
@media (min-width: 768px) and (max-width: 991px) {
  .about-page .profile-image {
    width: 90%;
    max-width: 360px;
  }
}

/* --- Large screens (tablet/small desktop) Masthead Fix --- */
@media (max-width: 991.98px) {
  .masthead {
    min-height: auto;
    margin: 16px auto 8px;
  }

  .masthead .container .row.g-0 {
    min-height: unset; /* or min-height: auto; */
  }

  .masthead-text {
    border-radius: 16px;
    padding: 20px;
  }

  .masthead-image:after {
    display: none;
  }
}
