/* ============================================================
   PY  -  Peace by Youth
   Design System CSS  -  v1.0
   Based on DESIGN.md + UI_KIT_SPEC.md
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

@font-face {
  font-family: "Bristone PY";
  src: url("../fonts/bristone/Bristone-Display.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bristone PY";
  src: url("../fonts/bristone/Bristone-Bold.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Benzin PY";
  src: url("../fonts/benzin/Benzin-Semibold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors */
  --py-primary: #0071BC;
  --py-primary-hover: #005B96;
  --py-primary-soft: #E8F1FA;

  --py-gold: #22AFA7;
  --py-gold-soft: #FFF8E1;
  --py-gold-dark: #8A5A00;

  --py-charcoal: #383658;
  --py-text: #383658;
  --py-muted: #6B7280;
  --py-subtle: #9CA3AF;

  --py-bg: #F7F7F3;
  --py-section: #FAFAF7;
  --py-card: #FFFFFF;
  --py-border: #E5E7EB;

  --py-success: #16A34A;
  --py-danger: #DC2626;
  --py-warning: #F59E0B;
  --py-info: #2563EB;

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 2px 8px rgba(56, 54, 88, 0.04);
  --shadow-sm: 0 6px 18px rgba(56, 54, 88, 0.06);
  --shadow-md: 0 14px 34px rgba(56, 54, 88, 0.10);
  --shadow-lg: 0 22px 56px rgba(56, 54, 88, 0.14);

  /* Typography */
  --font-heading: "Bristone PY", "Benzin PY", "Lato", system-ui, sans-serif;
  --font-body: "Lato", system-ui, sans-serif;
  --font-number: "Bristone PY", "Benzin PY", "Lato", system-ui, sans-serif;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--py-text);
  background: var(--py-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--py-primary);
  text-decoration: none;
  transition: color 180ms;
}

a:hover {
  color: var(--py-primary-hover);
}

ul {
  list-style: none;
}

/* ============================================================
   3. LAYOUT
   ============================================================ */
.py-container {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

.py-container-wide {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
}

.py-section {
  padding: 88px 0;
}

.py-section-compact {
  padding: 64px 0;
}

.py-section-hero {
  padding: 96px 0;
}

.bg-white {
  background: #FFFFFF;
}

.bg-warm {
  background: var(--py-bg);
}

.bg-section {
  background: var(--py-section);
}

.bg-charcoal {
  background: var(--py-charcoal);
}

/* ============================================================
   4. SECTION HEADERS
   ============================================================ */
.section-label {
  display: inline-block;
  color: var(--py-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--py-charcoal);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--py-muted);
  max-width: 680px;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-intro {
  margin-inline: auto;
}

/* ============================================================
   5. HEADER & NAV
   ============================================================ */
.py-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--py-border);
  box-shadow: var(--shadow-xs);
}

.py-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.py-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.py-logo-svg {
  width: 44px;
  height: 44px;
}

.py-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.py-logo-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--py-charcoal);
  letter-spacing: -0.02em;
}

.py-logo-tagline {
  font-size: 10px;
  font-weight: 600;
  color: var(--py-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.py-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.py-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.py-nav-link {
  color: var(--py-charcoal);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 180ms, background 180ms;
  white-space: nowrap;
}

.py-nav-link:hover,
.py-nav-link.active {
  color: var(--py-primary);
  background: var(--py-primary-soft);
}

.py-nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #FFFFFF;
  border: 1px solid var(--py-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 80;
}

.py-nav-submenu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.py-nav-item:hover .py-nav-submenu,
.py-nav-item:focus-within .py-nav-submenu {
  display: flex;
}

.py-nav-submenu a {
  display: block;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--py-charcoal);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.py-nav-submenu a:hover {
  color: var(--py-primary);
  background: var(--py-primary-soft);
}

.py-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.py-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.py-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--py-charcoal);
  border-radius: 2px;
  transition: all 300ms;
}

/* Mobile Menu */
.py-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(56, 54, 88, 0.5);
}

.py-mobile-menu.open {
  display: block;
}

.py-mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 90vw);
  height: 100%;
  background: #FFFFFF;
  padding: 24px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.py-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--py-border);
}

.py-mobile-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--py-charcoal);
  padding: 4px;
}

.py-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.py-mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--py-charcoal);
  font-size: 15px;
  font-weight: 700;
  transition: background 180ms, color 180ms;
}

