/* Custom responsive styles for Crack Playwright Java Interviews */

#banner {
  /* Desktop: keep the banner image sharp. Do not place a dark CSS gradient over it. */
  background-image: url("../../images/banner.png");
  width: 100%;
  height: auto;
  min-height: clamp(430px, 60vh, 620px);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: none;
}

#banner header {
  /* Desktop: remove the heavy overlay that made the banner look blurred/faded. */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#banner header p {
  color: #fff;
  font-size: 1.35em;
  line-height: 1.35;
  margin: 0 auto 1em;
  max-width: 900px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.85);
}


@media screen and (min-width: 737px) {
  #banner header .banner-summary {
    display: none;
  }
}

#banner header .button {
  margin: 0 0.35em 0.5em;
}

.cover-img { border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,0.35); max-width: 100%; }
.hero-grid { align-items: center; }
.price-box { border: 1px solid #ddd; border-radius: 8px; padding: 1.5em; background: #fff; height: 100%; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.price { font-size: 2.2em; font-weight: 700; color: #37c0fb; }
.old-price { text-decoration: line-through; color: #888; }
.badge { display:inline-block; padding:0.25em 0.65em; border-radius: 999px; background:#37c0fb; color:#fff; font-size:0.85em; font-weight:700; }
.question-card { border-top: 1px solid #ddd; padding-top: 1.5em; margin-top: 1.5em; }
.question-list { columns: 1; }
.question-list li { margin-bottom: 0.65em; }
.content-html pre { overflow-x:auto; background:#f7f7f7; border:1px solid #ddd; padding:1em; border-radius:6px; }
.content-html code { font-family: Consolas, Monaco, 'Courier New', monospace; font-size: 0.92em; }
.content-html table { width:100%; border-collapse: collapse; margin:1em 0; }
.content-html th, .content-html td { border:1px solid #ddd; padding:0.6em; vertical-align: top; }
.cta-panel { text-align:center; padding: 2em; border-radius: 8px; background: #f5f8fa; border: 1px solid #e2e6ea; }
.small-note { font-size:0.9em; color:#666; }
.payment-details { background:#f7fbff; border-left:4px solid #37c0fb; padding:1em 1.25em; border-radius:4px; }
.kpi h3 { font-size: 2em; color: #37c0fb; margin-bottom:0; }
.kpi p { margin-top:0.25em; }

@media screen and (min-width: 840px) {
  .question-list { columns: 2; }
}

/* Android / mobile banner fix */
@media screen and (max-width: 736px) {
  #banner {
    background-image: linear-gradient(rgba(5, 14, 30, 0.20), rgba(5, 14, 30, 0.82)), url("../../images/banner-mobile.png");
    background-size: 100% auto;
    background-position: center top;
    background-color: #07111f;
    min-height: calc(100vh - 56px);
    min-height: calc(100svh - 56px);
  }

  #banner header {
    box-sizing: border-box;
    padding: 1.35em 1.2em 1.6em;
    background: linear-gradient(180deg, rgba(7, 17, 35, 0.25), rgba(7, 17, 35, 0.96) 30%, rgba(7, 17, 35, 0.98));
  }

  #banner header p {
    font-size: clamp(1.1em, 5vw, 1.35em);
    line-height: 1.25;
    max-width: 18em;
    margin-bottom: 1.1em;
  }

  #banner header .button {
    display: block;
    width: 100%;
    max-width: 34em;
    margin: 0.75em auto 0;
    padding-left: 0;
    padding-right: 0;
  }
}

@media screen and (max-width: 480px) {
  #banner {
    min-height: calc(100vh - 52px);
    min-height: calc(100svh - 52px);
  }

  #banner header {
    padding: 1.15em 1em 1.4em;
  }

  #banner header p {
    font-size: clamp(1.05em, 5.7vw, 1.25em);
  }
}
