/* Enhanced Risk Management Consulting Services Section Styles */
#risk-management-consulting {
  background-color: #f8f9fa;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem;
}

.text-content {
  flex: 1;
  max-width: 550px;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  color: #333333;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  position: relative;
  padding-bottom: 1rem;
}

p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  background-color: #4E1120;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(78, 17, 32, 0.3);
}

.cta-button:hover {
  background-color: #6A1A2E;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(78, 17, 32, 0.4);
}

.image-content {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.analytics-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(78, 17, 32, 0.15);
  position: relative;
  z-index: 2;
}

.image-content::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  background-color: rgba(78, 17, 32, 0.05);
  border-radius: 15px;
  z-index: 1;
}

.background-shape {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background-color: rgba(78, 17, 32, 0.03);
  border-radius: 50%;
  z-index: 0;
}

.background-shape::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background-color: rgba(78, 17, 32, 0.05);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Floating elements for visual interest */
.floating-element {
  position: absolute;
  background-color: #4E1120;
  opacity: 0.1;
  border-radius: 50%;
}

.float-1 {
  width: 50px;
  height: 50px;
  top: 10%;
  left: 5%;
  animation: float 8s ease-in-out infinite;
}

.float-2 {
  width: 30px;
  height: 30px;
  bottom: 15%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Responsive design */
@media (max-width: 1024px) {
  .content-wrapper {
      flex-direction: column;
      text-align: center;
      gap: 4rem;
  }

  .text-content, .image-content {
      max-width: 100%;
  }

  h2 {
      font-size: 2.8rem;
  }

  h2::after {
      left: 50%;
      transform: translateX(-50%);
  }

  .image-content::before {
      display: none;
  }
}

@media (max-width: 768px) {
  #risk-management-consulting {
      padding: 6rem 0;
  }

  h2 {
      font-size: 2.4rem;
  }

  p {
      font-size: 1.1rem;
  }

  .cta-button {
      padding: 0.9rem 1.8rem;
      font-size: 1rem;
  }
}

@media (max-width: 480px) {
  h2 {
      font-size: 2rem;
  }

  p {
      font-size: 1rem;
  }

  .cta-button {
      display: block;
      text-align: center;
  }
}