.py-mobile-nav a:hover {
  background: var(--py-primary-soft);
  color: var(--py-primary);
}

.py-mobile-nav a.py-mobile-sub-link {
  margin-left: 14px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--py-muted);
  border-left: 2px solid var(--py-border);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.py-mobile-contact {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--py-border);
}

.py-mobile-contact p {
  font-size: 13px;
  color: var(--py-muted);
  margin-bottom: 8px;
}

.ac-shortcode-menu {
  width: 100%;
  border: 1px solid var(--py-border);
  border-radius: 14px;
  background: #FFFFFF;
  padding: 10px;
}

.ac-shortcode-menu-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.ac-shortcode-menu-list li {
  position: relative;
}

.ac-shortcode-menu-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--py-charcoal);
  font-weight: 800;
  font-size: 13px;
  background: var(--py-primary-soft);
}

.ac-shortcode-menu-list a:hover {
  color: var(--py-primary);
}

.ac-shortcode-menu-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 113, 188, .14);
  color: var(--py-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.ac-shortcode-menu-list .ac-shortcode-menu-list {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid var(--py-primary-soft);
}

.py-mobile-contact a {
  display: block;
  color: var(--py-primary);
  font-weight: 700;
  font-size: 14px;
}

/* ============================================================
   6. BUTTONS
   ============================================================ */
.py-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  min-height: 46px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 180ms ease;
}

.py-btn-primary {
  background: var(--py-primary);
  color: #FFFFFF;
  border-color: var(--py-primary);
  box-shadow: 0 10px 24px rgba(0, 113, 188, 0.25);
}

.py-btn-primary:hover {
  background: var(--py-primary-hover);
  border-color: var(--py-primary-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.py-btn-primary:focus-visible {
  outline: 3px solid rgba(0, 113, 188, 0.28);
  outline-offset: 3px;
}

.py-btn-secondary {
  background: #FFFFFF;
  color: var(--py-charcoal);
  border-color: var(--py-border);
  box-shadow: var(--shadow-xs);
}

.py-btn-secondary:hover {
  border-color: rgba(0, 113, 188, 0.35);
  color: var(--py-primary);
  transform: translateY(-1px);
}

.py-btn-gold {
  background: var(--py-gold);
  color: var(--py-charcoal);
  border-color: var(--py-gold);
  font-weight: 900;
}

.py-btn-sm {
  padding: 9px 18px;
  font-size: 14px;
  min-height: 38px;
}

.py-btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  min-height: 52px;
}

/* ============================================================
   7. CARDS
   ============================================================ */
.py-card {
  background: var(--py-card);
  border: 1px solid var(--py-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.py-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 113, 188, 0.25);
}

/* Program Card */
.py-program-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.py-program-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--py-primary-soft);
  color: var(--py-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 180ms, color 180ms;
}

.py-program-icon svg {
  width: 26px;
  height: 26px;
}

.py-card:hover .py-program-icon {
  background: var(--py-primary);
  color: #FFFFFF;
}

.py-program-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--py-charcoal);
  margin-bottom: 8px;
}

.py-program-desc {
  font-size: 15px;
  color: var(--py-muted);
  line-height: 1.6;
}

.py-program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.py-program-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--py-bg);
  color: var(--py-muted);
  border: 1px solid var(--py-border);
}

.py-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--py-primary);
  margin-top: auto;
}

.py-learn-more:hover {
  gap: 8px;
}

/* Project Card */
.py-project-card {
  padding: 0;
  overflow: hidden;
}

.py-project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--py-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--py-subtle);
}

.py-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.py-project-body {
  padding: 22px;
}

.py-project-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--py-charcoal);
  margin: 10px 0 8px;
  line-height: 1.3;
}

.py-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.py-project-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--py-muted);
  font-weight: 500;
}

.py-project-meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.py-project-desc {
  font-size: 14px;
  color: var(--py-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News Card */
.py-news-card {
  padding: 0;
  overflow: hidden;
}

.py-news-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  overflow: hidden;
}

.py-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms;
}

.py-news-card:hover .py-news-img img {
  transform: scale(1.03);
}

.py-news-body {
  padding: 22px;
}

.py-news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--py-muted);
}

.py-news-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--py-border);
  flex-shrink: 0;
}

.py-news-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--py-charcoal);
  margin-bottom: 8px;
  line-height: 1.35;
}

