/* ============================================================
   UPBoardExam.com — new unit cards (mockup layout, brand palette)
   Card + section styles only. The rest of the page uses
   assets/style.css (original light theme) untouched.
   Palette: navy #14181F · amber #E8A33D · amber-deep #C77E1B
            teal-deep #2F6690 · green #2E8B57
   ============================================================ */

/* ============================================================
   UNIT CARD
   ============================================================ */
.pcard {
  background: #FFFFFF;
  border: 1px solid var(--line, #E6DFCF);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  color: var(--ink, #22283A);
  box-shadow: var(--shadow, 0 10px 30px -12px rgba(20, 24, 31, 0.18));
  transition: transform .18s ease, box-shadow .18s ease;
}
.pcard:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -14px rgba(20, 24, 31, 0.28); }

/* --- thumbnail / video facade --- */
.pthumb {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 12px 14px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  overflow: hidden;
  background: var(--navy, #14181F);
}
.pthumb .bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* corner chips — navy + amber, flush to the card corners (like original .unit-index) */
.pthumb .chip {
  position: absolute; top: 0; z-index: 2;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  line-height: 1.4;
}
.pthumb .chip.unit {
  left: 0;
  background: var(--navy, #14181F);
  color: var(--amber, #E8A33D);
  padding: 6px 14px 6px 12px;
  border-radius: 0 0 12px 0;
}
.pthumb .chip.marks {
  right: 0;
  background: var(--navy, #14181F);
  color: #FFFFFF;
  padding: 6px 12px 6px 14px;
  border-radius: 0 0 0 12px;
}

/* title kept for SEO + screen readers + iframe title, hidden visually
   (the video thumbnail already carries the title art) */
.pthumb h3, .pthumb .en {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.watch-btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber, #E8A33D); color: var(--navy, #14181F);
  font-family: var(--font-body); font-size: 12.5px; font-weight: 800;
  border: 0; border-radius: 8px; padding: 8px 15px; cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(20, 24, 31, .65);
  transition: background .15s ease, transform .1s ease;
}
.watch-btn:hover { background: var(--amber-deep, #C77E1B); color: #fff; }
.watch-btn:active { transform: scale(.97); }
.pthumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5; }

/* centered YouTube play logo on video thumbnails */
.pthumb .yt-center {
  position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.pthumb .yt-center svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 10px rgba(0,0,0,.55)); transition: transform .15s ease; }
.pthumb .yt-center:hover svg { transform: scale(1.09); }

/* video lightbox modal */
.p2-modal {
  position: fixed; inset: 0; z-index: 999;
  display: none; align-items: center; justify-content: center;
  background: rgba(8, 10, 20, .85); padding: 20px;
}
.p2-modal.open { display: flex; }
.p2-modal .box { position: relative; width: min(880px, 100%); }
.p2-modal .frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.p2-modal .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p2-modal .mclose {
  position: absolute; top: -46px; right: 0;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: #fff; color: #14181F; font-size: 22px; font-weight: 800; line-height: 1;
  cursor: pointer;
}
.p2-modal .mclose:hover { background: var(--amber, #E8A33D); }
@media (max-width: 640px) { .p2-modal .mclose { top: -42px; } }

/* per-unit artwork gradients (shown when there is no thumbnail image) */
.pthumb.t1 { background: radial-gradient(120% 150% at 80% 20%, #3B1D8F 0%, #1B1464 45%, #0B0B2B 100%); }
.pthumb.t2 { background: radial-gradient(120% 150% at 78% 25%, #1D4ED8 0%, #172554 50%, #090E22 100%); }
.pthumb.t3 { background: radial-gradient(120% 150% at 80% 22%, #6D28D9 0%, #312E81 48%, #0D0A28 100%); }
.pthumb.t4 { background: radial-gradient(120% 150% at 80% 22%, #B45309 0%, #7C2D12 48%, #1C0A05 100%); }
.pthumb.t5 { background: radial-gradient(120% 150% at 80% 22%, #0E7490 0%, #164E63 48%, #04121B 100%); }
.pthumb.t6 { background: radial-gradient(120% 150% at 80% 22%, #1E40AF 0%, #1E3A8A 48%, #060B1E 100%); }
.pthumb.t7 { background: radial-gradient(120% 150% at 80% 22%, #7C3AED 0%, #4C1D95 48%, #100826 100%); }
.pthumb.t8 { background: radial-gradient(120% 150% at 80% 22%, #047857 0%, #064E3B 48%, #03130E 100%); }
.pthumb.t9 { background: radial-gradient(120% 150% at 80% 22%, #0891B2 0%, #155E75 48%, #041318 100%); }
.pthumb.t10 { background: radial-gradient(120% 150% at 80% 22%, #9D174D 0%, #831843 48%, #2A0716 100%); }

/* placeholder thumbnail (subject has no video yet): show title + art, "video soon" chip */
.pthumb.novid { justify-content: center; align-items: center; text-align: center; padding: 16px; }
.pthumb.novid .art {
  position: absolute; right: auto; left: 50%; top: 26%; transform: translate(-50%, -50%);
  font-size: 76px; opacity: .3;
}
.pthumb.novid h3 {
  position: static; width: auto; height: auto; margin: 26px 0 0; clip: auto; overflow: visible; white-space: normal;
  color: #fff; font-family: var(--font-display); font-size: 19px; font-weight: 800; line-height: 1.25;
  z-index: 1; text-shadow: 0 2px 10px rgba(0,0,0,.5); max-width: 100%;
}
.pthumb.novid .en {
  position: static; width: auto; height: auto; margin: 2px 0 10px; clip: auto; overflow: visible; white-space: normal;
  color: #D8DEED; font-size: 13px; font-weight: 600; z-index: 1;
}
.pthumb.novid .soon {
  z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 11.5px; font-weight: 800; padding: 6px 14px; border-radius: 999px;
}

/* channel subscribe banner (subjects without a playlist embed) */
.p2-channel {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: #FFFFFF; border: 1px solid var(--line, #E6DFCF); border-radius: 16px;
  padding: 18px 22px; margin-bottom: 28px;
  box-shadow: var(--shadow, 0 10px 30px -12px rgba(20, 24, 31, 0.18));
}
.p2-channel .left { display: flex; align-items: center; gap: 14px; }
.p2-channel .yt-logo { width: 40px; height: 40px; flex: none; }
.p2-channel .t { color: var(--navy, #14181F); font-family: var(--font-display); font-size: 17px; font-weight: 800; margin: 0; }
.p2-channel .s { color: var(--muted, #6B7280); font-size: 13px; margin: 2px 0 0; }
.p2-channel .yt-sub {
  background: #FF0000; color: #fff; font-size: 14px; font-weight: 800;
  border-radius: 9px; padding: 12px 22px; white-space: nowrap; transition: filter .15s ease;
}
.p2-channel .yt-sub:hover { filter: brightness(.9); }

/* --- trust row --- */
.p2-trust-row {
  display: flex;
  border-bottom: 1px solid var(--line, #E6DFCF);
  background: #FAFBFD;
}
.p2-trust-row span {
  flex: 1;
  text-align: center;
  font-size: 10.5px; font-weight: 700; color: #4B5568;
  padding: 7px 4px;
  border-right: 1px solid var(--line, #E6DFCF);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p2-trust-row span:last-child { border-right: 0; }

/* --- card body (compact) --- */
.pcard .pbody { padding: 10px 11px 11px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

/* sample buttons */
.p2-samples { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.p2-sample {
  border-radius: 9px; padding: 6px; text-align: center;
  display: flex; flex-direction: column; gap: 1px;
  transition: filter .15s ease;
}
.p2-sample:hover { filter: brightness(.97); }
.p2-sample strong { font-size: 12.5px; font-weight: 800; }
.p2-sample span { font-size: 10.5px; color: var(--muted, #6B7280); }
.p2-sample.green { background: #EDF6F0; border: 1px solid #C8E3D2; }
.p2-sample.green strong { color: var(--green, #2E8B57); }
.p2-sample.blue { background: #EEF4F8; border: 1px solid #C6DAE7; }
.p2-sample.blue strong { color: var(--teal-deep, #2F6690); }

/* chapter-list variant of the blue box — left-aligned bullets, shown first */
.p2-sample.chap { order: -1; justify-content: center; align-items: flex-start; text-align: left; gap: 3px; cursor: default; padding-left: 10px; }
.p2-sample.chap:hover { filter: none; }
.p2-sample.chap span {
  color: var(--teal-deep, #2F6690); font-weight: 700; font-size: 9px; line-height: 1.3;
  padding-left: 11px; position: relative;
}
.p2-sample.chap span::before {
  content: "•";
  position: absolute; left: 0;
  color: var(--teal-deep, #2F6690);
}

/* price band — navy + amber (brand) */
.p2-price {
  display: block; border-radius: 10px; overflow: hidden; text-align: center;
  box-shadow: 0 8px 18px -8px rgba(20, 24, 31, .45);
  transition: transform .12s ease;
}
.p2-price:hover { transform: scale(1.015); }
.p2-price .main {
  display: block;
  background: linear-gradient(90deg, var(--navy-soft, #1E2532), var(--navy, #14181F));
  color: #fff; font-family: var(--font-display); font-size: 15.5px; font-weight: 800;
  padding: 8px 12px;
}
.p2-price .main .amt { color: var(--amber, #E8A33D); font-size: 23px; font-weight: 800; vertical-align: -1px; }
.p2-price .main s { color: #9AA3B0; font-weight: 600; font-size: 13px; margin-left: 6px; }
.p2-price .sub {
  display: block;
  background: var(--amber, #E8A33D);
  color: var(--navy, #14181F); font-size: 11.5px; font-weight: 800; padding: 5px 12px;
}

/* includes grid */
.p2-inc-label { font-size: 12px; font-weight: 800; color: var(--ink, #22283A); margin: 0; }
.p2-inc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.p2-inc {
  border: 1px solid var(--line, #E6DFCF); border-radius: 7px;
  padding: 5px 5px; text-align: left;
  display: flex; flex-direction: row; align-items: center; gap: 5px;
  background: #fff;
}
.p2-inc svg.ic { width: 15px; height: 15px; flex: none; }
.p2-inc .tx { font-size: 9px; font-weight: 700; color: #3D4459; line-height: 1.25; }

/* social proof */
.p2-proof {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: #EDF6F0; border: 1px solid #C8E3D2; border-radius: 9px;
  padding: 7px 11px; font-size: 11.5px; font-weight: 700;
}
.p2-proof .buyers { color: var(--green, #2E8B57); }
.p2-proof .rating { color: var(--amber-deep, #C77E1B); white-space: nowrap; }

/* offer starburst seal on the bundle CTA (top-right corner) */
.p2-cta-wrap { margin-top: auto; position: relative; }
.p2-limited {
  position: absolute; top: -11px; right: -5px; z-index: 3;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff; font-size: 7.5px; font-weight: 800; letter-spacing: 0; line-height: 1.1;
  transform: rotate(-14deg);
  clip-path: polygon(50.0% 0.0%, 40.4% 14.3%, 25.0% 6.7%, 23.8% 23.8%, 6.7% 25.0%, 14.3% 40.4%, 0.0% 50.0%, 14.3% 59.6%, 6.7% 75.0%, 23.8% 76.2%, 25.0% 93.3%, 40.4% 85.7%, 50.0% 100.0%, 59.6% 85.7%, 75.0% 93.3%, 76.2% 76.2%, 93.3% 75.0%, 85.7% 59.6%, 100.0% 50.0%, 85.7% 40.4%, 93.3% 25.0%, 76.2% 23.8%, 75.0% 6.7%, 59.6% 14.3%);
  animation: p2pulse 1.6s ease-in-out infinite;
}
@keyframes p2pulse {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(220,38,38,.5)); }
  50% { filter: drop-shadow(0 0 10px rgba(220,38,38,.95)); }
}

/* bottom bundle CTA — brand amber (same family as .buy-btn) */
.p2-card-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--amber, #E8A33D);
  color: var(--navy, #14181F); font-size: 12.5px; font-weight: 800;
  border-radius: 10px; padding: 10px 10px; text-align: center;
  box-shadow: 0 8px 18px -8px rgba(232, 163, 61, .55);
  transition: filter .15s ease;
}
.p2-card-cta:hover { filter: brightness(1.06); }
.p2-card-cta .arr { font-size: 15px; }
.p2-card-cta .ctabig { font-size: 18px; font-weight: 800; vertical-align: -1px; }

/* ============================================================
   SIDEBAR — "यूनिट क्यों खरीदें?" (sits inside the unit grid)
   ============================================================ */
.p2-side {
  background: #FFFFFF;
  border: 1px solid var(--line, #E6DFCF);
  border-radius: 16px;
  color: var(--ink, #22283A);
  padding: 22px 20px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow, 0 10px 30px -12px rgba(20, 24, 31, 0.18));
}
.p2-side h3 { font-size: 19px; font-weight: 800; color: var(--navy, #14181F); margin: 0 0 14px; }
.p2-side ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.p2-side li { display: flex; gap: 10px; font-size: 13.5px; font-weight: 600; color: #303952; line-height: 1.45; }
.p2-side li .ck { color: var(--green, #2E8B57); font-weight: 800; flex: none; }
.p2-deal {
  border: 1.5px solid #EFD9B4; background: #FFFBF2; border-radius: 12px; padding: 16px;
}
.p2-deal .tag { color: var(--amber-deep, #C77E1B); font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 6px; }
.p2-deal .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.p2-deal .name { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--navy, #14181F); margin: 0; }
.p2-deal .was { color: #9CA3AF; font-size: 13px; }
.p2-deal .price-blk { text-align: right; }
.p2-deal .now {
  display: inline-block; background: var(--navy, #14181F); color: var(--amber, #E8A33D);
  font-family: var(--font-display); font-size: 17px; font-weight: 800;
  border-radius: 999px; padding: 6px 14px;
}
.p2-deal .save { display: block; color: var(--amber-deep, #C77E1B); font-size: 11px; font-weight: 800; margin-top: 4px; }
.p2-deal .buy {
  display: block; text-align: center; margin-top: 12px;
  background: var(--amber, #E8A33D); color: var(--navy, #14181F);
  font-size: 14px; font-weight: 800; border-radius: 9px; padding: 11px;
  transition: filter .15s ease;
}
.p2-deal .buy:hover { filter: brightness(1.06); }

/* booster pack (compact, inside sidebar) */
.p2-booster {
  margin-top: 14px;
  background: linear-gradient(115deg, #246B45 0%, var(--green, #2E8B57) 70%);
  border-radius: 12px; padding: 14px 16px; color: #fff;
}
.p2-booster .kick { font-size: 11px; font-weight: 700; opacity: .85; margin: 0 0 2px; }
.p2-booster .name { font-family: var(--font-display); font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.p2-booster .price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.p2-booster .was { opacity: .7; font-size: 13px; }
.p2-booster .now { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.p2-booster ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.p2-booster li { font-size: 12px; font-weight: 600; opacity: .95; }
.p2-booster .buy {
  display: block; text-align: center;
  background: var(--amber, #E8A33D); color: var(--navy, #14181F);
  font-size: 13.5px; font-weight: 800; border-radius: 9px; padding: 10px;
  transition: filter .15s ease;
}
.p2-booster .buy:hover { filter: brightness(1.06); }

/* ============================================================
   YOUTUBE CHANNEL / PLAYLIST BLOCK (fills empty grid cells)
   ============================================================ */
.p2-yt {
  grid-column: span 2;
  background: #FFFFFF;
  border: 1px solid var(--line, #E6DFCF);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow, 0 10px 30px -12px rgba(20, 24, 31, 0.18));
}
.p2-yt .yt-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.p2-yt .yt-logo { width: 34px; height: 34px; flex: none; }
.p2-yt .yt-head .t { color: var(--navy, #14181F); font-family: var(--font-display); font-size: 16px; font-weight: 800; margin: 0; }
.p2-yt .yt-head .s { color: var(--muted, #6B7280); font-size: 12.5px; margin: 2px 0 0; }
.p2-yt .yt-embed { position: relative; flex: none; aspect-ratio: 16 / 9; background: var(--navy, #14181F); }
.p2-yt .yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p2-yt .yt-actions { display: flex; gap: 10px; padding: 12px 16px; flex-wrap: wrap; margin-top: auto; align-items: flex-end; }
.p2-yt .yt-sub {
  flex: 1; text-align: center;
  background: #FF0000; color: #fff;
  font-size: 13.5px; font-weight: 800; border-radius: 9px; padding: 11px 16px;
  transition: filter .15s ease; white-space: nowrap;
}
.p2-yt .yt-sub:hover { filter: brightness(.9); }
.p2-yt .yt-pl {
  flex: 1; text-align: center;
  background: #fff; color: var(--navy, #14181F);
  border: 1.5px solid var(--navy, #14181F);
  font-size: 13.5px; font-weight: 800; border-radius: 9px; padding: 10px 16px;
  transition: background .15s ease, color .15s ease; white-space: nowrap;
}
.p2-yt .yt-pl:hover { background: var(--navy, #14181F); color: var(--amber, #E8A33D); }
@media (max-width: 640px) {
  .p2-yt { grid-column: auto; }
  .p2-yt .yt-embed { min-height: 0; aspect-ratio: 16 / 9; flex: none; }
}

/* ============================================================
   BUNDLES ROW
   ============================================================ */
.p2-bundles { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; margin-bottom: 44px; }
.p2-bigbundle {
  border-radius: 18px; padding: 26px 28px; color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow, 0 10px 30px -12px rgba(20, 24, 31, 0.18));
}
/* brand-theme gradients: navy (site header colors) + brand green from style.css */
.p2-bigbundle.purple { background: linear-gradient(115deg, var(--navy, #14181F) 0%, var(--navy-soft, #1E2532) 55%, #2A3242 100%); }
.p2-bigbundle.purple .now { color: var(--amber, #E8A33D); }
.p2-bigbundle.green { background: linear-gradient(115deg, #246B45 0%, var(--green, #2E8B57) 60%, #37A268 100%); }
.p2-bigbundle .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.p2-bigbundle .kick { font-size: 13px; font-weight: 700; opacity: .85; margin: 0 0 4px; }
.p2-bigbundle h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; margin: 0; color: #fff; }
.p2-bigbundle .flag {
  background: var(--amber-deep, #C77E1B); color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.p2-bigbundle .price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.p2-bigbundle .was { opacity: .7; text-decoration: line-through; font-size: 16px; }
.p2-bigbundle .now { font-family: var(--font-display); font-size: 34px; font-weight: 800; }
.p2-bigbundle .save {
  background: rgba(255,255,255,.18); font-size: 12px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
}
.p2-bigbundle ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.p2-bigbundle li { font-size: 13.5px; font-weight: 600; opacity: .95; display: flex; gap: 8px; }
.p2-bigbundle .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.p2-bigbundle .chips span {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 8px;
}
.p2-bigbundle .foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: auto; }
.p2-bigbundle .proof { font-size: 12.5px; font-weight: 700; opacity: .9; }
.p2-bigbundle .buy {
  background: var(--amber, #E8A33D); color: var(--navy, #14181F);
  font-size: 14.5px; font-weight: 800; border-radius: 10px; padding: 12px 26px;
  transition: filter .15s ease; white-space: nowrap;
}
.p2-bigbundle .buy:hover { filter: brightness(1.06); }

/* ============================================================
   TRUST BAR (light)
   ============================================================ */
.p2-trustbar {
  display: flex; align-items: stretch; flex-wrap: wrap;
  background: #FFFFFF; border: 1px solid var(--line, #E6DFCF);
  border-radius: 16px; margin-bottom: 44px; overflow: hidden;
  box-shadow: var(--shadow, 0 10px 30px -12px rgba(20, 24, 31, 0.18));
}
.p2-trustbar .cell {
  flex: 1 1 150px; display: flex; align-items: center; gap: 11px;
  padding: 18px; border-right: 1px solid var(--line, #E6DFCF);
}
.p2-trustbar .cell:last-child { border-right: 0; }
.p2-trustbar .ic { font-size: 21px; flex: none; }
.p2-trustbar .t { color: var(--navy, #14181F); font-size: 13px; font-weight: 800; line-height: 1.3; }
.p2-trustbar .s { color: var(--muted, #6B7280); font-size: 11.5px; }
.p2-trustbar .cell.grating { background: #FBF7EF; }
.p2-trustbar .cell.grating .gsvg { width: 24px; height: 24px; flex: none; }
.p2-trustbar .cell.grating .stars { color: var(--amber, #E8A33D); font-size: 13px; letter-spacing: 1px; }

/* ============================================================
   TESTIMONIALS (light)
   ============================================================ */
.p2-reviews { margin-bottom: 44px; }
.p2-reviews .rhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.p2-reviews h2 { color: var(--navy, #14181F); font-size: 24px; font-weight: 800; margin: 0; }
.p2-reviews .all { color: var(--amber-deep, #C77E1B); font-size: 13.5px; font-weight: 700; }
/* paged carousel: shows 3, waits, slides to the next 3 (JS-driven) */
.p2-carousel { overflow: hidden; }
.p2-track { display: flex; transition: transform .6s ease; }
.p2-page {
  flex: 0 0 100%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 4px;
}
.p2-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.p2-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: #D8CFBB; cursor: pointer; transition: background .15s ease, width .15s ease;
}
.p2-dots button.on { width: 22px; border-radius: 999px; background: var(--amber-deep, #C77E1B); }
.p2-review {
  background: #FFFFFF; border: 1px solid var(--line, #E6DFCF); border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow, 0 10px 30px -12px rgba(20, 24, 31, 0.18));
}
.p2-review .who { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.p2-review .av {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  object-fit: cover;
  background: linear-gradient(135deg, var(--amber, #E8A33D), var(--amber-deep, #C77E1B));
}
.p2-review .nm { color: var(--navy, #14181F); font-size: 14.5px; font-weight: 800; }
.p2-review .pl { color: var(--muted, #6B7280); font-size: 12px; }
.p2-review .stars { color: var(--amber, #E8A33D); font-size: 13px; letter-spacing: 1.5px; margin-left: auto; }
.p2-review p { color: #4B5568; font-size: 13.5px; line-height: 1.65; margin: 0; font-style: italic; }

/* ============================================================
   HOMEPAGE — big subject cards
   ============================================================ */
.home-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 28px; }
.home-subj {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: #FFFFFF; border: 1px solid var(--line, #E6DFCF); border-radius: 18px;
  box-shadow: var(--shadow, 0 10px 30px -12px rgba(20, 24, 31, 0.18));
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-subj:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -16px rgba(20, 24, 31, 0.3); }
.home-subj .top {
  position: relative; padding: 22px 24px; color: #fff; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
}
.home-subj .top .art { font-size: 46px; flex: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.home-subj .top .nm { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin: 0; }
.home-subj .top .en { font-size: 13px; font-weight: 600; opacity: .85; margin: 2px 0 0; }
.home-subj .flag {
  position: absolute; top: 14px; right: 14px;
  background: var(--amber, #E8A33D); color: var(--navy, #14181F);
  font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .03em;
}
.home-subj .body { padding: 18px 24px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.home-subj .stats { display: flex; gap: 20px; }
.home-subj .stats .k { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--navy, #14181F); }
.home-subj .stats .l { font-size: 11.5px; color: var(--muted, #6B7280); }
.home-subj .desc { font-size: 13.5px; color: #4B5568; line-height: 1.6; margin: 0; flex: 1; }
.home-subj .go {
  align-self: flex-start;
  background: var(--amber, #E8A33D); color: var(--navy, #14181F);
  font-size: 14px; font-weight: 800; padding: 11px 22px; border-radius: 999px;
  transition: filter .15s ease;
}
.home-subj .go:hover { filter: brightness(1.06); }
.home-subj .top.physics { background: linear-gradient(115deg, #1B1464 0%, #3B1D8F 55%, #1D4ED8 100%); }
.home-subj .top.chem { background: linear-gradient(115deg, #831843 0%, #9D174D 55%, #BE185D 100%); }
.home-subj .top.bio { background: linear-gradient(115deg, #064E3B 0%, #047857 55%, #059669 100%); }
.home-subj .top.maths { background: linear-gradient(115deg, #164E63 0%, #0E7490 55%, #0891B2 100%); }
@media (max-width: 720px) { .home-grid { grid-template-columns: 1fr; } }

/* ============================================================
   OTHER SUBJECTS
   ============================================================ */
.p2-subjects { margin-bottom: 28px; }
.p2-subjects h2 { color: var(--navy, #14181F); font-size: 24px; font-weight: 800; margin: 0 0 14px; }
.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sub-card {
  display: flex; align-items: center; gap: 14px;
  background: #FFFFFF; border: 1px solid var(--line, #E6DFCF); border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow, 0 10px 30px -12px rgba(20, 24, 31, 0.18));
  transition: transform .18s ease, box-shadow .18s ease;
}
.sub-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -14px rgba(20, 24, 31, 0.28); }
.sub-card .ic { font-size: 30px; flex: none; }
.sub-card .t { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--navy, #14181F); margin: 0; }
.sub-card .s { font-size: 12px; color: var(--muted, #6B7280); margin: 2px 0 0; }
.sub-card .go {
  margin-left: auto; flex: none;
  background: var(--amber, #E8A33D); color: var(--navy, #14181F);
  font-size: 12.5px; font-weight: 800; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}

/* ============================================================
   FINAL CTA (navy panel, matches site accents)
   ============================================================ */
.p2-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--navy, #14181F); border-radius: 18px;
  padding: 24px 28px; margin-bottom: 44px;
}
.p2-cta .left { display: flex; align-items: center; gap: 18px; }
.p2-cta .rocket { font-size: 40px; }
.p2-cta h2 { color: #fff; font-size: 21px; font-weight: 800; margin: 0 0 4px; }
.p2-cta p { color: #9AA3B0; font-size: 13.5px; margin: 0; }
.p2-wa {
  display: inline-flex; align-items: center; gap: 10px;
  background: #22C55E; color: #05300F; font-size: 14.5px; font-weight: 800;
  border-radius: 999px; padding: 13px 26px; transition: filter .15s ease; white-space: nowrap;
}
.p2-wa:hover { filter: brightness(1.06); }

/* ============================================================
   FOOTER (4-column, navy — replaces the one-line footer)
   ============================================================ */
footer.p2-footer { background: var(--navy, #14181F); border-top: 1px solid var(--navy-line, #2A3242); padding: 40px 0 0; }
footer.p2-footer .wrap { display: block; text-align: left; }
.p2-footgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; }
.p2-footgrid .fbrand { color: #fff; font-family: var(--font-display); font-size: 19px; font-weight: 800; margin: 0 0 10px; }
.p2-footgrid .fbrand .dot { color: var(--amber, #E8A33D); }
.p2-footgrid p { color: #8B93A1; font-size: 13px; line-height: 1.6; margin: 0 0 14px; }
.p2-footgrid h4 { color: #fff; font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.p2-footgrid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.p2-footgrid li, .p2-footgrid li a { color: #9AA3B8; font-size: 13px; }
.p2-footgrid li a:hover { color: var(--amber, #E8A33D); }
.p2-social { display: flex; gap: 10px; }
.p2-social a {
  width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; background: #1E2532; border: 1px solid #2A3242; transition: background .15s ease;
}
.p2-social a:hover { background: #2A3242; }
.p2-copy {
  border-top: 1px solid #2A3242; margin-top: 32px; padding: 16px 0;
  text-align: center; color: #6B7487; font-size: 12.5px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .p2-bundles { grid-template-columns: 1fr; }
  .p2-footgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .p2-page { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .p2-footgrid { grid-template-columns: 1fr; }
  .p2-cta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   PAGE COMPACTION — vertical rhythm overrides (this page only,
   since physics.css is linked only on physics.html)
   ============================================================ */
.topbar .wrap { padding-top: 10px; padding-bottom: 10px; }

.hero { padding: 30px 0 24px; }
.hero-eyebrow { margin: 0 0 8px; }
.hero h1 { margin: 0 0 10px; }
.hero .lead { margin: 0 0 18px; }
.hero-stats { gap: 30px; }

main.wrap { padding-top: 24px; padding-bottom: 8px; }
.paper-section { margin-bottom: 28px; }
.section-head { margin-bottom: 14px; padding-bottom: 10px; }
.unit-grid { gap: 18px; }

.p2-side { padding: 18px 16px; }
.p2-side h3 { margin: 0 0 10px; }
.p2-side ul { gap: 8px; margin-bottom: 14px; }
.p2-deal { padding: 13px 14px; }
.p2-booster { margin-top: 10px; padding: 12px 14px; }

.p2-bundles { gap: 18px; margin-bottom: 28px; }
.p2-bigbundle { padding: 20px 24px; gap: 10px; }
.p2-bigbundle .now { font-size: 30px; }

.p2-trustbar { margin-bottom: 28px; }
.p2-trustbar .cell { padding: 13px 16px; }

.p2-reviews { margin-bottom: 28px; }
.p2-reviews .rhead { margin-bottom: 12px; }
.p2-rgrid { gap: 16px; }
.p2-review { padding: 16px; }
.p2-review .who { margin-bottom: 9px; }

.p2-cta { padding: 18px 24px; margin-bottom: 28px; }
.p2-cta .rocket { font-size: 32px; }

footer.p2-footer { padding: 26px 0 0; }
.p2-footgrid { gap: 24px; }
.p2-footgrid ul { gap: 7px; }
.p2-copy { margin-top: 20px; padding: 12px 0; }

@media (prefers-reduced-motion: reduce) {
  .pcard, .p2-price, .watch-btn, .p2-card-cta, .p2-sample, .sub-card, .yt-center svg { transition: none; }
  .pcard:hover, .sub-card:hover { transform: none; }
  .p2-track { transition: none; }
  .p2-limited { animation: none; transform: rotate(-14deg); }
}


/* hero promo carousel */
.hero .hero-2col { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.hero-left { flex: 1 1 430px; min-width: 70%; }
.hero-promo { flex: 0 0 200px; max-width: 25%; margin-left: auto; }
.hp-viewport { overflow: hidden; border-radius: 16px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); }
.hp-track { display: flex; align-items: stretch; transition: transform .6s ease; }
.hp-slide { flex: 0 0 100%; display: flex; }
.hp-card {
  flex: 1;
  display: flex; flex-direction: column; gap: 9px; min-height: 214px;
  padding: 18px; color: #fff;
}
.hp-kick { font-size: 12px; font-weight: 700; opacity: .85; margin: 0; }
.hp-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 800; margin: 0; color: #fff; line-height: 1.25; }
.hp-price { display: flex; align-items: baseline; gap: 8px; }
.hp-price s { opacity: .7; font-size: 14px; }
.hp-price span { font-family: var(--font-display); font-size: 25px; font-weight: 800; }
.hp-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.hp-card li { font-size: 12.5px; font-weight: 600; opacity: .95; }
.hp-desc { font-size: 13px; line-height: 1.55; opacity: .95; margin: 0; flex: 1; }

.hp-btn {
  align-self: flex-end; margin-top: auto;
  background: var(--amber, #E8A33D); color: var(--navy, #14181F);
  font-size: 13.5px; font-weight: 800; padding: 9px 18px; border-radius: 999px;
  transition: filter .15s ease;
  margin-left: auto;
}

.hp-card:hover .hp-btn { filter: brightness(1.06); }
.hp-booster { background: linear-gradient(115deg, #246B45 0%, var(--green, #2E8B57) 70%); }
.hp-subj .hp-top { display: flex; align-items: center; gap: 12px; }
.hp-subj .hp-top .ic { font-size: 28px; flex: none; }
.hp-subj .nm { font-family: var(--font-display); font-size: 17px; font-weight: 800; margin: 0; color: #fff; line-height: 1.2; }
.hp-subj .en { font-size: 12px; opacity: .8; margin: 2px 0 0; }
.hp-subj.physics { background: linear-gradient(115deg, #1B1464, #3B1D8F 55%, #1D4ED8); }
.hp-subj.chem { background: linear-gradient(115deg, #831843, #9D174D 55%, #BE185D); }
.hp-subj.bio { background: linear-gradient(115deg, #064E3B, #047857 55%, #059669); }
.hp-subj.maths { background: linear-gradient(115deg, #164E63, #0E7490 55%, #0891B2); }
.hp-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.hp-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: background .15s ease, width .15s ease; }
.hp-dots button.on { width: 20px; border-radius: 999px; background: var(--amber, #E8A33D); }
@media (max-width: 820px) {
  .hero .hero-2col { gap: 22px; }
  .hero-left { flex: 1 1 100%; min-width: 100%; }
  .hero-promo { flex: 1 1 100%; max-width: 100%; margin-left: 0; }
  .hp-card { min-height: 0; }
}
