/* ========================================
   PATHWAYS 2 PROGRESS — Shared Styles
   ======================================== */

.p2p-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ───────────────────────────── */

.p2p-hero {
  position: relative;
  background: linear-gradient(135deg, #1e2a4a 0%, #2b3a67 40%, #007265 80%, var(--primary) 100%);
  padding: 80px 0 70px;
  overflow: hidden;
}

.p2p-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 147, 127, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.p2p-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f7941d, var(--secondary), var(--primary));
}

.p2p-hero-split {
  display: flex;
  align-items: center;
  gap: 48px;
}

.p2p-hero-logo-col {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: p2p-fadeDown 0.8s ease-out both;
}

.p2p-hero-logo {
  display: block;
  max-width: 260px;
  background: #fff;
  padding: 20px 28px;
  border-radius: 10px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.2));
}

.p2p-hero-text {
  flex: 1;
  text-align: left;
  animation: p2p-fadeUp 0.8s ease-out 0.2s both;
}

.p2p-hero-text p {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
}

.p2p-hero-text p + p {
  margin-top: 16px;
}

/* ── SHARED SECTION LABEL ────────────── */

.p2p-section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  justify-content: center;
}

.p2p-section-label::before,
.p2p-section-label::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.p2p-section-label h2 {
  font-family: var(--font1);
  font-size: 32px;
  font-weight: 700;
  color: #2b3a67;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0;
}

/* ── PARTNER ORGANIZATIONS ──────────── */

.p2p-partners-section {
  padding: 80px 0 60px;
  background: #f8f7f5;
  position: relative;
}

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

.p2p-partner-card {
  background: #fff;
  border-radius: 6px;
  padding: 32px 24px 28px;
  position: relative;
  box-shadow: 0 2px 12px rgba(43, 58, 103, 0.07);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p2p-partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2b3a67, var(--primary));
  border-radius: 6px 6px 0 0;
}

.p2p-partner-card:hover {
  box-shadow: 0 8px 32px rgba(43, 58, 103, 0.12);
  transform: translateY(-3px);
}

.p2p-partner-logo-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  width: 100%;
}

.p2p-partner-logo-wrap img {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
}

.p2p-partner-name {
  font-family: var(--font1);
  font-size: 15px;
  font-weight: 700;
  color: #2b3a67;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-align: center;
}

.p2p-partner-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #4a4a5a;
  text-align: center;
  flex: 1;
}

/* ── PATHWAY STEPS (CHEVRONS) ───────── */