.py-news-excerpt {
  font-size: 14px;
  color: var(--py-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Publication Card */
.py-pub-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.py-pub-icon {
  width: 52px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--py-primary-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--py-primary);
}

.py-pub-icon svg {
  width: 28px;
  height: 28px;
}

.py-pub-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--py-charcoal);
  margin: 8px 0 6px;
  line-height: 1.3;
}

.py-pub-meta {
  font-size: 13px;
  color: var(--py-muted);
}

/* ============================================================
   8. BADGES
   ============================================================ */
.py-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.py-badge-orange {
  background: var(--py-primary-soft);
  color: var(--py-primary);
  border: 1px solid rgba(0, 113, 188, 0.18);
}

.py-badge-gold {
  background: var(--py-gold-soft);
  color: var(--py-gold-dark);
  border: 1px solid rgba(245, 183, 0, 0.22);
}

.py-badge-green {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.py-badge-blue {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.py-badge-gray {
  background: var(--py-bg);
  color: var(--py-muted);
  border: 1px solid var(--py-border);
}

/* ============================================================
   9. IMPACT STATS
   ============================================================ */
.py-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.py-impact-card {
  text-align: center;
  padding: 32px 24px;
  background: #FFFFFF;
  border: 1px solid var(--py-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.py-impact-number {
  font-family: var(--font-number);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  line-height: 1;
  color: var(--py-primary);
  display: block;
}

.py-impact-number.gold {
  color: var(--py-gold);
}

.py-impact-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--py-charcoal);
  margin-top: 10px;
  display: block;
}

.py-impact-note {
  font-size: 13px;
  color: var(--py-muted);
  margin-top: 4px;
  display: block;
}

/* ============================================================
   10. HERO
   ============================================================ */
.py-hero {
  background: var(--py-bg);
  padding: 80px 0 96px;
  overflow: hidden;
  position: relative;
}

.py-hero-grid {
  display: grid;
  grid-template-columns: 52fr 48fr;
  gap: 64px;
  align-items: center;
}

.py-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: var(--py-charcoal);
  border: 1px solid var(--py-border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
}

.py-hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--py-success);
}

.py-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--py-charcoal);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.py-hero-title .highlight {
  color: var(--py-primary);
}

.py-hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--py-muted);
  margin-bottom: 36px;
  max-width: 560px;
}

.py-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.py-hero-mini-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--py-border);
  flex-wrap: wrap;
}

.py-hero-stat {}

.py-hero-stat-number {
  font-family: var(--font-number);
  font-size: 26px;
  font-weight: 900;
  color: var(--py-primary);
  line-height: 1;
  display: block;
}

.py-hero-stat-label {
  font-size: 13px;
  color: var(--py-muted);
  font-weight: 600;
  display: block;
  margin-top: 4px;
}

.py-hero-visual {
  position: relative;
}

.py-hero-img {
  width: 100%;
  aspect-ratio: 4/3.2;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  background: var(--py-border);
  overflow: hidden;
}

.py-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.py-floating-card {
  position: absolute;
  bottom: -20px;
  left: -28px;
  background: #FFFFFF;
  border: 1px solid var(--py-border);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.py-floating-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--py-primary-soft);
  color: var(--py-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.py-floating-card-icon svg {
  width: 22px;
  height: 22px;
}

.py-floating-card-num {
  font-family: var(--font-number);
  font-size: 24px;
  font-weight: 900;
  color: var(--py-charcoal);
  line-height: 1;
}

.py-floating-card-label {
  font-size: 12px;
  color: var(--py-muted);
  font-weight: 600;
}

/* Accent shape */
.py-hero-visual::before {
  content: '';
  position: absolute;
  top: -24px;
  right: -24px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--py-gold-soft);
  border: 3px solid var(--py-gold);
  z-index: -1;
}

/* ============================================================
   11. TRUST STRIP
   ============================================================ */
.py-trust-strip {
  background: #FFFFFF;
  border-top: 1px solid var(--py-border);
  border-bottom: 1px solid var(--py-border);
  padding: 24px 0;
}

