 :root{
    --bridge-topbar-h: 36px;
    --bridge-navbar-h: 72px;
    --bb-media-pad: clamp(24px, 4vh, 56px);
    --bb-books-h: 170px;
  }

  .brand-logo{
    width:60px;
    transform: translateY(6px);
  }

  .bridge-topbar{
      position: fixed;
      height: var(--bridge-topbar-h);
      background: #fff;
      border-bottom: 1px solid rgba(0,0,0,.08);
      font-size: 13px;
      line-height: 1;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1031; /* above .navbar.fixed-top (1030) */
  }

  #navScroll.navbar.fixed-top{
    top: var(--bridge-topbar-h) !important;
  }

/* Prevent page content from hiding under BOTH bars */
body{
  padding-top: calc(var(--bridge-topbar-h) + 72px) !important;
}

  .bridge-topbar .container{
    height: 100%;
    display: flex;
    align-items: center;
  }

  .bridge-topbar a{
    color: rgba(0,0,0,.75);
    text-decoration: none;
    white-space: nowrap;
  }

  .bridge-topbar a:hover,
  .bridge-topbar a:focus{
    color: rgba(0,0,0,1);
    text-decoration: underline;
  }

  .bridge-topbar .sep{
    color: rgba(0,0,0,.35);
    padding: 0 .6rem;
    user-select: none;
  }

  /* On small screens allow horizontal scroll instead of wrapping */
  .bridge-topbar .bridge-topbar-links{
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .bridge-topbar .bridge-topbar-links::-webkit-scrollbar{
    display: none;
  }

  /* Push your existing fixed-top navbar down */
  nav#navScroll.navbar.fixed-top{
    top: var(--bridge-topbar-h);
  }

  /* Ensure page content doesn't hide under both fixed bars */
  body{
    padding-top: calc(var(--bridge-topbar-h) + 72px); /* 72px is typical navbar height; adjust if needed */
  }

  #navScroll.navbar{
  background-color: #ffffff;   /* or any solid color you want */
}

  

  html, body{
    font-family: "Pretendard", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", Arial, sans-serif;
  }

  body{
    padding-top: 0 !important;
  }

  main.bb-page{
    min-height: 100vh;
    padding-top: calc(var(--bridge-topbar-h) + var(--bridge-navbar-h));
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .bb-viewport{
    min-height: calc(100vh - (var(--bridge-topbar-h) + var(--bridge-navbar-h)));
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  /* Hero takes remaining space above the book strip */
  .bb-hero{
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    background: #ffffff; /* page background */
    position: relative;
    z-index: 1;
  }

  .bb-hero-card{
    /* width: min(1240px, 92vw); */
    width:100%;
    max-width:1320px;
    margin: 0 auto;
    height: clamp(260px, 44vh, 480px);
    background: #eaf6d9;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    padding: 0;                 /* IMPORTANT */
  }

  .bb-hero-slider{
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
  }


/* Bottom strip fixed height, horizontal scrolling */
.bb-books{
  flex: 0 0 240px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;

  /* headroom for hover-lift lives HERE */
  padding: 54px 0 26px;  /* 54 = 24 base + 30 lift (adjust if needed) */

  position: relative;
  z-index: 2;

  /* pin content to bottom */
  display: flex;
  align-items: flex-end;
}

/* Horizontal scrolling row */
/* Inner flex row (no scrolling here) */
.bb-books-row{
  display: flex;
  gap: 30px;

  padding: 0 18px;             /* horizontal padding only */
  align-items: flex-end;

  /* remove overflow settings here */
  overflow: visible;
}

.bb-books-row::-webkit-scrollbar{
  display: none;
}

.bb-books-scroller.is-dragging{
  cursor: grabbing;
}

.bb-book{
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-shrink: 0;
  align-items: flex-end;      /* keep your bottom alignment */
  text-decoration: none;
  transform: translateY(0);
  transition: transform 180ms ease;
  z-index: 0;
}
.bb-book:hover{ z-index: 9999; }

.bb-book img{
  height: 200px;
  width: 100%;
  max-width: none;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  transition: box-shadow 180ms ease;
}

.bb-book-overlay{
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;

  display: grid;
  place-items: center;           /* center text block */
}

.bb-book-meta{
  text-align: center;
  color: #fff;
  transform: translateY(-18%);   /* move upward within the cover */
}

.bb-book-title{
  display: block;
  font-weight: 700;
  font-size: 0.95rem;            /* adjust */
  line-height: 1.25;
}

.bb-book-author{
  display: block;
  margin-top: 0.35rem;
  font-weight: 500;
  font-size: 0.8rem;
  opacity: 0.9;
}

.bb-book:hover{
  transform: translateY(-30px);   /* “go over a little” */
}

.bb-book:hover img{
  box-shadow: 0 22px 40px rgba(0,0,0,.28);
}

.bb-book:hover .bb-book-overlay{
  opacity: 1;
}

.bridge-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.bridge-logo .kr {
  font-size: 1.75rem;   /* adjust if needed */
  font-weight: 700;
}

.bridge-logo .en {
  font-size: 0.8rem;   /* THIS is the key */
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;  /* tiny separation */
  color: #777;
}

.navbar .nav-link {
  font-weight: 500;
  color: #333;
  font-size: 1.25rem;
}

.navbar .nav-item {
  margin-left: 2rem;
  margin-right: 2rem;
}

/* for slider */

/* moving strip */
.bb-hero-track{
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  transition: transform 450ms ease;
  will-change: transform;
}

/* each slide = full viewport width */
.bb-slide{
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;        /* vertically center the inner card */
  justify-content: center;    /* center the inner card horizontally */
  padding: 0;                 /* inner card handles spacing */
  box-sizing: border-box;
  z-index: 1;
}

#bbHeroSlider,
#bbHeroSlider *{
  -webkit-user-drag: none;
  user-select: none;
}

/* Extra: images specifically (covers most browsers) */
#bbHeroSlider img{
  -webkit-user-drag: none;
  user-select: none; /* keeps swipe working; buttons are outside img */
}

