/* AJK Election 2021 — flat corporate panels v4 */

@font-face {
  font-family: "bahij-nasim";
  font-style: normal;
  font-weight: normal;
  src: url("../urdu-font/Bahij-Nassim-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Mehr-Nastaliq";
  font-style: normal;
  font-weight: normal;
  src: url("../urdu-font/Nafees-Nastaleeq.ttf") format("truetype");
  font-display: swap;
}

:root {
  --corp-bg: #12151C;
  --corp-surface: #1C2128;
  --corp-surface-2: #252B35;
  --corp-surface-3: #2E3540;
  --corp-text: #E2E8F0;
  --corp-muted: #94A3B8;
  --corp-accent: #0F766E;
  --corp-accent-hover: #14B8A6;
  --corp-wine: #7C2D4A;
  --corp-wine-deep: #5C2136;
  --corp-gold: #D4A843;
  --corp-red: #C41E3A;
  --corp-red-deep: #9A1830;
  --corp-green: #059669;
  --corp-orange: #EA580C;
  --corp-teal: #0D9488;
  --corp-nav-blue: #1B3A6B;
  --corp-nav-blue-hover: #152E55;
  --radius-panel: 12px;
  --radius-sm: 8px;
  --transition: 0.22s ease;
}

/* ── Kill Bootstrap shadows & borders inside page ── */
main .shadow,
main .shadow-sm,
main .shadow-lg,
.shadow.border.border-danger,
.kashmirSwiper__title.shadow {
  box-shadow: none !important;
}

main .border,
main .border-secondary,
main .border-danger,
main .border-top,
.kashmirSwiper__title.border,
.shadow.border.border-danger {
  border: none !important;
}

main hr.border,
hr.border-danger {
  border: none !important;
  height: 1px;
  background-color: var(--corp-surface-3);
  opacity: 1;
  margin: 1.5rem 0;
}

/* ── Base ── */
body {
  font-family: 'Raleway', sans-serif !important;
 
  color: var(--corp-text) !important;
  line-height: 1.6;
}

a {
  text-decoration: none;
  transition: color var(--transition);
}

main {
  padding-bottom: 2.5rem;
}

main > .container,
.latest-section .container {
  padding-top: 0.5rem;
}

.txt-urdu {
  font-family: 'Jameel Noori Nastaleeq', 'Mehr-Nastaliq', sans-serif !important;
}

.txt-en {
  font-family: 'Raleway', sans-serif !important;
}

/* ── Shared flat panel ── */
.election-title,
.current-position-table,
.votesTable,
.alert-primary,
.kashmirSwiper__title,
.dw-data,
.all-parties-table,
.container.txt-urdu h2.text-danger,
.news-card-ur__image,
.shadow.border.border-danger {
  border: none !important;
  border-radius: var(--radius-panel) !important;
  box-shadow: none !important;
  overflow: hidden;
}

/* ── Navbar ── */
.navbar.navbar-expand-lg {
  background-color: var(--corp-nav-blue) !important;
  font-family: 'Jameel Noori Nastaleeq', 'Mehr-Nastaliq', sans-serif !important;
  border-bottom: none !important;
  padding: 0.5rem 0 !important;
  box-shadow: none !important;
}

.navbar-brand img {
  max-height: 52px;
}

.nav-item {
  padding: 0 0.75rem;
  text-align: right;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}

.nav-item:hover {
  background-color: var(--corp-nav-blue-hover);
}

.nav-item:hover .nav-link {
  color: var(--corp-gold) !important;
}

.nav-link {
  color: var(--corp-text) !important;
  font-size: 1.5em;
  font-weight: 500;
  padding: 0.65rem 0.75rem !important;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler .fa-bars {
  color: var(--corp-gold) !important;
}

/* ── Section titles ── */
.election-title {
  padding: 1.1rem 1.5rem;
  margin: 1.25rem 0;
  text-align: center;
  font-size: 1.6rem;
  font-family: 'Jameel Noori Nastaleeq', 'Mehr-Nastaliq', sans-serif !important;
  direction: rtl;
  font-weight: 600;
}

.election-title--blue {
  background: #014421 !important;
  background-color: #014421 !important;
  color: var(--corp-text) !important;
}

.election-title--green {
  background: var(--corp-accent) !important;
  background-color: var(--corp-accent) !important;
  color: var(--corp-text) !important;
  text-align: center;
}

.election-title--red {
  background: var(--corp-red-deep) !important;
  background-color: var(--corp-red-deep) !important;
  color: var(--corp-text) !important;
}

/* ── Registered voters — modern stat cards ── */
.table-responsive:has(.tbl-info) {
  overflow: visible;
}

.tbl-info {
  font-family: 'Jameel Noori Nastaleeq', 'Mehr-Nastaliq', sans-serif !important;
  direction: rtl;
  font-size: 1.1rem;
  background-color: #FFFFFF !important;
  color: #111111 !important;
  margin-bottom: 1.5rem;
  border: 2px solid #014421 !important;
  outline: 3px solid rgba(1, 68, 33, 0.15);
  outline-offset: 3px;
  border-radius: 14px !important;
  box-shadow: none !important;
  --bs-table-bg: #FFFFFF;
  --bs-table-color: #111111;
  border-collapse: separate;
  border-spacing: 0;
}

.tbl-info tbody tr.row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 0.35rem 1rem;
  padding: 1rem 1.15rem 1.15rem;
  margin: 0 !important;
}

.tbl-info td {
  border: none !important;
  padding: 0.65rem 0.85rem;
  vertical-align: middle;
  color: #111111 !important;
  background: transparent !important;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
}

/* Header: رجسٹرڈ ووٹرز */
.tbl-info td:first-child {
  grid-column: 1 / -1;
  grid-row: 1;
  background-color: #014421 !important;
  color: #FFFFFF !important;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.35rem;
}

.tbl-info td:first-child::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f0c0";
  margin-left: 0.55rem;
  font-size: 0.95em;
  opacity: 0.9;
}

