/* ================================================
   0. Dark Theme Overrides
=================================================== */
.about-page {
  background: var(--bg-body, #0a0804);
  min-height: 100vh;
  color: #f5e6c8;
}

.about-page .container {
  color: #f5e6c8;
}

/* ================================================
   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;
}

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

.about-page h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.about-page h3,
.about-page h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-weight: 300;
  letter-spacing: 1px;
}

.collab-section {
  margin-top: 4rem;
  margin-bottom: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #1e1a10;
}
.collab-section .login-card {
  max-width: 560px;
  margin: 0 auto;
  background: #111008;
  border: 1px solid #1e1a10;
  border-radius: 4px;
  padding: 2rem;
}
.collab-section .login-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: .75rem;
  letter-spacing: 1px;
}
.collab-section .login-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  color: #6b5f45;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.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;
}


.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’ / ‘View All Profiles’ buttons */
.about-page .btn-signup,
.about-page .btn.btn-signup {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-family: ‘DM Sans’, sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: .7rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: background .2s ease, color .2s ease;
}
.about-page .btn-signup:hover,
.about-page .btn.btn-signup:hover {
  background: var(--gold);
  color: #0a0804;
  text-decoration: none;
}

/* table from about section */
.about-page table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  font-family: 'DM Sans', sans-serif;
}
.about-page thead tr { background: var(--gold); }
.about-page thead th {
  background: var(--gold);
  color: #0a0804;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .85rem 1rem;
  border: 1px solid var(--gold);
}
.about-page tbody td {
  background: #0f0c08;
  color: #e8d5a0;
  font-size: .88rem;
  padding: .85rem 1rem;
  border: 1px solid #2a2010;
  line-height: 1.6;
  vertical-align: top;
}
.about-page tbody tr:nth-child(even) td { background: #131008; }
.about-page tbody tr:hover td { background: #1a1508; }
.about-page tbody td:first-child {
  color: var(--gold);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .5px;
}

/* ================================================
   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;
  }
}

/* ================================================
   6. Profile List Cards
=================================================== */


.about-page .card {
  background: #111008;
  border: 1px solid #2a2010;
  border-radius: 4px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease;
}

.about-page .card:hover {
  border-color: var(--gold);
}

.about-page .card-img-top {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter .3s ease;
}

.about-page .card:hover .card-img-top {
  filter: grayscale(0%);
}

.about-page .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.about-page .card-title,
.about-page .card-body h5,
.about-page .card-body h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: #f5e0b0;
}

.about-page .card-text {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  color: #6b5f45;
}

.about-page .card .btn-signup {
  margin-top: auto;
}

.about-page .row.g-4 {
  align-items: stretch;
}

/* --- 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;
  }
}

/* ================================================
   7. Collab Form — Dark Inputs
=================================================== */

.collab-section input,
.collab-section textarea,
.collab-section select,
.collab-section .form-control {
  background: #0a0804 !important;
  background-color: #0a0804 !important;
  border: 1px solid #2a2010 !important;
  color: #f5e0b0 !important;
  border-radius: 2px !important;
  padding: .75rem 1rem !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: .88rem !important;
}
.collab-section input:focus,
.collab-section textarea:focus {
  border-color: var(--gold) !important;
  box-shadow: none !important;
  outline: none !important;
}
.collab-section input::placeholder,
.collab-section textarea::placeholder {
  color: #3a3020 !important;
}
.collab-section button[type="submit"],
.collab-section .btn-signup {
  background: transparent !important;
  color: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  width: 100% !important;
  margin-top: .5rem !important;
}
.collab-section button[type="submit"]:hover,
.collab-section .btn-signup:hover {
  background: var(--gold) !important;
  color: #0a0804 !important;
}

/* ── CORE EXPERTISE (Credentials) ── */
.about-credentials-section {
  padding: 4rem 0 2rem;
  border-top: 1px solid #1e1a10;
}

.about-section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .63rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 2.5rem;
}

.about-credentials {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  padding: 2.4rem;
  border-radius: 8px;
  border: 1px solid rgba(196,154,64,.12);
  background:
    radial-gradient(circle at 18% 45%, rgba(196,154,64,.08), transparent 46%),
    linear-gradient(135deg, rgba(20,16,8,.9), rgba(8,6,4,.98)),
    #0b0804;
  box-shadow:
    0 22px 60px rgba(0,0,0,.38),
    0 0 40px rgba(196,154,64,.04);
}

.about-credentials-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-credential-kicker {
  margin-bottom: .8rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .68rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

.about-credentials h3 {
  margin: 0 0 .9rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 1px;
  color: #f5e0b0;
}

.about-credential-desc {
  max-width: 720px;
  margin: 0 0 1.45rem;
  color: #c8b882;
  font-size: 1rem;
  line-height: 1.8;
}

.about-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-skill-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(196,154,64,.18);
  background: rgba(20,16,8,.72);
  font-family: 'DM Sans', sans-serif;
  font-size: .66rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f5e0b0;
  transition: all .3s ease;
}

.about-skill-pill:hover {
  border-color: var(--gold);
  color: #0a0804;
  background: var(--gold);
  transform: translateY(-2px);
}

.about-credentials-side {
  display: grid;
  gap: 14px;
}

.about-credential-mini-card {
  padding: 1.1rem 1.2rem;
  border-radius: 8px;
  background: rgba(196,154,64,.04);
  border: 1px solid rgba(196,154,64,.12);
  transition: all .3s ease;
}

.about-credential-mini-card:hover {
  transform: translateY(-3px);
  border-color: rgba(196,154,64,.35);
  box-shadow: 0 16px 42px rgba(0,0,0,.3);
}

