/* The Mushaf Masr card (template-parts/mushaf-card.php): front page, and poster pages when ticked. */

.qhd-mushaf-card {
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  min-height:26rem;
  border-radius:1rem;
  color:#fff;
  background:var(--slate-900) url('../../img/hero-mushaf.jpg') left center/cover no-repeat;
  box-shadow:var(--shadow-lg);
}
.qhd-mushaf-card::before {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(to left,var(--slate-900) 0%,rgba(15,23,42,.94) 38%,rgba(15,23,42,.5) 66%,rgba(15,23,42,.05) 100%);
}
.qhd-mushaf-card::after {
  content:'';
  position:absolute;
  inset-inline:0;
  top:0;
  height:3px;
  background:linear-gradient(to left,var(--amber-600),var(--amber-400),var(--amber-600));
}
.qhd-mushaf-body {
  position:relative;
  z-index:1;
  max-width:34rem;
  padding:3rem 1.75rem;
}

@media(min-width:900px) {
  .qhd-mushaf-body {
    padding:3.25rem 3.5rem;
  }
}

.qhd-mushaf-body .qhd-mushaf-logo {
  height:5.5rem;
  width:auto;
  margin-bottom:1rem;
  filter:invert(100%) brightness(1.1);
}
.qhd-mushaf-body p {
  color:rgba(255,255,255,.82);
  line-height:1.95;
  margin:0 0 1.75rem;
  font-size:1.05rem;
}

/* The picture under the text: phones only (below). */
.qhd-mushaf-preview {
  display:none;
}

/* Phones and small tablets: a shade strong enough for the text would hide the mushaf page, so the card is plain
   dark and the page becomes a picture of its own between the text and the button. */
@media(max-width:700px) {
  .qhd-mushaf-card,
  [dir] .qhd-mushaf-card {
    min-height:0;
    background-image:none;
  }
  .qhd-mushaf-card::before,
  [dir] .qhd-mushaf-card::before {
    display:none;
  }
  .qhd-mushaf-body {
    max-width:none;
    padding:2rem 1.25rem 1.5rem;
  }
  .qhd-mushaf-body .qhd-mushaf-logo {
    height:4.25rem;
  }
  .qhd-mushaf-body p {
    margin-bottom:1.1rem;
    font-size:1rem;
  }
  .qhd-mushaf-preview {
    display:block;
    margin:0 0 1.25rem;
    overflow:hidden;
    border-radius:.75rem;
    box-shadow:0 0 0 1px rgba(255,255,255,.12),0 14px 28px -16px rgba(0,0,0,.8);
  }
  .qhd-mushaf-preview img {
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:16/10;
    object-fit:cover;
    object-position:left center;
  }
  .qhd-mushaf-body .qhd-btn {
    width:100%;
    justify-content:center;
  }
}
@media (max-width:45rem) {
  .qhd-mushaf-sec .qhd-wrap {
    padding-inline:.75rem;
  }
}

/* On a poster page it closes the page, with room before the footer. */
.qhd-mushaf-post {
  padding-block:1.5rem 3rem;
}
