/* ============================================================
   Council of Islamic Ideology — site.css
   Modern, Secure Government Portal Stylesheet
   ============================================================ */

/* ---------- Jameel Noori Nastaleeq Webfont ---------- */
@font-face {
  font-family: 'Jameel Noori Nastaleeq';
  src: local('Jameel Noori Nastaleeq'),
       local('JameelNooriNastaleeq'),
       url('/assets/fonts/Jameel-Noori-Nastaleeq-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- Muhammadi Quranic Arabic Font ---------- */
@font-face {
  font-family: 'Muhammadi Quranic';
  src: local('Muhammadi Quranic'),
       local('MuhammadiQuranic'),
       local('Muhammadi-Quranic'),
       local('Al Qalam Quran Majeed'),
       local('PDMS_Saleem_QuranicFont'),
       local('me_quran'),
       local('Traditional Arabic');
  font-display: swap;
}

:root {
  --green-deep: #065e38;
  --green-darker: #032113;
  --green-mid: #0b7c4a;
  --green-vibrant: #109b5e;
  --green-light: #eef7f2;
  --gold: #d49e1e;
  --gold-dark: #b5810e;
  --gold-light: #fef8e7;
  --gold-bright: #f5b722;
  --cream: #f8faf8;
  --paper: #ffffff;
  --text: #15221b;
  --text-soft: #415248;
  --border: #dbe5df;
  --radius: 10px;
  --radius-sm: 5px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px rgba(6, 94, 56, 0.07), 0 1px 4px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 28px rgba(6, 94, 56, 0.14), 0 2px 8px rgba(0, 0, 0, 0.05);
  --max: min(1560px, 96vw);
  --serif: "Zilla Slab", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --urdu: 'Jameel Noori Nastaleeq', 'JameelNooriNastaleeq', 'Noto Nastaliq Urdu', serif;
  --quran: 'Muhammadi Quranic', 'MuhammadiQuranic', 'Al Qalam Quran Majeed', 'PDMS_Saleem_QuranicFont', 'Traditional Arabic', serif;
  --times: 'Times New Roman', Times, Baskerville, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; transition: color .2s ease, border-color .2s ease; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--green-deep);
  line-height: 1.25;
  margin: 0 0 .5em;
  font-weight: 600;
}
p { margin: 0 0 1em; color: var(--text-soft); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 2.5vw, 40px); width: 100%; }

/* ---------- Urdu Typography & Alignment Enforcement ---------- */
.lang-urdu, [lang="ur"], [dir="rtl"], .urdu-font, .urdu-title, .pub-title-urdu {
  font-family: var(--urdu) !important;
  direction: rtl !important;
  text-align: right !important;
  line-height: 2.2;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Ensure all Urdu blocks, cards, headings, and lists are strictly right-aligned */
.update-card .lang-urdu,
.event-card .lang-urdu,
.notice-list .lang-urdu,
.pub-category li,
.pub-category li a,
.data-table.rtl-content td,
.data-table.rtl-content th,
.section-head h1 .lang-urdu,
.section-head h2 .lang-urdu {
  direction: rtl !important;
  text-align: right !important;
  font-family: var(--urdu);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green-deep); color: #fff; padding: 10px 16px; z-index: 200;
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-darker);
  color: #cfe6da;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #cfe6da; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 18px; }

