/* ========================================
   MODERN RWE WHAT WE OFFER SECTION
   Latest Design with Enhanced Styling
   ======================================== */

/* Section Container */
.regulatory-bg {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.regulatory-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 25%, rgba(33, 150, 243, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(13, 110, 253, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.regulatory-bg .container {
  position: relative;
  z-index: 1;
}

/* Section Header */
.regulatory-bg .regulatory-tittle {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #033270;
  margin-bottom: 1.5rem !important;
  text-align: center;
  background: linear-gradient(135deg, #033270 0%, #2196f3 50%, #033270 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: titleGradient 4s ease-in-out infinite;
}

@keyframes titleGradient {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.regulatory-bg h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #033270;
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.5;
}

.regulatory-bg p {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem;
}

/* Service Items */
.regulatory-bg .regulatory-area {
  background: #ffffff;
  border-radius: 24px;
  padding: 0;
  margin-bottom: 2.5rem;
  border: 2px solid #e9ecef;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: stretch;
  position: relative;
}

.regulatory-bg .regulatory-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #033270 0%, #2196f3 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s ease;
  z-index: 2;
}

.regulatory-bg .regulatory-area:hover::before {
  transform: scaleY(1);
}

.regulatory-bg .regulatory-area::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.regulatory-bg .regulatory-area:hover::after {
  width: 150%;
  height: 150%;
}

.regulatory-bg .regulatory-area:hover {
  transform: translateY(-8px);
  border-color: #2196f3;
  box-shadow: 0 15px 50px rgba(33, 150, 243, 0.2);
}

/* Image Container */
.regulatory-bg .regulatory-area .col-xl-4:first-child {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8f9fa;
  padding: 0;
}

.regulatory-bg .regulatory-image {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.regulatory-bg .regulatory-area:hover .regulatory-image {
  transform: scale(1.1);
}

/* Image Overlay */
.regulatory-bg .regulatory-area .col-xl-4:first-child::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(3, 50, 112, 0.1) 0%, rgba(33, 150, 243, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.regulatory-bg .regulatory-area:hover .col-xl-4:first-child::after {
  opacity: 1;
}

/* Content Container */
.regulatory-bg .regulatory-area .col-xl-8 > div {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  height: 100%;
  position: relative;
  z-index: 1;
}

.regulatory-bg .regulatory-area h4 {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 700;
  color: #033270;
  margin-bottom: 1.25rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.regulatory-bg .regulatory-area:hover h4 {
  color: #2196f3;
}

.regulatory-bg .regulatory-area p {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.8;
  margin: 0;
  text-align: left;
  transition: color 0.4s ease;
}

.regulatory-bg .regulatory-area:hover p {
  color: #495057;
}

/* Responsive Layout */
@media (max-width: 1199px) {
  .regulatory-bg {
    padding: 80px 0;
  }
  
  .regulatory-bg .regulatory-area .col-xl-8 > div {
    padding: 2rem;
  }
}

@media (max-width: 991px) {
  .regulatory-bg {
    padding: 70px 0;
  }
  
  .regulatory-bg .regulatory-tittle {
    margin-bottom: 1.25rem !important;
  }
  
  .regulatory-bg .regulatory-area {
    flex-direction: column;
    margin-bottom: 2rem;
  }
  
  .regulatory-bg .regulatory-area .col-xl-4:first-child {
    width: 100%;
    height: 280px;
  }
  
  .regulatory-bg .regulatory-area .col-xl-8 > div {
    padding: 1.75rem;
  }
  
  .regulatory-bg .regulatory-area h4 {
    margin-bottom: 1rem;
  }
  
  .regulatory-bg .regulatory-area p {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .regulatory-bg {
    padding: 60px 0;
  }
  
  .regulatory-bg .regulatory-tittle {
    margin-bottom: 1rem !important;
  }
  
  .regulatory-bg .regulatory-area {
    margin-bottom: 1.75rem;
  }
  
  .regulatory-bg .regulatory-area .col-xl-4:first-child {
    height: 250px;
  }
  
  .regulatory-bg .regulatory-area .col-xl-8 > div {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .regulatory-bg {
    padding: 50px 0;
  }
  
  .regulatory-bg .regulatory-area {
    margin-bottom: 1.5rem;
    border-radius: 20px;
  }
  
  .regulatory-bg .regulatory-area .col-xl-4:first-child {
    height: 220px;
  }
  
  .regulatory-bg .regulatory-area .col-xl-8 > div {
    padding: 1.25rem;
  }
  
  .regulatory-bg .regulatory-area h4 {
    font-size: 1.25rem;
  }
  
  .regulatory-bg .regulatory-area p {
    font-size: 0.9375rem;
  }
}

/* Animation on Load */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.regulatory-bg .regulatory-area {
  animation: fadeInLeft 0.8s ease-out backwards;
}

.regulatory-bg .regulatory-area:nth-child(1) {
  animation-delay: 0.1s;
}

.regulatory-bg .regulatory-area:nth-child(2) {
  animation-delay: 0.2s;
}

.regulatory-bg .regulatory-area:nth-child(3) {
  animation-delay: 0.3s;
}

.regulatory-bg .regulatory-area:nth-child(4) {
  animation-delay: 0.4s;
}

.regulatory-bg .regulatory-area:nth-child(5) {
  animation-delay: 0.5s;
}

