@charset "UTF-8";
/* =====================================================================
   homepage-responsive.css  (21 Nov 2026)

   Loaded LAST (after homepage-final.css). Two jobs only:

   A) 11px TEXT FLOOR on desktop. A few desktop rules set 7.8px–9.7px text
      (research-card buttons, survey button, membership card, media cards).
      Only font-size (plus the size of the box that holds that text) changes;
      colours, fonts, weights and positions are unchanged.

   B) LAPTOP RANGE 1024px–1199px. Several desktop sections use fixed pixel
      tracks that add up to 1080px–1120px. Between 1024px and ~1140px
      (for example a 1366px laptop at 125% Windows scaling = 1093px, or a
      1280px screen at 125% = 1024px) those tracks were wider than the
      screen, so content was pushed off both edges and cropped by
      body{overflow-x:hidden}. Here the same tracks become proportional
      (fr) tracks with the SAME ratios, so the layout keeps its shape and
      simply scales down.
      At 1200px and wider NOTHING in part B applies, so the approved
      desktop design is untouched.

   Mobile / tablet (below 1024px) are not touched.
   ===================================================================== */


/* ---------------------------------------------------------------------
   A) 11px TEXT FLOOR — all desktop widths
   --------------------------------------------------------------------- */
@media (min-width: 1024px) {

  /* Survey "METHODOLOGY & STANDARDS" button: was 8.5–9.2px in a fixed
     182 x 24px box. Box now grows with the text. */
  #desktop-pdf-layout .dp-public-copy > a {
    font-size: 11px !important;
    width: auto !important;
    min-width: 182px !important;
    height: auto !important;
    min-height: 30px !important;
    padding: 8px 14px !important;
  }

  #desktop-pdf-layout .dp-public-copy strong {
    font-size: 11px !important;
  }

  /* Membership card: 9px labels/button */
  #desktop-pdf-layout .dp-membership > span,
  #desktop-pdf-layout .dp-membership small,
  #desktop-pdf-layout .dp-membership a {
    font-size: 11px !important;
  }

  /* Media & Research Hub small cards: 9.5px text / 8.5px button */
  #desktop-pdf-layout .dp-media-card p {
    font-size: 11px !important;
  }

  #desktop-pdf-layout .dp-media-card b,
  #desktop-pdf-layout .dp-newsroom b {
    font-size: 11px !important;
  }

  /* Old research-card rules (7.2px–9.7px) — applies to any research card
     that is not already covered by the slider rules */
  #desktop-pdf-layout .dp-r-label {
    font-size: 11px !important;
  }

  #desktop-pdf-layout .dp-r-card p,
  #desktop-pdf-layout .dp-r-card > a,
  #desktop-pdf-layout .dp-r-tags span {
    font-size: 11px !important;
  }
}


/* ---------------------------------------------------------------------
   B) LAPTOP RANGE 1024px – 1199.98px : fluid versions of fixed tracks
   --------------------------------------------------------------------- */
@media (min-width: 1024px) and (max-width: 1199.98px) {

  /* Zameeni + Survey | National Priorities
     (was 524px + 576px = 1120px; now same proportions, fluid) */
  #desktop-pdf-layout .ssnpd-row {
    grid-template-columns: minmax(0, 470fr) minmax(0, 490fr) !important;
    column-gap: 32px !important;
    width: calc(100% - 40px) !important;
    max-width: 1008px !important;
  }

  #desktop-pdf-layout .ssnpd-right .ssnp-dp-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }

  #desktop-pdf-layout .ssnpd-right .ssnp-box {
    max-width: 100% !important;
  }

  /* Survey block: text column and hand image share the column */
  #desktop-pdf-layout .ssnpd-left .dp-public {
    gap: 14px !important;
  }

  #desktop-pdf-layout .ssnpd-left .dp-public-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  #desktop-pdf-layout .dp-hand {
    width: auto !important;
    flex: 0 0 26%;
  }

  #desktop-pdf-layout .dp-hand img {
    width: 100% !important;
    max-width: 160px !important;
    height: auto !important;
  }

  /* Digital Library + Membership
     (was 755px + 70px gap + 255px = 1080px) */
  #desktop-pdf-layout .dp-library {
    width: calc(100% - 48px) !important;
    grid-template-columns: minmax(0, 755fr) minmax(220px, 255fr) !important;
    column-gap: 36px !important;
  }

  #desktop-pdf-layout .dp-library-art {
    width: 100% !important;
    max-width: 755px !important;
    min-width: 0 !important;
  }

  #desktop-pdf-layout .dp-library-art > img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  #desktop-pdf-layout .dp-membership {
    width: auto !important;
    min-width: 0 !important;
  }

  /* Housing Societies
     (was 320px + 54px gap + 610px + 96px padding = 1080px) */
  #desktop-pdf-layout .dp-housing {
    width: calc(100% - 48px) !important;
    padding: 36px 32px !important;
    grid-template-columns: minmax(0, 320fr) minmax(0, 610fr) !important;
    column-gap: 32px !important;
  }

  #desktop-pdf-layout .dp-housing-copy {
    width: auto !important;
    max-width: 320px !important;
    min-width: 0 !important;
  }

  #desktop-pdf-layout .dp-housing-copy .dp-housing-desc,
  #desktop-pdf-layout .dp-housing-copy p {
    width: auto !important;
    max-width: 300px !important;
  }

  #desktop-pdf-layout .dp-housing-links {
    width: 100% !important;
    max-width: 610px !important;
    min-width: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 24px !important;
  }

  #desktop-pdf-layout .dp-housing-links a {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
  }

  /* Media & Research Hub (was 390px + 1fr, 70px side margins) */
  #desktop-pdf-layout .dp-media {
    width: calc(100% - 48px) !important;
  }

  #desktop-pdf-layout .dp-media-grid {
    grid-template-columns: minmax(0, 390fr) minmax(0, 670fr) !important;
  }
}


