/* ZolaHost: blocks used inside WordPress page content (the .post-detail column of page.php and page-full-width.php).
   Pages in the repo: wordpress/pages/*.html. Linked from header.php after blue.css. */

/* Plan cards: the theme's .pricing-item (as on /vps/); columns come from the page's col-* classes. */
.post-detail .zh-plans {
  margin-top: 30px;
  margin-bottom: 10px;
}
.post-detail .zh-plans .pricing-item {
  height: calc(100% - 30px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 48px 0 rgba(0, 0, 0, 0.08);
}
.post-detail .zh-plans .pricing-body {
  flex: 1;
}
.post-detail .zh-plans .pricing-item .list {
  padding: 0;
  margin: 0 0 10px;
}
.post-detail .zh-plans .pricing-item .list li {
  list-style: none;
  line-height: 24px;
}
.post-detail .zh-plans .pricing-item .pricing-footer a,
.post-detail .zh-plans .pricing-item .pricing-footer a:hover {
  color: #fff;
  text-decoration: none;
}

/* Feature grid: icon, heading, text. */
.post-detail .zh-features {
  margin-top: 20px;
}
.post-detail .zh-feature {
  margin-bottom: 28px;
  overflow: hidden;
}
.post-detail .zh-feature img {
  float: left;
  width: 56px !important;
  height: 56px;
  object-fit: contain;
  margin: 4px 16px 8px 0;
}
.post-detail .zh-feature h4 {
  font-size: 17px;
  font-weight: 600;
  color: #3B566E;
  margin: 0 0 6px;
  line-height: 1.4;
}
.post-detail .zh-feature p {
  font-size: 14px;
  line-height: 24px;
  margin: 0;
  overflow: hidden;
}

/* Spec table (dedicated servers): scrolls sideways on narrow screens instead of overflowing. */
.post-detail .zh-table {
  margin: 20px 0 30px;
}
.post-detail .zh-table table {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  min-width: 600px;
}
.post-detail .zh-table th,
.post-detail .zh-table td {
  vertical-align: middle;
  padding: 8px 6px;
}
.post-detail .zh-table tbody th small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #6F8BA4;
}
.post-detail .zh-table thead th {
  background: #F6F4FD;
  color: #3B566E;
  white-space: nowrap;
}
.post-detail .zh-table tbody th {
  white-space: nowrap;
  color: #635CDB;
}
.post-detail .zh-note {
  font-weight: 600;
  color: #635CDB;
}

/* Small button in the theme's colours. */
.zh-btn,
.zh-btn:hover {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px 0 100px 100px;
  background-image: linear-gradient(135deg, #6A30D1 0%, #5C83E3 100%);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.zh-btn:hover {
  background-image: linear-gradient(-135deg, #6A30D1 0%, #5C83E3 100%);
}

/* Intro: text and an illustration (assets/images/zh/*.svg) side by side; the picture goes under the text on
   phones. */
.post-detail .zh-intro {
  align-items: center;
  margin-bottom: 20px;
}
.post-detail .zh-intro h2,
.post-detail .zh-h2 {
  font-size: 28px;
  font-weight: 600;
  color: #3B566E;
  line-height: 1.3;
  margin: 0 0 16px;
}
.post-detail .zh-h2 {
  margin-top: 40px;
  text-align: center;
}
.post-detail .zh-sub {
  text-align: center;
  color: #6F8BA4;
  margin: 0 auto 10px;
  max-width: 640px;
}
.post-detail .zh-intro p {
  font-size: 16px;
  line-height: 28px;
}
.post-detail .zh-intro img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
}
.post-detail .zh-checks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.post-detail .zh-checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  line-height: 24px;
}
.post-detail .zh-checks li:before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 11px;
  color: #635CDB;
  background: #F6F4FD;
  border-radius: 7px 0 7px 7px;
}
@media (max-width: 991px) {
  .post-detail .zh-intro img {
    max-width: 360px;
    margin-top: 24px;
  }
}

/* Feature cards: the theme's .features-small-item (as on /vps/) inside page content. */
.post-detail .zh-cards {
  margin-top: 20px;
}
.post-detail .zh-cards > div {
  margin-bottom: 30px;
}
.post-detail .zh-cards .features-small-item {
  height: 100%;
}
.post-detail .zh-cards .features-small-item p {
  font-size: 14px;
  line-height: 24px;
  margin: 0;
  position: relative;
}
.post-detail .zh-cards .features-title {
  position: relative;
  font-weight: 600;
}
.post-detail .zh-cards .features-small-item:hover a {
  color: #fff;
  text-decoration: underline;
}

