/* ===========================================
   Partners Landing Page Styles
   =========================================== */

/* Partners Hero Section */
.partners-hero {
  background: white;
  color: #1E293B;
  padding: 4rem 0;
  padding-top: 30px;
  overflow: hidden;
  position: relative;
}

.partners-hero-content {
  position: relative;
  z-index: 1;
}

.partners-hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(54, 72, 154, 0.1);
  color: #36489a;
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: 'Roboto', 'Noto Sans SC', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.partners-hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #1E293B;
}

.partners-hero p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #64748B;
  max-width: 540px;
}

.partners-hero-image {
  max-width: 80%;
  height: auto;
}

.partner-btn {
  background: #36489a;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(54, 72, 154, 0.3);
}

.partner-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(54, 72, 154, 0.4);
  color: white;
}

/* Program Types Section */
.program-types {
  padding: 5rem 0;
  background: #36489a;
  position: relative;
}

.program-types::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/patterns/scribble-bg.webp') repeat;
  opacity: 0.05;
  pointer-events: none;
}

.program-types .container {
  position: relative;
  z-index: 1;
}

.program-types h2 {
  color: white !important;
}

.program-types > .container > .text-center p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.program-card {
  border-radius: 1.5rem;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.program-card.tier-1,
.program-card.tier-2,
.program-card.tier-3 {
  background: white;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.program-icon {
  width: 70px;
  height: 70px;
  background: #36489a;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.program-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  text-align: center;
}

.program-card > p {
  color: #64748B;
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
  text-align: center;
}

.program-card .benefit-list {
  text-align: left;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.program-card .apply-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* Program Details Section - How It Works style */
.program-details {
  padding: 5rem 0;
  background: white;
}

.how-it-works-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.how-it-works-step {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.how-it-works-step .step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #36489a;
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.how-it-works-step .step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.how-it-works-step .step-desc {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.how-it-works-step .step-connector {
  position: absolute;
  top: 50px;
  right: -35%;
  width: 70%;
  height: 3px;
  background: #36489a;
  opacity: 0.3;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.5;
}

.benefit-list li:last-child {
  margin-bottom: 0;
}

.benefit-list .check-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: #36489a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  color: white;
  font-size: 0.75rem;
}

.apply-btn {
  background: #36489a;
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(54, 72, 154, 0.3);
  color: white;
}

.apply-btn.secondary {
  background: #00c9a7;
}

.apply-btn.secondary:hover {
  box-shadow: 0 8px 25px rgba(0, 201, 167, 0.3);
}

/* Application Form Section */
.application-form-section {
  padding: 5rem 0;
  background: #36489a;
  position: relative;
}

.application-form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/patterns/scribble-bg.webp') repeat;
  opacity: 0.05;
  pointer-events: none;
}

.application-form-section .container {
  position: relative;
  z-index: 1;
}

.form-card {
  background: white;
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  max-width: 700px;
  margin: 0 auto;
}

.form-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
  text-align: center;
}

.form-card .subtitle {
  color: #64748b;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.form-control:focus {
  outline: none;
  border-color: #36489a;
  box-shadow: 0 0 0 3px rgba(54, 72, 154, 0.15);
}

.form-control::placeholder {
  color: #9ca3af;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 1rem center/12px 12px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:focus {
  outline: none;
  border-color: #36489a;
  box-shadow: 0 0 0 3px rgba(54, 72, 154, 0.15);
}

.submit-btn {
  width: 100%;
  background: #36489a;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(54, 72, 154, 0.3);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background: white;
}

.faq-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 3rem;
}

.faq-item {
  background: white;
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #f9fafb;
}

.faq-question span {
  flex: 1;
  padding-right: 1rem;
}

.faq-question i,
.faq-question img.hugeicon {
  font-size: 1.25rem;
  color: #6b7280;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-question i,
.faq-item.active .faq-question img.hugeicon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.25rem;
  max-height: 500px;
}

.faq-answer p {
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works-section {
  padding: 5rem 0;
  background: white;
}

.how-it-works-section .row {
  position: relative;
}

.how-it-works-section .col-md-4 {
  position: relative;
}

/* Connector bars between items */
.how-it-works-section .col-md-4:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  width: 24px;
  height: 4px;
  background: #36489a;
  border-radius: 2px;
  z-index: 1;
}

.how-it-works-section .how-it-works-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #f8fafc;
  border-radius: 1.5rem;
  height: 100%;
}

