/* Partner With Us — compact layout */
.pw-block[hidden],
.pw-showcase[hidden] { display: none !important; }

.pw-page .page-hero--program { position: relative; overflow: hidden; }

/* Hero — animated partner logo marquees */
.pw-hero {
  background: linear-gradient(145deg, #003752 0%, #0077B6 48%, #005A8C 100%);
  min-height: 460px;
}
.pw-hero.page-hero--program::before { display: none; }

.pw-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  max-width: 1180px;
}

.pw-hero-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
}
.pw-hero-copy > * {
  animation: pwHeroFade 0.7s ease-out both;
}
.pw-hero-copy .breadcrumb { animation-delay: 0.05s; }
.pw-hero-copy .page-tagline { animation-delay: 0.12s; color: rgba(255,255,255,0.92); }
.pw-hero-copy h1 { animation-delay: 0.22s; }
.pw-hero-copy .page-lead { animation-delay: 0.35s; }
.pw-hero-copy .page-hero-actions { animation-delay: 0.48s; }

@keyframes pwHeroFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.pw-hero-logos {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.pw-hero-marquee,
.pw-show-marquee {
  overflow: hidden;
  width: 100%;
}

.pw-hero-marquee-track,
.pw-show-marquee-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: pwMarqueeLeft 36s linear infinite;
}

.pw-hero-marquee--right .pw-hero-marquee-track,
.pw-show-marquee--right .pw-show-marquee-track {
  animation-name: pwMarqueeRight;
  animation-duration: 40s;
}

.pw-hero-marquee--slow .pw-hero-marquee-track,
.pw-show-marquee--slow .pw-show-marquee-track {
  animation-duration: 46s;
}

@keyframes pwMarqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes pwMarqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.pw-hero-logo-tile,
.pw-show-logo-tile {
  flex-shrink: 0;
  width: 132px;
  height: 78px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 28px rgba(0, 35, 55, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pw-hero-logo-tile img,
.pw-show-logo-tile img {
  width: 100%;
  height: auto;
  max-height: 50px;
  object-fit: contain;
  display: block;
}

.pw-hero-marquee--left .pw-hero-logo-tile:nth-child(odd) {
  animation: pwTileFloat 5s ease-in-out infinite;
}
.pw-hero-marquee--right .pw-hero-logo-tile:nth-child(even) {
  animation: pwTileFloat 5.5s ease-in-out infinite;
  animation-delay: -1.5s;
}
.pw-hero-marquee--slow .pw-hero-logo-tile:nth-child(3n) {
  animation: pwTileFloat 6s ease-in-out infinite;
  animation-delay: -2s;
}

@keyframes pwTileFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.pw-hero-logo-tile:hover,
.pw-show-logo-tile:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 36px rgba(0, 35, 55, 0.28);
}

/* Logo showcase section */
.pw-logo-showcase {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
  padding: 28px 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #F8FAFC 0%, #EBF5FB 100%);
  border: 1px solid #E2E8F0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.pw-show-logo-tile {
  width: 148px;
  height: 86px;
  background: #fff;
  border: 1px solid rgba(0, 119, 182, 0.1);
  box-shadow: 0 6px 22px rgba(0, 55, 90, 0.08);
}

.pw-show-logo-tile img {
  max-height: 54px;
}

.pw-page .page-hero-deco { display: none; }

.pw-page .page-hero--program::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,55,90,0.55) 0%, rgba(0,100,160,0.35) 100%);
  z-index: 0;
}
.pw-hero.page-hero--program::before { display: none; }
.pw-page .page-hero--program .page-hero-inner { position: relative; z-index: 1; }

.pw-page .page-main {
  padding: 20px 40px 40px;
  max-width: 1180px;
}
.pw-page .page-section { margin-bottom: 0; }

.pw-stack { display: flex; flex-direction: column; gap: 0; }

.pw-block {
  padding: 28px 0;
  border-bottom: 1px solid #E8EDF2;
}
.pw-block:last-child { border-bottom: none; }
.pw-block--alt {
  margin: 0 -40px;
  padding: 28px 40px;
  background: #F7FAFC;
  border-bottom-color: #E2E8F0;
}
.pw-block--flush-top { padding-top: 0; }

.pw-head { max-width: 680px; margin-bottom: 20px; }
.pw-head--center {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.pw-head--sm { margin-bottom: 16px; }
.pw-eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0077B6;
  background: #EBF5FB;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.pw-head h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: #1A202C;
  margin: 0 0 8px;
  line-height: 1.25;
}
.pw-head p {
  font-size: 14px;
  color: #718096;
  line-height: 1.55;
  margin: 0;
}

