@charset "UTF-8";
/* =====================================================================
   homepage-desktop-fallback.css  (21 Nov 2026)

   WHY THIS FILE EXISTS
   The live /homepage-css-clean-20261114/homepage-final.css no longer contains
   CSS: it contains a copy of index.php (PHP + HTML). Every browser that does
   not still have the old stylesheet in its cache therefore receives NO styles
   for the desktop Zameeni Haqaiq card and the desktop National Priorities
   slider, and renders them as a giant raw photo + vertically stacked cards
   (the "incorrect" Screenshot 1).

   This file re-creates ONLY those missing desktop components, matching the
   approved Screenshot 3. It is loaded immediately BEFORE homepage-final.css,
   so when the original homepage-final.css is restored from backup, the
   original rules (same or higher specificity, loaded later) take priority
   again and this file becomes a harmless fallback.

   Desktop only (1024px and above). Mobile/tablet are not touched.
   ===================================================================== */

@media (min-width: 1024px) {

  /* ---------------------------------------------------------------
     1) ZAMEENI + SURVEY (left)  |  NATIONAL PRIORITIES (right)
     Fluid two-column row. Proportions taken from Screenshot 3
     (left ~470px, right ~490px, ~48px gap, ~1008px total).
     The previous rule used fixed 524px + 576px tracks (1120px),
     which pushed both columns outside the viewport below ~1140px.
     --------------------------------------------------------------- */
  #desktop-pdf-layout .ssnpd-row {
    grid-template-columns: minmax(0, 470fr) minmax(0, 490fr) !important;
    column-gap: 48px !important;
    width: calc(100% - 48px) !important;
    max-width: 1008px !important;
    margin: 34px auto 0 !important;
  }

  #desktop-pdf-layout .ssnpd-left,
  #desktop-pdf-layout .ssnpd-right {
    min-width: 0;
  }

  /* Slider wrapper used a fixed 576px width */
  #desktop-pdf-layout .ssnpd-right .ssnp-dp-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px 0 0 !important;
  }

  /* ---------------------------------------------------------------
     2) ZAMEENI HAQAIQ CARD (.dz-card)
     Every size is relative to the card's own width (container
     units), so the card keeps the approved proportions at every
     desktop width instead of relying on fixed pixel positions.
     Base design width = 470px.
     --------------------------------------------------------------- */
  #desktop-pdf-layout .ssnpd-left .dp-zr {
    container-type: inline-size;
  }

  #desktop-pdf-layout .dz-card {
    --z: calc(100cqw / 470);
    position: relative;
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 470 / 182;
    overflow: hidden;
    border-radius: calc(var(--z) * 20);
    background: #fff;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(4, 30, 60, .12), 0 1px 3px rgba(0, 0, 0, .06);
    transition: transform .2s ease, box-shadow .2s ease;
  }

  #desktop-pdf-layout .dz-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(4, 30, 60, .16), 0 1px 3px rgba(0, 0, 0, .06);
  }

  /* Dark navy band along the lower half */
  :where(#desktop-pdf-layout) .dz-card .dz-strip {
    position: absolute;
    left: calc(var(--z) * 14);
    right: calc(var(--z) * 13);
    top: calc(var(--z) * 93);
    height: calc(var(--z) * 79);
    background: linear-gradient(90deg, #0b4a78 0%, #052f55 45%, #022846 100%);
    z-index: 1;
  }

  /* Portrait overlapping the band */
  :where(#desktop-pdf-layout) .dz-card .dz-person {
    position: absolute;
    left: calc(var(--z) * 18);
    top: calc(var(--z) * 19);
    width: calc(var(--z) * 118);
    height: calc(var(--z) * 146);
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
  }

  :where(#desktop-pdf-layout) .dz-card .dz-person img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }

  /* Urdu "Syed Shayan ka Column / Zameeni Haqaiq" logo, top right */
  :where(#desktop-pdf-layout) .dz-card .dz-logo {
    position: absolute;
    right: calc(var(--z) * 26);
    top: calc(var(--z) * 12);
    width: calc(var(--z) * 170);
    height: calc(var(--z) * 56);
    z-index: 2;
  }

  :where(#desktop-pdf-layout) .dz-card .dz-logo img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: contain;
    object-position: right center;
  }

  /* Text inside the navy band */
  :where(#desktop-pdf-layout) .dz-card .dz-copy {
    position: absolute;
    left: calc(var(--z) * 156);
    right: calc(var(--z) * 56);
    top: calc(var(--z) * 93);
    height: calc(var(--z) * 79);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    text-align: left;
  }

  :where(#desktop-pdf-layout) .dz-card .dz-title {
    margin: 0;
    color: #e0b04a;
    font-size: max(12px, calc(var(--z) * 15.5));
    font-weight: 500;
    line-height: 1.2;
  }

  :where(#desktop-pdf-layout) .dz-card .dz-ground {
    margin: calc(var(--z) * 2) 0 0;
    color: #fff;
    font-size: max(11px, calc(var(--z) * 12));
    font-weight: 400;
    line-height: 1.25;
  }

  :where(#desktop-pdf-layout) .dz-card .dz-byline {
    margin: calc(var(--z) * 3) 0 0;
    color: #fff;
    font-size: max(12px, calc(var(--z) * 14));
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
  }

  :where(#desktop-pdf-layout) .dz-card .dz-acol {
    font-style: normal;
    text-decoration: underline;
    text-decoration-color: #d9363e;
    text-decoration-thickness: 1.5px;
    text-underline-offset: calc(var(--z) * 5);
  }

  :where(#desktop-pdf-layout) .dz-card .dz-arrow {
    position: absolute;
    right: calc(var(--z) * 26);
    top: calc(var(--z) * 122);
    z-index: 3;
    color: #e0b04a;
    font-style: normal;
    font-size: max(16px, calc(var(--z) * 22));
    line-height: 1;
    transition: transform .2s ease;
  }

  #desktop-pdf-layout .dz-card:hover .dz-arrow {
    transform: translateX(3px);
  }

  /* ---------------------------------------------------------------
     3) "VIEW ALL SURVEYS" link — left aligned under the button,
     as in Screenshot 3 (base rule aligned it to the right).
     --------------------------------------------------------------- */
  :where(#desktop-pdf-layout) .dp-view-surveys-left {
    margin-top: 14px;
    text-align: left;
  }

  #desktop-pdf-layout .dp-view-surveys-left .dp-view-surveys {
    display: inline-flex !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: auto !important;
    margin-top: 0;
    text-align: left;
  }

  /* ---------------------------------------------------------------
     4) NATIONAL PRIORITIES RESEARCH SLIDER (.dp6-slider)
     A horizontal track that shows ~2.6 cards (the third card peeks
     at the right edge), moved by the existing
     "desktop-research-slider-peek" script with translateX.
     --------------------------------------------------------------- */
  /* The slider also carries the old ".dp-research-side" class, which is
     locked to 390px; let it fill the National Priorities column instead. */
  #desktop-pdf-layout .ssnp-dp-wrap .dp6-slider {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  :where(#desktop-pdf-layout) .dp6-viewport {
    width: 100%;
    overflow: hidden;
    padding: 4px 0 12px 2px;
  }

  :where(#desktop-pdf-layout) .dp6-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 14px;
    transition: transform .45s ease;
    will-change: transform;
  }

  /* Cards: same white card, border and shadow as the approved design.
     Fixed 188px height from the older 2-up slider is replaced by a
     minimum height so longer text is never cut off. */
  #desktop-pdf-layout .dp6-track .dp-r-card {
    flex: 0 0 clamp(170px, 37.8%, 200px) !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 215px !important;
    max-height: none !important;
    padding: 14px 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .08) !important;
    overflow: hidden !important;
  }

  #desktop-pdf-layout .dp6-track .dp-r-label {
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #D6A839 !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
  }

  #desktop-pdf-layout .dp6-track .dp-r-label img {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    flex: 0 0 24px !important;
    object-fit: contain !important;
  }

  #desktop-pdf-layout .dp6-track .dp-r-card h3 {
    margin: 10px 0 6px !important;
    color: #043E6B !important;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.22 !important;
  }

  #desktop-pdf-layout .dp6-track .dp-r-card p {
    margin: 0 0 12px !important;
    color: #333 !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
  }

  /* CTA pill: 11px minimum; wraps inside the card instead of overflowing */
  #desktop-pdf-layout .dp6-track .dp-r-card > a {
    margin-top: auto !important;
    align-self: flex-start !important;
    max-width: 100% !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    background: #043E6B !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2) !important;
  }

  #desktop-pdf-layout .dp6-track .dp-r-card > a b {
    font-size: 12px;
    font-weight: 400;
  }

  /* Controls under the slider */
  #desktop-pdf-layout .dp6-slider .dp5-controls {
    margin-top: 10px !important;
  }

  #desktop-pdf-layout .dp6-slider .dp5-nav:disabled {
    opacity: .45;
    cursor: default !important;
  }
}
