:root {
  --bg: #080b25;
  --panel: #111a46;
  --panel-2: #17215f;
  --text: #f8fbff;
  --muted: #c7d2fe;
  --line: rgba(255, 255, 255, 0.15);
  --green: #6d28d9;
  --green-2: #38bdf8;
  --blue: #2563eb;
  --purple: #5b3cc4;
  --purple-2: #7c3aed;
  --cyan: #38bdf8;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --hand-grey: #6b7280;
  --radius: 20px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  background: linear-gradient(
    180deg,
    #080b25,
    #10194a 34%,
    #0a2a5f 72%,
    #061327
  );
  color: var(--text);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 24px rgba(65, 35, 160, 0.1);
  transition: transform 0.25s ease;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  width: 172px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex: none;
}
.brand-mark img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  image-rendering: auto;
}
.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.brand-title {
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.01em;
}
.brand-org {
  font-size: 12px;
  color: var(--hand-grey);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.15;
  font-family:
    "Eras Medium ITC", "Eras Medium", "Eras Demi ITC", "Trebuchet MS", Arial,
    sans-serif;
  font-style: italic;
  white-space: normal;
  text-align: left;
}
.brand-sub {
  font-size: 13px;
  color: #4b5563;
}
.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
}
.nav a {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
  white-space: nowrap;
}
.nav a:hover {
  color: #5b3cc4;
}
.menu-toggle {
  display: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  padding: 10px 12px;
}
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  opacity: 0.6;
  filter: brightness(1.1) contrast(1.06) saturate(1.04);
}
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 11, 37, 0.84) 0%,
    rgba(17, 24, 76, 0.7) 36%,
    rgba(37, 99, 235, 0.28) 64%,
    rgba(91, 60, 196, 0.46) 100%
  );
}
.page-home .hero::before {
  background-image: url("images/home-bg.png");
}
.page-about .page-hero::before {
  background-image: url("images/about-bg.png");
}
.page-chapters .page-hero::before {
  background-image: url("images/chapters-bg.png");
}
.page-verticals .page-hero::before {
  background-image: url("images/verticals-bg.png");
}
.page-partners .page-hero::before {
  background-image: url("images/partners-bg.png");
}
.page-events .page-hero::before {
  background-image: url("images/events-bg.png");
}
.page-register .page-hero::before {
  background-image: url("images/register-bg.png");
}
.page-contact .page-hero::before {
  background-image: url("images/contact-bg.png");
}
.page-success .section-lg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 10, 18, 0.6), rgba(3, 10, 18, 0.38)),
    url("images/home-bg.png") center/cover no-repeat;
  opacity: 0.44;
  border-bottom: 1px solid var(--line);
}
.section-lg {
  position: relative;
  padding: 74px 0;
}
.section {
  padding: 54px 0;
}
.hero-grid,
.page-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
  padding: 72px 0;
}
.page-head {
  padding: 66px 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 4rem);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 14px;
  color: #dce7f3;
}
.muted {
  color: var(--muted);
}
.accent {
  color: #bfdbfe;
}
.tag,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91, 60, 196, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.32);
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.eyebrow {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  color: #93c5fd;
}
.btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 700;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--purple-2), var(--blue));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}
.btn.primary:not(:disabled):hover {
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.36);
  transform: translateY(-1px);
}
.btn.primary:disabled {
  background: linear-gradient(135deg, rgba(91, 60, 196, 0.35), rgba(37, 99, 235, 0.28));
  color: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.55;
}
.btn.secondary {
  background: rgba(255, 255, 255, 0.07);
}
.kpis,
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.kpi,
.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.kpi .label,
.small {
  font-size: 13px;
  color: var(--muted);
}
.kpi .value,
.big {
  font-weight: 700;
  margin-top: 8px;
}
.big {
  font-size: 1.15rem;
  color: #93c5fd;
}
.hero-card,
.panel,
.banner,
.visual-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(23, 33, 95, 0.92),
    rgba(12, 20, 63, 0.94)
  );
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 24px;
}
.subject-panel h3 {
  margin-top: 10px;
}
.hero-visual,
.visual-card {
  overflow: hidden;
}
.hero-visual img,
.visual-card img,
.card-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 18px;
  aspect-ratio: 16/9;
}
.visual-card {
  min-height: 330px;
  overflow: hidden;
}
.subject-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.subject-btn {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #dce6ef;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 600;
}
.subject-btn.active {
  background: rgba(91, 60, 196, 0.22);
  border-color: rgba(56, 189, 248, 0.44);
  color: #eff6ff;
}
.notice {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  color: #dbe8f4;
}
.section-team .section-title {
  margin-bottom: 28px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 4px;
}
.team-card {
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(23, 33, 95, 0.96),
    rgba(11, 22, 64, 0.96)
  );
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 18px 22px;
  box-shadow: var(--shadow);
}
.team-photo {
  width: 92px;
  height: 92px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple-2), var(--blue));
  border: 3px solid rgba(56, 189, 248, 0.9);
  box-shadow:
    0 0 0 2px rgba(8, 11, 37, 0.9),
    0 10px 28px rgba(37, 99, 235, 0.18);
}
.team-photo .team-photo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.team-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fbff;
  letter-spacing: 0.01em;
}
.team-name {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #eaf2ff;
  text-transform: uppercase;
}
.team-role {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: none;
  color: #93c5fd;
}
.team-bio {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.team-footnote {
  margin-top: 28px;
  max-width: 900px;
}
.team-footnote a {
  color: #bfdbfe;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.team-footnote a:hover {
  color: #ffffff;
}
@media (max-width: 980px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
.section-title {
  max-width: 800px;
  margin-bottom: 24px;
}
.meetup-office .section-title {
  max-width: 900px;
}
.meetup-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.meetup-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4/3;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  background: rgba(7, 17, 28, 0.6);
}
.meetup-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 980px) {
  .meetup-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .meetup-gallery {
    grid-template-columns: 1fr;
  }
}
.consulate-meetup .section-title {
  max-width: 920px;
}
.consulate-highlights {
  margin: 28px 0 32px;
  padding: 26px 28px;
}
.consulate-highlights h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: #eff6ff;
}
.consulate-highlights ul {
  margin: 0 0 18px;
  padding-left: 1.25rem;
  color: #dce7f3;
}
.consulate-highlights li {
  margin-bottom: 8px;
}
.consulate-thanks {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.6;
}
.consulate-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.consulate-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4/3;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  background: rgba(7, 17, 28, 0.6);
}
.consulate-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}
.consulate-photo:hover img {
  transform: scale(1.04);
}
@media (max-width: 1100px) {
  .consulate-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .consulate-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .consulate-gallery {
    grid-template-columns: 1fr;
  }
}
.events-jump {
  margin: 0 0 8px;
}
.events-jump .inline-list {
  gap: 8px;
}
.events-jump .pill {
  font-weight: 600;
}
.events-jump .pill:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(91, 60, 196, 0.22);
  color: #eff6ff;
}
.events-featured .section-title {
  margin-bottom: 28px;
}
.events-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.members-meetup .section-title {
  max-width: 920px;
}
@media (max-width: 1100px) {
  .events-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.event-teaser {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(23, 33, 95, 0.95),
    rgba(11, 22, 64, 0.95)
  );
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.event-teaser:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}
.event-teaser-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #07111c;
}
.event-teaser-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-teaser-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.event-teaser-tag {
  align-self: flex-start;
}
.event-teaser h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}
.event-teaser p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}
.event-teaser-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #93c5fd;
}
.event-spotlight {
  scroll-margin-top: 88px;
}
.event-spotlight .section-title {
  max-width: 920px;
}
.event-spotlight-pakistan .event-spotlight-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}
.event-spotlight-pakistan .card {
  margin: 0;
}
.events-programming {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.events-programming .section-title {
  max-width: 800px;
  margin-bottom: 28px;
}
@media (max-width: 980px) {
  .events-featured-grid,
  .event-spotlight-pakistan .event-spotlight-split {
    grid-template-columns: 1fr;
  }
}
.grid-2,
.grid-3,
.footer-grid,
.field-grid,
.pill-row,
.inline-list,
.feature-list {
  display: grid;
  gap: 18px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.footer-grid {
  grid-template-columns: 1.3fr 0.7fr;
  align-items: start;
}
.card {
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(23, 33, 95, 0.95),
    rgba(11, 22, 64, 0.95)
  );
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.card-top {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #07111c;
}
.card-body {
  padding: 20px;
}
.banner {
  padding: 28px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.22),
    rgba(37, 99, 235, 0.14)
  );
}
.feature-list {
  grid-template-columns: 1fr;
}
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  border-radius: 16px;
}
.icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #ffffff;
  flex: none;
}
.pill-row,
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: #dbe7f3;
}
.table-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.table th,
.table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}
.table thead th {
  background: rgba(91, 60, 196, 0.24);
  color: #eff6ff;
}
.field-grid {
  grid-template-columns: repeat(2, 1fr);
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  display: block;
  font-size: 14px;
  color: #c9d7e5;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 14, 42, 0.88);
  color: #fff;
  font: inherit;
  outline: none;
}
.field input:focus,
.field textarea:focus {
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
/* Hidden native select — kept for form submission & validation */
.select-hidden {
  display: none;
}
/* Custom themed select dropdown */
.custom-select-wrap {
  position: relative;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 14, 42, 0.88);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.custom-select-trigger:focus,
.custom-select-wrap.is-open .custom-select-trigger {
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}
.custom-select-val {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-val.is-placeholder {
  color: var(--muted);
}
.custom-select-chevron {
  flex: none;
  color: #38bdf8;
  transition: transform 0.2s ease;
}
.custom-select-wrap.is-open .custom-select-chevron {
  transform: rotate(180deg);
}
.custom-select-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--panel);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 6px;
  list-style: none;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.35) transparent;
}
.custom-select-panel::-webkit-scrollbar {
  width: 5px;
}
.custom-select-panel::-webkit-scrollbar-track {
  background: transparent;
}
.custom-select-panel::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 999px;
}
.custom-select-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.65);
}
.custom-select-wrap.is-open .custom-select-panel {
  display: block;
}
.custom-select-option {
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  color: #dce7f3;
  font-size: 14px;
  transition: background 0.15s ease;
}
.custom-select-option:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #fff;
}
.custom-select-option.is-selected {
  background: rgba(91, 60, 196, 0.28);
  color: #fff;
  font-weight: 600;
}
.custom-select-option.is-placeholder {
  color: var(--muted);
  pointer-events: none;
}
.field-hint {
  display: none;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #f87171;
  line-height: 1.4;
}

