/* =========================================================
   BLH – Project Details Page (FINAL)
   - Top row: Slider (left) + Overview (right)
   - Slider unchanged (arrows + dots)
   - Gallery: marquee + draggable + hover pill
========================================================= */

/* =========================================================
   0) TOKENS
========================================================= */
:root{
  --blh-green:#0a8a4b;
  --blh-text:#101828;
  --blh-muted:#667085;
  --blh-bg:#f3f5f7;

  --blh-container:1320px;
  --blh-pad:24px;

  --blh-radius-lg:18px;
  --blh-radius-md:14px;

  --blh-shadow-soft:0 18px 45px rgba(0,0,0,.08);
  --blh-shadow-pill:0 14px 30px rgba(0,0,0,.12);
}

/* =========================================================
   1) CONTAINER (align with header)
========================================================= */
body.single-blh_project .blh-pd__container{
  width: 100%;
  max-width: var(--blh-container);
  margin: 0 auto;
  padding: 0 var(--blh-pad);
  box-sizing: border-box;
}

@media (max-width:640px){
  body.single-blh_project .blh-pd__container{ padding: 0 16px; }
}

/* =========================================================
   2) TOP ROW: Slider + Overview (same line)
========================================================= */
body.single-blh_project .blh-pd-top{
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;

  margin: 40px 0 32px; /* move spacing here */
}

@media (max-width:900px){
  body.single-blh_project .blh-pd-top{
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* =========================================================
   3) SLIDER (styles kept; just remove outer margin)
========================================================= */
body.single-blh_project .blh-pd-slider{
  position: relative;
  margin: 0; /* IMPORTANT: spacing is on .blh-pd-top now */
  border-radius: var(--blh-radius-lg);
  overflow: hidden;
  background: var(--blh-bg);
  isolation: isolate;
  font-size: 0;
  line-height: 0;
}

body.single-blh_project .blh-pd-track{
  display: flex;
  transition: transform .45s ease;
  will-change: transform;
}

body.single-blh_project .blh-pd-slide{
  min-width: 100%;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

body.single-blh_project .blh-pd-img{
  width: 100%;
  height: clamp(220px, 38vw, 420px);
  object-fit: cover;
  display: block;
}

/* arrows */
body.single-blh_project .blh-pd-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;

  transition: background .2s ease, transform .2s ease;
}

body.single-blh_project .blh-pd-prev{ left: 16px; }
body.single-blh_project .blh-pd-next{ right: 16px; }

body.single-blh_project .blh-pd-nav:hover{
  background: rgba(0,0,0,.65);
  transform: translateY(-50%) scale(1.05);
}

@media (max-width:640px){
  body.single-blh_project .blh-pd-nav{
    width: 46px;
    height: 46px;
    font-size: 26px;
  }
  body.single-blh_project .blh-pd-prev{ left: 12px; }
  body.single-blh_project .blh-pd-next{ right: 12px; }
}

/* dots */
body.single-blh_project .blh-pd-dots{
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 0;
  margin: 0;
  background: transparent;
  font-size: 0;
  line-height: 0;
}

body.single-blh_project .blh-pd-dot{
  appearance: none;
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

body.single-blh_project .blh-pd-dot.is-active{
  background: #fff;
  transform: scale(1.15);
}

@media (max-width:640px){
  body.single-blh_project .blh-pd-dots{ bottom: 12px; gap: 9px; }
}

/* =========================================================
   4) OVERVIEW CARD (right column)
========================================================= */
body.single-blh_project .blh-pd-overview{
  background: #fff;
  border-radius: var(--blh-radius-lg);
  padding: 24px 26px;
  box-shadow: var(--blh-shadow-soft);
}

body.single-blh_project .blh-pd-overview h3{
  font-size: 22px;
  margin: 0 0 18px;
}

body.single-blh_project .blh-pd-meta{
  display: grid;
  row-gap: 14px;
  margin: 0;
}

body.single-blh_project .blh-pd-row dt{
  font-size: 13px;
  font-weight: 600;
  color: var(--blh-muted);
}

body.single-blh_project .blh-pd-row dd{
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--blh-text);
}

/* =========================================================
   5) PAST PROJECT GALLERY (CAROUSEL)
========================================================= */
body.single-blh_project .blh-pd-carousel{
  padding: 10px 0 70px;
}

body.single-blh_project .blh-pd-carousel__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin: 10px 0 22px;
}

body.single-blh_project .blh-pd-eyebrow{
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 12px;
  color: var(--blh-green);
}

body.single-blh_project .blh-pd-title{
  margin: 6px 0 0;
  font-size: 46px;
  line-height: 1.05;
}

