/* Replace the old slider CSS with this scoped version. Original class names are retained. */
.aph-book-slider {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #071738;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
.aph-book-slider *,
.aph-book-slider *::before,
.aph-book-slider *::after {
  box-sizing: border-box;
}
.aph-book-slider .aph-slider-circle {
  display: none;
}
.aph-book-slider .aph-slider-slides {
  display: grid;
  position: relative;
  width: 100%;
  min-width: 0;
}
.aph-book-slider .aph-book-slide {
  grid-area: 1 / 1;
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  z-index: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition:
    opacity 0.85s ease,
    visibility 0.85s;
  background-repeat: no-repeat;
  background-color: #061b38;
  background-size: cover;
  background-position: center;
}
.aph-book-slider .aph-book-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 35%, #00121d0d 65%, #00121d0d);
}
.aph-book-slider .aph-book-slide.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.aph-book-slider .aph-book-slide.is-gold {
  background-image: url("../img/slider/golden-background.png");
  background-color: #b02c3d;
}
.aph-book-slider .aph-book-slide.is-navy {
  background-image: url("../img/slider/quantum-background.png");
  background-color: #051535;
}
.aph-book-slider .aph-book-slide.is-forest {
  background-image: url("../img/slider/forest-background.png");
  background-color: #003b38;
}

.aph-book-slider .aph-book-slide.is-green {
  background-image: url("../img/slider/green-background.png");
  background-color: #003b38;
}

.aph-book-slider .aph-book-slide.is-sea-background {
  background-image: url("../img/slider/sea-background.png");
  background-color: #003b38;
}

.aph-book-slider .aph-book-slide.is-clock-background {
  background-image: url("../img/slider/clock-background.png");
  background-color: #003b38;
}


.aph-book-slider .aph-slider-inner {
  position: relative;
  display: grid;
  grid-template-columns: clamp(150px, 14.4vw, 230px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 4vw, 64px);
  width: 59%;
  max-width: 950px;
  min-height: clamp(350px, 31vw, 510px);
  margin-left: 32.5%;
  margin-right: 8.5%;
  padding: clamp(45px, 5vw, 80px) 20px clamp(65px, 5vw, 80px) 0;
}
.aph-book-slider .aph-slider-cover {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  align-self: center;
  transform: none;
  perspective: 1000px;
}
.aph-book-slider .aph-slider-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 1px;
  box-shadow:
    -5px 7px 12px #0004,
    0 16px 35px #0003;
  transform: translateY(14px) rotateY(-5deg);
  transition: transform 1s cubic-bezier(0.22, 0.68, 0.2, 1);
}
.aph-book-slider .is-active .aph-slider-cover img {
  transform: translateY(0) rotateY(0);
}
.aph-book-slider .aph-slider-copy {
  position: relative;
  min-width: 0;
  max-width: 460px;
  padding: 0;
  text-align: left;
  color: white;
}
.aph-book-slider .aph-slider-kicker {
  display: block;
  margin: 0 0 20px;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: #fff;
  opacity: 0.86;
}
.aph-book-slider .aph-slider-intro {
  margin: 0 0 21px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-style: italic;
  color: #fff;
  text-shadow: 0 2px 13px #0003;
}
.aph-book-slider .is-gold .aph-slider-intro {
  font-style: normal;
  font-weight: 700;
}
.aph-book-slider .aph-slider-copy h2 {
  margin: 0 0 27px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 2.7vw, 43px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: white;
  text-shadow: 0 2px 15px #0003;
  overflow-wrap: anywhere;
}
.aph-book-slider .aph-slider-copy p {
  max-width: 425px;
  margin: 0 0 25px;
  color: #fff;
  font-size: 15px;
  line-height: 1.8;
}
.aph-book-slider .is-forest .aph-slider-copy p {
  background: #fffffff5;
  border-radius: 2px;
  color: #000;
  padding: 12px 14px;
}
.aph-book-slider .aph-slider-feature-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 390px;
  min-height: 42px;
  padding: 11px 14px;
  margin: 0 0 17px;
  border: 1px solid #e4bdbe;
  border-radius: 4px;
  box-shadow: 0 3px 8px #0003;
  background: #fff;
  color: #251b1d;
  font-size: 11px;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.2s;
}
.aph-book-slider .aph-slider-feature-action:hover {
  background: #fff0e2;
}
.aph-book-slider .aph-slider-copy .text-link {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 22px;
    min-height: 40px;
    padding: 5px 0;
    margin: 0 0 8px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #ffffff6b;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none;
}
.aph-book-slider .aph-slider-copy small {
    display: block;
    margin: 0;
    color: #fff;
    opacity: 0.83;
    font-size: 14px;
    line-height: 1.7;
}
.aph-book-slider .aph-slider-copy small span {
  padding: 0 5px;
}
.aph-book-slider .aph-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #e3e7ec;
  border-radius: 50%;
  background: #fff;
  color: #203540;
  box-shadow: 0 3px 10px #0003;
  font:
    24px/1 Arial,
    sans-serif;
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
}
.aph-book-slider .aph-slider-arrow:hover {
  background: #002868;
  color: #fff;
}
.aph-book-slider .aph-slider-prev {
  left: 12px;
  right: auto;
}
.aph-book-slider .aph-slider-next {
  right: 12px;
  left: auto;
  outline: 1px solid #ffffffb0;
  outline-offset: 3px;
}
.aph-book-slider .aph-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  top: auto;
  right: auto;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transform: translateX(-50%);
}
.aph-book-slider .aph-slider-dots button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.aph-book-slider .aph-slider-dots button::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: transparent;
  transition:
    width 0.3s,
    background 0.3s;
}
.aph-book-slider .aph-slider-dots button.is-active::before {
  width: 20px;
  background: #fff;
}
.aph-book-slider .aph-slider-autoplay {
  position: absolute;
  bottom: 15px;
  right: 18px;
  z-index: 5;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #ffffff70;
  border-radius: 4px;
  background: #00142a42;
  color: #fff;
  font:
    11px Arial,
    sans-serif;
  cursor: pointer;
}
.aph-book-slider .aph-slider-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.aph-book-slider :focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 4px;
}
/* Tablets preserve the side-by-side structure with enough space for readable copy. */
@media (max-width: 1100px) {
  .aph-book-slider .aph-slider-inner {
    width: 69%;
    margin-left: 22%;
    margin-right: 9%;
    gap: 30px;
    padding-block: 48px 65px;
  }
  .aph-book-slider .aph-slider-copy h2 {
    font-size: 30px;
    margin-bottom: 18px;
  }
  .aph-book-slider .aph-slider-intro {
    font-size: 24px;
    margin-bottom: 17px;
  }
  .aph-book-slider .aph-slider-kicker {
    font-size: 9px;
    margin-bottom: 15px;
  }
  .aph-book-slider .aph-slider-copy p {
    margin-bottom: 16px;
  }
}
@media (max-width: 800px) {
  .aph-book-slider .aph-slider-inner {
    width: auto;
    margin: 0 70px;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 30px;
    padding-block: 45px 70px;
    min-height: 420px;
  }
  .aph-book-slider .aph-slider-copy h2 {
    font-size: 30px;
  }
  .aph-book-slider .aph-slider-copy small span {
    display: none;
  }
  .aph-book-slider .aph-slider-copy small {
    max-width: 200px;
  }
}
/* Phones: complete cover, readable content and bottom navigation. */
@media (max-width: 600px) {
  .aph-book-slider .aph-slider-inner {
    grid-template-columns: 1fr;
    width: auto;
    margin: 0;
    padding: 35px 26px 95px;
    gap: 25px;
    min-height: 0;
    text-align: center;
  }
  .aph-book-slider .aph-slider-cover {
    width: 170px;
    margin: 0 auto;
  }
  .aph-book-slider .aph-slider-copy {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    text-align: center;
  }
  .aph-book-slider .aph-slider-kicker {
    font-size: 9px;
    margin-bottom: 13px;
  }
  .aph-book-slider .aph-slider-intro {
    font-size: 25px;
  }
  .aph-book-slider .aph-slider-copy h2 {
    font-size: 33px;
    margin-bottom: 18px;
  }
  .aph-book-slider .aph-slider-copy p {
    margin: 0 auto 18px;
    font-size: 15px;
  }
  .aph-book-slider .aph-slider-feature-action {
    margin: 0 auto 15px;
  }
  .aph-book-slider .aph-slider-copy small {
    max-width: none;
  }
  .aph-book-slider .aph-slider-arrow {
    top: auto;
    bottom: 17px;
    transform: none;
  }
  .aph-book-slider .aph-slider-prev {
    left: calc(50% - 112px);
  }
  .aph-book-slider .aph-slider-next {
    right: calc(50% - 112px);
  }
  .aph-book-slider .aph-slider-dots {
    bottom: 23px;
    gap: 0;
  }
  .aph-book-slider .aph-slider-dots button {
    width: 30px;
  }
  .aph-book-slider .aph-slider-autoplay {
    bottom: 70px;
    right: 12px;
    font-size: 10px;
    min-height: 26px;
  }
  .aph-book-slider .aph-book-slide::before {
    background: #00000014;
  }
}
@media (prefers-reduced-motion: reduce) {
  .aph-book-slider * {
    transition: none !important;
    animation: none !important;
  }
}