/* Home hero (index.php): the white curve (header-bg.svg, 1920 x 1020) was drawn for the first photo's proportions.
   The photo was replaced with a taller one (slider.jpg, 1402 x 1122), which showed below the curve as a flat purple
   band and, past 1575 px, stopped short of the left. Crop the photo to the curve's proportions (89% of the width x
   1020/1920 of it) and let both scale with the window. Phones and tablets (under 992 px) keep the theme's own layout. */
@media (min-width: 992px) {
  .welcome-area .right-bg img {
    width: 100%;
    height: auto;
    aspect-ratio: 1709 / 1020;
    object-fit: cover;
    object-position: 50% 61%;
  }
  .welcome-area .header-bg {
    width: 100%;
    min-height: 0;
  }
  .welcome-area .header-bg img {
    width: 100%;
    max-width: none;
  }
}

/* Numbered steps inside FAQ answers (the theme turns list markers off). */
.accordion-body ol {
  list-style: decimal;
  padding-left: 22px;
  margin: 0 0 12px;
}
.accordion-body ol li {
  list-style: decimal;
  margin-bottom: 6px;
}

/* 404 page buttons: a larger .zh-btn, and an outlined one. */
.zh-btn.zh-btn-lg {
  padding: 12px 26px;
  font-size: 13px;
  margin: 6px 10px 6px 0;
}
.zh-btn.zh-btn-line,
.zh-btn.zh-btn-line:hover {
  background: #fff;
  color: #635CDB !important;
  box-shadow: inset 0 0 0 1px #635CDB;
}
.post-detail .zh-404-buttons {
  margin-top: 24px;
}
.post-detail .zh-cards a.features-small-item,
.post-detail .zh-cards a.features-small-item:hover {
  text-decoration: none;
}

/* Contact page: white boxes (email list, office) in the theme's card style. */
.post-detail .zh-boxes {
  margin-top: 10px;
}
.post-detail .zh-boxes > div {
  margin-bottom: 30px;
}
.post-detail .zh-box {
  height: 100%;
  background: #fff;
  box-shadow: 0 2px 48px 0 rgba(0, 0, 0, 0.06);
  border-radius: 40px 0 40px 40px;
  padding: 30px;
}
.post-detail .zh-box h3 {
  font-size: 18px;
  font-weight: 600;
  color: #3B566E;
  margin: 0 0 18px;
}
.post-detail .zh-box h3 .fa {
  color: #635CDB;
  margin-right: 8px;
}
.post-detail .zh-box p {
  margin: 0 0 12px;
}
.post-detail .zh-mail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-detail .zh-mail-list li {
  list-style: none;
  display: grid;
  grid-template-columns: 90px 1fr;
  column-gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #EEEAFC;
}
.post-detail .zh-mail-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.post-detail .zh-mail-team {
  grid-row: span 2;
  font-weight: 600;
  color: #635CDB;
}
.post-detail .zh-mail-list small {
  color: #6F8BA4;
  font-size: 13px;
}
.post-detail .zh-policy-links {
  margin-top: 10px;
}
@media (max-width: 575px) {
  .post-detail .zh-mail-list li {
    grid-template-columns: 1fr;
  }
  .post-detail .zh-mail-team {
    grid-row: auto;
  }
}

/* A card whose title link covers the whole card (WordPress wraps an <a> around block content in <p>, so cards in
   page content link through their title instead). */
.post-detail .features-small-item .zh-stretch {
  color: inherit;
  text-decoration: none;
  float: none;
  display: inline;
  position: static;
}
.post-detail .features-small-item .zh-stretch:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
}
.post-detail .zh-cards .features-small-item:hover .zh-stretch {
  color: #fff;
  text-decoration: none;
}

/* Link cards: the card is its own stacking context and the hover gradient sits behind the content, so the title
   can stay unpositioned and its link's :after can cover the whole card. */
.post-detail .zh-link-card {
  z-index: 0;
  cursor: pointer;
}
.post-detail .zh-link-card:before {
  z-index: -1;
}
.post-detail .zh-cards .zh-link-card .features-title {
  position: static;
}
