#MainContent,
body {
  background-color: #F2F4F7;
}

h1.page-title {
  font-family: baskerville-italic !important;
  margin-bottom: 1.25rem !important;
  letter-spacing: 0 !important;
  font-size: 42px !important;
}

.category-page p {
  font-size: 16px;
}

.category-page .rte {
  width: 60%;
}

@media (max-width: 768px) {
  .category-page .rte {
    width: 100%;
  }
}

.category-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
}

.category-blocks > a {
  display: block;
  border: 1px solid #D0D5DD;
}

.category-blocks > a:hover {
  box-shadow: 0px 0px 2px 1px rgb(0 0 0 / 10%);
  opacity: 0.8;
}

.category-blocks-img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.category-blocks-desc {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #fff;
}

.category-blocks-desc.add-border-top {
  border-top: 1px solid #D0D5DD;
}

.category-blocks-desc > div:first-child {
  border-right: 1px solid #D0D5DD;
  flex-grow: 1;
}

.category-blocks-desc h3 {
  font-size: 20px;
  letter-spacing: -0.5px;
  padding: 1.25rem;
  font-weight: bold;
}

.category-blocks-desc::after {
  content: "";
  display: block;
  width: 70px;
  height: 14px;
  background-repeat: no-repeat;
  background-position: center;
  text-align: center;
  margin: 0 auto;
}

.category-blocks-desc h3 {
  width: 100%;
}

@media (min-width: 960px) {
  .category-blocks {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
  }

  .category-blocks-img {
    height: 440px;
  }
}

@media (min-width: 1440px) {
  .category-blocks {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .category-blocks-img {
    height: 300px;
  }
}

/* The ipad end responds to the mobile end in vertical screen */

/* @custom-media --tablet (max-width: 959px); */

/* @custom-media --gt-mobile (min-width: 751px); */

/* detectingScreen need to consider the configuration of the tablet */