/* Form responsive */
.form-panel {
  padding: 28px;
}
@media (max-width: 640px) {
  .form-panel {
    padding: 18px 16px;
  }
  .field input,
  .field textarea,
  .custom-select-trigger {
    padding: 11px 13px;
    font-size: 16px;
    border-radius: 12px;
  }
  .custom-select-panel {
    border-radius: 12px;
    max-height: 220px;
    overflow-y: auto;
  }
  .field-grid {
    gap: 14px;
  }
}




.footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  background: rgba(5, 8, 31, 0.92);
}

.page-home .hero .pakistan-bg-merge {
  position: absolute;
  right: -100px;
  top: -90px;
  bottom: auto;
  height: 1280px;
  width: min(145vw, 1980px);
  opacity: 0.26;
  background-image: url("images/pakistan-flag-flying.jpg");
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  filter: saturate(1.03) brightness(1.03) contrast(1.02);
  transform: rotate(-7deg);
  transform-origin: top right;
  mask-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.14) 10%,
      rgba(0, 0, 0, 0.42) 20%,
      rgba(0, 0, 0, 0.72) 30%,
      rgba(0, 0, 0, 0.92) 40%,
      rgba(0, 0, 0, 0.92) 60%,
      rgba(0, 0, 0, 0.72) 70%,
      rgba(0, 0, 0, 0.42) 80%,
      rgba(0, 0, 0, 0.14) 90%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.14) 10%,
      rgba(0, 0, 0, 0.42) 20%,
      rgba(0, 0, 0, 0.72) 30%,
      rgba(0, 0, 0, 0.92) 40%,
      rgba(0, 0, 0, 0.92) 60%,
      rgba(0, 0, 0, 0.72) 70%,
      rgba(0, 0, 0, 0.42) 80%,
      rgba(0, 0, 0, 0.14) 90%,
      rgba(0, 0, 0, 0) 100%
    );
  -webkit-mask-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.14) 10%,
      rgba(0, 0, 0, 0.42) 20%,
      rgba(0, 0, 0, 0.72) 30%,
      rgba(0, 0, 0, 0.92) 40%,
      rgba(0, 0, 0, 0.92) 60%,
      rgba(0, 0, 0, 0.72) 70%,
      rgba(0, 0, 0, 0.42) 80%,
      rgba(0, 0, 0, 0.14) 90%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.14) 10%,
      rgba(0, 0, 0, 0.42) 20%,
      rgba(0, 0, 0, 0.72) 30%,
      rgba(0, 0, 0, 0.92) 40%,
      rgba(0, 0, 0, 0.92) 60%,
      rgba(0, 0, 0, 0.72) 70%,
      rgba(0, 0, 0, 0.42) 80%,
      rgba(0, 0, 0, 0.14) 90%,
      rgba(0, 0, 0, 0) 100%
    );
}
.page-home .hero .pakistan-bg-merge::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 74% 20%,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0) 34%
    ),
    linear-gradient(
      90deg,
      rgba(7, 18, 31, 0.02) 0%,
      rgba(7, 18, 31, 0) 22%,
      rgba(7, 18, 31, 0.03) 72%,
      rgba(7, 18, 31, 0.06) 100%
    );
}
@media (max-width: 980px) {
  .hero-grid,
  .page-head,
  .grid-2,
  .grid-3,
  .kpis,
  .stats-band,
  .footer-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }
  .brand-mark {
    width: 150px;
  }
  .nav {
    display: none;
    position: absolute;
    right: 16px;
    top: 64px;
    max-width: min(320px, calc(100% - 32px));
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    flex-wrap: wrap;
  }
  .nav.open {
    display: grid;
  }
  .menu-toggle {
    display: inline-block;
  }
  .page-home .hero .pakistan-bg-merge {
    width: min(112vw, 600px);
    height: 490px;
    right: -60px;
    top: -60px;
    opacity: 0.22;
    background-image: url("images/pakistan-flag-flying.jpg");
    background-position: center right;
    background-size: cover;
    transform: rotate(-6deg);
    filter: saturate(1.02) brightness(1.02) contrast(1.01);
    mask-image:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.12) 12%,
        rgba(0, 0, 0, 0.4) 24%,
        rgba(0, 0, 0, 0.72) 36%,
        rgba(0, 0, 0, 0.88) 48%,
        rgba(0, 0, 0, 0.88) 52%,
        rgba(0, 0, 0, 0.72) 64%,
        rgba(0, 0, 0, 0.4) 76%,
        rgba(0, 0, 0, 0.12) 88%,
        rgba(0, 0, 0, 0) 100%
      ),
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.12) 12%,
        rgba(0, 0, 0, 0.4) 24%,
        rgba(0, 0, 0, 0.72) 36%,
        rgba(0, 0, 0, 0.88) 48%,
        rgba(0, 0, 0, 0.88) 52%,
        rgba(0, 0, 0, 0.72) 64%,
        rgba(0, 0, 0, 0.4) 76%,
        rgba(0, 0, 0, 0.12) 88%,
        rgba(0, 0, 0, 0) 100%
      );
    -webkit-mask-image:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.12) 12%,
        rgba(0, 0, 0, 0.4) 24%,
        rgba(0, 0, 0, 0.72) 36%,
        rgba(0, 0, 0, 0.88) 48%,
        rgba(0, 0, 0, 0.88) 52%,
        rgba(0, 0, 0, 0.72) 64%,
        rgba(0, 0, 0, 0.4) 76%,
        rgba(0, 0, 0, 0.12) 88%,
        rgba(0, 0, 0, 0) 100%
      ),
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.12) 12%,
        rgba(0, 0, 0, 0.4) 24%,
        rgba(0, 0, 0, 0.72) 36%,
        rgba(0, 0, 0, 0.88) 48%,
        rgba(0, 0, 0, 0.88) 52%,
        rgba(0, 0, 0, 0.72) 64%,
        rgba(0, 0, 0, 0.4) 76%,
        rgba(0, 0, 0, 0.12) 88%,
        rgba(0, 0, 0, 0) 100%
      );
  }
}