/* 80% “card” inside each slide */
.bb-slide-card{
  width: min(80%, 1100px);    /* 80% of slide, with a max cap */
  height: 100%;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(240px, 420px);
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 4vw, 56px);
  box-sizing: border-box;
}

.bb-slide-card > *{ min-width: 0; } /* prevent overflow pushing layout */

.bb-slide-text{
  font-size: 1.5rem;
}

.bb-slide-media{
  min-width: 0;
  padding-block: var(--bb-media-pad);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.bb-slide-media img{
  display: block;
  max-width: 100%;
  max-height: 350px;
  width: auto;
  object-fit: contain;
}

/* arrows */
.bb-hero-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;

  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.bb-hero-card:hover .bb-hero-nav,
.bb-hero-nav:focus-visible{
  opacity: 1;
  pointer-events: auto;
}

.bb-hero-track{
  position: relative;
  z-index: 1;
}

.bb-hero-nav,
.bb-hero-dots{
  position: absolute;
  z-index: 10;
}

.bb-prev{ left: 24px; }
.bb-next{ right: 24px; }

/* dots */
.bb-hero-dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}

.bb-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,.25);
  cursor: pointer;
}
.bb-dot.is-active{ background: rgba(0,0,0,.55); }


/* Horizontal scrolling wrapper */
.bb-books-scroller{
  max-width: 1320px;
  margin: 0 auto;

  overflow-x: auto;
  overflow-y: hidden;          /* important: this is the scroll container */
  -webkit-overflow-scrolling: touch;

  /* headroom so hover-lift stays INSIDE the scroller and won't clip */
  padding: 36px 0 0;           /* >= your hover lift (30px). use 36–48px */

  scrollbar-width: none;
  -ms-overflow-style: none;

  cursor: grab;
}
.bb-books-scroller::-webkit-scrollbar{ display:none; }

