/* =========================================================================
   OGITECH — Leadership Pages (Governing Council / Management)
   -------------------------------------------------------------------------
   ADDITIVE file. Load it AFTER style.css (and after mega-menu.css /
   preloader.css if you've added those):

     <link rel="stylesheet" href="assets/css/style.css">
     <link rel="stylesheet" href="assets/css/leadership.css">   <-- new line

   Builds on the existing .leader-card class and --navy-*/--gold-*/
   --paper/--shadow-card tokens already in style.css. Does not redefine
   .leader-card itself — only adds the featured-card variant and the
   two layout wrappers these new pages use.
   ========================================================================= */

.leadership-section {
  padding: 3rem 0;
}

.og-page-header {
  padding: 3.5rem 0 1.5rem;
  background: var(--navy-950);
  color: #fff;
}

.og-page-header h1 {
  font-family: var(--font-display);
  color: #fff;
  margin-top: 0.5rem;
}

.og-page-header__lead {
  color: var(--slate-on-navy);
  font-family: var(--font-body);
  max-width: 640px;
}

.og-page-header .breadcrumb a {
  color: var(--gold-300);
  text-decoration: none;
}

.og-page-header .breadcrumb-item.active {
  color: var(--slate-on-navy);
}

.section-heading {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* ---- Standard grid for non-featured members ---------------------------- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}

/* ---- Featured row (Chairman / Rector) ----------------------------------- */
.leadership-featured-row {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.leadership-featured-row .leader-card--featured {
  width: 100%;
  max-width: 340px;
}

/* ---- Featured card variant: bigger photo, bigger name, gold outline ---- */
.leader-card--featured {
  padding: 2rem 1.5rem 1.75rem;
  border: 1px solid var(--gold-300);
  box-shadow: var(--shadow-card-hover);
  position: relative;
}

.leader-card--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.leader-card--featured .leader-card__photo {
  width: 168px;
  height: 168px;
  margin: 0 auto 1.1rem;
}

.leader-card--featured .leader-card__name {
  font-size: 1.25rem;
  text-align: center;
}

.leader-card--featured .leader-card__title {
  text-align: center;
  color: var(--gold-600);
  font-weight: 600;
}

/* ---- Fallback shape rules in case .leader-card itself doesn't already
   define a photo/name/title structure (safe no-ops if it already does,
   since more specific existing rules in style.css will still win) ---- */
.leader-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.85rem;
}

.leader-card__name {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1rem;
  text-align: center;
  margin-bottom: 0.15rem;
}

.leader-card__title {
  font-family: var(--font-body);
  color: var(--slate);
  font-size: 0.88rem;
  text-align: center;
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .leader-card--featured .leader-card__photo {
    width: 128px;
    height: 128px;
  }
}

/* ---- "View Profile" button ---------------------------------------------
   Pill-shaped, gold-outline by default, filling solid gold on hover —
   reads as a secondary action against the card rather than competing
   with the main .btn-gold buttons used for primary CTAs elsewhere. ---- */
.leader-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding: 0.45rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold-600);
  background: transparent;
  border: 1.5px solid var(--gold-500);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.leader-card__btn:hover,
.leader-card__btn:focus-visible {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: var(--navy-950);
  box-shadow: 0 10px 20px -10px rgba(201, 162, 39, 0.6);
  transform: translateY(-1px);
}

.leader-card__btn:active {
  transform: translateY(0);
}

.leader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.leadership-featured-row .leader-card__btn {
  font-size: 0.85rem;
  padding: 0.55rem 1.6rem;
}

/* ---- Profile modal body (reuses the site's existing .og-modal theme;
   these rules only shape the photo/title inside the modal body) ------- */
.og-modal__profile-body {
  text-align: center;
}

.og-modal__profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.9rem;
  display: block;
  box-shadow: var(--shadow-card);
}

.og-modal__profile-title {
  font-family: var(--font-display);
  color: var(--gold-600);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