/* Male card */
.tbl-info td:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  background-color: #EEF6F1 !important;
  border-radius: 10px 10px 0 0;
  color: #014421 !important;
  font-weight: 700;
  font-size: 1.4rem;
  padding-bottom: 0.35rem;
}

.tbl-info td:nth-child(2)::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f183";
  margin-left: 0.5rem;
  font-size: 1.55em;
  color: #014421;
}

.tbl-info td:nth-child(3) {
  grid-column: 1;
  grid-row: 3;
  background-color: #EEF6F1 !important;
  border-radius: 0 0 10px 10px;
  font-family: 'Raleway', sans-serif !important;
  font-size: 1.85rem;
  font-weight: 800;
  color: #014421 !important;
  padding-top: 0;
  margin-top: -0.35rem;
  letter-spacing: 0.02em;
}

/* Female card */
.tbl-info td:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
  background-color: #FDF2F4 !important;
  border-radius: 10px 10px 0 0;
  color: #9B1B30 !important;
  font-weight: 700;
  font-size: 1.4rem;
  padding-bottom: 0.35rem;
}

.tbl-info td:nth-child(4)::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f182";
  margin-left: 0.5rem;
  font-size: 1.55em;
  color: #9B1B30;
}

.tbl-info td:nth-child(5) {
  grid-column: 2;
  grid-row: 3;
  background-color: #FDF2F4 !important;
  border-radius: 0 0 10px 10px;
  font-family: 'Raleway', sans-serif !important;
  font-size: 1.85rem;
  font-weight: 800;
  color: #9B1B30 !important;
  padding-top: 0;
  margin-top: -0.35rem;
  letter-spacing: 0.02em;
}

/* Total card */
.tbl-info td:nth-child(6) {
  grid-column: 3;
  grid-row: 2;
  background-color: #F3F4F6 !important;
  border-radius: 10px 10px 0 0;
  color: #1B3A6B !important;
  font-weight: 700;
  font-size: 1.4rem;
  padding-bottom: 0.35rem;
}

.tbl-info td:nth-child(6)::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f681";
  margin-left: 0.5rem;
  font-size: 1.55em;
  color: #1B3A6B;
}

.tbl-info td:nth-child(7) {
  grid-column: 3;
  grid-row: 3;
  background-color: #F3F4F6 !important;
  border-radius: 0 0 10px 10px;
  font-family: 'Raleway', sans-serif !important;
  font-size: 1.85rem;
  font-weight: 800;
  color: #1B3A6B !important;
  padding-top: 0;
  margin-top: -0.35rem;
  letter-spacing: 0.02em;
}

.tbl-info .text-primary,
.tbl-info .text-danger,
.tbl-info .fw-bold {
  color: inherit !important;
}

