/* ==========================================================================
   P&DD AJ&K site theme
   Loaded after the legacy stylesheets (style.css, zerogrid.css, ...) and
   overrides their fixed-width layout with a responsive one.
   ========================================================================== */

:root {
  --green-950: #04261a;
  --green-900: #063a24;
  --green-800: #0a4f30;
  --green-700: #0b6b3a;
  --green-600: #0f8a4b;
  --green-500: #18a35c;
  --green-100: #dff3e7;
  --green-50:  #f0f8f3;
  --gold:      #f4b400;
  --gold-soft: #fff4d1;
  --ink:       #1d2a24;
  --muted:     #56645d;
  --line:      #dfe7e2;
  --bg:        #f4f7f5;
  --white:     #ffffff;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 1px 2px rgba(6, 58, 36, .06), 0 8px 24px rgba(6, 58, 36, .08);
  --shadow-lg: 0 18px 40px rgba(6, 58, 36, .16);
  --font:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Poppins", "Inter", system-ui, "Segoe UI", Arial, sans-serif;
  --container: 1200px;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { width: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.65 var(--font);
  min-width: 0;
  overflow-x: hidden;
}
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }
a { color: var(--green-700); }
a:hover, a:focus { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; color: var(--green-900); }
strong, b { font-weight: 600; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.pnd-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; box-sizing: border-box; float: none; }
.muted { color: var(--muted); }
.harold { display: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000000;
  background: var(--gold); color: var(--green-950); font-weight: 600;
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 12px; color: var(--green-950); }
#main:focus { outline: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-950); color: #cfe6d9; font-size: 13px; line-height: 1.4; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.topbar__links { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; line-height: 1.4; }
.topbar a { color: #cfe6d9; text-decoration: none; }
.topbar a:hover, .topbar a:focus { color: var(--white); }
.topbar i { margin-right: 4px; color: var(--gold); }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); height: auto; margin: 0; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 96px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; min-width: 0; }
.brand:hover, .brand:focus { color: inherit; }
.brand__emblem { width: 64px; height: 64px; flex: none; border-radius: 50%; box-shadow: 0 0 0 3px var(--green-100); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__urdu { font-size: 15px; color: var(--green-600); font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif; text-align: left; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--green-900); letter-spacing: -.01em; }
.brand__sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.site-search { margin-left: auto; display: flex; align-items: stretch; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; width: 300px; max-width: 100%; }
.site-search input[type="search"] {
  flex: 1; min-width: 0; height: 42px; border: 0; background: transparent;
  padding: 0 16px; font: 400 14px var(--font); color: var(--ink);
}
.site-search input:focus { outline: none; }
.site-search:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); }
.site-search button { border: 0; background: var(--green-700); color: var(--white); width: 48px; cursor: pointer; font-size: 15px; }
.site-search button:hover { background: var(--green-800); }

.nav-toggle {
  display: none; align-items: center; gap: 8px; margin-left: auto;
  border: 1px solid var(--line); background: var(--white); color: var(--green-900);
  border-radius: 10px; padding: 10px 14px; font: 600 14px var(--font); cursor: pointer;
}

