/* =========================
   FREE KNOWLEDGE SECTION
   ========================= */
.free-knowledge-section {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.knowledge-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.knowledge-content {
  flex: 1;
}

.knowledge-visual {
  flex: 0.8;
  display: flex;
  justify-content: center;
  position: relative;
}

.knowledge-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(138, 121, 168, 0.1);
  color: #8a79a8;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.knowledge-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #20162D;
  line-height: 1.2;
  margin-bottom: 20px;
}

.knowledge-title span {
  background: linear-gradient(135deg, #8a79a8 0%, #b19cd9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.knowledge-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 35px;
}

.knowledge-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.knowledge-feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.k-feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8a79a8 0%, #b19cd9 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(138, 121, 168, 0.3);
}

.k-feature-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: #20162D;
  margin: 0 0 5px 0;
}

.k-feature-text p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.knowledge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #20162D;
  color: white;
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(32, 22, 45, 0.2);
}

.knowledge-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(32, 22, 45, 0.3);
  background: #3a2b4f;
}

/* Visual Stack */
.knowledge-card-stack {
  position: relative;
  width: 300px;
  height: 350px;
}

.k-card {
  position: absolute;
  width: 220px;
  padding: 20px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: transform 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.k-card i {
  font-size: 32px;
  background: linear-gradient(135deg, #8a79a8 0%, #b19cd9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.k-card span {
  font-weight: 700;
  color: #20162D;
  font-size: 18px;
}

.k-card-1 {
  top: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-10deg);
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
}

.k-card-2 {
  top: 40px;
  left: 40px;
  z-index: 2;
  transform: rotate(5deg);
}

.k-card-3 {
  top: 120px;
  left: 20px;
  z-index: 3;
  transform: rotate(-5deg);
  background: white;
}

.knowledge-card-stack:hover .k-card-1 { transform: rotate(-15deg) translate(-10px, -10px); }
.knowledge-card-stack:hover .k-card-2 { transform: rotate(10deg) translate(10px, -5px); }
.knowledge-card-stack:hover .k-card-3 { transform: rotate(-2deg) translate(0, 5px); }

.k-circle-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 121, 168, 0.1) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Responsywność */
@media (max-width: 992px) {
  .free-knowledge-section {
    padding: 60px 20px;
    background: radial-gradient(circle at 50% 20%, rgba(138, 121, 168, 0.08) 0%, transparent 60%),
                linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
  }

  .knowledge-container {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }
  
  .knowledge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .knowledge-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .knowledge-features {
    align-items: center;
    gap: 25px;
    width: 100%;
    max-width: 400px;
  }
  
  .knowledge-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255,255,255,0.6);
    padding: 15px;
    border-radius: 15px;
    width: 100%;
    border: 1px solid rgba(138, 121, 168, 0.1);
  }
  
  .k-feature-icon {
    margin-bottom: 10px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .knowledge-card-stack {
    transform: scale(0.85);
    margin-top: 20px;
    animation: floatStack 6s ease-in-out infinite;
  }
  
  /* Animacja pływania dla mobilnych */
  @keyframes floatStack {
    0%, 100% { transform: scale(0.85) translateY(0); }
    50% { transform: scale(0.85) translateY(-15px); }
  }
  
  /* Rozsunięcie kart bardziej na boki w mobilu dla efektu */
  .k-card-1 { transform: rotate(-15deg) translate(-20px, -10px); }
  .k-card-2 { transform: rotate(5deg) translate(10px, -5px); }
  .k-card-3 { transform: rotate(-5deg) translate(0, 10px); }
  
  .k-circle-deco {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(138, 121, 168, 0.15) 0%, transparent 70%);
  }
}