@media (max-width: 991px) {
  .tbl-info tbody tr.row {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .tbl-info td:first-child {
    grid-column: 1 / -1;
  }

  .tbl-info td:nth-child(2),
  .tbl-info td:nth-child(3) {
    grid-column: 1;
  }

  .tbl-info td:nth-child(4),
  .tbl-info td:nth-child(5) {
    grid-column: 2;
    grid-row: 2 / 4;
  }

  .tbl-info td:nth-child(6),
  .tbl-info td:nth-child(7) {
    grid-column: 1 / -1;
  }

  .tbl-info td:nth-child(6) {
    grid-row: 4;
    border-radius: 10px 10px 0 0;
  }

  .tbl-info td:nth-child(7) {
    grid-row: 5;
    border-radius: 0 0 10px 10px;
  }
}

@media (max-width: 575px) {
  .tbl-info tbody tr.row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .tbl-info td:nth-child(2),
  .tbl-info td:nth-child(3),
  .tbl-info td:nth-child(4),
  .tbl-info td:nth-child(5),
  .tbl-info td:nth-child(6),
  .tbl-info td:nth-child(7) {
    grid-column: 1;
    grid-row: auto;
  }

  .tbl-info td:nth-child(2),
  .tbl-info td:nth-child(4),
  .tbl-info td:nth-child(6) {
    border-radius: 10px 10px 0 0;
    margin-top: 0;
  }

  .tbl-info td:nth-child(3),
  .tbl-info td:nth-child(5),
  .tbl-info td:nth-child(7) {
    border-radius: 0 0 10px 10px;
    margin-top: -0.35rem;
    margin-bottom: 0.25rem;
  }
}

/* ── Party position + Total votes tables ── */
.current-position-table,
.votesTable {
  direction: ltr;
  font-family: 'Raleway', sans-serif;
  background-color: #FFFFFF;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(27, 58, 107, 0.14) !important;
}

.current-position-table .table,
.votesTable .table {
  margin-bottom: 0;
  color: var(--corp-nav-blue);
  --bs-table-bg: #FFFFFF;
  --bs-table-color: var(--corp-nav-blue);
  --bs-table-hover-bg: #E8EEF7;
  --bs-table-hover-color: var(--corp-nav-blue);
  --bs-table-border-color: rgba(27, 58, 107, 0.1);
}

/* Override Bootstrap table-hover — keep text visible */
.current-position-table .table.table-hover > tbody > tr:hover > th,
.current-position-table .table.table-hover > tbody > tr:hover > td,
.votesTable .table.table-hover > tbody > tr:hover > th,
.votesTable .table.table-hover > tbody > tr:hover > td {
  color: var(--corp-nav-blue) !important;
  --bs-table-color-state: var(--corp-nav-blue);
  box-shadow: none !important;
}

.current-position-table .table.table-hover > tbody > tr:not(:first-child):hover > th,
.current-position-table .table.table-hover > tbody > tr:not(:first-child):hover > td,
.votesTable .table.table-hover > tbody > tr:not(:first-child):hover > th,
.votesTable .table.table-hover > tbody > tr:not(:first-child):hover > td {
  background-color: #E8EEF7 !important;
  color: var(--corp-nav-blue) !important;
}

.current-position-table .table.table-hover > tbody > tr:first-child:hover > th,
.current-position-table .table.table-hover > tbody > tr:first-child:hover > td,
.votesTable .table.table-hover > tbody > tr:first-child:hover > th,
.votesTable .table.table-hover > tbody > tr:first-child:hover > td {
  background-color: var(--corp-nav-blue) !important;
  color: #FFFFFF !important;
}

.current-position-table .table.table-hover > tbody > tr:first-child:hover .text-primary,
.votesTable .table.table-hover > tbody > tr:first-child:hover .text-primary {
  color: #FFFFFF !important;
}

.current-position-table .table.table-hover > tr:not(:first-child):hover > th,
.current-position-table .table.table-hover > tr:not(:first-child):hover > td,
.votesTable .table.table-hover > tr:not(:first-child):hover > th,
.votesTable .table.table-hover > tr:not(:first-child):hover > td {
  background-color: #E8EEF7 !important;
  color: var(--corp-nav-blue) !important;
  --bs-table-color-state: var(--corp-nav-blue);
  box-shadow: none !important;
}

.current-position-table .table.table-hover > tr:first-child:hover > th,
.votesTable .table.table-hover > tr:first-child:hover > th {
  background-color: var(--corp-nav-blue) !important;
  color: #FFFFFF !important;
}

.current-position-table .table tr.row,
.votesTable .table tr.row {
  margin: 0 !important;
}

.current-position-table .table th,
.current-position-table .table td,
.votesTable .table th,
.votesTable .table td {
  padding: 0.9rem 1.15rem;
  vertical-align: middle;
  border: none !important;
}

/* Header row */
.current-position-table .table > tbody > tr:first-child th,
.current-position-table .table > tr:first-child th,
.votesTable .table > tbody > tr:first-child th,
.votesTable .table > tr:first-child th {
  background-color: var(--corp-nav-blue) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 1rem 1.15rem;
}

.current-position-table .table > tbody > tr:first-child .text-primary,
.current-position-table .table > tr:first-child .text-primary,
.votesTable .table > tbody > tr:first-child .text-primary,
.votesTable .table > tr:first-child .text-primary {
  color: #FFFFFF !important;
}

/* Data rows */
.current-position-table .table > tbody > tr:not(:first-child) th,
.current-position-table .table > tbody > tr:not(:first-child) td,
.current-position-table .table > tr:not(:first-child) th,
.current-position-table .table > tr:not(:first-child) td,
.votesTable .table > tbody > tr:not(:first-child) th,
.votesTable .table > tbody > tr:not(:first-child) td,
.votesTable .table > tr:not(:first-child) th,
.votesTable .table > tr:not(:first-child) td {
  color: var(--corp-nav-blue) !important;
  background-color: #FFFFFF !important;
  font-weight: 600;
}

.current-position-table .table > tbody > tr:not(:first-child) td,
.current-position-table .table > tr:not(:first-child) td,
.votesTable .table > tbody > tr:not(:first-child) td,
.votesTable .table > tr:not(:first-child) td {
  font-weight: 800;
  font-size: 1.2rem;
}

.current-position-table .table > tbody > tr:not(:first-child):nth-child(even) th,
.current-position-table .table > tbody > tr:not(:first-child):nth-child(even) td,
.current-position-table .table > tr:not(:first-child):nth-child(even) th,
.current-position-table .table > tr:not(:first-child):nth-child(even) td,
.votesTable .table > tbody > tr:not(:first-child):nth-child(even) th,
.votesTable .table > tbody > tr:not(:first-child):nth-child(even) td,
.votesTable .table > tr:not(:first-child):nth-child(even) th,
.votesTable .table > tr:not(:first-child):nth-child(even) td {
  background-color: #F4F7FB !important;
}

.current-position-table .table > tbody > tr:not(:first-child) th,
.current-position-table .table > tr:not(:first-child) th,
.votesTable .table > tbody > tr:not(:first-child) th,
.votesTable .table > tr:not(:first-child) th {
  font-weight: 500;
}

/* ── Section alerts ── */
.alert-primary {
  background-color: var(--corp-nav-blue) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border: none !important;
}

.alert-primary.text-dark {
  color: #FFFFFF !important;
}

.alert.bg-success,
tr.alert.bg-success {
  background-color: var(--corp-green) !important;
  border: none !important;
  color: var(--corp-text) !important;
}

/* ── News ── */
.news-title {
  padding: 1rem 0;
  line-height: 2;
}

.news-title a {
  color: var(--corp-text);
}

.news-title a:hover {
  color: var(--corp-gold);
}

.news-description {
  font-size: 1.5rem;
  line-height: 2;
}

.two-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-section {
  font-family: 'Jameel Noori Nastaleeq', 'Mehr-Nastaliq', sans-serif;
  direction: rtl;
}

.news-card-ur {
  padding: 0.5rem 0 1rem;
}

.news-card-ur__image {
  background-color: var(--corp-surface-2);
  transition: opacity var(--transition);
}

.news-card-ur:hover .news-card-ur__image {
  opacity: 0.88;
}

.news-card-ur__title {
  font-size: 1.3rem;
  margin: 0.75rem 0 0;
  font-weight: 600;
  line-height: 1.75;
}

.news-card-ur__title a {
  color: var(--corp-text);
}

.news-card-ur__title a:hover {
  color: var(--corp-gold);
}

/* ── Kashmir results swiper ── */
.kashmirSwiper__title {
  background-color: #FFFFFF !important;
  margin: 1rem 0;
  padding: 0.75rem !important;
  border: 1px solid rgba(27, 58, 107, 0.14) !important;
  border-radius: 12px !important;
}

.kashmirSwiper__title .alert {
  margin-bottom: 0;
}

.kashmirSwiper.swiper-container,
.kashmirSwiper .swiper-slide,
.kashmirSwiper .swiper-result,
.kashmirSwiper .table-responsive {
  background-color: #FFFFFF !important;
}

.kashmirSwiper.swiper-container {
  font-family: 'Jameel Noori Nastaleeq', 'Mehr-Nastaliq', sans-serif;
  direction: ltr;
  padding: 0.25rem 0 1rem;
  color: var(--corp-nav-blue);
}

.kashmirSwiper table {
  table-layout: auto;
}

.kashmirSwiper .table {
  --bs-table-bg: #FFFFFF;
  --bs-table-color: var(--corp-nav-blue);
  --bs-table-hover-bg: #E8EEF7;
  --bs-table-hover-color: var(--corp-nav-blue);
  --bs-table-border-color: rgba(27, 58, 107, 0.08);
  margin-bottom: 0;
}

/* Override Bootstrap table-hover — keep text visible */
.kashmirSwiper .table.table-hover > tbody > tr:hover > th,
.kashmirSwiper .table.table-hover > tbody > tr:hover > td {
  --bs-table-color-state: var(--corp-nav-blue);
  box-shadow: none !important;
}

.kashmirSwiper .table.table-hover > tbody > tr:has(th):hover > th {
  background-color: var(--corp-nav-blue) !important;
  color: #FFFFFF !important;
}

.kashmirSwiper .table.table-hover > tbody > tr:has(th):hover .text-danger {
  color: #FFFFFF !important;
}

.kashmirSwiper .table.table-hover > tbody > tr:not(:has(th)):hover > td {
  background-color: #E8EEF7 !important;
  color: var(--corp-nav-blue) !important;
}

.kashmirSwiper .table.table-hover > tbody > tr.bg-candidate-winner:hover > td {
  background-color: #D1FAE5 !important;
  color: var(--corp-nav-blue) !important;
}

.kashmirSwiper .table.table-hover > tbody > tr:not(:has(th)):hover .result-winner {
  background-color: var(--corp-green) !important;
  color: #FFFFFF !important;
}

.kashmirSwiper .table.table-hover > tbody > tr:not(:has(th)):hover .result-other {
  background-color: #DCE6F3 !important;
  color: var(--corp-nav-blue) !important;
}

.kashmirSwiper .table.table-hover > tbody > tr:not(:has(th)):hover > td,
.kashmirSwiper .table.table-hover > tbody > tr:not(:has(th)):hover > td *:not(.result-winner) {
  color: var(--corp-nav-blue) !important;
}

.kashmirSwiper .table.table-hover > tbody > tr:has(th):hover > th,
.kashmirSwiper .table.table-hover > tbody > tr:has(th):hover > th * {
  color: #FFFFFF !important;
}

/* Constituency info strip — حلقہ row */
.kashmirSwiper tr.alert.bg-success {
  background-color: #EEF2F8 !important;
  color: var(--corp-nav-blue) !important;
  border: none !important;
}

.kashmirSwiper tr.alert.bg-success td {
  /* background-color: #EEF2F8 !important; */
  color: var(--corp-nav-blue) !important;
  padding: 1rem 0.65rem;
  font-size: 1.25rem;
}

.kashmirSwiper .table.table-hover > tr.alert.bg-success:hover > td,
.kashmirSwiper .table.table-hover tr.alert.bg-success:hover > td {
  background-color: #EEF2F8 !important;
  color: var(--corp-nav-blue) !important;
}

.kashmirSwiper .badge.bg-light {
  background-color: #FFFFFF !important;
  color: var(--corp-nav-blue) !important;
  font-weight: 600;
  font-size: 1.15rem;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem !important;
  border: 1px solid rgba(27, 58, 107, 0.12);
}

.kashmirSwiper tr.alert.bg-success:hover .badge.bg-light {
  background-color: #FFFFFF !important;
  color: var(--corp-nav-blue) !important;
}

.kashmirSwiper .badge.bg-light .text-danger {
  color: var(--corp-red) !important;
}

.kashmirSwiper tr.alert.bg-success:hover .badge.bg-light .text-danger {
  color: var(--corp-red) !important;
}

/* Column headers: امیدوار, پارٹی, ووٹ, etc. */
.kashmirSwiper .main-table-body > tr:has(th) th {
  background-color: var(--corp-nav-blue) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.95rem 0.75rem;
  vertical-align: middle;
  border: none !important;
}

.kashmirSwiper .main-table-body > tr:has(th) .text-danger {
  color: #FFFFFF !important;
}

/* Candidate data rows */
.kashmirSwiper .main-table-body > tr:not(:has(th)) td {
  background-color: #FFFFFF !important;
  color: var(--corp-nav-blue) !important;
  vertical-align: middle;
  font-size: 1rem;
  padding: 0.75rem 0.65rem;
  border: none !important;
}

.kashmirSwiper .main-table-body > tr:not(:has(th)):nth-child(odd) td {
  background-color: #F4F7FB !important;
}

.kashmirSwiper .main-table-body > tr.bg-candidate-winner td {
  background-color: #ECFDF5 !important;
  color: var(--corp-nav-blue) !important;
}

.kashmirSwiper .main-table-body > tr:not(:has(th)) .txt-en {
  font-weight: 700;
}

.kashmirSwiper .swiper-pagination {
  position: relative;
  padding: 1rem 0 0.5rem;
}

.kashmirSwiper .swiper-pagination-bullet {
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 32px;
  font-size: 12px;
  font-weight: 600;
  color: var(--corp-nav-blue);
  opacity: 1;
  background-color: #EEF2F8;
  border: none;
  border-radius: var(--radius-sm);
  margin: 4px !important;
  transition: background-color var(--transition), color var(--transition);
}

.kashmirSwiper .swiper-pagination-bullet-active {
  color: #FFFFFF;
  background-color: var(--corp-nav-blue);
}

.kashmirSwiper .swiper-button-prev,
.kashmirSwiper .swiper-button-next {
  color: var(--corp-nav-blue);
}

.kashmirSwiper .result-winner {
  background-color: var(--corp-green) !important;
  padding: 0.45rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF !important;
  border-radius: var(--radius-sm);
}

.kashmirSwiper .result-other {
  background-color: #EEF2F8 !important;
  padding: 0.45rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--corp-nav-blue) !important;
  border-radius: var(--radius-sm);
}

