/**
 * Partner Details Page Styles
 */

/* General Layout */
.partner-details-section {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.partner-details-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Section 1: About & Integration Details Card */
.details-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 120px;
  border: 1px solid #E5E7EB;
  box-shadow: 0px 2px 6px 0px #1018280F;
}

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

.details-left {
  padding-right: 40px;
}

.details-right {
  padding-left: 40px;
  border-left: 1px solid #E5E7EB;
}

.details-title {
  font-size: 36px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.details-text {
  color: #666;
  line-height: 1.6;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 20px;
}

/* Integration Details List */
.integration-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.integration-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  color: #4a5568;
  font-size: 15px;
}

.integration-icon {
  color: #3EB1FF;
  flex-shrink: 0;
  margin-right: 12px;
  margin-top: 2px;
  width: 28px;
  display: flex;
  justify-content: center;
}

.integration-label {
  font-weight: 600;
  color: #1a1a1a;
  margin-right: 4px;
}

/* Section 2: How It Works */
.how-it-works-section {
  margin-bottom: 120px;
}

.section-title {
  font-size: 36px;
  text-align: left;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon-box {
  width: 80px;
  height: 80px;
  background: #e3f2fd;
  /* Light blue background */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.feature-icon-box i,
.feature-icon-box span {
  font-size: 28px;
  color: #2196f3;
  /* Blue icon */
}

.feature-title {
  font-size: 28px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 16px;
  line-height: 1.3;
}

.feature-desc {
  color: #666;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

/* Section 3: Other Partners */
.other-partners-section {
  margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 991px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 767px) {
  .details-card {
    padding: 30px 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 26px;
  }
}

/* Floating Integration Card */
.hero-section .container {
  position: relative;
  /* Ensure hero container is a positioning context */
}

.floating-integration-card {
  width: 380px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  text-align: left;
  z-index: 100;
  /* Ensure it sits above the next section */
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.verified-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.integration-action-btn {
  display: block;
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  font-weight: 200;
  font-size: 18px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-connect {
  background-color: #4facfe;
  /* Light blue gradient start approximation */
  background-image: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
  background: #3EB1FF;
  /* Fallback/Solid blue from image */
  color: #fff;
  border: none;
}

.btn-connect:hover {
  background: #2563EB;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-visit {
  background: #fff;
  color: #3EB1FF;
  margin-top: .5rem;
  border: 1px solid #3EB1FF;
}

.btn-visit:hover {
  background: #eff6ff;
  color: #2563EB;
  border-color: #2563EB;
}

/* Responsive adjustments for the floating card */
@media (max-width: 991px) {
  .floating-integration-card {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .hero-section {
    padding-bottom: 60px;
    /* Add some space if card drops down */
  }
}

.partner-hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Back to Directory Button */
.back-to-directory-btn {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
}

.back-to-directory-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  transform: translateX(-4px);
}

.back-to-directory-btn svg {
  display: inline-block;
  vertical-align: middle;
}

/* Hero Section Updates */
.partner-hero-content {
  text-align: left;
  padding-top: 10px;
  padding-bottom: 20px;
  max-width: 650px;
  /* Leave room for floating card */
}

.partner-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.partner-hero-logo {
  width: 88px;
  height: 88px;
  background: #FFFFFF33;
  /* Fallback/Placeholder background */
  border-radius: 16px;
  /* Rounded corners like ios icon */
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-hero-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.partner-hero-name {
  font-size: 52px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
}

.partner-hero-tagline {
  font-size: 28px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

@media (max-width: 991px) {
  .back-to-directory-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .partner-hero-content {
    max-width: 100%;
    text-align: center;
    padding-bottom: 40px;
  }

  .partner-header {
    justify-content: center;
    flex-direction: column;
    gap: 16px;
  }

  .partner-hero-container {
    flex-direction: column;
  }
}