/* ---------- Main navigation ---------- */
.mainnav {
  position: sticky; top: 0; z-index: 900;
  background: var(--green-700);
  background-image: linear-gradient(90deg, var(--green-800), var(--green-700));
  box-shadow: 0 2px 10px rgba(4, 38, 26, .18);
  border: 0; height: auto; max-width: none; margin: 0;
}
.mainnav__list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; line-height: 1.3; }
.mainnav__list > li { position: relative; }
.mainnav__list > li > a,
.mainnav__list > li > button {
  display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 16px;
  color: var(--white); text-decoration: none; background: none; border: 0;
  font: 500 14.5px var(--font); cursor: pointer; white-space: nowrap;
}
.mainnav__list > li > button::after {
  content: ""; width: 7px; height: 7px; margin-left: 4px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s; opacity: .85;
}
.mainnav__list > li > a:hover, .mainnav__list > li > a:focus-visible,
.mainnav__list > li > button:hover, .mainnav__list > li > button:focus-visible,
.mainnav__list > li.is-open > button, .mainnav__list > li > a[aria-current="page"] {
  background: rgba(255, 255, 255, .12); color: var(--white);
}
.mainnav__list > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
.mainnav__list > li.is-open > button::after { transform: rotate(-135deg); margin-top: 3px; }
.mainnav .has-sub > ul {
  position: absolute; left: 0; top: 100%; min-width: 250px; z-index: 950;
  margin: 0; padding: 8px; list-style: none; line-height: 1.4;
  background: var(--white); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.mainnav .has-sub.is-open > ul { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1025px) {
  .mainnav .has-sub:hover > ul { opacity: 1; visibility: visible; transform: none; }
}
.mainnav .has-sub > ul a {
  display: block; padding: 9px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: 14.5px;
}
.mainnav .has-sub > ul a:hover, .mainnav .has-sub > ul a:focus-visible { background: var(--green-50); color: var(--green-800); }

/* ---------- Generic layout for content pages ---------- */
#content { padding: 32px 0 48px; }
.zerogrid { width: 100%; max-width: var(--container); padding: 0 20px; box-sizing: border-box; }
#content > .wrap-content { min-height: 0 !important; }
#content > .wrap-content > .row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
#content > .wrap-content > .row::before, #content > .wrap-content > .row::after { display: none; }
#content > .wrap-content > .row > #sidebar { width: 290px; flex: none; float: none; order: 0; }
#content > .wrap-content > .row > #main-content,
#content > .wrap-content > .row > .col-3-4 { flex: 1 1 0; width: auto; min-width: 0; float: none; }
#content > .wrap-content > .row > .col-full { flex: 1 1 100%; width: 100%; float: none; }
#main-content { min-height: 0; }
.zerogrid .wrap-col { margin: 0; }

/* Article cards */
#main-content article, .card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 30px; margin-bottom: 24px; box-sizing: border-box;
}
#main-content article h2 {
  font-size: 24px; line-height: 1.3; color: var(--green-900); font-weight: 600;
  border: 0; padding: 0 0 14px; margin: 0 0 20px; position: relative;
  border-bottom: 1px solid var(--line);
}
#main-content article h2::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 3px;
  background: var(--gold); border-radius: 3px;
}
#main-content article h3 { font-size: 18px; line-height: 1.4; color: var(--green-800); margin: 18px 0 8px; }
#main-content article h4 { font-size: 16px; margin: 14px 0 6px; }
#main-content article p { margin: 0 0 14px; text-align: left; }
#main-content article ul, #main-content article ol { line-height: 1.7; margin: 0 0 16px 22px; }
#main-content article li { margin-bottom: 6px; }
#main-content article img { border-radius: var(--radius-sm); }
#main-content article .info { color: var(--ink); }
#main-content iframe { width: 100%; border-radius: var(--radius-sm); }
#main-content iframe[src*="google.com/maps"] { height: auto; aspect-ratio: 4 / 3; }
#main-content article .divfolder { width: 100%; max-width: 300px; }

/* Sidebar */
#sidebar .box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px;
}
#sidebar .heading {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  border: 0; padding: 16px 20px; color: var(--white);
}
#sidebar .heading h2 { display: block; font-size: 17px; font-weight: 600; color: var(--white); margin: 0; letter-spacing: .01em; }
#sidebar .content { border: 0; padding: 8px; background: var(--white); }
.linklist ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; line-height: 1.4; }
.linklist ul li { border: 0; padding: 0; }
.linklist ul li + li { border-top: 1px solid var(--line); }
.linklist ul li a {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none;
}
.linklist ul li a::before {
  content: ""; width: 6px; height: 6px; flex: none;
  border-right: 2px solid var(--green-600); border-top: 2px solid var(--green-600); transform: rotate(45deg);
}
.linklist ul li a:hover, .linklist ul li a:focus-visible { background: var(--green-50); color: var(--green-800); }
.linklist ul li a[aria-current="page"] { background: var(--green-50); color: var(--green-800); font-weight: 600; }