.kashmirSwiper .text-danger {
  color: var(--corp-red) !important;
}

/* ── Other swipers (generic) ── */
.swiper-container:not(.kashmirSwiper) {
  font-family: 'Jameel Noori Nastaleeq', 'Mehr-Nastaliq', sans-serif;
  direction: ltr;
  padding: 0.5rem 0 1rem;
}

.swiper-container:not(.kashmirSwiper) table {
  table-layout: auto;
}

.swiper-container:not(.kashmirSwiper) .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--corp-text);
  --bs-table-hover-bg: var(--corp-surface-2);
  --bs-table-border-color: transparent;
}

.swiper-container:not(.kashmirSwiper) table th {
  font-weight: 600;
  color: var(--corp-muted);
}

.swiper-container:not(.kashmirSwiper) table th,
.swiper-container:not(.kashmirSwiper) table td {
  vertical-align: middle;
  font-size: 1.5em;
  border: none !important;
}

.swiper-container:not(.kashmirSwiper) .main-table-body tr:nth-child(even) {
  background-color: var(--corp-surface-2);
}

.swiper-container:not(.kashmirSwiper) .main-table-body td {
  font-size: 1rem;
}

.swiper-container:not(.kashmirSwiper) .swiper-pagination {
  position: relative;
  padding: 1rem 0 0.5rem;
}

