/* ===================================================================
 * TRUSTEES PAGE CSS
 * Mata Dhanpati Devi Charitable Trust
 * Palette: Maroon (#A52A2A / #7B2C2C) + Saffron (#F28C28 / #FFD700)
 * =================================================================== */
:root {
  --primary: #a52a2a;
  --primary-dark: #7b2c2c;
  --primary-deeper: #3a0d0d;
  --secondary: #f28c28;
  --gold: #ffd700;
  --cream-light: #fff9e6;
  --cream: #fff0d1;
  --cream2: #fff5e1;
  --text-dark: #333333;
  --text-muted: #666666;
  --white: #ffffff;
  --bg-light: #f8f9fa;
}

/* ===== HERO SECTION ===== */
.trustees-hero {
  background: linear-gradient(
    135deg,
    var(--cream-light) 0%,
    var(--cream2) 50%,
    #f5f5dc 100%
  );
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.trustees-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(242, 140, 40, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.trustees-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(165, 42, 42, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  background: rgba(242, 140, 40, 0.1);
  color: var(--primary);
  border: 2px solid var(--secondary);
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: "Playfair Display", serif;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-title .highlight-text {
  background: linear-gradient(120deg, var(--secondary) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 1.2rem 2rem;
  text-align: center;
  min-width: 140px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.hero-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.hero-stat .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  font-family: "Playfair Display", serif;
  line-height: 1.1;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* Hero Image */
.trustees-hero-img {
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
  transform: perspective(800px) rotateY(-3deg);
  transition: all 0.5s ease;
  width: 100%;
}

.trustees-hero-img:hover {
  transform: perspective(800px) rotateY(0deg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

/* ===== SECTION HEADERS ===== */
.section-header-custom {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title-custom {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  font-family: "Playfair Display", serif;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title-custom::after {
  content: "";
  display: block;
  width: 70%;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--gold));
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-subtitle-custom {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== TERM FILTER ===== */
.term-filter-wrapper {
  max-width: 420px;
  margin: 0 auto;
}

.term-filter-card {
  background: var(--white);
  border-radius: 16px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.term-filter-card .filter-label {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  white-space: nowrap;
}

.term-filter-card .form-select {
  border: none;
  background-color: var(--bg-light);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.term-filter-card .form-select:focus {
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.2);
  background-color: var(--cream-light);
}

/* ===== COMMITTEE CARDS ===== */
.committee-section {
  margin-bottom: 3.5rem;
}

.committee-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  font-family: "Playfair Display", serif;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--secondary);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.committee-heading i {
  font-size: 1.3rem;
}

.member-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(242, 140, 40, 0.08);
}

.member-image-wrapper {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle, #ffffff 0%, #f7f7f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.member-card .member-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.member-card .member-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cream-light), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 2.5rem;
  border-radius: 8px;
}

.member-card .member-image-placeholder i {
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.7;
}

.member-card .member-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.member-card .member-badge.chairman {
  background: rgba(165, 42, 42, 0.9);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.member-card .member-badge.default {
  background: rgba(242, 140, 40, 0.9);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.member-card .member-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.member-card .member-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-family: "Hind", sans-serif;
}

.member-card .card-info {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.member-card .member-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.member-card .member-detail:last-child {
  margin-bottom: 0;
}

.member-card .member-detail i {
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.member-card .member-detail a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.member-card .member-detail a:hover {
  color: var(--primary);
}

/* ===== TRUSTEE CARDS ===== */
.trustee-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.trustee-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(165, 42, 42, 0.08);
}

.trustee-image-wrapper {
  width: 100%;
  height: 260px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle, #ffffff 0%, #f7f7f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.trustee-card .trustee-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.trustee-card .trustee-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cream-light), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 3rem;
  font-family: "Playfair Display", serif;
}

.trustee-card .trustee-designation {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(165, 42, 42, 0.9);
  backdrop-filter: blur(4px);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 5;
}

.trustee-card .trustee-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.trustee-card .trustee-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
  font-family: "Hind", sans-serif;
}

.trustee-card .trustee-father {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.trustee-card .trustee-details {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.trustee-card .trustee-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.trustee-card .trustee-detail:last-child {
  margin-bottom: 0;
}

.trustee-card .trustee-detail i {
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.trustee-card .trustee-detail a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.trustee-card .trustee-detail a:hover {
  color: var(--primary);
}

.trustee-card .trustee-detail strong {
  color: var(--text-dark);
}

/* Nominee Badge */
.nominee-badge {
  background: linear-gradient(135deg, var(--cream-light), var(--cream2));
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
  margin-top: 0.8rem;
  border-left: 3px solid var(--secondary);
}

.nominee-badge .nominee-label {
  font-weight: 600;
  color: var(--primary-dark);
  display: block;
  margin-bottom: 2px;
}

.nominee-badge .nominee-label i {
  margin-right: 4px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(255, 215, 0, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.cta-section .cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  font-family: "Playfair Display", serif;
}

.cta-section .cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.cta-section .btn-cta-light {
  background: white;
  color: var(--primary);
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-cta-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  color: var(--primary);
}

.cta-section .btn-cta-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.7);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.cta-section .btn-cta-outline:hover {
  background: white;
  color: var(--primary);
  border-color: white;
  transform: translateY(-3px);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  padding: 3rem 1rem;
}

.empty-state .empty-icon {
  font-size: 3.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.empty-state .empty-message {
  background: var(--cream-light);
  border: 1px solid rgba(242, 140, 40, 0.2);
  border-radius: 12px;
  padding: 1.2rem 2rem;
  color: var(--text-dark);
  display: inline-block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .trustees-hero {
    padding: 80px 0 40px;
    text-align: center;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .trustees-hero-img {
    margin-top: 2rem;
    transform: none;
  }

  .trustees-hero-img:hover {
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title-custom {
    font-size: 1.7rem;
  }

  .hero-stat {
    min-width: 110px;
    padding: 1rem 1.2rem;
  }

  .hero-stat .stat-number {
    font-size: 1.8rem;
  }

  .committee-heading {
    font-size: 1.2rem;
  }

  .cta-section .cta-title {
    font-size: 1.7rem;
  }

  .member-card {
    padding: 1.2rem;
  }

  .trustee-card {
    padding: 1.2rem;
  }
}
