/* NJTPA TRUSTEES STYLES */

/* Profile Image Badge in Hero */
.hero-profile-image {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
}


/* Subregion Badge in Trustee Hero */
.hero-subregion-badge {
  margin-top: var(--space-2xl);
}

a.subregion-profile-badge,
.subregion-profile-badge.non-clickable {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px;
  transition: all 0.3s ease;
  max-width: 420px;
  text-decoration: none;
  color: inherit;
}

a.subregion-profile-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.subregion-profile-badge.non-clickable {
  cursor: default;
}

.subregion-badge-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.subregion-badge-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--njtpa-white);
}

.subregion-badge-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subregion-badge-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.subregion-badge-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--njtpa-white);
  line-height: 1.2;
  display: block;
}

.subregion-badge-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--njtpa-white);
  transition: all 0.3s ease;
}

a.subregion-profile-badge:hover .subregion-badge-arrow {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.subregion-badge-arrow svg {
  width: 18px;
  height: 18px;
}

/* Trustee Layout */
.trustee-layout .container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.trustee-layout .main-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5xl);
}

.trustee-layout .content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-5xl);
}

.trustee-layout .content-area {
  min-width: 0;
}

/* Section Headers */
.section-header {
  margin-bottom: var(--space-3xl);
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--njtpa-dark-blue);
  margin: 0 0 var(--space-lg) 0;
}

.section-title svg {
  color: var(--njtpa-maroon);
  flex-shrink: 0;
}

/* Content Sections */
.introduction-section {
  margin-bottom: var(--space-5xl);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}

.sidebar-section {
  background: var(--njtpa-background-light);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--njtpa-gray-light);
  padding: var(--space-3xl);
}

.sidebar-header {
  margin-bottom: var(--space-3xl);
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--njtpa-dark-blue);
  margin: 0;
}

.sidebar-title svg {
  color: var(--njtpa-maroon);
}

/* Committee List in Sidebar */
.committee-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.committee-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--njtpa-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--njtpa-gray-light);
  transition: var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.committee-item:hover {
  border-color: var(--njtpa-maroon);
  text-decoration: none;
}

.committee-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--njtpa-dark-blue);
  border-radius: 50%;
  color: var(--njtpa-white);
  flex-shrink: 0;
}

.committee-info {
  flex: 1;
}

.committee-name {
  color: var(--njtpa-dark-blue);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  line-height: var(--line-height-snug);
  transition: var(--transition-base);
  display: block;
  margin-bottom: var(--space-xs);
}

.committee-item:hover .committee-name {
  color: var(--njtpa-maroon);
}

.committee-position {
  color: var(--njtpa-maroon);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Single Trustee Styles */
.njtpa-single-trustee .entry-header {
  margin-bottom: var(--space-4xl);
  text-align: center;
}

.njtpa-single-trustee .trustee-professional-title {
  font-size: var(--font-size-xl);
  color: var(--njtpa-maroon);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-lg);
  text-align: center;
}

.njtpa-single-trustee .post-thumbnail {
  margin-bottom: var(--space-4xl);
  text-align: center;
}

.njtpa-single-trustee .post-thumbnail img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--border-radius-lg);
}

.njtpa-single-trustee .trustee-introduction {
  font-size: var(--font-size-lg);
}

.njtpa-single-trustee .entry-content {
  margin-bottom: var(--space-4xl);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
  color: var(--color-text);
  font-weight: 400;
}

.njtpa-single-trustee .entry-content h2,
.njtpa-single-trustee .entry-content h3,
.njtpa-single-trustee .entry-content h4 {
  color: var(--njtpa-dark-blue);
  font-weight: var(--font-weight-bold);
  margin-top: var(--space-4xl);
  margin-bottom: var(--space-xl);
}

.njtpa-single-trustee .entry-content p {
  margin-bottom: var(--space-xl);
}

.njtpa-single-trustee .entry-content a {
  color: var(--njtpa-dark-blue);
  text-decoration: underline;
  transition: var(--transition-base);
}

.njtpa-single-trustee .entry-content a:hover {
  color: var(--njtpa-maroon);
}

/* Trustee Details Section */
.trustee-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4xl);
  margin-top: var(--space-5xl);
  padding-top: var(--space-4xl);
  border-top: 1px solid var(--njtpa-gray-light);
}

.trustee-affiliation,
.committee-memberships {
  background: var(--njtpa-background-light);
  padding: var(--space-4xl);
  border-radius: var(--border-radius-lg);
}

.trustee-affiliation h3,
.committee-memberships h3 {
  margin-top: 0;
  margin-bottom: var(--space-3xl);
  color: var(--njtpa-dark-blue);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  border-bottom: 2px solid var(--njtpa-dark-blue);
  padding-bottom: var(--space-sm);
}