/* Mobile UX pass (2026-07-17): compact sticky-hide header, tighter hero spacing, CTA-above-copy on home */
@media (max-width: 760px) {
  .hero-grid,
  .page-head {
    padding: 32px 0;
  }
  .site-header.is-hidden {
    transform: translateY(-100%);
  }
}
@media (max-width: 640px) {
  .header-row {
    padding: 8px 0;
  }
  .brand {
    gap: 10px;
  }
  .brand-mark {
    width: 104px;
  }
  .brand-org,
  .brand-sub {
    display: none;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
  }
  .hero-copy .tag {
    order: 1;
  }
  .hero-copy h1 {
    order: 2;
  }
  .hero-copy .btns {
    order: 3;
    margin-top: 16px;
    margin-bottom: 22px;
  }
  .hero-copy p {
    order: 4;
  }
}

/* v22 APEX purple/blue/white enhancements */
.hero-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  padding: 10px 14px;
  margin-bottom: 18px;
  box-shadow: 0 16px 36px rgba(8, 11, 37, 0.28);
  flex-wrap: nowrap;
}
.hero-logo-lockup img {
  width: min(310px, 58vw);
  height: auto;
  object-fit: contain;
  flex: none;
}
.hero-logo-lockup span {
  color: var(--hand-grey);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  line-height: 1.15;
  max-width: 220px;
  font-family:
    "Eras Medium ITC", "Eras Medium", "Eras Demi ITC", "Trebuchet MS", Arial,
    sans-serif;
  font-style: italic;
  white-space: normal;
  text-align: left;
  display: block;
}
.hero-logo-lockup.compact img {
  width: min(270px, 56vw);
}
.logo-card {
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: start;
  background: #ffffff;
  border-radius: 20px;
  padding: 14px;
  border: 1px solid rgba(91, 60, 196, 0.14);
  box-shadow: 0 14px 34px rgba(8, 11, 37, 0.18);
  min-width: 260px;
}
.logo-card img {
  width: 240px;
  height: auto;
  object-fit: contain;
}
.logo-card span {
  color: var(--hand-grey);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  text-align: left;
  line-height: 1.15;
  font-family:
    "Eras Medium ITC", "Eras Medium", "Eras Demi ITC", "Trebuchet MS", Arial,
    sans-serif;
  font-style: italic;
  white-space: normal;
  max-width: 220px;
  display: block;
  justify-self: start;
}
.footer-brand .brand-mark {
  background: #ffffff;
  border-radius: 16px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.footer .brand-title {
  color: #ffffff;
}
.footer .brand-org {
  color: #9ca3af;
}
.footer .brand-sub {
  color: #c7d2fe;
}
.footer .inline-list a.pill:hover {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(124, 58, 237, 0.24);
  color: #eff6ff;
}
.form-panel {
  padding: 30px;
}
.form-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}
.form-section {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.025)
  );
  border-radius: 22px;
  padding: 24px;
  margin: 18px 0;
}
.form-section h3 {
  margin-bottom: 18px;
  color: #ffffff;
}
.subsection-title {
  font-weight: 800;
  color: #bfdbfe;
  margin: 20px 0 10px;
  letter-spacing: 0.02em;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 10px 0 8px;
}
.choice-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.choice-grid.one {
  grid-template-columns: 1fr;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 14px;
  padding: 12px 14px;
  color: #eaf2ff;
  font-size: 14px;
}
.choice input {
  accent-color: #7c3aed;
  transform: scale(1.08);
}
.form-table-wrap {
  margin-top: 12px;
}
.form-table {
  min-width: 860px;
}
.form-table input {
  width: 100%;
  min-width: 72px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 14, 42, 0.88);
  color: #ffffff;
  font: inherit;
}
.form-table td:nth-child(2),
.form-table th:nth-child(2) {
  text-align: center;
  width: 90px;
}
.form-table td:nth-child(2) input {
  width: auto;
  min-width: auto;
  accent-color: #7c3aed;
  transform: scale(1.08);
}
@media (max-width: 980px) {
  .form-intro {
    grid-template-columns: 1fr;
  }
  .logo-card {
    justify-items: start;
    min-width: 0;
  }
  .choice-grid,
  .choice-grid.three {
    grid-template-columns: 1fr;
  }
  .hero-logo-lockup {
    display: grid;
    justify-items: start;
  }
  .brand-org {
    font-size: 11px;
    line-height: 1.12;
  }
}