/* ---------------------------------------------------------------------
   C) PART OF SYEDSHAYAN.COM — ReNews card (all screen sizes)
   The large logo (fixed at 31cqw) plus the two-line heading were taller than
   the card, so the heading "Pakistan's Specialised Real Estate Newspaper"
   was pushed onto the "renews.pk" label and its second line was cut off
   (visible in the approved screenshot as "Pakistan's Specialised.pk").
   The logo keeps the same maximum size but may now shrink to leave room for
   the heading, and the label's height is reserved at the bottom of the card
   (the Shehrbeen card already does this).
   --------------------------------------------------------------------- */
html:not(#ss-x):not(#ss-y) body #ss-partners .ssp-card.ssp-renews .ssp-content {
  box-sizing: border-box !important;
  padding-bottom: 7cqw !important;
}

html:not(#ss-x):not(#ss-y) body #ss-partners .ssp-card.ssp-renews .ssp-logo {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: max(54px, 31cqw) !important;
  width: 100% !important;
  object-fit: contain !important;
  object-position: left center !important;
}


/* ---------------------------------------------------------------------
   D) MOBILE (767px and below) — NATIONAL PRIORITIES RESEARCH CARDS
   Approved shape (reference screenshot): two full cards side by side,
   heavy navy title, small single-line light-blue tags, one-line navy
   "Explore ... →" button, equal card heights.
   (Slider positions: index.php, style id="ss-rp-center-17nov".)
   --------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* the slider frame must not cut the cards' outer edge */
  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile.rp-paged-slider {
    overflow: visible !important;
  }

  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-card {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 12px 9px 10px !important;
    background: #fff !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .07) !important;
    overflow: hidden !important;
  }

  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-card-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 28px !important;
    margin: 0 !important;
    color: #D6A839 !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
  }

  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-card-label span {
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    flex: 0 0 24px !important;
  }

  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-icon img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
  }

  /* Heavy navy title (Segoe UI / Arial, like the reference) */
  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-card h3 {
    margin: 8px 0 5px !important;
    color: #043E6B !important;
    font-family: 'Segoe UI', Arial, sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.1px !important;
    text-align: left !important;
  }

  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-card > p {
    margin: 0 0 10px !important;
    color: #222 !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.38 !important;
    text-align: left !important;
  }

  /* Small single-line pills */
  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-tags {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 5px !important;
    margin: auto 0 8px !important;
  }

  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-tags span {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 6px !important;
    border-radius: 999px !important;
    background: #dcecff !important;
    color: #0a4b7c !important;
    font-family: Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  /* One-line navy button, arrow right after the text */
  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-btn {
    align-self: stretch !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 9px 4px !important;
    border-radius: 999px !important;
    background: #043E6B !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.2px !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-shadow: 0 3px 7px rgba(0, 0, 0, .18) !important;
  }

  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-btn b {
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
  }

  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-dots {
    margin-top: 10px !important;
  }
}

/* Small phones (iPhone SE etc.): button text may use two lines instead of
   running outside the card; label/icon a little tighter. */
@media (max-width: 374px) {
  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-card {
    padding: 10px 7px 8px !important;
  }

  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-card-label {
    gap: 5px !important;
  }

  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    flex: 0 0 22px !important;
  }

  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-tags span {
    padding: 4px 3px !important;
  }

  html:not(#ss-x):not(#ss-y) body .ssnp-rp.rp-mobile .rp-btn {
    white-space: normal !important;
    line-height: 1.15 !important;
    padding: 8px 6px !important;
  }
}


/* ---------------------------------------------------------------------
   E) MOBILE — ZAMEENI HAQAIQ CARD text inside the navy strip
   "Ground Realities on Land, Housing & Resources" had no style, so it
   showed large and dark on the dark strip. White 11px text, red underline
   under "A Column", gold arrow at the right of the strip.
   --------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
  html:not(#ss-x):not(#ss-y) body .mobile-zameeni-card .mobile-zameeni-ground-realities {
    margin: 2px 0 0 !important;
    color: #fff !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
  }

  html:not(#ss-x):not(#ss-y) body .mobile-zameeni-card .mobile-zameeni-acol {
    text-decoration: underline !important;
    text-decoration-color: #d9363e !important;
    text-decoration-thickness: 1.5px !important;
    text-underline-offset: 3px !important;
  }

  html:not(#ss-x):not(#ss-y) body .mobile-zameeni-card .mobile-zameeni-arrow2 {
    position: absolute !important;
    right: 22px !important;
    bottom: 22px !important;
    z-index: 31 !important;
    color: #e0b04a !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }
}
