/* committees.css – modern, screenshot-inspired styles */

.committees-page {
  padding: 3rem 0;  /* reduced from 5rem on mobile via media query */
  background-color: var(--white, #ffffff);
  font-family: 'Barlow', sans-serif;
}

/* Header styles – left-aligned */
.committees-header {
  margin-bottom: 2.5rem; /* reduced from 3rem on mobile */
}

.committees-small-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--raspberry, #d41367);
  margin-bottom: 0.75rem;
}

.committees-large-tagline {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary-deep, #17458f);
  max-width: 900px;
  line-height: 1.2;
}

/* Controls bar – clean and minimal */
.committees-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  background: var(--soft-bg, #f6f8fa);
  padding: 1.2rem 2rem;
  border-radius: 60px;
  margin-bottom: 3rem;
  border: 1px solid var(--border-light, #e9ecf0);
}

.search-wrapper {
  flex: 2;
  min-width: 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--blue-bright, #0067c8);
  font-size: 1.2rem;
}

.search-input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-deep);
  box-shadow: 0 0 0 3px rgba(23,69,143,0.1);
}

.reset-btn {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.reset-btn:hover {
  color: var(--raspberry);
}

.sort-wrapper {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sort-wrapper label {
  font-weight: 500;
  color: var(--primary-deep);
  white-space: nowrap;
}

.form-select {
  padding: 0.6rem 2rem 0.6rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  background-color: white;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-reset-default {
  background: none;
  border: 1px solid var(--border-light);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  color: var(--primary-deep);
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-reset-default:hover {
  background: var(--primary-deep);
  color: white;
  border-color: var(--primary-deep);
}

/* Committees list – each item as a numbered row with circle arrow */
.committees-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.committee-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--black);
  transition: all 0.3s ease;
}

.committee-item:hover {
  padding-left: 1rem;
  background-color: transparent;
  border-bottom-color: var(--raspberry);
}

.committee-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--raspberry);
  min-width: 70px;
  letter-spacing: -0.02em;
  opacity: 0.8;
}

.committee-name {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-deep);
  margin-right: 1rem;
}

/* Arrow inside a circle */
.committee-arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-blue, #b9d9eb);
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-left: 1rem;
  flex-shrink: 0; /* prevent shrinking on small screens */
}

.committee-arrow {
  color: var(--primary-deep);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.committee-item:hover .committee-arrow-circle {
  background-color: var(--raspberry);
}

.committee-item:hover .committee-arrow {
  transform: rotate(45deg);
  color: white;
}

/* No results message */
.no-results {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 80px;
  border: 1px dashed var(--border-light);
  color: var(--black);
  opacity: 0.7;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  .committees-page {
    padding: 2rem 0;
  }

  .committees-header {
    margin-bottom: 2rem;
  }

  .committees-large-tagline {
    font-size: 2rem;
  }

  .committees-controls {
    flex-direction: column;
    align-items: stretch;
    border-radius: 30px;
    padding: 1.2rem;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .search-wrapper {
    min-width: 100%;
  }

  .sort-wrapper {
    justify-content: space-between;
    width: 100%;
  }

  .sort-wrapper label {
    font-size: 0.9rem;
  }

  .form-select {
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem 0.5rem 0.8rem;
  }

  .btn-reset-default {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .committee-item {
    padding: 0.8rem 0;
  }

  .committee-number {
    font-size: 1.2rem;
    min-width: 50px;
  }

  .committee-name {
    font-size: 1rem;
    margin-right: 0.5rem;
  }

  .committee-arrow-circle {
    width: 35px;
    height: 35px;
    margin-left: 0.5rem;
  }

  .committee-arrow {
    font-size: 1rem;
  }

  .no-results {
    padding: 2rem;
    border-radius: 40px;
  }
}

@media (max-width: 576px) {
  .committees-page {
    padding: 1.5rem 0;
  }

  .committees-header {
    margin-bottom: 1.5rem;
  }

  .committees-large-tagline {
    font-size: 1.5rem;
  }

  .committees-controls {
    padding: 1rem;
  }

  .search-input {
    padding: 0.7rem 1rem 0.7rem 2.8rem;
    font-size: 0.9rem;
  }

  .search-icon {
    font-size: 1rem;
    left: 0.8rem;
  }

  .reset-btn {
    font-size: 1rem;
  }

  .committee-number {
    font-size: 1rem;
    min-width: 45px;
  }

  .committee-name {
    font-size: 0.9rem;
  }

  .committee-arrow-circle {
    width: 30px;
    height: 30px;
  }

  .committee-arrow {
    font-size: 0.9rem;
  }

  .no-results {
    padding: 1.5rem;
    font-size: 0.9rem;
  }
}

/* Extra small devices (max-width: 375px) */
@media (max-width: 375px) {
  .committee-number {
    min-width: 40px;
    font-size: 0.9rem;
  }

  .committee-name {
    font-size: 0.85rem;
  }

  .committee-arrow-circle {
    width: 28px;
    height: 28px;
  }
}