.swiper-container:not(.kashmirSwiper) .swiper-pagination-bullet {
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 32px;
  font-size: 12px;
  font-weight: 600;
  color: var(--corp-muted);
  opacity: 1;
  background-color: var(--corp-surface-2);
  border: none;
  border-radius: var(--radius-sm);
  margin: 4px !important;
  transition: background-color var(--transition), color var(--transition);
}

.swiper-container:not(.kashmirSwiper) .swiper-pagination-bullet-active {
  color: var(--corp-text);
  background-color: var(--corp-accent);
}

.swiper-container:not(.kashmirSwiper) .swiper-button-prev,
.swiper-container:not(.kashmirSwiper) .swiper-button-next {
  color: var(--corp-gold);
}

.swiper-container:not(.kashmirSwiper) .result-winner {
  background-color: var(--corp-green) !important;
  padding: 0.45rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--corp-text) !important;
  border-radius: var(--radius-sm);
}

.swiper-container:not(.kashmirSwiper) .result-other {
  background-color: var(--corp-surface-3) !important;
  padding: 0.45rem 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--corp-muted) !important;
  border-radius: var(--radius-sm);
}

.swiper-container:not(.kashmirSwiper) .badge.bg-light {
  background-color: var(--corp-surface-3) !important;
  color: var(--corp-text) !important;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem !important;
}

