/* =========================================================
   GolfPlus Monthly – Flipbook reader
   All classes are prefixed "gpr-" so they won't clash with
   the rest of your site's CSS.
   ========================================================= */

:root {
  --gpr-ink: #0b1b14;
  --gpr-turf: #12392a;
  --gpr-fairway: #174632;
  --gpr-fairway-light: #1b4f38;
  --gpr-red: #ab792a;
  --gpr-red-dark: #b01821;
  --gpr-text: #eef3ef;
  --gpr-muted: #9db2a6;
  --gpr-line: rgba(255, 255, 255, 0.12);
  --gpr-bar-h: 60px;
  /* Set this if the reader sits under your main site header, e.g. 80px */
  --gpr-offset: 0px;
}
/* .stf__wrapper.--landscape .stf__block{
  position: absolute;
} */
/* .stf__wrapper.--landscape .stf__block::after {
    content: "";
    top: 50px;
    left: 100px;
    width: 170px;
    background: url(https://www.blsinternational.com//assets/images/bls-logo.png);
    height: 170px;
    background-position: center;
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
} */
body.gpr-body-lock {
  margin: 0;
  overflow: hidden;
  background: var(--gpr-ink);
}

/* ---------- Layout shell ---------- */
.gpr {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--gpr-offset));
  height: calc(100dvh - var(--gpr-offset));
  background: var(--gpr-ink);
  color: var(--gpr-text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  position: relative;
}

.gpr *,
.gpr *::before,
.gpr *::after {
  box-sizing: border-box;
}

.gpr .is-hidden {
  display: none !important;
}
div.gpr{
  background: #fff;
  background: linear-gradient(145deg, rgb(233, 237, 236) 0%, rgba(248, 241, 241, 0.9) 35%, rgba(173, 224, 255, 1) 100%);
}
.gpr-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--gpr-bar-h);
  padding: 0.5rem 1rem;
  /* background: var(--gpr-ink); */
  z-index: 5;
}

.gpr-top {
  border-bottom: 1px solid var(--gpr-line);
  padding-top: max(0.5rem, env(safe-area-inset-top));
}

.gpr-bottom {
  border-top: 1px solid var(--gpr-line);
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.gpr-main {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
}

/* ---------- Top bar ---------- */
.gpr-brand img {
  height: 48px;
  width: auto;
  display: block;
}

.gpr-title {
  /* flex: 1 1 auto; */
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.gpr-title h5 {
  font-size: 1.2rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  color: #333;
  text-overflow: ellipsis;
}

/* .gpr-title span {
  font-size: 0.75rem;
  color: var(--gpr-muted);
} */

.gpr-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gpr-icon-btn,
.gpr-nav-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  line-height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gpr-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gpr-text);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
/* #gpFullscreen{
  background: #333;
  color: #333;
  border: 1px solid #333;
} */
.gpr-icon-btn:hover,
.gpr-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.gpr-icon-btn {
  background: var(--gpr-red);
  border-color: #fff;
}
.gpr-icon-btn:hover{
background: #fff;
  border-color: var(--gpr-red);
color: var(--gpr-red);
}
#gpThumbsBtn {
  display: none;
}
footer.gpr-bar.gpr-bottom {
    display: none;
}

.gpr-nav-btn {
  width: 46px;
  height: 46px;
  background: var(--gpr-red);
  border-color: #fff;
}

.gpr-nav-btn:hover:not(:disabled) {
  background: #fff;
  color: var(--gpr-red);
  border-color: var(--gpr-red);
}

.gpr-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.gpr-btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: var(--gpr-red);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.gpr-btn-red:hover {
  background: var(--gpr-red-dark);
  color: #fff;
}

.gpr :focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---------- Stage: striped turf behind the book ---------- */
.gpr-stage {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  overflow: hidden;
  background-color: #f7f7f7;
  /* background-image: url(https://www.blsinternational.com//assets/images/bls-logo.png) ;    
    background-size: 200px 200px;
    background-repeat: repeat;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.45) 100%),
    repeating-linear-gradient(
      90deg,
      var(--gpr-fairway) 0 90px,
      var(--gpr-fairway-light) 90px 180px
    ); */
}
/* .gpr-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image:
    url("https://www.blsinternational.com/assets/images/bls-logo.png");    
  background-repeat: repeat;
  background-position: center center;
  background-size: 200px 200px;
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
}*/
/* .stf__wrapper.--landscape .stf__block{
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  background:  #fff;
} */
/* The book fills the stage; St.PageFlip fits itself inside ("stretch" mode) */
.gpr-book {
  position: absolute;
  /* width, height, left and top are set by flipbook.js so the book always fits the stage */
}

