/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

.cvdocs__container {
  width: min(68.75rem, 85vw);
  margin-block: 3rem;
  margin-inline: auto;
}

.cvdocs__categories {
  display: grid;
  grid-auto-rows: 1fr;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 2.5rem;
}

.cvdocs__category {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 20px;
  background: #fbfbfb;
  border: 1px solid #c6c6c6;
  color: #000;
  font-size: 1em;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  transition-property: transform;
  transition-duration: 600ms;
  transition-timing-function: ease-out;
}

.cvdocs__category:hover,
.cvdocs__category:focus,
.cvdocs__category:active {
  color: #000;
  transform: translateY(-2px);
}

.cvdocs__count {
  display: block;
  color: #808285;
  font-size: 0.9em;
  font-weight: 300;
}

/* * Search * */

.cvdocs__search-wrapper {
  padding-block: 1.5rem;
  background: #f5f5f5;
}

.cvdocs .search-form {
  width: min(68.75rem, 85vw);
  margin-inline: auto;
}

.cvdocs .search-form input[type='search'] {
  display: block;
  width: 100%;
  padding: 20px 25px;
  color: #595959;
  font-size: 1.125rem;
  font-weight: 300;
  background: #fff;
  border: 1px solid #d1d1d1;
  border-radius: 7px;
}

/* * Layout * */
.cvdocs__layout {
  display: grid;
  row-gap: 5rem;
  width: min(68.75rem, 85vw);
  margin-inline: auto;
}

.cvdocs__category-subtitle {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

.cvdocs__sidebar-categories {
  color: var(--global-palette6);
}

.cvdocs__sidebar-categories a {
  color: inherit;
  text-decoration: none;
}

.cvdocs__sidebar-categories a:hover {
  text-decoration: underline;
}

.cvdocs__category-title {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 3rem;
  font-size: clamp(2rem, 1.455rem + 2.73vw, 3.5rem);
  line-height: 1.2;
  border-bottom: 1px solid #e6e6e6;
}

.cvdocs__article-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-block: 1.25rem;
  font-size: 1.125rem;
  font-weight: 400;
  text-decoration: none;
  color: #3a3a3a;
}

.cvdocs__article-link svg {
  margin-top: -2px;
  flex-shrink: 0;
}

.cvdocs__article-link:hover,
.cvdocs__article-link:focus,
.cvdocs__article-link:active {
  text-decoration: underline;
}

.cvdocs__title {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  font-size: 2rem;
  line-height: 1.2;
  border-bottom: 1px solid #e6e6e6;
}

@media (width >= 48rem) {
  .cvdocs__layout {
    grid-template-columns: 7fr 3fr;
  }

  .cvdocs__single,
  .cvdocs__category-posts {
    margin-right: 2rem;
    margin-bottom: 5rem;
  }

  .cvdocs__sidebar {
    align-self: start;
    padding: 2rem 0 2rem 2rem;
    border-left: 1px solid #e6e6e6;
  }
}

/* * Search * */

.search-results__layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.search-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 4px 4px 8px hsl(0 0% 0% / 20%);
  border: 1px solid #eee;
}

.search-card__title {
  font-size: 1.25rem;
  line-height: 1.2;
  text-wrap-style: balance;
}

.search-card__title-link:hover {
  color: inherit;
  text-decoration: underline;
}

.search-card__term {
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  opacity: 60%;
}

.search-card__term-link {
  text-decoration: none;
}

.search-card__footer {
  margin-top: auto;
  padding-top: 1.5rem;
}

.search-card__button {
  display: inline-block;
  padding: 0.4em 1em;

  color: #fff;
  font-family: Inter, sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 1.125rem;
  line-height: 1.6;
  text-decoration: none;

  border: none;
  border-radius: 3px;
  background: var(--global-palette-btn-bg);
}

.search-card__button:hover,
.search-card__button:active,
.search-card__button:focus {
  color: #fff;
}

.cvdocs .nav-links {
  display: flex;
  padding-top: 50px;
}

.cvdocs .search-form .search-submit[type="submit"]:hover ~ .kadence-search-icon-wrap {
  color: var(--global-palette6);
}

.cvdocs__search-wrapper input[type='search']::-webkit-search-results-button,
.cvdocs__search-wrapper input[type='search']::-webkit-search-cancel-button {
  display: none;
}