.py-trust-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.py-trust-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--py-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.py-trust-partners {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.py-trust-partner {
  font-size: 13px;
  font-weight: 700;
  color: var(--py-subtle);
  padding: 6px 14px;
  border: 1px solid var(--py-border);
  border-radius: var(--radius-pill);
  background: var(--py-bg);
  transition: color 180ms, border-color 180ms;
}

.py-trust-partner:hover {
  color: var(--py-charcoal);
  border-color: var(--py-charcoal);
}

/* ============================================================
   12. GRIDS
   ============================================================ */
.py-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.py-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.py-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ============================================================
   13. ABOUT STRIP
   ============================================================ */
.py-about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.py-about-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  background: var(--py-border);
}

.py-about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.py-value-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.py-value-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.py-value-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--py-primary);
  margin-top: 7px;
  flex-shrink: 0;
}

.py-value-text {
  font-size: 15px;
  color: var(--py-muted);
  line-height: 1.6;
}

.py-value-text strong {
  color: var(--py-charcoal);
  font-weight: 700;
  display: block;
}

/* ============================================================
   14. GEOGRAPHIC MAP PLACEHOLDER
   ============================================================ */
.py-map-placeholder {
  background: var(--py-bg);
  border: 2px dashed var(--py-border);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
  color: var(--py-muted);
}

.py-map-placeholder svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--py-subtle);
}

.py-districts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  justify-content: center;
}

.py-district-pill {
  padding: 7px 14px;
  border: 1px solid var(--py-border);
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  color: var(--py-charcoal);
}

.py-district-pill.sindh {
  border-color: rgba(0, 113, 188, 0.3);
  background: var(--py-primary-soft);
  color: var(--py-primary);
}

.py-district-pill.baloch {
  border-color: rgba(245, 183, 0, 0.3);
  background: var(--py-gold-soft);
  color: var(--py-gold-dark);
}

/* ============================================================
   15. PARTNER LOGOS
   ============================================================ */
.py-partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.py-partner-card {
  background: #FFFFFF;
  border: 1px solid var(--py-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  font-size: 13px;
  font-weight: 800;
  color: var(--py-subtle);
  text-align: center;
  transition: color 200ms, border-color 200ms, box-shadow 200ms;
  line-height: 1.3;
}

.py-partner-card:hover {
  color: var(--py-charcoal);
  border-color: rgba(0, 113, 188, 0.3);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   16. CTA PANELS
   ============================================================ */
.py-cta-panel {
  background: var(--py-charcoal);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 64px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.py-cta-panel::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(0, 113, 188, 0.12);
}

.py-cta-panel::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(245, 183, 0, 0.1);
}

.py-cta-label {
  display: inline-block;
  color: var(--py-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.py-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
  line-height: 1.2;
}

.py-cta-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.65;
}

.py-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.py-soft-cta {
  background: var(--py-primary-soft);
  border: 1px solid rgba(0, 113, 188, 0.18);
  border-radius: var(--radius-xl);
  padding: 40px;
}

/* ============================================================
   17. FORMS
   ============================================================ */
.py-form-group {
  margin-bottom: 20px;
}

.py-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--py-charcoal);
}

.py-label .required {
  color: var(--py-danger);
  margin-left: 2px;
}

.py-input, .py-select, .py-textarea {
  width: 100%;
  min-height: 48px;
  background: #FFFFFF;
  border: 1px solid var(--py-border);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--py-charcoal);
  font-family: var(--font-body);
  transition: border-color 180ms, box-shadow 180ms;
}

.py-input:focus, .py-select:focus, .py-textarea:focus {
  outline: none;
  border-color: var(--py-primary);
  box-shadow: 0 0 0 4px rgba(0, 113, 188, 0.12);
}

.py-textarea {
  min-height: 140px;
  resize: vertical;
}

.py-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.py-help {
  margin-top: 6px;
  color: var(--py-muted);
  font-size: 13px;
}

.py-field-error {
  margin-top: 6px;
  color: var(--py-danger);
  font-size: 13px;
  font-weight: 700;
}

.py-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.py-form-success {
  background: #DCFCE7;
  border: 1px solid rgba(22, 163, 74, 0.3);
  color: #166534;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  display: none;
}

.py-form-success.show {
  display: block;
}

.py-error-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  border-radius: 16px;
  padding: 16px;
}

/* ============================================================
   18. FILTER BAR
   ============================================================ */
.py-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--py-border);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 36px;
}

.py-filter-pill {
  min-height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--py-border);
  background: #FFFFFF;
  color: var(--py-charcoal);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms;
}

.py-filter-pill:hover, .py-filter-pill.active {
  background: var(--py-primary);
  color: #FFFFFF;
  border-color: var(--py-primary);
}