/* Background music control */
.music-control {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 14px 34px rgba(8, 11, 37, 0.24);
  color: #111827;
  backdrop-filter: blur(10px);
}
.music-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--purple-2), var(--blue));
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.music-toggle.is-muted {
  background: #6b7280;
}
.music-volume-label {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}
.music-volume {
  width: 110px;
  accent-color: var(--purple-2);
}
@media (max-width: 640px) {
  .music-control {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
  }
  .music-volume {
    width: 120px;
  }
}

/* v41 multi-track background music control */
.music-control {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 14px 34px rgba(8, 11, 37, 0.24);
  color: #111827;
  backdrop-filter: blur(10px);
}
.music-toggle,
.music-next {
  height: 36px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.music-toggle {
  width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-2), var(--blue));
}
.music-next {
  border-radius: 999px;
  padding: 0 12px;
  background: linear-gradient(135deg, var(--blue), var(--purple-2));
  font-size: 12px;
}
.music-toggle.is-muted {
  background: #6b7280;
}
.music-volume-label {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}
.music-volume {
  width: 96px;
  accent-color: var(--purple-2);
}
.music-track-select {
  max-width: 190px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #111827;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}
.music-expand-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--purple-2));
  color: #fff;
  font-weight: 800;
  place-items: center;
}
@media (max-width: 760px) {
  .music-control {
    left: auto;
    right: 14px;
    bottom: 14px;
    padding: 6px 8px;
    gap: 6px;
  }
  .music-next,
  .music-volume-label,
  .music-volume,
  .music-track-select {
    display: none;
  }
  .music-expand-toggle {
    display: grid;
  }
  .music-control.is-expanded {
    left: 12px;
    right: 12px;
    border-radius: 18px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 12px;
  }
  .music-control.is-expanded .music-next {
    display: grid;
  }
  .music-control.is-expanded .music-volume-label {
    display: inline;
  }
  .music-control.is-expanded .music-volume {
    display: inline-block;
  }
  .music-control.is-expanded .music-track-select {
    display: inline-block;
  }
  .music-volume {
    width: 120px;
  }
  .music-track-select {
    max-width: min(100%, 260px);
  }
}

