/* ============================================================
   trang-chu.css  –  Trang Chủ Phương Nam (TGDĐ-style UI)
   Dùng chung Bootstrap 5 + product-catalog.css từ layout
   ============================================================ */

/* ─── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --pn-blue:       #0766f7;
  --pn-blue-dark:  #0550d0;
  --pn-blue-light: #e8f0fe;
  --pn-red:        #e53e3e;
  --pn-orange:     #f97316;
  --pn-green:      #10b981;
  --pn-gray-bg:    #f5f6fa;
  --pn-border:     #e5e7eb;
  --pn-text:       #1a1a2e;
  --pn-muted:      #6b7280;
  --pn-radius:     10px;
  --pn-shadow-sm:  0 2px 8px rgba(0,0,0,.07);
  --pn-shadow-md:  0 4px 18px rgba(0,0,0,.11);
  --pn-max-w:      1280px;
}

.pn-body {
  background: var(--pn-gray-bg);
  font-family: 'Roboto', sans-serif;
  color: var(--pn-text);
}

/* ─── Shared wrapper ────────────────────────────────────────── */
.pn-wrap {
  max-width: var(--pn-max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* ─── Section title bar (TGDĐ style) ───────────────────────── */
.pn-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 4px;
  margin-bottom: 12px;
}
.pn-section-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pn-section-title-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.pn-section-title-icon--blue  { background: var(--pn-blue-light); color: var(--pn-blue); }
.pn-section-title-icon--red   { background: #fef2f2; color: var(--pn-red); }
.pn-section-title-icon--green { background: #ecfdf5; color: var(--pn-green); }
.pn-section-title-icon--orange{ background: #fff7ed; color: var(--pn-orange); }

.pn-section-title h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  color: var(--pn-text);
  letter-spacing: .3px;
}
.pn-section-title .pn-see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--pn-blue);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--pn-blue-light);
  transition: background .15s, color .15s;
}
.pn-section-title .pn-see-all:hover {
  background: var(--pn-blue);
  color: #fff;
}

/* ─── Category Nav Bar ──────────────────────────────────────── */
.pn-catbar {
  background: #fff;
  border-bottom: 1px solid var(--pn-border);
  position: sticky;
  top: 66px;   /* below sticky header (~66px tall) */
  z-index: 200;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.pn-catbar-inner {
  max-width: var(--pn-max-w);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pn-catbar-inner::-webkit-scrollbar { display: none; }

.pn-catbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-bottom: 2.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
  color: #4b5563;
  flex-shrink: 0;
  transition: color .15s, border-color .15s;
  cursor: pointer;
}
.pn-catbar-item i {
  font-size: 18px;
  color: var(--pn-muted);
  transition: color .15s;
}
.pn-catbar-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}
.pn-catbar-item:hover,
.pn-catbar-item.active {
  color: var(--pn-blue);
  border-bottom-color: var(--pn-blue);
}
.pn-catbar-item:hover i,
.pn-catbar-item.active i { color: var(--pn-blue); }

/* ─── Main content area ─────────────────────────────────────── */
.pn-page {
  padding: 16px 0 40px;
}

/* ─── Hero Slider ───────────────────────────────────────────── */
.pn-hero {
  margin-bottom: 16px;
}
.pn-hero-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 12px;
}
@media (max-width: 900px) {
  .pn-hero-layout { grid-template-columns: 1fr; }
  .pn-hero-side { display: none; }
}

