/* ==========================================================================
   Pak Super — site.css

   Matched 1:1 to the design reference:
   references/PAK Super Game Download (Real Earning App) for Android.html

   Every value below was measured off the rendered reference:
     body        #F7FAFC bg, #000 text, system stack, 17px / 27.2px, p mb 32px
     header      #1C8675 teal bar, white 26px bold title, #161617 button r3px
     h2          #1A202C banner, #1C8675 text, 28px/42px bold, centred, 8px 0
     h3          #1C8675, 24px bold, left, mt 36px / mb 12px
     links       #2B6CB0 underlined
     buttons     #106810, white, radius 3px, padding 7.2px 18px, 18px
     cards       1px solid #159794, radius 10px, 4-col grid, 32px gap
     table       collapse, 1px solid #136B69, 8px padding
     accordion   #2D3748 bar r6px 14px/16px, white panel 20px
     footer      #1C8675, 17px, 30px 0
     container   max-width 1290px, padding-inline 24px  → 1242px rail
   ========================================================================== */

:root {
  --teal:        #1c8675;   /* header, footer, h2 + h3 text */
  --teal-dark:   #136b69;   /* table borders */
  --teal-line:   #159794;   /* card borders */
  --navy:        #1a202c;   /* h2 banner background */
  --slate:       #2d3748;   /* accordion header */
  --green-btn:   #106810;   /* primary action button */
  --black-btn:   #161617;   /* header action button */
  --link:        #2b6cb0;
  --bg:          #f7fafc;
  --surface:     #ffffff;
  --text:        #000000;
  --muted:       #4a5568;
  --rule:        #e2e8f0;

  --font: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
          Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji",
          "Segoe UI Emoji", "Segoe UI Symbol";

  --container: 1290px;
  --gutter:    24px;
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

p { margin: 0 0 32px; }

a { color: var(--link); text-decoration: underline; }
a:hover { text-decoration: none; }

strong, b { font-weight: 700; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 20px; text-decoration: none;
}
.skip-link:focus { inset-inline-start: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   THE ONE SHARED CONTENT WIDTH
   Header, footer and every content block share the same 1242px rail.
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Nothing below is allowed its own, narrower measure. */
.entry-content > *,
.entry-content h2,
.entry-content h3,
.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content figure,
.entry-content table,
.card-grid,
.check-list,
.faq-list,
.faq-item,
.app-table,
.app-hero,
.btn-row {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Headings
   ========================================================================== */

h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; }

h1 {
  font-size: 34px;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 20px;
}

/* Signature element: full-rail dark banner with centred teal text. */
h2, .h2-banner {
  background: var(--navy);
  color: var(--teal);
  font-size: 28px;
  line-height: 42px;
  text-align: center;
  padding: 8px 12px;
  margin: 0 0 14px;
}

h3 {
  color: var(--teal);
  font-size: 24px;
  line-height: 1.3;
  text-align: start;
  margin: 36px 0 12px;
}

h4 {
  color: var(--teal);
  font-size: 19px;
  line-height: 1.4;
  margin: 28px 0 10px;
}

/* ==========================================================================
   Header — solid teal bar
   ========================================================================== */

.site-header { background: var(--teal); }

.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
  padding-block: 10px;
  flex-wrap: wrap;
}

.brand-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.brand-link img { width: 42px; height: 42px; border-radius: 8px; }
.brand-title {
  color: #fff; font-size: 26px; font-weight: 700; line-height: 1.1;
  white-space: nowrap;
}

.header-button {
  background: var(--black-btn);
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  border-radius: 3px;
  padding: 7.2px 18px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  display: inline-block;
}
.header-button:hover { background: #000; color: #fff; text-decoration: none; }

.primary-nav { margin-inline-start: auto; }
.primary-nav ul {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 22px; list-style: none; margin: 0; padding: 0;
}
.primary-nav a {
  color: #fff; font-size: 17px; font-weight: 400; text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:hover, .primary-nav a.active { text-decoration: underline; }

.util-nav {
  background: #16705f;
  font-size: 15px;
}
.util-nav .container {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px 20px;
  min-height: 0; padding-block: 7px;
}
.util-nav .trust-line { color: rgba(255,255,255,.9); margin: 0; }
.util-nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.util-nav a { color: #fff; text-decoration: none; }
.util-nav a:hover { text-decoration: underline; }

.nav-toggle {
  display: none; margin-inline-start: auto;
  background: transparent; border: 1px solid rgba(255,255,255,.6);
  border-radius: 3px; width: 44px; height: 40px; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px auto; background: #fff;
}

/* ==========================================================================
   Page body
   ========================================================================== */

main { padding-block: 24px 40px; }

.entry-content > *:last-child { margin-bottom: 0; }

.page-intro { margin-bottom: 32px; }

.breadcrumbs { font-size: 15px; color: var(--muted); margin: 0 0 12px; }
.breadcrumbs a { color: var(--link); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }

.page-meta {
  font-size: 15px; color: var(--muted); margin: 0 0 28px;
  padding-bottom: 16px; border-bottom: 1px solid var(--rule);
}

/* Lists — reference: disc, 34px indent, 32px bottom margin */
.entry-content ul, .entry-content ol { padding-inline-start: 34px; margin: 0 0 32px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin: 0; }

/* Teal tick list (reference "Tips for Beginners" block).
   Selector is scoped to beat `.entry-content ul` (0,1,1) on specificity. */
.check-list,
.entry-content ul.check-list { list-style: none; padding-inline-start: 0; margin: 0 0 32px; }
.check-list li { position: relative; padding-inline-start: 32px; margin-bottom: 8px; }
.check-list li::before {
  content: "\2713";
  position: absolute; inset-inline-start: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--teal-line); color: var(--teal);
  font-size: 12px; line-height: 18px; text-align: center;
}

/* Figures */
.entry-content figure { margin: 0 0 32px; }
.entry-content figure img { width: 100%; border-radius: 10px; }
.entry-content figcaption {
  font-size: 15px; color: var(--muted); text-align: center; padding-top: 8px;
}

/* ==========================================================================
   Card grid — reference "Popular Games of PAK Super Game"
   ========================================================================== */

.card-grid { display: grid; gap: 32px; margin: 0 0 32px; }
.card-grid--1 { grid-template-columns: minmax(0, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card-grid .card {
  border: 1px solid var(--teal-line);
  border-radius: 10px;
  padding: 14px 16px;
}
.card-grid .card h3 {
  text-align: center;
  font-size: 20px;
  margin: 0 0 10px;
}
.card-grid .card p { font-size: 16px; line-height: 1.55; margin: 0 0 10px; }
.card-grid .card p:last-child { margin-bottom: 0; }
.card-grid .card ul, .card-grid .card ol { font-size: 16px; margin-bottom: 10px; }
.card-grid .card ul:last-child, .card-grid .card ol:last-child { margin-bottom: 0; }

/* ==========================================================================
   Buttons — reference: #106810, radius 3px, side-by-side full-rail pair
   ========================================================================== */

.btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green-btn);
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  border-radius: 3px;
  padding: 12px 18px;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--green-btn);
}
.btn:hover { background: #0c520c; color: #fff; text-decoration: none; }

.btn--alt { background: var(--navy); border-color: var(--navy); }
.btn--alt:hover { background: #000; }

.btn--ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; }

/* ==========================================================================
   Table — reference app-info table
   ========================================================================== */

.app-table { border-collapse: collapse; margin: 0 0 32px; }
.app-table th, .app-table td {
  border: 1px solid var(--teal-dark);
  padding: 8px 12px;
  font-size: 17px;
  text-align: center;
  vertical-align: middle;
}
.app-table thead th, .app-table .row-head {
  color: var(--teal);
  font-weight: 700;
  font-size: 20px;
}
.app-table tbody th { font-weight: 400; color: var(--text); }

/* ==========================================================================
   App hero — centred logo block (reference places the icon mid-column)
   ========================================================================== */

.app-hero { text-align: center; margin: 0 0 32px; }
.app-hero img {
  width: 450px; max-width: 100%; height: auto;
  margin-inline: auto; border-radius: 100px;
}

/* ==========================================================================
   FAQ accordion — reference: #2D3748 bar, radius 6px, white panel
   ========================================================================== */

.faq-list { margin: 0 0 32px; }

.faq-item { margin-bottom: 8px; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--slate);
  color: #fff;
  font-size: 18px;
  padding: 14px 16px;
  border-radius: 6px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-weight: 400; }
.faq-icon { position: relative; flex-shrink: 0; width: 16px; height: 16px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); background: #fff;
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after  { width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { display: none; }

.faq-answer { background: var(--surface); padding: 20px; border-radius: 0 0 6px 6px; }
.faq-answer p { margin: 0; font-size: 17px; }

/* ==========================================================================
   Footer — solid teal bar
   ========================================================================== */

.site-footer { background: var(--teal); margin-top: 40px; }
.site-footer .container {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 24px;
  padding-block: 30px;
  font-size: 17px;
  color: #fff;
}
.site-footer p { margin: 0; }
.site-footer nav ul {
  display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-note {
  background: #16705f;
  color: rgba(255,255,255,.92);
  font-size: 15px;
}
.footer-note .container { padding-block: 12px; display: block; }
.footer-note p { margin: 0; }

/* ==========================================================================
   404
   ========================================================================== */

.err-404 { text-align: center; padding-block: 40px 24px; }
.err-404 .glyph { font-size: 96px; font-weight: 700; color: var(--teal); margin: 0 0 8px; line-height: 1; }
.err-404 .btn-row { justify-items: center; }

/* ==========================================================================
   Urdu / RTL mirror
   ========================================================================== */

body.locale-ur { font-family: "Noto Nastaliq Urdu", var(--font); line-height: 2.2; }
body.locale-ur h1 { font-size: 26px; line-height: 2.1; }
body.locale-ur h2 { font-size: 22px; line-height: 2; padding: 12px; }
body.locale-ur h3 { font-size: 19px; line-height: 1.9; }
body.locale-ur .brand-title,
body.locale-ur .app-table td,
body.locale-ur .header-button { font-family: var(--font); }
body.locale-ur .faq-item summary { flex-direction: row-reverse; font-size: 17px; }
body.locale-ur .card-grid .card h3 { font-size: 17px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .card-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .primary-nav ul { gap: 6px 16px; }
  .primary-nav a { font-size: 16px; }
}

@media (max-width: 900px) {
  .site-header .container { min-height: 64px; }
  .nav-toggle { display: block; }
  .header-button { order: 3; }

  .primary-nav {
    order: 4;
    flex-basis: 100%;
    margin-inline-start: 0;
    display: none;
    border-top: 1px solid rgba(255,255,255,.25);
    padding-top: 10px;
  }
  body.nav-open .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a { display: block; padding: 10px 0; font-size: 17px; }

  .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 28px; }
  h2 { font-size: 23px; line-height: 34px; }
  h3 { font-size: 21px; }
}

@media (max-width: 700px) {
  .util-nav .container { justify-content: center; }
  .btn-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .app-table th, .app-table td { font-size: 15px; padding: 8px; }
  .app-table thead th, .app-table .row-head { font-size: 17px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .card-grid { gap: 16px; }
  .brand-title { font-size: 21px; }
  h1 { font-size: 25px; }
  h2 { font-size: 20px; line-height: 30px; padding: 10px; }
  .site-footer .container { justify-content: flex-start; }
}
