/* JOY NYABONGO DIGITAL LIBRARY – PURPLE NAVIGATION STRIP */

.container-header .container-nav {
    background-color: #714B67 !important;
    box-shadow: 0 0 0 100vmax #714B67;
    clip-path: inset(0 -100vmax);
    padding-top: 0;
    padding-bottom: 0;
}

/* Main menu lettering */
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
    color: #FFFFFF !important;
    font-weight: 600;
    padding: 16px 18px;
}

/* Gold hover and selected-page colour */
.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus,
.container-header .mod-menu > li.active > a {
    color: #F0CDA8 !important;
}

/* Keep dropdown menus readable */
.container-header .mod-menu .metismenu.mod-menu .mm-collapse {
    background-color: #FFFFFF;
}

.container-header .mod-menu .metismenu.mod-menu .mm-collapse a {
    color: #714B67 !important;
}
/* =========================================================
   JOY NYABONGO DIGITAL LIBRARY — HOME PAGE
   ========================================================= */

.jndl-home {
  --jndl-purple: #714b67;
  --jndl-purple-dark: #4f3248;
  --jndl-gold: #f0cda8;
  --jndl-cream: #f6f5f4;
  --jndl-dark: #1b1319;
  --jndl-grey: #5f565d;
  --jndl-border: #e5dfe3;

  color: #444444;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.65;
}

.jndl-home,
.jndl-home * {
  box-sizing: border-box;
}

.jndl-home section {
  padding: 78px 24px;
}

.jndl-home-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.jndl-home-narrow {
  max-width: 860px;
}

.jndl-home h1,
.jndl-home h2,
.jndl-home h3 {
  margin-top: 0;
}

.jndl-home h1,
.jndl-home h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.jndl-home h1 {
  margin-bottom: 24px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
}

.jndl-home h2 {
  margin-bottom: 18px;
  color: var(--jndl-purple);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.18;
}

.jndl-home h3 {
  margin-bottom: 12px;
  color: var(--jndl-purple);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
}

.jndl-home p {
  margin: 0 0 20px;
}

.jndl-home a {
  text-decoration: none;
}

.jndl-home-heading {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.jndl-home-heading p {
  color: var(--jndl-grey);
}

.jndl-home-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.jndl-home-buttons-centred {
  justify-content: center;
}

.jndl-home-button {
  display: inline-block;
  padding: 14px 27px;
  border: 2px solid var(--jndl-purple);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition: all .2s ease;
}

.jndl-home-button-purple {
  color: #ffffff !important;
  background: var(--jndl-purple);
}

.jndl-home-button-purple:hover {
  color: #ffffff !important;
  background: var(--jndl-purple-dark);
  border-color: var(--jndl-purple-dark);
}

.jndl-home-button-gold {
  color: var(--jndl-dark) !important;
  background: var(--jndl-gold);
  border-color: var(--jndl-gold);
}

.jndl-home-button-gold:hover {
  color: var(--jndl-dark) !important;
  background: #ffffff;
  border-color: #ffffff;
}

.jndl-home-button-outline {
  color: #ffffff !important;
  background: transparent;
  border-color: #ffffff;
}

.jndl-home-button-outline:hover {
  color: var(--jndl-purple) !important;
  background: #ffffff;
}

.jndl-home-link {
  display: inline-block;
  color: var(--jndl-purple) !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.jndl-home-link:hover {
  text-decoration: underline;
}


/* HERO */

.jndl-home-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(240, 205, 168, .22), transparent 30%),
    linear-gradient(135deg, #1b1319 0%, #4f3248 58%, #714b67 100%);
}

.jndl-home-hero::after {
  position: absolute;
  right: -160px;
  bottom: -220px;
  width: 620px;
  height: 620px;
  content: "";
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}

.jndl-home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #ffffff;
}

.jndl-home-hero-content p {
  max-width: 680px;
  color: rgba(255,255,255,.9);
  font-size: 22px;
}


/* INTRODUCTION */

.jndl-home-intro {
  background: #ffffff;
  text-align: center;
}


/* PHILOSOPHY */

.jndl-home-philosophy {
  background: var(--jndl-cream);
}

.jndl-home-philosophy-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 55px;
  align-items: center;
}

.jndl-home-quote {
  position: relative;
  padding: 55px 45px 45px;
  color: #ffffff;
  background: var(--jndl-purple);
}

.jndl-home-quote-symbol {
  position: absolute;
  top: 0;
  left: 24px;
  color: var(--jndl-gold);
  font-family: Georgia, serif;
  font-size: 90px;
  line-height: 1;
}

.jndl-home-quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-style: italic;
  line-height: 1.5;
}


/* PATHWAYS */

.jndl-home-pathways {
  background: #ffffff;
}

.jndl-pathway-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 25px;
}

.jndl-pathway-card {
  grid-column: span 2;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--jndl-border);
  box-shadow: 0 14px 35px rgba(45, 26, 40, .08);
}

