/* ===== PARTNER PROGRAM PAGE ===== */

.pp-page {
  background: #ffffff;
  color: #1a1a2e;
}

/* ── Hero ── */
.pp-hero {
  min-height: 420px;
}

.pp-hero .pg-hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  background: #ff0037;
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.pp-hero .pg-hero-cta:hover {
  background: #cc0029;
}

/* ── Shared Section ── */
.pp-section {
  padding: 4rem 0;
}

.pp-section--dark {
  background: #f5f7fa;
}

.pp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.pp-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pp-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a1a2e;
}

.pp-section-subtitle {
  color: #666;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Center utility ── */
.pp-center {
  text-align: center;
}

/* ── Intro with side image ── */
.pp-intro-row {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.pp-intro-body {
  flex: 1;
}

.pp-intro-body p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 800px;
}

.pp-intro-body p:last-child {
  color: #444;
  font-size: 0.9rem;
}

.pp-intro-side {
  flex-shrink: 0;
  text-align: center;
  max-width: 360px;
}

.pp-intro-side img {
  max-width: 100%;
  height: auto;
}

.pp-intro-link {
  display: inline-block;
  margin-top: 1rem;
  background: #ff0037;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.pp-intro-link:hover {
  background: #cc0029;
}

/* ── Partner Types ── */
.pp-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.pp-type-card {
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 12px;
  padding: 2.5rem 2.5rem 2rem;
}

.pp-type-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
}

.pp-type-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 1.25rem;
}

.pp-type-desc {
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.pp-type-examples {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pp-type-examples li {
  color: #444;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.pp-type-examples li::before {
  content: "•";
  color: #1a1a2e;
  position: absolute;
  left: 0;
}

/* ── Examples ── */
.pp-examples .pp-center {
  margin-bottom: 2.5rem;
}

.pp-examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pp-example-card {
  background-color: #1a2035;
  background-size: cover;
  background-position: center;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pp-example-card[style*="background-image"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 26, 0.75) 20%, rgba(10, 14, 26, 0.1) 100%);
}

.pp-example-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.pp-example-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.pp-example-card li {
  color: #e0e0e0;
  font-size: 0.92rem;
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.pp-example-card li::before {
  content: ">";
  color: #ff0037;
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* ── Support Table ── */
.pp-support h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.pp-table-wrap {
  overflow-x: auto;
}

.pp-support-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pp-support-table th {
  background: #1e2a3a;
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1rem;
  text-align: left;
  border: 1px solid #d0d5dd;
}

.pp-support-table th:first-child {
  width: 55%;
}

.pp-support-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #d0d5dd;
  color: #1a1a2e;
  vertical-align: middle;
}

.pp-support-table td.pp-check {
  text-align: center;
  color: #1a1a2e;
  font-size: 1rem;
}

.pp-support-table tr:nth-child(even) td {
  background: transparent;
}

/* ── Steps ── */
.pp-steps h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Light variant */
.pp-steps--light {
  background: #f0f2f5;
}

.pp-steps--light h2 {
  color: #1a1a2e;
}

.pp-steps-list {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.pp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #1e2538;
  border-radius: 16px;
  padding: 2.5rem 2rem 2.25rem;
  flex: 1;
  min-width: 220px;
  max-width: 320px;
}

.pp-step-arrow {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  align-self: center;
}

.pp-step-arrow svg {
  width: 48px;
  height: 48px;
}

.pp-step-num {
  background: #fff;
  color: #1a1a2e;
  font-weight: 800;
  font-size: 2.25rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pp-step-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.pp-step-body p {
  font-size: 1rem;
  color: #9ca3af;
  line-height: 1.7;
}

.pp-steps-cta {
  text-align: center;
}

/* ── CTA Banner (full-bleed image) ── */
.pp-cta-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 5rem 24px;
  text-align: center;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 15, 30, 0.75) 0%, rgba(30, 40, 60, 0.5) 100%);
}

.pp-cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.pp-cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.pp-cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ── Support Footnote ── */
.pp-support-footnote {
  color: #444;
  font-size: 0.85rem;
  margin-top: 1rem;
  line-height: 1.6;
}

/* ── Support Detail Cards (圖二) ── */
.pp-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pp-detail-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.75rem;
  color: #1a1a2e;
}

.pp-detail-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
}

.pp-detail-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
}

.pp-detail-card p {
  font-size: 0.88rem;
  color: #4a4a5a;
  line-height: 1.6;
}

/* ── Partner Companies ── */
.pp-companies-subtitle {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.pp-companies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.pp-company-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.pp-company-card img {
  width: 300px;
  height: 100px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 8px;
}

.pp-company-card span {
  font-size: 0.88rem;
  color: #4a4a5a;
  line-height: 1.4;
}

.pg-btn-primary {
  display: inline-block;
  background: #ff0037;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.pg-btn-primary:hover {
  background: #cc0029;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .pp-intro-row {
    flex-direction: column;
  }

  .pp-intro-side {
    max-width: 100%;
    margin: 0 auto;
  }

  .pp-steps-list {
    flex-direction: column;
    align-items: center;
  }

  .pp-step {
    max-width: 100%;
    width: 100%;
    min-height: auto;
  }

  .pp-step-arrow {
    transform: rotate(90deg);
    padding: 0.25rem;
  }

  .pp-support-table th:first-child {
    width: 45%;
  }

  .pp-details-grid {
    grid-template-columns: 1fr;
  }

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