/* ════════════════════════════════════════════════════════════
   F-House Portfolio — split-panel layout
   ════════════════════════════════════════════════════════════ */

.fh-portfolio { background: #fafafa; padding-bottom: 0; }

/* ── FULL-BLEED ─────────────────────────────────────────── */
body.fh-fullbleed #content,
body.fh-fullbleed .site-content,
body.fh-fullbleed #content > .ast-container,
body.fh-fullbleed .site-content > .ast-container,
body.fh-fullbleed #primary,
body.fh-fullbleed .ast-article-single,
body.fh-fullbleed .ast-article-inner,
body.fh-fullbleed .entry-content,
body.fh-fullbleed .ast-grid-common-col {
  max-width: 100% !important; width: 100% !important;
  padding: 0 !important; margin: 0 !important;
  border: 0 !important; background: transparent !important;
  box-shadow: none !important; flex: 1 1 100% !important;
}
body.fh-fullbleed #content > .ast-container { display: block !important; }
body.fh-fullbleed #secondary,
body.fh-fullbleed .widget-area { display: none !important; }

/* ── HERO ─────────────────────────────────────────────────── */
.fhpf-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
  color: #fff;
  padding: 72px 24px 80px;
  position: relative;
  overflow: hidden;
}
.fhpf-hero::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(212,160,23,.18), transparent 70%);
  border-radius: 50%;
}
.fhpf-hero__inner {
  position: relative; z-index: 1;
  max-width: 880px; margin: 0 auto; text-align: center;
}
.fhpf-hero__label {
  display: inline-block;
  background: linear-gradient(135deg, #d4a017, #e8c66a);
  color: #1a1a2e;
  font-size: 11px; font-weight: 800;
  padding: 5px 16px; border-radius: 24px;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(212,160,23,.35);
}
.fhpf-hero__title {
  font-size: clamp(26px,4vw,44px);
  font-weight: 800; line-height: 1.18;
  margin: 0 0 14px; color: #fff;
}
.fhpf-hero__title--gold { color: #e8c66a; display: inline-block; }
.fhpf-hero__desc {
  font-size: clamp(14px,1.5vw,16px);
  opacity: .85; line-height: 1.7;
  max-width: 620px; margin: 0 auto 32px;
}
.fhpf-hero__stats {
  display: flex; justify-content: center;
  gap: 48px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.fhpf-hero__stat strong {
  display: block; font-size: 28px; font-weight: 800;
  color: #e8c66a; line-height: 1.1; margin-bottom: 4px;
}
.fhpf-hero__stat span { font-size: 12px; opacity: .75; }

/* ── SPLIT PANEL ──────────────────────────────────────────── */
.fpv-split {
  padding: 64px 24px 80px;
  background: #f7f5f1;
}
.fpv-split__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

/* ── LEFT: loại công trình ───────────────────────────────── */
.fpv-cats {
  display: flex; flex-direction: column; gap: 5px;
  position: sticky; top: 88px;
}
.fpv-cat-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  background: #fff;
  border: 1.5px solid #e2ddd6;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px; font-weight: 600;
  color: #5a5a6a;
  text-align: left;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
  width: 100%;
}
.fpv-cat-btn:hover {
  border-color: #c8a050;
  color: #1a1a2e;
  background: #fffcf4;
  transform: translateX(3px);
}
.fpv-cat-btn.active {
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #fff;
  transform: translateX(0);
}
.fpv-cat-btn__icon { font-size: 18px; flex-shrink: 0; line-height: 1; }
.fpv-cat-btn__label { flex: 1; line-height: 1.3; }
.fpv-cat-btn__count {
  font-size: 10px; font-weight: 800;
  background: #d4a017; color: #1a1a2e;
  padding: 2px 7px; border-radius: 10px;
  flex-shrink: 0;
}
.fpv-cat-btn.active .fpv-cat-btn__count {
  background: rgba(255,255,255,.18);
  color: #fff;
}

/* ── RIGHT: panels ────────────────────────────────────────── */
.fpv-panel { display: none; animation: fpvIn .18s ease; }
.fpv-panel.active { display: block; }
@keyframes fpvIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fpv-panel__head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #1a1a2e;
}
.fpv-panel__head-icon { font-size: 26px; line-height: 1; }
.fpv-panel__head-title {
  font-size: 20px; font-weight: 800;
  color: #1a1a2e; margin: 0; flex: 1;
}
.fpv-panel__head-count {
  font-size: 12px; color: #8a8a9a; font-weight: 600;
}

/* ── Project list ─────────────────────────────────────────── */
.fpv-list { list-style: none; margin: 0; padding: 0; }

.fpv-item { border-bottom: 1px solid #ece9e2; }
.fpv-item:last-child { border-bottom: none; }

.fpv-item__link {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 15px 6px;
  text-decoration: none; color: #1a1a2e;
  transition: color .14s, padding-left .14s;
  gap: 12px;
}
.fpv-item__link::before {
  content: '—';
  color: #c8a050;
  font-size: 13px;
  flex-shrink: 0;
  transition: transform .14s;
}
.fpv-item__link:hover { color: #b8860b; padding-left: 8px; }
.fpv-item__link:hover::before { transform: translateX(4px); }

.fpv-item__name {
  flex: 1;
  font-size: 15px; font-weight: 600;
  line-height: 1.4;
}
.fpv-item__meta {
  font-size: 12.5px; color: #8a8a9a;
  font-weight: 700; flex-shrink: 0;
  letter-spacing: .04em;
}

.fpv-empty {
  padding: 48px 0;
  text-align: center;
  color: #8a8a9a; font-size: 14px;
  font-style: italic;
}

/* ── CTA ─────────────────────────────────────────────────── */
.fhpf-cta {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  padding: 64px 24px 72px;
  text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.fhpf-cta::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #d4a017, transparent);
}
.fhpf-cta__inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.fhpf-cta h2 {
  font-size: clamp(20px,2.5vw,28px);
  font-weight: 800; margin: 0 0 12px; color: #fff;
}
.fhpf-cta p { opacity: .84; margin: 0 0 28px; font-size: 15px; }
.fhpf-cta__btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.fhpf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent;
  transition: all .22s;
}
.fhpf-btn--gold {
  background: linear-gradient(135deg, #d4a017, #e8c66a);
  color: #1a1a2e;
  box-shadow: 0 4px 16px rgba(212,160,23,.4);
}
.fhpf-btn--gold:hover { background: linear-gradient(135deg,#b8860b,#d4a017); transform: translateY(-2px); }
.fhpf-btn--outline { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.fhpf-btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-2px); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 820px) {
  .fpv-split__inner { grid-template-columns: 1fr; gap: 24px; }

  .fpv-cats {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    position: static;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .fpv-cats::-webkit-scrollbar { display: none; }

  .fpv-cat-btn {
    flex-shrink: 0;
    padding: 9px 14px;
    font-size: 12.5px;
    border-radius: 8px;
    white-space: nowrap;
    width: auto;
  }
  .fpv-cat-btn:hover { transform: none; }
  .fpv-cat-btn__icon { font-size: 16px; }
}

@media (max-width: 480px) {
  .fhpf-hero { padding: 52px 20px 60px; }
  .fhpf-hero__stats { gap: 20px; }
  .fhpf-hero__stat strong { font-size: 22px; }
  .fpv-split { padding: 40px 16px 56px; }
  .fpv-item__name { font-size: 14px; }
}
