/* 3 Card One - Mobile First, Pakistan SEO */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

:root {
  --primary: #1a5f2a;
  --primary-dark: #0d3d1a;
  --accent: #c9a227;
  --bg: #f5f0e6;
  --text: #1a1a1a;
  --white: #fff;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;
  --font-en: system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-urdu);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  text-align: right;
}
.en { font-family: var(--font-en); direction: ltr; text-align: left; }

.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-weight: bold; font-size: 1.25rem; }
.logo img { height: 42px; width: auto; border-radius: 6px; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
nav a {
  color: var(--white);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background 0.2s;
}
nav a:hover { background: rgba(255,255,255,0.2); }
.btn-download {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin: 8px 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-download:hover { transform: scale(1.02); box-shadow: 0 4px 16px rgba(201,162,39,0.4); }

main { padding: 24px 0 40px; min-height: 60vh; }
h1, h2, h3 { color: var(--primary-dark); margin: 1em 0 0.5em; line-height: 1.3; }
h1 { font-size: 1.75rem; border-bottom: 3px solid var(--accent); padding-bottom: 8px; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }
p { margin-bottom: 1em; }
article { margin-bottom: 2em; }
article img { max-width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow); margin: 12px 0; }
ul, ol { margin: 0.5em 0 1em 1.5em; }
li { margin-bottom: 0.4em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 12px; }
footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 24px 0;
  text-align: center;
  font-size: 0.95rem;
}
footer a { color: var(--accent); }

/* Mobile */
@media (max-width: 600px) {
  body { font-size: 1rem; }
  header .container { flex-direction: column; text-align: center; }
  nav ul { justify-content: center; }
  h1 { font-size: 1.5rem; }
  .logo { justify-content: center; }
}
@media (min-width: 768px) {
  .container { padding: 0 24px; }
  h1 { font-size: 2rem; }
}

/* Sitemap / list pages */
.page-list { list-style: none; margin: 0; padding: 0; }
.page-list li { margin-bottom: 12px; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.page-list a { font-size: 1.1rem; }

/* Hide from view but keep for SEO */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