.py-search-input {
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--py-border);
  border-radius: var(--radius-pill);
  padding: 9px 16px 9px 38px;
  font-size: 14px;
  background: var(--py-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='7' cy='7' r='5' stroke='%239CA3AF' stroke-width='1.5'/%3E%3Cpath d='m11 11 2.5 2.5' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  outline: none;
  transition: border-color 180ms;
}

.py-search-input:focus {
  border-color: var(--py-primary);
  background-color: #FFFFFF;
}

/* ============================================================
   19. TIMELINE
   ============================================================ */
.py-timeline {
  position: relative;
  padding-left: 32px;
}

.py-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--py-border);
}

.py-timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.py-timeline-dot {
  position: absolute;
  left: -28px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--py-primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px var(--py-primary);
}

.py-timeline-year {
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 800;
  color: var(--py-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.py-timeline-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--py-charcoal);
  margin-bottom: 6px;
}

.py-timeline-desc {
  font-size: 14px;
  color: var(--py-muted);
  line-height: 1.6;
}

/* ============================================================
   20. FOOTER
   ============================================================ */
.py-footer {
  background: var(--py-charcoal);
  color: #FFFFFF;
  padding: 72px 0 0;
}

.py-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.py-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}

.py-footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 24px;
}

.py-footer-social {
  display: flex;
  gap: 10px;
}

.py-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.65);
  transition: all 180ms;
}

.py-social-link:hover {
  background: var(--py-primary);
  border-color: var(--py-primary);
  color: #FFFFFF;
}

.py-social-link svg {
  width: 16px;
  height: 16px;
}

.py-footer-heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.py-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.py-footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 180ms;
}

.py-footer-links a:hover {
  color: var(--py-gold);
}

.py-footer-sub-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 2px 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.py-footer-sub-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}

.py-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.py-footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.py-footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 113, 188, 0.15);
  display: grid;
  place-items: center;
  color: var(--py-primary);
  flex-shrink: 0;
}

.py-footer-contact-icon svg {
  width: 15px;
  height: 15px;
}

.py-footer-contact-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.py-footer-contact-text strong {
  display: block;
  color: #FFFFFF;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.py-footer-newsletter {
  margin-top: 20px;
}

.py-footer-newsletter-form {
  display: flex;
  gap: 8px;
}

.py-footer-newsletter-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 14px;
  color: #FFFFFF;
  outline: none;
}

.py-footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.py-footer-newsletter-input:focus {
  border-color: var(--py-primary);
}

.py-footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.py-footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.py-footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 180ms;
}

.py-footer-legal a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   21. PAGE HERO (inner pages)
   ============================================================ */
.py-page-hero {
  background: var(--py-charcoal);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.py-page-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(0, 113, 188, 0.08);
}

.py-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.py-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 180ms;
}

.py-breadcrumb a:hover {
  color: var(--py-gold);
}

.py-breadcrumb .sep {
  color: rgba(255, 255, 255, 0.3);
}

.py-breadcrumb .current {
  color: #FFFFFF;
  font-weight: 700;
}

.py-page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.15;
}

.py-page-hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  line-height: 1.65;
}

/* ============================================================
   21A. PROJECT DETAIL
   ============================================================ */
.py-project-detail-hero {
  background:
    radial-gradient(circle at 92% 12%, rgba(0, 113, 188, 0.12), transparent 28%),
    linear-gradient(180deg, #FBFAF6 0%, #F5F3EC 100%);
  padding: 44px 0 58px;
  border-bottom: 1px solid var(--py-border);
}

.py-project-detail-hero .py-breadcrumb {
  color: var(--py-muted);
  margin-bottom: 22px;
}

.py-project-detail-hero .py-breadcrumb a {
  color: var(--py-muted);
}

.py-project-detail-hero .py-breadcrumb .current {
  color: var(--py-charcoal);
}

.py-project-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}

.py-project-detail-copy {
  max-width: 620px;
}

.py-project-detail-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.py-project-detail-copy h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--py-charcoal);
  margin: 0 0 14px;
}

.py-project-detail-copy p {
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.72;
  color: var(--py-muted);
  margin: 0;
}

.py-project-detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.py-project-detail-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(56, 54, 88, 0.08);
  box-shadow: 0 24px 60px rgba(56, 54, 88, 0.16);
  aspect-ratio: 4 / 3;
}