.about-credential-mini-card span {
  display: block;
  margin-bottom: .35rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .65rem;
  letter-spacing: 3px;
  color: var(--gold);
}

.about-credential-mini-card strong {
  display: block;
  margin-bottom: .35rem;
  color: #f5e0b0;
  font-size: 1rem;
}

.about-credential-mini-card p {
  margin: 0;
  color: #8a7a5a;
  font-size: .88rem;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .about-credentials {
    grid-template-columns: 1fr;
    padding: 1.6rem;
  }
}

/* ── TECHNICAL BREAKDOWN — PREMIUM TABLE ── */
.about-breakdown-section {
  padding: 3.5rem 0 4rem;
  border-top: 1px solid rgba(196,154,64,.14);
}

.about-breakdown-table {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid rgba(196,154,64,.24);
  background:
    radial-gradient(circle at 12% 30%, rgba(196,154,64,.08), transparent 40%),
    linear-gradient(135deg, rgba(20,16,8,.94), rgba(8,6,4,.98));
  box-shadow:
    0 24px 70px rgba(0,0,0,.48),
    0 0 36px rgba(196,154,64,.08);
}

.about-breakdown-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-bottom: 1px solid rgba(196,154,64,.16);
  transition: background .25s ease, transform .25s ease;
}

.about-breakdown-row:last-child {
  border-bottom: none;
}

.about-breakdown-row:hover {
  background: rgba(196,154,64,.06);
}

.about-breakdown-category {
  position: relative;
  padding: 1.15rem 1.3rem;
  border-right: 1px solid rgba(196,154,64,.18);
  background:
    linear-gradient(90deg, rgba(196,154,64,.14), rgba(196,154,64,.03));
  font-family: 'DM Sans', sans-serif;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e8c06a;
}

.about-breakdown-category::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  width: 3px;
  height: 64%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(196,154,64,.45);
}

.about-breakdown-skills {
  padding: 1.15rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  line-height: 1.75;
  color: #ead9a8;
}

@media (max-width: 700px) {
  .about-breakdown-row {
    grid-template-columns: 1fr;
  }

  .about-breakdown-category {
    border-right: none;
    border-bottom: 1px solid rgba(196,154,64,.14);
  }
}

/* ── NAME + SUBTITLE (EDITORIAL HERO STYLE) ── */
.about-heading {
  margin-bottom: 1.8rem;
}

.about-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: #e6c77b;
  line-height: 1.2;
  margin-bottom: .4rem;
}

.about-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #a8915c !important;
}

/* ── ABOUT HERO — PROFILE HOME ── */
.about-hero {
  padding: 7rem 2rem 4rem;
  max-width: 920px;
  margin: 0 auto 3rem;
  border-bottom: 1px solid #1e1a10;
}

.about-hero__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: .65rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #c8102e;
  margin-bottom: 1.25rem;
}

.about-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  color: #f5e0b0;
  line-height: 1.05;
  margin: 0 0 1.25rem;
}

.about-hero__title em {
  color: var(--gold);
  font-style: italic;
}

.about-hero__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: #6b5f45;
  line-height: 1.8;
  max-width: 620px;
  margin: 0;
}

@media (max-width: 768px) {
  .about-hero {
    padding: 5rem 1.25rem 3rem;
    margin-bottom: 2rem;
  }
}

/* ── PROFILE LIST HERO ── */
.about-hero--list {
  margin-bottom: 2rem;
}

.about-back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

.about-back-link:hover {
  color: #f5e0b0;
}

/* ── PROFILE CARDS ── */
.about-profile-card {
  background: linear-gradient(145deg, rgba(196,154,64,0.08), rgba(0,0,0,0.6));
  border: 1px solid rgba(196,154,64,0.15);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.about-profile-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196,154,64,0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.about-profile-card img {
  filter: grayscale(100%) contrast(1.1);
  transition: all 0.4s ease;
}

.about-profile-card:hover img {
  filter: grayscale(0%) contrast(1.05);
  transform: scale(1.03);
}

.about-profile-card .card-body {
  padding: 1.2rem;
}

/* Title */
.about-profile-card .card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: #f5e0b0;
  margin-bottom: .5rem;
}

/* Date */
.about-profile-card .card-text {
  font-size: .75rem;
  color: #6b5f45;
  margin-bottom: 1rem;
}

/* Button */
.about-profile-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: .7rem 1rem;
  font-size: .7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid rgba(196,154,64,0.4);
  color: var(--gold);
  text-decoration: none;
  transition: all .25s ease;
  margin-top: auto;
}

.about-profile-btn:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* Subtitle/Role (hidden by default, revealed on hover) */
.about-profile-role {
  font-family: 'Cormorant Garamond', serif;
  font-size: .82rem;
  font-style: italic;              /* 🔥 look magazine */
  line-height: 1.5;

  color: rgba(245, 224, 176, 0.72);

  margin: .4rem 0 .8rem;
  max-width: 90%;

  opacity: 0;
  transform: translateY(6px);
  transition: all .3s ease;
}

/* Hover reveal */
.about-profile-card:hover .about-profile-role {
  opacity: 1;
  transform: translateY(0);
}

.about-profile-card .card-title {
  transition: transform .3s ease;
}

.about-profile-card:hover .card-title {
  transform: translateY(-4px);
}
/* ── Profile cards equal height fix at 992px ── */
.about-profile-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.about-profile-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.about-profile-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 20%;
}

/* ── Profile card button always at bottom ── */
.about-profile-card .card-body .btn,
.about-profile-card .card-body a.btn {
  margin-top: auto;
}