/* ---------- Banner (textured green header image with logos) ---------- */
.top-banner {
  position: relative;
  background: var(--green-darker);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.top-banner img.banner-bg {
  width: 100%;
  height: auto;
  aspect-ratio: 1944 / 220;
  object-fit: cover;
  display: block;
}
.top-banner .wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.top-banner .brand-logo img, .top-banner .gov-logo img {
  height: clamp(28px, 7vw, 78px);
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

/* ---------- Nav ---------- */
.site-header {
  background: linear-gradient(180deg, #031e12 0%, #06311e 100%);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle {
  display: none;
  background: var(--green-mid);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin: 10px 24px;
  transition: background .2s ease;
}
.nav-toggle:hover { background: var(--green-deep); }
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}
nav.main-nav a {
  display: block;
  text-decoration: none;
  color: #e5f0ea;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 18px;
  position: relative;
  transition: color .2s ease, background .2s ease;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: width .25s ease, left .25s ease;
}
nav.main-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}
nav.main-nav a:hover::after,
nav.main-nav a[aria-current="page"]::after {
  width: 100%;
  left: 0;
}
nav.main-nav a[aria-current="page"] {
  background: var(--green-mid);
  color: #fff;
}

/* ---------- Ticker (Two Lines: Arabic Top with Muhammadi Quranic, Urdu + English Bottom) ---------- */
.ticker {
  background: #02160c;
  border-bottom: 2px solid rgba(212, 158, 30, 0.45);
  overflow: hidden;
  height: 66px;
  display: flex;
  align-items: center;
  position: relative;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  padding-left: 100%;
  color: #e0eee6;
  font-size: 15px;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}
.ticker-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}
.ticker-row-top {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  direction: rtl;
  unicode-bidi: isolate;
}
.ticker-ayah {
  font-family: var(--quran);
  font-size: 23px;
  font-weight: normal;
  color: #f7d774;
  direction: rtl;
  unicode-bidi: isolate;
  padding: 0 4px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.ticker-ref {
  font-family: var(--urdu);
  font-size: 15px;
  color: #c59b27;
  padding: 0 2px;
  direction: rtl;
  opacity: 0.95;
}
.ticker-row-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.35;
}
.ticker-urdu {
  font-family: var(--urdu);
  font-size: 17px;
  font-weight: 500;
  color: #ffffff;
  direction: rtl;
  unicode-bidi: isolate;
  padding: 0 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.ticker-sep {
  color: var(--gold);
  font-size: 13px;
  opacity: 0.75;
  padding: 0 2px;
}
.ticker-en {
  font-family: var(--times);
  font-size: 14.5px;
  color: #d6ede0;
  font-weight: normal;
  padding: 0 2px;
  direction: ltr;
  unicode-bidi: isolate;
  letter-spacing: 0.01em;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  overflow: hidden;
  background: #000;
}
.carousel-track { display: flex; transition: transform .6s ease; }
.carousel-track img { width: 100%; flex: 0 0 100%; height: 460px; object-fit: cover; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.35); color: #fff; border: none;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: rgba(0,0,0,.6); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0;
}
.carousel-dots button.active { background: #fff; }
.carousel-social {
  position: absolute; right: 16px; bottom: 46px;
  display: flex; flex-direction: column; gap: 8px; z-index: 5;
}
.carousel-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.carousel-social svg { width: 18px; height: 18px; fill: #fff; }
.carousel-social .fb { background: #1877f2; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #0a3323;
  color: #fff;
  overflow: hidden;
  min-height: 420px;
}
.hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: .55;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}
.hero-content .wrap { width: 100%; }
.hero-eyebrow {
  color: var(--gold-light);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  margin-bottom: 6px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  max-width: 720px;
  margin-bottom: 14px;
}
.hero p { color: #e7f1ea; max-width: 560px; font-size: 17px; }

/* ---------- Section shell ---------- */
section.block { padding: clamp(22px, 2.5vw, 36px) 0; background: var(--cream); }
section.block.tinted { background: #f0f6f2; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: clamp(24px, 3vw, 42px) 0; }
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(24px, 2.2vw, 30px); color: var(--green-deep); }
.section-head .rule { width: 56px; height: 3.5px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); margin-top: 10px; border-radius: 2px; }

/* ---------- Update + Composition + Links (3 columns) ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: clamp(280px, 24vw, 380px) minmax(0, 1fr) clamp(260px, 22vw, 340px);
  gap: clamp(20px, 2.4vw, 36px);
  align-items: start;
}

.update-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #dfd8cb;
  border-top: 4px solid var(--green-deep);
  border-radius: 12px;
  padding: clamp(16px, 1.6vw, 22px);
  box-shadow: 0 4px 20px rgba(11, 77, 52, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.update-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(11, 77, 52, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
}
.update-card .badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(11, 77, 52, 0.2);
}
.update-card ul { list-style: none; margin: 0; padding: 0; }
.update-card li { padding: 11px 0; border-bottom: 1px dashed #dcd4c6; font-size: 14.5px; }
.update-card li:last-child { border-bottom: none; }
.update-card li .date {
  color: var(--gold-dark);
  font-weight: 600;
  display: inline-block;
  font-size: 12px;
  margin-top: 5px;
  background: #faf5ea;
  border: 1px solid #ede3cb;
  padding: 2px 8px;
  border-radius: 4px;
}
.update-card a { text-decoration: none; color: var(--green-deep); font-weight: 600; display: block; line-height: 1.5; }
.update-card a:hover { color: var(--gold-dark); }

.about-copy { font-size: 15.5px; line-height: 1.7; padding: 0 4px; }
.about-copy .figure { margin: 14px 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.about-copy .figure img { width: 100%; max-height: 215px; object-fit: cover; }
.about-copy .figure figcaption { font-size: 12.5px; color: var(--text-soft); padding: 8px 14px; background: var(--paper); border-top: 1px solid var(--border); }

.links-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #dfd8cb;
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  padding: clamp(18px, 1.8vw, 26px);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.links-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}
.links-card img.avatar {
  width: clamp(100px, 8.5vw, 120px);
  height: clamp(100px, 8.5vw, 120px);
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3.5px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.links-card h4 { font-size: 16.5px; margin-bottom: 4px; color: var(--green-deep); font-weight: 700; }
.links-card .role { font-size: 13px; color: var(--gold-dark); font-weight: 600; margin-bottom: 16px; }
.links-card h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--green-deep); text-align: left; margin: 18px 0 10px; border-top: 1px dashed #dcd4c6; padding-top: 14px; font-weight: 700; }
.links-card ul { list-style: none; margin: 0; padding: 0; text-align: left; }
.links-card ol { margin: 0; padding-left: 20px; text-align: left; font-size: 13.5px; }
.links-card li { margin-bottom: 7px; font-size: 13px; line-height: 1.45; }
.links-card a { text-decoration: none; color: var(--text); transition: color .2s ease; }
.links-card a:hover { color: var(--green-deep); text-decoration: underline; }

/* ---------- Two-card row (chairman/links + facebook/portal) ---------- */
.pair {
  display: grid;
  grid-template-columns: 540px minmax(320px, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
  margin-top: 10px;
  align-items: stretch;
}
@media (max-width: 1024px) {
  .pair {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  box-shadow: var(--shadow-hover);
}
.chairman-card { text-align: center; border-top: 4px solid var(--green-deep); }
.chairman-card img { width: 125px; height: 125px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; border: 3.5px solid var(--gold); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.chairman-card h3 { font-size: 18px; margin-bottom: 4px; }
.chairman-card .role { color: var(--gold-dark); font-weight: 600; font-size: 13.5px; margin-bottom: 18px; }
.link-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; margin-top: 18px; }
.link-cols h4 { font-size: 14px; font-weight: 700; color: var(--green-deep); margin-bottom: 8px; }
.link-cols ul { list-style: none; margin: 0; padding: 0; }
.link-cols li { margin-bottom: 6px; font-size: 14px; }
.link-cols a { text-decoration: none; color: var(--text); }
.link-cols a:hover { color: var(--green-deep); text-decoration: underline; }

.fb-card {
  border-top: 4px solid #1877f2 !important;
  background: #ffffff;
}
.fb-frame-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: #ffffff;
}
.fb-frame-wrap iframe {
  width: 100% !important;
  max-width: 500px !important;
  height: 560px !important;
  border: none;
  overflow: hidden;
  border-radius: 6px;
  display: block;
}
.portal-card {
  border-top: 4px solid var(--green-deep) !important;
  background: #ffffff;
}
.portal-card img {
  border-radius: var(--radius-sm);
  transition: transform .25s ease;
}
.portal-card:hover img {
  transform: scale(1.008);
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(6, 94, 56, 0.18);
  transition: all .2s ease;
}
.btn:hover {
  background: linear-gradient(135deg, var(--green-mid), var(--green-vibrant));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 94, 56, 0.28);
}
.btn.outline {
  background: transparent;
  color: var(--green-deep) !important;
  border: 1.5px solid var(--green-deep);
  box-shadow: none;
}
.btn.outline:hover {
  background: var(--green-deep);
  color: #fff !important;
}

/* ---------- Footer ---------- */
.footer-wave {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 56px;
  margin-bottom: -6px;
}
.site-footer {
  background: var(--green-darker);
  color: #d7e5dc;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 28px;
}
.site-footer h5 {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 15px;
  margin: 0 0 14px;
}
.site-footer p, .site-footer address { color: #b9ccbf; font-size: 14px; font-style: normal; margin: 0 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.site-footer a { color: #b9ccbf; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--gold); }
.social-row svg { width: 16px; height: 16px; fill: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 16px 0;
  font-size: 13px;
  color: #93a89b;
  text-align: center;
}

/* ---------- Content article pages ---------- */
.article-wrap { max-width: 860px; }
.article-wrap h2 { font-size: 24px; margin-top: 36px; }
.article-wrap h2:first-child { margin-top: 0; }
.article-wrap h3 { font-size: 18px; margin-top: 22px; color: var(--text); }
.article-wrap p { font-size: 16px; }
.article-wrap ul, .article-wrap ol { padding-left: 22px; }
.article-wrap li { margin-bottom: 10px; font-size: 15px; color: var(--text-soft); }
.article-wrap .lede { font-size: 18px; color: var(--text); border-left: 3px solid var(--gold); padding-left: 16px; margin-bottom: 24px; }

/* ---------- Person profile block ---------- */
.profile-block { display: flex; gap: 24px; align-items: flex-start; background: var(--paper); border: 1px solid var(--border); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 24px; margin-bottom: 32px; }
.profile-block img { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; flex: none; border: 3px solid var(--gold-light); }
.profile-block h2 { margin-top: 0; font-size: 22px; }
.profile-block .term { color: var(--text-soft); font-size: 14px; margin-bottom: 10px; }

/* ---------- Data table (history / DGs / Secretaries) ---------- */
.data-table { width: 100%; border-collapse: collapse; margin: 20px 0 32px; font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--green-deep); color: #fff; font-weight: 600; }
.data-table tr:nth-child(even) { background: #f7f5ef; }
.data-table tr.current td { font-weight: 700; color: var(--green-deep); }

/* ---------- History timeline ---------- */
.timeline-step { margin-bottom: 22px; padding-left: 18px; border-left: 3px solid var(--gold-light); }
.timeline-step h3 { margin-top: 0; margin-bottom: 6px; }

/* ---------- About page sidebar nav ---------- */
.about-sidebar { display: flex; flex-direction: column; gap: 24px; }
.page-toc { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.page-toc h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); margin-bottom: 10px; }
.page-toc ul { list-style: disc; margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.page-toc a { font-size: 14.5px; color: #a8365a; font-weight: 600; text-decoration: none; }
.page-toc a:hover { color: var(--green-deep); text-decoration: underline; }

/* ---------- About page intro photo ---------- */
.about-photo { margin: 0 0 20px; }
.about-photo img { width: 100%; height: auto; border-radius: var(--radius); display: block; }

/* ---------- Member grid (Present Council) ---------- */
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.member-card img { width: 92px; height: 92px; object-fit: cover; border-radius: 50%; margin: 0 auto 10px; border: 3px solid var(--gold-light); }
.member-card h4 { font-size: 14px; margin: 0; }

/* ---------- Coming-soon block ---------- */
.coming-soon { max-width: 640px; margin: 40px auto; text-align: center; padding: 0 24px; }
.coming-soon .icon-wrap { width: 76px; height: 76px; margin: 0 auto 20px; background: #f1ede2; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.coming-soon .icon-wrap svg { width: 34px; height: 34px; fill: var(--gold); }
.coming-soon h1 { font-size: 24px; }

/* ---------- Under-construction page ---------- */
.construction {
  max-width: 640px;
  margin: 72px auto;
  text-align: center;
  padding: 0 24px;
}
.construction .icon-wrap {
  width: 84px; height: 84px; margin: 0 auto 24px;
  background: #f1ede2; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.construction .icon-wrap svg { width: 40px; height: 40px; fill: var(--gold); }
.construction h1 { font-size: 26px; }
.construction p { font-size: 16px; }
.construction .btn { margin-top: 12px; }

/* ---------- Content page layout (sidebar + main) ---------- */
.content-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}
.page-title { font-size: 28px; margin-bottom: 6px; }

/* ---------- Content pages (tables, prose) ---------- */
.prose h2 { font-size: 24px; margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin-top: 22px; color: var(--text); }
.prose p, .prose li { color: var(--text-soft); font-size: 15.5px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.data-table { width: 100%; border-collapse: collapse; margin: 18px 0 30px; font-size: 14px; }
.data-table th, .data-table td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.data-table th { background: #f1ede2; color: var(--green-deep); font-family: var(--serif); }
.data-table tr:nth-child(even) td { background: #faf8f3; }
.person-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.person-list li { background: var(--paper); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 12px 16px; font-size: 14.5px; }
.person-list strong { display: block; color: var(--green-deep); }
/* ---------- Publication Accordion (RTL & Bilingual Right-Aligned) ---------- */
.pub-accordion {
  width: 100%;
  max-width: 100%;
  direction: rtl;
  text-align: right;
  margin-top: 24px;
}

.pub-category {
  margin-bottom: 12px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-right: 4px solid var(--gold);
  border-left: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.pub-category:hover {
  border-color: #d1c7ad;
  border-right-color: var(--green-deep);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pub-category[open] {
  border-right-color: var(--green-deep);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.pub-cat-summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: #ffffff;
  list-style: none;
  user-select: none;
  direction: rtl;
  text-align: right;
  gap: 12px;
}

.pub-cat-summary::-webkit-details-marker {
  display: none;
}

.pub-cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: right;
  direction: rtl;
}

.pub-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: #f7f5ed;
  color: var(--green-deep);
  font-weight: 700;
  font-size: 17px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  line-height: 1;
  transition: all 0.2s ease;
}

.pub-category[open] .pub-toggle-icon {
  background: var(--green-deep);
  color: #ffffff;
  border-color: var(--green-deep);
  transform: rotate(45deg);
}

.pub-title-urdu {
  font-family: var(--urdu);
  font-size: 19px;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.4;
}

.pub-title-en {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gold-dark);
  direction: ltr;
  unicode-bidi: embed;
  padding: 2px 9px;
  background: #faf8f3;
  border-radius: 4px;
  border: 1px solid #ede8db;
}

.pub-cat-meta {
  display: flex;
  align-items: center;
  direction: rtl;
  flex-shrink: 0;
}

.pub-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1ede2;
  color: var(--green-deep);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid #e2dac9;
  direction: rtl;
}

.pub-badge-lbl {
  font-family: var(--urdu);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-soft);
}

.pub-category ul {
  list-style: none;
  margin: 0;
  padding: 12px 24px 16px 20px;
  background: #faf9f6;
  border-top: 1px solid var(--border);
  direction: rtl;
  text-align: right;
}

.pub-category li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-family: var(--urdu);
  font-size: 16px;
  line-height: 1.7;
}

.pub-category li:last-child {
  border-bottom: none;
}

.pub-category li a {
  color: var(--green-deep);
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-block;
}

.pub-category li a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

.pub-category li a::before {
  content: "📄 ";
  font-size: 14px;
  margin-left: 6px;
}

.empty-state { background: var(--paper); border: 1px dashed var(--border); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--text-soft); }
.lang-urdu { font-weight: 400; font-size: .8em; color: var(--text-soft); font-family: var(--urdu); }
.pub-eng { font-family: var(--sans); font-weight: 400; font-size: .8em; color: var(--text-soft); }
.pub-count { font-family: var(--sans); font-weight: 400; font-size: .75em; color: var(--gold); }
.pub-empty { padding: 10px 0 4px; color: var(--text-soft); font-size: 14px; font-style: italic; }
.rtl-content { direction: rtl; text-align: right; }
.rtl-content td, .rtl-content th { font-family: var(--urdu); font-size: 16px; text-align: right; }
.rtl-content td:first-child, .rtl-content th:first-child { direction: ltr; text-align: right; font-family: var(--sans); font-size: 14px; }

/* ---------- FAQ accordion ---------- */
.faq-item { margin-bottom: 12px; }
.faq-item summary {
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--green-deep);
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 18px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+ "; color: var(--gold); font-weight: 700; }
.faq-item[open] summary::before { content: "\2212 "; }
.faq-item[open] summary { border-radius: var(--radius) var(--radius) 0 0; }
.faq-answer { background: var(--cream); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); padding: 14px 18px; }
.faq-answer p { font-size: 15px; margin-bottom: .6em; }
.faq-answer ul { margin-top: 6px; padding-left: 20px; }
.faq-answer li { font-size: 14.5px; color: var(--text-soft); margin-bottom: 4px; }
.notice-box { background: #f8f4e8; border: 1px solid var(--gold-light); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 14px 18px; font-size: 14.5px; color: var(--text-soft); margin-bottom: 22px; max-width: 800px; }
.data-table td.unavailable { color: var(--text-soft); font-style: italic; font-size: 13.5px; }
.wrap > .lede, .block > .wrap > .lede { font-size: 16px; color: var(--text-soft); max-width: 800px; margin-bottom: 24px; }
.empty-state svg { width: 40px; height: 40px; fill: var(--gold); margin-bottom: 12px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--paper); border-bottom: 1px solid var(--border); font-size: 13px; }
.breadcrumb .wrap { padding: 10px 24px; color: var(--text-soft); }
.breadcrumb a { color: var(--green-deep); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
  align-items: start;
}
.contact-info-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-info-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-info-card .office-heading { font-size: 14px; font-family: var(--sans); font-weight: 700; color: var(--green-deep); margin: 18px 0 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.contact-info-card h3 + .item { margin-top: 12px; }
.contact-info-card .item { display: flex; gap: 12px; margin: 16px 0; align-items: flex-start; }
.contact-info-card .item svg { width: 20px; height: 20px; fill: var(--green-deep); flex: none; margin-top: 2px; }
.contact-info-card .item span { font-size: 14px; color: var(--text-soft); }
.contact-info-card .item strong { display: block; color: var(--text); font-size: 14px; }

.contact-form-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.field input, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15px; font-family: inherit; box-sizing: border-box;
}
.field textarea { min-height: 130px; resize: vertical; }
.field.hp { position: absolute; left: -9999px; }
.form-msg { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 14px; display: none; }
.form-msg.success { background: #e3f6e8; color: #155724; border: 1px solid #b7e2c1; }
.form-msg.error { background: #fbe9e9; color: #8a1f1f; border: 1px solid #f0b8b8; }
.form-msg.show { display: block; }
button.submit-btn { background: var(--green-deep); color: #fff; border: none; padding: 11px 24px; font-size: 15px; font-weight: 600; border-radius: var(--radius); cursor: pointer; font-family: inherit; }
button.submit-btn:hover { background: var(--green-mid); }
button.submit-btn:disabled { opacity: .6; cursor: default; }

/* ---------- Small utility classes (replace one-off inline styles) ---------- */
.mt-sm { margin-top: 14px; }
.mb-sm { margin-bottom: 14px; }
.text-sm { font-size: 14px; }
.h2-compact { font-size: 20px; }
.push-right { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-3 {
    grid-template-columns: clamp(260px, 28vw, 320px) minmax(0, 1fr) clamp(240px, 26vw, 290px);
    gap: clamp(16px, 2vw, 24px);
  }
}
@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .about-copy {
    grid-column: 1 / -1;
    order: -1;
  }
  .pair { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-block { flex-direction: column; align-items: center; text-align: center; }
  .content-layout { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-copy {
    order: 0;
  }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  nav.main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 12px; }
  .site-header .wrap { flex-wrap: wrap; }
  .top-banner .wrap { padding: 0 10px; }
  .carousel-track img { height: 260px; }
  .hero { min-height: 0; }
  .hero img { height: 300px; }
  .hero-content { position: static; background: linear-gradient(180deg, rgba(10,51,35,.75), rgba(10,51,35,.95)); margin-top: -80px; padding: 24px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .link-cols { grid-template-columns: 1fr; }
}