@media (max-width: 900px){
  body.single-blh_project .blh-pd-title{ font-size: 34px; }
  body.single-blh_project .blh-pd-carousel__head{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* Slaze button wrapper (keep theme style) */
body.single-blh_project .blh-pd-carousel__head .theme-btn.btn-one{
  margin: 0;
}
body.single-blh_project .blh-pd-carousel__head .theme-btn.btn-one a{
  text-decoration: none;
}

/* scroll */
body.single-blh_project .blh-pd-trackwrap{
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
body.single-blh_project .blh-pd-trackwrap::-webkit-scrollbar{ display:none; }

body.single-blh_project .blh-pd-cards{
  display:flex;
  gap: 26px;
  padding-bottom: 0;
  padding-right: 24px;
  width: max-content;
}

/* card */
body.single-blh_project .blh-pd-card{
  width: 340px;
  flex: 0 0 auto;
}

@media (max-width: 900px){
  body.single-blh_project .blh-pd-card{ width: 280px; }
}

/* wrapper */
body.single-blh_project .blh-pd-card__wrap{
  position: relative;
}

/* image wrapper */
body.single-blh_project .blh-pd-card__img{
  border-radius: var(--blh-radius-lg);
  overflow: hidden;
  background: #f2f4f7;
  box-shadow: var(--blh-shadow-soft);
}

body.single-blh_project .blh-pd-card__img img{
  width: 100%;
  height: 360px;
  display: block;
  object-fit: cover;
  object-position: center 35%;
  transform: none !important;
  transition: none !important;
}

@media (max-width: 900px){
  body.single-blh_project .blh-pd-card__img img{ height: 320px; }
}

/* placeholder */
body.single-blh_project .blh-pd-card__ph{
  width: 100%;
  height: 360px;
  background: #eef2f6;
  display:block;
}
@media (max-width: 900px){
  body.single-blh_project .blh-pd-card__ph{ height: 320px; }
}

/* pill hidden by default */
body.single-blh_project .blh-pd-card__pill{
  position:absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;

  background:#fff;
  border-radius: var(--blh-radius-md);
  padding: 14px 16px;
  box-shadow: var(--blh-shadow-pill);

  display:grid;
  gap: 4px;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

body.single-blh_project .blh-pd-card__wrap:hover .blh-pd-card__pill{
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px){
  body.single-blh_project .blh-pd-card__pill{
    opacity: 1;
    transform: none;
  }
}

/* category */
body.single-blh_project .blh-pd-card__meta{
  font-size: 13px;
  font-weight: 800;
  color: var(--blh-green);
}

/* ONLY title clickable */
body.single-blh_project .blh-pd-card__title{
  pointer-events: auto;
  display: inline-block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--blh-text);
  text-decoration: none;
}

body.single-blh_project .blh-pd-card__title:hover{
  color: var(--blh-green);
}

/* remove arrow */
body.single-blh_project .blh-pd-card__arrow{ display:none !important; }

/* ===== Stop browser image dragging (ghost image) ===== */
body.single-blh_project [data-blh-marquee] img{
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* Make marquee feel draggable */
body.single-blh_project [data-blh-marquee]{
  cursor: grab;
}
body.single-blh_project [data-blh-marquee].is-dragging{
  cursor: grabbing;
}

/* =========================================
   FIX: make card title clickable
========================================= */

/* pill 不要 pointer-events:none（不然里面的 a 也点不到） */
body.single-blh_project .blh-pd-card__pill{
  pointer-events: auto !important;
  z-index: 5;
}

/* meta 不需要点（避免误触） */
body.single-blh_project .blh-pd-card__meta{
  pointer-events: none;
}

/* title 必须可以点 + 在最上层 */
body.single-blh_project .blh-pd-card__title{
  pointer-events: auto !important;
  position: relative;
  z-index: 6;
}

/* 保险：不要让卡片 img 或 wrapper 覆盖链接 */
body.single-blh_project .blh-pd-card__wrap{
  position: relative;
}
body.single-blh_project .blh-pd-card__img{
  position: relative;
  z-index: 1;
}

/* =========================================
   FIX: allow title link click inside pill
========================================= */

/* pill 需要接收 pointer（否则里面 a 永远点不到） */
body.single-blh_project .blh-pd-card__pill{
  pointer-events: auto !important;
  z-index: 5;
}

/* meta 不需要点，避免误触 */
body.single-blh_project .blh-pd-card__meta{
  pointer-events: none;
}

/* title：必须可点 + 在最上层 */
body.single-blh_project .blh-pd-card__title{
  pointer-events: auto !important;
  position: relative;
  z-index: 6;
}
