/* ================================================================
   provincial-chapters.css
   All selectors use the "pc-" prefix to stay conflict-free with
   globals.css, style.css and every other project stylesheet.
   Original design: Outfit font, navy/red palette, card + table layout.
================================================================ */

/* ── Reset (scoped) ── */
.pc-wrap *, .pc-intro-band *, .pc-stats-bar *, .pc-prov-nav *,
.pc-province-section *, .pc-intro-band, .pc-stats-bar,
.pc-prov-nav, .pc-province-section {
  box-sizing: border-box;
}

/* ── CSS Variables ── */
.pc-intro-band,
.pc-stats-bar,
.pc-prov-nav,
.pc-province-section {
  --pc-navy:   #0d1b3e;
  --pc-navy2:  #112248;
  --pc-red:    #e63946;
  --pc-red-dk: #b71c27;
  --pc-white:  #ffffff;
  --pc-gray:   #f4f6f9;
  --pc-gray2:  #edf0f5;
  --pc-muted:  #7a8694;
  --pc-border: rgba(13,27,62,0.08);
}

/* ── Animations ── */
@keyframes pc-fadeUp  { to { opacity:1; transform:translateY(0); } }
@keyframes pc-scaleIn { to { opacity:1; transform:scaleX(1); } }
@keyframes pc-slideR  { to { opacity:1; transform:translateX(0); } }

/* ================================================================
   LAYOUT WRAP
================================================================ */
.pc-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 60px;
  font-family: 'Outfit', sans-serif;
}

/* ================================================================
   INTRO BAND
================================================================ */
.pc-intro-band {
  font-family: 'Outfit', sans-serif;
  background: var(--pc-navy);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.pc-intro-band::before {
  content: '';
  position: absolute; inset: 0;
  /* background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); */
  background-size: 36px 36px;
}

.pc-intro-band::after {
  content: '';
  position: absolute; bottom:0; left:0; right:0;
  height: 3px;
  background: linear-gradient(90deg, var(--pc-red) 0%, transparent 70%);
}

.pc-intro-inner {
  position: relative; z-index:1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.pc-intro-left .pc-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pc-red);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(16px);
  animation: pc-fadeUp 0.6s ease forwards 0.1s;
}

.pc-intro-left .pc-tag span {
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--pc-red);
  border-radius: 2px;
}

.pc-intro-left h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0;
  transform: translateY(24px);
  animation: pc-fadeUp 0.7s ease forwards 0.2s;
}

.pc-intro-left h1 em { font-style:normal; color: var(--pc-red); }

.pc-intro-right {
  max-width: 400px;
  opacity: 0;
  transform: translateY(20px);
  animation: pc-fadeUp 0.7s ease forwards 0.35s;
}

.pc-intro-right p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
}

/* ================================================================
   STATS BAR
================================================================ */
.pc-stats-bar {
  font-family: 'Outfit', sans-serif;
  background: var(--pc-red);
}

.pc-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pc-stat {
  padding: 24px 36px;
  border-right: 1px solid rgba(255,255,255,0.15);
  opacity: 0;
  transform: translateY(14px);
}

.pc-stat:last-child { border-right: none; }

.pc-stat.pc-visible { animation: pc-fadeUp 0.5s ease forwards; }
.pc-stat:nth-child(1).pc-visible { animation-delay: 0.05s; }
.pc-stat:nth-child(2).pc-visible { animation-delay: 0.12s; }
.pc-stat:nth-child(3).pc-visible { animation-delay: 0.19s; }
.pc-stat:nth-child(4).pc-visible { animation-delay: 0.26s; }

.pc-stat-num {
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pc-stat-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 4px;
}

/* ================================================================
   PROVINCE NAV STRIP
================================================================ */
.pc-prov-nav {
  font-family: 'Outfit', sans-serif;
  background: var(--pc-gray);
  border-bottom: 1px solid var(--pc-border);
  position: sticky;
  top: 70px;
  z-index: 100;
}

.pc-prov-nav-inner {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.pc-prov-nav-inner::-webkit-scrollbar { display: none; }

.pc-prov-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pc-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.pc-prov-num {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  transition: color 0.2s;
}

.pc-prov-btn:hover {
  color: var(--pc-navy);
  background: rgba(13,27,62,0.04);
  border-bottom-color: var(--pc-navy);
}

.pc-prov-btn:hover .pc-prov-num { color: var(--pc-navy); }

.pc-prov-btn.pc-active {
  color: var(--pc-red);
  border-bottom-color: var(--pc-red);
  background: rgba(230,57,70,0.04);
}

.pc-prov-btn.pc-active .pc-prov-num { color: var(--pc-red); }

/* ================================================================
   SECTION LABEL (shared)
================================================================ */
.pc-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pc-red);
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(14px);
}

.pc-section-label span {
  display: inline-block;
  width: 22px; height: 2px;
  background: var(--pc-red);
  border-radius: 2px;
}

.pc-section-label.pc-visible { animation: pc-fadeUp 0.6s ease forwards 0.05s; }

/* ================================================================
   PROVINCE SECTION
================================================================ */
.pc-province-section {
  font-family: 'Outfit', sans-serif;
  padding: 80px 0;
  border-bottom: 1px solid var(--pc-border);
}

.pc-province-section:nth-child(even) { background: var(--pc-gray); }
.pc-province-section:nth-child(odd)  { background: var(--pc-white); }

.pc-province-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: flex-start;
}

/* ── Province Info Card ── */
.pc-prov-info-card {
  background: var(--pc-navy);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(28px);
}