.py-project-detail-media::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -80px 90px rgba(56, 54, 88, 0.12);
  pointer-events: none;
}

.py-project-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.py-project-detail-layout {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
}

.py-project-facts {
  position: sticky;
  top: 88px;
  background: #FFFFFF;
  border: 1px solid var(--py-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.py-project-facts h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--py-charcoal);
  margin: 0 0 18px;
}

.py-project-facts dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.py-project-facts dl div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--py-border);
}

.py-project-facts dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.py-project-facts dt {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--py-primary);
  margin-bottom: 4px;
}

.py-project-facts dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 750;
  color: var(--py-charcoal);
}

.py-project-story {
  background: #FFFFFF;
  border: 1px solid var(--py-border);
  border-radius: 18px;
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}

.py-project-story .section-label {
  margin-bottom: 10px;
}

.py-project-story h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 900;
  color: var(--py-charcoal);
  margin: 0 0 16px;
}

.py-project-story p {
  font-size: 15px;
  line-height: 1.78;
  color: var(--py-muted);
  margin: 0 0 14px;
}

.py-project-story .lead {
  font-size: 18px;
  line-height: 1.72;
  color: var(--py-charcoal);
  font-weight: 650;
  margin-bottom: 20px;
}

.py-project-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.py-project-focus-grid>div {
  background: #FBFAF6;
  border: 1px solid var(--py-border);
  border-radius: 14px;
  padding: 18px;
}

.py-project-focus-grid h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 900;
  color: var(--py-charcoal);
  margin: 0 0 8px;
}

.py-project-focus-grid p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.py-project-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms, box-shadow 180ms, border-color 180ms;
}

.py-project-link:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 113, 188, 0.28);
  box-shadow: 0 20px 42px rgba(56, 54, 88, 0.12);
}

.py-project-readmore {
  display: inline-flex;
  margin-top: 10px;
  color: var(--py-primary);
  font-size: 13px;
  font-weight: 900;
}

/* ============================================================
   22. UTILITIES
   ============================================================ */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--py-muted);
}

.text-primary {
  color: var(--py-primary);
}

.text-charcoal {
  color: var(--py-charcoal);
}

.fw-bold {
  font-weight: 700;
}

.fw-black {
  font-weight: 900;
}

.mt-4 {
  margin-top: 4px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-40 {
  margin-top: 40px;
}

.mt-48 {
  margin-top: 48px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mb-48 {
  margin-bottom: 48px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-24 {
  gap: 24px;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.hidden {
  display: none;
}

/* Empty State */
.py-empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--py-muted);
}

.py-empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--py-subtle);
}

.py-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--py-charcoal);
  margin-bottom: 8px;
}

.py-empty-desc {
  font-size: 15px;
  color: var(--py-muted);
}

/* Separator */
.py-divider {
  border: none;
  border-top: 1px solid var(--py-border);
  margin: 32px 0;
}

/* Pagination */
.py-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.py-page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--py-border);
  background: #FFFFFF;
  color: var(--py-charcoal);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 180ms;
  text-decoration: none;
}

.py-page-btn:hover, .py-page-btn.active {
  background: var(--py-primary);
  border-color: var(--py-primary);
  color: #FFFFFF;
}

/* ============================================================
   23. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .py-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .py-hero-visual {
    display: none;
  }

  .py-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .py-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .py-about-strip {
    grid-template-columns: 1fr;
  }

  .py-project-detail-hero-grid,
  .py-project-detail-layout {
    grid-template-columns: 1fr;
  }

  .py-project-facts {
    position: static;
  }
}

@media (max-width: 768px) {
  .py-nav {
    display: none;
  }

  .py-hamburger {
    display: flex;
  }

  .py-header-actions .py-btn {
    display: none;
  }

  .py-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .py-grid-2 {
    grid-template-columns: 1fr;
  }

  .py-impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .py-form-row {
    grid-template-columns: 1fr;
  }

  .py-cta-panel {
    padding: 40px 28px;
  }

  .py-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .py-footer-newsletter-form {
    flex-direction: column;
  }

  .py-partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .py-section {
    padding: 56px 0;
  }

  .py-section-compact {
    padding: 40px 0;
  }

  .py-project-detail-hero {
    padding: 30px 0 42px;
  }

  .py-project-detail-media {
    border-radius: 16px;
    aspect-ratio: 16 / 11;
  }

  .py-project-focus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .py-grid-3, .py-grid-4 {
    grid-template-columns: 1fr;
  }

  .py-impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .py-hero {
    padding: 56px 0 64px;
  }

  .py-hero-actions {
    flex-direction: column;
  }

  .py-hero-actions .py-btn {
    width: 100%;
    justify-content: center;
  }

  .py-partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .py-floating-card {
    display: none;
  }

  .py-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .py-container, .py-container-wide {
    width: min(100% - 32px, 100%);
  }

  .py-project-detail-actions .py-btn {
    width: 100%;
    justify-content: center;
  }

  .py-project-story,
  .py-project-facts {
    padding: 20px;
    border-radius: 14px;
  }
}

/* Transition for page items */
.fade-in {
  animation: fadeIn 0.4s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -- AsliCreate Traffic footer widget -- */
.py-visitor-widget {
  margin-top: 14px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
}

.py-visitor-widget-label {
  font-weight: 800;
  color: #fff;
  letter-spacing: .01em
}

.py-visitor-widget-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap
}