/* Tables */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 18px; border-radius: var(--radius-sm); }
#main-content table { border-collapse: collapse; border-spacing: 0; max-width: 100%; font-size: 14px; line-height: 1.5; }
#main-content .table-scroll > table { max-width: none; min-width: 100%; }
#main-content table td, #main-content table th { border: 1px solid var(--line); padding: 9px 12px; vertical-align: top; }
#main-content table th, #main-content table .headertd, table.gridtable th {
  background: var(--green-700); color: var(--white); font-weight: 600; border-color: var(--green-700); text-align: left;
}
#main-content table tr:nth-child(even) td { background: #f8fbf9; }
#main-content table tr:hover td { background: var(--green-50); }
table.gridtable { font-family: var(--font); font-size: 14px; color: var(--ink); border-color: var(--line); }
table.gridtable td { border-color: var(--line); background: var(--white); }
@media screen and (max-width: 640px) {
  table { display: table; overflow: visible; }
}

/* Legacy div-based tables (honour boards, trainings) */
.containerhb { font-size: 14px; line-height: 1.5; }
.headinghb { background: var(--green-700); font-family: var(--font); font-size: 14px; font-weight: 600; line-height: 1.4; }
.headinghb .col { padding: 10px 12px; border-color: var(--green-700); }
.containerhb .col { padding: 9px 12px; border: 1px solid var(--line); }

/* Forms and buttons */
input, select, textarea {
  font: 400 15px var(--font); color: var(--ink); height: auto;
  border: 1px solid #c9d6ce; border-radius: var(--radius-sm); background: var(--white);
  box-sizing: border-box;
}
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"],
input[type="date"], input[type="search"]:not(#site-search-q), input:not([type]), select, textarea {
  padding: 9px 12px; min-height: 42px; max-width: 100%;
}
input[type="checkbox"], input[type="radio"] { width: auto; height: auto; min-height: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); outline: none; }
.styled-button-8, input[type="submit"], input[type="button"], button.btn, a.button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green-700); color: var(--white); border: 0; border-radius: 999px;
  padding: 10px 22px; font: 600 15px var(--font); line-height: 1.3; cursor: pointer;
  text-decoration: none; box-shadow: none; text-shadow: none; filter: none; min-height: 42px; height: auto;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.styled-button-8:hover, input[type="submit"]:hover, input[type="button"]:hover, a.button:hover, .btn:hover {
  background: var(--green-800); color: var(--white); box-shadow: 0 6px 16px rgba(11, 107, 58, .25);
}