.pc-prov-info-card.pc-visible { animation: pc-fadeUp 0.7s ease forwards 0.05s; }

.pc-prov-info-card::before {
  content: attr(data-num);
  position: absolute;
  right: -8px; bottom: -20px;
  font-size: 9rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.pc-prov-card-head {
  background: var(--pc-red);
  padding: 22px 26px 18px;
  position: relative;
}

.pc-prov-num-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.pc-prov-card-head h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 3px;
}

.pc-prov-card-head .pc-nepali {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
  font-weight: 400;
}

.pc-prov-card-body {
  padding: 22px 26px;
}

.pc-prov-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pc-prov-detail-row:last-child { border-bottom: none; }

.pc-prov-detail-ico {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.pc-prov-detail-ico svg {
  width: 14px; height: 14px;
  stroke: rgba(255,255,255,0.6); fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pc-prov-detail-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 3px;
}

.pc-prov-detail-val {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  font-weight: 500;
}

.pc-prov-detail-val a {
  color: var(--pc-red);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.pc-prov-detail-val a:hover { opacity: 0.75; }

.pc-prov-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 26px 18px;
}

.pc-prov-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}

/* ── Leadership Panel ── */
.pc-leadership-panel {
  opacity: 0;
  transform: translateX(24px);
}

.pc-leadership-panel.pc-visible { animation: pc-slideR 0.7s ease forwards 0.15s; }

.pc-leadership-header {
  margin-bottom: 22px;
}

.pc-leadership-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--pc-navy);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(16px);
}

.pc-leadership-panel.pc-visible .pc-leadership-header h2 {
  animation: pc-fadeUp 0.6s ease forwards 0.2s;
}

.pc-red-rule {
  width: 48px; height: 3px;
  background: var(--pc-red);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

.pc-leadership-panel.pc-visible .pc-red-rule { animation: pc-scaleIn 0.5s ease forwards 0.32s; }

/* ── Leadership Table ── */
.pc-leadership-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13,27,62,0.07);
}

.pc-leadership-table thead tr {
  background: var(--pc-navy);
}

.pc-leadership-table thead th {
  padding: 13px 16px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-align: left;
  white-space: nowrap;
}

.pc-leadership-table tbody tr {
  border-bottom: 1px solid var(--pc-border);
  transition: background 0.2s;
}

.pc-leadership-table tbody tr:last-child { border-bottom: none; }
.pc-leadership-table tbody tr:nth-child(even) { background: var(--pc-gray); }
.pc-leadership-table tbody tr:nth-child(odd)  { background: var(--pc-white); }
.pc-leadership-table tbody tr:hover { background: rgba(230,57,70,0.04); }

.pc-leadership-table td {
  padding: 14px 16px;
  font-size: 0.78rem;
  color: var(--pc-navy);
  vertical-align: middle;
}

/* Photo column */
.pc-td-photo {
  text-align: center;
  vertical-align: middle;
  padding: 20px;
  background: var(--pc-gray);
  border-left: 1px solid var(--pc-border);
  min-width: 130px;
}

.pc-president-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pc-photo-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c8d4e0, #8090a8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--pc-white);
  box-shadow: 0 4px 18px rgba(13,27,62,0.18);
  flex-shrink: 0;
}

.pc-photo-avatar svg {
  width: 44px; height: 44px;
  fill: rgba(255,255,255,0.55);
  position: relative;
  z-index: 1;
}

.pc-photo-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pc-navy);
  text-align: center;
  line-height: 1.4;
  max-width: 110px;
}

.pc-photo-role-tag {
  font-size: 0.6rem;
  color: var(--pc-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--pc-red);
  padding: 3px 9px;
  border-radius: 999px;
}

/* Role cell */
.pc-td-role {
  font-weight: 700;
  color: var(--pc-navy);
  white-space: nowrap;
}

.pc-role-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 4px;
}

.pc-badge-president  { background: rgba(230,57,70,0.1);   color: var(--pc-red); }
.pc-badge-vp         { background: rgba(13,27,62,0.08);    color: var(--pc-navy); }
.pc-badge-treasurer  { background: rgba(16,185,129,0.1);   color: #059669; }
.pc-badge-secretariat{ background: rgba(245,158,11,0.1);   color: #d97706; }
.pc-badge-past       { background: rgba(107,114,128,0.1);  color: #6b7280; }

.pc-td-name    { font-weight: 600; }

.pc-td-contact {
  color: var(--pc-muted);
  font-size: 0.74rem;
}

.pc-td-contact a {
  color: var(--pc-red);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.pc-td-contact a:hover { opacity: 0.7; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1000px) {
  .pc-wrap { padding: 0 36px; }
  .pc-intro-inner { flex-direction: column; align-items: flex-start; }
  .pc-intro-right { max-width: 100%; }
  .pc-province-grid { grid-template-columns: 1fr; gap: 36px; }
  .pc-stats-inner { grid-template-columns: repeat(2,1fr); }
  .pc-prov-info-card { max-width: 420px; }
}

@media (max-width: 640px) {
  .pc-wrap { padding: 0 20px; }
  .pc-province-section { padding: 56px 0; }
  .pc-stats-inner { grid-template-columns: repeat(2,1fr); }
  .pc-stat { padding: 18px 20px; }

  .pc-leadership-table thead { display: none; }
  .pc-leadership-table tr {
    display: block;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(13,27,62,0.07);
  }
  .pc-leadership-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--pc-border);
  }
  .pc-leadership-table td::before {
    content: attr(data-label);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pc-muted);
    flex-shrink: 0;
    margin-right: 12px;
  }
}
