/* ==========================================
   LEADERSHIP & STAFF PAGE STYLES - OVERHAUL
   ========================================== */

/* Typography Helpers */
.hero-overline-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  color: #700210;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  display: block;
}

.hero-overline-tag.centered {
  text-align: center;
  margin: 0 auto 12px auto;
}

/* ================== HERO SECTION ================== */
.leadership-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px 0; /* Clear navbar */
  background-color: #ffffff;
}

.leadership-hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--grid-margin);
}

.leadership-hero-text {
  flex: 1;
  max-width: 500px;
}

.leadership-hero-title {
  font-family: var(--font-headline);
  font-size: 64px;
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.leadership-hero-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--on-surface-variant);
  line-height: 1.6;
  margin-bottom: 36px;
}

.leadership-hero-btn {
  display: inline-block;
  background-color: #700210;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.leadership-hero-btn:hover {
  background-color: #52000b;
  transform: translateY(-2px);
}

/* Hero Images Composition */
.leadership-hero-images {
  flex: 1;
  position: relative;
  max-width: 550px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dotted-pattern {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 180px;
  height: 180px;
  background-image: radial-gradient(#d5c8c7 2px, transparent 2px);
  background-size: 14px 14px;
  z-index: 0;
}

.dotted-pattern::after {
  content: '';
  position: absolute;
  bottom: -220px;
  left: -20px;
  width: 140px;
  height: 140px;
  background-image: radial-gradient(#d5c8c7 2px, transparent 2px);
  background-size: 14px 14px;
}

.leadership-hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.red-shape {
  position: absolute;
  right: -10px;
  bottom: 30px;
  width: 160px;
  height: 140px;
  background-color: #700210;
  border-radius: 20px;
  z-index: 1;
}

.leadership-hero-inset-img {
  position: absolute;
  right: 10px;
  bottom: -20px;
  width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 6px solid #ffffff;
  z-index: 2;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ================== FEATURE CARDS ================== */
.staff-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container-max);
  margin: 20px auto 60px auto;
  padding: 0 var(--grid-margin);
  position: relative;
  z-index: 5;
}

.feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  border: 1px solid rgba(140, 113, 111, 0.08);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.feature-icon {
  font-size: 24px;
  color: #700210;
  background: rgba(112, 2, 16, 0.05);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-text h4 {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  color: #700210;
  margin-bottom: 8px;
}

.feature-text p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin: 0;
}

/* ================== FILTER SECTION ================== */
.staff-filter-wrapper {
  background-color: #f9f7f5;
  border-radius: 12px;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  max-width: var(--container-max);
  margin: 60px auto 60px auto;
  box-sizing: border-box;
}

.staff-filter-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(112, 2, 16, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #700210;
  font-size: 20px;
  flex-shrink: 0;
}

.filter-title {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  color: #700210;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.filter-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--on-surface-variant);
}

.staff-filter-right {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.staff-filter-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.staff-filter-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--on-surface-variant);
}

.staff-select {
  padding: 12px 30px 12px 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--on-surface);
  background-color: #ffffff;
  border: 1px solid rgba(140, 113, 111, 0.2);
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  height: 46px;
  transition: var(--transition-smooth);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23700210' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.staff-select:focus,
.staff-select:hover {
  border-color: #700210;
  box-shadow: 0 4px 12px rgba(112, 2, 16, 0.05);
}

/* ================== STAFF GRID HEADER ================== */
.staff-subtitle-area {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
}

.staff-group-heading {
  font-family: var(--font-headline);
  font-size: 40px;
  font-weight: 800;
  color: var(--on-surface);
  margin-bottom: 12px;
}

.staff-group-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--on-surface-variant);
}

/* ================== STAFF GRID & CARDS ================== */
.staff-section {
  padding: 0 0 110px 0;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.staff-card {
  background-color: transparent;
  border: none;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.staff-card:hover {
  transform: translateY(-4px);
}

.staff-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f0ebe8;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.staff-card:hover .staff-image {
  transform: scale(1.05);
}

.staff-name {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.3;
  margin-bottom: 4px;
}

.staff-role {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--on-surface-variant);
  font-weight: 500;
  margin-bottom: 20px;
  flex-grow: 1;
}

.staff-email-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  padding: 0;
  border: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  background-color: transparent;
  transition: var(--transition-smooth);
  box-sizing: border-box;
  gap: 8px;
}

.staff-email-btn i {
  font-size: 11px;
}

.staff-email-btn:hover {
  background-color: transparent;
  color: #700210;
}

/* ================== RESPONSIVE DESIGN ================== */
@media (max-width: 1200px) {
  .staff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .leadership-hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  
  .leadership-hero-text {
    max-width: 100%;
  }
  
  .hero-overline-tag {
    text-align: center;
  }
  
  .leadership-hero-images {
    width: 100%;
    max-width: 450px;
    height: 350px;
  }
  
  .staff-features-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
  
  .staff-filter-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  
  .staff-filter-right {
    width: 100%;
  }
  
  .staff-filter-box {
    flex: 1;
  }

  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .leadership-hero-title {
    font-size: 48px;
  }
  
  .staff-group-heading {
    font-size: 32px;
  }
}

@media (max-width: 576px) {
  .leadership-hero {
    padding: 100px 0 40px 0;
  }

  .leadership-hero-title {
    font-size: 38px;
  }
  
  .leadership-hero-images {
    height: 280px;
  }
  
  .leadership-hero-inset-img {
    width: 160px;
    height: 110px;
    right: 0;
    bottom: -10px;
    border-width: 4px;
  }
  
  .red-shape {
    width: 120px;
    height: 100px;
    right: -5px;
    bottom: 20px;
  }
  
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .staff-filter-wrapper {
    padding: 16px;
    gap: 16px;
  }

  .staff-filter-right {
    flex-direction: row;
    gap: 12px;
  }
  
  .staff-filter-box {
    min-width: 0;
  }
}
