/* === Filters bar wrapper === */
#fd-filters {
  background: #F1F2EF;             /* match your page’s light gray */
  padding:       1rem 2rem;
  display:       flex;
  flex-wrap:     wrap;
  align-items:   center;
  gap:           1.5rem;
  margin-bottom: 2rem;
  display: grid;
  gap: 2.5rem;
  padding: 50px 0px;
}



/* === Text input (Search) === */
#fd-search {
  -webkit-appearance: none;
  -moz-appearance:    none;
  appearance:         none;
  border:             none;

  border-bottom:      2px solid #012032!important;
  
  background-size:    1rem;
  padding:            0.5rem 0rem 0.5rem 0rem;
  font-size:          1rem;
  color:              #012032;
}
#fd-search::placeholder
{
  color: #012032;
}
#fd-search:focus {
  outline: none;
  border-bottom-color: #012032;
}

/* === Select dropdowns === */
#fd-filters select {
  -webkit-appearance: none;
  -moz-appearance:    none;
  appearance:         none;
  border:             none;
  border-bottom:      2px solid #012032;
  background:         transparent url('data:image/svg+xml;utf8,\
    <svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" fill="none" stroke="%23012032" stroke-width="2" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5"/></svg>')
    no-repeat right 0.5rem center;
  background-size:    0.75rem;
  padding:            0.5rem 1.5rem 0.5rem 0;
  font-size:          1rem;
  color:              #012032;
  cursor:             pointer;

}

#fd-filters select:focus {
  outline: none;
  border-bottom-color: #012032;
}

/* Generic container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Row 1: Search */
.search-row .search-label {
  display: block;
  position: relative;
  width: 100%;
  text-align: right;
}

.search-input {
  width: 100%;
  padding-left: 2rem;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Row 2: Dropdowns */
.dropdown-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

/* Row 3: Checkboxes */
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 0.5rem;
}
/* Section wrapper with background image */
.meet-fellows {
  position: relative;
  width: 100%;
  height: 250px;
  display: flex;
  background: url('https://jewishwritersinstitute.org/wp-content/uploads/2025/08/iStock-1194783078-scaled.jpg') center center / cover no-repeat;
  color: #fff;
  align-items: center;
  justify-content: left;
}

.meet-fellows::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* dark overlay for contrast */
  pointer-events: none;
}

/* Heading */
.meet-fellows .section-title {
  position: relative;
  margin: 0;
  color: #fff;
  font-weight: 500;
  font-size: 37px;
  line-height: 26px;
  letter-spacing: 1.85px;
  text-align: justify;
  text-transform: uppercase;
  text-align: center;
}
select#fd-per-page {
  border-bottom: 0;
}
.fd-card  .filter_lab img {
  width: 30px;
  vertical-align: middle;
  margin-right: 10px;
}
/*.filter_card_img */
/*{*/
/*  height: 250px;*/
/*  object-fit: cover;*/
/*}*/
.filter_card_img {
    height: 280px;
    object-fit: cover;
    width: 280px;
    object-position: top;
    max-width:auto;
}
.fd-card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
}
.filter_lab {
    margin-top: 15px;
}
.filter_read_more
{
  display: block;
  text-align: right;

}
.filter_read_more svg
{
  width: 32px;
  height: 32px;
}
h3.filter_card_name a {
  font-family: Cormorant Garamond;
  font-weight: 400;
  font-style: SemiBold;
  font-size: 60px;
  line-height: 60px;
  letter-spacing: -1.5px;
  color: #0112FF;
  padding-right: 35px;
  hyphens: auto;
}
h4.filter_card_project_title {
  font-size: 18px;
}
div#fd-list {
  padding-bottom: 50px;
}

@media(max-width:576px)
{
  .meet-fellows .section-title {
    font-family: Space Grotesk;
    font-weight: 500;
    font-size: 24px;
    line-height: 26px;
    letter-spacing: 1.85px;
    text-transform: uppercase;
    text-align: center;
}
h3.filter_card_name a
{
  font-size: 42px;
}
.filter_lab {
  text-align: center;
}
.fd-card  .filter_lab img {
  width: 20px;
  text-align: center;
}
h4.filter_card_project_title {
  font-size: 16px;
  margin-bottom: 4px;
}
h3.filter_card_name {
  margin: 0;
}
.filter_read_more svg
{
  width: 25px;
  height: 25px;
}.filter_card_img {
  height: auto;
  object-fit: cover;
  width: 100%;
}
}

/* Put the per-page UI on the right side of the checkbox row */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fd-right-controls {
  margin-left: auto;            /* pushes it to the right */
  display: flex;
  align-items: center;
  gap: .75rem;
}

.fd-perpage select {
  border: 1px solid rgba(255,255,255,.4);
  background: transparent;
  padding: .35rem .6rem;
  border-radius: 4px;
  color: #fff;                  /* adjust to your theme */
}

.fd-perpage span,
.fd-range {
  font-size: 16px;
}
/* Capitalize text inside select dropdowns */
.fd-filters select,
.fd-filters option {
  text-transform: capitalize;
}