/* Ground shadow under the open book */
.gpr-book .stf__parent {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

/* ---------- Pages ---------- */
.gpr-page {
  background: #fff;
  overflow: hidden;
}

.gpr-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.gpr-page.is-loading {
  background: linear-gradient(100deg, #e9e7e1 30%, #f6f5f1 50%, #e9e7e1 70%);
  background-size: 200% 100%;
  animation: gpr-shimmer 1.3s linear infinite;
}

.gpr-page.is-loading img {
  opacity: 0;
}

.gpr-page.is-error {
  background: #e9e7e1;
}

@keyframes gpr-shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ---------- Loading / error / hint ---------- */
.gpr-loading,
.gpr-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  z-index: 3;
}

.gpr-loading .spinner-border {
  color: var(--gpr-red);
}

.gpr-loading p,
.gpr-error p {
  margin: 0;
  max-width: 46ch;
}

.gpr-error i {
  font-size: 2rem;
  color: #ffb4b8;
}

.gpr-hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(11, 27, 20, 0.85);
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
  animation: gpr-hint-in 0.4s ease both;
}

@keyframes gpr-hint-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

/* ---------- Bottom controls ---------- */
.gpr-bottom {
  justify-content: center;
  gap: 1rem;
}

.gpr-progress {
  flex: 1 1 auto;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gpr-indicator {
  flex: 0 0 auto;
  min-width: 8.5em;
  text-align: right;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--gpr-muted);
}

.gpr-slider {
  --gpr-fill: 0%;
  flex: 1 1 auto;
  min-width: 0;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.gpr-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--gpr-red) var(--gpr-fill),
    rgba(255, 255, 255, 0.18) var(--gpr-fill)
  );
}

.gpr-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.gpr-slider::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--gpr-red);
}

.gpr-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--gpr-red);
}

.gpr-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--gpr-red);
}

.gpr-slider:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---------- Thumbnails drawer (overlays the stage, so the book never resizes) ---------- */
.gpr-thumbs {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(170px, 52vw);
  overflow-y: auto;
  padding: 1rem;
  background: rgba(11, 27, 20, 0.96);
  border-right: 1px solid var(--gpr-line);
  z-index: 6;
  visibility: hidden;
  transform: translateX(-100%);
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

.gpr-thumbs.is-open {
  visibility: visible;
  transform: none;
  transition: transform 0.25s ease;
}

.gpr-thumb-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gpr-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: none;
  color: var(--gpr-muted);
  font: inherit;
  font-size: 0.75rem;
  text-align: center;
  cursor: pointer;
}

.gpr-thumb:hover {
  color: #fff;
}

.gpr-thumb.is-current {
  border-color: var(--gpr-red);
  color: #fff;
}

.gpr-thumb-img {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  background: #e9e7e1;
  overflow: hidden;
}

.gpr-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gpr-thumb-num {
  display: block;
  padding: 0.25rem 0;
}

.gpr-noscript {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  background: var(--gpr-ink);
  z-index: 10;
}

/* Desktop: the sidebar sits beside the book (the book re-fits itself) */
@media (min-width: 768px) {
  .gpr-thumbs {
    position: relative;
    flex: 0 0 170px;
    width: 170px;
    transform: none;
    transition: none;
    visibility: visible;
  }

  .gpr-thumbs:not(.is-open) {
    margin-left: -170px;
    visibility: hidden;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 575.98px) {
  .gpr-bar {
    gap: 0.5rem;
    padding-inline: 0.75rem;
  }
.gpr-title h5{font-size: 15px;}

  .gpr-brand img {
    height: 30px;
  }

  .gpr-indicator {
    min-width: 0;
    font-size: 0.8rem;
  }

  .gpr-progress {
    gap: 0.6rem;
  }

  .gpr-hint {
    white-space: normal;
    width: calc(100% - 2rem);
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gpr-page.is-loading {
    animation: none;
  }

  .gpr-thumbs,
  .gpr-thumbs.is-open,
  .gpr-hint {
    transition: none;
    animation: none;
  }
}

/* =========================================================
   >>> NEW (1/2): Download button
   The link uses the same round style as the other icon buttons.
   ========================================================= */
a.gpr-icon-btn {
  text-decoration: none;
}

/* =========================================================
   >>> NEW (2/2): Cover stays centred while the book is closed
   flipbook.js shifts the book left/right by a quarter of its width
   when only the front or back cover is showing. This makes that
   movement glide instead of jump.
   ========================================================= */