.trustee-affiliation p {
  margin: 0;
  font-size: var(--font-size-lg);
}

.trustee-affiliation a {
  color: var(--njtpa-dark-blue);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: var(--transition-base);
}

.trustee-affiliation a:hover {
  color: var(--njtpa-maroon);
  text-decoration: underline;
}

/* Committee Memberships */
.committees-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.committee-membership {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  margin-bottom: var(--space-sm);
  background: var(--njtpa-white);
  border: 1px solid var(--njtpa-gray-light);
  border-radius: var(--border-radius);
  transition: var(--transition-base);
}

.committee-membership:hover {
  background: var(--njtpa-dark-blue);
  color: var(--njtpa-white);
}

.committee-membership:hover .committee-link {
  color: var(--njtpa-white);
}

.committee-membership:hover .committee-position {
  color: var(--njtpa-white);
}

.committee-link {
  color: var(--njtpa-dark-blue);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: var(--transition-base);
}

.committee-position {
  color: var(--njtpa-maroon);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Archive Styles */
.trustees-layout .page-header {
  margin-bottom: var(--space-4xl);
  text-align: center;
}

.trustees-layout .archive-meta {
  margin-bottom: var(--space-4xl);
  padding: var(--space-xl);
  background: var(--njtpa-background-light);
  border-radius: var(--border-radius);
  text-align: center;
}

.trustees-layout .archive-count {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  color: var(--njtpa-dark-blue);
  font-size: var(--font-size-base);
}

.trustees-layout .no-posts-found {
  text-align: center;
  padding: var(--space-6xl) var(--space-xl);
  color: var(--njtpa-gray-medium);
}

.trustees-layout .no-posts-found h2 {
  color: var(--njtpa-dark-blue);
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-xl);
}

/* Card Top Section with Avatar */
.trustee-card-header {
  position: relative;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--njtpa-white);
  min-height: 140px;
  flex-shrink: 0;
}

/* Avatar Container */
.trustee-avatar {
  flex-shrink: 0;
  position: relative;
  width: 80px;
  height: 80px;
}

.trustee-avatar .avatar-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--njtpa-gray-light);
}

.trustee-avatar .avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--njtpa-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

/* Name and Title Section */
.trustee-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trustee-card-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.trustee-card-title {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
  font-weight: 400;
}

/* Card Body Content */
.trustee-card-content {
  padding: 0 24px 24px;
  background: var(--njtpa-white);
}

/* Location Badge */
.trustee-subregion {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--njtpa-gray-light);
  border-radius: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
  border: 1px solid var(--njtpa-gray-light);
}

.trustee-subregion svg {
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* Committees Section */
.trustee-committees {
  padding: 16px 24px 24px;
  border-top: 1px solid #f3f4f6;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 120px;
}

.trustee-committees .committees-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trustee-committees .committee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.4;
  padding: 2px 0;
}

.trustee-committees .committee-name {
  flex: 1;
  font-weight: 500;
  text-align: left;
}

.trustee-committees .committee-position {
  display: inline-block;
  padding: 2px 6px;
  background: var(--njtpa-gray-light);
  color: var(--color-text-muted);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
}

.trustee-committees .more-committees {
  color: var(--color-text-muted);
  font-size: 13px;
  font-style: normal;
  margin-top: 4px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .trustees-archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {

  .hero-profile-image {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    margin: 0 auto;
  }

  .hero-subregion-badge {
    display: flex;
    justify-content: center;
  }

  .subregion-profile-badge,
  a.subregion-profile-badge {
    max-width: 100%;
    width: auto;
  }

  .subregion-badge-inner {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .subregion-badge-icon {
    width: 36px;
    height: 36px;
  }

  .subregion-badge-name {
    font-size: 16px;
  }

  .subregion-badge-arrow {
    width: 32px;
    height: 32px;
  }

  .subregion-badge-arrow svg {
    width: 16px;
    height: 16px;
  }

  .trustee-layout .container {
    padding: 0 var(--space-lg);
  }

  .trustee-layout .content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4xl);
  }

  .sidebar-section {
    padding: var(--space-3xl);
  }

  .section-title,
  .sidebar-title {
    font-size: var(--font-size-xl);
    gap: var(--space-md);
  }

  .committee-item {
    padding: var(--space-md);
  }

  /* Mobile Grid */
  .trustees-archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .trustees-archive-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }

  .trustee-archive-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {

  .hero-profile-image {
    width: 120px;
    height: 120px;
    border-radius: 14px;
  }

  .profile-image-placeholder svg {
    width: 60px;
    height: 60px;
  }

  .hero-subregion-badge {
    margin-top: var(--space-xl);
  }

  .subregion-badge-label {
    font-size: 10px;
  }

  .subregion-badge-name {
    font-size: 14px;
  }
}