.jndl-pathway-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.jndl-pathway-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.jndl-pathway-top {
  position: relative;
  min-height: 125px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 15%, rgba(240,205,168,.42), transparent 24%),
    linear-gradient(135deg, var(--jndl-purple-dark), var(--jndl-purple));
}

.jndl-pathway-number {
  position: absolute;
  top: 5px;
  right: 18px;
  color: rgba(255,255,255,.13);
  font-family: Georgia, serif;
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
}

.jndl-pathway-top h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #ffffff;
}

.jndl-pathway-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.jndl-pathway-body p {
  flex: 1;
}


/* GUIDES */

.jndl-home-guides {
  color: #ffffff;
  background: var(--jndl-purple);
}

.jndl-home-guides h2,
.jndl-home-guides .jndl-home-heading p {
  color: #ffffff;
}

.jndl-guide-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.jndl-guide-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(27,19,25,.08), rgba(27,19,25,.88)),
    linear-gradient(135deg, #9b708e, #4f3248);
  border: 1px solid rgba(255,255,255,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}

.jndl-guide-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0,0,0,.25);
}

.jndl-guide-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(27,19,25,.08), rgba(27,19,25,.88)),
    linear-gradient(135deg, #b68d72, #714b67);
}

.jndl-guide-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(27,19,25,.08), rgba(27,19,25,.88)),
    linear-gradient(135deg, #736777, #372430);
}

.jndl-guide-card:nth-child(4) {
  background:
    linear-gradient(180deg, rgba(27,19,25,.08), rgba(27,19,25,.88)),
    linear-gradient(135deg, #d1a983, #694457);
}

.jndl-guide-card:nth-child(5) {
  background:
    linear-gradient(180deg, rgba(27,19,25,.08), rgba(27,19,25,.88)),
    linear-gradient(135deg, #8c657e, #2f1f2a);
}

.jndl-guide-card small {
  margin-bottom: 8px;
  color: var(--jndl-gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.jndl-guide-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 23px;
}


/* EXPLORE MORE */

.jndl-home-more {
  background: var(--jndl-cream);
}

.jndl-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.jndl-more-card {
  padding: 38px 32px;
  background: #ffffff;
  border-top: 5px solid var(--jndl-purple);
  box-shadow: 0 12px 30px rgba(45, 26, 40, .07);
}

.jndl-more-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jndl-purple);
  background: var(--jndl-gold);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 700;
}


/* SUBSCRIPTION BENEFITS */

.jndl-home-benefits {
  background: #ffffff;
}

.jndl-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.jndl-benefit-card {
  padding: 28px;
  background: var(--jndl-cream);
  border-left: 5px solid var(--jndl-purple);
}

.jndl-benefit-card h3 {
  font-size: 22px;
}

.jndl-benefit-card p {
  margin-bottom: 0;
}

.jndl-benefit-note {
  max-width: 900px;
  margin: 42px auto 0;
  padding: 30px;
  color: var(--jndl-dark);
  text-align: center;
  background: var(--jndl-gold);
}

.jndl-benefit-note p {
  margin: 0;
}


/* FINAL CTA */

.jndl-home-cta {
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at 15% 15%, rgba(240,205,168,.18), transparent 28%),
    linear-gradient(135deg, var(--jndl-dark), var(--jndl-purple-dark));
}

.jndl-home-cta h2 {
  color: #ffffff;
}

.jndl-home-cta p {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(255,255,255,.9);
}


/* TABLET */

@media (max-width: 991px) {

  .jndl-home-philosophy-grid {
    grid-template-columns: 1fr;
  }

  .jndl-pathway-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .jndl-pathway-card,
  .jndl-pathway-card:nth-child(4),
  .jndl-pathway-card:nth-child(5) {
    grid-column: auto;
  }

  .jndl-guide-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .jndl-more-grid,
  .jndl-benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* MOBILE */

@media (max-width: 767px) {

  .jndl-home section {
    padding: 55px 18px;
  }

  .jndl-home-hero {
    min-height: 600px;
  }

  .jndl-home-hero-content p {
    font-size: 19px;
  }

  .jndl-home-buttons {
    flex-direction: column;
  }

  .jndl-home-button {
    width: 100%;
  }

  .jndl-pathway-grid,
  .jndl-more-grid,
  .jndl-benefit-grid {
    grid-template-columns: 1fr;
  }

  .jndl-guide-grid {
    display: flex;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
  }

  .jndl-guide-card {
    min-width: 78%;
    scroll-snap-align: start;
  }

  .jndl-home-quote {
    padding: 48px 28px 35px;
  }

  .jndl-home-quote blockquote {
    font-size: 23px;
  }
}
/* REAL BOOK COVERS ON HOME PAGE */

.jndl-book-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  align-items: start;
}

.jndl-book-card {
  display: block;
  color: #ffffff !important;
  text-decoration: none !important;
}

.jndl-book-image {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #f6f5f4;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  transition: transform .2s ease;
}

.jndl-book-card:hover .jndl-book-image {
  transform: translateY(-6px);
}

.jndl-book-card h3 {
  margin: 16px 0 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 991px) {
  .jndl-book-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .jndl-book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}