.how-it-works-section .how-it-works-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.how-it-works-section .how-it-works-step p {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.how-it-works-section .section-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(54, 72, 154, 0.1);
  color: #36489a;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  margin-top: 0.75rem;
}

.how-it-works-section .section-badge.badge-purple {
  background: rgba(118, 75, 162, 0.1);
  color: #764ba2;
}

.how-it-works-section .section-badge.badge-teal {
  background: rgba(0, 201, 167, 0.1);
  color: #00c9a7;
}

@media (max-width: 767px) {
  .how-it-works-section .col-md-4:not(:last-child)::after {
    display: none;
  }
}

/* CTA Section */
.partners-cta-section {
  padding: 5rem 0;
  background: white;
}

.partners-cta-box {
  background: #0f172a;
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.cta-blur-1 {
  top: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: rgba(54, 72, 154, 0.4);
}

.cta-blur-2 {
  bottom: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  background: rgba(118, 75, 162, 0.4);
}

.partners-cta-box h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.partners-cta-box .cta-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.partner-btn-gradient {
  background: #36489a;
  color: white;
  position: relative;
  z-index: 1;
}

.partner-btn-gradient:hover {
  background: #5a6fd6;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(54, 72, 154, 0.4);
}

.partner-btn-gradient img {
  filter: brightness(0) invert(1);
}

/* Alert styles */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  display: none;
}

.alert.show {
  display: block;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 991px) {
  .partners-hero h1 {
    font-size: 2rem;
  }

  .partners-hero p {
    font-size: 1rem;
  }

  .partners-hero-image-wrapper {
    display: none;
  }

  .partners-hero-mobile-image {
    display: block !important;
    margin-bottom: 2rem;
  }

  .partners-hero-image {
    max-width: 70%;
  }

  .how-it-works-step .step-connector {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Reduce header offset on mobile */
  body:has(header.site-header) {
    padding-top: 40px !important;
  }

  /* Add horizontal margins to containers */
  .partners-hero .container,
  .program-types .container,
  .program-details .container,
  .application-form-section .container,
  .faq-section .container,
  .partners-cta .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .partners-hero {
    padding: 2.5rem 0 3rem;
    padding-top: 20px;
    text-align: center;
  }

  .partners-hero-content {
    display: flex;
    flex-direction: column;
  }

  .partners-hero-badge {
    justify-content: center;
    order: 1;
    align-self: center;
  }

  .partners-hero h1 {
    order: 2;
    font-size: 1.75rem;
    font-weight: 800;
    padding: 0 1rem;
  }

  /* Move CTA directly below title */
  .partner-btn {
    order: 3;
    width: 100%;
    justify-content: center;
    padding: 0.75rem 2rem;
  }

  /* Hide subtitle on mobile */
  .partners-hero p {
    display: none;
  }

  /* Reduce space between hero image and badge */
  .partners-hero-mobile-image {
    margin-bottom: 0.75rem !important;
  }

  .faq-section h2,
  .partners-cta-box h2,
  .program-types h2 {
    font-size: 1.5rem !important;
  }

  .partners-hero-image {
    max-width: 85%;
  }

  .how-it-works-steps {
    flex-direction: column;
    gap: 1rem;
  }

  .partners-cta-box {
    padding: 3rem 1.5rem;
  }

  .partners-cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .partners-cta-actions .btn-gradient {
    width: 100%;
    max-width: 280px;
  }

  /* Full width CTAs */
  .partner-btn {
    width: 100%;
    justify-content: center;
  }

  .program-types, .program-details, .application-form-section, .faq-section {
    padding: 3rem 0;
  }

  .form-card {
    padding: 2rem 1.5rem;
  }

  .partners-cta {
    padding: 3rem 0;
  }

  .partners-cta .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Add padding to additional section containers */
  .how-it-works-section .container,
  .partners-cta-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Card internal padding on mobile */
  .program-card {
    padding: 1.5rem 1rem;
  }

  .row>* {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }
}
