/* ==========================================================================
   pakgroup.css
   Page-specific styles for pakgroup.html
   Shared styles (mobile nav, floating claim, pk-img-nav) → shared.css
   ========================================================================== */


/* --------------------------------------------------------------------------
   CREDIT CARD GRID (Dark/Blue theme with badges)
   -------------------------------------------------------------------------- */
.credit-page,
.credit-page *,
.credit-grid,
.credit-grid *,
.credit-card,
.credit-card * {
  box-sizing: border-box;
}

.credit-page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 6px 24px;
  background: #fff;
}

.entry-content .credit-page,
.site-main .credit-page,
.content-area .credit-page,
.elementor-widget-container .credit-page,
.wp-block-html .credit-page,
.entry-content .credit-grid,
.site-main .credit-grid,
.content-area .credit-grid,
.elementor-widget-container .credit-grid,
.wp-block-html .credit-grid {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.credit-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

/* Card */
.credit-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  text-decoration: none;
  color: #fff;
  padding: 16px 12px 14px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #32485f 0%, #24384d 55%, #1c2b3b 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 8px 20px rgba(18,32,49,.10),
    0 2px 6px rgba(18,32,49,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.credit-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 26px rgba(18,32,49,.14),
    0 4px 10px rgba(18,32,49,.08);
}

/* Small badge */
.credit-card { --credit-badge-text: "HOT"; }
.credit-card:nth-child(2n) { --credit-badge-text: "VIP"; }
.credit-card:nth-child(3n) { --credit-badge-text: "NEW"; }

.credit-card::after {
  content: var(--credit-badge-text);
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  min-width: 40px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f0c55b;
  color: #4b3a12;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .6px;
  text-align: center;
}

/* Brand header */
.credit-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  min-width: 0;
  padding-right: 48px; /* Reserve badge space */
}

.credit-head img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #fff;
  border: 2px solid rgba(255,255,255,.65);
}

.credit-head span {
  display: block;
  min-width: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Info boxes */
.credit-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.credit-box {
  background: #f8f4ea;
  border-radius: 16px;
  padding: 10px 8px 8px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(0,0,0,.04);
}

.credit-label {
  width: 100%;
  min-height: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  color: #756e60;
  font-size: 8px;
  line-height: 1.25;
  font-weight: 700;
}

.credit-value {
  width: 100%;
  min-height: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  color: #d99a17;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

/* Button */
.credit-btn {
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ff5a4a 0%, #e8291d 55%, #c91810 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(201,24,16,.22);
  overflow: hidden;
}

.credit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0),
    rgba(255,255,255,.35),
    rgba(255,255,255,0)
  );
  transform: skewX(-20deg);
  animation: creditBtnShine 2.8s linear infinite;
}

@keyframes creditBtnShine {
  0%   { left: -120%; }
  100% { left:  140%; }
}

/* Mobile */
@media (max-width: 480px) {
  .credit-page         { padding: 10px 4px 20px; }
  .credit-grid         { gap: 8px; }
  .credit-card         { padding: 12px 10px 12px; border-radius: 20px; }

  .credit-card::after {
    top: 10px;
    right: 10px;
    min-width: 36px;
    padding: 4px 7px;
    font-size: 7px;
  }

  .credit-head         { gap: 8px; margin-bottom: 10px; padding-right: 42px; }
  .credit-head img     { width: 34px; height: 34px; flex: 0 0 34px; }
  .credit-head span    { font-size: 14px; }
  .credit-info         { gap: 8px; margin-bottom: 10px; }
  .credit-box          { min-height: 82px; padding: 8px 6px 7px; border-radius: 14px; }
  .credit-label        { min-height: 22px; font-size: 7px; }
  .credit-value        { min-height: 20px; font-size: 16px; }
  .credit-btn          { font-size: 12px; padding: 11px 6px; border-radius: 15px; }
}

/* Tablet / Desktop */
@media (min-width: 768px) {
  .credit-page         { padding: 14px 8px 28px; }
  .credit-grid         { gap: 16px; }
  .credit-card         { padding: 14px 14px 12px; border-radius: 24px; }
  .credit-card::after  { top: 12px; right: 12px; }
  .credit-head         { margin-bottom: 12px; padding-right: 50px; }
  .credit-head img     { width: 38px; height: 38px; flex: 0 0 38px; }
  .credit-head span    { font-size: 16px; }
  .credit-info         { gap: 10px; margin-bottom: 10px; }
  .credit-box          { min-height: 86px; padding: 8px 8px 7px; }
  .credit-label        { min-height: 22px; font-size: 8px; }
  .credit-value        { min-height: 20px; font-size: 18px; }
  .credit-btn          { font-size: 13px; padding: 12px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .credit-card,
  .credit-btn,
  .credit-btn::before {
    transition: none !important;
    animation: none !important;
  }
}
