:root {
  --news-staff-color-text: rgb(105, 121, 127);
  --news-staff-color-text-light: rgb(105, 121, 127);
  --news-staff-color-accent: #109bd2;
  --news-staff-color-accent-secondary: #86b830;
  --news-staff-color-card-bg: #eaf1f1;
  --news-staff-color-overlay: rgba(16, 155, 210, 0.03);
  --news-staff-font-display: "Cormorant Garamond", serif;
  --news-staff-font-body: "Work Sans", sans-serif;
  --news-staff-color-name: #2a2a2a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Staff Section Wrapper */
.staff-section {
  position: relative;
}

/* Staff Category Filters */
.staff-filters {
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  z-index: 10;
  padding: 0 20px;
  margin-top: 20px;
}

.staff-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.staff-filter-btn {
  display: inline-block;
  font-family: var(--news-staff-font-body);
  font-size: 16px;
  font-weight: 700;
  padding: 10px 20px;
  border: none;
  background-color: var(--news-staff-color-accent-secondary);
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
  min-width: fit-content;
  line-height: 1.3rem;
}

.staff-filter-btn:hover {
  background-color: #6f9a26;
  color: white;
}

.staff-filter-btn.active {
  background-color: var(--news-staff-color-accent);
  color: white;
}

.team-grid {
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background decorative elements */
.team-grid::before {
  content: "";
  position: fixed;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(
    circle,
    var(--news-staff-color-overlay) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  animation: floatPattern 60s linear infinite;
}

@keyframes floatPattern {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-50px, 50px) rotate(10deg);
  }
}
/*
header {
  text-align: center;
  margin-bottom: 100px;
  animation: fadeInDown 0.8s ease-out;
}

h1 {
  font-family: var(--news-staff-font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--news-staff-color-text);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--news-staff-color-text-light);
  font-weight: 300;
  letter-spacing: 0.5px;
}
*/

.team-grid {
  display: grid;
  font-family: var(--news-staff-font-body);
  color: var(--news-staff-color-text);
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 60px;
  margin-bottom: 60px;
}

.team-member {
  background: var(--news-staff-color-card-bg);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  animation: fadeInUp 0.6s ease-out backwards;
}

.team-member:nth-child(1) {
  animation-delay: 0.1s;
}
.team-member:nth-child(2) {
  animation-delay: 0.2s;
}
.team-member:nth-child(3) {
  animation-delay: 0.3s;
}
.team-member:nth-child(4) {
  animation-delay: 0.4s;
}
.team-member:nth-child(5) {
  animation-delay: 0.5s;
}
.team-member:nth-child(6) {
  animation-delay: 0.6s;
}

.team-member::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--news-staff-color-accent),
    transparent
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member:hover::before {
  transform: scaleX(1);
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.image-container {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, white 0%, #eaf1f1 100%);
  position: relative;
}

.image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 60%,
    rgba(255, 255, 255, 0.8) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-member:hover .image-container::after {
  opacity: 1;
}

.team-member .image-container .profile-image,
.team-member .image-container img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: sepia(25%) hue-rotate(-5deg) saturate(85%) brightness(1.05)
    contrast(1.03);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.team-member:hover .profile-image,
.team-member:hover img {
  filter: none;
  transform: translate(-50%, -50%) scale(1.05);
}

.team-member .content {
  padding: 40px 32px;
  text-align: center;
}

.team-member .motto {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--news-staff-color-text);
  margin-bottom: 20px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-weight: 400;
}

.team-member .description {
  font-size: 0.95rem;
  color: var(--news-staff-color-text-light);
  line-height: 1.7;
  margin-bottom: 24px;
  min-height: 100px;
}

.team-member .read-more {
  display: inline-block;
  color: var(--news-staff-color-accent-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.team-member .read-more::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--news-staff-color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member .read-more:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.team-member .read-more:hover {
  color: #0881b3;
}

/* Filter Animation States */
.team-member.hidden-filter {
  display: none;
}

.team-member.show-filter {
  display: block;
  animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-member .name {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--news-staff-color-accent);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  line-height: 2rem;
}

.team-member .role {
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-weight: 400;
  line-height: 2.3rem;
}

.team-member .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--news-staff-color-overlay);
  color: var(--news-staff-color-text-light);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member .social-link:hover {
  background: var(--news-staff-color-accent-secondary);
  color: white;
  transform: translateY(-3px);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .staff-filters {
    margin-bottom: 35px;
    padding: 0 15px;
  }

  .staff-filter-buttons {
    gap: 10px;
  }

  .staff-filter-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .staff-filters {
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .staff-filter-buttons {
    gap: 8px;
  }

  .staff-filter-btn {
    font-size: 12px;
    padding: 7px 14px;
    flex: 0 1 auto;
  }

  .staff-filter-btn:hover {
    transform: none;
  }
}

/* Staff Description Modal Styles - Fixed */
.staff-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.staff-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.staff-modal-content {
  background: white;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(16, 155, 210, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  /* Use theme fonts */
  font-family: var(--news-staff-font-body);
}

.staff-modal-overlay.is-visible .staff-modal-content {
  transform: translateY(0);
}

.staff-modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid #d4e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}

.staff-modal-title {
  font-family: var(--news-staff-font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--news-staff-color-text);
  margin: 0;
  line-height: 1.3;
}

.staff-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(105, 121, 127);
  transition: color 0.2s;
  padding: 0;
}

.staff-modal-close:hover {
  color: var(--news-staff-color-accent);
}

.staff-modal-body {
  padding: 30px;
  overflow-y: auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--news-staff-color-text-light);
}

.staff-modal-body p {
  margin-bottom: 15px;
}

.staff-modal-body p:last-child {
  margin-bottom: 0;
}