/* Stats */
.pw-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: -20px;
  position: relative;
  z-index: 2;
}
.pw-stat {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 60, 100, 0.06);
}
.pw-stat .n {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 2vw, 22px);
  color: #0077B6;
  line-height: 1.1;
  margin-bottom: 4px;
}
.pw-stat .l {
  font-size: 10px;
  font-weight: 600;
  color: #718096;
  line-height: 1.3;
}

/* Intro split */
.pw-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}
.pw-split .pw-head { margin-bottom: 0; }
.pw-split-visual {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 60, 100, 0.1);
}
.pw-split-visual img {
  width: 100%;
  min-height: 190px;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

/* Partnership journey — photo strip */
.pw-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.pw-showcase-img {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 60, 100, 0.1);
}
.pw-showcase-img img {
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
  display: block;
}
.pw-showcase-img--b img { min-height: 160px; }

/* Cards */
.pw-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pw-why-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px;
  transition: box-shadow 0.2s;
}
.pw-why-card:hover { box-shadow: 0 6px 18px rgba(0, 119, 182, 0.08); }
.pw-why-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 10px;
}
.pw-why-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1A202C;
  margin: 0 0 5px;
}
.pw-why-card p {
  font-size: 12px;
  color: #718096;
  line-height: 1.45;
  margin: 0;
}

.pw-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.pw-area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.pw-area-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  transition: background 0.15s;
}
.pw-area-card:hover { background: #EBF5FB; }
.pw-area-card i { color: #0077B6; font-size: 14px; flex-shrink: 0; }
.pw-area-card span { font-size: 12px; font-weight: 600; color: #2D3748; line-height: 1.3; }

.pw-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pw-type-card {
  text-align: left;
  padding: 14px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.pw-type-card:hover { box-shadow: 0 6px 16px rgba(0, 60, 100, 0.08); }
.pw-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.pw-type-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1A202C;
  margin: 0 0 4px;
}
.pw-type-card p {
  font-size: 11px;
  color: #718096;
  line-height: 1.4;
  margin: 0;
}

.pw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  counter-reset: pw-step;
}
.pw-step {
  padding: 16px 14px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  position: relative;
}
.pw-step::before {
  counter-increment: pw-step;
  content: counter(pw-step, decimal-leading-zero);
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #BEE3F8;
  line-height: 1;
  margin-bottom: 8px;
}
.pw-step h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1A202C;
  margin: 0 0 5px;
}
.pw-step p {
  font-size: 12px;
  color: #718096;
  line-height: 1.45;
  margin: 0;
}

.pw-page .partners-logo-wall { gap: 10px; }
.pw-page .partner-logo-cell { padding: 10px; }

.pw-logos-note {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: #718096;
}
.pw-logos-note a { color: #0077B6; font-weight: 600; }

.pw-page .page-cta-band {
  margin-top: 0;
  padding: 32px 28px;
  border-radius: 14px;
}
.pw-page .page-cta-band h2 { font-size: 22px; margin-bottom: 8px; }
.pw-page .page-cta-band p { font-size: 14px; margin-bottom: 18px; }

@media (max-width: 1024px) {
  .pw-hero-split { grid-template-columns: 1fr; }
  .pw-hero-logos { margin-top: 8px; }
  .pw-hero-logo-tile { width: 118px; height: 72px; }
  .pw-hero-logo-tile img { max-height: 44px; }
  .pw-show-logo-tile { width: 132px; height: 78px; }
  .pw-show-logo-tile img { max-height: 48px; }
  .pw-stats { grid-template-columns: repeat(3, 1fr); }
  .pw-dual { grid-template-columns: 1fr; gap: 20px; }
  .pw-steps { grid-template-columns: repeat(2, 1fr); }
  .pw-showcase { grid-template-columns: 1fr 1fr; max-width: none; }
}
@media (max-width: 768px) {
  .pw-page .page-main { padding: 16px 20px 32px; }
  .pw-block--alt { margin: 0 -20px; padding: 24px 20px; }
  .pw-split { grid-template-columns: 1fr; gap: 20px; }
  .pw-why-grid { grid-template-columns: repeat(2, 1fr); }
  .pw-hero-logo-tile { width: 108px; height: 66px; padding: 10px 12px; }
  .pw-hero-logo-tile img { max-height: 40px; }
  .pw-show-logo-tile { width: 120px; height: 72px; }
  .pw-show-logo-tile img { max-height: 44px; }
  .pw-showcase { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pw-hero-marquee-track,
  .pw-show-marquee-track,
  .pw-hero-logo-tile {
    animation: none !important;
  }
}

@media (max-width: 520px) {
  .pw-stats { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .pw-why-grid,
  .pw-area-grid,
  .pw-type-grid,
  .pw-steps { grid-template-columns: 1fr; }
  .pw-block { padding: 22px 0; }
}