/* No text selection / no native image dragging in the books strip */
.bb-books-scroller,
.bb-books-scroller *{
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* (Optional) iOS: prevent tap highlight */
.bb-books-scroller{
  -webkit-tap-highlight-color: transparent;
}




@media (min-width: 1000px){
  .bb-books{ flex-basis: 260px; }
}

@media (max-width: 1200px) and (min-width: 1000px){
  .bb-slide-text h1{
    font-size: 2.1rem;
    line-height: 1.15;
  }
  .bb-slide-text p{
    font-size: 1.15rem;
    line-height: 1.5;
  }
}

@media (max-width: 1000px){
  :root{
    --bb-books-h: 210px;  /* tune this */
    --bb-gap: 10px;       /* tiny breathing room between hero and books */
  }

  .brand-logo{
    width: 50px;
    transform: translateY(6px);
  }


  /* Make the "page viewport" exactly fill the available screen */
  .bb-viewport{
    min-height: calc(100svh - (var(--bridge-topbar-h) + var(--bridge-navbar-h)));
  }

  /* Let hero take remaining space above books */
  .bb-hero{
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 0 0;
  }

  .bb-hero-card{
    /* height: auto;
    min-height: 0;
        max-height: calc(
      100svh
      - (var(--bridge-topbar-h) + var(--bridge-navbar-h))
      - var(--bb-books-h)
      - var(--bb-gap)
    ); */
    height: clamp(360px, 56svh, 520px);
    border-radius: 16px;
  }

  /* Slide layout (your last setup) */
  .bb-slide-card{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .bb-slide-media{ order: 0; }
  .bb-slide-text { order: 1; padding: 6px 16px 16px; }

  .bb-slide-media{
    flex: 0 0 auto;
    display: flex;
    padding: 14px 14px 8px;
    justify-content: center;
    align-items: center;
    min-height: 0;
  }

  .bb-slide-media img{
    width: 88%;
    max-height: 190px;
    object-fit: contain;
    display: block;
  }

  .bb-slide-text{
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px 18px 16px;
    text-align: center;
  }

   .bb-hero-slider,
  #bbHeroSlider{
    height: 100%;
  }

  .bb-slide-text h1{ margin-bottom: .35rem; font-size: 1.5rem; line-height:1.2; }
  .bb-slide-text p{
    margin: 0;
    text-align: left;          /* readability improvement */
    max-width: 22em;           /* prevents weird-looking short lines */
    margin-inline: auto;       /* still centered as a block */
    line-height: 1.55;
    font-size: 1.05rem;
    color: rgba(0,0,0,.65);
  }

  .bb-hero-nav{
    display: none !important;
  }

  /* Navbar sizing */
  /* .navbar-brand img{ height: 2rem; } */

  /* img.brand-logo{
  width: 2rem;
  height: auto;
  display: block;
} */

  .bridge-logo .kr{ font-size: 1.4rem; }
  .bridge-logo .en{
    font-size: 0.7rem;
    margin-top: 0.15rem;
  }

  .navbar-toggler{
    padding: 0.25rem 0.45rem;
    font-size: 1.15rem;
  }

  .navbar-toggler-icon{
    width: 1.25em;
    height: 1.25em;
  }

  #navScroll .container{
    padding-left: 20px;
    padding-right: 20px;
  }

  .navbar .nav-link{
    font-weight: 500;
    color: #333;
    font-size: 1rem;
  }

  /* Bottom strip sits at bottom; uses only needed height */
  .bb-books{
    flex: 0 0 var(--bb-books-h);
    padding-bottom: env(safe-area-inset-bottom);
    padding: 10px 0 12px; /* keep small; no hover headroom on mobile */
    align-items: flex-end;
  }

  .bb-books-scroller{
    padding-top: 0;      /* was 36px */
  }

  .bb-book img{
    height: 160px; /* shrink a bit on mobile so strip stays within bb-books-h */
  }
}


@media (hover: none) and (pointer: coarse) {
  .bb-book:hover{
    transform: none !important;
    z-index: auto !important;
  }

  .bb-book:hover img{
    box-shadow: 0 10px 25px rgba(0,0,0,.15) !important;
  }

  .bb-book:hover .bb-book-overlay{
    opacity: 0 !important;
  }

  .bb-book-overlay{
    transition: none !important;
  }

  .bb-book{
    transition: none !important;
  }

  .bb-books-scroller{
    cursor: default !important;
  }
}

/* Books list page */


.bb-list-page{
  padding-top: 110px; /* your fixed-top navbar clearance */
  padding-bottom: 70px;
  background: #fff;
}

.bb-list-hero{
  padding-top: 28px;
  padding-bottom: 18px;
}

.bb-list-title{
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.bb-list-sub{
  margin: 0;
  color: rgba(0,0,0,.55);
  max-width: 60ch;
}

/* “table” as a clean grid */
.bb-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-top: 18px;
}

@media (max-width: 1200px){
  .bb-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px){
  .bb-grid{ grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 520px){
  .bb-grid{ grid-template-columns: 1fr; }
}

/* ================================
   GRID LAYOUT
================================ */

#bbBookGrid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 32px 24px !important;
  align-items: start;
}

/* medium: 4 */
@media (min-width: 900px){
  #bbBookGrid{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ================================
   BOOK CARD (YOUR STYLES)
================================ */

.bb-bookcard{
  text-decoration: none;
  color: inherit;
  display: block;
  min-width: 0;
}

.bb-bookcover{
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,.04);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);

  /* move transition here */
  transition: transform .15s ease, box-shadow .15s ease;
}

.bb-bookcover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bb-bookmeta{
  padding-top: 12px;
}

.bb-booktitle{
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.25;
  margin: 0 0 6px;
}

.bb-bookauthors{
  margin: 0;
  font-size: .95rem;
  line-height: 1.4;
  color: rgba(0,0,0,.55);
}

.bb-books-section{
  padding-top: calc(var(--bridge-topbar-h) + var(--bridge-navbar-h) + 24px);
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 900px){
  .bb-books-section{
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }
}

/* hover */
@media (hover: hover){
  .bb-bookcard:hover .bb-bookcover{
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
    transition: transform .15s ease, box-shadow .15s ease;
  }
}