/* v42 landing-page video feature */
.hero-video-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.hero-video-card h3 {
  margin-top: 10px;
  color: #ffffff;
}
.hero-video-frame {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #050816;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
}
.hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #050816;
}
.video-note {
  margin-top: 12px;
  color: #c7d2fe;
}
@media (max-width: 980px) {
  .hero-video-card {
    padding: 18px;
  }
}

/* v44 landing page video sizing + compact vertical options */
.hero-video-frame {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #050816;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
  line-height: 0;
  aspect-ratio: 16/9;
}
.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #050816;
}
.hero-sector-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.hero-sector-mini a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #eaf2ff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.hero-sector-mini a:hover {
  background: rgba(124, 58, 237, 0.24);
  border-color: rgba(56, 189, 248, 0.42);
}
@media (min-width: 1080px) {
  .hero-sector-mini {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .hero-sector-mini a {
    font-size: 11px;
    padding: 8px 6px;
  }
}
@media (max-width: 640px) {
  .hero-sector-mini {
    grid-template-columns: 1fr;
  }
}

/* Home hero: copy + video row, full-width KPI band below */
.page-home .hero-home-stack {
  position: relative;
  z-index: 1;
  padding-top: 46px;
  padding-bottom: 52px;
}
.page-home .hero-home-stack .hero-grid {
  padding-top: 0;
  padding-bottom: 0;
  align-items: start;
}
.page-home .hero-home-kpis {
  margin-top: 26px;
}
.page-home .hero-video-card {
  padding: 18px;
}
.page-home .hero-video-card h3 {
  margin-top: 8px;
  margin-bottom: 8px;
}
.page-home .hero-video-frame {
  margin-top: 10px;
}
.page-home .hero-sector-mini {
  margin-top: 12px;
}
.page-home .video-note {
  display: none;
}
@media (max-width: 980px) {
  .page-home .hero-home-stack {
    padding-top: 42px;
    padding-bottom: 46px;
  }
  .page-home .hero-home-kpis {
    margin-top: 20px;
  }
}

#apex-video-parking {
  display: none;
}
.page-home .hero-video-card {
  margin-top: 34px;
}
@media (max-width: 980px) {
  .page-home .hero-video-card {
    margin-top: 18px;
  }
}

