.browse-area {
  color: var(--Brand-Purple-60);
  padding-top: 40px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.hero-category h2,
.hero-library h2 {
  font-family: var(--literata-font);
  font-size: 34px;
  font-style: normal;
  font-weight: 700;
  line-height: 50px;
}

.hero-category {
  margin: 0 auto;
  margin-bottom: 40px;
}
.hero-chumash {
  max-width: 400px;
}

.hero-chumash h2 {
  line-height: 56px;
}

.category-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  margin: 0 auto;
  padding-bottom: 16px;
  width: 330px;
}

.category-blocks {
  gap: 80px;
}
.library-searchbar {
  align-items: center;
  justify-content: space-between;
  width: 329px;
  margin: 0 auto;
  margin-top: 48px;
  margin-bottom: 48px;
}

.search-bar input {
    background: transparent;
    border: none;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 128.571%;
    letter-spacing: 0.16px;
    color: #161616;
    flex: 1;
}

.search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 26px;
    background: #f2f4f8;
    padding: 8px;
    padding-left: 24px;
}

.category-toggle {
  background: #f2f4f8;
  border-radius: 12px;
  padding: 4px;
  position: relative;
  margin: 4px auto;
}

.category-toggle-wrapper {
  display: flex;
  justify-content: center;
  padding-bottom: 32px;
}

.category-toggle-btn + .category-toggle-btn {
  margin-left: 2px;
}

.category-toggle-btn {
  width: 158px;
  border: none;
  color: #a8a8a8;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.16px;
  position: relative;
  z-index: 1;
  background-color: transparent;
  transition:
    color 0.3s,
    font-weight 0.3s;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  height: 100%;
}

.category-toggle-btn.is-active {
  color: var(--text-primary);
  font-weight: 500;
  background-color: var(--selection-color);
}

.category-toggle-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: 8px;
  background-color: var(--selection-color);
  transition: all 0.27s cubic-bezier(0.51, -0.1, 0.56, 1.07);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 0;
  width: 0;
  pointer-events: none;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  width: 330px;
  margin: 0 auto;
}


.category-card {
  height: 79px;
  width: 330px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  border-radius: 4px;
  background: var(--Brand-Blue-40);
}

.category-card:hover {
  border-radius: 4px;
  background: var(--Brand-Blue-40);
  box-shadow: 0px 0px 20px 0px rgba(82, 82, 82, 0.15);
}
.category-card h6 {
  max-width: 200px;
  margin: 0 auto;
  line-height: 24px;
}

#searchBtnLibrary:hover svg path {
  fill: var(--Brand-Purple-60);
}
.category-toggle-btn.no-transition {
  transition: none !important;
}

.category-toggle-btn .btn-text {
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 801px) {
  .category-toggle-btn .btn-text {
    white-space: normal;
    display: block;
  }

  .category-toggle-btn .second-word {
    display: block;
  }
}



@media screen and (min-width: 801px) {
  .hero-chumash {
    max-width: 600px;
  }

  .browse-area {
    padding-bottom: 120px;
  }

  .hero-category h2,
  .hero-library h2 {
    font-size: 48px;
  }

  .hero-category {
    margin-bottom: 80px;
  }

  .toggle-correspondence {
    margin-top: -24px;
  }

  .library-searchbar {
    width: 720px;
    margin-top: 56px;
    margin-bottom: 56px;
  }

  .category-toggle-indicator {
    border-radius: 8px;
  }
  .category-toggle-btn {
    width: 208px;
  }

  .category-toggle-wrapper {
    padding-bottom: 40px;
  }
  .category-grid,
  .category-title {
    width: 520px;
    gap: 40px;
  }
  .category-card {
    width: 240px;
  }
}

@media screen and (min-width: 1025px) {
  .library-searchbar,
  .category-grid,
  .category-title {
    width: 800px;
  }
}