/* Legacy image tiles used on inner pages */
.imagecontainer, .imagecontainer1 { height: auto; display: flex; flex-wrap: wrap; gap: 16px; }
.imagecontainer .imageHolder, .imagecontainer1 .imageHolder {
  float: none; margin: 0; width: 160px; height: auto; border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.imagecontainer .imageHolder:hover, .imagecontainer1 .imageHolder:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.imagecontainer .imageHolder img, .imagecontainer1 .imageHolder img { display: block; width: 100%; height: auto; }
.imagecontainer .imageHolder .caption, .imagecontainer1 .imageHolder .caption {
  position: static; width: auto; height: auto; padding: 8px 10px; opacity: 1;
  background: var(--green-700); font-size: 13.5px; line-height: 1.3;
}

/* Pagination */
#pagi li a, .pagging a { border-radius: 6px; }

/* ---------- Home page ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(244, 180, 0, .18), transparent 60%),
    radial-gradient(800px 400px at -10% 120%, rgba(24, 163, 92, .45), transparent 60%),
    linear-gradient(135deg, var(--green-950) 0%, var(--green-800) 55%, var(--green-700) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; opacity: .14;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 120V80l120-50 90 35 140-60 120 55 110-40 150 70 130-55 110 40 120-45 110 50v90z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 88px; }
.hero__eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #e3f3ea;
}
.hero__title { margin: 0 0 16px; color: var(--white); font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.hero__lead { margin: 0 0 28px; font-size: 17px; line-height: 1.7; color: #d7ece0; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--light { background: var(--gold); color: var(--green-950); }
.btn--light:hover, .btn--light:focus { background: #ffc928; color: var(--green-950); }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.btn--ghost:hover, .btn--ghost:focus { background: rgba(255, 255, 255, .12); color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.hero__badge { justify-self: center; display: grid; place-items: center; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 18px rgba(255, 255, 255, .05), 0 0 0 40px rgba(255, 255, 255, .03); }
.hero__badge img { width: 200px; height: 200px; border-radius: 50%; }

.carousel { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); background: var(--green-900); aspect-ratio: 16 / 10; }
.carousel__track { position: absolute; inset: 0; }
.carousel__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; }
.carousel__slide.is-active { opacity: 1; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel__slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: var(--white); font-weight: 500; font-size: 15px;
}
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .88); color: var(--green-900); cursor: pointer; font-size: 15px;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.carousel__btn:hover { background: var(--white); }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.carousel__dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .2s; }
.carousel__dots button[aria-current="true"] { width: 26px; background: var(--gold); }

.home-section { padding: 56px 0; }
.home-section--tint { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { margin: 0 0 28px; font-size: 28px; font-weight: 700; color: var(--green-900); position: relative; padding-bottom: 12px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--gold); border-radius: 4px; }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; line-height: 1.4; }
.tile {
  display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tile:hover, .tile:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-500); color: var(--ink); }
.tile__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 10px;
  background: var(--green-50); color: var(--green-700); font-size: 22px; transition: background .2s, color .2s;
}
.tile:hover .tile__icon { background: var(--green-700); color: var(--white); }
.tile__label { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--green-900); }
.tile__desc { font-size: 14px; color: var(--muted); }

.home-grid { display: grid; grid-template-columns: 1.15fr 1.15fr .9fr; gap: 24px; align-items: start; }
.card { margin: 0; }
.card--accent { background: linear-gradient(160deg, var(--green-50), var(--white) 60%); }
.card__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 19px; font-weight: 600; color: var(--green-900); }
.card__title i { color: var(--green-600); font-size: 17px; }
.card p { margin: 0 0 18px; color: var(--ink); }
.vision { margin: 0 0 24px; padding: 4px 0 4px 16px; border-left: 4px solid var(--gold); font-style: italic; color: var(--ink); quotes: none; }
.updates { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; line-height: 1.45; }
.updates li { padding: 12px 0; border-top: 1px solid var(--line); }
.updates li:first-child { border-top: 0; padding-top: 0; }
.updates a { display: block; color: var(--green-900); font-weight: 500; text-decoration: none; }
.updates a:hover { color: var(--green-600); text-decoration: underline; }
.updates__meta { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--gold-soft); color: #7a5a00; font-size: 11.5px; font-weight: 600; }
.linkgrid { list-style: none; margin: 0 0 18px; padding: 0; line-height: 1.4; }
.linkgrid li + li { border-top: 1px solid var(--line); }
.linkgrid a { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; color: var(--ink); text-decoration: none; }
.linkgrid a::after { content: "\203A"; color: var(--green-600); font-size: 20px; line-height: 1; }
.linkgrid a:hover { color: var(--green-700); }
.fb-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: var(--radius-sm);
  background: #1877f2; color: var(--white); text-decoration: none; font-weight: 600; margin-bottom: 14px;
}
.fb-cta:hover, .fb-cta:focus { background: #0f63d1; color: var(--white); }
.weather { display: block; text-align: center; }
.weather img { border-radius: var(--radius-sm); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; line-height: 1.3; }
.chips a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--green-900); text-decoration: none; font-size: 14.5px;
  transition: border-color .15s, background .15s;
}
.chips a i { font-size: 11px; color: var(--muted); }
.chips a:hover, .chips a:focus-visible { border-color: var(--green-600); background: var(--green-50); color: var(--green-800); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #bcd6c8; max-width: none; margin: 0; font-size: 14.5px; line-height: 1.6; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.site-footer .brand__name { color: var(--white); font-size: 17px; }
.site-footer .brand__sub { color: #9fbfae; }
.site-footer .brand__emblem { width: 52px; height: 52px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.site-footer__about p { margin: 16px 0 0; }
.site-footer__title { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--white); letter-spacing: .03em; text-transform: uppercase; }
.site-footer__links { list-style: none; margin: 0; padding: 0; line-height: 1.5; }
.site-footer__links li { margin-bottom: 8px; }
.site-footer a { color: #d9ebe1; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: var(--gold); text-decoration: underline; }
.site-footer__contact { font-style: normal; }
.site-footer__contact p { display: flex; gap: 10px; margin: 0 0 10px; }
.site-footer__contact i { color: var(--gold); margin-top: 4px; width: 16px; flex: none; text-align: center; }
.site-footer__ad { padding-bottom: 24px; text-align: center; overflow: hidden; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.site-footer__bottom .pnd-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; }
.site-footer__bottom p { margin: 0; }

.back-to-top {
  position: fixed; left: 20px; bottom: 20px; z-index: 990; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--green-700); color: var(--white); cursor: pointer; font-size: 16px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--green-800); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 1fr 1fr; }
  .home-grid > .card:last-child { grid-column: 1 / -1; }
  .site-search { width: 240px; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .site-header__inner { flex-wrap: wrap; gap: 12px 16px; }
  .site-search { order: 3; width: 100%; margin-left: 0; }
  .site-header__inner .brand { flex: 1 1 0; }
  .nav-toggle { flex: none; }
  .mainnav { position: static; display: none; background: var(--green-800); }
  .mainnav.is-open { display: block; }
  .mainnav .pnd-container { padding: 0; }
  .mainnav__list { flex-direction: column; padding: 6px 0; }
  .mainnav__list > li > a, .mainnav__list > li > button { width: 100%; height: 50px; padding: 0 20px; justify-content: flex-start; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .mainnav__list > li > button::after { margin-left: auto; }
  .mainnav .has-sub > ul {
    position: static; display: none; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; background: var(--green-900); padding: 4px 0;
  }
  .mainnav .has-sub.is-open > ul { display: block; }
  .mainnav .has-sub > ul a { color: #e3f3ea; padding: 11px 20px 11px 36px; border-radius: 0; }
  .mainnav .has-sub > ul a:hover, .mainnav .has-sub > ul a:focus-visible { background: rgba(255, 255, 255, .08); color: var(--white); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; padding-bottom: 80px; }
  .hero__badge { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  #content > .wrap-content > .row { flex-direction: column; align-items: stretch; }
  #content > .wrap-content > .row > #sidebar { width: 100%; order: 2; }
  #content > .wrap-content > .row > #main-content, #content > .wrap-content > .row > .col-3-4 { width: 100%; flex: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .pnd-container, .zerogrid { padding-left: 16px; padding-right: 16px; }
  .topbar__gov { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__links { gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 12.5px; }
  .site-header__inner { min-height: 0; }
  .brand__emblem { width: 48px; height: 48px; }
  .brand__name { font-size: 16px; }
  .brand__sub { font-size: 12px; }
  .brand__urdu { font-size: 13px; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 10px 12px; }
  #content { padding: 20px 0 32px; }
  #main-content article, .card { padding: 20px 18px; }
  #main-content article h2 { font-size: 20px; }
  .home-section { padding: 40px 0; }
  .section-title { font-size: 23px; }
  .tiles { gap: 12px; }
  .tile { padding: 16px; }
  .tile__icon { width: 44px; height: 44px; font-size: 19px; }
  .tile__label { font-size: 15px; }
  .tile__desc { display: none; }
  .home-grid { grid-template-columns: 1fr; }
  .hero__lead { font-size: 16px; }
  .hero__actions .btn { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .mainnav, .site-search, .nav-toggle, .site-footer, .back-to-top, #sidebar, #pnd-chatbot-container { display: none !important; }
  body { background: #fff; }
  #main-content article { box-shadow: none; border: 0; padding: 0; }
}
