:root {
  --primary: #D4AF37;   /* royal gold — Hyderabad Kingsmen brand */
  --black: #000000;
  --gold-light: #FFD700;
  --grey: #f4f4f4;
  --text: #1a1a1a;
  --muted: #666;
  --max: 1100px;
  /* legacy aliases for stylesheet bits not yet refactored */
  --orange: #D4AF37;
  --gold: #FFD700;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--black);
  border-bottom: 4px solid var(--orange);
  padding: 16px 0;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark {
  display: inline-block; width: 40px; height: 40px;
  background: var(--orange); color: var(--black);
  font-weight: 900; font-size: 18px;
  text-align: center; line-height: 40px;
  border-radius: 4px;
}
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: 0.5px; }
.site-nav a {
  color: #fff; text-decoration: none; margin-left: 24px; font-weight: 600;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.site-nav a:hover, .site-nav a.active { border-bottom-color: var(--orange); }

/* Language toggle button */
.lang-toggle {
  margin-left: 24px;
  padding: 4px 12px;
  border: 1px solid var(--primary) !important;
  border-radius: 4px;
  color: var(--primary) !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.lang-toggle:hover {
  background: var(--primary);
  color: var(--black) !important;
  border-bottom: 1px solid var(--primary) !important;
}
.lang-toggle[lang="ur"] {
  font-size: 18px;
  font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  padding: 2px 12px;
}

/* RTL / Urdu page styling */
body.lang-ur {
  font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.9;
}
body.lang-ur .site-nav a { margin-left: 0; margin-right: 24px; }
body.lang-ur .post-body { text-align: right; }
body.lang-ur .post-body h2, body.lang-ur .post-body h3 {
  border-left: none;
  border-right: 4px solid var(--primary);
  padding-left: 0;
  padding-right: 12px;
}
body.lang-ur .post-body table { text-align: right; }
body.lang-ur .recent-posts h2, body.lang-ur .sections h2, body.lang-ur .related h2 {
  border-left: none;
  border-right: 4px solid var(--primary);
  padding-left: 0;
  padding-right: 12px;
}
body.lang-ur .section-card {
  border-left: none;
  border-right: 4px solid var(--primary);
}

/* Hero */
.hero {
  padding: 48px 24px;
  text-align: center;
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  color: #fff;
  margin-bottom: 48px;
}
.hero h1 { font-size: 44px; margin: 0 0 12px 0; line-height: 1.15; }
.hero .tagline { font-size: 18px; color: #ccc; max-width: 700px; margin: 0 auto; }
.hero-kicker { color: var(--primary); font-weight: 700; letter-spacing: 2px; font-size: 13px; margin: 0 0 16px 0; }
.hero-byline { color: #888; font-size: 13px; margin-top: 16px; }

/* Post grid */
.recent-posts h2, .sections h2, .related h2 {
  font-size: 24px; margin: 32px 0 16px 0;
  border-left: 4px solid var(--orange); padding-left: 12px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.post-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.post-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.post-card h3 { margin: 16px 16px 8px 16px; font-size: 18px; line-height: 1.3; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--orange); }
.post-card p { margin: 0 16px 16px 16px; color: var(--muted); font-size: 14px; }
.post-meta { font-size: 13px !important; color: var(--muted); }

/* Section cards */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.section-card {
  display: block; padding: 24px;
  background: var(--grey);
  border-left: 4px solid var(--orange);
  border-radius: 4px;
  text-decoration: none; color: var(--text);
  transition: background 0.2s;
}
.section-card:hover { background: #ebebeb; }
.section-card h3 { margin: 0 0 8px 0; }
.section-card p { margin: 0; color: var(--muted); }

/* Post page */
.post { max-width: 750px; margin: 0 auto; padding: 32px 0; }
.post-banner { width: 100%; border-radius: 6px; margin-bottom: 24px; }
.post-kicker { color: var(--orange); font-weight: 700; letter-spacing: 1px; font-size: 13px; margin: 0; }
.post-header h1 { font-size: 36px; line-height: 1.2; margin: 8px 0; }
.post-header .post-meta { color: var(--muted); font-size: 14px; }
.post-body { font-size: 18px; line-height: 1.7; }
.post-body h2 { font-size: 26px; margin-top: 36px; border-left: 4px solid var(--orange); padding-left: 12px; }
.post-body h3 { font-size: 20px; margin-top: 24px; }
.post-body a { color: var(--orange); }
.post-body table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.post-body th, .post-body td { padding: 10px 14px; border: 1px solid #ddd; text-align: left; }
.post-body th { background: var(--grey); }
.post-body blockquote { border-left: 4px solid var(--gold); padding-left: 16px; margin-left: 0; color: var(--muted); font-style: italic; }
.post-tags { margin: 32px 0; }
.tag {
  display: inline-block; background: var(--grey); color: var(--text);
  padding: 4px 10px; border-radius: 3px; text-decoration: none;
  font-size: 13px; margin-right: 6px;
}
.tag:hover { background: var(--orange); color: #fff; }

/* Section header */
.section-header { padding: 32px 0; border-bottom: 1px solid #eee; margin-bottom: 32px; }
.section-header h1 { font-size: 36px; margin: 0; }
.section-header .tagline { color: var(--muted); margin-top: 8px; }

/* Footer */
.site-footer {
  background: var(--black); color: #ccc;
  padding: 32px 0; margin-top: 64px;
  text-align: center; font-size: 14px;
}
.site-footer a { color: var(--orange); text-decoration: none; }
.footer-links a { margin: 0 6px; }

/