/* v15: homepage Beyond the Books only. No global styles. */
body .dnj-homepage .dnj-explore-section {
  box-sizing:border-box; width:min(1180px, calc(100% - 36px)) !important;
  max-width:1180px !important; margin:36px auto 72px !important;
  padding:42px 0 12px !important; background:transparent;
}
body .dnj-homepage .dnj-explore-section .dnj-explore-eyebrow {
  margin:0 auto 12px !important; color:#3de2fa !important;
  font-size:12px !important; font-weight:800; letter-spacing:.2em; text-transform:uppercase;
}
body .dnj-homepage .dnj-explore-section .dnj-explore-title {
  max-width:850px; margin:0 auto 16px !important; color:#fff !important;
  font-size:clamp(26px,3vw,38px) !important; line-height:1.2 !important;
}
body .dnj-homepage .dnj-explore-section .dnj-explore-intro {
  max-width:790px; margin:0 auto 32px !important; color:#bac9e6 !important;
  font-size:16px; line-height:1.7;
}
body .dnj-homepage .dnj-explore-section .dnj-explore-grid {
  display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  align-items:stretch !important; gap:20px !important; width:100%;
  margin:0 !important; padding:0 !important;
}
body .dnj-homepage .dnj-explore-grid > .wp-block-column {
  min-width:0 !important; width:auto !important; flex-basis:auto !important;
  margin:0 !important; padding:0 !important; display:flex !important;
}
body .dnj-homepage .dnj-explore-grid .dnj-explore-card {
  box-sizing:border-box; display:flex !important; flex-direction:column !important;
  width:100% !important; min-height:255px; margin:0 !important;
  padding:28px 25px !important; border:1px solid rgba(120,150,215,.28) !important;
  border-radius:16px !important;
  background:linear-gradient(145deg,#19233e 0%,#10182c 100%) !important;
  box-shadow:0 14px 32px rgba(0,0,0,.18);
  transition:transform .2s ease,border-color .2s ease;
}
body .dnj-homepage .dnj-explore-card .dnj-explore-card-number {
  color:#45dffa !important; font-size:12px !important; font-weight:800;
  letter-spacing:.11em; margin:0 0 19px !important;
}
body .dnj-homepage .dnj-explore-card h3 {
  color:#fff !important; font-size:21px !important; line-height:1.3 !important;
  margin:0 0 14px !important;
}
body .dnj-homepage .dnj-explore-card p:not(.dnj-explore-card-number):not(.dnj-explore-card-link) {
  color:#c6d3eb !important; line-height:1.65 !important; margin:0 0 20px !important;
}
body .dnj-homepage .dnj-explore-card .dnj-explore-card-link {
  margin:auto 0 0 !important; padding-top:18px;
}
body .dnj-homepage .dnj-explore-card .dnj-explore-card-link a {
  color:#61e8ff !important; font-weight:700; text-decoration:none;
}
body .dnj-homepage .dnj-explore-card .dnj-explore-card-link a:hover {text-decoration:underline; color:#c4a5ff !important;}
@media(hover:hover) {
  body .dnj-homepage .dnj-explore-grid .dnj-explore-card:hover {
    transform:translateY(-4px); border-color:rgba(69,223,250,.7) !important;
  }
}
@media(max-width:850px) {
  body .dnj-homepage .dnj-explore-section {padding-top:28px !important; margin:24px auto 48px !important;}
  body .dnj-homepage .dnj-explore-section .dnj-explore-grid {grid-template-columns:1fr !important; gap:16px !important;}
  body .dnj-homepage .dnj-explore-grid .dnj-explore-card {min-height:0; padding:25px 23px !important;}
}
@media(prefers-reduced-motion:reduce) {
  body .dnj-homepage .dnj-explore-grid .dnj-explore-card {transition:none;}
}

/* v33: center only the three homepage Beyond the Books resource cards. */
body .dnj-homepage .dnj-explore-section .dnj-explore-grid .dnj-explore-card {
  align-items:center !important; text-align:center !important;
}
body .dnj-homepage .dnj-explore-section .dnj-explore-card > * {
  max-width:100%; text-align:center !important;
}
body .dnj-homepage .dnj-explore-section .dnj-explore-card .dnj-explore-card-link {
  margin:auto auto 0 !important; width:100%; text-align:center !important;
}
body .dnj-homepage .dnj-explore-section .dnj-explore-card .wp-block-buttons {
  justify-content:center !important; width:100%;
}

/* v34: Gutenberg resource cards with eyebrow, H3, paragraph and button.
   Center the actual Gutenberg paragraph nodes, not only custom card classes. */
body .wp-site-blocks .wp-block-columns > .wp-block-column > .wp-block-group:has(> p.dnj-eyebrow):has(> h3.wp-block-heading):has(> .wp-block-buttons) {
  text-align: center !important;
}
body .wp-site-blocks .wp-block-columns > .wp-block-column > .wp-block-group:has(> p.dnj-eyebrow):has(> h3.wp-block-heading):has(> .wp-block-buttons) > :is(p.wp-block-paragraph, p.dnj-eyebrow, h3.wp-block-heading) {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body .wp-site-blocks .wp-block-columns > .wp-block-column > .wp-block-group:has(> p.dnj-eyebrow):has(> h3.wp-block-heading):has(> .wp-block-buttons) > .wp-block-buttons {
  justify-content: center !important;
}
