body {
    font-family: 'Quicksand', 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(120deg, #202338 0%, #232530 100%);
    min-height: 100vh;
    color: #e6e8f0;
}

.navbar {
    position: relative;
    text-align: center;
    padding-top: 1em;
    padding-bottom: 1em;
    background: transparent;
    z-index: 1000;      /* ensure nav is above page content */
}

.menu {
    display: flex;
    justify-content: center;
    gap: 2em;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    display: inline-block;
}

.menu a {
    display: inline-block;
    min-width: 110px;
    padding: 0.68em 2em;
    border-radius: 999px;
    background: linear-gradient(135deg, #314976 85%, #232e40 100%);
    box-shadow: 0 6px 24px rgba(49, 73, 118, 0.15), 0 1.5px 8px rgba(0, 0, 0, 0.16);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    font-size: 1.12em;
    letter-spacing: 0.01em;
    transition: transform 0.22s, box-shadow 0.18s, background 0.22s, color 0.2s;
    border: none;
    margin: 0 10px;
}

.menu a:hover,
.menu a:focus {
    transform: translateY(-4px) scale(1.05);
    background: linear-gradient(135deg, #446ea7 85%, #293652 100%);
    box-shadow: 0 12px 44px rgba(68, 110, 167, 0.16), 0 3px 12px rgba(0, 0, 0, 0.22);
    color: #ffffff;
    outline: none;
}

/* Hamburger menu CSS */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    position: absolute;
    right: 18px;
    top: 20px;
    height: 40px;
    width: 40px;
    cursor: pointer;
    z-index: 2;
}

.nav-toggle-label span {
    display: block;
    background: #446ea7;
    height: 5px;
    width: 100%;
    margin: 8px auto;
    border-radius: 3px;
    transition: all 0.25s;
}



/* Card Grid and Image Features */
.flex-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
    margin: 2em 0 2.6em 0;
}

.card {
    background: linear-gradient(135deg, #24253c 75%, #232e40 100%);
    border-radius: 16px;
    box-shadow: 0 8px 36px rgba(49, 73, 118, 0.12);
    padding: 1em 1.3em 1em 1.3em;
    max-width: auto;
    min-width: 220px;
    text-align: center;
    margin: 0 4em 0 4em;
    transition: box-shadow 0.2s, background 0.22s;
    border: 1.5px solid #313d52;
}

.card2 {
    background: linear-gradient(135deg, #24253c 75%, #232e40 100%);
    border-radius: 16px;
    box-shadow: 0 8px 36px rgba(49, 73, 118, 0.12);
    padding: 1em 1.3em 1em 1.3em;
    width: 100%;
    max-width: 600px;
    min-width: 0;
    text-align: center;
    margin: 0;
    transition: box-shadow 0.2s, background 0.22s;
    border: 1.5px solid #313d52;
}

.purchase-list {
  list-style: none;
  padding: 0;
  margin: 1em 0 0 0;
}

.purchase-list li {
  display: inline-block;
}

.purchase-link {
  display: inline-block;
  min-width: 110px;
  padding: 0.68em 2em;
  border-radius: 999px;
  background: linear-gradient(135deg, #314976 85%, #232e40 100%);
  box-shadow: 0 6px 24px rgba(49, 73, 118, 0.15), 0 1.5px 8px rgba(0, 0, 0, 0.16);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  font-size: 1.12em;
  letter-spacing: 0.01em;
  color: #ffffff;
  
}

.purchase-link:hover,
.purchase-link:focus {
    transform: translateY(-4px) scale(1.05);
    background: linear-gradient(135deg, #446ea7 85%, #293652 100%);
    box-shadow: 0 12px 44px rgba(68, 110, 167, 0.16), 0 3px 12px rgba(0, 0, 0, 0.22);
    color: #ffffff;
    outline: none;
}



.card3 {
    background: linear-gradient(135deg, #24253c 75%, #232e40 100%);
    border-radius: 16px;
    box-shadow: 0 8px 36px rgba(49, 73, 118, 0.12);
    padding: 1em 1.3em 1em 1.3em;
    width: 100%;
    max-width: 600px;
    min-width: 0;
    text-align: center;
    margin: 0px 0px 0px 0px;
    transition: box-shadow 0.2s, background 0.22s;
    border: 1.5px solid #313d52;
}

.card2 h3 {
    font-style: italic;
    text-decoration: underline;
    color: #8eb8e6;

}

.card3 {
  min-height: 165px;
  margin: 13px 0px 0px 0px;
}


.card3 h3 {
    font-style: italic;
    text-decoration: underline;
    color: #8eb8e6;

}

.card4 h3{
    background: linear-gradient(135deg, #24253c 75%, #232e40 100%);
    border-radius: 16px;
    box-shadow: 0 8px 36px rgba(49, 73, 118, 0.12);
    padding: 1em 1.3em 1em 1.3em;
    max-width: auto;
    min-width: 220px;
    text-align: center;
    margin: 0 4em 0 4em;
    transition: box-shadow 0.2s, background 0.22s;
    border: 1.5px solid #313d52;
}

.card img {
    width: 100%;
    max-width: 220px;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(49, 73, 118, 0.13);
    margin-bottom: 1em;
    background: #262b36;
    border: 1px solid #313d52;
}

.card h3 {
    margin-top: 0.3em;
    margin-bottom: 0.1em;
    font-size: 1.09em;
    color: #8eb8e6;
}

.accent-card {
    background: linear-gradient(90deg, #232e40 60%, #2f3957 100%);
    box-shadow: 0 12px 52px rgba(49, 73, 118, 0.16);
    padding: 2em 2.5em 1.25em 2.5em;
    border: 2px solid #3c476c;
}

header.accent-card span.icon {
    font-size: 2em;
    vertical-align: middle;
}

.images-chapter,
.accent-chapter {
    margin-top: 2.2em;
    padding: 1.2em 0.7em;
    background: linear-gradient(90deg, #202c3c 0%, #232e40 100%);
    border-radius: 12px;
    box-shadow: 0 6px 26px rgba(49, 73, 118, 0.10);
    border: 1px solid #313d52;
    text-align: center;
}

.img-row {
    display: flex;
    justify-content: center;
    gap: 1.2em;
    margin: 1em 0;
}

.images-chapter img,
.img-row img {
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(49, 73, 118, 0.11);
    width: 180px;
    min-width: 120px;
    background: #232e40;
    border: 1px solid #35518a;
}

footer {
    text-align: center;
    font-size: 92%;
    color: #b6cfdc;
    background: #23253a;
    padding: 1.2em 0 0.9em 0;
    border-top: 2px solid #313d52;
    margin-top: 2.6em;
}

section {
    margin-bottom: 2.5em;
}

h2 {
    font-weight: 700;
    color: #8eb8e6;
    margin-top: 1.6em;
    margin-left: 220px;
}

a,
a:visited {
    color: #8eb8e6;
}

a:hover {
    color: #ffffff;
}

::-webkit-scrollbar {
    background: #232530;
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: #313d52;
    border-radius: 5px;
}

/* carousel styles */

.carousel-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;    /* or center */
  gap: 20px;                  /* space between carousel and card */
}

.carousel {
  position: relative;
  width: 400px;      /* adjust size */
  height: 450px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #24253c 75%, #232e40 100%);
  border-radius: 16px;
  box-shadow: 0 8px 36px rgba(49, 73, 118, 0.12);
  padding: 2em 3em 2em 2em;
  text-align: center;
  transition: box-shadow 0.2s, background 0.22s;
  border: 1.5px solid #313d52;
}

.carousel-right {
  max-width: 600px;          /* adjust to your design */
}

.carousel-track {
  width: 100%;
  height: 100%;
  position:absolute;
}

.slide {
  position: absolute;
  inset: 0;
  width:87%;
  height: 90%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slide.active {
  opacity: 1;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

@media (max-width: 700px) {
    .menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #212d44;
        flex-direction: column;
        gap: 1.2em;
        padding: 1.5em 0;
        margin: 0;
        border-radius: 0 0 22px 22px;
        box-shadow: 0 8px 44px rgba(49, 73, 118, 0.09);
        display: none;
        z-index: 1001;  /* above carousel and other content */
    }

    .nav-toggle:checked~.menu {
        display: flex;
    }

    .nav-toggle-label {
        display: block;
    }

    .menu li {
        display: block;
        text-align: center;
    }

    .menu a {
        display: block;
        min-width: 0;      /* allow shrinking on small screens */
        width: 80%;        /* or 90–100% if you prefer full‑width buttons */
        max-width: 320px;  /* optional cap */
        margin: 8px auto;
        padding:0.6em 1.2em; /* smaller horizontal padding */
        box-sizing: border-box;  /* include padding inside width */
        white-space: normal;     /* allow wrapping instead of cutting off */
    }

    nav.navbar {
        margin-top: 0.7em;
        margin-bottom: 0.9em;
    }
}

@media (max-width: 768px) {
  .carousel-layout {
    flex-direction: column;  /* stack carousel above right column */
    align-items: center;     /* center each column horizontally */
  }

  .carousel {
    width: 100%;
    max-width: 400px;        /* keep it from growing too wide */
  }

  .carousel-right {
    width: 100%;
    max-width: 600px;        /* match desktop width, still centered */
    text-align: center;      /* optional: center text inside */
    position: relative;
    z-index: 1;                   /* above background/overlaps */
    box-sizing: border-box;
  }

  .card2, .card3 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .purchase-list {
    text-align: center;
  }

  .purchase-list li {
    display: block;           /* full row */
  }

  .purchase-link {
    display: block;
    width: 100%;
    max-width: 260px;         /* or 100% of card width */
    margin: 0.8em auto 0;
    box-sizing: border-box;
    white-space: normal;      /* allow text to wrap instead of clipping */
  }

  h2 {
    margin-left: 40px;
  }
}
  