@media (min-width: 981px) {
  .page-home .hero-grid {
    align-items: start;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.08fr);
    column-gap: 28px;
  }
  .page-home .hero-home-kpis {
    gap: 14px;
  }
  .page-home .kpi {
    padding: 20px 18px;
  }
  .page-home .hero-video-card {
    margin-top: 28px;
    padding: 18px 22px 20px;
  }
  .page-home .hero-video-card .eyebrow {
    font-size: 10px;
    letter-spacing: 0.07em;
  }
  .page-home .hero-video-card h3 {
    font-size: 1.12rem;
    line-height: 1.15;
    margin: 8px 0 10px;
  }
  .page-home .hero-video-frame {
    margin-top: 10px;
    border-radius: 18px;
  }
  .page-home .hero-sector-mini {
    margin-top: 12px;
    gap: 8px;
  }
  .page-home .hero-sector-mini a {
    min-height: 36px;
    padding: 8px 8px;
    font-size: 11px;
    line-height: 1.15;
    border-radius: 10px;
  }
}
@media (min-width: 1200px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.12fr);
    column-gap: 32px;
  }
  .page-home .hero-video-card {
    margin-top: 32px;
    padding: 20px 24px 22px;
  }
}

/* Home: first block after hero - match hero-grid vertical padding and title-to-content gap */
.page-home .hero + .section-lg {
  padding-top: 52px;
  padding-bottom: 52px;
}
.page-home .hero + .section-lg .section-title {
  margin-bottom: 26px;
}
.page-home .hero + .section-lg .section-title > p:last-of-type {
  margin-bottom: 0;
}
@media (max-width: 980px) {
  .page-home .hero + .section-lg {
    padding-top: 46px;
    padding-bottom: 46px;
  }
}