.p2p-pathway-section {
  padding: 80px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.p2p-pathway-section .p2p-section-label {
  margin-bottom: 56px;
}

.p2p-pathway-track {
  display: flex;
  align-items: stretch;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.p2p-chevron {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 28px 36px;
  min-height: 90px;
  color: #fff;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%, 28px 50%);
  transition: filter 0.3s ease;
}

.p2p-chevron:first-child {
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%);
  padding-left: 24px;
  border-radius: 5px 0 0 5px;
}

.p2p-chevron:nth-child(1) { background: #1e2a4a; }
.p2p-chevron:nth-child(2) { background: #2b3a67; }
.p2p-chevron:nth-child(3) { background: #3d4f7a; }
.p2p-chevron:nth-child(4) { background: #007265; }
.p2p-chevron:nth-child(5) {
  background: var(--primary);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 28px 50%);
  border-radius: 0 5px 5px 0;
  padding-right: 24px;
}

.p2p-chevron:hover { filter: brightness(1.12); }

.p2p-chevron-text {
  font-family: var(--font1);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}

.p2p-chevron-number {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
  margin-bottom: 4px;
}

/* Mobile pathway */
.p2p-pathway-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  max-width: 500px;
  margin: 0 auto;
}

.p2p-step-mobile {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  position: relative;
}

.p2p-step-mobile::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #2b3a67, var(--primary));
}

.p2p-step-mobile:first-child::before { top: 50%; }
.p2p-step-mobile:last-child::before { bottom: 50%; }

.p2p-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.p2p-step-mobile:nth-child(1) .p2p-step-dot { background: #1e2a4a; }
.p2p-step-mobile:nth-child(2) .p2p-step-dot { background: #2b3a67; }
.p2p-step-mobile:nth-child(3) .p2p-step-dot { background: #3d4f7a; }
.p2p-step-mobile:nth-child(4) .p2p-step-dot { background: #007265; }
.p2p-step-mobile:nth-child(5) .p2p-step-dot { background: var(--primary); }

.p2p-step-label {
  font-family: var(--font1);
  font-size: 17px;
  font-weight: 600;
  color: #2b3a67;
}

/* ── PROGRAM GOALS ──────────────────── */

.p2p-goals-section {
  padding: 70px 0;
  background: linear-gradient(135deg, #1e2a4a 0%, #2b3a67 100%);
  position: relative;
}

.p2p-goals-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.p2p-goals-section .p2p-section-label h2 { color: #fff; }
.p2p-goals-section .p2p-section-label::before,
.p2p-goals-section .p2p-section-label::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.p2p-goals-intro {
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 17px;
  max-width: 700px;
  margin: -24px auto 40px;
  line-height: 1.6;
}

.p2p-goals-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.p2p-goal-item {
  text-align: center;
  padding: 28px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.p2p-goal-item:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.15);
}

.p2p-goal-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p2p-goal-icon svg { width: 22px; height: 22px; fill: #fff; }

.p2p-goal-number {
  font-family: var(--font1);
  font-size: 28px;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 4px;
}

.p2p-goal-text {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

/* ── PROGRAM PARTNERS CAROUSEL ──────── */

.p2p-carousel-section {
  padding: 60px 0;
  background: #f8f7f5;
  text-align: center;
}

.p2p-carousel-section .p2p-section-label { margin-bottom: 40px; }

.p2p-carousel-track-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.p2p-carousel-track-wrapper::before,
.p2p-carousel-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.p2p-carousel-track-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, #f8f7f5, transparent);
}

.p2p-carousel-track-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, #f8f7f5, transparent);
}

.p2p-carousel-track {
  display: flex;
  gap: 100px;
  align-items: center;
  animation: p2p-scroll 30s linear infinite;
  width: max-content;
}

.p2p-carousel-track:hover { animation-play-state: paused; }

.p2p-carousel-logo {
  height: 90px;
  flex-shrink: 0;
  opacity: 0.65;
  filter: grayscale(30%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.p2p-carousel-logo:hover { opacity: 1; filter: grayscale(0%); }

.p2p-carousel-note {
  margin-top: 24px;
  font-size: 13px;
  color: #6b6b7b;
  font-style: italic;
}

/* ── CONTACT CTA ────────────────────── */

.p2p-cta-section {
  padding: 50px 0;
  background: #fff;
  text-align: center;
  border-top: 1px solid rgba(0, 147, 127, 0.1);
}

.p2p-cta-inner { max-width: 600px; margin: 0 auto; }

.p2p-cta-inner h2 {
  font-family: var(--font1);
  font-size: 28px;
  font-weight: 700;
  color: #2b3a67;
  margin-bottom: 10px;
}

.p2p-cta-inner p {
  color: #4a4a5a;
  font-size: 16px;
  margin-bottom: 20px;
}

.p2p-cta-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #2b3a67, #007265);
  color: #fff;
  text-decoration: none;
  font-family: var(--font1);
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  letter-spacing: 0.02em;
}

.p2p-cta-email:hover {
  box-shadow: 0 6px 24px rgba(43, 58, 103, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

.p2p-cta-email svg { width: 18px; height: 18px; fill: currentColor; }

/* ── KEYFRAMES ──────────────────────── */

@keyframes p2p-fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes p2p-fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes p2p-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* ── RESPONSIVE ─────────────────────── */

@media (max-width: 1199px) {
  .p2p-partner-grid { grid-template-columns: repeat(2, 1fr); }
  .p2p-goals-grid { grid-template-columns: repeat(3, 1fr); }
  .p2p-chevron-text { font-size: 13px; }
  .p2p-chevron { min-height: 80px; padding: 24px 16px 24px 32px; }
}

@media (max-width: 991px) {
  .p2p-hero { padding: 60px 0 50px; }
  .p2p-hero-split {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .p2p-hero-text { text-align: center; }
  .p2p-hero-logo { max-width: 200px; }
  .p2p-section-label h2 { font-size: 28px; }
  .p2p-pathway-track { display: none; }
  .p2p-pathway-mobile { display: flex; }
  .p2p-goals-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .p2p-hero { padding: 50px 0 40px; }
  .p2p-hero-logo { max-width: 160px; }
  .p2p-hero-text p { font-size: 15px; }
  .p2p-partner-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .p2p-goals-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .p2p-section-label h2 { font-size: 24px; }
  .p2p-section-label::before, .p2p-section-label::after { width: 30px; }
  .p2p-partners-section, .p2p-pathway-section, .p2p-goals-section { padding: 50px 0; }
}