/* Full-width slider */
.aph-book-slider {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.aph-book-slider .aph-slider-slides {
    display: grid;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Background covers the entire slide */
.aph-book-slider .aph-book-slide {
    grid-area: 1 / 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;

    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Individual slide backgrounds */
.aph-book-slider .aph-book-slide.is-gold {
    background-image:
        url("../img/slider/golden-background.png");
}

.aph-book-slider .aph-book-slide.is-navy {
    background-image:
        url("../img/slider/quantum-background.png");
}

.aph-book-slider .aph-book-slide.is-forest {
    background-image:
        url("../img/slider/forest-background.png");
}

/* Content positioning remains independent */
.aph-book-slider .aph-slider-inner {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns:
        clamp(150px, 14.4vw, 230px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(30px, 4vw, 64px);

    width: min(900px, calc(100% - 150px));
    max-width: 900px;
    min-height: 510px;

    margin: 0 auto;
    padding: 65px 20px 80px;

    background: none !important;
}

/* Tablet */
@media (max-width: 900px) {
    .aph-book-slider .aph-slider-inner {
        width: calc(100% - 130px);
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 28px;
        min-height: 450px;
        padding: 45px 0 75px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .aph-book-slider .aph-slider-inner {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 25px;

        min-height: 0;
        margin: 0;
        padding: 35px 25px 100px;

        text-align: center;
    }

    .aph-book-slider .aph-slider-cover {
        width: 170px;
        margin: 0 auto;
    }

    .aph-book-slider .aph-slider-copy {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
        text-align: center;
    }
}

.aph-book-slider .aph-slider-copy p {
    max-width: 420px;
    margin: 0 0 20px;
    padding: 0px !important;
    border-radius: 4px;
    background: #ffffff00 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.75;
}