.py-visitor-metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap
}

.py-visitor-metric strong {
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums
}

.py-visitor-metric>span {
  color: rgba(255, 255, 255, .58)
}

.py-visitor-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .12);
  display: inline-block
}

.py-visitor-paused {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .13);
  color: #fde68a;
  font-size: 10px;
  font-weight: 800
}

.py-visitor-widget--badges .py-visitor-metric {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .045);
  border-radius: 999px
}

.py-visitor-widget--minimal {
  padding-top: 9px;
  padding-bottom: 9px;
  opacity: .82
}

.py-visitor-widget--minimal .py-visitor-widget-label {
  font-weight: 600;
  color: rgba(255, 255, 255, .62)
}

.py-visitor-widget--minimal .py-visitor-metric strong {
  font-size: 12px
}

@media(max-width:640px) {
  .py-visitor-widget {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px
  }

  .py-visitor-widget-metrics {
    justify-content: flex-start;
    gap: 8px 12px
  }
}

/* •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
   PY News Management  -  public listing and detail pages
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important
}

.py-news-card-link {
  padding: 0;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease
}

.py-news-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(56, 54, 88, .12);
  border-color: rgba(0, 113, 188, .28)
}

.py-news-card-cover {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none
}

.py-news-card-cover:focus-visible {
  outline: 3px solid rgba(0, 113, 188, .45);
  outline-offset: 3px;
  border-radius: var(--radius-md)
}

.py-news-tools {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px
}

.py-news-search {
  width: min(100%, 460px);
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--py-border);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--py-muted);
  box-shadow: 0 8px 24px rgba(56, 54, 88, .05)
}

.py-news-search:focus-within {
  border-color: var(--py-primary);
  box-shadow: 0 0 0 4px rgba(0, 113, 188, .1)
}

.py-news-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--py-charcoal)
}

.py-news-search input::placeholder {
  color: #9ca3af
}

.py-news-empty {
  text-align: center;
  padding: 52px 20px;
  background: #fff;
  border: 1px dashed var(--py-border);
  border-radius: var(--radius-lg)
}

.py-news-empty h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--py-charcoal);
  margin-bottom: 8px
}

.py-news-empty p {
  color: var(--py-muted)
}

.py-news-detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F3F7FA 0%, #fff 46%, #EAF4FB 100%);
  padding: 62px 0 72px;
  border-bottom: 1px solid rgba(0, 113, 188, .12)
}

.py-news-detail-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -170px;
  top: -230px;
  background: radial-gradient(circle, rgba(0, 113, 188, .14), transparent 70%);
  pointer-events: none
}

.py-news-detail-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px
}

.py-news-detail-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--py-charcoal);
  margin: 18px 0
}

.py-news-detail-lead {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
  color: var(--py-muted);
  max-width: 860px
}

.py-news-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280
}

.py-news-detail-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d1d5db
}

.py-news-detail-section {
  padding-top: 0
}

.py-news-detail-cover {
  max-width: 1160px;
  margin: -34px auto 52px;
  position: relative;
  z-index: 2
}

.py-news-detail-cover img {
  display: block;
  width: 100%;
  height: min(58vw, 590px);
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(56, 54, 88, .18)
}

.py-news-detail-cover figcaption {
  text-align: center;
  color: var(--py-muted);
  font-size: 12px;
  margin-top: 10px
}

.py-news-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 330px);
  gap: 64px;
  align-items: start;
  justify-content: center
}

.py-news-article {
  font-size: 17px;
  line-height: 1.85;
  color: #4b5563
}

.py-news-article>*:first-child {
  margin-top: 0
}

.py-news-article p {
  margin: 0 0 22px
}

.py-news-article h2, .py-news-article h3, .py-news-article h4 {
  font-family: var(--font-heading);
  color: var(--py-charcoal);
  line-height: 1.25;
  margin: 38px 0 16px
}

.py-news-article h2 {
  font-size: 30px
}

.py-news-article h3 {
  font-size: 23px
}

.py-news-article h4 {
  font-size: 18px
}

.py-news-article ul, .py-news-article ol {
  margin: 0 0 24px;
  padding-left: 24px
}

.py-news-article li {
  margin: 8px 0
}

.py-news-article blockquote {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--py-primary);
  background: var(--py-primary-soft);
  border-radius: 0 14px 14px 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--py-charcoal)
}

.py-news-article a {
  color: var(--py-primary);
  text-decoration: underline;
  text-underline-offset: 3px
}

.py-news-article img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 18px 0
}

.py-news-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px
}

.py-news-article th, .py-news-article td {
  padding: 12px;
  border: 1px solid var(--py-border);
  text-align: left
}

.py-news-article th {
  background: var(--py-warm);
  color: var(--py-charcoal)
}

.py-news-source {
  padding-top: 18px;
  border-top: 1px solid var(--py-border);
  font-size: 14px
}

.py-news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px
}

.py-news-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--py-warm);
  border: 1px solid var(--py-border);
  font-size: 12px;
  font-weight: 700;
  color: #6b7280
}

.py-news-detail-aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 18px
}

.py-news-share-card, .py-news-back-card {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--py-border);
  background: #fff;
  box-shadow: 0 14px 36px rgba(56, 54, 88, .07)
}

.py-news-share-card h2, .py-news-back-card h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--py-charcoal);
  margin-bottom: 8px
}

.py-news-share-card p, .py-news-back-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--py-muted);
  margin-bottom: 16px
}

.py-news-share-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px
}

.py-news-share-links a, .py-news-share-links button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 62px;
  padding: 8px 5px;
  border-radius: 10px;
  border: 1px solid var(--py-border);
  background: var(--py-warm);
  color: var(--py-charcoal);
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  transition: .18s;
  text-align: center
}

.py-news-share-links svg {
  width: 18px;
  height: 18px;
  display: block
}

.py-news-share-links a:hover, .py-news-share-links button:hover {
  background: var(--py-primary);
  border-color: var(--py-primary);
  color: #fff;
  transform: translateY(-2px)
}

.py-news-share-status {
  min-height: 1.2em;
  margin: 10px 0 0 !important;
  font-size: 11px !important;
  color: var(--py-primary) !important
}

.py-news-back-card {
  background: linear-gradient(145deg, #383658, #1D2433);
  border-color: transparent
}

.py-news-back-card h2 {
  color: #fff
}

.py-news-back-card p {
  color: rgba(255, 255, 255, .68)
}

@media(max-width:920px) {
  .py-news-detail-layout {
    grid-template-columns: 1fr;
    gap: 36px
  }

  .py-news-detail-aside {
    position: static;
    grid-template-columns: 1fr 1fr
  }

  .py-news-detail-cover img {
    height: min(66vw, 520px)
  }
}

@media(max-width:640px) {
  .py-news-share-links {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .py-news-detail-hero {
    padding: 44px 0 58px
  }

  .py-news-detail-hero h1 {
    font-size: 34px
  }

  .py-news-detail-lead {
    font-size: 16px
  }

  .py-news-detail-meta {
    font-size: 12px
  }

  .py-news-detail-cover {
    margin: -24px auto 34px
  }

  .py-news-detail-cover img {
    height: 62vw;
    border-radius: 14px
  }

  .py-news-detail-layout {
    gap: 28px
  }

  .py-news-article {
    font-size: 16px
  }

  .py-news-article h2 {
    font-size: 25px
  }

  .py-news-detail-aside {
    grid-template-columns: 1fr
  }

  .py-news-share-links {
    grid-template-columns: 1fr 1fr
  }

  .py-news-tools {
    gap: 14px
  }

  .py-news-search {
    width: 100%
  }
}