.swiper-container:not(.kashmirSwiper) .badge.bg-light .text-danger {
  color: var(--corp-gold) !important;
}

.swiper-container:not(.kashmirSwiper) .text-danger {
  color: var(--corp-red) !important;
}

/* ── Footer ── */
footer {
  font-family: 'Raleway', sans-serif;
  border-top: none !important;
  background-color: var(--corp-surface) !important;
  margin-top: 1rem;
  box-shadow: none !important;
}

footer .text-white {
  color: var(--corp-muted) !important;
}

footer.bg-dark {
  background-color: var(--corp-surface) !important;
}

/* ── Tables misc ── */
.halka-table {
  font-size: 0.8rem;
  color: var(--corp-accent-hover);
  direction: rtl;
  table-layout: unset !important;
}

.progress {
  direction: ltr;
  height: 32px;
  background-color: var(--corp-surface-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: none;
}

.progress-bar,
.progress-bar.bg-primary {
  background-color: var(--corp-accent) !important;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

/* ── Latest results ticker strip ── */
.shadow.border.border-danger.row {
  align-items: stretch;
  overflow: hidden;
  border-radius: 12px !important;
  border: 1px solid var(--corp-red) !important;
  background-color: #FFFFFF;
  margin-bottom: 1.25rem !important;
}

.shadow.border.border-danger > [class*="col-lg-2"],
.shadow.border.border-danger > .col-12.col-lg-2 {
  display: flex;
  padding: 0;
}

.shadow.border.border-danger .bg-danger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  border: none !important;
  font-size: 1.15rem !important;
  font-weight: 700;
  padding: 0.85rem 0.75rem !important;
  line-height: 1.45 !important;
  font-family: 'Jameel Noori Nastaleeq', 'Mehr-Nastaliq', sans-serif !important;
}

.shadow.border.border-danger > [class*="col-lg-10"],
.shadow.border.border-danger > .col-12.col-lg-10 {
  display: flex;
  align-items: center;
  padding: 0 !important;
  background-color: #F4F7FB !important;
}

.constituencySwiper.swiper-container {
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.85rem;
  direction: rtl;
}

.constituencySwiper .swiper-wrapper {
  align-items: center;
}

.constituencySwiper .swiper-slide {
  background-color: transparent;
  color: var(--corp-nav-blue);
  padding: 0.35rem 0.5rem;
  margin: 0;
  border: none;
  border-radius: 0;
  height: auto;
  display: flex;
  align-items: center;
}

.constituencySwiper .swiper-slide .text-end {
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  width: 100%;
  text-align: right;
}

.constituencySwiper .swiper-slide .fs-4 {
  font-size: 0.95rem !important;
}

.constituencySwiper .swiper-slide .lh-lg {
  line-height: 1.55 !important;
}

.constituencySwiper .text-danger {
  color: var(--corp-red) !important;
}

.constituencySwiper .text-primary {
  color: var(--corp-nav-blue) !important;
}

.constituencySwiper .text-success {
  color: var(--corp-green) !important;
}

@media (min-width: 992px) {
  .shadow.border.border-danger .bg-danger {
    font-size: 1.25rem !important;
    padding: 1rem 0.5rem !important;
  }

  .constituencySwiper .swiper-slide .text-end,
  .constituencySwiper .swiper-slide .fs-4 {
    font-size: 1.05rem !important;
  }
}

@media (max-width: 991.98px) {
  .shadow.border.border-danger .bg-danger {
    min-height: auto;
    font-size: 1.1rem !important;
    padding: 0.75rem 1rem !important;
  }

  .constituencySwiper.swiper-container {
    padding: 0.55rem 0.65rem;
  }

  .constituencySwiper .swiper-slide .text-end,
  .constituencySwiper .swiper-slide .fs-4 {
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
  }
}

.table-districtwise {
  direction: rtl;
  font-size: 1.3rem;
  text-align: center;
  white-space: nowrap;
}

.table-candidate {
  direction: rtl;
}

.result-progress {
  background-color: var(--corp-gold);
  color: var(--corp-bg);
  padding: 0.4rem 1.25rem;
  font-family: 'Raleway', sans-serif;
  display: block;
  text-align: center;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

/* ── District-wise panel ── */
.dw-data {
  padding: 0;
  direction: rtl;
  background-color: #FFFFFF;
  margin: 1rem 0 1.5rem;
  border: 1px solid rgba(27, 58, 107, 0.14) !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.dw-data .bg-light-green {
  background-color: #014421 !important;
  color: #FFFFFF !important;
}

.dw-data .bg-light-green .dw-col-1,
.dw-data .bg-light-green .dw-col-2 {
  color: #FFFFFF !important;
  font-weight: 700;
  background-color: transparent !important;
}

.dw-data .dw-row {
  display: flex;
  margin: 0;
  padding: 0;
  border: none;
  transition: background-color var(--transition);
  background-color: #FFFFFF;
  align-items: stretch;
}

.dw-data .dw-row:nth-child(even):not(.bg-light-green) {
  background-color: #F4F7FB;
}

.dw-data .dw-row:nth-child(even):not(.bg-light-green) .dw-col-2 {
  background-color: #F4F7FB;
}

.dw-data .dw-row:hover:not(.bg-light-green) .dw-col-2 {
  background-color: #E8EEF7;
}

.dw-data .dw-row .dw-col-1 {
  padding: 0.85rem 1rem;
  font-family: 'Jameel Noori Nastaleeq', 'Mehr-Nastaliq', sans-serif !important;
  min-width: 150px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  border: none;
  font-weight: 600;
  background-color: var(--corp-nav-blue) !important;
  color: #FFFFFF !important;
}

.dw-data .bg-light-green .dw-col-1 {
  background-color: transparent !important;
}

.dw-data .dw-row:hover:not(.bg-light-green) .dw-col-1 {
  background-color: var(--corp-nav-blue-hover) !important;
  color: #FFFFFF !important;
}

.dw-data .dw-row .dw-col-2 {
  padding: 0.85rem 1rem;
  font-size: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  white-space: nowrap;
  align-items: center;
  gap: 0.35rem;
  color: var(--corp-nav-blue);
  background-color: #FFFFFF;
  flex: 1;
}

.dw-data .dw-row .dw-result {
  display: flex;
  margin: 0.2rem 0.35rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.dw-data .dw-row .dw-result .dw-party {
  padding: 0.35rem 0.85rem;
  background-color: #E8EEF7;
  color: var(--corp-nav-blue);
  font-weight: 500;
}

.dw-data .dw-row .dw-result .dw-seat {
  padding: 0.35rem 0.85rem;
  background-color: #D1D9E6;
  color: var(--corp-nav-blue);
  font-weight: 700;
}

.dw-data .pti {
  background-color: var(--corp-red) !important;
  color: #FFFFFF !important;
}

.dw-data .pmln {
  background-color: var(--corp-green) !important;
  color: #FFFFFF !important;
}

.dw-data .ji {
  background-color: var(--corp-teal) !important;
  color: #FFFFFF !important;
}

.dw-data .ppp {
  background-color: #374151 !important;
  color: #FFFFFF !important;
}

.dw-data .mc {
  background-color: #10B981 !important;
  color: #FFFFFF !important;
}

.dw-data .ind {
  background-color: var(--corp-orange) !important;
  color: #FFFFFF !important;
}

/* ── All parties panel ── */
.all-parties-table {
  direction: rtl;
  font-family: "bahij-nasim";
  font-size: 1.2rem;
  overflow-x: hidden;
 
  padding: 0.75rem;
  margin-bottom: 1.5rem;
}

.all-parties-table .table-light {
  --bs-table-bg: transparent;
  --bs-table-color: var(--corp-text);
  --bs-table-border-color: transparent;
  --bs-table-hover-bg: var(--corp-surface-2);
}

.all-parties-table table td {
  padding: 10px 20px;
  border: none !important;
  font-weight: 500;
}

.all-parties-table .text-danger {
  color: var(--corp-gold) !important;
  font-weight: 800;
  font-size: 1.4rem;
}

/* ── Bootstrap overrides ── */
.text-primary {
  color: var(--corp-accent-hover) !important;
}

.text-danger {
  color: var(--corp-red) !important;
}

.text-success {
  color: var(--corp-green) !important;
}

.bg-danger {
  background-color: var(--corp-red) !important;
}

.bg-success {
  background-color: var(--corp-green) !important;
}

.badge.bg-danger {
  background-color: var(--corp-red) !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.badge.text-danger {
  color: var(--corp-red) !important;
  font-weight: 600;
}

.border-secondary {
  border: none !important;
}

.border-danger {
  border: none !important;
}

/* News section heading */
.container.txt-urdu h2.text-danger {
  background-color: var(--corp-surface-2);
  color: var(--corp-text) !important;
  padding: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.container.txt-urdu h2.text-danger i {
  color: var(--corp-gold) !important;
}

.container.txt-urdu .img-fluid.rounded {
  border-radius: var(--radius-panel) !important;
  box-shadow: none !important;
}

.alert-primary .spinner-grow {
  color: #FFFFFF !important;
}

.fs-4 .badge.text-danger {
  background-color: transparent;
}

.fs-4 .badge.bg-danger {
  background-color: var(--corp-surface-3) !important;
  color: var(--corp-gold) !important;
  padding: 0.5rem 0.85rem;
}


canvas {
  max-width: 100%;
}

/* ── Responsive ── */
@media (min-width: 992px) {
  .election-title {
    font-size: 1.75rem;
  }

  .navbar {
    direction: rtl;
  }

  .nav-item {
    padding: 0 0.5rem;
    text-align: center;
  }

  .main-news .news-title {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  .swiper-container table {
    table-layout: fixed;
  }

  .swiper-container table .main-table-body td {
    font-size: 1.3rem;
  }

  .halka-table {
    font-size: 1rem;
  }

  .taza-news {
    display: inline-block;
  }

  .result-progress {
    display: inline-block;
  }

  .latest-section .row > [class*="col-lg-4"],
  .latest-section .row > [class*="col-lg-8"] {
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 991px) {
  .dw-data .dw-row {
    flex-direction: column;
  }

  .dw-data .dw-row .dw-col-1 {
    min-width: auto;
    width: 100%;
    padding-bottom: 0.65rem;
    padding-top: 0.85rem;
  }

  .dw-data .dw-row .dw-col-2 {
    width: 100%;
    padding-top: 0.65rem;
    padding-bottom: 0.85rem;
  }

  .election-title {
    font-size: 1.25rem;
  }

  .nav-item + .nav-item {
    margin-top: 2px;
  }
}


.site-title {
  font-size: 1rem;
  padding: 0.25rem 2.5rem;
  color: #FFFFFF;
  font-family: 'Jameel Noori Nastaleeq', 'Mehr-Nastaliq', sans-serif !important;
  direction: rtl;
  font-weight: 600;
}

.navbar-expand-lg .navbar-collapse {
  justify-content: flex-end;
}

.navbar-brand img {
  max-width: 80px;
}

@media (max-width: 991.98px) {
  .navbar .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    position: relative;
    direction: ltr;
    column-gap: 0.5rem;
  }

  .navbar-brand {
    grid-column: 1;
    grid-row: 1;
    margin-right: 0;
    z-index: 2;
  }

  .navbar-toggler {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    z-index: 2;
  }

  .site-title {
    grid-column: 2;
    grid-row: 1;
    position: static;
    transform: none;
    left: auto;
    padding: 0.5rem 0.5rem;
    font-size: 0.95rem;
    text-align: center;
    justify-self: center;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
  }

  .navbar-collapse {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .navbar .navbar-nav {
    direction: rtl;
  }
}

@media (min-width: 992px) {
  .site-title {
    font-size: 1.5rem;
    padding: 0.25rem 2.5rem;
  }

  .navbar-brand img {
    max-width: 125px;
  }
}
