/* =====================================================================
   POG.VN – B5 THANH CAM KẾT
   Markup: template-parts/benefits-bar-v2.php
   Phối màu: thẻ trắng nổi trên mép dưới hero · icon Navy trên nền Navy nhạt (tin cậy)
             · rê chuột → icon chuyển cam thương hiệu (hành động) · chữ Dark / Gray
   Cập nhật: 2026-11-17 (B5). Chỉ dùng biến --pog-*.
   ===================================================================== */
.pog-ben {
  position: relative;
  z-index: 3;
  margin-top: -44px;            /* nổi lên đè mép dưới hero (hero chừa 72–96px) */
  margin-bottom: clamp(32px, 4vw, 48px);
  font-family: var(--pog-font);
}
.pog-ben__wrap {
  max-width: var(--pog-container);
  margin: 0 auto;
  padding: 0 var(--pog-gutter);
  box-sizing: border-box;
}
.pog-ben__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 10px;
  list-style: none;
  background: var(--pog-white);
  border: 1px solid var(--pog-border);
  border-radius: var(--pog-radius-xl);
  box-shadow: 0 18px 40px -18px rgba(var(--pog-navy-rgb), 0.28), var(--pog-shadow-sm);
}
.pog-ben__item {
  position: relative;
  margin: 0;
}
/* Vạch ngăn mảnh giữa các ô */
.pog-ben__item + .pog-ben__item::before {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  left: 0;
  width: 1px;
  background: var(--pog-border);
}

.pog-ben__link {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 14px 16px;
  box-sizing: border-box;
  border-radius: var(--pog-radius-lg);
  color: var(--pog-dark);
  text-decoration: none;
  transition: background var(--pog-transition-base);
}
.pog-ben__link:hover {
  background: var(--pog-bg-soft);
  color: var(--pog-dark);
}
.pog-ben__link:focus-visible {
  outline: none;
  box-shadow: var(--pog-focus-ring);
}

.pog-ben__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--pog-navy-light);
  color: var(--pog-navy);
  transition: background var(--pog-transition-base), color var(--pog-transition-base), transform var(--pog-transition-base);
}
.pog-ben__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pog-ben__link:hover .pog-ben__icon {
  background: var(--pog-primary);
  color: var(--pog-white);
  transform: translateY(-2px);
}

.pog-ben__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.pog-ben__title {
  color: var(--pog-dark);
  font-size: 15px;
  font-weight: var(--pog-fw-bold);
  line-height: 1.3;
}
.pog-ben__sub {
  color: var(--pog-gray);
  font-size: 13px;
  font-weight: var(--pog-fw-medium);
  line-height: 1.4;
}

.pog-ben__arrow {
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  fill: none;
  stroke: var(--pog-primary);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--pog-transition-base), transform var(--pog-transition-base);
}
.pog-ben__link:hover .pog-ben__arrow {
  opacity: 1;
  transform: none;
}

/* =====================================================================
   KHỔ MÀN HÌNH
   ===================================================================== */
/* Laptop nhỏ: thu gọn khoảng cách, bỏ mũi tên */
@media (min-width: 993px) and (max-width: 1200px) {
  .pog-ben__link {
    gap: 12px;
    padding: 12px;
  }
  .pog-ben__icon {
    width: 44px;
    height: 44px;
  }
  .pog-ben__title {
    font-size: 14px;
  }
  .pog-ben__sub {
    font-size: 12.5px;
  }
  .pog-ben__arrow {
    display: none;
  }
}

/* Tablet & điện thoại: lưới 2×2 */
@media (max-width: 992px) {
  .pog-ben {
    margin-top: -36px;
  }
  .pog-ben__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 6px;
    border-radius: var(--pog-radius-lg);
  }
  .pog-ben__item + .pog-ben__item::before {
    display: none;
  }
  /* Kẻ ngăn dạng chữ thập cho lưới 2×2 */
  .pog-ben__item:nth-child(odd)::after {
    content: "";
    position: absolute;
    top: 18%;
    bottom: 18%;
    right: 0;
    width: 1px;
    background: var(--pog-border);
  }
  .pog-ben__item:nth-child(-n+2) {
    border-bottom: 1px solid var(--pog-border);
  }
  .pog-ben__arrow {
    display: none;
  }
}

@media (max-width: 560px) {
  .pog-ben__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }
  .pog-ben__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .pog-ben__icon svg {
    width: 20px;
    height: 20px;
  }
  .pog-ben__title {
    font-size: 14px;
  }
  .pog-ben__sub {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pog-ben__link,
  .pog-ben__icon,
  .pog-ben__arrow {
    transition: none;
  }
}