/* Slider */
.pn-slider {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #dde3f0;
  aspect-ratio: 16 / 6;
}
.pn-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.pn-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 44px;
  position: relative;
  overflow: hidden;
}
.pn-slide-1 { background: linear-gradient(135deg, #0766f7 0%, #06b6d4 100%); }
.pn-slide-2 { background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%); }
.pn-slide-3 { background: linear-gradient(135deg, #059669 0%, #0766f7 100%); }

.pn-slide-content { position: relative; z-index: 2; }
.pn-slide-tag {
  display: inline-block;
  background: rgba(255,255,255,.25);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pn-slide-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.pn-slide-sub {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  margin-bottom: 18px;
}
.pn-slide-btn {
  display: inline-block;
  background: #fff;
  color: var(--pn-blue);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 22px;
  border-radius: 24px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transition: transform .15s, box-shadow .15s;
}
.pn-slide-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* Slide deco circle */
.pn-slide-deco {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  pointer-events: none;
}
.pn-slide-deco2 {
  position: absolute;
  right: 60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  pointer-events: none;
}

/* Dots */
.pn-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.pn-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width .25s, background .25s;
}
.pn-slider-dot.active {
  width: 24px;
  background: #fff;
}

/* Arrows */
.pn-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.85);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background .15s, transform .15s;
  backdrop-filter: blur(4px);
}
.pn-slider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.pn-slider-arrow--prev { left: 12px; }
.pn-slider-arrow--next { right: 12px; }

/* Side banners */
.pn-hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pn-side-banner {
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  text-decoration: none;
  position: relative;
  min-height: 90px;
}
.pn-side-banner-1 { background: linear-gradient(120deg, #fef3c7, #fcd34d); }
.pn-side-banner-2 { background: linear-gradient(120deg, #fce7f3, #f9a8d4); }
.pn-side-banner-3 { background: linear-gradient(120deg, #d1fae5, #6ee7b7); }

.pn-side-banner-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 2px;
}
.pn-side-banner-text span {
  font-size: 12px;
  color: #4b5563;
  font-weight: 500;
}
.pn-side-banner-icon {
  font-size: 32px;
  opacity: .75;
}

/* ─── Flash Sale ─────────────────────────────────────────────── */
.pn-section {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--pn-shadow-sm);
}

/* Flash sale header */
.pn-flash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.pn-flash-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pn-flash-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #e53e3e, #f97316);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: .5px;
}
.pn-flash-badge i { font-size: 14px; }

/* Countdown */
.pn-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pn-countdown-label {
  font-size: 12px;
  color: var(--pn-muted);
  font-weight: 500;
  margin-right: 4px;
}
.pn-countdown-block {
  background: var(--pn-text);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  width: 36px;
  height: 34px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.pn-countdown-sep {
  color: var(--pn-text);
  font-weight: 700;
  font-size: 17px;
  margin: 0 1px;
  line-height: 1;
}

/* Flash sale tabs */
.pn-flash-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pn-flash-tabs::-webkit-scrollbar { display: none; }
.pn-flash-tab {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1.5px solid var(--pn-border);
  background: #fff;
  color: var(--pn-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.pn-flash-tab.active,
.pn-flash-tab:hover {
  background: var(--pn-blue);
  border-color: var(--pn-blue);
  color: #fff;
}

/* Flash sale product track */
.pn-flash-track-wrap {
  position: relative;
}
.pn-flash-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.pn-flash-track::-webkit-scrollbar { display: none; }

/* Flash product card */
.pn-flash-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 160px;
  background: #fff;
  border: 1.5px solid var(--pn-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, border-color .15s, transform .15s;
  position: relative;
}
.pn-flash-card:hover {
  box-shadow: var(--pn-shadow-md);
  border-color: var(--pn-blue);
  transform: translateY(-2px);
}

.pn-flash-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(90deg, #e53e3e, #f97316);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.pn-flash-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: #f9fafb;
  padding: 6px;
}
.pn-flash-card-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--pn-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--pn-blue);
}

.pn-flash-card-name {
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  color: var(--pn-text);
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.pn-flash-card-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--pn-red);
  text-align: center;
}
.pn-flash-card-oldprice {
  font-size: 11.5px;
  color: var(--pn-muted);
  text-decoration: line-through;
  text-align: center;
}

/* Stock progress bar */
.pn-stock-bar-wrap {
  width: 100%;
}
.pn-stock-label {
  font-size: 10.5px;
  color: var(--pn-muted);
  margin-bottom: 3px;
  text-align: center;
}
.pn-stock-bar {
  width: 100%;
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
}
.pn-stock-fill {
  height: 100%;
  background: linear-gradient(90deg, #e53e3e, #f97316);
  border-radius: 3px;
  transition: width .4s;
}

/* Flash buy btn */
.pn-flash-buy-btn {
  display: block;
  width: 100%;
  padding: 7px;
  background: linear-gradient(90deg, #0766f7, #0550d0);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
}
.pn-flash-buy-btn:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

/* ─── Promo Banner Grid ──────────────────────────────────────── */
.pn-promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 900px) { .pn-promo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pn-promo-grid { grid-template-columns: 1fr; } }

.pn-promo-banner {
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--pn-shadow-sm);
  min-height: 95px;
  position: relative;
}
.pn-promo-banner:hover { transform: translateY(-3px); box-shadow: var(--pn-shadow-md); }
.pn-promo-a { background: linear-gradient(120deg, #eff6ff 0%, #bfdbfe 100%); }
.pn-promo-b { background: linear-gradient(120deg, #fdf4ff 0%, #e9d5ff 100%); }
.pn-promo-c { background: linear-gradient(120deg, #f0fdf4 0%, #bbf7d0 100%); }
.pn-promo-d { background: linear-gradient(120deg, #fff7ed 0%, #fed7aa 100%); }

.pn-promo-banner-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}
.pn-promo-banner-text span {
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.4;
}
.pn-promo-banner-icon {
  font-size: 34px;
  flex-shrink: 0;
  margin-left: 12px;
  opacity: .85;
}

/* ─── Product Grid (Recommendation) ────────────────────────── */
.pn-prod-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 1100px) { .pn-prod-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .pn-prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .pn-prod-grid { grid-template-columns: repeat(2, 1fr); } }

.pn-prod-card {
  background: #fff;
  border: 1.5px solid var(--pn-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, border-color .15s, transform .15s;
  position: relative;
  cursor: pointer;
}
.pn-prod-card:hover {
  box-shadow: var(--pn-shadow-md);
  border-color: var(--pn-blue);
  transform: translateY(-2px);
}

/* Labels / badges on card */
.pn-prod-card-tags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
}
.pn-prod-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  line-height: 1.5;
}
.pn-prod-tag--sale     { background: var(--pn-red); color: #fff; }
.pn-prod-tag--new      { background: var(--pn-blue); color: #fff; }
.pn-prod-tag--hot      { background: var(--pn-orange); color: #fff; }
.pn-prod-tag--free-ship { background: #10b981; color: #fff; }

/* Card image */
.pn-prod-card-img-wrap {
  padding: 14px 18px 8px;
  background: #f9fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.pn-prod-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.pn-prod-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: var(--pn-blue);
  opacity: .5;
}

/* Card body */
.pn-prod-card-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}
.pn-prod-card-brand {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--pn-blue);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pn-prod-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--pn-text);
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  flex: 1;
}
.pn-prod-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.pn-prod-card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--pn-red);
}
.pn-prod-card-oldprice {
  font-size: 12px;
  color: var(--pn-muted);
  text-decoration: line-through;
}
.pn-prod-card-discount {
  font-size: 11px;
  font-weight: 700;
  background: #fef2f2;
  color: var(--pn-red);
  padding: 1px 5px;
  border-radius: 5px;
}

/* Rating + sold */
.pn-prod-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.pn-prod-card-stars {
  color: #f59e0b;
  font-size: 11px;
  display: flex;
  gap: 1px;
}
.pn-prod-card-sold {
  font-size: 11px;
  color: var(--pn-muted);
}

/* Add to cart btn */
.pn-prod-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: var(--pn-blue-light);
  color: var(--pn-blue);
  border: 1.5px solid #c7d9fd;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  margin-top: 8px;
}
.pn-prod-card-btn:hover {
  background: var(--pn-blue);
  color: #fff;
  border-color: var(--pn-blue);
}

/* ─── Two-column feature section ────────────────────────────── */
.pn-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 680px) { .pn-feature-grid { grid-template-columns: 1fr; } }

.pn-feature-panel {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--pn-shadow-sm);
}

/* ─── Horizontal scroll section (Featured brands) ───────────── */
.pn-brand-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.pn-brand-row::-webkit-scrollbar { display: none; }
.pn-brand-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #f9fafc;
  border: 1.5px solid var(--pn-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--pn-text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pn-brand-chip:hover {
  border-color: var(--pn-blue);
  box-shadow: 0 4px 12px rgba(7,102,247,.12);
  transform: translateY(-2px);
}
.pn-brand-chip i {
  font-size: 24px;
  color: var(--pn-blue);
}

/* ─── Blog / News row ───────────────────────────────────────── */
.pn-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 768px) { .pn-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pn-news-grid { grid-template-columns: 1fr; } }

.pn-news-card {
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid var(--pn-border);
  background: #fff;
  transition: box-shadow .15s, transform .15s;
}
.pn-news-card:hover { box-shadow: var(--pn-shadow-md); transform: translateY(-2px); }
.pn-news-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.pn-news-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.pn-news-thumb-placeholder-1 { background: linear-gradient(135deg,#dbeafe,#93c5fd); color: #2563eb; }
.pn-news-thumb-placeholder-2 { background: linear-gradient(135deg,#d1fae5,#6ee7b7); color: #059669; }
.pn-news-thumb-placeholder-3 { background: linear-gradient(135deg,#fce7f3,#f9a8d4); color: #db2777; }

.pn-news-body { padding: 12px 14px 14px; }
.pn-news-cat {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--pn-blue);
  background: var(--pn-blue-light);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.pn-news-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pn-text);
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 6px;
}
.pn-news-date { font-size: 11.5px; color: var(--pn-muted); }

/* ─── Commitment strip ──────────────────────────────────────── */
.pn-commit-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--pn-shadow-sm);
  margin-bottom: 16px;
}
@media (max-width: 700px) { .pn-commit-strip { grid-template-columns: repeat(2, 1fr); } }

.pn-commit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-right: 1px solid var(--pn-border);
}
.pn-commit-item:last-child { border-right: none; }
@media (max-width: 700px) {
  .pn-commit-item:nth-child(2) { border-right: none; }
  .pn-commit-item:nth-child(even) { border-right: none; }
  .pn-commit-item { border-bottom: 1px solid var(--pn-border); }
  .pn-commit-item:nth-child(3),
  .pn-commit-item:nth-child(4) { border-bottom: none; }
}
.pn-commit-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.pn-commit-icon-1 { background: #eff6ff; color: var(--pn-blue); }
.pn-commit-icon-2 { background: #f0fdf4; color: #10b981; }
.pn-commit-icon-3 { background: #fff7ed; color: var(--pn-orange); }
.pn-commit-icon-4 { background: #fdf4ff; color: #7c3aed; }

.pn-commit-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--pn-text);
  margin-bottom: 1px;
}
.pn-commit-text span {
  font-size: 11.5px;
  color: var(--pn-muted);
}

/* ─── Back to top button ────────────────────────────────────── */
#pnBackTop {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pn-blue);
  color: #fff;
  border: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(7,102,247,.4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s, transform .2s;
  z-index: 500;
}
#pnBackTop.visible { opacity: 1; visibility: visible; }
#pnBackTop:hover { transform: translateY(-3px); }

/* ─── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 640px) {
  .pn-section { padding: 14px 14px; }
  .pn-flash-card { width: 140px; }
  .pn-slide { padding: 28px 24px; }
}
@media (max-width: 400px) {
  .pn-flash-badge { font-size: 13px; padding: 5px 10px; }
}