/* ===================================
   FULL-WIDTH IMAGE GRID DESIGN
   =================================== */

.trustees-image-grid-wrapper {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 2px solid #e5e7eb;
}

.image-grid-title {
  text-align: center;
  font-size: 28px;
  color: var(--njtpa-dark-blue);
  margin-bottom: 40px;
  font-weight: var(--font-weight-bold);
}

/* Trustees Grid Section */
.trustees-grid-section {
  padding-bottom: 60px;
}

/* Image Grid Container */
.trustees-image-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.trustees-image-grid .trustee-image {
  border-radius: 0px;
}

/* Individual Image Item */
.trustee-image-item {
  display: block;
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--njtpa-gray-light);
}

.trustee-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

.trustee-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--njtpa-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

/* Overlay */


.overlay-content {
  color:var(--njtpa-white);
  width: 100%;
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.overlay-header {
  flex-shrink: 0;
}

.overlay-name {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.2;
  color: white;
}

.overlay-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 10px 0;
  line-height: 1.3;
  font-weight: 400;
}

.overlay-subregion {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 8px;
}

.overlay-subregion svg {
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.overlay-committees {
  margin-top: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overlay-committees-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overlay-committee-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.95);
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.overlay-committee-item:last-child {
  border-bottom: none;
}

.overlay-committee-name {
  flex: 1;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-right: 8px;
  text-align: left;
}

.overlay-committee-position {
  flex-shrink: 0;
  font-weight: 500;
  color: rgba(255, 255, 255, 1);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 3px;
  text-align: right;
}

.overlay-footer {
  flex-shrink: 0;
  text-align: right;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.overlay-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.overlay-learn-more svg {
  transition: transform 0.3s ease;
}

/* Hover Effects */
.trustee-image-item:hover .trustee-image {
  transform: scale(1.08);
}


.trustee-image-item:hover .overlay-committees,
.trustee-image-item:hover .overlay-footer {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.trustee-image-item:hover .overlay-learn-more svg {
  transform: translateX(4px);
}

/* Responsive Design for Image Grid */
@media (max-width: 1200px) {
  .trustees-image-grid {
    grid-template-columns: repeat(4, 1fr);
    margin: 0 20px;
  }

  .trustees-grid-section {
    padding: 40px 0;
    margin-top: -40px;
  }
}

@media (max-width: 992px) {
  .trustees-image-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .trustees-image-grid {
    grid-template-columns: repeat(3, 1fr);
    margin: 0 15px;
    border-radius: 4px;
  }

  .trustees-grid-section {
    padding: 30px 0;
    margin-top: -30px;
  }


  .overlay-name {
    font-size: 16px;
  }

  .overlay-title {
    font-size: 13px;
  }

  .overlay-committee-item {
    font-size: 10px;
  }

  .overlay-committee-position {
    font-size: 8px;
  }

  .overlay-learn-more {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .trustees-image-grid {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 10px;
  }

  .trustees-grid-section {
    padding: 20px 0;
    margin-top: -20px;
  }


  .overlay-name {
    font-size: 14px;
  }

  .overlay-title {
    font-size: 12px;
  }

  .overlay-subregion {
    font-size: 11px;
  }

  .overlay-committee-item {
    font-size: 9px;
  }

  .overlay-committee-position {
    font-size: 7px;
    padding: 1px 4px;
  }

  .overlay-learn-more {
    font-size: 10px;
  }

  .overlay-learn-more svg {
    width: 10px;
    height: 10px;
  }
}

/* Archive Hero Section */
.archive-hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: var(--njtpa-dark-blue);
  color: var(--njtpa-white);
  margin-bottom: 0px;
}

.trustees-layout .content-area {
  margin-bottom: 0px;
}

.archive-hero-section .container {
  position: relative;
  z-index: 2;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--space-5xl) 20px;
}

.archive-hero-section .hero-content {
  max-width: 100%;
  padding: 0;
  text-align: left;
}

.archive-hero-section .hero-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin: 0 0 var(--space-2xl) 0;
}

.archive-hero-section .hero-description {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.9);
}

.archive-hero-section .hero-description p {
  margin: 0;
}

@media (max-width: 768px) {
  .archive-hero-section {
    min-height: 400px;
  }

  .archive-hero-section .container {
    padding: var(--space-4xl) 15px;
  }

  .archive-hero-section .hero-title {
    font-size: var(--font-size-3xl);
  }

  .archive-hero-section .hero-description {
    font-size: var(--font-size-base);
  }
}
