/* ================================================================
   BLOG POST VIEW — Premium Design v2
   Prefix: pv-   Colors: #111 | #f7cf04 | #fff | #f5f5f5
   ================================================================ */

/* ── Shell ──────────────────────────────────────────────────── */
.pv-shell {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Hide old breadcrumb if it leaks */
.nav-path { display: none; }

/* ================================================================
   HERO
   ================================================================ */
.pv-hero {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  padding: 40px 0 36px;
}

.pv-hero-inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumb */
.pv-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 22px;
  font-size: 12px;
  color: #bbb;
}
.pv-breadcrumb a {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.pv-breadcrumb a:hover { color: #111; }
.pv-breadcrumb span[aria-hidden] { color: #ddd; }
.pv-breadcrumb > span:last-child {
  color: #bbb;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category badge + date row */
.pv-top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pv-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  background: #f7cf04;
  color: #111;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.pv-cat-badge:hover { opacity: 0.85; color: #111; }
.pv-meta-dot { color: #e0e0e0; font-size: 14px; }
.pv-meta-date { font-size: 13px; color: #999; font-weight: 500; }

/* Title */
.pv-title {
  margin: 0 0 26px;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.22;
  color: #111;
  letter-spacing: -0.025em;
}

/* ================================================================
   SHARE BUTTONS — platform-colored circles
   ================================================================ */
.pv-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pv-share-label {
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.pv-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s;
}
.pv-share-btn svg { display: block; flex-shrink: 0; }
.pv-share-btn:hover { transform: translateY(-3px); opacity: 0.9; }

/* Platform colors */
.pv-share-fb { background: #1877F2; }
.pv-share-x  { background: #111111; }
.pv-share-wa { background: #25D366; }
.pv-share-li { background: #0A66C2; }

/* ================================================================
   FEATURED IMAGE
   ================================================================ */
.pv-feat-wrap {
  background: #f5f5f5;
  padding: 32px 0 28px;
}
.pv-feat-fig {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.pv-feat-fig img {
  width: 100%;
  height: auto;
  display: block;
}

/* ================================================================
   CONTENT AREA
   ================================================================ */
.pv-content-wrap {
  background: #fff;
  padding: 44px 0 60px;
}

/* ── Table of Contents ─────────────────────────────────── */
.pv-toc {
  background: #f9f9f9;
  border-left: 3px solid #f7cf04;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin-bottom: 36px;
}
.pv-toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #555;
  margin: 0 0 12px;
}
.pv-toc-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pv-toc-list li { margin: 0; }
.pv-toc-list a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.15s;
}
.pv-toc-list a:hover { color: #111; text-decoration: underline; text-underline-offset: 2px; }

/* ── Post Body Typography ──────────────────────────────── */
.pv-body {
  font-family: "Inter", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.85;
  color: #2c2c2c;
}

/* Paragraphs */
.pv-body p {
  margin: 0 0 22px;
  font-size: 16.5px;
  line-height: 1.85;
  color: #333;
}

/* Headings */
.pv-body h1 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: #111;
  margin: 48px 0 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.pv-body h2 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(19px, 2.8vw, 26px);
  font-weight: 700;
  color: #111;
  margin: 48px 0 16px;
  line-height: 1.25;
  padding-left: 16px;
  border-left: 4px solid #f7cf04;
}
.pv-body h3 {
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 700;
  color: #111;
  margin: 36px 0 14px;
  line-height: 1.3;
}
.pv-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin: 28px 0 10px;
}

/* First child: no extra top margin */
.pv-body > h2:first-child,
.pv-body > h3:first-child,
.pv-body > p:first-child { margin-top: 0; }

/* Lists */
.pv-body ul,
.pv-body ol {
  margin: 0 0 24px;
  padding-left: 28px;
}
.pv-body ul li,
.pv-body ol li {
  margin-bottom: 10px;
  line-height: 1.75;
  color: #333;
  font-size: 16px;
}
.pv-body ul { list-style: disc; }
.pv-body ol { list-style: decimal; }

/* Links */
.pv-body a {
  color: #111;
  text-decoration: underline;
  text-decoration-color: #f7cf04;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.15s;
}
.pv-body a:hover { color: #555; text-decoration-color: #555; }

/* Bold / italic */
.pv-body strong, .pv-body b { font-weight: 700; color: #111; }
.pv-body em, .pv-body i     { font-style: italic; }

/* Blockquote */
.pv-body blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background: #fffbe6;
  border-left: 4px solid #f7cf04;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #444;
  font-size: 16px;
  line-height: 1.7;
}
.pv-body blockquote p { margin: 0; }

/* Inline code */
.pv-body code {
  background: #f3f4f6;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 14px;
  font-family: "Courier New", monospace;
  color: #333;
}
/* Code block */
.pv-body pre {
  background: #1a1a2e;
  color: #e8eaf6;
  padding: 22px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 28px 0;
  font-size: 14px;
  line-height: 1.65;
}
.pv-body pre code { background: none; padding: 0; color: inherit; }

/* Images in body */
.pv-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 28px auto;
}

/* Inline gallery shortcode images */
.pv-inline-fig {
  margin: 32px 0;
  text-align: center;
}
.pv-inline-fig img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  display: inline-block;
  margin: 0 auto;
}

/* HR */
.pv-body hr {
  border: none;
  border-top: 1px solid #ebebeb;
  margin: 44px 0;
}

/* ── Tables ──────────────────────────────────────────── */
.pv-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border-radius: 10px;
  border: 1px solid #ebebeb;
}
.pv-body table,
.tax-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 400px;
}
.pv-body table th,
.tax-table th {
  background: #f5f5f5;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: #111;
  border-bottom: 2px solid #e0e0e0;
  white-space: nowrap;
}
.pv-body table td,
.tax-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  line-height: 1.5;
}
.pv-body table tr:last-child td,
.tax-table tr:last-child td { border-bottom: none; }
.pv-body table tr:hover td { background: #fafafa; }
.tax-table tbody tr:hover   { background: #fffbe6; }
table tr:nth-child(even)    { background: #fafafa; }
.tax-tables { display: flex; flex-direction: column; gap: 20px; }
.tax-table thead { background: #f5f5f5; }

/* ── PTA Calculator ──────────────────────────────────── */
.pta-calculator {
  background: #f8f9fa;
  border: none;
  border-left: 4px solid #f7cf04;
  border-radius: 0 12px 12px 0;
  padding: 28px 28px 28px 24px;
  margin: 36px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: box-shadow 0.2s;
}
.pta-calculator:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10); }
.pta-calculator h2 {
  border-left: none !important;
  padding-left: 0 !important;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #111;
}
.pta-calculator .exchange-rate-info { color: #666; font-size: 14px; margin-bottom: 22px; }
.pta-calculator .calculator-form    { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.pta-calculator select,
.pta-calculator input[type="number"] {
  width: 100%;
  max-width: 380px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 15px;
  background: #fff;
  color: #111;
  transition: border-color 0.2s;
}
.pta-calculator select:focus,
.pta-calculator input[type="number"]:focus { border-color: #f7cf04; outline: none; }
.pta-calculator .results {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 16px;
  width: 100%;
  max-width: 380px;
  text-align: left;
}
.pta-calculator .results p { font-size: 14px; margin: 8px 0; display: flex; justify-content: space-between; }
.pta-calculator .results span { color: #111; font-weight: 700; margin: 0; }
.pta-calculator .error-message { color: #dc2626; font-size: 14px; margin-top: 8px; }
.passport-tax, .cnic-tax { display: flex; align-items: center; justify-content: space-between; }

/* ── CNIC Check ──────────────────────────────────────── */
.cnic-check .content-area {
  background: #f8f9fa;
  border-left: 4px solid #f7cf04;
  border-radius: 0 12px 12px 0;
  padding: 24px 24px 24px 20px;
  margin-bottom: 24px;
}
.cnic-check .cnic-form { display: flex; flex-direction: column; gap: 14px; max-width: 380px; margin: 0 auto; }
.cnic-check label { font-size: 15px; font-weight: 600; color: #333; text-align: center; }
.cnic-check input[type="text"] {
  padding: 11px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.cnic-check input[type="text"]:focus { border-color: #f7cf04; outline: none; }
.cnic-check button { padding: 12px; background: #111; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.cnic-check button:hover { background: #333; }
.cnic-check .error-message { font-size: 13px; color: #dc2626; text-align: center; }
.cnic-check p { font-size: 13px; color: #666; text-align: center; }

/* ── Inline CTA Block ────────────────────────────────── */
.pv-cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #111;
  border-radius: 14px;
  padding: 28px 28px;
  margin: 48px 0 0;
  flex-wrap: wrap;
}
.pv-cta-text { flex: 1; min-width: 200px; }
.pv-cta-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f7cf04;
  margin: 0 0 6px;
}
.pv-cta-heading {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.35;
}
.pv-cta-sub { font-size: 13px; color: rgba(255,255,255,0.65); margin: 0; }
.pv-cta-btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  background: #f7cf04;
  color: #111;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.pv-cta-btn:hover { background: #e5bf00; transform: translateY(-1px); color: #111; }

/* ── Bottom Share Strip ──────────────────────────────── */
.pv-bottom-share {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 0 0;
  margin-top: 36px;
  border-top: 1px solid #ebebeb;
  flex-wrap: wrap;
}
.pv-share-btns-row { display: flex; gap: 10px; align-items: center; }

/* ================================================================
   STICKY SHARE SIDEBAR (desktop)
   ================================================================ */
.pv-sticky-share {
  position: fixed;
  left: max(16px, calc(50% - 440px));
  top: 50%;
  transform: translateY(-50%);
  display: none; /* shown by JS via class */
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 40;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 40px;
  padding: 14px 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.pv-sticky-share--visible { display: flex; }
.pv-sticky-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #aaa;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  margin-bottom: 4px;
}
.pv-sticky-share .pv-share-btn {
  width: 36px;
  height: 36px;
}

/* Hide sticky bar on narrow viewports */
@media (max-width: 1060px) {
  .pv-sticky-share { display: none !important; }
}

/* ================================================================
   RELATED BLOGS SECTION
   ================================================================ */
.pv-related-section {
  background: #f5f5f5;
  padding: 52px 0 56px;
  border-top: 1px solid #ebebeb;
}
.pv-related-title {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: #111;
  text-align: center;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}
.pv-related-title span { color: #f7cf04; }

.pv-related-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Same card width as blog listing: 3 equal slots, left-aligned when fewer posts */
.pv-related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/* Keep cards to the right of the fixed share sidebar on desktop */
@media (min-width: 1061px) {
  .pv-related-grid {
    margin-left: max(
      0px,
      calc(
        max(16px, 50vw - 440px) + 68px -
        ((100vw - min(1240px, 100vw)) / 2 + 24px)
      )
    );
  }
}

.pv-related-section .post-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  box-sizing: border-box;
}

/* ================================================================
   LEGACY gallery wrappers
   ================================================================ */
.gallery-post-wrapper { margin: 28px 0; display: flex; justify-content: center; }
img.gallery-image     { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.10); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .pv-related-inner { padding: 0 16px; }
  .pv-related-section .post-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 768px) {
  .pv-hero  { padding: 28px 0 24px; }
  .pv-hero-inner,
  .pv-shell { padding: 0 16px; }

  .pv-title { font-size: clamp(22px, 6vw, 28px); line-height: 1.25; }
  .pv-feat-wrap { padding: 20px 0 16px; }
  .pv-feat-fig  { border-radius: 12px; }
  .pv-content-wrap { padding: 32px 0 44px; }

  .pv-body { font-size: 16px; }
  .pv-body h2 { font-size: 19px; padding-left: 12px; margin-top: 36px; }
  .pv-body h3 { font-size: 17px; }
  .pv-body p  { font-size: 16px; }

  .pta-calculator { padding: 22px 16px; }
  .pta-calculator select,
  .pta-calculator input[type="number"] { max-width: 100%; }

  /* Mobile table: stack rows */
  .pv-table-scroll { border-radius: 8px; }
  .tax-table thead { display: none; }
  .tax-table tbody,
  .tax-table tr,
  .tax-table td { display: block; width: 100%; }
  .tax-table tr  { margin-bottom: 8px; border-bottom: 1px solid #ebebeb; }
  .tax-table td  { padding: 8px 12px; font-size: 13px; }
  .tax-table td:nth-child(1)::before { content: "Value (USD): "; font-weight: 700; color: #333; }
  .tax-table td:nth-child(2)::before { content: "Tax (PKR): ";   font-weight: 700; color: #333; }

  .pv-cta-block  { flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 16px; }
  .pv-cta-btn    { width: 100%; justify-content: center; }

  .pv-related-section { padding: 36px 0 40px; }
  .pv-related-grid    { gap: 16px; }
  .pv-related-section .post-card { flex: 0 0 100%; }
}

@media (max-width: 480px) {
  .pv-breadcrumb > span:last-child { max-width: 160px; }
  .pv-share-btn { width: 36px; height: 36px; }
  .pv-share-btn svg { width: 16px; height: 16px; }
  .pv-related-section { padding: 28px 0 32px; }
}
